1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for Samba 3.
4#
5# Report bugs to <samba-technical@samba.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$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  # Pre-4.2 versions of Zsh do 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_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576exec 7<&0 </dev/null 6>&1
577
578# Name of the host.
579# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580# so uname gets run too.
581ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583#
584# Initializations.
585#
586ac_default_prefix=/usr/local
587ac_clean_files=
588ac_config_libobj_dir=.
589LIBOBJS=
590cross_compiling=no
591subdirs=
592MFLAGS=
593MAKEFLAGS=
594SHELL=${CONFIG_SHELL-/bin/sh}
595
596# Identity of this package.
597PACKAGE_NAME='Samba'
598PACKAGE_TARNAME='samba'
599PACKAGE_VERSION='3'
600PACKAGE_STRING='Samba 3'
601PACKAGE_BUGREPORT='samba-technical@samba.org'
602
603ac_unique_file="include/includes.h"
604ac_default_prefix=/usr/local/samba
605# Factoring default headers for most tests.
606ac_includes_default="\
607#include <stdio.h>
608#ifdef HAVE_SYS_TYPES_H
609# include <sys/types.h>
610#endif
611#ifdef HAVE_SYS_STAT_H
612# include <sys/stat.h>
613#endif
614#ifdef STDC_HEADERS
615# include <stdlib.h>
616# include <stddef.h>
617#else
618# ifdef HAVE_STDLIB_H
619#  include <stdlib.h>
620# endif
621#endif
622#ifdef HAVE_STRING_H
623# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
624#  include <memory.h>
625# endif
626# include <string.h>
627#endif
628#ifdef HAVE_STRINGS_H
629# include <strings.h>
630#endif
631#ifdef HAVE_INTTYPES_H
632# include <inttypes.h>
633#endif
634#ifdef HAVE_STDINT_H
635# include <stdint.h>
636#endif
637#ifdef HAVE_UNISTD_H
638# include <unistd.h>
639#endif"
640
641ac_subst_vars='LTLIBOBJS
642MAKEFILE
643SMBD_LIBS
644DEVELOPER_CFLAGS
645ZLIB_OBJS
646ZLIB_LIBS
647srcdir
648SHLD_FLAGS
649LD_SHLIB_DISALLOW_UNDEF_FLAG
650LD_SHLIB_FLAGS
651LD
652INSTALL_LINK_FLAGS
653INTERN_LDFLAGS
654ldbdir
655HAVE_PERL_EXTUTILS_MAKEMAKER
656POPT_OBJ
657poptdir
658POPT_CFLAGS
659POPT_LIBS
660YFLAGS
661YACC
662LEXLIB
663LEX_OUTPUT_ROOT
664LEX
665LIB_dn_expand
666LIB_dns_search
667LIB_res_ndestroy
668LIB_res_nsearch
669LIB_res_search
670VOID_RETSIGTYPE
671pythondir
672BLDSHARED
673PYTHON_CONFIG
674PYTHON
675PYTHON_VER
676GPEXT_MODULES
677GPEXT_STATIC
678PERFCOUNT_MODULES
679PERFCOUNT_STATIC
680VFS_MODULES
681VFS_STATIC
682AUTH_MODULES
683AUTH_STATIC
684CHARSET_MODULES
685CHARSET_STATIC
686NSS_INFO_MODULES
687NSS_INFO_STATIC
688IDMAP_MODULES
689IDMAP_STATIC
690RPC_MODULES
691RPC_STATIC
692PDB_MODULES
693PDB_STATIC
694SMBD_FAM_LIBS
695INIPARSERLIBS
696BUILD_INIPARSER
697PTHREADPOOL_OBJ
698PTHREAD_LDFLAGS
699PTHREAD_CFLAGS
700AVAHI_OBJ
701AVAHI_LIBS
702DNSSD_LIBS
703FLAGS1
704POPTLIBS
705BUILD_POPT
706WINBIND_KRB5_LOCATOR
707NSSSONAMEVERSIONSUFFIX
708WINBIND_NSS_EXTRA_OBJS
709WINBIND_NSS_LDSHFLAGS
710WINBIND_WINS_NSS
711WINBIND_NSS
712WBCLIENT_LIBS
713WBCLIENT_LDFLAGS
714WBCLIENT_INCLUDES
715CTDB_CFLAGS
716KRB5CONFIG
717LDBLDAP
718SMBLDAPUTIL
719SMBLDAP
720FAKE_KASERVER_OBJ
721SMB_FAM_LIBS
722LIBADDNS_SOVER
723UNINSTALL_LIBADDNS
724INSTALL_LIBADDNS
725LIBADDNS_TARGET
726LIBADDNS_LIBS
727LIBADDNS_STATIC
728LIBADDNS_SHARED
729LIBADDNS_STATIC_TARGET
730LIBADDNS_SHARED_TARGET
731LIBSMBSHAREMODES_SOVER
732UNINSTALL_LIBSMBSHAREMODES
733INSTALL_LIBSMBSHAREMODES
734LIBSMBSHAREMODES_TARGET
735LIBSMBSHAREMODES_LIBS
736LIBSMBSHAREMODES_STATIC
737LIBSMBSHAREMODES_SHARED
738LIBSMBSHAREMODES_STATIC_TARGET
739LIBSMBSHAREMODES_SHARED_TARGET
740LIBSMBCLIENT_SOVER
741UNINSTALL_LIBSMBCLIENT
742INSTALL_LIBSMBCLIENT
743LIBSMBCLIENT_TARGET
744LIBSMBCLIENT_LIBS
745LIBSMBCLIENT_STATIC
746LIBSMBCLIENT_SHARED
747LIBSMBCLIENT_STATIC_TARGET
748LIBSMBCLIENT_SHARED_TARGET
749LIBNETAPI_SOVER
750UNINSTALL_LIBNETAPI
751INSTALL_LIBNETAPI
752LIBNETAPI_TARGET
753LIBNETAPI_LIBS
754LIBNETAPI_STATIC
755LIBNETAPI_SHARED
756LIBNETAPI_STATIC_TARGET
757LIBNETAPI_SHARED_TARGET
758TDBTORTURE
759TDBTOOL
760TDBDUMP
761TDBBACKUP
762LIBTDB_SOVER
763UNINSTALL_LIBTDB
764INSTALL_LIBTDB
765LIBTDB_TARGET
766LIBTDB_STATIC
767LIBTDB_SHARED
768LIBTDB_STATIC_TARGET
769LIBTDB_SHARED_TARGET
770TDB_CFLAGS
771TDB_LIBS
772TDB_OBJ
773tdbdir
774LIBTDB_OBJ0
775LIBTDB_LIBS
776LIBTDB_CFLAGS
777TALLOCTORT
778LIBTALLOC_OBJ0
779LIBTALLOC_SOVER
780UNINSTALL_LIBTALLOC
781INSTALL_LIBTALLOC
782LIBTALLOC_TARGET
783LIBTALLOC_STATIC
784LIBTALLOC_SHARED
785LIBTALLOC_STATIC_TARGET
786LIBTALLOC_SHARED_TARGET
787TALLOC_LIBS
788TALLOC_CFLAGS
789TALLOC_OBJ
790tallocdir
791LIBTALLOC_LIBS
792LIBTALLOC_CFLAGS
793PKG_CONFIG
794USESHARED
795LIB_PATH_VAR
796ROFF
797SYMSEXT
798LIBUNWIND_PTRACE
799ONEFS_LIBS
800TERMLDFLAGS
801TERMLIBS
802CUPS_CONFIG
803LIBREPLACE_LIBS
804LIBREPLACE_OBJS
805LIBDL
806LIBOBJS
807LDSHFLAGS_Z_NODEFS
808LDSHFLAGS_Z_DEFS
809DYNEXP
810PIDL_ARGS
811BROKEN_CC
812AR
813PERL
814MAKE
815AWK
816SWAT_INSTALL_TARGETS
817SWAT_SBIN_TARGETS
818NSS_WRAPPER_OBJS
819HAVE_NSS_WRAPPER
820SOCKET_WRAPPER_OBJS
821HAVE_SOCKET_WRAPPER
822DEFAULT_TEST_OPTIONS
823NSCD_LIBS
824CONFIG_LIBS
825EXTRA_ALL_TARGETS
826EXTRA_SBIN_PROGS
827UNINSTALL_CIFSUPCALL
828INSTALL_CIFSUPCALL
829CIFSUPCALL_PROGS
830UNINSTALL_CIFSUMOUNT
831INSTALL_CIFSUMOUNT
832CIFSUMOUNT_PROGS
833UNINSTALL_CIFSMOUNT
834INSTALL_CIFSMOUNT
835CIFSMOUNT_PROGS
836EXTRA_BIN_PROGS
837NSS_MODULES
838UNINSTALL_PAM_MODULES
839INSTALL_PAM_MODULES
840PAM_MODULES
841GPEXT_LIBS
842LDAP_LIBS
843UUID_LIBS
844KRB5_LIBS
845IDMAP_LIBS
846PASSDB_LIBS
847ACL_LIBS
848AUTH_LIBS
849PRINT_LIBS
850LIBSAMBAUTIL_SHARED
851LIBWBCLIENT_LIBS
852LIBWBCLIENT
853LIBWBCLIENT_SOVER
854LIBWBCLIENT_STATIC
855LIBWBCLIENT_STATIC_TARGET
856LIBWBCLIENT_SHARED
857LIBWBCLIENT_SHARED_TARGET
858UNINSTALL_LIBWBCLIENT
859INSTALL_LIBWBCLIENT
860UNINSTALLLIBCMD_A
861UNINSTALLLIBCMD_SH
862INSTALLLIBCMD_A
863INSTALLLIBCMD_SH
864SHLIBEXT
865RELRO_LDFLAGS
866PIE_LDFLAGS
867PIE_CFLAGS
868PICFLAG
869HOST_OS
870DSO_EXPORTS
871MODULE_EXPORTS
872SHLD
873SONAMEFLAG
874LDSHFLAGS
875SAMBA_CPPFLAGS
876LIBTEVENT_OBJ0
877EXPORTSFILE
878TEVENT_LIBS
879TEVENT_CFLAGS
880TEVENT_OBJ
881teventdir
882libreplace_cv_immediate_structures
883INSTALL_DATA
884INSTALL_SCRIPT
885INSTALL_PROGRAM
886EGREP
887GREP
888CPP
889OBJEXT
890EXEEXT
891ac_ct_CC
892CPPFLAGS
893LDFLAGS
894CFLAGS
895CC
896developer
897selftest_custom_conf
898smbtorture4_option
899smbtorture4_path
900selftest_shrdir
901selftest_prefix
902modulesdir
903pammodulesdir
904rootsbindir
905cachedir
906statedir
907codepagedir
908swatdir
909privatedir
910logfilebase
911ncalrpcdir
912piddir
913lockdir
914configdir
915target_os
916target_vendor
917target_cpu
918target
919host_os
920host_vendor
921host_cpu
922host
923build_os
924build_vendor
925build_cpu
926build
927LIBREPLACEOBJ
928libreplacedir
929builddir
930target_alias
931host_alias
932build_alias
933LIBS
934ECHO_T
935ECHO_N
936ECHO_C
937DEFS
938mandir
939localedir
940libdir
941psdir
942pdfdir
943dvidir
944htmldir
945infodir
946docdir
947oldincludedir
948includedir
949localstatedir
950sharedstatedir
951sysconfdir
952datadir
953datarootdir
954libexecdir
955sbindir
956bindir
957program_transform_name
958prefix
959exec_prefix
960PACKAGE_BUGREPORT
961PACKAGE_STRING
962PACKAGE_VERSION
963PACKAGE_TARNAME
964PACKAGE_NAME
965PATH_SEPARATOR
966SHELL'
967ac_subst_files=''
968ac_user_opts='
969enable_option_checking
970with_fhs
971with_privatedir
972with_rootsbindir
973with_lockdir
974with_statedir
975with_cachedir
976with_piddir
977with_ncalrpcdir
978with_swatdir
979with_configdir
980with_logfilebase
981with_modulesdir
982with_pammodulesdir
983with_mandir
984with_localedir
985with_codepagedir
986with_selftest_prefix
987with_selftest_shrdir
988with_smbtorture4_path
989with_selftest_custom_conf
990enable_debug
991enable_developer
992enable_krb5developer
993enable_picky_developer
994with_cfenc
995enable_largefile
996enable_socket_wrapper
997enable_nss_wrapper
998enable_swat
999with_profiling_data
1000enable_cups
1001enable_iprint
1002with_readline
1003enable_static
1004enable_shared
1005enable_pie
1006enable_relro
1007enable_shared_libs
1008with_static_libs
1009enable_external_libtalloc
1010with_libtalloc
1011enable_external_libtdb
1012with_libtdb
1013with_libnetapi
1014with_libsmbclient
1015with_libsmbsharemodes
1016with_libaddns
1017with_libiconv
1018enable_fam
1019with_afs
1020with_fake_kaserver
1021with_vfs_afsacl
1022with_dfs
1023with_ldap
1024with_ads
1025with_krb5
1026with_dnsupdate
1027with_automount
1028with_cifsmount
1029with_cifsumount
1030with_cifsupcall
1031with_pam
1032with_pam_smbpass
1033with_nisplus_home
1034with_syslog
1035with_syslog_facility
1036with_quotas
1037with_sys_quotas
1038with_utmp
1039with_ctdb
1040with_cluster_support
1041with_acl_support
1042with_aio_support
1043with_sendfile_support
1044with_wbclient
1045with_winbind
1046with_included_popt
1047enable_dnssd
1048enable_avahi
1049enable_pthreadpool
1050with_included_iniparser
1051with_static_modules
1052with_shared_modules
1053enable_merged_build
1054with_sqlite3
1055enable_gnutls
1056enable_netapi
1057with_pthreads
1058with_setproctitle
1059enable_dmalloc
1060'
1061      ac_precious_vars='build_alias
1062host_alias
1063target_alias
1064CC
1065CFLAGS
1066LDFLAGS
1067LIBS
1068CPPFLAGS
1069CPP
1070PKG_CONFIG
1071LIBTALLOC_CFLAGS
1072LIBTALLOC_LIBS
1073LIBTDB_CFLAGS
1074LIBTDB_LIBS
1075PYTHON_VER
1076YACC
1077YFLAGS'
1078
1079
1080# Initialize some variables set by options.
1081ac_init_help=
1082ac_init_version=false
1083ac_unrecognized_opts=
1084ac_unrecognized_sep=
1085# The variables have the same names as the options, with
1086# dashes changed to underlines.
1087cache_file=/dev/null
1088exec_prefix=NONE
1089no_create=
1090no_recursion=
1091prefix=NONE
1092program_prefix=NONE
1093program_suffix=NONE
1094program_transform_name=s,x,x,
1095silent=
1096site=
1097srcdir=
1098verbose=
1099x_includes=NONE
1100x_libraries=NONE
1101
1102# Installation directory options.
1103# These are left unexpanded so users can "make install exec_prefix=/foo"
1104# and all the variables that are supposed to be based on exec_prefix
1105# by default will actually change.
1106# Use braces instead of parens because sh, perl, etc. also accept them.
1107# (The list follows the same order as the GNU Coding Standards.)
1108bindir='${exec_prefix}/bin'
1109sbindir='${exec_prefix}/sbin'
1110libexecdir='${exec_prefix}/libexec'
1111datarootdir='${prefix}/share'
1112datadir='${datarootdir}'
1113sysconfdir='${prefix}/etc'
1114sharedstatedir='${prefix}/com'
1115localstatedir='${prefix}/var'
1116includedir='${prefix}/include'
1117oldincludedir='/usr/include'
1118docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1119infodir='${datarootdir}/info'
1120htmldir='${docdir}'
1121dvidir='${docdir}'
1122pdfdir='${docdir}'
1123psdir='${docdir}'
1124libdir='${exec_prefix}/lib'
1125localedir='${datarootdir}/locale'
1126mandir='${datarootdir}/man'
1127
1128ac_prev=
1129ac_dashdash=
1130for ac_option
1131do
1132  # If the previous option needs an argument, assign it.
1133  if test -n "$ac_prev"; then
1134    eval $ac_prev=\$ac_option
1135    ac_prev=
1136    continue
1137  fi
1138
1139  case $ac_option in
1140  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1141  *)	ac_optarg=yes ;;
1142  esac
1143
1144  # Accept the important Cygnus configure options, so we can diagnose typos.
1145
1146  case $ac_dashdash$ac_option in
1147  --)
1148    ac_dashdash=yes ;;
1149
1150  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1151    ac_prev=bindir ;;
1152  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1153    bindir=$ac_optarg ;;
1154
1155  -build | --build | --buil | --bui | --bu)
1156    ac_prev=build_alias ;;
1157  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1158    build_alias=$ac_optarg ;;
1159
1160  -cache-file | --cache-file | --cache-fil | --cache-fi \
1161  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1162    ac_prev=cache_file ;;
1163  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1164  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1165    cache_file=$ac_optarg ;;
1166
1167  --config-cache | -C)
1168    cache_file=config.cache ;;
1169
1170  -datadir | --datadir | --datadi | --datad)
1171    ac_prev=datadir ;;
1172  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1173    datadir=$ac_optarg ;;
1174
1175  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1176  | --dataroo | --dataro | --datar)
1177    ac_prev=datarootdir ;;
1178  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1179  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1180    datarootdir=$ac_optarg ;;
1181
1182  -disable-* | --disable-*)
1183    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1184    # Reject names that are not valid shell variable names.
1185    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1187   { (exit 1); exit 1; }; }
1188    ac_useropt_orig=$ac_useropt
1189    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190    case $ac_user_opts in
1191      *"
1192"enable_$ac_useropt"
1193"*) ;;
1194      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1195	 ac_unrecognized_sep=', ';;
1196    esac
1197    eval enable_$ac_useropt=no ;;
1198
1199  -docdir | --docdir | --docdi | --doc | --do)
1200    ac_prev=docdir ;;
1201  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1202    docdir=$ac_optarg ;;
1203
1204  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1205    ac_prev=dvidir ;;
1206  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1207    dvidir=$ac_optarg ;;
1208
1209  -enable-* | --enable-*)
1210    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1211    # Reject names that are not valid shell variable names.
1212    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1214   { (exit 1); exit 1; }; }
1215    ac_useropt_orig=$ac_useropt
1216    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217    case $ac_user_opts in
1218      *"
1219"enable_$ac_useropt"
1220"*) ;;
1221      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1222	 ac_unrecognized_sep=', ';;
1223    esac
1224    eval enable_$ac_useropt=\$ac_optarg ;;
1225
1226  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1227  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1228  | --exec | --exe | --ex)
1229    ac_prev=exec_prefix ;;
1230  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1231  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1232  | --exec=* | --exe=* | --ex=*)
1233    exec_prefix=$ac_optarg ;;
1234
1235  -gas | --gas | --ga | --g)
1236    # Obsolete; use --with-gas.
1237    with_gas=yes ;;
1238
1239  -help | --help | --hel | --he | -h)
1240    ac_init_help=long ;;
1241  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1242    ac_init_help=recursive ;;
1243  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1244    ac_init_help=short ;;
1245
1246  -host | --host | --hos | --ho)
1247    ac_prev=host_alias ;;
1248  -host=* | --host=* | --hos=* | --ho=*)
1249    host_alias=$ac_optarg ;;
1250
1251  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1252    ac_prev=htmldir ;;
1253  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1254  | --ht=*)
1255    htmldir=$ac_optarg ;;
1256
1257  -includedir | --includedir | --includedi | --included | --include \
1258  | --includ | --inclu | --incl | --inc)
1259    ac_prev=includedir ;;
1260  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1261  | --includ=* | --inclu=* | --incl=* | --inc=*)
1262    includedir=$ac_optarg ;;
1263
1264  -infodir | --infodir | --infodi | --infod | --info | --inf)
1265    ac_prev=infodir ;;
1266  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1267    infodir=$ac_optarg ;;
1268
1269  -libdir | --libdir | --libdi | --libd)
1270    ac_prev=libdir ;;
1271  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1272    libdir=$ac_optarg ;;
1273
1274  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1275  | --libexe | --libex | --libe)
1276    ac_prev=libexecdir ;;
1277  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1278  | --libexe=* | --libex=* | --libe=*)
1279    libexecdir=$ac_optarg ;;
1280
1281  -localedir | --localedir | --localedi | --localed | --locale)
1282    ac_prev=localedir ;;
1283  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1284    localedir=$ac_optarg ;;
1285
1286  -localstatedir | --localstatedir | --localstatedi | --localstated \
1287  | --localstate | --localstat | --localsta | --localst | --locals)
1288    ac_prev=localstatedir ;;
1289  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1290  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1291    localstatedir=$ac_optarg ;;
1292
1293  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1294    ac_prev=mandir ;;
1295  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1296    mandir=$ac_optarg ;;
1297
1298  -nfp | --nfp | --nf)
1299    # Obsolete; use --without-fp.
1300    with_fp=no ;;
1301
1302  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1303  | --no-cr | --no-c | -n)
1304    no_create=yes ;;
1305
1306  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1307  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1308    no_recursion=yes ;;
1309
1310  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1311  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1312  | --oldin | --oldi | --old | --ol | --o)
1313    ac_prev=oldincludedir ;;
1314  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1315  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1316  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1317    oldincludedir=$ac_optarg ;;
1318
1319  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1320    ac_prev=prefix ;;
1321  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1322    prefix=$ac_optarg ;;
1323
1324  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1325  | --program-pre | --program-pr | --program-p)
1326    ac_prev=program_prefix ;;
1327  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1328  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1329    program_prefix=$ac_optarg ;;
1330
1331  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1332  | --program-suf | --program-su | --program-s)
1333    ac_prev=program_suffix ;;
1334  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1335  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1336    program_suffix=$ac_optarg ;;
1337
1338  -program-transform-name | --program-transform-name \
1339  | --program-transform-nam | --program-transform-na \
1340  | --program-transform-n | --program-transform- \
1341  | --program-transform | --program-transfor \
1342  | --program-transfo | --program-transf \
1343  | --program-trans | --program-tran \
1344  | --progr-tra | --program-tr | --program-t)
1345    ac_prev=program_transform_name ;;
1346  -program-transform-name=* | --program-transform-name=* \
1347  | --program-transform-nam=* | --program-transform-na=* \
1348  | --program-transform-n=* | --program-transform-=* \
1349  | --program-transform=* | --program-transfor=* \
1350  | --program-transfo=* | --program-transf=* \
1351  | --program-trans=* | --program-tran=* \
1352  | --progr-tra=* | --program-tr=* | --program-t=*)
1353    program_transform_name=$ac_optarg ;;
1354
1355  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1356    ac_prev=pdfdir ;;
1357  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1358    pdfdir=$ac_optarg ;;
1359
1360  -psdir | --psdir | --psdi | --psd | --ps)
1361    ac_prev=psdir ;;
1362  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1363    psdir=$ac_optarg ;;
1364
1365  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1366  | -silent | --silent | --silen | --sile | --sil)
1367    silent=yes ;;
1368
1369  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1370    ac_prev=sbindir ;;
1371  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1372  | --sbi=* | --sb=*)
1373    sbindir=$ac_optarg ;;
1374
1375  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1376  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1377  | --sharedst | --shareds | --shared | --share | --shar \
1378  | --sha | --sh)
1379    ac_prev=sharedstatedir ;;
1380  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1381  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1382  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1383  | --sha=* | --sh=*)
1384    sharedstatedir=$ac_optarg ;;
1385
1386  -site | --site | --sit)
1387    ac_prev=site ;;
1388  -site=* | --site=* | --sit=*)
1389    site=$ac_optarg ;;
1390
1391  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1392    ac_prev=srcdir ;;
1393  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1394    srcdir=$ac_optarg ;;
1395
1396  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1397  | --syscon | --sysco | --sysc | --sys | --sy)
1398    ac_prev=sysconfdir ;;
1399  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1400  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1401    sysconfdir=$ac_optarg ;;
1402
1403  -target | --target | --targe | --targ | --tar | --ta | --t)
1404    ac_prev=target_alias ;;
1405  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1406    target_alias=$ac_optarg ;;
1407
1408  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1409    verbose=yes ;;
1410
1411  -version | --version | --versio | --versi | --vers | -V)
1412    ac_init_version=: ;;
1413
1414  -with-* | --with-*)
1415    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1416    # Reject names that are not valid shell variable names.
1417    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1418      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1419   { (exit 1); exit 1; }; }
1420    ac_useropt_orig=$ac_useropt
1421    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422    case $ac_user_opts in
1423      *"
1424"with_$ac_useropt"
1425"*) ;;
1426      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1427	 ac_unrecognized_sep=', ';;
1428    esac
1429    eval with_$ac_useropt=\$ac_optarg ;;
1430
1431  -without-* | --without-*)
1432    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1433    # Reject names that are not valid shell variable names.
1434    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1435      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1436   { (exit 1); exit 1; }; }
1437    ac_useropt_orig=$ac_useropt
1438    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1439    case $ac_user_opts in
1440      *"
1441"with_$ac_useropt"
1442"*) ;;
1443      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1444	 ac_unrecognized_sep=', ';;
1445    esac
1446    eval with_$ac_useropt=no ;;
1447
1448  --x)
1449    # Obsolete; use --with-x.
1450    with_x=yes ;;
1451
1452  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1453  | --x-incl | --x-inc | --x-in | --x-i)
1454    ac_prev=x_includes ;;
1455  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1456  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1457    x_includes=$ac_optarg ;;
1458
1459  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1460  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1461    ac_prev=x_libraries ;;
1462  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1463  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1464    x_libraries=$ac_optarg ;;
1465
1466  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1467Try \`$0 --help' for more information." >&2
1468   { (exit 1); exit 1; }; }
1469    ;;
1470
1471  *=*)
1472    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1473    # Reject names that are not valid shell variable names.
1474    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1475      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1476   { (exit 1); exit 1; }; }
1477    eval $ac_envvar=\$ac_optarg
1478    export $ac_envvar ;;
1479
1480  *)
1481    # FIXME: should be removed in autoconf 3.0.
1482    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1483    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1484      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1485    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1486    ;;
1487
1488  esac
1489done
1490
1491if test -n "$ac_prev"; then
1492  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1493  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1494   { (exit 1); exit 1; }; }
1495fi
1496
1497if test -n "$ac_unrecognized_opts"; then
1498  case $enable_option_checking in
1499    no) ;;
1500    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1501   { (exit 1); exit 1; }; } ;;
1502    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1503  esac
1504fi
1505
1506# Check all directory arguments for consistency.
1507for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1508		datadir sysconfdir sharedstatedir localstatedir includedir \
1509		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1510		libdir localedir mandir
1511do
1512  eval ac_val=\$$ac_var
1513  # Remove trailing slashes.
1514  case $ac_val in
1515    */ )
1516      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1517      eval $ac_var=\$ac_val;;
1518  esac
1519  # Be sure to have absolute directory names.
1520  case $ac_val in
1521    [\\/$]* | ?:[\\/]* )  continue;;
1522    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1523  esac
1524  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1525   { (exit 1); exit 1; }; }
1526done
1527
1528# There might be people who depend on the old broken behavior: `$host'
1529# used to hold the argument of --host etc.
1530# FIXME: To remove some day.
1531build=$build_alias
1532host=$host_alias
1533target=$target_alias
1534
1535# FIXME: To remove some day.
1536if test "x$host_alias" != x; then
1537  if test "x$build_alias" = x; then
1538    cross_compiling=maybe
1539    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1540    If a cross compiler is detected then cross compile mode will be used." >&2
1541  elif test "x$build_alias" != "x$host_alias"; then
1542    cross_compiling=yes
1543  fi
1544fi
1545
1546ac_tool_prefix=
1547test -n "$host_alias" && ac_tool_prefix=$host_alias-
1548
1549test "$silent" = yes && exec 6>/dev/null
1550
1551
1552ac_pwd=`pwd` && test -n "$ac_pwd" &&
1553ac_ls_di=`ls -di .` &&
1554ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1555  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1556   { (exit 1); exit 1; }; }
1557test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1558  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1559   { (exit 1); exit 1; }; }
1560
1561
1562# Find the source files, if location was not specified.
1563if test -z "$srcdir"; then
1564  ac_srcdir_defaulted=yes
1565  # Try the directory containing this script, then the parent directory.
1566  ac_confdir=`$as_dirname -- "$as_myself" ||
1567$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1568	 X"$as_myself" : 'X\(//\)[^/]' \| \
1569	 X"$as_myself" : 'X\(//\)$' \| \
1570	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1571$as_echo X"$as_myself" |
1572    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1573	    s//\1/
1574	    q
1575	  }
1576	  /^X\(\/\/\)[^/].*/{
1577	    s//\1/
1578	    q
1579	  }
1580	  /^X\(\/\/\)$/{
1581	    s//\1/
1582	    q
1583	  }
1584	  /^X\(\/\).*/{
1585	    s//\1/
1586	    q
1587	  }
1588	  s/.*/./; q'`
1589  srcdir=$ac_confdir
1590  if test ! -r "$srcdir/$ac_unique_file"; then
1591    srcdir=..
1592  fi
1593else
1594  ac_srcdir_defaulted=no
1595fi
1596if test ! -r "$srcdir/$ac_unique_file"; then
1597  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1598  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1599   { (exit 1); exit 1; }; }
1600fi
1601ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1602ac_abs_confdir=`(
1603	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1604   { (exit 1); exit 1; }; }
1605	pwd)`
1606# When building in place, set srcdir=.
1607if test "$ac_abs_confdir" = "$ac_pwd"; then
1608  srcdir=.
1609fi
1610# Remove unnecessary trailing slashes from srcdir.
1611# Double slashes in file names in object file debugging info
1612# mess up M-x gdb in Emacs.
1613case $srcdir in
1614*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1615esac
1616for ac_var in $ac_precious_vars; do
1617  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1618  eval ac_env_${ac_var}_value=\$${ac_var}
1619  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1620  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1621done
1622
1623#
1624# Report the --help message.
1625#
1626if test "$ac_init_help" = "long"; then
1627  # Omit some internal or obsolete options to make the list less imposing.
1628  # This message is too long to be a string in the A/UX 3.1 sh.
1629  cat <<_ACEOF
1630\`configure' configures Samba 3 to adapt to many kinds of systems.
1631
1632Usage: $0 [OPTION]... [VAR=VALUE]...
1633
1634To assign environment variables (e.g., CC, CFLAGS...), specify them as
1635VAR=VALUE.  See below for descriptions of some of the useful variables.
1636
1637Defaults for the options are specified in brackets.
1638
1639Configuration:
1640  -h, --help              display this help and exit
1641      --help=short        display options specific to this package
1642      --help=recursive    display the short help of all the included packages
1643  -V, --version           display version information and exit
1644  -q, --quiet, --silent   do not print \`checking...' messages
1645      --cache-file=FILE   cache test results in FILE [disabled]
1646  -C, --config-cache      alias for \`--cache-file=config.cache'
1647  -n, --no-create         do not create output files
1648      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1649
1650Installation directories:
1651  --prefix=PREFIX         install architecture-independent files in PREFIX
1652                          [$ac_default_prefix]
1653  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1654                          [PREFIX]
1655
1656By default, \`make install' will install all the files in
1657\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1658an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1659for instance \`--prefix=\$HOME'.
1660
1661For better control, use the options below.
1662
1663Fine tuning of the installation directories:
1664  --bindir=DIR            user executables [EPREFIX/bin]
1665  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1666  --libexecdir=DIR        program executables [EPREFIX/libexec]
1667  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1668  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1669  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1670  --libdir=DIR            object code libraries [EPREFIX/lib]
1671  --includedir=DIR        C header files [PREFIX/include]
1672  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1673  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1674  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1675  --infodir=DIR           info documentation [DATAROOTDIR/info]
1676  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1677  --mandir=DIR            man documentation [DATAROOTDIR/man]
1678  --docdir=DIR            documentation root [DATAROOTDIR/doc/samba]
1679  --htmldir=DIR           html documentation [DOCDIR]
1680  --dvidir=DIR            dvi documentation [DOCDIR]
1681  --pdfdir=DIR            pdf documentation [DOCDIR]
1682  --psdir=DIR             ps documentation [DOCDIR]
1683_ACEOF
1684
1685  cat <<\_ACEOF
1686
1687System types:
1688  --build=BUILD     configure for building on BUILD [guessed]
1689  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1690  --target=TARGET   configure for building compilers for TARGET [HOST]
1691_ACEOF
1692fi
1693
1694if test -n "$ac_init_help"; then
1695  case $ac_init_help in
1696     short | recursive ) echo "Configuration of Samba 3:";;
1697   esac
1698  cat <<\_ACEOF
1699
1700Optional Features:
1701  --disable-option-checking  ignore unrecognized --enable/--with options
1702  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1703  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1704  --enable-debug          Turn on compiler debugging information (default=no)
1705  --enable-developer      Turn on developer warnings and debugging
1706                          (default=no)
1707  --enable-krb5developer  Turn on developer warnings and debugging, except
1708                          -Wstrict-prototypes (default=no)
1709  --enable-picky-developer
1710                          Halt compilation on warnings
1711  --disable-largefile     omit support for large files
1712  --enable-socket-wrapper Turn on socket wrapper library (default=no)
1713  --enable-nss-wrapper    Turn on nss wrapper library (default=no)
1714  --enable-swat           Build the SWAT tool (default=yes)
1715  --enable-cups           Turn on CUPS support (default=auto)
1716  --enable-iprint         Turn on iPrint support (default=yes if cups is yes)
1717  --enable-static=PKGS    build static libraries default=no
1718  --enable-shared=PKGS    build shared libraries default=yes
1719  --enable-pie            Turn on pie support if available (default=yes)
1720  --enable-relro          Turn on Relocations Read-Only (relro) support if
1721                          available (default=yes)
1722  --enable-shared-libs    Use shared libraries internally (default=yes)
1723  --enable-external-libtalloc
1724                          Enable external talloc [default=auto]
1725  --enable-external-libtdb
1726                          Enable external tdb [default=auto]
1727  --enable-fam            Turn on FAM support (default=auto)
1728  --enable-dnssd          Enable DNS service discovery support (default=no)
1729  --enable-avahi          Enable Avahi support (default=auto)
1730  --enable-pthreadpool    Enable pthreads pool helper support (default=no)
1731  --enable-merged-build   Build Samba 4 as well
1732  --enable-gnutls         Turn on gnutls support (default=yes)
1733  --enable-netapi         Turn on netapi support (default=auto)
1734  --enable-dmalloc        Enable heap debugging [default=no]
1735
1736Optional Packages:
1737  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1738  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1739  --with-fhs              Use FHS-compliant paths (default=no)
1740  --with-privatedir=DIR   Where to put smbpasswd ($ac_default_prefix/private)
1741  --with-rootsbindir=DIR  Which directory to use for root sbin
1742                          ($ac_default_prefix/sbin)
1743  --with-lockdir=DIR      Where to put lock files
1744                          ($ac_default_prefix/var/locks)
1745  --with-statedir=DIR     Where to put persistent state files
1746                          ($ac_default_prefix/var/locks)
1747  --with-cachedir=DIR     Where to put temporary cache files
1748                          ($ac_default_prefix/var/locks)
1749  --with-piddir=DIR       Where to put pid files
1750                          ($ac_default_prefix/var/locks)
1751  --with-ncalrpcdir=DIR   Where to put ncalrpc sockets
1752                          ($ac_default_prefix/var/ncalrpc)
1753  --with-swatdir=DIR      Where to put SWAT files ($ac_default_prefix/swat)
1754  --with-configdir=DIR    Where to put configuration files ($libdir)
1755  --with-logfilebase=DIR  Where to put log files ($VARDIR)
1756  --with-modulesdir=DIR   Where to put shared modules ($libdir)
1757  --with-pammodulesdir=DIR
1758                          Which directory to use for PAM modules
1759                          ($ac_default_prefix/$libdir/security)
1760  --with-mandir=DIR       Where to put man pages ($mandir)
1761  --with-localedir=DIR    Where to put po files
1762                          ($ac_default_prefix/share/locale)
1763  --with-codepagedir=DIR  Where to put codepages
1764                          ($ac_default_prefix/lib/samba)
1765  --with-selftest-prefix=DIR
1766                          The prefix where make test will be run
1767                          ($selftest_prefix)
1768  --with-selftest-shrdir=DIR
1769                          The share directory that make test will be run
1770                          against ($selftest_shrdir)
1771  --with-smbtorture4-path=PATH
1772                          The path to a samba4 smbtorture for make test (none)
1773  --with-selftest-custom-conf=PATH
1774                          An optional custom smb.conf that is included in the
1775                          server smb.conf during make test(none)
1776  --with-cfenc=HEADERDIR  Use internal CoreFoundation encoding API for
1777                          optimization (Mac OS X/Darwin only)
1778  --with-profiling-data   Include gathering source code profile information
1779                          (default=no)
1780  --with-readline=DIR     Look for readline include/libs in DIR (default=auto)
1781  --with-static-libs=LIBS Comma-separated list of names of (internal)
1782                          libraries to link statically (instead of
1783                          dynamically)
1784  --with-libtalloc        Build the libtalloc shared library (default=yes if
1785                          shared libs supported)
1786  --with-libtdb           Build the libtdb shared library (default=yes if
1787                          shared libs supported)
1788  --with-libnetapi        Build the libnetapi shared library (default=yes if
1789                          shared libs supported)
1790  --with-libsmbclient     Build the libsmbclient shared library (default=yes if
1791                          shared libs supported)
1792  --with-libsmbsharemodes Build the libsmbsharemodes shared library (default=yes if
1793                          shared libs supported)
1794  --with-libaddns         Build the libaddns shared library (default=no
1795                          (undefined API))
1796  --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include
1797                          (default=auto)
1798  --with-afs              Include AFS clear-text auth support (default=no)
1799  --with-fake-kaserver    Include AFS fake-kaserver support (default=no)
1800  --with-vfs-afsacl       Include AFS to NT ACL mapping module (default=no)
1801  --with-dce-dfs          Include DCE/DFS clear-text auth support (default=no)
1802  --with-ldap             LDAP support (default yes)
1803  --with-ads              Active Directory support (default auto)
1804  --with-krb5=base-dir    Locate Kerberos 5 support (default=/usr)
1805  --with-dnsupdate        Enable DNS Updates support (default no)
1806  --with-automount        Include automount support (default=no)
1807  --with-cifsmount        Include mount.cifs (Linux only) support
1808                          (default=yes)
1809  --with-cifsumount       Include umount.cifs (Linux only) support
1810                          (default=no)
1811  --with-cifsupcall       Include cifs.upcall (Linux only) support
1812                          (default=yes)
1813  --with-pam              Include PAM support (default=auto)
1814  --with-pam_smbpass      Build PAM module for authenticating against passdb
1815                          backends (default=auto)
1816  --with-nisplus-home     Include NISPLUS_HOME support (default=no)
1817  --with-syslog           Include experimental SYSLOG support (default=no)
1818  --with-syslog-facility  Use a custom syslog facility (default=none)
1819  --with-quotas           Include disk-quota support (default=no)
1820  --with-sys-quotas       Include lib/sysquotas.c support (default=auto)
1821  --with-utmp             Include utmp accounting (default, if supported by
1822                          OS)
1823  --with-ctdb=DIR         Where to find ctdb sources
1824  --with-cluster-support  Enable cluster extensions (default=auto)
1825  --with-acl-support      Include ACL support (default=auto)
1826  --with-aio-support      Include asynchronous io support (default=no)
1827  --with-sendfile-support Check for sendfile support (default=yes)
1828  --with-wbclient         Use external wbclient (optional)
1829  --with-winbind          Build winbind (default, if supported by OS)
1830  --with-included-popt    use bundled popt library, not from system
1831  --with-included-iniparser
1832                          use bundled iniparser library, not from system
1833  --with-static-modules=MODULES
1834                          Comma-separated list of names of modules to
1835                          statically link in
1836  --with-shared-modules=MODULES
1837                          Comma-separated list of names of modules to build
1838                          shared
1839  --with-included-popt    use bundled popt library, not from system
1840  --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
1841  --with-sqlite3          SQLITE3 backend support (default=no)
1842  --with-pthreads         Include pthreads (default=no)
1843  --with-setproctitle     Search for setproctitle support (default=no)
1844
1845Some influential environment variables:
1846  CC          C compiler command
1847  CFLAGS      C compiler flags
1848  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1849              nonstandard directory <lib dir>
1850  LIBS        libraries to pass to the linker, e.g. -l<library>
1851  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1852              you have headers in a nonstandard directory <include dir>
1853  CPP         C preprocessor
1854  PKG_CONFIG  path to pkg-config utility
1855  LIBTALLOC_CFLAGS
1856              C compiler flags for LIBTALLOC, overriding pkg-config
1857  LIBTALLOC_LIBS
1858              linker flags for LIBTALLOC, overriding pkg-config
1859  LIBTDB_CFLAGS
1860              C compiler flags for LIBTDB, overriding pkg-config
1861  LIBTDB_LIBS linker flags for LIBTDB, overriding pkg-config
1862  PYTHON_VER  The installed Python version to use, for example '2.3'. This
1863              string will be appended to the Python interpreter canonical
1864              name.
1865  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1866              the first program found out of: `bison -y', `byacc', `yacc'.
1867  YFLAGS      The list of arguments that will be passed by default to $YACC.
1868              This script will default YFLAGS to the empty string to avoid a
1869              default value of `-d' given by some make applications.
1870
1871Use these variables to override the choices made by `configure' or to help
1872it to find libraries and programs with nonstandard names/locations.
1873
1874Report bugs to <samba-technical@samba.org>.
1875_ACEOF
1876ac_status=$?
1877fi
1878
1879if test "$ac_init_help" = "recursive"; then
1880  # If there are subdirs, report their specific --help.
1881  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1882    test -d "$ac_dir" ||
1883      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1884      continue
1885    ac_builddir=.
1886
1887case "$ac_dir" in
1888.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1889*)
1890  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1891  # A ".." for each directory in $ac_dir_suffix.
1892  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1893  case $ac_top_builddir_sub in
1894  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1895  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1896  esac ;;
1897esac
1898ac_abs_top_builddir=$ac_pwd
1899ac_abs_builddir=$ac_pwd$ac_dir_suffix
1900# for backward compatibility:
1901ac_top_builddir=$ac_top_build_prefix
1902
1903case $srcdir in
1904  .)  # We are building in place.
1905    ac_srcdir=.
1906    ac_top_srcdir=$ac_top_builddir_sub
1907    ac_abs_top_srcdir=$ac_pwd ;;
1908  [\\/]* | ?:[\\/]* )  # Absolute name.
1909    ac_srcdir=$srcdir$ac_dir_suffix;
1910    ac_top_srcdir=$srcdir
1911    ac_abs_top_srcdir=$srcdir ;;
1912  *) # Relative name.
1913    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1914    ac_top_srcdir=$ac_top_build_prefix$srcdir
1915    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1916esac
1917ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1918
1919    cd "$ac_dir" || { ac_status=$?; continue; }
1920    # Check for guested configure.
1921    if test -f "$ac_srcdir/configure.gnu"; then
1922      echo &&
1923      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1924    elif test -f "$ac_srcdir/configure"; then
1925      echo &&
1926      $SHELL "$ac_srcdir/configure" --help=recursive
1927    else
1928      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1929    fi || ac_status=$?
1930    cd "$ac_pwd" || { ac_status=$?; break; }
1931  done
1932fi
1933
1934test -n "$ac_init_help" && exit $ac_status
1935if $ac_init_version; then
1936  cat <<\_ACEOF
1937Samba configure 3
1938generated by GNU Autoconf 2.63
1939
1940Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
19412002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1942This configure script is free software; the Free Software Foundation
1943gives unlimited permission to copy, distribute and modify it.
1944_ACEOF
1945  exit
1946fi
1947cat >config.log <<_ACEOF
1948This file contains any messages produced by compilers while
1949running configure, to aid debugging if configure makes a mistake.
1950
1951It was created by Samba $as_me 3, which was
1952generated by GNU Autoconf 2.63.  Invocation command line was
1953
1954  $ $0 $@
1955
1956_ACEOF
1957exec 5>>config.log
1958{
1959cat <<_ASUNAME
1960## --------- ##
1961## Platform. ##
1962## --------- ##
1963
1964hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1965uname -m = `(uname -m) 2>/dev/null || echo unknown`
1966uname -r = `(uname -r) 2>/dev/null || echo unknown`
1967uname -s = `(uname -s) 2>/dev/null || echo unknown`
1968uname -v = `(uname -v) 2>/dev/null || echo unknown`
1969
1970/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1971/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1972
1973/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1974/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1975/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1976/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1977/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1978/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1979/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1980
1981_ASUNAME
1982
1983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984for as_dir in $PATH
1985do
1986  IFS=$as_save_IFS
1987  test -z "$as_dir" && as_dir=.
1988  $as_echo "PATH: $as_dir"
1989done
1990IFS=$as_save_IFS
1991
1992} >&5
1993
1994cat >&5 <<_ACEOF
1995
1996
1997## ----------- ##
1998## Core tests. ##
1999## ----------- ##
2000
2001_ACEOF
2002
2003
2004# Keep a trace of the command line.
2005# Strip out --no-create and --no-recursion so they do not pile up.
2006# Strip out --silent because we don't want to record it for future runs.
2007# Also quote any args containing shell meta-characters.
2008# Make two passes to allow for proper duplicate-argument suppression.
2009ac_configure_args=
2010ac_configure_args0=
2011ac_configure_args1=
2012ac_must_keep_next=false
2013for ac_pass in 1 2
2014do
2015  for ac_arg
2016  do
2017    case $ac_arg in
2018    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2019    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2020    | -silent | --silent | --silen | --sile | --sil)
2021      continue ;;
2022    *\'*)
2023      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2024    esac
2025    case $ac_pass in
2026    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2027    2)
2028      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2029      if test $ac_must_keep_next = true; then
2030	ac_must_keep_next=false # Got value, back to normal.
2031      else
2032	case $ac_arg in
2033	  *=* | --config-cache | -C | -disable-* | --disable-* \
2034	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2035	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2036	  | -with-* | --with-* | -without-* | --without-* | --x)
2037	    case "$ac_configure_args0 " in
2038	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2039	    esac
2040	    ;;
2041	  -* ) ac_must_keep_next=true ;;
2042	esac
2043      fi
2044      ac_configure_args="$ac_configure_args '$ac_arg'"
2045      ;;
2046    esac
2047  done
2048done
2049$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2050$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2051
2052# When interrupted or exit'd, cleanup temporary files, and complete
2053# config.log.  We remove comments because anyway the quotes in there
2054# would cause problems or look ugly.
2055# WARNING: Use '\'' to represent an apostrophe within the trap.
2056# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2057trap 'exit_status=$?
2058  # Save into config.log some information that might help in debugging.
2059  {
2060    echo
2061
2062    cat <<\_ASBOX
2063## ---------------- ##
2064## Cache variables. ##
2065## ---------------- ##
2066_ASBOX
2067    echo
2068    # The following way of writing the cache mishandles newlines in values,
2069(
2070  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2071    eval ac_val=\$$ac_var
2072    case $ac_val in #(
2073    *${as_nl}*)
2074      case $ac_var in #(
2075      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2076$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2077      esac
2078      case $ac_var in #(
2079      _ | IFS | as_nl) ;; #(
2080      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2081      *) $as_unset $ac_var ;;
2082      esac ;;
2083    esac
2084  done
2085  (set) 2>&1 |
2086    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2087    *${as_nl}ac_space=\ *)
2088      sed -n \
2089	"s/'\''/'\''\\\\'\'''\''/g;
2090	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2091      ;; #(
2092    *)
2093      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2094      ;;
2095    esac |
2096    sort
2097)
2098    echo
2099
2100    cat <<\_ASBOX
2101## ----------------- ##
2102## Output variables. ##
2103## ----------------- ##
2104_ASBOX
2105    echo
2106    for ac_var in $ac_subst_vars
2107    do
2108      eval ac_val=\$$ac_var
2109      case $ac_val in
2110      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111      esac
2112      $as_echo "$ac_var='\''$ac_val'\''"
2113    done | sort
2114    echo
2115
2116    if test -n "$ac_subst_files"; then
2117      cat <<\_ASBOX
2118## ------------------- ##
2119## File substitutions. ##
2120## ------------------- ##
2121_ASBOX
2122      echo
2123      for ac_var in $ac_subst_files
2124      do
2125	eval ac_val=\$$ac_var
2126	case $ac_val in
2127	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128	esac
2129	$as_echo "$ac_var='\''$ac_val'\''"
2130      done | sort
2131      echo
2132    fi
2133
2134    if test -s confdefs.h; then
2135      cat <<\_ASBOX
2136## ----------- ##
2137## confdefs.h. ##
2138## ----------- ##
2139_ASBOX
2140      echo
2141      cat confdefs.h
2142      echo
2143    fi
2144    test "$ac_signal" != 0 &&
2145      $as_echo "$as_me: caught signal $ac_signal"
2146    $as_echo "$as_me: exit $exit_status"
2147  } >&5
2148  rm -f core *.core core.conftest.* &&
2149    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2150    exit $exit_status
2151' 0
2152for ac_signal in 1 2 13 15; do
2153  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2154done
2155ac_signal=0
2156
2157# confdefs.h avoids OS command line length limits that DEFS can exceed.
2158rm -f -r conftest* confdefs.h
2159
2160# Predefined preprocessor variables.
2161
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_NAME "$PACKAGE_NAME"
2164_ACEOF
2165
2166
2167cat >>confdefs.h <<_ACEOF
2168#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2169_ACEOF
2170
2171
2172cat >>confdefs.h <<_ACEOF
2173#define PACKAGE_VERSION "$PACKAGE_VERSION"
2174_ACEOF
2175
2176
2177cat >>confdefs.h <<_ACEOF
2178#define PACKAGE_STRING "$PACKAGE_STRING"
2179_ACEOF
2180
2181
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2184_ACEOF
2185
2186
2187# Let the site file select an alternate cache file if it wants to.
2188# Prefer an explicitly selected file to automatically selected ones.
2189ac_site_file1=NONE
2190ac_site_file2=NONE
2191if test -n "$CONFIG_SITE"; then
2192  ac_site_file1=$CONFIG_SITE
2193elif test "x$prefix" != xNONE; then
2194  ac_site_file1=$prefix/share/config.site
2195  ac_site_file2=$prefix/etc/config.site
2196else
2197  ac_site_file1=$ac_default_prefix/share/config.site
2198  ac_site_file2=$ac_default_prefix/etc/config.site
2199fi
2200for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2201do
2202  test "x$ac_site_file" = xNONE && continue
2203  if test -r "$ac_site_file"; then
2204    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2205$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2206    sed 's/^/| /' "$ac_site_file" >&5
2207    . "$ac_site_file"
2208  fi
2209done
2210
2211if test -r "$cache_file"; then
2212  # Some versions of bash will fail to source /dev/null (special
2213  # files actually), so we avoid doing that.
2214  if test -f "$cache_file"; then
2215    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2216$as_echo "$as_me: loading cache $cache_file" >&6;}
2217    case $cache_file in
2218      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2219      *)                      . "./$cache_file";;
2220    esac
2221  fi
2222else
2223  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2224$as_echo "$as_me: creating cache $cache_file" >&6;}
2225  >$cache_file
2226fi
2227
2228# Check that the precious variables saved in the cache have kept the same
2229# value.
2230ac_cache_corrupted=false
2231for ac_var in $ac_precious_vars; do
2232  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2233  eval ac_new_set=\$ac_env_${ac_var}_set
2234  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2235  eval ac_new_val=\$ac_env_${ac_var}_value
2236  case $ac_old_set,$ac_new_set in
2237    set,)
2238      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2239$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2240      ac_cache_corrupted=: ;;
2241    ,set)
2242      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2243$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2244      ac_cache_corrupted=: ;;
2245    ,);;
2246    *)
2247      if test "x$ac_old_val" != "x$ac_new_val"; then
2248	# differences in whitespace do not lead to failure.
2249	ac_old_val_w=`echo x $ac_old_val`
2250	ac_new_val_w=`echo x $ac_new_val`
2251	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2252	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2253$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2254	  ac_cache_corrupted=:
2255	else
2256	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2257$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2258	  eval $ac_var=\$ac_old_val
2259	fi
2260	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2261$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2262	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2263$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2264      fi;;
2265  esac
2266  # Pass precious variables to config.status.
2267  if test "$ac_new_set" = set; then
2268    case $ac_new_val in
2269    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2270    *) ac_arg=$ac_var=$ac_new_val ;;
2271    esac
2272    case " $ac_configure_args " in
2273      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2274      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2275    esac
2276  fi
2277done
2278if $ac_cache_corrupted; then
2279  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2281  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2282$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2283  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2284$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2285   { (exit 1); exit 1; }; }
2286fi
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312ac_ext=c
2313ac_cpp='$CPP $CPPFLAGS'
2314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317
2318
2319
2320
2321ac_config_headers="$ac_config_headers include/config.h"
2322
2323
2324cat >>confdefs.h <<\_ACEOF
2325#define CONFIG_H_IS_FROM_SAMBA 1
2326_ACEOF
2327
2328
2329case "$PATH" in
2330    */usr/ucb*)
2331	{ $as_echo "$as_me:$LINENO: WARNING: \$PATH contains /usr/ucb - build errors may follow" >&5
2332$as_echo "$as_me: WARNING: \$PATH contains /usr/ucb - build errors may follow" >&2;}
2333	;;
2334esac
2335
2336builddir=`pwd`
2337
2338
2339
2340SMB_VERSION_STRING=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_OFFICIAL_STRING' | cut -d '"' -f2`
2341echo "SAMBA VERSION: ${SMB_VERSION_STRING}"
2342
2343SAMBA_VERSION_GIT_COMMIT_FULLREV=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_GIT_COMMIT_FULLREV' | cut -d ' ' -f3- | cut -d '"' -f2`
2344if test -n "${SAMBA_VERSION_GIT_COMMIT_FULLREV}";then
2345	echo "BUILD COMMIT REVISION: ${SAMBA_VERSION_GIT_COMMIT_FULLREV}"
2346fi
2347SAMBA_VERSION_GIT_COMMIT_DATE=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_GIT_COMMIT_DATE' | cut -d ' ' -f3-`
2348if test -n "${SAMBA_VERSION_GIT_COMMIT_DATE}";then
2349	echo "BUILD COMMIT DATE: ${SAMBA_VERSION_GIT_COMMIT_DATE}"
2350fi
2351SAMBA_VERSION_GIT_COMMIT_TIME=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_GIT_COMMIT_TIME' | cut -d ' ' -f3-`
2352if test -n "${SAMBA_VERSION_GIT_COMMIT_TIME}";then
2353	echo "BUILD COMMIT TIME: ${SAMBA_VERSION_GIT_COMMIT_TIME}"
2354
2355	# just to keep the build-farm gui happy for now...
2356	echo "BUILD REVISION: ${SAMBA_VERSION_GIT_COMMIT_TIME}"
2357fi
2358
2359
2360
2361ac_aux_dir=
2362for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2363  if test -f "$ac_dir/install-sh"; then
2364    ac_aux_dir=$ac_dir
2365    ac_install_sh="$ac_aux_dir/install-sh -c"
2366    break
2367  elif test -f "$ac_dir/install.sh"; then
2368    ac_aux_dir=$ac_dir
2369    ac_install_sh="$ac_aux_dir/install.sh -c"
2370    break
2371  elif test -f "$ac_dir/shtool"; then
2372    ac_aux_dir=$ac_dir
2373    ac_install_sh="$ac_aux_dir/shtool install -c"
2374    break
2375  fi
2376done
2377if test -z "$ac_aux_dir"; then
2378  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2379$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2380   { (exit 1); exit 1; }; }
2381fi
2382
2383# These three variables are undocumented and unsupported,
2384# and are intended to be withdrawn in a future Autoconf release.
2385# They can cause serious problems if a builder's source tree is in a directory
2386# whose full name contains unusual characters.
2387ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2388ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2389ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2390
2391
2392
2393echo "LIBREPLACE_LOCATION_CHECKS: START"
2394
2395libreplacedir=""
2396libreplacepaths="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace $srcdir/../lib/replace $srcdir/../../../lib/replace"
2397for d in $libreplacepaths; do
2398	if test -f "$d/replace.c"; then
2399		libreplacedir="$d"
2400
2401		break;
2402	fi
2403done
2404if test x"$libreplacedir" = "x"; then
2405	{ { $as_echo "$as_me:$LINENO: error: cannot find libreplace in $libreplacepaths" >&5
2406$as_echo "$as_me: error: cannot find libreplace in $libreplacepaths" >&2;}
2407   { (exit 1); exit 1; }; }
2408fi
2409LIBREPLACEOBJ="$libreplacedir/replace.o"
2410
2411
2412# Make sure we can run config.sub.
2413$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2414  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2415$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2416   { (exit 1); exit 1; }; }
2417
2418{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2419$as_echo_n "checking build system type... " >&6; }
2420if test "${ac_cv_build+set}" = set; then
2421  $as_echo_n "(cached) " >&6
2422else
2423  ac_build_alias=$build_alias
2424test "x$ac_build_alias" = x &&
2425  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2426test "x$ac_build_alias" = x &&
2427  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2428$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2429   { (exit 1); exit 1; }; }
2430ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2431  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2432$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2433   { (exit 1); exit 1; }; }
2434
2435fi
2436{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2437$as_echo "$ac_cv_build" >&6; }
2438case $ac_cv_build in
2439*-*-*) ;;
2440*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2441$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2442   { (exit 1); exit 1; }; };;
2443esac
2444build=$ac_cv_build
2445ac_save_IFS=$IFS; IFS='-'
2446set x $ac_cv_build
2447shift
2448build_cpu=$1
2449build_vendor=$2
2450shift; shift
2451# Remember, the first character of IFS is used to create $*,
2452# except with old shells:
2453build_os=$*
2454IFS=$ac_save_IFS
2455case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2456
2457
2458{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2459$as_echo_n "checking host system type... " >&6; }
2460if test "${ac_cv_host+set}" = set; then
2461  $as_echo_n "(cached) " >&6
2462else
2463  if test "x$host_alias" = x; then
2464  ac_cv_host=$ac_cv_build
2465else
2466  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2467    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2468$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2469   { (exit 1); exit 1; }; }
2470fi
2471
2472fi
2473{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2474$as_echo "$ac_cv_host" >&6; }
2475case $ac_cv_host in
2476*-*-*) ;;
2477*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2478$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2479   { (exit 1); exit 1; }; };;
2480esac
2481host=$ac_cv_host
2482ac_save_IFS=$IFS; IFS='-'
2483set x $ac_cv_host
2484shift
2485host_cpu=$1
2486host_vendor=$2
2487shift; shift
2488# Remember, the first character of IFS is used to create $*,
2489# except with old shells:
2490host_os=$*
2491IFS=$ac_save_IFS
2492case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2493
2494
2495{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2496$as_echo_n "checking target system type... " >&6; }
2497if test "${ac_cv_target+set}" = set; then
2498  $as_echo_n "(cached) " >&6
2499else
2500  if test "x$target_alias" = x; then
2501  ac_cv_target=$ac_cv_host
2502else
2503  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2504    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2505$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2506   { (exit 1); exit 1; }; }
2507fi
2508
2509fi
2510{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2511$as_echo "$ac_cv_target" >&6; }
2512case $ac_cv_target in
2513*-*-*) ;;
2514*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2515$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2516   { (exit 1); exit 1; }; };;
2517esac
2518target=$ac_cv_target
2519ac_save_IFS=$IFS; IFS='-'
2520set x $ac_cv_target
2521shift
2522target_cpu=$1
2523target_vendor=$2
2524shift; shift
2525# Remember, the first character of IFS is used to create $*,
2526# except with old shells:
2527target_os=$*
2528IFS=$ac_save_IFS
2529case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2530
2531
2532# The aliases save the names the user supplied, while $host etc.
2533# will get canonicalized.
2534test -n "$target_alias" &&
2535  test "$program_prefix$program_suffix$program_transform_name" = \
2536    NONENONEs,x,x, &&
2537  program_prefix=${target_alias}-
2538
2539echo "LIBREPLACE_LOCATION_CHECKS: END"
2540
2541
2542#################################################
2543# Directory handling stuff to support both the
2544# legacy SAMBA directories and FHS compliant
2545# ones...
2546
2547
2548rootsbindir="\${SBINDIR}"
2549lockdir="\${VARDIR}/locks"
2550piddir="\${VARDIR}/locks"
2551ncalrpcdir="\${VARDIR}/ncalrpc"
2552test "${mandir}" || mandir="\${prefix}/man"
2553logfilebase="\${VARDIR}"
2554privatedir="\${prefix}/private"
2555test "${libdir}" || libdir="\${prefix}/lib"
2556modulesdir="${libdir}"
2557pammodulesdir="${libdir}/security"
2558configdir="${libdir}"
2559swatdir="\${prefix}/swat"
2560codepagedir="\${MODULESDIR}"
2561statedir="\${LOCKDIR}"
2562cachedir="\${LOCKDIR}"
2563localedir="\${prefix}/share/locale"
2564
2565
2566# Check whether --with-fhs was given.
2567if test "${with_fhs+set}" = set; then
2568  withval=$with_fhs;  case "$withval" in
2569  yes)
2570    lockdir="\${VARDIR}/lib/samba"
2571    piddir="\${VARDIR}/run"
2572    mandir="\${prefix}/share/man"
2573    logfilebase="\${VARDIR}/log/samba"
2574    privatedir="\${CONFIGDIR}/private"
2575    test "${libdir}" || libdir="\${prefix}/lib"
2576    modulesdir="${libdir}/samba"
2577    configdir="\${sysconfdir}/samba"
2578    swatdir="\${DATADIR}/samba/swat"
2579    codepagedir="\${MODULESDIR}"
2580    statedir="\${VARDIR}/lib/samba"
2581    cachedir="\${VARDIR}/lib/samba"
2582    ncalrpcdir="\${VARDIR}/ncalrpc"
2583
2584cat >>confdefs.h <<\_ACEOF
2585#define FHS_COMPATIBLE 1
2586_ACEOF
2587
2588    ;;
2589  esac
2590fi
2591
2592
2593#################################################
2594# set private directory location
2595
2596# Check whether --with-privatedir was given.
2597if test "${with_privatedir+set}" = set; then
2598  withval=$with_privatedir;  case "$withval" in
2599  yes|no)
2600  #
2601  # Just in case anybody calls it without argument
2602  #
2603    { $as_echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
2604$as_echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
2605  ;;
2606  * )
2607    privatedir="$withval"
2608    ;;
2609  esac
2610fi
2611
2612
2613#################################################
2614# set root sbin directory location
2615
2616# Check whether --with-rootsbindir was given.
2617if test "${with_rootsbindir+set}" = set; then
2618  withval=$with_rootsbindir;  case "$withval" in
2619  yes|no)
2620  #
2621  # Just in case anybody calls it without argument
2622  #
2623    { $as_echo "$as_me:$LINENO: WARNING: --with-rootsbindir called without argument - will use default" >&5
2624$as_echo "$as_me: WARNING: --with-rootsbindir called without argument - will use default" >&2;}
2625  ;;
2626  * )
2627    rootsbindir="$withval"
2628    ;;
2629  esac
2630fi
2631
2632
2633#################################################
2634# set lock directory location
2635
2636# Check whether --with-lockdir was given.
2637if test "${with_lockdir+set}" = set; then
2638  withval=$with_lockdir;  case "$withval" in
2639  yes|no)
2640  #
2641  # Just in case anybody calls it without argument
2642  #
2643    { $as_echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
2644$as_echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
2645  ;;
2646  * )
2647    lockdir="$withval"
2648    ;;
2649  esac
2650fi
2651
2652
2653#################################################
2654# set state directory location
2655
2656# Check whether --with-statedir was given.
2657if test "${with_statedir+set}" = set; then
2658  withval=$with_statedir;  case "$withval" in
2659  yes|no)
2660  #
2661  # Just in case anybody calls it without argument
2662  #
2663    { $as_echo "$as_me:$LINENO: WARNING: --with-statedir called without argument - will use default" >&5
2664$as_echo "$as_me: WARNING: --with-statedir called without argument - will use default" >&2;}
2665  ;;
2666  * )
2667    statedir="$withval"
2668    ;;
2669  esac
2670fi
2671
2672
2673#################################################
2674# set cache directory location
2675
2676# Check whether --with-cachedir was given.
2677if test "${with_cachedir+set}" = set; then
2678  withval=$with_cachedir;  case "$withval" in
2679  yes|no)
2680  #
2681  # Just in case anybody calls it without argument
2682  #
2683    { $as_echo "$as_me:$LINENO: WARNING: --with-cachedir called without argument - will use default" >&5
2684$as_echo "$as_me: WARNING: --with-cachedir called without argument - will use default" >&2;}
2685  ;;
2686  * )
2687    cachedir="$withval"
2688    ;;
2689  esac
2690fi
2691
2692
2693#################################################
2694# set pid directory location
2695
2696# Check whether --with-piddir was given.
2697if test "${with_piddir+set}" = set; then
2698  withval=$with_piddir;  case "$withval" in
2699  yes|no)
2700  #
2701  # Just in case anybody calls it without argument
2702  #
2703    { $as_echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
2704$as_echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
2705  ;;
2706  * )
2707    piddir="$withval"
2708    ;;
2709  esac
2710fi
2711
2712
2713#################################################
2714# set ncalrpc directory location
2715
2716# Check whether --with-ncalrpcdir was given.
2717if test "${with_ncalrpcdir+set}" = set; then
2718  withval=$with_ncalrpcdir;  case "$withval" in
2719  yes|no)
2720  #
2721  # Just in case anybody calls it without argument
2722  #
2723    { $as_echo "$as_me:$LINENO: WARNING: --with-ncalrpcdir called without argument - will use default" >&5
2724$as_echo "$as_me: WARNING: --with-ncalrpcdir called without argument - will use default" >&2;}
2725  ;;
2726  * )
2727    ncalrpcdir="$withval"
2728    ;;
2729  esac
2730fi
2731
2732
2733#################################################
2734# set SWAT directory location
2735
2736# Check whether --with-swatdir was given.
2737if test "${with_swatdir+set}" = set; then
2738  withval=$with_swatdir;  case "$withval" in
2739  yes|no)
2740  #
2741  # Just in case anybody does it
2742  #
2743    { $as_echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
2744$as_echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
2745  ;;
2746  * )
2747    swatdir="$withval"
2748    ;;
2749  esac
2750fi
2751
2752
2753#################################################
2754# set configuration directory location
2755
2756# Check whether --with-configdir was given.
2757if test "${with_configdir+set}" = set; then
2758  withval=$with_configdir;  case "$withval" in
2759  yes|no)
2760  #
2761  # Just in case anybody does it
2762  #
2763    { $as_echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
2764$as_echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
2765  ;;
2766  * )
2767    configdir="$withval"
2768    ;;
2769  esac
2770fi
2771
2772
2773#################################################
2774# set log directory location
2775
2776# Check whether --with-logfilebase was given.
2777if test "${with_logfilebase+set}" = set; then
2778  withval=$with_logfilebase;  case "$withval" in
2779  yes|no)
2780  #
2781  # Just in case anybody does it
2782  #
2783    { $as_echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
2784$as_echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
2785  ;;
2786  * )
2787    logfilebase="$withval"
2788    ;;
2789  esac
2790fi
2791
2792
2793
2794#################################################
2795# set shared modules (internal lib) directory location
2796
2797# Check whether --with-modulesdir was given.
2798if test "${with_modulesdir+set}" = set; then
2799  withval=$with_modulesdir;  case "$withval" in
2800  yes|no)
2801  #
2802  # Just in case anybody does it
2803  #
2804    { $as_echo "$as_me:$LINENO: WARNING: --with-modulesdir without argument - will use default" >&5
2805$as_echo "$as_me: WARNING: --with-modulesdir without argument - will use default" >&2;}
2806  ;;
2807  * )
2808    modulesdir="$withval"
2809    ;;
2810  esac
2811fi
2812
2813
2814#################################################
2815# set PAM modules directory location
2816
2817# Check whether --with-pammodulesdir was given.
2818if test "${with_pammodulesdir+set}" = set; then
2819  withval=$with_pammodulesdir;  case "$withval" in
2820  yes|no)
2821  #
2822  # Just in case anybody calls it without argument
2823  #
2824    { $as_echo "$as_me:$LINENO: WARNING: --with-pammodulesdir called without argument - will use default" >&5
2825$as_echo "$as_me: WARNING: --with-pammodulesdir called without argument - will use default" >&2;}
2826  ;;
2827  * )
2828    pammodulesdir="$withval"
2829    ;;
2830  esac
2831fi
2832
2833
2834#################################################
2835# set man directory location
2836
2837# Check whether --with-mandir was given.
2838if test "${with_mandir+set}" = set; then
2839  withval=$with_mandir;  case "$withval" in
2840  yes|no)
2841  #
2842  # Just in case anybody does it
2843  #
2844    { $as_echo "$as_me:$LINENO: WARNING: --with-mandir without argument - will use default" >&5
2845$as_echo "$as_me: WARNING: --with-mandir without argument - will use default" >&2;}
2846  ;;
2847  * )
2848    mandir="$withval"
2849    ;;
2850  esac
2851fi
2852
2853
2854################################################
2855# set locale directory location
2856
2857# Check whether --with-localedir was given.
2858if test "${with_localedir+set}" = set; then
2859  withval=$with_localedir;  case "$withval" in
2860  yes|no)
2861    #
2862    # Just in case anybody does it
2863    #
2864    { $as_echo "$as_me:$LINENO: WARNING: --with-localedir called without argument - will use default" >&5
2865$as_echo "$as_me: WARNING: --with-localedir called without argument - will use default" >&2;}
2866  ;;
2867  *)
2868  localedir="$withval"
2869  ;;
2870  esac
2871fi
2872
2873
2874#################################################
2875# set codepage directory location
2876
2877# Check whether --with-codepagedir was given.
2878if test "${with_codepagedir+set}" = set; then
2879  withval=$with_codepagedir;  case "$withval" in
2880  yes|no)
2881  #
2882  # Just in case anybody calls it without argument
2883  #
2884    { $as_echo "$as_me:$LINENO: WARNING: --with-codepagedir called without argument - will use default" >&5
2885$as_echo "$as_me: WARNING: --with-codepagedir called without argument - will use default" >&2;}
2886  ;;
2887  * )
2888    codepagedir="$withval"
2889    ;;
2890  esac
2891fi
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912#################################################
2913# set prefix for 'make test'
2914selftest_prefix="./st"
2915
2916
2917# Check whether --with-selftest-prefix was given.
2918if test "${with_selftest_prefix+set}" = set; then
2919  withval=$with_selftest_prefix;  case "$withval" in
2920  yes|no)
2921    { $as_echo "$as_me:$LINENO: WARNING: --with-selftest-prefix called without argument - will use default" >&5
2922$as_echo "$as_me: WARNING: --with-selftest-prefix called without argument - will use default" >&2;}
2923  ;;
2924  * )
2925    selftest_prefix="$withval"
2926    ;;
2927  esac
2928
2929fi
2930
2931
2932#################################################
2933# set shrdir for 'make test'
2934selftest_shrdir=""
2935
2936
2937# Check whether --with-selftest-shrdir was given.
2938if test "${with_selftest_shrdir+set}" = set; then
2939  withval=$with_selftest_shrdir;  case "$withval" in
2940  yes|no)
2941    { $as_echo "$as_me:$LINENO: WARNING: --with-selftest-shrdir called without argument - will use default" >&5
2942$as_echo "$as_me: WARNING: --with-selftest-shrdir called without argument - will use default" >&2;}
2943  ;;
2944  * )
2945    selftest_shrdir="-s $withval"
2946    ;;
2947  esac
2948
2949fi
2950
2951
2952#################################################
2953# set path of samba4's smbtorture
2954smbtorture4_path=""
2955
2956smbtorture4_option=""
2957
2958
2959# Check whether --with-smbtorture4_path was given.
2960if test "${with_smbtorture4_path+set}" = set; then
2961  withval=$with_smbtorture4_path;  case "$withval" in
2962  yes|no)
2963    { { $as_echo "$as_me:$LINENO: error: --with-smbtorture4-path should take a path" >&5
2964$as_echo "$as_me: error: --with-smbtorture4-path should take a path" >&2;}
2965   { (exit 1); exit 1; }; }
2966  ;;
2967  * )
2968    smbtorture4_path="$withval"
2969    if test -z "$smbtorture4_path" -a ! -f $smbtorture4_path; then
2970    	{ { $as_echo "$as_me:$LINENO: error: '$smbtorture_path' does not  exist!" >&5
2971$as_echo "$as_me: error: '$smbtorture_path' does not  exist!" >&2;}
2972   { (exit 1); exit 1; }; }
2973    fi
2974    smbtorture4_option="-t $withval"
2975  ;;
2976 esac
2977
2978fi
2979
2980
2981#################################################
2982# set custom conf for make test
2983selftest_custom_conf=""
2984
2985
2986# Check whether --with-selftest_custom_conf was given.
2987if test "${with_selftest_custom_conf+set}" = set; then
2988  withval=$with_selftest_custom_conf;  case "$withval" in
2989  yes|no)
2990    { { $as_echo "$as_me:$LINENO: error: --with-selftest-custom-conf should take a path" >&5
2991$as_echo "$as_me: error: --with-selftest-custom-conf should take a path" >&2;}
2992   { (exit 1); exit 1; }; }
2993  ;;
2994  * )
2995    selftest_custom_conf="$withval"
2996    if test -z "$selftest_custom_conf" -a ! -f $selftest_custom_conf; then
2997	{ { $as_echo "$as_me:$LINENO: error: '$selftest_custom_conf' does not  exist!" >&5
2998$as_echo "$as_me: error: '$selftest_custom_conf' does not  exist!" >&2;}
2999   { (exit 1); exit 1; }; }
3000    fi
3001    selftest_custom_conf="-c $withval"
3002  ;;
3003 esac
3004
3005fi
3006
3007
3008## check for --enable-debug first before checking CFLAGS before
3009## so that we don't mix -O and -g
3010debug=no
3011# Check whether --enable-debug was given.
3012if test "${enable_debug+set}" = set; then
3013  enableval=$enable_debug; if eval "test x$enable_debug = xyes"; then
3014	debug=yes
3015    fi
3016fi
3017
3018
3019
3020developer=no
3021# Check whether --enable-developer was given.
3022if test "${enable_developer+set}" = set; then
3023  enableval=$enable_developer; if eval "test x$enable_developer = xyes"; then
3024        debug=yes
3025        developer=yes
3026    fi
3027fi
3028
3029
3030krb5developer=no
3031# Check whether --enable-krb5developer was given.
3032if test "${enable_krb5developer+set}" = set; then
3033  enableval=$enable_krb5developer; if eval "test x$enable_krb5developer = xyes"; then
3034        debug=yes
3035        developer=yes
3036	krb5_developer=yes
3037    fi
3038fi
3039
3040
3041picky_developer=no
3042# Check whether --enable-picky-developer was given.
3043if test "${enable_picky_developer+set}" = set; then
3044  enableval=$enable_picky_developer; if eval "test x$enable_picky_developer = xyes"; then
3045        debug=yes
3046        developer=yes
3047        picky_developer=yes
3048    fi
3049fi
3050
3051
3052
3053# Check whether --with-cfenc was given.
3054if test "${with_cfenc+set}" = set; then
3055  withval=$with_cfenc;
3056# May be in source $withval/CoreFoundation/StringEncodings.subproj.
3057# Should have been in framework $withval/CoreFoundation.framework/Headers.
3058for d in \
3059    $withval/CoreFoundation/StringEncodings.subproj \
3060    $withval/StringEncodings.subproj \
3061    $withval/CoreFoundation.framework/Headers \
3062    $withval/Headers \
3063    $withval
3064do
3065    if test -r $d/CFStringEncodingConverter.h; then
3066        ln -sfh $d include/CoreFoundation
3067    fi
3068done
3069
3070fi
3071
3072
3073
3074# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3075#
3076# Copyright �� 2004 Scott James Remnant <scott@netsplit.com>.
3077#
3078# This program is free software; you can redistribute it and/or modify
3079# it under the terms of the GNU General Public License as published by
3080# the Free Software Foundation; either version 3 of the License, or
3081# (at your option) any later version.
3082#
3083# This program is distributed in the hope that it will be useful, but
3084# WITHOUT ANY WARRANTY; without even the implied warranty of
3085# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3086# General Public License for more details.
3087#
3088# You should have received a copy of the GNU General Public License
3089# along with this program; if not, see <http://www.gnu.org/licenses/>.
3090#
3091# As a special exception to the GNU General Public License, if you
3092# distribute this file as part of a program that contains a
3093# configuration script generated by Autoconf, you may include it under
3094# the same distribution terms that you use for the rest of that program.
3095
3096# PKG_PROG_PKG_CONFIG([MIN-VERSION])
3097# ----------------------------------
3098# PKG_PROG_PKG_CONFIG
3099
3100# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3101#
3102# Check to see whether a particular set of modules exists.  Similar
3103# to PKG_CHECK_MODULES(), but does not set variables or print errors.
3104#
3105#
3106# Similar to PKG_CHECK_MODULES, make sure that the first instance of
3107# this or PKG_CHECK_MODULES is called, or make sure to call
3108# PKG_CHECK_EXISTS manually
3109# --------------------------------------------------------------
3110
3111
3112
3113# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3114# ---------------------------------------------
3115# _PKG_CONFIG
3116
3117# _PKG_SHORT_ERRORS_SUPPORTED
3118# -----------------------------
3119# _PKG_SHORT_ERRORS_SUPPORTED
3120
3121
3122# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3123# [ACTION-IF-NOT-FOUND])
3124#
3125#
3126# Note that if there is a possibility the first call to
3127# PKG_CHECK_MODULES might not happen, you should be sure to include an
3128# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3129#
3130#
3131# --------------------------------------------------------------
3132# PKG_CHECK_MODULES
3133
3134
3135
3136
3137echo "LIBREPLACE_CC_CHECKS: START"
3138
3139
3140ac_cv_prog_cc_Ae=no
3141
3142savedCFLAGS=$CFLAGS
3143ac_ext=c
3144ac_cpp='$CPP $CPPFLAGS'
3145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148if test -n "$ac_tool_prefix"; then
3149  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3150set dummy ${ac_tool_prefix}gcc; ac_word=$2
3151{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3152$as_echo_n "checking for $ac_word... " >&6; }
3153if test "${ac_cv_prog_CC+set}" = set; then
3154  $as_echo_n "(cached) " >&6
3155else
3156  if test -n "$CC"; then
3157  ac_cv_prog_CC="$CC" # Let the user override the test.
3158else
3159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160for as_dir in $PATH
3161do
3162  IFS=$as_save_IFS
3163  test -z "$as_dir" && as_dir=.
3164  for ac_exec_ext in '' $ac_executable_extensions; do
3165  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3167    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168    break 2
3169  fi
3170done
3171done
3172IFS=$as_save_IFS
3173
3174fi
3175fi
3176CC=$ac_cv_prog_CC
3177if test -n "$CC"; then
3178  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3179$as_echo "$CC" >&6; }
3180else
3181  { $as_echo "$as_me:$LINENO: result: no" >&5
3182$as_echo "no" >&6; }
3183fi
3184
3185
3186fi
3187if test -z "$ac_cv_prog_CC"; then
3188  ac_ct_CC=$CC
3189  # Extract the first word of "gcc", so it can be a program name with args.
3190set dummy gcc; ac_word=$2
3191{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3192$as_echo_n "checking for $ac_word... " >&6; }
3193if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3194  $as_echo_n "(cached) " >&6
3195else
3196  if test -n "$ac_ct_CC"; then
3197  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198else
3199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200for as_dir in $PATH
3201do
3202  IFS=$as_save_IFS
3203  test -z "$as_dir" && as_dir=.
3204  for ac_exec_ext in '' $ac_executable_extensions; do
3205  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206    ac_cv_prog_ac_ct_CC="gcc"
3207    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208    break 2
3209  fi
3210done
3211done
3212IFS=$as_save_IFS
3213
3214fi
3215fi
3216ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217if test -n "$ac_ct_CC"; then
3218  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3219$as_echo "$ac_ct_CC" >&6; }
3220else
3221  { $as_echo "$as_me:$LINENO: result: no" >&5
3222$as_echo "no" >&6; }
3223fi
3224
3225  if test "x$ac_ct_CC" = x; then
3226    CC=""
3227  else
3228    case $cross_compiling:$ac_tool_warned in
3229yes:)
3230{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232ac_tool_warned=yes ;;
3233esac
3234    CC=$ac_ct_CC
3235  fi
3236else
3237  CC="$ac_cv_prog_CC"
3238fi
3239
3240if test -z "$CC"; then
3241          if test -n "$ac_tool_prefix"; then
3242    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3243set dummy ${ac_tool_prefix}cc; ac_word=$2
3244{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3245$as_echo_n "checking for $ac_word... " >&6; }
3246if test "${ac_cv_prog_CC+set}" = set; then
3247  $as_echo_n "(cached) " >&6
3248else
3249  if test -n "$CC"; then
3250  ac_cv_prog_CC="$CC" # Let the user override the test.
3251else
3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255  IFS=$as_save_IFS
3256  test -z "$as_dir" && as_dir=.
3257  for ac_exec_ext in '' $ac_executable_extensions; do
3258  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259    ac_cv_prog_CC="${ac_tool_prefix}cc"
3260    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261    break 2
3262  fi
3263done
3264done
3265IFS=$as_save_IFS
3266
3267fi
3268fi
3269CC=$ac_cv_prog_CC
3270if test -n "$CC"; then
3271  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3272$as_echo "$CC" >&6; }
3273else
3274  { $as_echo "$as_me:$LINENO: result: no" >&5
3275$as_echo "no" >&6; }
3276fi
3277
3278
3279  fi
3280fi
3281if test -z "$CC"; then
3282  # Extract the first word of "cc", so it can be a program name with args.
3283set dummy cc; ac_word=$2
3284{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3285$as_echo_n "checking for $ac_word... " >&6; }
3286if test "${ac_cv_prog_CC+set}" = set; then
3287  $as_echo_n "(cached) " >&6
3288else
3289  if test -n "$CC"; then
3290  ac_cv_prog_CC="$CC" # Let the user override the test.
3291else
3292  ac_prog_rejected=no
3293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294for as_dir in $PATH
3295do
3296  IFS=$as_save_IFS
3297  test -z "$as_dir" && as_dir=.
3298  for ac_exec_ext in '' $ac_executable_extensions; do
3299  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3301       ac_prog_rejected=yes
3302       continue
3303     fi
3304    ac_cv_prog_CC="cc"
3305    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306    break 2
3307  fi
3308done
3309done
3310IFS=$as_save_IFS
3311
3312if test $ac_prog_rejected = yes; then
3313  # We found a bogon in the path, so make sure we never use it.
3314  set dummy $ac_cv_prog_CC
3315  shift
3316  if test $# != 0; then
3317    # We chose a different compiler from the bogus one.
3318    # However, it has the same basename, so the bogon will be chosen
3319    # first if we set CC to just the basename; use the full file name.
3320    shift
3321    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3322  fi
3323fi
3324fi
3325fi
3326CC=$ac_cv_prog_CC
3327if test -n "$CC"; then
3328  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3329$as_echo "$CC" >&6; }
3330else
3331  { $as_echo "$as_me:$LINENO: result: no" >&5
3332$as_echo "no" >&6; }
3333fi
3334
3335
3336fi
3337if test -z "$CC"; then
3338  if test -n "$ac_tool_prefix"; then
3339  for ac_prog in cl.exe
3340  do
3341    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3342set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3344$as_echo_n "checking for $ac_word... " >&6; }
3345if test "${ac_cv_prog_CC+set}" = set; then
3346  $as_echo_n "(cached) " >&6
3347else
3348  if test -n "$CC"; then
3349  ac_cv_prog_CC="$CC" # Let the user override the test.
3350else
3351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352for as_dir in $PATH
3353do
3354  IFS=$as_save_IFS
3355  test -z "$as_dir" && as_dir=.
3356  for ac_exec_ext in '' $ac_executable_extensions; do
3357  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3359    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360    break 2
3361  fi
3362done
3363done
3364IFS=$as_save_IFS
3365
3366fi
3367fi
3368CC=$ac_cv_prog_CC
3369if test -n "$CC"; then
3370  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3371$as_echo "$CC" >&6; }
3372else
3373  { $as_echo "$as_me:$LINENO: result: no" >&5
3374$as_echo "no" >&6; }
3375fi
3376
3377
3378    test -n "$CC" && break
3379  done
3380fi
3381if test -z "$CC"; then
3382  ac_ct_CC=$CC
3383  for ac_prog in cl.exe
3384do
3385  # Extract the first word of "$ac_prog", so it can be a program name with args.
3386set dummy $ac_prog; ac_word=$2
3387{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3388$as_echo_n "checking for $ac_word... " >&6; }
3389if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3390  $as_echo_n "(cached) " >&6
3391else
3392  if test -n "$ac_ct_CC"; then
3393  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3394else
3395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396for as_dir in $PATH
3397do
3398  IFS=$as_save_IFS
3399  test -z "$as_dir" && as_dir=.
3400  for ac_exec_ext in '' $ac_executable_extensions; do
3401  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402    ac_cv_prog_ac_ct_CC="$ac_prog"
3403    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404    break 2
3405  fi
3406done
3407done
3408IFS=$as_save_IFS
3409
3410fi
3411fi
3412ac_ct_CC=$ac_cv_prog_ac_ct_CC
3413if test -n "$ac_ct_CC"; then
3414  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3415$as_echo "$ac_ct_CC" >&6; }
3416else
3417  { $as_echo "$as_me:$LINENO: result: no" >&5
3418$as_echo "no" >&6; }
3419fi
3420
3421
3422  test -n "$ac_ct_CC" && break
3423done
3424
3425  if test "x$ac_ct_CC" = x; then
3426    CC=""
3427  else
3428    case $cross_compiling:$ac_tool_warned in
3429yes:)
3430{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3432ac_tool_warned=yes ;;
3433esac
3434    CC=$ac_ct_CC
3435  fi
3436fi
3437
3438fi
3439
3440
3441test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3444See \`config.log' for more details." >&5
3445$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3446See \`config.log' for more details." >&2;}
3447   { (exit 1); exit 1; }; }; }
3448
3449# Provide some information about the compiler.
3450$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3451set X $ac_compile
3452ac_compiler=$2
3453{ (ac_try="$ac_compiler --version >&5"
3454case "(($ac_try" in
3455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456  *) ac_try_echo=$ac_try;;
3457esac
3458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3459$as_echo "$ac_try_echo") >&5
3460  (eval "$ac_compiler --version >&5") 2>&5
3461  ac_status=$?
3462  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); }
3464{ (ac_try="$ac_compiler -v >&5"
3465case "(($ac_try" in
3466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467  *) ac_try_echo=$ac_try;;
3468esac
3469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3470$as_echo "$ac_try_echo") >&5
3471  (eval "$ac_compiler -v >&5") 2>&5
3472  ac_status=$?
3473  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); }
3475{ (ac_try="$ac_compiler -V >&5"
3476case "(($ac_try" in
3477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478  *) ac_try_echo=$ac_try;;
3479esac
3480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3481$as_echo "$ac_try_echo") >&5
3482  (eval "$ac_compiler -V >&5") 2>&5
3483  ac_status=$?
3484  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); }
3486
3487cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h.  */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h.  */
3493
3494int
3495main ()
3496{
3497
3498  ;
3499  return 0;
3500}
3501_ACEOF
3502ac_clean_files_save=$ac_clean_files
3503ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3504# Try to create an executable without -o first, disregard a.out.
3505# It will help us diagnose broken compilers, and finding out an intuition
3506# of exeext.
3507{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3508$as_echo_n "checking for C compiler default output file name... " >&6; }
3509ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3510
3511# The possible output files:
3512ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3513
3514ac_rmfiles=
3515for ac_file in $ac_files
3516do
3517  case $ac_file in
3518    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3519    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3520  esac
3521done
3522rm -f $ac_rmfiles
3523
3524if { (ac_try="$ac_link_default"
3525case "(($ac_try" in
3526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527  *) ac_try_echo=$ac_try;;
3528esac
3529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3530$as_echo "$ac_try_echo") >&5
3531  (eval "$ac_link_default") 2>&5
3532  ac_status=$?
3533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534  (exit $ac_status); }; then
3535  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3536# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3537# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3538# so that the user can short-circuit this test for compilers unknown to
3539# Autoconf.
3540for ac_file in $ac_files ''
3541do
3542  test -f "$ac_file" || continue
3543  case $ac_file in
3544    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3545	;;
3546    [ab].out )
3547	# We found the default executable, but exeext='' is most
3548	# certainly right.
3549	break;;
3550    *.* )
3551        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3552	then :; else
3553	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3554	fi
3555	# We set ac_cv_exeext here because the later test for it is not
3556	# safe: cross compilers may not add the suffix if given an `-o'
3557	# argument, so we may need to know it at that point already.
3558	# Even if this section looks crufty: it has the advantage of
3559	# actually working.
3560	break;;
3561    * )
3562	break;;
3563  esac
3564done
3565test "$ac_cv_exeext" = no && ac_cv_exeext=
3566
3567else
3568  ac_file=''
3569fi
3570
3571{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3572$as_echo "$ac_file" >&6; }
3573if test -z "$ac_file"; then
3574  $as_echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
3577{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3580See \`config.log' for more details." >&5
3581$as_echo "$as_me: error: C compiler cannot create executables
3582See \`config.log' for more details." >&2;}
3583   { (exit 77); exit 77; }; }; }
3584fi
3585
3586ac_exeext=$ac_cv_exeext
3587
3588# Check that the compiler produces executables we can run.  If not, either
3589# the compiler is broken, or we cross compile.
3590{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3591$as_echo_n "checking whether the C compiler works... " >&6; }
3592# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3593# If not cross compiling, check that we can run a simple program.
3594if test "$cross_compiling" != yes; then
3595  if { ac_try='./$ac_file'
3596  { (case "(($ac_try" in
3597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598  *) ac_try_echo=$ac_try;;
3599esac
3600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3601$as_echo "$ac_try_echo") >&5
3602  (eval "$ac_try") 2>&5
3603  ac_status=$?
3604  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); }; }; then
3606    cross_compiling=no
3607  else
3608    if test "$cross_compiling" = maybe; then
3609	cross_compiling=yes
3610    else
3611	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3614If you meant to cross compile, use \`--host'.
3615See \`config.log' for more details." >&5
3616$as_echo "$as_me: error: cannot run C compiled programs.
3617If you meant to cross compile, use \`--host'.
3618See \`config.log' for more details." >&2;}
3619   { (exit 1); exit 1; }; }; }
3620    fi
3621  fi
3622fi
3623{ $as_echo "$as_me:$LINENO: result: yes" >&5
3624$as_echo "yes" >&6; }
3625
3626rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3627ac_clean_files=$ac_clean_files_save
3628# Check that the compiler produces executables we can run.  If not, either
3629# the compiler is broken, or we cross compile.
3630{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3631$as_echo_n "checking whether we are cross compiling... " >&6; }
3632{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3633$as_echo "$cross_compiling" >&6; }
3634
3635{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3636$as_echo_n "checking for suffix of executables... " >&6; }
3637if { (ac_try="$ac_link"
3638case "(($ac_try" in
3639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640  *) ac_try_echo=$ac_try;;
3641esac
3642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3643$as_echo "$ac_try_echo") >&5
3644  (eval "$ac_link") 2>&5
3645  ac_status=$?
3646  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647  (exit $ac_status); }; then
3648  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3649# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3650# work properly (i.e., refer to `conftest.exe'), while it won't with
3651# `rm'.
3652for ac_file in conftest.exe conftest conftest.*; do
3653  test -f "$ac_file" || continue
3654  case $ac_file in
3655    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3656    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3657	  break;;
3658    * ) break;;
3659  esac
3660done
3661else
3662  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3665See \`config.log' for more details." >&5
3666$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3667See \`config.log' for more details." >&2;}
3668   { (exit 1); exit 1; }; }; }
3669fi
3670
3671rm -f conftest$ac_cv_exeext
3672{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3673$as_echo "$ac_cv_exeext" >&6; }
3674
3675rm -f conftest.$ac_ext
3676EXEEXT=$ac_cv_exeext
3677ac_exeext=$EXEEXT
3678{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3679$as_echo_n "checking for suffix of object files... " >&6; }
3680if test "${ac_cv_objext+set}" = set; then
3681  $as_echo_n "(cached) " >&6
3682else
3683  cat >conftest.$ac_ext <<_ACEOF
3684/* confdefs.h.  */
3685_ACEOF
3686cat confdefs.h >>conftest.$ac_ext
3687cat >>conftest.$ac_ext <<_ACEOF
3688/* end confdefs.h.  */
3689
3690int
3691main ()
3692{
3693
3694  ;
3695  return 0;
3696}
3697_ACEOF
3698rm -f conftest.o conftest.obj
3699if { (ac_try="$ac_compile"
3700case "(($ac_try" in
3701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702  *) ac_try_echo=$ac_try;;
3703esac
3704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3705$as_echo "$ac_try_echo") >&5
3706  (eval "$ac_compile") 2>&5
3707  ac_status=$?
3708  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709  (exit $ac_status); }; then
3710  for ac_file in conftest.o conftest.obj conftest.*; do
3711  test -f "$ac_file" || continue;
3712  case $ac_file in
3713    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3714    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3715       break;;
3716  esac
3717done
3718else
3719  $as_echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3725See \`config.log' for more details." >&5
3726$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3727See \`config.log' for more details." >&2;}
3728   { (exit 1); exit 1; }; }; }
3729fi
3730
3731rm -f conftest.$ac_cv_objext conftest.$ac_ext
3732fi
3733{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3734$as_echo "$ac_cv_objext" >&6; }
3735OBJEXT=$ac_cv_objext
3736ac_objext=$OBJEXT
3737{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3738$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3739if test "${ac_cv_c_compiler_gnu+set}" = set; then
3740  $as_echo_n "(cached) " >&6
3741else
3742  cat >conftest.$ac_ext <<_ACEOF
3743/* confdefs.h.  */
3744_ACEOF
3745cat confdefs.h >>conftest.$ac_ext
3746cat >>conftest.$ac_ext <<_ACEOF
3747/* end confdefs.h.  */
3748
3749int
3750main ()
3751{
3752#ifndef __GNUC__
3753       choke me
3754#endif
3755
3756  ;
3757  return 0;
3758}
3759_ACEOF
3760rm -f conftest.$ac_objext
3761if { (ac_try="$ac_compile"
3762case "(($ac_try" in
3763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764  *) ac_try_echo=$ac_try;;
3765esac
3766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3767$as_echo "$ac_try_echo") >&5
3768  (eval "$ac_compile") 2>conftest.er1
3769  ac_status=$?
3770  grep -v '^ *+' conftest.er1 >conftest.err
3771  rm -f conftest.er1
3772  cat conftest.err >&5
3773  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774  (exit $ac_status); } && {
3775	 test -z "$ac_c_werror_flag" ||
3776	 test ! -s conftest.err
3777       } && test -s conftest.$ac_objext; then
3778  ac_compiler_gnu=yes
3779else
3780  $as_echo "$as_me: failed program was:" >&5
3781sed 's/^/| /' conftest.$ac_ext >&5
3782
3783	ac_compiler_gnu=no
3784fi
3785
3786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787ac_cv_c_compiler_gnu=$ac_compiler_gnu
3788
3789fi
3790{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3791$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3792if test $ac_compiler_gnu = yes; then
3793  GCC=yes
3794else
3795  GCC=
3796fi
3797ac_test_CFLAGS=${CFLAGS+set}
3798ac_save_CFLAGS=$CFLAGS
3799{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3800$as_echo_n "checking whether $CC accepts -g... " >&6; }
3801if test "${ac_cv_prog_cc_g+set}" = set; then
3802  $as_echo_n "(cached) " >&6
3803else
3804  ac_save_c_werror_flag=$ac_c_werror_flag
3805   ac_c_werror_flag=yes
3806   ac_cv_prog_cc_g=no
3807   CFLAGS="-g"
3808   cat >conftest.$ac_ext <<_ACEOF
3809/* confdefs.h.  */
3810_ACEOF
3811cat confdefs.h >>conftest.$ac_ext
3812cat >>conftest.$ac_ext <<_ACEOF
3813/* end confdefs.h.  */
3814
3815int
3816main ()
3817{
3818
3819  ;
3820  return 0;
3821}
3822_ACEOF
3823rm -f conftest.$ac_objext
3824if { (ac_try="$ac_compile"
3825case "(($ac_try" in
3826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827  *) ac_try_echo=$ac_try;;
3828esac
3829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3830$as_echo "$ac_try_echo") >&5
3831  (eval "$ac_compile") 2>conftest.er1
3832  ac_status=$?
3833  grep -v '^ *+' conftest.er1 >conftest.err
3834  rm -f conftest.er1
3835  cat conftest.err >&5
3836  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837  (exit $ac_status); } && {
3838	 test -z "$ac_c_werror_flag" ||
3839	 test ! -s conftest.err
3840       } && test -s conftest.$ac_objext; then
3841  ac_cv_prog_cc_g=yes
3842else
3843  $as_echo "$as_me: failed program was:" >&5
3844sed 's/^/| /' conftest.$ac_ext >&5
3845
3846	CFLAGS=""
3847      cat >conftest.$ac_ext <<_ACEOF
3848/* confdefs.h.  */
3849_ACEOF
3850cat confdefs.h >>conftest.$ac_ext
3851cat >>conftest.$ac_ext <<_ACEOF
3852/* end confdefs.h.  */
3853
3854int
3855main ()
3856{
3857
3858  ;
3859  return 0;
3860}
3861_ACEOF
3862rm -f conftest.$ac_objext
3863if { (ac_try="$ac_compile"
3864case "(($ac_try" in
3865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866  *) ac_try_echo=$ac_try;;
3867esac
3868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3869$as_echo "$ac_try_echo") >&5
3870  (eval "$ac_compile") 2>conftest.er1
3871  ac_status=$?
3872  grep -v '^ *+' conftest.er1 >conftest.err
3873  rm -f conftest.er1
3874  cat conftest.err >&5
3875  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876  (exit $ac_status); } && {
3877	 test -z "$ac_c_werror_flag" ||
3878	 test ! -s conftest.err
3879       } && test -s conftest.$ac_objext; then
3880  :
3881else
3882  $as_echo "$as_me: failed program was:" >&5
3883sed 's/^/| /' conftest.$ac_ext >&5
3884
3885	ac_c_werror_flag=$ac_save_c_werror_flag
3886	 CFLAGS="-g"
3887	 cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h.  */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h.  */
3893
3894int
3895main ()
3896{
3897
3898  ;
3899  return 0;
3900}
3901_ACEOF
3902rm -f conftest.$ac_objext
3903if { (ac_try="$ac_compile"
3904case "(($ac_try" in
3905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906  *) ac_try_echo=$ac_try;;
3907esac
3908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3909$as_echo "$ac_try_echo") >&5
3910  (eval "$ac_compile") 2>conftest.er1
3911  ac_status=$?
3912  grep -v '^ *+' conftest.er1 >conftest.err
3913  rm -f conftest.er1
3914  cat conftest.err >&5
3915  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916  (exit $ac_status); } && {
3917	 test -z "$ac_c_werror_flag" ||
3918	 test ! -s conftest.err
3919       } && test -s conftest.$ac_objext; then
3920  ac_cv_prog_cc_g=yes
3921else
3922  $as_echo "$as_me: failed program was:" >&5
3923sed 's/^/| /' conftest.$ac_ext >&5
3924
3925
3926fi
3927
3928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929fi
3930
3931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932fi
3933
3934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935   ac_c_werror_flag=$ac_save_c_werror_flag
3936fi
3937{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3938$as_echo "$ac_cv_prog_cc_g" >&6; }
3939if test "$ac_test_CFLAGS" = set; then
3940  CFLAGS=$ac_save_CFLAGS
3941elif test $ac_cv_prog_cc_g = yes; then
3942  if test "$GCC" = yes; then
3943    CFLAGS="-g -O2"
3944  else
3945    CFLAGS="-g"
3946  fi
3947else
3948  if test "$GCC" = yes; then
3949    CFLAGS="-O2"
3950  else
3951    CFLAGS=
3952  fi
3953fi
3954{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3955$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3956if test "${ac_cv_prog_cc_c89+set}" = set; then
3957  $as_echo_n "(cached) " >&6
3958else
3959  ac_cv_prog_cc_c89=no
3960ac_save_CC=$CC
3961cat >conftest.$ac_ext <<_ACEOF
3962/* confdefs.h.  */
3963_ACEOF
3964cat confdefs.h >>conftest.$ac_ext
3965cat >>conftest.$ac_ext <<_ACEOF
3966/* end confdefs.h.  */
3967#include <stdarg.h>
3968#include <stdio.h>
3969#include <sys/types.h>
3970#include <sys/stat.h>
3971/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3972struct buf { int x; };
3973FILE * (*rcsopen) (struct buf *, struct stat *, int);
3974static char *e (p, i)
3975     char **p;
3976     int i;
3977{
3978  return p[i];
3979}
3980static char *f (char * (*g) (char **, int), char **p, ...)
3981{
3982  char *s;
3983  va_list v;
3984  va_start (v,p);
3985  s = g (p, va_arg (v,int));
3986  va_end (v);
3987  return s;
3988}
3989
3990/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3991   function prototypes and stuff, but not '\xHH' hex character constants.
3992   These don't provoke an error unfortunately, instead are silently treated
3993   as 'x'.  The following induces an error, until -std is added to get
3994   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3995   array size at least.  It's necessary to write '\x00'==0 to get something
3996   that's true only with -std.  */
3997int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3998
3999/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4000   inside strings and character constants.  */
4001#define FOO(x) 'x'
4002int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4003
4004int test (int i, double x);
4005struct s1 {int (*f) (int a);};
4006struct s2 {int (*f) (double a);};
4007int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4008int argc;
4009char **argv;
4010int
4011main ()
4012{
4013return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4014  ;
4015  return 0;
4016}
4017_ACEOF
4018for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4019	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4020do
4021  CC="$ac_save_CC $ac_arg"
4022  rm -f conftest.$ac_objext
4023if { (ac_try="$ac_compile"
4024case "(($ac_try" in
4025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026  *) ac_try_echo=$ac_try;;
4027esac
4028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4029$as_echo "$ac_try_echo") >&5
4030  (eval "$ac_compile") 2>conftest.er1
4031  ac_status=$?
4032  grep -v '^ *+' conftest.er1 >conftest.err
4033  rm -f conftest.er1
4034  cat conftest.err >&5
4035  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036  (exit $ac_status); } && {
4037	 test -z "$ac_c_werror_flag" ||
4038	 test ! -s conftest.err
4039       } && test -s conftest.$ac_objext; then
4040  ac_cv_prog_cc_c89=$ac_arg
4041else
4042  $as_echo "$as_me: failed program was:" >&5
4043sed 's/^/| /' conftest.$ac_ext >&5
4044
4045
4046fi
4047
4048rm -f core conftest.err conftest.$ac_objext
4049  test "x$ac_cv_prog_cc_c89" != "xno" && break
4050done
4051rm -f conftest.$ac_ext
4052CC=$ac_save_CC
4053
4054fi
4055# AC_CACHE_VAL
4056case "x$ac_cv_prog_cc_c89" in
4057  x)
4058    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4059$as_echo "none needed" >&6; } ;;
4060  xno)
4061    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4062$as_echo "unsupported" >&6; } ;;
4063  *)
4064    CC="$CC $ac_cv_prog_cc_c89"
4065    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4066$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4067esac
4068
4069
4070ac_ext=c
4071ac_cpp='$CPP $CPPFLAGS'
4072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075
4076CFLAGS=$savedCFLAGS
4077
4078if test x"$GCC" != x"yes" ; then
4079   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4080$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4081if test "${ac_cv_prog_cc_c99+set}" = set; then
4082  $as_echo_n "(cached) " >&6
4083else
4084  ac_cv_prog_cc_c99=no
4085ac_save_CC=$CC
4086cat >conftest.$ac_ext <<_ACEOF
4087/* confdefs.h.  */
4088_ACEOF
4089cat confdefs.h >>conftest.$ac_ext
4090cat >>conftest.$ac_ext <<_ACEOF
4091/* end confdefs.h.  */
4092#include <stdarg.h>
4093#include <stdbool.h>
4094#include <stdlib.h>
4095#include <wchar.h>
4096#include <stdio.h>
4097
4098// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4099#define debug(...) fprintf (stderr, __VA_ARGS__)
4100#define showlist(...) puts (#__VA_ARGS__)
4101#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4102static void
4103test_varargs_macros (void)
4104{
4105  int x = 1234;
4106  int y = 5678;
4107  debug ("Flag");
4108  debug ("X = %d\n", x);
4109  showlist (The first, second, and third items.);
4110  report (x>y, "x is %d but y is %d", x, y);
4111}
4112
4113// Check long long types.
4114#define BIG64 18446744073709551615ull
4115#define BIG32 4294967295ul
4116#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4117#if !BIG_OK
4118  your preprocessor is broken;
4119#endif
4120#if BIG_OK
4121#else
4122  your preprocessor is broken;
4123#endif
4124static long long int bignum = -9223372036854775807LL;
4125static unsigned long long int ubignum = BIG64;
4126
4127struct incomplete_array
4128{
4129  int datasize;
4130  double data[];
4131};
4132
4133struct named_init {
4134  int number;
4135  const wchar_t *name;
4136  double average;
4137};
4138
4139typedef const char *ccp;
4140
4141static inline int
4142test_restrict (ccp restrict text)
4143{
4144  // See if C++-style comments work.
4145  // Iterate through items via the restricted pointer.
4146  // Also check for declarations in for loops.
4147  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4148    continue;
4149  return 0;
4150}
4151
4152// Check varargs and va_copy.
4153static void
4154test_varargs (const char *format, ...)
4155{
4156  va_list args;
4157  va_start (args, format);
4158  va_list args_copy;
4159  va_copy (args_copy, args);
4160
4161  const char *str;
4162  int number;
4163  float fnumber;
4164
4165  while (*format)
4166    {
4167      switch (*format++)
4168	{
4169	case 's': // string
4170	  str = va_arg (args_copy, const char *);
4171	  break;
4172	case 'd': // int
4173	  number = va_arg (args_copy, int);
4174	  break;
4175	case 'f': // float
4176	  fnumber = va_arg (args_copy, double);
4177	  break;
4178	default:
4179	  break;
4180	}
4181    }
4182  va_end (args_copy);
4183  va_end (args);
4184}
4185
4186int
4187main ()
4188{
4189
4190  // Check bool.
4191  _Bool success = false;
4192
4193  // Check restrict.
4194  if (test_restrict ("String literal") == 0)
4195    success = true;
4196  char *restrict newvar = "Another string";
4197
4198  // Check varargs.
4199  test_varargs ("s, d' f .", "string", 65, 34.234);
4200  test_varargs_macros ();
4201
4202  // Check flexible array members.
4203  struct incomplete_array *ia =
4204    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4205  ia->datasize = 10;
4206  for (int i = 0; i < ia->datasize; ++i)
4207    ia->data[i] = i * 1.234;
4208
4209  // Check named initializers.
4210  struct named_init ni = {
4211    .number = 34,
4212    .name = L"Test wide string",
4213    .average = 543.34343,
4214  };
4215
4216  ni.number = 58;
4217
4218  int dynamic_array[ni.number];
4219  dynamic_array[ni.number - 1] = 543;
4220
4221  // work around unused variable warnings
4222  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4223	  || dynamic_array[ni.number - 1] != 543);
4224
4225  ;
4226  return 0;
4227}
4228_ACEOF
4229for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4230do
4231  CC="$ac_save_CC $ac_arg"
4232  rm -f conftest.$ac_objext
4233if { (ac_try="$ac_compile"
4234case "(($ac_try" in
4235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236  *) ac_try_echo=$ac_try;;
4237esac
4238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4239$as_echo "$ac_try_echo") >&5
4240  (eval "$ac_compile") 2>conftest.er1
4241  ac_status=$?
4242  grep -v '^ *+' conftest.er1 >conftest.err
4243  rm -f conftest.er1
4244  cat conftest.err >&5
4245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246  (exit $ac_status); } && {
4247	 test -z "$ac_c_werror_flag" ||
4248	 test ! -s conftest.err
4249       } && test -s conftest.$ac_objext; then
4250  ac_cv_prog_cc_c99=$ac_arg
4251else
4252  $as_echo "$as_me: failed program was:" >&5
4253sed 's/^/| /' conftest.$ac_ext >&5
4254
4255
4256fi
4257
4258rm -f core conftest.err conftest.$ac_objext
4259  test "x$ac_cv_prog_cc_c99" != "xno" && break
4260done
4261rm -f conftest.$ac_ext
4262CC=$ac_save_CC
4263
4264fi
4265# AC_CACHE_VAL
4266case "x$ac_cv_prog_cc_c99" in
4267  x)
4268    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4269$as_echo "none needed" >&6; } ;;
4270  xno)
4271    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4272$as_echo "unsupported" >&6; } ;;
4273  *)
4274    CC="$CC $ac_cv_prog_cc_c99"
4275    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4276$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4277esac
4278
4279
4280
4281fi
4282
4283if test x"$GCC" = x"yes" ; then
4284	{ $as_echo "$as_me:$LINENO: checking for version of gcc" >&5
4285$as_echo_n "checking for version of gcc... " >&6; }
4286	GCC_VERSION=`$CC -dumpversion`
4287	{ $as_echo "$as_me:$LINENO: result: ${GCC_VERSION}" >&5
4288$as_echo "${GCC_VERSION}" >&6; }
4289fi
4290
4291ac_ext=c
4292ac_cpp='$CPP $CPPFLAGS'
4293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4297$as_echo_n "checking how to run the C preprocessor... " >&6; }
4298# On Suns, sometimes $CPP names a directory.
4299if test -n "$CPP" && test -d "$CPP"; then
4300  CPP=
4301fi
4302if test -z "$CPP"; then
4303  if test "${ac_cv_prog_CPP+set}" = set; then
4304  $as_echo_n "(cached) " >&6
4305else
4306      # Double quotes because CPP needs to be expanded
4307    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4308    do
4309      ac_preproc_ok=false
4310for ac_c_preproc_warn_flag in '' yes
4311do
4312  # Use a header file that comes with gcc, so configuring glibc
4313  # with a fresh cross-compiler works.
4314  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4315  # <limits.h> exists even on freestanding compilers.
4316  # On the NeXT, cc -E runs the code through the compiler's parser,
4317  # not just through cpp. "Syntax error" is here to catch this case.
4318  cat >conftest.$ac_ext <<_ACEOF
4319/* confdefs.h.  */
4320_ACEOF
4321cat confdefs.h >>conftest.$ac_ext
4322cat >>conftest.$ac_ext <<_ACEOF
4323/* end confdefs.h.  */
4324#ifdef __STDC__
4325# include <limits.h>
4326#else
4327# include <assert.h>
4328#endif
4329		     Syntax error
4330_ACEOF
4331if { (ac_try="$ac_cpp conftest.$ac_ext"
4332case "(($ac_try" in
4333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334  *) ac_try_echo=$ac_try;;
4335esac
4336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4337$as_echo "$ac_try_echo") >&5
4338  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4339  ac_status=$?
4340  grep -v '^ *+' conftest.er1 >conftest.err
4341  rm -f conftest.er1
4342  cat conftest.err >&5
4343  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344  (exit $ac_status); } >/dev/null && {
4345	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4346	 test ! -s conftest.err
4347       }; then
4348  :
4349else
4350  $as_echo "$as_me: failed program was:" >&5
4351sed 's/^/| /' conftest.$ac_ext >&5
4352
4353  # Broken: fails on valid input.
4354continue
4355fi
4356
4357rm -f conftest.err conftest.$ac_ext
4358
4359  # OK, works on sane cases.  Now check whether nonexistent headers
4360  # can be detected and how.
4361  cat >conftest.$ac_ext <<_ACEOF
4362/* confdefs.h.  */
4363_ACEOF
4364cat confdefs.h >>conftest.$ac_ext
4365cat >>conftest.$ac_ext <<_ACEOF
4366/* end confdefs.h.  */
4367#include <ac_nonexistent.h>
4368_ACEOF
4369if { (ac_try="$ac_cpp conftest.$ac_ext"
4370case "(($ac_try" in
4371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372  *) ac_try_echo=$ac_try;;
4373esac
4374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4375$as_echo "$ac_try_echo") >&5
4376  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4377  ac_status=$?
4378  grep -v '^ *+' conftest.er1 >conftest.err
4379  rm -f conftest.er1
4380  cat conftest.err >&5
4381  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382  (exit $ac_status); } >/dev/null && {
4383	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4384	 test ! -s conftest.err
4385       }; then
4386  # Broken: success on invalid input.
4387continue
4388else
4389  $as_echo "$as_me: failed program was:" >&5
4390sed 's/^/| /' conftest.$ac_ext >&5
4391
4392  # Passes both tests.
4393ac_preproc_ok=:
4394break
4395fi
4396
4397rm -f conftest.err conftest.$ac_ext
4398
4399done
4400# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4401rm -f conftest.err conftest.$ac_ext
4402if $ac_preproc_ok; then
4403  break
4404fi
4405
4406    done
4407    ac_cv_prog_CPP=$CPP
4408
4409fi
4410  CPP=$ac_cv_prog_CPP
4411else
4412  ac_cv_prog_CPP=$CPP
4413fi
4414{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4415$as_echo "$CPP" >&6; }
4416ac_preproc_ok=false
4417for ac_c_preproc_warn_flag in '' yes
4418do
4419  # Use a header file that comes with gcc, so configuring glibc
4420  # with a fresh cross-compiler works.
4421  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4422  # <limits.h> exists even on freestanding compilers.
4423  # On the NeXT, cc -E runs the code through the compiler's parser,
4424  # not just through cpp. "Syntax error" is here to catch this case.
4425  cat >conftest.$ac_ext <<_ACEOF
4426/* confdefs.h.  */
4427_ACEOF
4428cat confdefs.h >>conftest.$ac_ext
4429cat >>conftest.$ac_ext <<_ACEOF
4430/* end confdefs.h.  */
4431#ifdef __STDC__
4432# include <limits.h>
4433#else
4434# include <assert.h>
4435#endif
4436		     Syntax error
4437_ACEOF
4438if { (ac_try="$ac_cpp conftest.$ac_ext"
4439case "(($ac_try" in
4440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441  *) ac_try_echo=$ac_try;;
4442esac
4443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4444$as_echo "$ac_try_echo") >&5
4445  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4446  ac_status=$?
4447  grep -v '^ *+' conftest.er1 >conftest.err
4448  rm -f conftest.er1
4449  cat conftest.err >&5
4450  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451  (exit $ac_status); } >/dev/null && {
4452	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4453	 test ! -s conftest.err
4454       }; then
4455  :
4456else
4457  $as_echo "$as_me: failed program was:" >&5
4458sed 's/^/| /' conftest.$ac_ext >&5
4459
4460  # Broken: fails on valid input.
4461continue
4462fi
4463
4464rm -f conftest.err conftest.$ac_ext
4465
4466  # OK, works on sane cases.  Now check whether nonexistent headers
4467  # can be detected and how.
4468  cat >conftest.$ac_ext <<_ACEOF
4469/* confdefs.h.  */
4470_ACEOF
4471cat confdefs.h >>conftest.$ac_ext
4472cat >>conftest.$ac_ext <<_ACEOF
4473/* end confdefs.h.  */
4474#include <ac_nonexistent.h>
4475_ACEOF
4476if { (ac_try="$ac_cpp conftest.$ac_ext"
4477case "(($ac_try" in
4478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479  *) ac_try_echo=$ac_try;;
4480esac
4481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4482$as_echo "$ac_try_echo") >&5
4483  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4484  ac_status=$?
4485  grep -v '^ *+' conftest.er1 >conftest.err
4486  rm -f conftest.er1
4487  cat conftest.err >&5
4488  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489  (exit $ac_status); } >/dev/null && {
4490	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4491	 test ! -s conftest.err
4492       }; then
4493  # Broken: success on invalid input.
4494continue
4495else
4496  $as_echo "$as_me: failed program was:" >&5
4497sed 's/^/| /' conftest.$ac_ext >&5
4498
4499  # Passes both tests.
4500ac_preproc_ok=:
4501break
4502fi
4503
4504rm -f conftest.err conftest.$ac_ext
4505
4506done
4507# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4508rm -f conftest.err conftest.$ac_ext
4509if $ac_preproc_ok; then
4510  :
4511else
4512  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4514{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4515See \`config.log' for more details." >&5
4516$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4517See \`config.log' for more details." >&2;}
4518   { (exit 1); exit 1; }; }; }
4519fi
4520
4521ac_ext=c
4522ac_cpp='$CPP $CPPFLAGS'
4523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526
4527
4528{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4529$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4530if test "${ac_cv_path_GREP+set}" = set; then
4531  $as_echo_n "(cached) " >&6
4532else
4533  if test -z "$GREP"; then
4534  ac_path_GREP_found=false
4535  # Loop through the user's path and test for each of PROGNAME-LIST
4536  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4538do
4539  IFS=$as_save_IFS
4540  test -z "$as_dir" && as_dir=.
4541  for ac_prog in grep ggrep; do
4542    for ac_exec_ext in '' $ac_executable_extensions; do
4543      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4544      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4545# Check for GNU ac_path_GREP and select it if it is found.
4546  # Check for GNU $ac_path_GREP
4547case `"$ac_path_GREP" --version 2>&1` in
4548*GNU*)
4549  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4550*)
4551  ac_count=0
4552  $as_echo_n 0123456789 >"conftest.in"
4553  while :
4554  do
4555    cat "conftest.in" "conftest.in" >"conftest.tmp"
4556    mv "conftest.tmp" "conftest.in"
4557    cp "conftest.in" "conftest.nl"
4558    $as_echo 'GREP' >> "conftest.nl"
4559    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4560    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4561    ac_count=`expr $ac_count + 1`
4562    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4563      # Best one so far, save it but keep looking for a better one
4564      ac_cv_path_GREP="$ac_path_GREP"
4565      ac_path_GREP_max=$ac_count
4566    fi
4567    # 10*(2^10) chars as input seems more than enough
4568    test $ac_count -gt 10 && break
4569  done
4570  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4571esac
4572
4573      $ac_path_GREP_found && break 3
4574    done
4575  done
4576done
4577IFS=$as_save_IFS
4578  if test -z "$ac_cv_path_GREP"; then
4579    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4580$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4581   { (exit 1); exit 1; }; }
4582  fi
4583else
4584  ac_cv_path_GREP=$GREP
4585fi
4586
4587fi
4588{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4589$as_echo "$ac_cv_path_GREP" >&6; }
4590 GREP="$ac_cv_path_GREP"
4591
4592
4593{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4594$as_echo_n "checking for egrep... " >&6; }
4595if test "${ac_cv_path_EGREP+set}" = set; then
4596  $as_echo_n "(cached) " >&6
4597else
4598  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4599   then ac_cv_path_EGREP="$GREP -E"
4600   else
4601     if test -z "$EGREP"; then
4602  ac_path_EGREP_found=false
4603  # Loop through the user's path and test for each of PROGNAME-LIST
4604  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4606do
4607  IFS=$as_save_IFS
4608  test -z "$as_dir" && as_dir=.
4609  for ac_prog in egrep; do
4610    for ac_exec_ext in '' $ac_executable_extensions; do
4611      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4612      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4613# Check for GNU ac_path_EGREP and select it if it is found.
4614  # Check for GNU $ac_path_EGREP
4615case `"$ac_path_EGREP" --version 2>&1` in
4616*GNU*)
4617  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4618*)
4619  ac_count=0
4620  $as_echo_n 0123456789 >"conftest.in"
4621  while :
4622  do
4623    cat "conftest.in" "conftest.in" >"conftest.tmp"
4624    mv "conftest.tmp" "conftest.in"
4625    cp "conftest.in" "conftest.nl"
4626    $as_echo 'EGREP' >> "conftest.nl"
4627    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4628    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4629    ac_count=`expr $ac_count + 1`
4630    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4631      # Best one so far, save it but keep looking for a better one
4632      ac_cv_path_EGREP="$ac_path_EGREP"
4633      ac_path_EGREP_max=$ac_count
4634    fi
4635    # 10*(2^10) chars as input seems more than enough
4636    test $ac_count -gt 10 && break
4637  done
4638  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4639esac
4640
4641      $ac_path_EGREP_found && break 3
4642    done
4643  done
4644done
4645IFS=$as_save_IFS
4646  if test -z "$ac_cv_path_EGREP"; then
4647    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4648$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4649   { (exit 1); exit 1; }; }
4650  fi
4651else
4652  ac_cv_path_EGREP=$EGREP
4653fi
4654
4655   fi
4656fi
4657{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4658$as_echo "$ac_cv_path_EGREP" >&6; }
4659 EGREP="$ac_cv_path_EGREP"
4660
4661
4662{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4663$as_echo_n "checking for ANSI C header files... " >&6; }
4664if test "${ac_cv_header_stdc+set}" = set; then
4665  $as_echo_n "(cached) " >&6
4666else
4667  cat >conftest.$ac_ext <<_ACEOF
4668/* confdefs.h.  */
4669_ACEOF
4670cat confdefs.h >>conftest.$ac_ext
4671cat >>conftest.$ac_ext <<_ACEOF
4672/* end confdefs.h.  */
4673#include <stdlib.h>
4674#include <stdarg.h>
4675#include <string.h>
4676#include <float.h>
4677
4678int
4679main ()
4680{
4681
4682  ;
4683  return 0;
4684}
4685_ACEOF
4686rm -f conftest.$ac_objext
4687if { (ac_try="$ac_compile"
4688case "(($ac_try" in
4689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690  *) ac_try_echo=$ac_try;;
4691esac
4692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4693$as_echo "$ac_try_echo") >&5
4694  (eval "$ac_compile") 2>conftest.er1
4695  ac_status=$?
4696  grep -v '^ *+' conftest.er1 >conftest.err
4697  rm -f conftest.er1
4698  cat conftest.err >&5
4699  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700  (exit $ac_status); } && {
4701	 test -z "$ac_c_werror_flag" ||
4702	 test ! -s conftest.err
4703       } && test -s conftest.$ac_objext; then
4704  ac_cv_header_stdc=yes
4705else
4706  $as_echo "$as_me: failed program was:" >&5
4707sed 's/^/| /' conftest.$ac_ext >&5
4708
4709	ac_cv_header_stdc=no
4710fi
4711
4712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713
4714if test $ac_cv_header_stdc = yes; then
4715  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4716  cat >conftest.$ac_ext <<_ACEOF
4717/* confdefs.h.  */
4718_ACEOF
4719cat confdefs.h >>conftest.$ac_ext
4720cat >>conftest.$ac_ext <<_ACEOF
4721/* end confdefs.h.  */
4722#include <string.h>
4723
4724_ACEOF
4725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4726  $EGREP "memchr" >/dev/null 2>&1; then
4727  :
4728else
4729  ac_cv_header_stdc=no
4730fi
4731rm -f conftest*
4732
4733fi
4734
4735if test $ac_cv_header_stdc = yes; then
4736  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4737  cat >conftest.$ac_ext <<_ACEOF
4738/* confdefs.h.  */
4739_ACEOF
4740cat confdefs.h >>conftest.$ac_ext
4741cat >>conftest.$ac_ext <<_ACEOF
4742/* end confdefs.h.  */
4743#include <stdlib.h>
4744
4745_ACEOF
4746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4747  $EGREP "free" >/dev/null 2>&1; then
4748  :
4749else
4750  ac_cv_header_stdc=no
4751fi
4752rm -f conftest*
4753
4754fi
4755
4756if test $ac_cv_header_stdc = yes; then
4757  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4758  if test "$cross_compiling" = yes; then
4759  :
4760else
4761  cat >conftest.$ac_ext <<_ACEOF
4762/* confdefs.h.  */
4763_ACEOF
4764cat confdefs.h >>conftest.$ac_ext
4765cat >>conftest.$ac_ext <<_ACEOF
4766/* end confdefs.h.  */
4767#include <ctype.h>
4768#include <stdlib.h>
4769#if ((' ' & 0x0FF) == 0x020)
4770# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4771# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4772#else
4773# define ISLOWER(c) \
4774		   (('a' <= (c) && (c) <= 'i') \
4775		     || ('j' <= (c) && (c) <= 'r') \
4776		     || ('s' <= (c) && (c) <= 'z'))
4777# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4778#endif
4779
4780#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4781int
4782main ()
4783{
4784  int i;
4785  for (i = 0; i < 256; i++)
4786    if (XOR (islower (i), ISLOWER (i))
4787	|| toupper (i) != TOUPPER (i))
4788      return 2;
4789  return 0;
4790}
4791_ACEOF
4792rm -f conftest$ac_exeext
4793if { (ac_try="$ac_link"
4794case "(($ac_try" in
4795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796  *) ac_try_echo=$ac_try;;
4797esac
4798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4799$as_echo "$ac_try_echo") >&5
4800  (eval "$ac_link") 2>&5
4801  ac_status=$?
4802  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4804  { (case "(($ac_try" in
4805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806  *) ac_try_echo=$ac_try;;
4807esac
4808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4809$as_echo "$ac_try_echo") >&5
4810  (eval "$ac_try") 2>&5
4811  ac_status=$?
4812  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813  (exit $ac_status); }; }; then
4814  :
4815else
4816  $as_echo "$as_me: program exited with status $ac_status" >&5
4817$as_echo "$as_me: failed program was:" >&5
4818sed 's/^/| /' conftest.$ac_ext >&5
4819
4820( exit $ac_status )
4821ac_cv_header_stdc=no
4822fi
4823rm -rf conftest.dSYM
4824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4825fi
4826
4827
4828fi
4829fi
4830{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4831$as_echo "$ac_cv_header_stdc" >&6; }
4832if test $ac_cv_header_stdc = yes; then
4833
4834cat >>confdefs.h <<\_ACEOF
4835#define STDC_HEADERS 1
4836_ACEOF
4837
4838fi
4839
4840# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4851		  inttypes.h stdint.h unistd.h
4852do
4853as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4854{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4855$as_echo_n "checking for $ac_header... " >&6; }
4856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4857  $as_echo_n "(cached) " >&6
4858else
4859  cat >conftest.$ac_ext <<_ACEOF
4860/* confdefs.h.  */
4861_ACEOF
4862cat confdefs.h >>conftest.$ac_ext
4863cat >>conftest.$ac_ext <<_ACEOF
4864/* end confdefs.h.  */
4865$ac_includes_default
4866
4867#include <$ac_header>
4868_ACEOF
4869rm -f conftest.$ac_objext
4870if { (ac_try="$ac_compile"
4871case "(($ac_try" in
4872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873  *) ac_try_echo=$ac_try;;
4874esac
4875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4876$as_echo "$ac_try_echo") >&5
4877  (eval "$ac_compile") 2>conftest.er1
4878  ac_status=$?
4879  grep -v '^ *+' conftest.er1 >conftest.err
4880  rm -f conftest.er1
4881  cat conftest.err >&5
4882  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883  (exit $ac_status); } && {
4884	 test -z "$ac_c_werror_flag" ||
4885	 test ! -s conftest.err
4886       } && test -s conftest.$ac_objext; then
4887  eval "$as_ac_Header=yes"
4888else
4889  $as_echo "$as_me: failed program was:" >&5
4890sed 's/^/| /' conftest.$ac_ext >&5
4891
4892	eval "$as_ac_Header=no"
4893fi
4894
4895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896fi
4897ac_res=`eval 'as_val=${'$as_ac_Header'}
4898		 $as_echo "$as_val"'`
4899	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4900$as_echo "$ac_res" >&6; }
4901as_val=`eval 'as_val=${'$as_ac_Header'}
4902		 $as_echo "$as_val"'`
4903   if test "x$as_val" = x""yes; then
4904  cat >>confdefs.h <<_ACEOF
4905#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4906_ACEOF
4907
4908fi
4909
4910done
4911
4912
4913
4914  if test "${ac_cv_header_minix_config_h+set}" = set; then
4915  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4916$as_echo_n "checking for minix/config.h... " >&6; }
4917if test "${ac_cv_header_minix_config_h+set}" = set; then
4918  $as_echo_n "(cached) " >&6
4919fi
4920{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4921$as_echo "$ac_cv_header_minix_config_h" >&6; }
4922else
4923  # Is the header compilable?
4924{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4925$as_echo_n "checking minix/config.h usability... " >&6; }
4926cat >conftest.$ac_ext <<_ACEOF
4927/* confdefs.h.  */
4928_ACEOF
4929cat confdefs.h >>conftest.$ac_ext
4930cat >>conftest.$ac_ext <<_ACEOF
4931/* end confdefs.h.  */
4932$ac_includes_default
4933#include <minix/config.h>
4934_ACEOF
4935rm -f conftest.$ac_objext
4936if { (ac_try="$ac_compile"
4937case "(($ac_try" in
4938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939  *) ac_try_echo=$ac_try;;
4940esac
4941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4942$as_echo "$ac_try_echo") >&5
4943  (eval "$ac_compile") 2>conftest.er1
4944  ac_status=$?
4945  grep -v '^ *+' conftest.er1 >conftest.err
4946  rm -f conftest.er1
4947  cat conftest.err >&5
4948  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949  (exit $ac_status); } && {
4950	 test -z "$ac_c_werror_flag" ||
4951	 test ! -s conftest.err
4952       } && test -s conftest.$ac_objext; then
4953  ac_header_compiler=yes
4954else
4955  $as_echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
4958	ac_header_compiler=no
4959fi
4960
4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4963$as_echo "$ac_header_compiler" >&6; }
4964
4965# Is the header present?
4966{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4967$as_echo_n "checking minix/config.h presence... " >&6; }
4968cat >conftest.$ac_ext <<_ACEOF
4969/* confdefs.h.  */
4970_ACEOF
4971cat confdefs.h >>conftest.$ac_ext
4972cat >>conftest.$ac_ext <<_ACEOF
4973/* end confdefs.h.  */
4974#include <minix/config.h>
4975_ACEOF
4976if { (ac_try="$ac_cpp conftest.$ac_ext"
4977case "(($ac_try" in
4978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979  *) ac_try_echo=$ac_try;;
4980esac
4981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4982$as_echo "$ac_try_echo") >&5
4983  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4984  ac_status=$?
4985  grep -v '^ *+' conftest.er1 >conftest.err
4986  rm -f conftest.er1
4987  cat conftest.err >&5
4988  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989  (exit $ac_status); } >/dev/null && {
4990	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4991	 test ! -s conftest.err
4992       }; then
4993  ac_header_preproc=yes
4994else
4995  $as_echo "$as_me: failed program was:" >&5
4996sed 's/^/| /' conftest.$ac_ext >&5
4997
4998  ac_header_preproc=no
4999fi
5000
5001rm -f conftest.err conftest.$ac_ext
5002{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5003$as_echo "$ac_header_preproc" >&6; }
5004
5005# So?  What about this header?
5006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5007  yes:no: )
5008    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5009$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5010    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5011$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5012    ac_header_preproc=yes
5013    ;;
5014  no:yes:* )
5015    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5016$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5017    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5018$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5019    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5020$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5021    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5022$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5023    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5024$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5025    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5026$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5027    ( cat <<\_ASBOX
5028## ---------------------------------------- ##
5029## Report this to samba-technical@samba.org ##
5030## ---------------------------------------- ##
5031_ASBOX
5032     ) | sed "s/^/$as_me: WARNING:     /" >&2
5033    ;;
5034esac
5035{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5036$as_echo_n "checking for minix/config.h... " >&6; }
5037if test "${ac_cv_header_minix_config_h+set}" = set; then
5038  $as_echo_n "(cached) " >&6
5039else
5040  ac_cv_header_minix_config_h=$ac_header_preproc
5041fi
5042{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5043$as_echo "$ac_cv_header_minix_config_h" >&6; }
5044
5045fi
5046if test "x$ac_cv_header_minix_config_h" = x""yes; then
5047  MINIX=yes
5048else
5049  MINIX=
5050fi
5051
5052
5053  if test "$MINIX" = yes; then
5054
5055cat >>confdefs.h <<\_ACEOF
5056#define _POSIX_SOURCE 1
5057_ACEOF
5058
5059
5060cat >>confdefs.h <<\_ACEOF
5061#define _POSIX_1_SOURCE 2
5062_ACEOF
5063
5064
5065cat >>confdefs.h <<\_ACEOF
5066#define _MINIX 1
5067_ACEOF
5068
5069  fi
5070
5071
5072
5073  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5074$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5075if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5076  $as_echo_n "(cached) " >&6
5077else
5078  cat >conftest.$ac_ext <<_ACEOF
5079/* confdefs.h.  */
5080_ACEOF
5081cat confdefs.h >>conftest.$ac_ext
5082cat >>conftest.$ac_ext <<_ACEOF
5083/* end confdefs.h.  */
5084
5085#	  define __EXTENSIONS__ 1
5086	  $ac_includes_default
5087int
5088main ()
5089{
5090
5091  ;
5092  return 0;
5093}
5094_ACEOF
5095rm -f conftest.$ac_objext
5096if { (ac_try="$ac_compile"
5097case "(($ac_try" in
5098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099  *) ac_try_echo=$ac_try;;
5100esac
5101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5102$as_echo "$ac_try_echo") >&5
5103  (eval "$ac_compile") 2>conftest.er1
5104  ac_status=$?
5105  grep -v '^ *+' conftest.er1 >conftest.err
5106  rm -f conftest.er1
5107  cat conftest.err >&5
5108  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109  (exit $ac_status); } && {
5110	 test -z "$ac_c_werror_flag" ||
5111	 test ! -s conftest.err
5112       } && test -s conftest.$ac_objext; then
5113  ac_cv_safe_to_define___extensions__=yes
5114else
5115  $as_echo "$as_me: failed program was:" >&5
5116sed 's/^/| /' conftest.$ac_ext >&5
5117
5118	ac_cv_safe_to_define___extensions__=no
5119fi
5120
5121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122fi
5123{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5124$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5125  test $ac_cv_safe_to_define___extensions__ = yes &&
5126    cat >>confdefs.h <<\_ACEOF
5127#define __EXTENSIONS__ 1
5128_ACEOF
5129
5130  cat >>confdefs.h <<\_ACEOF
5131#define _ALL_SOURCE 1
5132_ACEOF
5133
5134  cat >>confdefs.h <<\_ACEOF
5135#define _GNU_SOURCE 1
5136_ACEOF
5137
5138  cat >>confdefs.h <<\_ACEOF
5139#define _POSIX_PTHREAD_SEMANTICS 1
5140_ACEOF
5141
5142  cat >>confdefs.h <<\_ACEOF
5143#define _TANDEM_SOURCE 1
5144_ACEOF
5145
5146
5147
5148 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5149$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5150if test "${ac_cv_c_bigendian+set}" = set; then
5151  $as_echo_n "(cached) " >&6
5152else
5153  ac_cv_c_bigendian=unknown
5154    # See if we're dealing with a universal compiler.
5155    cat >conftest.$ac_ext <<_ACEOF
5156/* confdefs.h.  */
5157_ACEOF
5158cat confdefs.h >>conftest.$ac_ext
5159cat >>conftest.$ac_ext <<_ACEOF
5160/* end confdefs.h.  */
5161#ifndef __APPLE_CC__
5162	       not a universal capable compiler
5163	     #endif
5164	     typedef int dummy;
5165
5166_ACEOF
5167rm -f conftest.$ac_objext
5168if { (ac_try="$ac_compile"
5169case "(($ac_try" in
5170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171  *) ac_try_echo=$ac_try;;
5172esac
5173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5174$as_echo "$ac_try_echo") >&5
5175  (eval "$ac_compile") 2>conftest.er1
5176  ac_status=$?
5177  grep -v '^ *+' conftest.er1 >conftest.err
5178  rm -f conftest.er1
5179  cat conftest.err >&5
5180  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181  (exit $ac_status); } && {
5182	 test -z "$ac_c_werror_flag" ||
5183	 test ! -s conftest.err
5184       } && test -s conftest.$ac_objext; then
5185
5186	# Check for potential -arch flags.  It is not universal unless
5187	# there are some -arch flags.  Note that *ppc* also matches
5188	# ppc64.  This check is also rather less than ideal.
5189	case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
5190	  *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
5191	esac
5192else
5193  $as_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.$ac_ext
5200    if test $ac_cv_c_bigendian = unknown; then
5201      # See if sys/param.h defines the BYTE_ORDER macro.
5202      cat >conftest.$ac_ext <<_ACEOF
5203/* confdefs.h.  */
5204_ACEOF
5205cat confdefs.h >>conftest.$ac_ext
5206cat >>conftest.$ac_ext <<_ACEOF
5207/* end confdefs.h.  */
5208#include <sys/types.h>
5209	     #include <sys/param.h>
5210
5211int
5212main ()
5213{
5214#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5215		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5216		     && LITTLE_ENDIAN)
5217	      bogus endian macros
5218	     #endif
5219
5220  ;
5221  return 0;
5222}
5223_ACEOF
5224rm -f conftest.$ac_objext
5225if { (ac_try="$ac_compile"
5226case "(($ac_try" in
5227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228  *) ac_try_echo=$ac_try;;
5229esac
5230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5231$as_echo "$ac_try_echo") >&5
5232  (eval "$ac_compile") 2>conftest.er1
5233  ac_status=$?
5234  grep -v '^ *+' conftest.er1 >conftest.err
5235  rm -f conftest.er1
5236  cat conftest.err >&5
5237  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238  (exit $ac_status); } && {
5239	 test -z "$ac_c_werror_flag" ||
5240	 test ! -s conftest.err
5241       } && test -s conftest.$ac_objext; then
5242  # It does; now see whether it defined to BIG_ENDIAN or not.
5243	 cat >conftest.$ac_ext <<_ACEOF
5244/* confdefs.h.  */
5245_ACEOF
5246cat confdefs.h >>conftest.$ac_ext
5247cat >>conftest.$ac_ext <<_ACEOF
5248/* end confdefs.h.  */
5249#include <sys/types.h>
5250		#include <sys/param.h>
5251
5252int
5253main ()
5254{
5255#if BYTE_ORDER != BIG_ENDIAN
5256		 not big endian
5257		#endif
5258
5259  ;
5260  return 0;
5261}
5262_ACEOF
5263rm -f conftest.$ac_objext
5264if { (ac_try="$ac_compile"
5265case "(($ac_try" in
5266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267  *) ac_try_echo=$ac_try;;
5268esac
5269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5270$as_echo "$ac_try_echo") >&5
5271  (eval "$ac_compile") 2>conftest.er1
5272  ac_status=$?
5273  grep -v '^ *+' conftest.er1 >conftest.err
5274  rm -f conftest.er1
5275  cat conftest.err >&5
5276  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277  (exit $ac_status); } && {
5278	 test -z "$ac_c_werror_flag" ||
5279	 test ! -s conftest.err
5280       } && test -s conftest.$ac_objext; then
5281  ac_cv_c_bigendian=yes
5282else
5283  $as_echo "$as_me: failed program was:" >&5
5284sed 's/^/| /' conftest.$ac_ext >&5
5285
5286	ac_cv_c_bigendian=no
5287fi
5288
5289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290else
5291  $as_echo "$as_me: failed program was:" >&5
5292sed 's/^/| /' conftest.$ac_ext >&5
5293
5294
5295fi
5296
5297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298    fi
5299    if test $ac_cv_c_bigendian = unknown; then
5300      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5301      cat >conftest.$ac_ext <<_ACEOF
5302/* confdefs.h.  */
5303_ACEOF
5304cat confdefs.h >>conftest.$ac_ext
5305cat >>conftest.$ac_ext <<_ACEOF
5306/* end confdefs.h.  */
5307#include <limits.h>
5308
5309int
5310main ()
5311{
5312#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5313	      bogus endian macros
5314	     #endif
5315
5316  ;
5317  return 0;
5318}
5319_ACEOF
5320rm -f conftest.$ac_objext
5321if { (ac_try="$ac_compile"
5322case "(($ac_try" in
5323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324  *) ac_try_echo=$ac_try;;
5325esac
5326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5327$as_echo "$ac_try_echo") >&5
5328  (eval "$ac_compile") 2>conftest.er1
5329  ac_status=$?
5330  grep -v '^ *+' conftest.er1 >conftest.err
5331  rm -f conftest.er1
5332  cat conftest.err >&5
5333  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); } && {
5335	 test -z "$ac_c_werror_flag" ||
5336	 test ! -s conftest.err
5337       } && test -s conftest.$ac_objext; then
5338  # It does; now see whether it defined to _BIG_ENDIAN or not.
5339	 cat >conftest.$ac_ext <<_ACEOF
5340/* confdefs.h.  */
5341_ACEOF
5342cat confdefs.h >>conftest.$ac_ext
5343cat >>conftest.$ac_ext <<_ACEOF
5344/* end confdefs.h.  */
5345#include <limits.h>
5346
5347int
5348main ()
5349{
5350#ifndef _BIG_ENDIAN
5351		 not big endian
5352		#endif
5353
5354  ;
5355  return 0;
5356}
5357_ACEOF
5358rm -f conftest.$ac_objext
5359if { (ac_try="$ac_compile"
5360case "(($ac_try" in
5361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362  *) ac_try_echo=$ac_try;;
5363esac
5364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5365$as_echo "$ac_try_echo") >&5
5366  (eval "$ac_compile") 2>conftest.er1
5367  ac_status=$?
5368  grep -v '^ *+' conftest.er1 >conftest.err
5369  rm -f conftest.er1
5370  cat conftest.err >&5
5371  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372  (exit $ac_status); } && {
5373	 test -z "$ac_c_werror_flag" ||
5374	 test ! -s conftest.err
5375       } && test -s conftest.$ac_objext; then
5376  ac_cv_c_bigendian=yes
5377else
5378  $as_echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381	ac_cv_c_bigendian=no
5382fi
5383
5384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385else
5386  $as_echo "$as_me: failed program was:" >&5
5387sed 's/^/| /' conftest.$ac_ext >&5
5388
5389
5390fi
5391
5392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393    fi
5394    if test $ac_cv_c_bigendian = unknown; then
5395      # Compile a test program.
5396      if test "$cross_compiling" = yes; then
5397  # Try to guess by grepping values from an object file.
5398	 cat >conftest.$ac_ext <<_ACEOF
5399/* confdefs.h.  */
5400_ACEOF
5401cat confdefs.h >>conftest.$ac_ext
5402cat >>conftest.$ac_ext <<_ACEOF
5403/* end confdefs.h.  */
5404short int ascii_mm[] =
5405		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5406		short int ascii_ii[] =
5407		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5408		int use_ascii (int i) {
5409		  return ascii_mm[i] + ascii_ii[i];
5410		}
5411		short int ebcdic_ii[] =
5412		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5413		short int ebcdic_mm[] =
5414		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5415		int use_ebcdic (int i) {
5416		  return ebcdic_mm[i] + ebcdic_ii[i];
5417		}
5418		extern int foo;
5419
5420int
5421main ()
5422{
5423return use_ascii (foo) == use_ebcdic (foo);
5424  ;
5425  return 0;
5426}
5427_ACEOF
5428rm -f conftest.$ac_objext
5429if { (ac_try="$ac_compile"
5430case "(($ac_try" in
5431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432  *) ac_try_echo=$ac_try;;
5433esac
5434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5435$as_echo "$ac_try_echo") >&5
5436  (eval "$ac_compile") 2>conftest.er1
5437  ac_status=$?
5438  grep -v '^ *+' conftest.er1 >conftest.err
5439  rm -f conftest.er1
5440  cat conftest.err >&5
5441  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442  (exit $ac_status); } && {
5443	 test -z "$ac_c_werror_flag" ||
5444	 test ! -s conftest.err
5445       } && test -s conftest.$ac_objext; then
5446  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5447	      ac_cv_c_bigendian=yes
5448	    fi
5449	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5450	      if test "$ac_cv_c_bigendian" = unknown; then
5451		ac_cv_c_bigendian=no
5452	      else
5453		# finding both strings is unlikely to happen, but who knows?
5454		ac_cv_c_bigendian=unknown
5455	      fi
5456	    fi
5457else
5458  $as_echo "$as_me: failed program was:" >&5
5459sed 's/^/| /' conftest.$ac_ext >&5
5460
5461
5462fi
5463
5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465else
5466  cat >conftest.$ac_ext <<_ACEOF
5467/* confdefs.h.  */
5468_ACEOF
5469cat confdefs.h >>conftest.$ac_ext
5470cat >>conftest.$ac_ext <<_ACEOF
5471/* end confdefs.h.  */
5472$ac_includes_default
5473int
5474main ()
5475{
5476
5477	     /* Are we little or big endian?  From Harbison&Steele.  */
5478	     union
5479	     {
5480	       long int l;
5481	       char c[sizeof (long int)];
5482	     } u;
5483	     u.l = 1;
5484	     return u.c[sizeof (long int) - 1] == 1;
5485
5486  ;
5487  return 0;
5488}
5489_ACEOF
5490rm -f conftest$ac_exeext
5491if { (ac_try="$ac_link"
5492case "(($ac_try" in
5493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494  *) ac_try_echo=$ac_try;;
5495esac
5496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5497$as_echo "$ac_try_echo") >&5
5498  (eval "$ac_link") 2>&5
5499  ac_status=$?
5500  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5502  { (case "(($ac_try" in
5503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504  *) ac_try_echo=$ac_try;;
5505esac
5506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5507$as_echo "$ac_try_echo") >&5
5508  (eval "$ac_try") 2>&5
5509  ac_status=$?
5510  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511  (exit $ac_status); }; }; then
5512  ac_cv_c_bigendian=no
5513else
5514  $as_echo "$as_me: program exited with status $ac_status" >&5
5515$as_echo "$as_me: failed program was:" >&5
5516sed 's/^/| /' conftest.$ac_ext >&5
5517
5518( exit $ac_status )
5519ac_cv_c_bigendian=yes
5520fi
5521rm -rf conftest.dSYM
5522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5523fi
5524
5525
5526    fi
5527fi
5528{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5529$as_echo "$ac_cv_c_bigendian" >&6; }
5530 case $ac_cv_c_bigendian in #(
5531   yes)
5532     cat >>confdefs.h <<\_ACEOF
5533#define WORDS_BIGENDIAN 1
5534_ACEOF
5535;; #(
5536   no)
5537      ;; #(
5538   universal)
5539
5540cat >>confdefs.h <<\_ACEOF
5541#define AC_APPLE_UNIVERSAL_BUILD 1
5542_ACEOF
5543
5544     ;; #(
5545   *)
5546     { { $as_echo "$as_me:$LINENO: error: unknown endianness
5547 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5548$as_echo "$as_me: error: unknown endianness
5549 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5550   { (exit 1); exit 1; }; } ;;
5551 esac
5552
5553{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5554$as_echo_n "checking for inline... " >&6; }
5555if test "${ac_cv_c_inline+set}" = set; then
5556  $as_echo_n "(cached) " >&6
5557else
5558  ac_cv_c_inline=no
5559for ac_kw in inline __inline__ __inline; do
5560  cat >conftest.$ac_ext <<_ACEOF
5561/* confdefs.h.  */
5562_ACEOF
5563cat confdefs.h >>conftest.$ac_ext
5564cat >>conftest.$ac_ext <<_ACEOF
5565/* end confdefs.h.  */
5566#ifndef __cplusplus
5567typedef int foo_t;
5568static $ac_kw foo_t static_foo () {return 0; }
5569$ac_kw foo_t foo () {return 0; }
5570#endif
5571
5572_ACEOF
5573rm -f conftest.$ac_objext
5574if { (ac_try="$ac_compile"
5575case "(($ac_try" in
5576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577  *) ac_try_echo=$ac_try;;
5578esac
5579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5580$as_echo "$ac_try_echo") >&5
5581  (eval "$ac_compile") 2>conftest.er1
5582  ac_status=$?
5583  grep -v '^ *+' conftest.er1 >conftest.err
5584  rm -f conftest.er1
5585  cat conftest.err >&5
5586  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587  (exit $ac_status); } && {
5588	 test -z "$ac_c_werror_flag" ||
5589	 test ! -s conftest.err
5590       } && test -s conftest.$ac_objext; then
5591  ac_cv_c_inline=$ac_kw
5592else
5593  $as_echo "$as_me: failed program was:" >&5
5594sed 's/^/| /' conftest.$ac_ext >&5
5595
5596
5597fi
5598
5599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600  test "$ac_cv_c_inline" != no && break
5601done
5602
5603fi
5604{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5605$as_echo "$ac_cv_c_inline" >&6; }
5606
5607
5608case $ac_cv_c_inline in
5609  inline | yes) ;;
5610  *)
5611    case $ac_cv_c_inline in
5612      no) ac_val=;;
5613      *) ac_val=$ac_cv_c_inline;;
5614    esac
5615    cat >>confdefs.h <<_ACEOF
5616#ifndef __cplusplus
5617#define inline $ac_val
5618#endif
5619_ACEOF
5620    ;;
5621esac
5622
5623
5624saved_CFLAGS="$CFLAGS";
5625c99_init=no
5626if test x"$c99_init" = x"no"; then
5627    { $as_echo "$as_me:$LINENO: checking for C99 designated initializers" >&5
5628$as_echo_n "checking for C99 designated initializers... " >&6; }
5629    CFLAGS="$saved_CFLAGS";
5630    cat >conftest.$ac_ext <<_ACEOF
5631/* confdefs.h.  */
5632_ACEOF
5633cat confdefs.h >>conftest.$ac_ext
5634cat >>conftest.$ac_ext <<_ACEOF
5635/* end confdefs.h.  */
5636#include <stdio.h>
5637int
5638main ()
5639{
5640 struct foo {int x;char y;};
5641       struct foo bar = { .y = 'X', .x = 1 };
5642
5643  ;
5644  return 0;
5645}
5646_ACEOF
5647rm -f conftest.$ac_objext
5648if { (ac_try="$ac_compile"
5649case "(($ac_try" in
5650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651  *) ac_try_echo=$ac_try;;
5652esac
5653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5654$as_echo "$ac_try_echo") >&5
5655  (eval "$ac_compile") 2>conftest.er1
5656  ac_status=$?
5657  grep -v '^ *+' conftest.er1 >conftest.err
5658  rm -f conftest.er1
5659  cat conftest.err >&5
5660  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661  (exit $ac_status); } && {
5662	 test -z "$ac_c_werror_flag" ||
5663	 test ! -s conftest.err
5664       } && test -s conftest.$ac_objext; then
5665  { $as_echo "$as_me:$LINENO: result: yes" >&5
5666$as_echo "yes" >&6; }; c99_init=yes
5667else
5668  $as_echo "$as_me: failed program was:" >&5
5669sed 's/^/| /' conftest.$ac_ext >&5
5670
5671	{ $as_echo "$as_me:$LINENO: result: no" >&5
5672$as_echo "no" >&6; }
5673fi
5674
5675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676fi
5677if test x"$c99_init" = x"no"; then
5678    { $as_echo "$as_me:$LINENO: checking for C99 designated initializers with -AC99" >&5
5679$as_echo_n "checking for C99 designated initializers with -AC99... " >&6; }
5680    CFLAGS="$saved_CFLAGS -AC99";
5681    cat >conftest.$ac_ext <<_ACEOF
5682/* confdefs.h.  */
5683_ACEOF
5684cat confdefs.h >>conftest.$ac_ext
5685cat >>conftest.$ac_ext <<_ACEOF
5686/* end confdefs.h.  */
5687#include <stdio.h>
5688int
5689main ()
5690{
5691 struct foo {int x;char y;};
5692       struct foo bar = { .y = 'X', .x = 1 };
5693
5694  ;
5695  return 0;
5696}
5697_ACEOF
5698rm -f conftest.$ac_objext
5699if { (ac_try="$ac_compile"
5700case "(($ac_try" in
5701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702  *) ac_try_echo=$ac_try;;
5703esac
5704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5705$as_echo "$ac_try_echo") >&5
5706  (eval "$ac_compile") 2>conftest.er1
5707  ac_status=$?
5708  grep -v '^ *+' conftest.er1 >conftest.err
5709  rm -f conftest.er1
5710  cat conftest.err >&5
5711  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712  (exit $ac_status); } && {
5713	 test -z "$ac_c_werror_flag" ||
5714	 test ! -s conftest.err
5715       } && test -s conftest.$ac_objext; then
5716  { $as_echo "$as_me:$LINENO: result: yes" >&5
5717$as_echo "yes" >&6; }; c99_init=yes
5718else
5719  $as_echo "$as_me: failed program was:" >&5
5720sed 's/^/| /' conftest.$ac_ext >&5
5721
5722	{ $as_echo "$as_me:$LINENO: result: no" >&5
5723$as_echo "no" >&6; }
5724fi
5725
5726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727fi
5728if test x"$c99_init" = x"no"; then
5729    { $as_echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=extc99" >&5
5730$as_echo_n "checking for C99 designated initializers with -qlanglvl=extc99... " >&6; }
5731    CFLAGS="$saved_CFLAGS -qlanglvl=extc99";
5732    cat >conftest.$ac_ext <<_ACEOF
5733/* confdefs.h.  */
5734_ACEOF
5735cat confdefs.h >>conftest.$ac_ext
5736cat >>conftest.$ac_ext <<_ACEOF
5737/* end confdefs.h.  */
5738#include <stdio.h>
5739int
5740main ()
5741{
5742 struct foo {int x;char y;};
5743       struct foo bar = { .y = 'X', .x = 1 };
5744
5745  ;
5746  return 0;
5747}
5748_ACEOF
5749rm -f conftest.$ac_objext
5750if { (ac_try="$ac_compile"
5751case "(($ac_try" in
5752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753  *) ac_try_echo=$ac_try;;
5754esac
5755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5756$as_echo "$ac_try_echo") >&5
5757  (eval "$ac_compile") 2>conftest.er1
5758  ac_status=$?
5759  grep -v '^ *+' conftest.er1 >conftest.err
5760  rm -f conftest.er1
5761  cat conftest.err >&5
5762  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763  (exit $ac_status); } && {
5764	 test -z "$ac_c_werror_flag" ||
5765	 test ! -s conftest.err
5766       } && test -s conftest.$ac_objext; then
5767  { $as_echo "$as_me:$LINENO: result: yes" >&5
5768$as_echo "yes" >&6; }; c99_init=yes
5769else
5770  $as_echo "$as_me: failed program was:" >&5
5771sed 's/^/| /' conftest.$ac_ext >&5
5772
5773	{ $as_echo "$as_me:$LINENO: result: no" >&5
5774$as_echo "no" >&6; }
5775fi
5776
5777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778fi
5779if test x"$c99_init" = x"no"; then
5780    { $as_echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=stdc99" >&5
5781$as_echo_n "checking for C99 designated initializers with -qlanglvl=stdc99... " >&6; }
5782    CFLAGS="$saved_CFLAGS -qlanglvl=stdc99";
5783    cat >conftest.$ac_ext <<_ACEOF
5784/* confdefs.h.  */
5785_ACEOF
5786cat confdefs.h >>conftest.$ac_ext
5787cat >>conftest.$ac_ext <<_ACEOF
5788/* end confdefs.h.  */
5789#include <stdio.h>
5790int
5791main ()
5792{
5793 struct foo {int x;char y;};
5794       struct foo bar = { .y = 'X', .x = 1 };
5795
5796  ;
5797  return 0;
5798}
5799_ACEOF
5800rm -f conftest.$ac_objext
5801if { (ac_try="$ac_compile"
5802case "(($ac_try" in
5803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804  *) ac_try_echo=$ac_try;;
5805esac
5806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5807$as_echo "$ac_try_echo") >&5
5808  (eval "$ac_compile") 2>conftest.er1
5809  ac_status=$?
5810  grep -v '^ *+' conftest.er1 >conftest.err
5811  rm -f conftest.er1
5812  cat conftest.err >&5
5813  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814  (exit $ac_status); } && {
5815	 test -z "$ac_c_werror_flag" ||
5816	 test ! -s conftest.err
5817       } && test -s conftest.$ac_objext; then
5818  { $as_echo "$as_me:$LINENO: result: yes" >&5
5819$as_echo "yes" >&6; }; c99_init=yes
5820else
5821  $as_echo "$as_me: failed program was:" >&5
5822sed 's/^/| /' conftest.$ac_ext >&5
5823
5824	{ $as_echo "$as_me:$LINENO: result: no" >&5
5825$as_echo "no" >&6; }
5826fi
5827
5828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829fi
5830if test x"$c99_init" = x"no"; then
5831    { $as_echo "$as_me:$LINENO: checking for C99 designated initializers with -c99" >&5
5832$as_echo_n "checking for C99 designated initializers with -c99... " >&6; }
5833    CFLAGS="$saved_CFLAGS -c99"
5834    cat >conftest.$ac_ext <<_ACEOF
5835/* confdefs.h.  */
5836_ACEOF
5837cat confdefs.h >>conftest.$ac_ext
5838cat >>conftest.$ac_ext <<_ACEOF
5839/* end confdefs.h.  */
5840#include <stdio.h>
5841int
5842main ()
5843{
5844 struct foo {int x;char y;};
5845       struct foo bar = { .y = 'X', .x = 1 };
5846
5847  ;
5848  return 0;
5849}
5850_ACEOF
5851rm -f conftest.$ac_objext
5852if { (ac_try="$ac_compile"
5853case "(($ac_try" in
5854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855  *) ac_try_echo=$ac_try;;
5856esac
5857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5858$as_echo "$ac_try_echo") >&5
5859  (eval "$ac_compile") 2>conftest.er1
5860  ac_status=$?
5861  grep -v '^ *+' conftest.er1 >conftest.err
5862  rm -f conftest.er1
5863  cat conftest.err >&5
5864  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865  (exit $ac_status); } && {
5866	 test -z "$ac_c_werror_flag" ||
5867	 test ! -s conftest.err
5868       } && test -s conftest.$ac_objext; then
5869  { $as_echo "$as_me:$LINENO: result: yes" >&5
5870$as_echo "yes" >&6; }; c99_init=yes
5871else
5872  $as_echo "$as_me: failed program was:" >&5
5873sed 's/^/| /' conftest.$ac_ext >&5
5874
5875	{ $as_echo "$as_me:$LINENO: result: no" >&5
5876$as_echo "no" >&6; }
5877fi
5878
5879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880fi
5881
5882if test "`uname`" = "HP-UX"; then
5883  if test "$ac_cv_c_compiler_gnu" = no; then
5884	# special override for broken HP-UX compiler - I can't find a way to test
5885	# this properly (its a compiler bug)
5886	CFLAGS="$CFLAGS -AC99";
5887	c99_init=yes;
5888  fi
5889fi
5890
5891if test x"$c99_init" = x"yes"; then
5892    saved_CFLAGS=""
5893
5894else
5895    CFLAGS="$saved_CFLAGS"
5896    saved_CFLAGS=""
5897    { $as_echo "$as_me:$LINENO: WARNING: c99 structure initializer are not supported" >&5
5898$as_echo "$as_me: WARNING: c99 structure initializer are not supported" >&2;}
5899fi
5900
5901
5902# Find a good install program.  We prefer a C program (faster),
5903# so one script is as good as another.  But avoid the broken or
5904# incompatible versions:
5905# SysV /etc/install, /usr/sbin/install
5906# SunOS /usr/etc/install
5907# IRIX /sbin/install
5908# AIX /bin/install
5909# AmigaOS /C/install, which installs bootblocks on floppy discs
5910# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5911# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5912# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5913# OS/2's system install, which has a completely different semantic
5914# ./install, which can be erroneously created by make from ./install.sh.
5915# Reject install programs that cannot install multiple files.
5916{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5917$as_echo_n "checking for a BSD-compatible install... " >&6; }
5918if test -z "$INSTALL"; then
5919if test "${ac_cv_path_install+set}" = set; then
5920  $as_echo_n "(cached) " >&6
5921else
5922  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925  IFS=$as_save_IFS
5926  test -z "$as_dir" && as_dir=.
5927  # Account for people who put trailing slashes in PATH elements.
5928case $as_dir/ in
5929  ./ | .// | /cC/* | \
5930  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5931  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5932  /usr/ucb/* ) ;;
5933  *)
5934    # OSF1 and SCO ODT 3.0 have their own names for install.
5935    # Don't use installbsd from OSF since it installs stuff as root
5936    # by default.
5937    for ac_prog in ginstall scoinst install; do
5938      for ac_exec_ext in '' $ac_executable_extensions; do
5939	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5940	  if test $ac_prog = install &&
5941	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5942	    # AIX install.  It has an incompatible calling convention.
5943	    :
5944	  elif test $ac_prog = install &&
5945	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5946	    # program-specific install script used by HP pwplus--don't use.
5947	    :
5948	  else
5949	    rm -rf conftest.one conftest.two conftest.dir
5950	    echo one > conftest.one
5951	    echo two > conftest.two
5952	    mkdir conftest.dir
5953	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5954	      test -s conftest.one && test -s conftest.two &&
5955	      test -s conftest.dir/conftest.one &&
5956	      test -s conftest.dir/conftest.two
5957	    then
5958	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5959	      break 3
5960	    fi
5961	  fi
5962	fi
5963      done
5964    done
5965    ;;
5966esac
5967
5968done
5969IFS=$as_save_IFS
5970
5971rm -rf conftest.one conftest.two conftest.dir
5972
5973fi
5974  if test "${ac_cv_path_install+set}" = set; then
5975    INSTALL=$ac_cv_path_install
5976  else
5977    # As a last resort, use the slow shell script.  Don't cache a
5978    # value for INSTALL within a source directory, because that will
5979    # break other packages using the cache if that directory is
5980    # removed, or if the value is a relative name.
5981    INSTALL=$ac_install_sh
5982  fi
5983fi
5984{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5985$as_echo "$INSTALL" >&6; }
5986
5987# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5988# It thinks the first close brace ends the variable substitution.
5989test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5990
5991test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5992
5993test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5994
5995
5996{ $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
5997$as_echo_n "checking for library containing strerror... " >&6; }
5998if test "${ac_cv_search_strerror+set}" = set; then
5999  $as_echo_n "(cached) " >&6
6000else
6001  ac_func_search_save_LIBS=$LIBS
6002cat >conftest.$ac_ext <<_ACEOF
6003/* confdefs.h.  */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h.  */
6008
6009/* Override any GCC internal prototype to avoid an error.
6010   Use char because int might match the return type of a GCC
6011   builtin and then its argument prototype would still apply.  */
6012#ifdef __cplusplus
6013extern "C"
6014#endif
6015char strerror ();
6016int
6017main ()
6018{
6019return strerror ();
6020  ;
6021  return 0;
6022}
6023_ACEOF
6024for ac_lib in '' cposix; do
6025  if test -z "$ac_lib"; then
6026    ac_res="none required"
6027  else
6028    ac_res=-l$ac_lib
6029    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6030  fi
6031  rm -f conftest.$ac_objext conftest$ac_exeext
6032if { (ac_try="$ac_link"
6033case "(($ac_try" in
6034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035  *) ac_try_echo=$ac_try;;
6036esac
6037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6038$as_echo "$ac_try_echo") >&5
6039  (eval "$ac_link") 2>conftest.er1
6040  ac_status=$?
6041  grep -v '^ *+' conftest.er1 >conftest.err
6042  rm -f conftest.er1
6043  cat conftest.err >&5
6044  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045  (exit $ac_status); } && {
6046	 test -z "$ac_c_werror_flag" ||
6047	 test ! -s conftest.err
6048       } && test -s conftest$ac_exeext && {
6049	 test "$cross_compiling" = yes ||
6050	 $as_test_x conftest$ac_exeext
6051       }; then
6052  ac_cv_search_strerror=$ac_res
6053else
6054  $as_echo "$as_me: failed program was:" >&5
6055sed 's/^/| /' conftest.$ac_ext >&5
6056
6057
6058fi
6059
6060rm -rf conftest.dSYM
6061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6062      conftest$ac_exeext
6063  if test "${ac_cv_search_strerror+set}" = set; then
6064  break
6065fi
6066done
6067if test "${ac_cv_search_strerror+set}" = set; then
6068  :
6069else
6070  ac_cv_search_strerror=no
6071fi
6072rm conftest.$ac_ext
6073LIBS=$ac_func_search_save_LIBS
6074fi
6075{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6076$as_echo "$ac_cv_search_strerror" >&6; }
6077ac_res=$ac_cv_search_strerror
6078if test "$ac_res" != no; then
6079  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6080
6081fi
6082
6083
6084
6085
6086
6087 cat >>confdefs.h <<\EOF
6088#ifndef _XOPEN_SOURCE_EXTENDED
6089#define _XOPEN_SOURCE_EXTENDED 1
6090#endif
6091EOF
6092
6093
6094# Check whether --enable-largefile was given.
6095if test "${enable_largefile+set}" = set; then
6096  enableval=$enable_largefile;
6097fi
6098
6099if test "$enable_largefile" != no; then
6100
6101  { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6102$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6103if test "${ac_cv_sys_largefile_CC+set}" = set; then
6104  $as_echo_n "(cached) " >&6
6105else
6106  ac_cv_sys_largefile_CC=no
6107     if test "$GCC" != yes; then
6108       ac_save_CC=$CC
6109       while :; do
6110	 # IRIX 6.2 and later do not support large files by default,
6111	 # so use the C compiler's -n32 option if that helps.
6112	 cat >conftest.$ac_ext <<_ACEOF
6113/* confdefs.h.  */
6114_ACEOF
6115cat confdefs.h >>conftest.$ac_ext
6116cat >>conftest.$ac_ext <<_ACEOF
6117/* end confdefs.h.  */
6118#include <sys/types.h>
6119 /* Check that off_t can represent 2**63 - 1 correctly.
6120    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6121    since some C++ compilers masquerading as C compilers
6122    incorrectly reject 9223372036854775807.  */
6123#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6124  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6125		       && LARGE_OFF_T % 2147483647 == 1)
6126		      ? 1 : -1];
6127int
6128main ()
6129{
6130
6131  ;
6132  return 0;
6133}
6134_ACEOF
6135	 rm -f conftest.$ac_objext
6136if { (ac_try="$ac_compile"
6137case "(($ac_try" in
6138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139  *) ac_try_echo=$ac_try;;
6140esac
6141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6142$as_echo "$ac_try_echo") >&5
6143  (eval "$ac_compile") 2>conftest.er1
6144  ac_status=$?
6145  grep -v '^ *+' conftest.er1 >conftest.err
6146  rm -f conftest.er1
6147  cat conftest.err >&5
6148  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149  (exit $ac_status); } && {
6150	 test -z "$ac_c_werror_flag" ||
6151	 test ! -s conftest.err
6152       } && test -s conftest.$ac_objext; then
6153  break
6154else
6155  $as_echo "$as_me: failed program was:" >&5
6156sed 's/^/| /' conftest.$ac_ext >&5
6157
6158
6159fi
6160
6161rm -f core conftest.err conftest.$ac_objext
6162	 CC="$CC -n32"
6163	 rm -f conftest.$ac_objext
6164if { (ac_try="$ac_compile"
6165case "(($ac_try" in
6166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167  *) ac_try_echo=$ac_try;;
6168esac
6169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6170$as_echo "$ac_try_echo") >&5
6171  (eval "$ac_compile") 2>conftest.er1
6172  ac_status=$?
6173  grep -v '^ *+' conftest.er1 >conftest.err
6174  rm -f conftest.er1
6175  cat conftest.err >&5
6176  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177  (exit $ac_status); } && {
6178	 test -z "$ac_c_werror_flag" ||
6179	 test ! -s conftest.err
6180       } && test -s conftest.$ac_objext; then
6181  ac_cv_sys_largefile_CC=' -n32'; break
6182else
6183  $as_echo "$as_me: failed program was:" >&5
6184sed 's/^/| /' conftest.$ac_ext >&5
6185
6186
6187fi
6188
6189rm -f core conftest.err conftest.$ac_objext
6190	 break
6191       done
6192       CC=$ac_save_CC
6193       rm -f conftest.$ac_ext
6194    fi
6195fi
6196{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6197$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6198  if test "$ac_cv_sys_largefile_CC" != no; then
6199    CC=$CC$ac_cv_sys_largefile_CC
6200  fi
6201
6202  { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6203$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6204if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6205  $as_echo_n "(cached) " >&6
6206else
6207  while :; do
6208  cat >conftest.$ac_ext <<_ACEOF
6209/* confdefs.h.  */
6210_ACEOF
6211cat confdefs.h >>conftest.$ac_ext
6212cat >>conftest.$ac_ext <<_ACEOF
6213/* end confdefs.h.  */
6214#include <sys/types.h>
6215 /* Check that off_t can represent 2**63 - 1 correctly.
6216    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6217    since some C++ compilers masquerading as C compilers
6218    incorrectly reject 9223372036854775807.  */
6219#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6220  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6221		       && LARGE_OFF_T % 2147483647 == 1)
6222		      ? 1 : -1];
6223int
6224main ()
6225{
6226
6227  ;
6228  return 0;
6229}
6230_ACEOF
6231rm -f conftest.$ac_objext
6232if { (ac_try="$ac_compile"
6233case "(($ac_try" in
6234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235  *) ac_try_echo=$ac_try;;
6236esac
6237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6238$as_echo "$ac_try_echo") >&5
6239  (eval "$ac_compile") 2>conftest.er1
6240  ac_status=$?
6241  grep -v '^ *+' conftest.er1 >conftest.err
6242  rm -f conftest.er1
6243  cat conftest.err >&5
6244  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245  (exit $ac_status); } && {
6246	 test -z "$ac_c_werror_flag" ||
6247	 test ! -s conftest.err
6248       } && test -s conftest.$ac_objext; then
6249  ac_cv_sys_file_offset_bits=no; break
6250else
6251  $as_echo "$as_me: failed program was:" >&5
6252sed 's/^/| /' conftest.$ac_ext >&5
6253
6254
6255fi
6256
6257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258  cat >conftest.$ac_ext <<_ACEOF
6259/* confdefs.h.  */
6260_ACEOF
6261cat confdefs.h >>conftest.$ac_ext
6262cat >>conftest.$ac_ext <<_ACEOF
6263/* end confdefs.h.  */
6264#define _FILE_OFFSET_BITS 64
6265#include <sys/types.h>
6266 /* Check that off_t can represent 2**63 - 1 correctly.
6267    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6268    since some C++ compilers masquerading as C compilers
6269    incorrectly reject 9223372036854775807.  */
6270#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6271  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6272		       && LARGE_OFF_T % 2147483647 == 1)
6273		      ? 1 : -1];
6274int
6275main ()
6276{
6277
6278  ;
6279  return 0;
6280}
6281_ACEOF
6282rm -f conftest.$ac_objext
6283if { (ac_try="$ac_compile"
6284case "(($ac_try" in
6285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286  *) ac_try_echo=$ac_try;;
6287esac
6288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6289$as_echo "$ac_try_echo") >&5
6290  (eval "$ac_compile") 2>conftest.er1
6291  ac_status=$?
6292  grep -v '^ *+' conftest.er1 >conftest.err
6293  rm -f conftest.er1
6294  cat conftest.err >&5
6295  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296  (exit $ac_status); } && {
6297	 test -z "$ac_c_werror_flag" ||
6298	 test ! -s conftest.err
6299       } && test -s conftest.$ac_objext; then
6300  ac_cv_sys_file_offset_bits=64; break
6301else
6302  $as_echo "$as_me: failed program was:" >&5
6303sed 's/^/| /' conftest.$ac_ext >&5
6304
6305
6306fi
6307
6308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309  ac_cv_sys_file_offset_bits=unknown
6310  break
6311done
6312fi
6313{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6314$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6315case $ac_cv_sys_file_offset_bits in #(
6316  no | unknown) ;;
6317  *)
6318cat >>confdefs.h <<_ACEOF
6319#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6320_ACEOF
6321;;
6322esac
6323rm -rf conftest*
6324  if test $ac_cv_sys_file_offset_bits = unknown; then
6325    { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6326$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6327if test "${ac_cv_sys_large_files+set}" = set; then
6328  $as_echo_n "(cached) " >&6
6329else
6330  while :; do
6331  cat >conftest.$ac_ext <<_ACEOF
6332/* confdefs.h.  */
6333_ACEOF
6334cat confdefs.h >>conftest.$ac_ext
6335cat >>conftest.$ac_ext <<_ACEOF
6336/* end confdefs.h.  */
6337#include <sys/types.h>
6338 /* Check that off_t can represent 2**63 - 1 correctly.
6339    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6340    since some C++ compilers masquerading as C compilers
6341    incorrectly reject 9223372036854775807.  */
6342#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6343  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6344		       && LARGE_OFF_T % 2147483647 == 1)
6345		      ? 1 : -1];
6346int
6347main ()
6348{
6349
6350  ;
6351  return 0;
6352}
6353_ACEOF
6354rm -f conftest.$ac_objext
6355if { (ac_try="$ac_compile"
6356case "(($ac_try" in
6357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358  *) ac_try_echo=$ac_try;;
6359esac
6360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6361$as_echo "$ac_try_echo") >&5
6362  (eval "$ac_compile") 2>conftest.er1
6363  ac_status=$?
6364  grep -v '^ *+' conftest.er1 >conftest.err
6365  rm -f conftest.er1
6366  cat conftest.err >&5
6367  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368  (exit $ac_status); } && {
6369	 test -z "$ac_c_werror_flag" ||
6370	 test ! -s conftest.err
6371       } && test -s conftest.$ac_objext; then
6372  ac_cv_sys_large_files=no; break
6373else
6374  $as_echo "$as_me: failed program was:" >&5
6375sed 's/^/| /' conftest.$ac_ext >&5
6376
6377
6378fi
6379
6380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381  cat >conftest.$ac_ext <<_ACEOF
6382/* confdefs.h.  */
6383_ACEOF
6384cat confdefs.h >>conftest.$ac_ext
6385cat >>conftest.$ac_ext <<_ACEOF
6386/* end confdefs.h.  */
6387#define _LARGE_FILES 1
6388#include <sys/types.h>
6389 /* Check that off_t can represent 2**63 - 1 correctly.
6390    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6391    since some C++ compilers masquerading as C compilers
6392    incorrectly reject 9223372036854775807.  */
6393#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6394  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6395		       && LARGE_OFF_T % 2147483647 == 1)
6396		      ? 1 : -1];
6397int
6398main ()
6399{
6400
6401  ;
6402  return 0;
6403}
6404_ACEOF
6405rm -f conftest.$ac_objext
6406if { (ac_try="$ac_compile"
6407case "(($ac_try" in
6408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409  *) ac_try_echo=$ac_try;;
6410esac
6411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6412$as_echo "$ac_try_echo") >&5
6413  (eval "$ac_compile") 2>conftest.er1
6414  ac_status=$?
6415  grep -v '^ *+' conftest.er1 >conftest.err
6416  rm -f conftest.er1
6417  cat conftest.err >&5
6418  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419  (exit $ac_status); } && {
6420	 test -z "$ac_c_werror_flag" ||
6421	 test ! -s conftest.err
6422       } && test -s conftest.$ac_objext; then
6423  ac_cv_sys_large_files=1; break
6424else
6425  $as_echo "$as_me: failed program was:" >&5
6426sed 's/^/| /' conftest.$ac_ext >&5
6427
6428
6429fi
6430
6431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432  ac_cv_sys_large_files=unknown
6433  break
6434done
6435fi
6436{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6437$as_echo "$ac_cv_sys_large_files" >&6; }
6438case $ac_cv_sys_large_files in #(
6439  no | unknown) ;;
6440  *)
6441cat >>confdefs.h <<_ACEOF
6442#define _LARGE_FILES $ac_cv_sys_large_files
6443_ACEOF
6444;;
6445esac
6446rm -rf conftest*
6447  fi
6448fi
6449
6450
6451case "$host_os" in
6452	*irix6*) cat >> confdefs.h <<\EOF
6453#include <standards.h>
6454EOF
6455
6456		;;
6457	*hpux*)
6458		# mmap on HPUX is completely broken...
6459
6460cat >>confdefs.h <<\_ACEOF
6461#define MMAP_BLACKLIST 1
6462_ACEOF
6463
6464		if test "`uname -r`" = "B.11.00" -o "`uname -r`" = "B.11.11"; then
6465			{ $as_echo "$as_me:$LINENO: WARNING: Enabling HPUX 11.00/11.11 header bug workaround" >&5
6466$as_echo "$as_me: WARNING: Enabling HPUX 11.00/11.11 header bug workaround" >&2;}
6467			CFLAGS="$CFLAGS -Dpread=pread64 -Dpwrite=pwrite64"
6468		fi
6469		if test "`uname -r`" = "B.11.23"; then
6470			{ $as_echo "$as_me:$LINENO: WARNING: Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround" >&5
6471$as_echo "$as_me: WARNING: Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround" >&2;}
6472			CFLAGS="$CFLAGS -D_MACHINE_SYS_GETPPDP_INCLUDED"
6473		fi
6474		;;
6475	*aix*)
6476
6477cat >>confdefs.h <<\_ACEOF
6478#define BROKEN_STRNDUP 1
6479_ACEOF
6480
6481
6482cat >>confdefs.h <<\_ACEOF
6483#define BROKEN_STRNLEN 1
6484_ACEOF
6485
6486		if test "${GCC}" != "yes"; then
6487			## for funky AIX compiler using strncpy()
6488			CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
6489		fi
6490		;;
6491	*osf*)
6492		# this brings in socklen_t
6493
6494
6495
6496
6497 cat >>confdefs.h <<\EOF
6498#ifndef _XOPEN_SOURCE
6499#define _XOPEN_SOURCE 600
6500#endif
6501EOF
6502
6503
6504
6505
6506
6507 cat >>confdefs.h <<\EOF
6508#ifndef _OSF_SOURCE
6509#define _OSF_SOURCE 1
6510#endif
6511EOF
6512
6513		;;
6514	#
6515	# VOS may need to have POSIX support and System V compatibility enabled.
6516	#
6517	*vos*)
6518		case "$CFLAGS" in
6519			*-D_POSIX_C_SOURCE*);;
6520			*)
6521				CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112L"
6522
6523cat >>confdefs.h <<\_ACEOF
6524#define _POSIX_C_SOURCE 200112L
6525_ACEOF
6526
6527				;;
6528		esac
6529		case "$CFLAGS" in
6530			*-D_SYSV*|*-D_SVID_SOURCE*);;
6531			*)
6532				CFLAGS="$CFLAGS -D_SYSV"
6533
6534cat >>confdefs.h <<\_ACEOF
6535#define _SYSV 1
6536_ACEOF
6537
6538				;;
6539		esac
6540		;;
6541esac
6542
6543
6544
6545
6546for ac_header in standards.h
6547do
6548as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6550  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6551$as_echo_n "checking for $ac_header... " >&6; }
6552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6553  $as_echo_n "(cached) " >&6
6554fi
6555ac_res=`eval 'as_val=${'$as_ac_Header'}
6556		 $as_echo "$as_val"'`
6557	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6558$as_echo "$ac_res" >&6; }
6559else
6560  # Is the header compilable?
6561{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6562$as_echo_n "checking $ac_header usability... " >&6; }
6563cat >conftest.$ac_ext <<_ACEOF
6564/* confdefs.h.  */
6565_ACEOF
6566cat confdefs.h >>conftest.$ac_ext
6567cat >>conftest.$ac_ext <<_ACEOF
6568/* end confdefs.h.  */
6569$ac_includes_default
6570#include <$ac_header>
6571_ACEOF
6572rm -f conftest.$ac_objext
6573if { (ac_try="$ac_compile"
6574case "(($ac_try" in
6575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576  *) ac_try_echo=$ac_try;;
6577esac
6578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6579$as_echo "$ac_try_echo") >&5
6580  (eval "$ac_compile") 2>conftest.er1
6581  ac_status=$?
6582  grep -v '^ *+' conftest.er1 >conftest.err
6583  rm -f conftest.er1
6584  cat conftest.err >&5
6585  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586  (exit $ac_status); } && {
6587	 test -z "$ac_c_werror_flag" ||
6588	 test ! -s conftest.err
6589       } && test -s conftest.$ac_objext; then
6590  ac_header_compiler=yes
6591else
6592  $as_echo "$as_me: failed program was:" >&5
6593sed 's/^/| /' conftest.$ac_ext >&5
6594
6595	ac_header_compiler=no
6596fi
6597
6598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6600$as_echo "$ac_header_compiler" >&6; }
6601
6602# Is the header present?
6603{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6604$as_echo_n "checking $ac_header presence... " >&6; }
6605cat >conftest.$ac_ext <<_ACEOF
6606/* confdefs.h.  */
6607_ACEOF
6608cat confdefs.h >>conftest.$ac_ext
6609cat >>conftest.$ac_ext <<_ACEOF
6610/* end confdefs.h.  */
6611#include <$ac_header>
6612_ACEOF
6613if { (ac_try="$ac_cpp conftest.$ac_ext"
6614case "(($ac_try" in
6615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616  *) ac_try_echo=$ac_try;;
6617esac
6618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6619$as_echo "$ac_try_echo") >&5
6620  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6621  ac_status=$?
6622  grep -v '^ *+' conftest.er1 >conftest.err
6623  rm -f conftest.er1
6624  cat conftest.err >&5
6625  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626  (exit $ac_status); } >/dev/null && {
6627	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6628	 test ! -s conftest.err
6629       }; then
6630  ac_header_preproc=yes
6631else
6632  $as_echo "$as_me: failed program was:" >&5
6633sed 's/^/| /' conftest.$ac_ext >&5
6634
6635  ac_header_preproc=no
6636fi
6637
6638rm -f conftest.err conftest.$ac_ext
6639{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6640$as_echo "$ac_header_preproc" >&6; }
6641
6642# So?  What about this header?
6643case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6644  yes:no: )
6645    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6646$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6647    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6648$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6649    ac_header_preproc=yes
6650    ;;
6651  no:yes:* )
6652    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6653$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6654    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6655$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6656    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6657$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6658    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6659$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6660    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6661$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6662    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6663$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6664    ( cat <<\_ASBOX
6665## ---------------------------------------- ##
6666## Report this to samba-technical@samba.org ##
6667## ---------------------------------------- ##
6668_ASBOX
6669     ) | sed "s/^/$as_me: WARNING:     /" >&2
6670    ;;
6671esac
6672{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6673$as_echo_n "checking for $ac_header... " >&6; }
6674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6675  $as_echo_n "(cached) " >&6
6676else
6677  eval "$as_ac_Header=\$ac_header_preproc"
6678fi
6679ac_res=`eval 'as_val=${'$as_ac_Header'}
6680		 $as_echo "$as_val"'`
6681	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6682$as_echo "$ac_res" >&6; }
6683
6684fi
6685as_val=`eval 'as_val=${'$as_ac_Header'}
6686		 $as_echo "$as_val"'`
6687   if test "x$as_val" = x""yes; then
6688  cat >>confdefs.h <<_ACEOF
6689#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6690_ACEOF
6691
6692fi
6693
6694done
6695
6696
6697# Solaris needs HAVE_LONG_LONG defined
6698{ $as_echo "$as_me:$LINENO: checking for long long" >&5
6699$as_echo_n "checking for long long... " >&6; }
6700if test "${ac_cv_type_long_long+set}" = set; then
6701  $as_echo_n "(cached) " >&6
6702else
6703  ac_cv_type_long_long=no
6704cat >conftest.$ac_ext <<_ACEOF
6705/* confdefs.h.  */
6706_ACEOF
6707cat confdefs.h >>conftest.$ac_ext
6708cat >>conftest.$ac_ext <<_ACEOF
6709/* end confdefs.h.  */
6710$ac_includes_default
6711int
6712main ()
6713{
6714if (sizeof (long long))
6715       return 0;
6716  ;
6717  return 0;
6718}
6719_ACEOF
6720rm -f conftest.$ac_objext
6721if { (ac_try="$ac_compile"
6722case "(($ac_try" in
6723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724  *) ac_try_echo=$ac_try;;
6725esac
6726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6727$as_echo "$ac_try_echo") >&5
6728  (eval "$ac_compile") 2>conftest.er1
6729  ac_status=$?
6730  grep -v '^ *+' conftest.er1 >conftest.err
6731  rm -f conftest.er1
6732  cat conftest.err >&5
6733  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734  (exit $ac_status); } && {
6735	 test -z "$ac_c_werror_flag" ||
6736	 test ! -s conftest.err
6737       } && test -s conftest.$ac_objext; then
6738  cat >conftest.$ac_ext <<_ACEOF
6739/* confdefs.h.  */
6740_ACEOF
6741cat confdefs.h >>conftest.$ac_ext
6742cat >>conftest.$ac_ext <<_ACEOF
6743/* end confdefs.h.  */
6744$ac_includes_default
6745int
6746main ()
6747{
6748if (sizeof ((long long)))
6749	  return 0;
6750  ;
6751  return 0;
6752}
6753_ACEOF
6754rm -f conftest.$ac_objext
6755if { (ac_try="$ac_compile"
6756case "(($ac_try" in
6757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758  *) ac_try_echo=$ac_try;;
6759esac
6760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6761$as_echo "$ac_try_echo") >&5
6762  (eval "$ac_compile") 2>conftest.er1
6763  ac_status=$?
6764  grep -v '^ *+' conftest.er1 >conftest.err
6765  rm -f conftest.er1
6766  cat conftest.err >&5
6767  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768  (exit $ac_status); } && {
6769	 test -z "$ac_c_werror_flag" ||
6770	 test ! -s conftest.err
6771       } && test -s conftest.$ac_objext; then
6772  :
6773else
6774  $as_echo "$as_me: failed program was:" >&5
6775sed 's/^/| /' conftest.$ac_ext >&5
6776
6777	ac_cv_type_long_long=yes
6778fi
6779
6780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781else
6782  $as_echo "$as_me: failed program was:" >&5
6783sed 's/^/| /' conftest.$ac_ext >&5
6784
6785
6786fi
6787
6788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789fi
6790{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6791$as_echo "$ac_cv_type_long_long" >&6; }
6792if test "x$ac_cv_type_long_long" = x""yes; then
6793
6794cat >>confdefs.h <<_ACEOF
6795#define HAVE_LONG_LONG 1
6796_ACEOF
6797
6798
6799fi
6800
6801
6802# The cast to long int works around a bug in the HP C Compiler
6803# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6804# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6805# This bug is HP SR number 8606223364.
6806{ $as_echo "$as_me:$LINENO: checking size of int" >&5
6807$as_echo_n "checking size of int... " >&6; }
6808if test "${ac_cv_sizeof_int+set}" = set; then
6809  $as_echo_n "(cached) " >&6
6810else
6811  if test "$cross_compiling" = yes; then
6812  # Depending upon the size, compute the lo and hi bounds.
6813cat >conftest.$ac_ext <<_ACEOF
6814/* confdefs.h.  */
6815_ACEOF
6816cat confdefs.h >>conftest.$ac_ext
6817cat >>conftest.$ac_ext <<_ACEOF
6818/* end confdefs.h.  */
6819$ac_includes_default
6820int
6821main ()
6822{
6823static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
6824test_array [0] = 0
6825
6826  ;
6827  return 0;
6828}
6829_ACEOF
6830rm -f conftest.$ac_objext
6831if { (ac_try="$ac_compile"
6832case "(($ac_try" in
6833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6834  *) ac_try_echo=$ac_try;;
6835esac
6836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6837$as_echo "$ac_try_echo") >&5
6838  (eval "$ac_compile") 2>conftest.er1
6839  ac_status=$?
6840  grep -v '^ *+' conftest.er1 >conftest.err
6841  rm -f conftest.er1
6842  cat conftest.err >&5
6843  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844  (exit $ac_status); } && {
6845	 test -z "$ac_c_werror_flag" ||
6846	 test ! -s conftest.err
6847       } && test -s conftest.$ac_objext; then
6848  ac_lo=0 ac_mid=0
6849  while :; do
6850    cat >conftest.$ac_ext <<_ACEOF
6851/* confdefs.h.  */
6852_ACEOF
6853cat confdefs.h >>conftest.$ac_ext
6854cat >>conftest.$ac_ext <<_ACEOF
6855/* end confdefs.h.  */
6856$ac_includes_default
6857int
6858main ()
6859{
6860static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
6861test_array [0] = 0
6862
6863  ;
6864  return 0;
6865}
6866_ACEOF
6867rm -f conftest.$ac_objext
6868if { (ac_try="$ac_compile"
6869case "(($ac_try" in
6870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871  *) ac_try_echo=$ac_try;;
6872esac
6873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6874$as_echo "$ac_try_echo") >&5
6875  (eval "$ac_compile") 2>conftest.er1
6876  ac_status=$?
6877  grep -v '^ *+' conftest.er1 >conftest.err
6878  rm -f conftest.er1
6879  cat conftest.err >&5
6880  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881  (exit $ac_status); } && {
6882	 test -z "$ac_c_werror_flag" ||
6883	 test ! -s conftest.err
6884       } && test -s conftest.$ac_objext; then
6885  ac_hi=$ac_mid; break
6886else
6887  $as_echo "$as_me: failed program was:" >&5
6888sed 's/^/| /' conftest.$ac_ext >&5
6889
6890	ac_lo=`expr $ac_mid + 1`
6891			if test $ac_lo -le $ac_mid; then
6892			  ac_lo= ac_hi=
6893			  break
6894			fi
6895			ac_mid=`expr 2 '*' $ac_mid + 1`
6896fi
6897
6898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899  done
6900else
6901  $as_echo "$as_me: failed program was:" >&5
6902sed 's/^/| /' conftest.$ac_ext >&5
6903
6904	cat >conftest.$ac_ext <<_ACEOF
6905/* confdefs.h.  */
6906_ACEOF
6907cat confdefs.h >>conftest.$ac_ext
6908cat >>conftest.$ac_ext <<_ACEOF
6909/* end confdefs.h.  */
6910$ac_includes_default
6911int
6912main ()
6913{
6914static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
6915test_array [0] = 0
6916
6917  ;
6918  return 0;
6919}
6920_ACEOF
6921rm -f conftest.$ac_objext
6922if { (ac_try="$ac_compile"
6923case "(($ac_try" in
6924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925  *) ac_try_echo=$ac_try;;
6926esac
6927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6928$as_echo "$ac_try_echo") >&5
6929  (eval "$ac_compile") 2>conftest.er1
6930  ac_status=$?
6931  grep -v '^ *+' conftest.er1 >conftest.err
6932  rm -f conftest.er1
6933  cat conftest.err >&5
6934  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935  (exit $ac_status); } && {
6936	 test -z "$ac_c_werror_flag" ||
6937	 test ! -s conftest.err
6938       } && test -s conftest.$ac_objext; then
6939  ac_hi=-1 ac_mid=-1
6940  while :; do
6941    cat >conftest.$ac_ext <<_ACEOF
6942/* confdefs.h.  */
6943_ACEOF
6944cat confdefs.h >>conftest.$ac_ext
6945cat >>conftest.$ac_ext <<_ACEOF
6946/* end confdefs.h.  */
6947$ac_includes_default
6948int
6949main ()
6950{
6951static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
6952test_array [0] = 0
6953
6954  ;
6955  return 0;
6956}
6957_ACEOF
6958rm -f conftest.$ac_objext
6959if { (ac_try="$ac_compile"
6960case "(($ac_try" in
6961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6962  *) ac_try_echo=$ac_try;;
6963esac
6964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6965$as_echo "$ac_try_echo") >&5
6966  (eval "$ac_compile") 2>conftest.er1
6967  ac_status=$?
6968  grep -v '^ *+' conftest.er1 >conftest.err
6969  rm -f conftest.er1
6970  cat conftest.err >&5
6971  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972  (exit $ac_status); } && {
6973	 test -z "$ac_c_werror_flag" ||
6974	 test ! -s conftest.err
6975       } && test -s conftest.$ac_objext; then
6976  ac_lo=$ac_mid; break
6977else
6978  $as_echo "$as_me: failed program was:" >&5
6979sed 's/^/| /' conftest.$ac_ext >&5
6980
6981	ac_hi=`expr '(' $ac_mid ')' - 1`
6982			if test $ac_mid -le $ac_hi; then
6983			  ac_lo= ac_hi=
6984			  break
6985			fi
6986			ac_mid=`expr 2 '*' $ac_mid`
6987fi
6988
6989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990  done
6991else
6992  $as_echo "$as_me: failed program was:" >&5
6993sed 's/^/| /' conftest.$ac_ext >&5
6994
6995	ac_lo= ac_hi=
6996fi
6997
6998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6999fi
7000
7001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7002# Binary search between lo and hi bounds.
7003while test "x$ac_lo" != "x$ac_hi"; do
7004  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7005  cat >conftest.$ac_ext <<_ACEOF
7006/* confdefs.h.  */
7007_ACEOF
7008cat confdefs.h >>conftest.$ac_ext
7009cat >>conftest.$ac_ext <<_ACEOF
7010/* end confdefs.h.  */
7011$ac_includes_default
7012int
7013main ()
7014{
7015static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
7016test_array [0] = 0
7017
7018  ;
7019  return 0;
7020}
7021_ACEOF
7022rm -f conftest.$ac_objext
7023if { (ac_try="$ac_compile"
7024case "(($ac_try" in
7025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7026  *) ac_try_echo=$ac_try;;
7027esac
7028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7029$as_echo "$ac_try_echo") >&5
7030  (eval "$ac_compile") 2>conftest.er1
7031  ac_status=$?
7032  grep -v '^ *+' conftest.er1 >conftest.err
7033  rm -f conftest.er1
7034  cat conftest.err >&5
7035  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036  (exit $ac_status); } && {
7037	 test -z "$ac_c_werror_flag" ||
7038	 test ! -s conftest.err
7039       } && test -s conftest.$ac_objext; then
7040  ac_hi=$ac_mid
7041else
7042  $as_echo "$as_me: failed program was:" >&5
7043sed 's/^/| /' conftest.$ac_ext >&5
7044
7045	ac_lo=`expr '(' $ac_mid ')' + 1`
7046fi
7047
7048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049done
7050case $ac_lo in
7051?*) ac_cv_sizeof_int=$ac_lo;;
7052'') if test "$ac_cv_type_int" = yes; then
7053     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7055{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7056See \`config.log' for more details." >&5
7057$as_echo "$as_me: error: cannot compute sizeof (int)
7058See \`config.log' for more details." >&2;}
7059   { (exit 77); exit 77; }; }; }
7060   else
7061     ac_cv_sizeof_int=0
7062   fi ;;
7063esac
7064else
7065  cat >conftest.$ac_ext <<_ACEOF
7066/* confdefs.h.  */
7067_ACEOF
7068cat confdefs.h >>conftest.$ac_ext
7069cat >>conftest.$ac_ext <<_ACEOF
7070/* end confdefs.h.  */
7071$ac_includes_default
7072static long int longval () { return (long int) (sizeof (int)); }
7073static unsigned long int ulongval () { return (long int) (sizeof (int)); }
7074#include <stdio.h>
7075#include <stdlib.h>
7076int
7077main ()
7078{
7079
7080  FILE *f = fopen ("conftest.val", "w");
7081  if (! f)
7082    return 1;
7083  if (((long int) (sizeof (int))) < 0)
7084    {
7085      long int i = longval ();
7086      if (i != ((long int) (sizeof (int))))
7087	return 1;
7088      fprintf (f, "%ld", i);
7089    }
7090  else
7091    {
7092      unsigned long int i = ulongval ();
7093      if (i != ((long int) (sizeof (int))))
7094	return 1;
7095      fprintf (f, "%lu", i);
7096    }
7097  /* Do not output a trailing newline, as this causes \r\n confusion
7098     on some platforms.  */
7099  return ferror (f) || fclose (f) != 0;
7100
7101  ;
7102  return 0;
7103}
7104_ACEOF
7105rm -f conftest$ac_exeext
7106if { (ac_try="$ac_link"
7107case "(($ac_try" in
7108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7109  *) ac_try_echo=$ac_try;;
7110esac
7111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7112$as_echo "$ac_try_echo") >&5
7113  (eval "$ac_link") 2>&5
7114  ac_status=$?
7115  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7117  { (case "(($ac_try" in
7118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119  *) ac_try_echo=$ac_try;;
7120esac
7121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7122$as_echo "$ac_try_echo") >&5
7123  (eval "$ac_try") 2>&5
7124  ac_status=$?
7125  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126  (exit $ac_status); }; }; then
7127  ac_cv_sizeof_int=`cat conftest.val`
7128else
7129  $as_echo "$as_me: program exited with status $ac_status" >&5
7130$as_echo "$as_me: failed program was:" >&5
7131sed 's/^/| /' conftest.$ac_ext >&5
7132
7133( exit $ac_status )
7134if test "$ac_cv_type_int" = yes; then
7135     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7137{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7138See \`config.log' for more details." >&5
7139$as_echo "$as_me: error: cannot compute sizeof (int)
7140See \`config.log' for more details." >&2;}
7141   { (exit 77); exit 77; }; }; }
7142   else
7143     ac_cv_sizeof_int=0
7144   fi
7145fi
7146rm -rf conftest.dSYM
7147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7148fi
7149rm -f conftest.val
7150fi
7151{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7152$as_echo "$ac_cv_sizeof_int" >&6; }
7153
7154
7155
7156cat >>confdefs.h <<_ACEOF
7157#define SIZEOF_INT $ac_cv_sizeof_int
7158_ACEOF
7159
7160
7161# The cast to long int works around a bug in the HP C Compiler
7162# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7163# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7164# This bug is HP SR number 8606223364.
7165{ $as_echo "$as_me:$LINENO: checking size of char" >&5
7166$as_echo_n "checking size of char... " >&6; }
7167if test "${ac_cv_sizeof_char+set}" = set; then
7168  $as_echo_n "(cached) " >&6
7169else
7170  if test "$cross_compiling" = yes; then
7171  # Depending upon the size, compute the lo and hi bounds.
7172cat >conftest.$ac_ext <<_ACEOF
7173/* confdefs.h.  */
7174_ACEOF
7175cat confdefs.h >>conftest.$ac_ext
7176cat >>conftest.$ac_ext <<_ACEOF
7177/* end confdefs.h.  */
7178$ac_includes_default
7179int
7180main ()
7181{
7182static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
7183test_array [0] = 0
7184
7185  ;
7186  return 0;
7187}
7188_ACEOF
7189rm -f conftest.$ac_objext
7190if { (ac_try="$ac_compile"
7191case "(($ac_try" in
7192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193  *) ac_try_echo=$ac_try;;
7194esac
7195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7196$as_echo "$ac_try_echo") >&5
7197  (eval "$ac_compile") 2>conftest.er1
7198  ac_status=$?
7199  grep -v '^ *+' conftest.er1 >conftest.err
7200  rm -f conftest.er1
7201  cat conftest.err >&5
7202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203  (exit $ac_status); } && {
7204	 test -z "$ac_c_werror_flag" ||
7205	 test ! -s conftest.err
7206       } && test -s conftest.$ac_objext; then
7207  ac_lo=0 ac_mid=0
7208  while :; do
7209    cat >conftest.$ac_ext <<_ACEOF
7210/* confdefs.h.  */
7211_ACEOF
7212cat confdefs.h >>conftest.$ac_ext
7213cat >>conftest.$ac_ext <<_ACEOF
7214/* end confdefs.h.  */
7215$ac_includes_default
7216int
7217main ()
7218{
7219static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
7220test_array [0] = 0
7221
7222  ;
7223  return 0;
7224}
7225_ACEOF
7226rm -f conftest.$ac_objext
7227if { (ac_try="$ac_compile"
7228case "(($ac_try" in
7229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230  *) ac_try_echo=$ac_try;;
7231esac
7232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7233$as_echo "$ac_try_echo") >&5
7234  (eval "$ac_compile") 2>conftest.er1
7235  ac_status=$?
7236  grep -v '^ *+' conftest.er1 >conftest.err
7237  rm -f conftest.er1
7238  cat conftest.err >&5
7239  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240  (exit $ac_status); } && {
7241	 test -z "$ac_c_werror_flag" ||
7242	 test ! -s conftest.err
7243       } && test -s conftest.$ac_objext; then
7244  ac_hi=$ac_mid; break
7245else
7246  $as_echo "$as_me: failed program was:" >&5
7247sed 's/^/| /' conftest.$ac_ext >&5
7248
7249	ac_lo=`expr $ac_mid + 1`
7250			if test $ac_lo -le $ac_mid; then
7251			  ac_lo= ac_hi=
7252			  break
7253			fi
7254			ac_mid=`expr 2 '*' $ac_mid + 1`
7255fi
7256
7257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7258  done
7259else
7260  $as_echo "$as_me: failed program was:" >&5
7261sed 's/^/| /' conftest.$ac_ext >&5
7262
7263	cat >conftest.$ac_ext <<_ACEOF
7264/* confdefs.h.  */
7265_ACEOF
7266cat confdefs.h >>conftest.$ac_ext
7267cat >>conftest.$ac_ext <<_ACEOF
7268/* end confdefs.h.  */
7269$ac_includes_default
7270int
7271main ()
7272{
7273static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
7274test_array [0] = 0
7275
7276  ;
7277  return 0;
7278}
7279_ACEOF
7280rm -f conftest.$ac_objext
7281if { (ac_try="$ac_compile"
7282case "(($ac_try" in
7283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284  *) ac_try_echo=$ac_try;;
7285esac
7286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7287$as_echo "$ac_try_echo") >&5
7288  (eval "$ac_compile") 2>conftest.er1
7289  ac_status=$?
7290  grep -v '^ *+' conftest.er1 >conftest.err
7291  rm -f conftest.er1
7292  cat conftest.err >&5
7293  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294  (exit $ac_status); } && {
7295	 test -z "$ac_c_werror_flag" ||
7296	 test ! -s conftest.err
7297       } && test -s conftest.$ac_objext; then
7298  ac_hi=-1 ac_mid=-1
7299  while :; do
7300    cat >conftest.$ac_ext <<_ACEOF
7301/* confdefs.h.  */
7302_ACEOF
7303cat confdefs.h >>conftest.$ac_ext
7304cat >>conftest.$ac_ext <<_ACEOF
7305/* end confdefs.h.  */
7306$ac_includes_default
7307int
7308main ()
7309{
7310static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
7311test_array [0] = 0
7312
7313  ;
7314  return 0;
7315}
7316_ACEOF
7317rm -f conftest.$ac_objext
7318if { (ac_try="$ac_compile"
7319case "(($ac_try" in
7320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321  *) ac_try_echo=$ac_try;;
7322esac
7323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7324$as_echo "$ac_try_echo") >&5
7325  (eval "$ac_compile") 2>conftest.er1
7326  ac_status=$?
7327  grep -v '^ *+' conftest.er1 >conftest.err
7328  rm -f conftest.er1
7329  cat conftest.err >&5
7330  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331  (exit $ac_status); } && {
7332	 test -z "$ac_c_werror_flag" ||
7333	 test ! -s conftest.err
7334       } && test -s conftest.$ac_objext; then
7335  ac_lo=$ac_mid; break
7336else
7337  $as_echo "$as_me: failed program was:" >&5
7338sed 's/^/| /' conftest.$ac_ext >&5
7339
7340	ac_hi=`expr '(' $ac_mid ')' - 1`
7341			if test $ac_mid -le $ac_hi; then
7342			  ac_lo= ac_hi=
7343			  break
7344			fi
7345			ac_mid=`expr 2 '*' $ac_mid`
7346fi
7347
7348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349  done
7350else
7351  $as_echo "$as_me: failed program was:" >&5
7352sed 's/^/| /' conftest.$ac_ext >&5
7353
7354	ac_lo= ac_hi=
7355fi
7356
7357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7358fi
7359
7360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7361# Binary search between lo and hi bounds.
7362while test "x$ac_lo" != "x$ac_hi"; do
7363  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7364  cat >conftest.$ac_ext <<_ACEOF
7365/* confdefs.h.  */
7366_ACEOF
7367cat confdefs.h >>conftest.$ac_ext
7368cat >>conftest.$ac_ext <<_ACEOF
7369/* end confdefs.h.  */
7370$ac_includes_default
7371int
7372main ()
7373{
7374static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
7375test_array [0] = 0
7376
7377  ;
7378  return 0;
7379}
7380_ACEOF
7381rm -f conftest.$ac_objext
7382if { (ac_try="$ac_compile"
7383case "(($ac_try" in
7384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385  *) ac_try_echo=$ac_try;;
7386esac
7387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7388$as_echo "$ac_try_echo") >&5
7389  (eval "$ac_compile") 2>conftest.er1
7390  ac_status=$?
7391  grep -v '^ *+' conftest.er1 >conftest.err
7392  rm -f conftest.er1
7393  cat conftest.err >&5
7394  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395  (exit $ac_status); } && {
7396	 test -z "$ac_c_werror_flag" ||
7397	 test ! -s conftest.err
7398       } && test -s conftest.$ac_objext; then
7399  ac_hi=$ac_mid
7400else
7401  $as_echo "$as_me: failed program was:" >&5
7402sed 's/^/| /' conftest.$ac_ext >&5
7403
7404	ac_lo=`expr '(' $ac_mid ')' + 1`
7405fi
7406
7407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408done
7409case $ac_lo in
7410?*) ac_cv_sizeof_char=$ac_lo;;
7411'') if test "$ac_cv_type_char" = yes; then
7412     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7414{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
7415See \`config.log' for more details." >&5
7416$as_echo "$as_me: error: cannot compute sizeof (char)
7417See \`config.log' for more details." >&2;}
7418   { (exit 77); exit 77; }; }; }
7419   else
7420     ac_cv_sizeof_char=0
7421   fi ;;
7422esac
7423else
7424  cat >conftest.$ac_ext <<_ACEOF
7425/* confdefs.h.  */
7426_ACEOF
7427cat confdefs.h >>conftest.$ac_ext
7428cat >>conftest.$ac_ext <<_ACEOF
7429/* end confdefs.h.  */
7430$ac_includes_default
7431static long int longval () { return (long int) (sizeof (char)); }
7432static unsigned long int ulongval () { return (long int) (sizeof (char)); }
7433#include <stdio.h>
7434#include <stdlib.h>
7435int
7436main ()
7437{
7438
7439  FILE *f = fopen ("conftest.val", "w");
7440  if (! f)
7441    return 1;
7442  if (((long int) (sizeof (char))) < 0)
7443    {
7444      long int i = longval ();
7445      if (i != ((long int) (sizeof (char))))
7446	return 1;
7447      fprintf (f, "%ld", i);
7448    }
7449  else
7450    {
7451      unsigned long int i = ulongval ();
7452      if (i != ((long int) (sizeof (char))))
7453	return 1;
7454      fprintf (f, "%lu", i);
7455    }
7456  /* Do not output a trailing newline, as this causes \r\n confusion
7457     on some platforms.  */
7458  return ferror (f) || fclose (f) != 0;
7459
7460  ;
7461  return 0;
7462}
7463_ACEOF
7464rm -f conftest$ac_exeext
7465if { (ac_try="$ac_link"
7466case "(($ac_try" in
7467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468  *) ac_try_echo=$ac_try;;
7469esac
7470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7471$as_echo "$ac_try_echo") >&5
7472  (eval "$ac_link") 2>&5
7473  ac_status=$?
7474  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7476  { (case "(($ac_try" in
7477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7478  *) ac_try_echo=$ac_try;;
7479esac
7480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7481$as_echo "$ac_try_echo") >&5
7482  (eval "$ac_try") 2>&5
7483  ac_status=$?
7484  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485  (exit $ac_status); }; }; then
7486  ac_cv_sizeof_char=`cat conftest.val`
7487else
7488  $as_echo "$as_me: program exited with status $ac_status" >&5
7489$as_echo "$as_me: failed program was:" >&5
7490sed 's/^/| /' conftest.$ac_ext >&5
7491
7492( exit $ac_status )
7493if test "$ac_cv_type_char" = yes; then
7494     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7496{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
7497See \`config.log' for more details." >&5
7498$as_echo "$as_me: error: cannot compute sizeof (char)
7499See \`config.log' for more details." >&2;}
7500   { (exit 77); exit 77; }; }; }
7501   else
7502     ac_cv_sizeof_char=0
7503   fi
7504fi
7505rm -rf conftest.dSYM
7506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7507fi
7508rm -f conftest.val
7509fi
7510{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
7511$as_echo "$ac_cv_sizeof_char" >&6; }
7512
7513
7514
7515cat >>confdefs.h <<_ACEOF
7516#define SIZEOF_CHAR $ac_cv_sizeof_char
7517_ACEOF
7518
7519
7520# The cast to long int works around a bug in the HP C Compiler
7521# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7522# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7523# This bug is HP SR number 8606223364.
7524{ $as_echo "$as_me:$LINENO: checking size of short" >&5
7525$as_echo_n "checking size of short... " >&6; }
7526if test "${ac_cv_sizeof_short+set}" = set; then
7527  $as_echo_n "(cached) " >&6
7528else
7529  if test "$cross_compiling" = yes; then
7530  # Depending upon the size, compute the lo and hi bounds.
7531cat >conftest.$ac_ext <<_ACEOF
7532/* confdefs.h.  */
7533_ACEOF
7534cat confdefs.h >>conftest.$ac_ext
7535cat >>conftest.$ac_ext <<_ACEOF
7536/* end confdefs.h.  */
7537$ac_includes_default
7538int
7539main ()
7540{
7541static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
7542test_array [0] = 0
7543
7544  ;
7545  return 0;
7546}
7547_ACEOF
7548rm -f conftest.$ac_objext
7549if { (ac_try="$ac_compile"
7550case "(($ac_try" in
7551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552  *) ac_try_echo=$ac_try;;
7553esac
7554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7555$as_echo "$ac_try_echo") >&5
7556  (eval "$ac_compile") 2>conftest.er1
7557  ac_status=$?
7558  grep -v '^ *+' conftest.er1 >conftest.err
7559  rm -f conftest.er1
7560  cat conftest.err >&5
7561  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562  (exit $ac_status); } && {
7563	 test -z "$ac_c_werror_flag" ||
7564	 test ! -s conftest.err
7565       } && test -s conftest.$ac_objext; then
7566  ac_lo=0 ac_mid=0
7567  while :; do
7568    cat >conftest.$ac_ext <<_ACEOF
7569/* confdefs.h.  */
7570_ACEOF
7571cat confdefs.h >>conftest.$ac_ext
7572cat >>conftest.$ac_ext <<_ACEOF
7573/* end confdefs.h.  */
7574$ac_includes_default
7575int
7576main ()
7577{
7578static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
7579test_array [0] = 0
7580
7581  ;
7582  return 0;
7583}
7584_ACEOF
7585rm -f conftest.$ac_objext
7586if { (ac_try="$ac_compile"
7587case "(($ac_try" in
7588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589  *) ac_try_echo=$ac_try;;
7590esac
7591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7592$as_echo "$ac_try_echo") >&5
7593  (eval "$ac_compile") 2>conftest.er1
7594  ac_status=$?
7595  grep -v '^ *+' conftest.er1 >conftest.err
7596  rm -f conftest.er1
7597  cat conftest.err >&5
7598  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599  (exit $ac_status); } && {
7600	 test -z "$ac_c_werror_flag" ||
7601	 test ! -s conftest.err
7602       } && test -s conftest.$ac_objext; then
7603  ac_hi=$ac_mid; break
7604else
7605  $as_echo "$as_me: failed program was:" >&5
7606sed 's/^/| /' conftest.$ac_ext >&5
7607
7608	ac_lo=`expr $ac_mid + 1`
7609			if test $ac_lo -le $ac_mid; then
7610			  ac_lo= ac_hi=
7611			  break
7612			fi
7613			ac_mid=`expr 2 '*' $ac_mid + 1`
7614fi
7615
7616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617  done
7618else
7619  $as_echo "$as_me: failed program was:" >&5
7620sed 's/^/| /' conftest.$ac_ext >&5
7621
7622	cat >conftest.$ac_ext <<_ACEOF
7623/* confdefs.h.  */
7624_ACEOF
7625cat confdefs.h >>conftest.$ac_ext
7626cat >>conftest.$ac_ext <<_ACEOF
7627/* end confdefs.h.  */
7628$ac_includes_default
7629int
7630main ()
7631{
7632static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
7633test_array [0] = 0
7634
7635  ;
7636  return 0;
7637}
7638_ACEOF
7639rm -f conftest.$ac_objext
7640if { (ac_try="$ac_compile"
7641case "(($ac_try" in
7642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643  *) ac_try_echo=$ac_try;;
7644esac
7645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7646$as_echo "$ac_try_echo") >&5
7647  (eval "$ac_compile") 2>conftest.er1
7648  ac_status=$?
7649  grep -v '^ *+' conftest.er1 >conftest.err
7650  rm -f conftest.er1
7651  cat conftest.err >&5
7652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653  (exit $ac_status); } && {
7654	 test -z "$ac_c_werror_flag" ||
7655	 test ! -s conftest.err
7656       } && test -s conftest.$ac_objext; then
7657  ac_hi=-1 ac_mid=-1
7658  while :; do
7659    cat >conftest.$ac_ext <<_ACEOF
7660/* confdefs.h.  */
7661_ACEOF
7662cat confdefs.h >>conftest.$ac_ext
7663cat >>conftest.$ac_ext <<_ACEOF
7664/* end confdefs.h.  */
7665$ac_includes_default
7666int
7667main ()
7668{
7669static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
7670test_array [0] = 0
7671
7672  ;
7673  return 0;
7674}
7675_ACEOF
7676rm -f conftest.$ac_objext
7677if { (ac_try="$ac_compile"
7678case "(($ac_try" in
7679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680  *) ac_try_echo=$ac_try;;
7681esac
7682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7683$as_echo "$ac_try_echo") >&5
7684  (eval "$ac_compile") 2>conftest.er1
7685  ac_status=$?
7686  grep -v '^ *+' conftest.er1 >conftest.err
7687  rm -f conftest.er1
7688  cat conftest.err >&5
7689  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690  (exit $ac_status); } && {
7691	 test -z "$ac_c_werror_flag" ||
7692	 test ! -s conftest.err
7693       } && test -s conftest.$ac_objext; then
7694  ac_lo=$ac_mid; break
7695else
7696  $as_echo "$as_me: failed program was:" >&5
7697sed 's/^/| /' conftest.$ac_ext >&5
7698
7699	ac_hi=`expr '(' $ac_mid ')' - 1`
7700			if test $ac_mid -le $ac_hi; then
7701			  ac_lo= ac_hi=
7702			  break
7703			fi
7704			ac_mid=`expr 2 '*' $ac_mid`
7705fi
7706
7707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7708  done
7709else
7710  $as_echo "$as_me: failed program was:" >&5
7711sed 's/^/| /' conftest.$ac_ext >&5
7712
7713	ac_lo= ac_hi=
7714fi
7715
7716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717fi
7718
7719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720# Binary search between lo and hi bounds.
7721while test "x$ac_lo" != "x$ac_hi"; do
7722  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7723  cat >conftest.$ac_ext <<_ACEOF
7724/* confdefs.h.  */
7725_ACEOF
7726cat confdefs.h >>conftest.$ac_ext
7727cat >>conftest.$ac_ext <<_ACEOF
7728/* end confdefs.h.  */
7729$ac_includes_default
7730int
7731main ()
7732{
7733static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
7734test_array [0] = 0
7735
7736  ;
7737  return 0;
7738}
7739_ACEOF
7740rm -f conftest.$ac_objext
7741if { (ac_try="$ac_compile"
7742case "(($ac_try" in
7743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744  *) ac_try_echo=$ac_try;;
7745esac
7746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7747$as_echo "$ac_try_echo") >&5
7748  (eval "$ac_compile") 2>conftest.er1
7749  ac_status=$?
7750  grep -v '^ *+' conftest.er1 >conftest.err
7751  rm -f conftest.er1
7752  cat conftest.err >&5
7753  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754  (exit $ac_status); } && {
7755	 test -z "$ac_c_werror_flag" ||
7756	 test ! -s conftest.err
7757       } && test -s conftest.$ac_objext; then
7758  ac_hi=$ac_mid
7759else
7760  $as_echo "$as_me: failed program was:" >&5
7761sed 's/^/| /' conftest.$ac_ext >&5
7762
7763	ac_lo=`expr '(' $ac_mid ')' + 1`
7764fi
7765
7766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767done
7768case $ac_lo in
7769?*) ac_cv_sizeof_short=$ac_lo;;
7770'') if test "$ac_cv_type_short" = yes; then
7771     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7773{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
7774See \`config.log' for more details." >&5
7775$as_echo "$as_me: error: cannot compute sizeof (short)
7776See \`config.log' for more details." >&2;}
7777   { (exit 77); exit 77; }; }; }
7778   else
7779     ac_cv_sizeof_short=0
7780   fi ;;
7781esac
7782else
7783  cat >conftest.$ac_ext <<_ACEOF
7784/* confdefs.h.  */
7785_ACEOF
7786cat confdefs.h >>conftest.$ac_ext
7787cat >>conftest.$ac_ext <<_ACEOF
7788/* end confdefs.h.  */
7789$ac_includes_default
7790static long int longval () { return (long int) (sizeof (short)); }
7791static unsigned long int ulongval () { return (long int) (sizeof (short)); }
7792#include <stdio.h>
7793#include <stdlib.h>
7794int
7795main ()
7796{
7797
7798  FILE *f = fopen ("conftest.val", "w");
7799  if (! f)
7800    return 1;
7801  if (((long int) (sizeof (short))) < 0)
7802    {
7803      long int i = longval ();
7804      if (i != ((long int) (sizeof (short))))
7805	return 1;
7806      fprintf (f, "%ld", i);
7807    }
7808  else
7809    {
7810      unsigned long int i = ulongval ();
7811      if (i != ((long int) (sizeof (short))))
7812	return 1;
7813      fprintf (f, "%lu", i);
7814    }
7815  /* Do not output a trailing newline, as this causes \r\n confusion
7816     on some platforms.  */
7817  return ferror (f) || fclose (f) != 0;
7818
7819  ;
7820  return 0;
7821}
7822_ACEOF
7823rm -f conftest$ac_exeext
7824if { (ac_try="$ac_link"
7825case "(($ac_try" in
7826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827  *) ac_try_echo=$ac_try;;
7828esac
7829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7830$as_echo "$ac_try_echo") >&5
7831  (eval "$ac_link") 2>&5
7832  ac_status=$?
7833  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7835  { (case "(($ac_try" in
7836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837  *) ac_try_echo=$ac_try;;
7838esac
7839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7840$as_echo "$ac_try_echo") >&5
7841  (eval "$ac_try") 2>&5
7842  ac_status=$?
7843  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844  (exit $ac_status); }; }; then
7845  ac_cv_sizeof_short=`cat conftest.val`
7846else
7847  $as_echo "$as_me: program exited with status $ac_status" >&5
7848$as_echo "$as_me: failed program was:" >&5
7849sed 's/^/| /' conftest.$ac_ext >&5
7850
7851( exit $ac_status )
7852if test "$ac_cv_type_short" = yes; then
7853     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7855{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
7856See \`config.log' for more details." >&5
7857$as_echo "$as_me: error: cannot compute sizeof (short)
7858See \`config.log' for more details." >&2;}
7859   { (exit 77); exit 77; }; }; }
7860   else
7861     ac_cv_sizeof_short=0
7862   fi
7863fi
7864rm -rf conftest.dSYM
7865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7866fi
7867rm -f conftest.val
7868fi
7869{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7870$as_echo "$ac_cv_sizeof_short" >&6; }
7871
7872
7873
7874cat >>confdefs.h <<_ACEOF
7875#define SIZEOF_SHORT $ac_cv_sizeof_short
7876_ACEOF
7877
7878
7879# The cast to long int works around a bug in the HP C Compiler
7880# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7881# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7882# This bug is HP SR number 8606223364.
7883{ $as_echo "$as_me:$LINENO: checking size of long" >&5
7884$as_echo_n "checking size of long... " >&6; }
7885if test "${ac_cv_sizeof_long+set}" = set; then
7886  $as_echo_n "(cached) " >&6
7887else
7888  if test "$cross_compiling" = yes; then
7889  # Depending upon the size, compute the lo and hi bounds.
7890cat >conftest.$ac_ext <<_ACEOF
7891/* confdefs.h.  */
7892_ACEOF
7893cat confdefs.h >>conftest.$ac_ext
7894cat >>conftest.$ac_ext <<_ACEOF
7895/* end confdefs.h.  */
7896$ac_includes_default
7897int
7898main ()
7899{
7900static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
7901test_array [0] = 0
7902
7903  ;
7904  return 0;
7905}
7906_ACEOF
7907rm -f conftest.$ac_objext
7908if { (ac_try="$ac_compile"
7909case "(($ac_try" in
7910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911  *) ac_try_echo=$ac_try;;
7912esac
7913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7914$as_echo "$ac_try_echo") >&5
7915  (eval "$ac_compile") 2>conftest.er1
7916  ac_status=$?
7917  grep -v '^ *+' conftest.er1 >conftest.err
7918  rm -f conftest.er1
7919  cat conftest.err >&5
7920  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921  (exit $ac_status); } && {
7922	 test -z "$ac_c_werror_flag" ||
7923	 test ! -s conftest.err
7924       } && test -s conftest.$ac_objext; then
7925  ac_lo=0 ac_mid=0
7926  while :; do
7927    cat >conftest.$ac_ext <<_ACEOF
7928/* confdefs.h.  */
7929_ACEOF
7930cat confdefs.h >>conftest.$ac_ext
7931cat >>conftest.$ac_ext <<_ACEOF
7932/* end confdefs.h.  */
7933$ac_includes_default
7934int
7935main ()
7936{
7937static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
7938test_array [0] = 0
7939
7940  ;
7941  return 0;
7942}
7943_ACEOF
7944rm -f conftest.$ac_objext
7945if { (ac_try="$ac_compile"
7946case "(($ac_try" in
7947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948  *) ac_try_echo=$ac_try;;
7949esac
7950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7951$as_echo "$ac_try_echo") >&5
7952  (eval "$ac_compile") 2>conftest.er1
7953  ac_status=$?
7954  grep -v '^ *+' conftest.er1 >conftest.err
7955  rm -f conftest.er1
7956  cat conftest.err >&5
7957  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958  (exit $ac_status); } && {
7959	 test -z "$ac_c_werror_flag" ||
7960	 test ! -s conftest.err
7961       } && test -s conftest.$ac_objext; then
7962  ac_hi=$ac_mid; break
7963else
7964  $as_echo "$as_me: failed program was:" >&5
7965sed 's/^/| /' conftest.$ac_ext >&5
7966
7967	ac_lo=`expr $ac_mid + 1`
7968			if test $ac_lo -le $ac_mid; then
7969			  ac_lo= ac_hi=
7970			  break
7971			fi
7972			ac_mid=`expr 2 '*' $ac_mid + 1`
7973fi
7974
7975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976  done
7977else
7978  $as_echo "$as_me: failed program was:" >&5
7979sed 's/^/| /' conftest.$ac_ext >&5
7980
7981	cat >conftest.$ac_ext <<_ACEOF
7982/* confdefs.h.  */
7983_ACEOF
7984cat confdefs.h >>conftest.$ac_ext
7985cat >>conftest.$ac_ext <<_ACEOF
7986/* end confdefs.h.  */
7987$ac_includes_default
7988int
7989main ()
7990{
7991static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
7992test_array [0] = 0
7993
7994  ;
7995  return 0;
7996}
7997_ACEOF
7998rm -f conftest.$ac_objext
7999if { (ac_try="$ac_compile"
8000case "(($ac_try" in
8001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002  *) ac_try_echo=$ac_try;;
8003esac
8004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8005$as_echo "$ac_try_echo") >&5
8006  (eval "$ac_compile") 2>conftest.er1
8007  ac_status=$?
8008  grep -v '^ *+' conftest.er1 >conftest.err
8009  rm -f conftest.er1
8010  cat conftest.err >&5
8011  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012  (exit $ac_status); } && {
8013	 test -z "$ac_c_werror_flag" ||
8014	 test ! -s conftest.err
8015       } && test -s conftest.$ac_objext; then
8016  ac_hi=-1 ac_mid=-1
8017  while :; do
8018    cat >conftest.$ac_ext <<_ACEOF
8019/* confdefs.h.  */
8020_ACEOF
8021cat confdefs.h >>conftest.$ac_ext
8022cat >>conftest.$ac_ext <<_ACEOF
8023/* end confdefs.h.  */
8024$ac_includes_default
8025int
8026main ()
8027{
8028static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
8029test_array [0] = 0
8030
8031  ;
8032  return 0;
8033}
8034_ACEOF
8035rm -f conftest.$ac_objext
8036if { (ac_try="$ac_compile"
8037case "(($ac_try" in
8038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039  *) ac_try_echo=$ac_try;;
8040esac
8041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8042$as_echo "$ac_try_echo") >&5
8043  (eval "$ac_compile") 2>conftest.er1
8044  ac_status=$?
8045  grep -v '^ *+' conftest.er1 >conftest.err
8046  rm -f conftest.er1
8047  cat conftest.err >&5
8048  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049  (exit $ac_status); } && {
8050	 test -z "$ac_c_werror_flag" ||
8051	 test ! -s conftest.err
8052       } && test -s conftest.$ac_objext; then
8053  ac_lo=$ac_mid; break
8054else
8055  $as_echo "$as_me: failed program was:" >&5
8056sed 's/^/| /' conftest.$ac_ext >&5
8057
8058	ac_hi=`expr '(' $ac_mid ')' - 1`
8059			if test $ac_mid -le $ac_hi; then
8060			  ac_lo= ac_hi=
8061			  break
8062			fi
8063			ac_mid=`expr 2 '*' $ac_mid`
8064fi
8065
8066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8067  done
8068else
8069  $as_echo "$as_me: failed program was:" >&5
8070sed 's/^/| /' conftest.$ac_ext >&5
8071
8072	ac_lo= ac_hi=
8073fi
8074
8075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8076fi
8077
8078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079# Binary search between lo and hi bounds.
8080while test "x$ac_lo" != "x$ac_hi"; do
8081  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8082  cat >conftest.$ac_ext <<_ACEOF
8083/* confdefs.h.  */
8084_ACEOF
8085cat confdefs.h >>conftest.$ac_ext
8086cat >>conftest.$ac_ext <<_ACEOF
8087/* end confdefs.h.  */
8088$ac_includes_default
8089int
8090main ()
8091{
8092static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
8093test_array [0] = 0
8094
8095  ;
8096  return 0;
8097}
8098_ACEOF
8099rm -f conftest.$ac_objext
8100if { (ac_try="$ac_compile"
8101case "(($ac_try" in
8102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8103  *) ac_try_echo=$ac_try;;
8104esac
8105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8106$as_echo "$ac_try_echo") >&5
8107  (eval "$ac_compile") 2>conftest.er1
8108  ac_status=$?
8109  grep -v '^ *+' conftest.er1 >conftest.err
8110  rm -f conftest.er1
8111  cat conftest.err >&5
8112  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113  (exit $ac_status); } && {
8114	 test -z "$ac_c_werror_flag" ||
8115	 test ! -s conftest.err
8116       } && test -s conftest.$ac_objext; then
8117  ac_hi=$ac_mid
8118else
8119  $as_echo "$as_me: failed program was:" >&5
8120sed 's/^/| /' conftest.$ac_ext >&5
8121
8122	ac_lo=`expr '(' $ac_mid ')' + 1`
8123fi
8124
8125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126done
8127case $ac_lo in
8128?*) ac_cv_sizeof_long=$ac_lo;;
8129'') if test "$ac_cv_type_long" = yes; then
8130     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8132{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8133See \`config.log' for more details." >&5
8134$as_echo "$as_me: error: cannot compute sizeof (long)
8135See \`config.log' for more details." >&2;}
8136   { (exit 77); exit 77; }; }; }
8137   else
8138     ac_cv_sizeof_long=0
8139   fi ;;
8140esac
8141else
8142  cat >conftest.$ac_ext <<_ACEOF
8143/* confdefs.h.  */
8144_ACEOF
8145cat confdefs.h >>conftest.$ac_ext
8146cat >>conftest.$ac_ext <<_ACEOF
8147/* end confdefs.h.  */
8148$ac_includes_default
8149static long int longval () { return (long int) (sizeof (long)); }
8150static unsigned long int ulongval () { return (long int) (sizeof (long)); }
8151#include <stdio.h>
8152#include <stdlib.h>
8153int
8154main ()
8155{
8156
8157  FILE *f = fopen ("conftest.val", "w");
8158  if (! f)
8159    return 1;
8160  if (((long int) (sizeof (long))) < 0)
8161    {
8162      long int i = longval ();
8163      if (i != ((long int) (sizeof (long))))
8164	return 1;
8165      fprintf (f, "%ld", i);
8166    }
8167  else
8168    {
8169      unsigned long int i = ulongval ();
8170      if (i != ((long int) (sizeof (long))))
8171	return 1;
8172      fprintf (f, "%lu", i);
8173    }
8174  /* Do not output a trailing newline, as this causes \r\n confusion
8175     on some platforms.  */
8176  return ferror (f) || fclose (f) != 0;
8177
8178  ;
8179  return 0;
8180}
8181_ACEOF
8182rm -f conftest$ac_exeext
8183if { (ac_try="$ac_link"
8184case "(($ac_try" in
8185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186  *) ac_try_echo=$ac_try;;
8187esac
8188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8189$as_echo "$ac_try_echo") >&5
8190  (eval "$ac_link") 2>&5
8191  ac_status=$?
8192  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8194  { (case "(($ac_try" in
8195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196  *) ac_try_echo=$ac_try;;
8197esac
8198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8199$as_echo "$ac_try_echo") >&5
8200  (eval "$ac_try") 2>&5
8201  ac_status=$?
8202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203  (exit $ac_status); }; }; then
8204  ac_cv_sizeof_long=`cat conftest.val`
8205else
8206  $as_echo "$as_me: program exited with status $ac_status" >&5
8207$as_echo "$as_me: failed program was:" >&5
8208sed 's/^/| /' conftest.$ac_ext >&5
8209
8210( exit $ac_status )
8211if test "$ac_cv_type_long" = yes; then
8212     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8214{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8215See \`config.log' for more details." >&5
8216$as_echo "$as_me: error: cannot compute sizeof (long)
8217See \`config.log' for more details." >&2;}
8218   { (exit 77); exit 77; }; }; }
8219   else
8220     ac_cv_sizeof_long=0
8221   fi
8222fi
8223rm -rf conftest.dSYM
8224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8225fi
8226rm -f conftest.val
8227fi
8228{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8229$as_echo "$ac_cv_sizeof_long" >&6; }
8230
8231
8232
8233cat >>confdefs.h <<_ACEOF
8234#define SIZEOF_LONG $ac_cv_sizeof_long
8235_ACEOF
8236
8237
8238# The cast to long int works around a bug in the HP C Compiler
8239# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8240# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8241# This bug is HP SR number 8606223364.
8242{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
8243$as_echo_n "checking size of long long... " >&6; }
8244if test "${ac_cv_sizeof_long_long+set}" = set; then
8245  $as_echo_n "(cached) " >&6
8246else
8247  if test "$cross_compiling" = yes; then
8248  # Depending upon the size, compute the lo and hi bounds.
8249cat >conftest.$ac_ext <<_ACEOF
8250/* confdefs.h.  */
8251_ACEOF
8252cat confdefs.h >>conftest.$ac_ext
8253cat >>conftest.$ac_ext <<_ACEOF
8254/* end confdefs.h.  */
8255$ac_includes_default
8256int
8257main ()
8258{
8259static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
8260test_array [0] = 0
8261
8262  ;
8263  return 0;
8264}
8265_ACEOF
8266rm -f conftest.$ac_objext
8267if { (ac_try="$ac_compile"
8268case "(($ac_try" in
8269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270  *) ac_try_echo=$ac_try;;
8271esac
8272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8273$as_echo "$ac_try_echo") >&5
8274  (eval "$ac_compile") 2>conftest.er1
8275  ac_status=$?
8276  grep -v '^ *+' conftest.er1 >conftest.err
8277  rm -f conftest.er1
8278  cat conftest.err >&5
8279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280  (exit $ac_status); } && {
8281	 test -z "$ac_c_werror_flag" ||
8282	 test ! -s conftest.err
8283       } && test -s conftest.$ac_objext; then
8284  ac_lo=0 ac_mid=0
8285  while :; do
8286    cat >conftest.$ac_ext <<_ACEOF
8287/* confdefs.h.  */
8288_ACEOF
8289cat confdefs.h >>conftest.$ac_ext
8290cat >>conftest.$ac_ext <<_ACEOF
8291/* end confdefs.h.  */
8292$ac_includes_default
8293int
8294main ()
8295{
8296static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
8297test_array [0] = 0
8298
8299  ;
8300  return 0;
8301}
8302_ACEOF
8303rm -f conftest.$ac_objext
8304if { (ac_try="$ac_compile"
8305case "(($ac_try" in
8306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307  *) ac_try_echo=$ac_try;;
8308esac
8309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8310$as_echo "$ac_try_echo") >&5
8311  (eval "$ac_compile") 2>conftest.er1
8312  ac_status=$?
8313  grep -v '^ *+' conftest.er1 >conftest.err
8314  rm -f conftest.er1
8315  cat conftest.err >&5
8316  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317  (exit $ac_status); } && {
8318	 test -z "$ac_c_werror_flag" ||
8319	 test ! -s conftest.err
8320       } && test -s conftest.$ac_objext; then
8321  ac_hi=$ac_mid; break
8322else
8323  $as_echo "$as_me: failed program was:" >&5
8324sed 's/^/| /' conftest.$ac_ext >&5
8325
8326	ac_lo=`expr $ac_mid + 1`
8327			if test $ac_lo -le $ac_mid; then
8328			  ac_lo= ac_hi=
8329			  break
8330			fi
8331			ac_mid=`expr 2 '*' $ac_mid + 1`
8332fi
8333
8334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335  done
8336else
8337  $as_echo "$as_me: failed program was:" >&5
8338sed 's/^/| /' conftest.$ac_ext >&5
8339
8340	cat >conftest.$ac_ext <<_ACEOF
8341/* confdefs.h.  */
8342_ACEOF
8343cat confdefs.h >>conftest.$ac_ext
8344cat >>conftest.$ac_ext <<_ACEOF
8345/* end confdefs.h.  */
8346$ac_includes_default
8347int
8348main ()
8349{
8350static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
8351test_array [0] = 0
8352
8353  ;
8354  return 0;
8355}
8356_ACEOF
8357rm -f conftest.$ac_objext
8358if { (ac_try="$ac_compile"
8359case "(($ac_try" in
8360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361  *) ac_try_echo=$ac_try;;
8362esac
8363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8364$as_echo "$ac_try_echo") >&5
8365  (eval "$ac_compile") 2>conftest.er1
8366  ac_status=$?
8367  grep -v '^ *+' conftest.er1 >conftest.err
8368  rm -f conftest.er1
8369  cat conftest.err >&5
8370  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371  (exit $ac_status); } && {
8372	 test -z "$ac_c_werror_flag" ||
8373	 test ! -s conftest.err
8374       } && test -s conftest.$ac_objext; then
8375  ac_hi=-1 ac_mid=-1
8376  while :; do
8377    cat >conftest.$ac_ext <<_ACEOF
8378/* confdefs.h.  */
8379_ACEOF
8380cat confdefs.h >>conftest.$ac_ext
8381cat >>conftest.$ac_ext <<_ACEOF
8382/* end confdefs.h.  */
8383$ac_includes_default
8384int
8385main ()
8386{
8387static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
8388test_array [0] = 0
8389
8390  ;
8391  return 0;
8392}
8393_ACEOF
8394rm -f conftest.$ac_objext
8395if { (ac_try="$ac_compile"
8396case "(($ac_try" in
8397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398  *) ac_try_echo=$ac_try;;
8399esac
8400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8401$as_echo "$ac_try_echo") >&5
8402  (eval "$ac_compile") 2>conftest.er1
8403  ac_status=$?
8404  grep -v '^ *+' conftest.er1 >conftest.err
8405  rm -f conftest.er1
8406  cat conftest.err >&5
8407  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408  (exit $ac_status); } && {
8409	 test -z "$ac_c_werror_flag" ||
8410	 test ! -s conftest.err
8411       } && test -s conftest.$ac_objext; then
8412  ac_lo=$ac_mid; break
8413else
8414  $as_echo "$as_me: failed program was:" >&5
8415sed 's/^/| /' conftest.$ac_ext >&5
8416
8417	ac_hi=`expr '(' $ac_mid ')' - 1`
8418			if test $ac_mid -le $ac_hi; then
8419			  ac_lo= ac_hi=
8420			  break
8421			fi
8422			ac_mid=`expr 2 '*' $ac_mid`
8423fi
8424
8425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426  done
8427else
8428  $as_echo "$as_me: failed program was:" >&5
8429sed 's/^/| /' conftest.$ac_ext >&5
8430
8431	ac_lo= ac_hi=
8432fi
8433
8434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435fi
8436
8437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438# Binary search between lo and hi bounds.
8439while test "x$ac_lo" != "x$ac_hi"; do
8440  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8441  cat >conftest.$ac_ext <<_ACEOF
8442/* confdefs.h.  */
8443_ACEOF
8444cat confdefs.h >>conftest.$ac_ext
8445cat >>conftest.$ac_ext <<_ACEOF
8446/* end confdefs.h.  */
8447$ac_includes_default
8448int
8449main ()
8450{
8451static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
8452test_array [0] = 0
8453
8454  ;
8455  return 0;
8456}
8457_ACEOF
8458rm -f conftest.$ac_objext
8459if { (ac_try="$ac_compile"
8460case "(($ac_try" in
8461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462  *) ac_try_echo=$ac_try;;
8463esac
8464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8465$as_echo "$ac_try_echo") >&5
8466  (eval "$ac_compile") 2>conftest.er1
8467  ac_status=$?
8468  grep -v '^ *+' conftest.er1 >conftest.err
8469  rm -f conftest.er1
8470  cat conftest.err >&5
8471  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472  (exit $ac_status); } && {
8473	 test -z "$ac_c_werror_flag" ||
8474	 test ! -s conftest.err
8475       } && test -s conftest.$ac_objext; then
8476  ac_hi=$ac_mid
8477else
8478  $as_echo "$as_me: failed program was:" >&5
8479sed 's/^/| /' conftest.$ac_ext >&5
8480
8481	ac_lo=`expr '(' $ac_mid ')' + 1`
8482fi
8483
8484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485done
8486case $ac_lo in
8487?*) ac_cv_sizeof_long_long=$ac_lo;;
8488'') if test "$ac_cv_type_long_long" = yes; then
8489     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8491{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8492See \`config.log' for more details." >&5
8493$as_echo "$as_me: error: cannot compute sizeof (long long)
8494See \`config.log' for more details." >&2;}
8495   { (exit 77); exit 77; }; }; }
8496   else
8497     ac_cv_sizeof_long_long=0
8498   fi ;;
8499esac
8500else
8501  cat >conftest.$ac_ext <<_ACEOF
8502/* confdefs.h.  */
8503_ACEOF
8504cat confdefs.h >>conftest.$ac_ext
8505cat >>conftest.$ac_ext <<_ACEOF
8506/* end confdefs.h.  */
8507$ac_includes_default
8508static long int longval () { return (long int) (sizeof (long long)); }
8509static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
8510#include <stdio.h>
8511#include <stdlib.h>
8512int
8513main ()
8514{
8515
8516  FILE *f = fopen ("conftest.val", "w");
8517  if (! f)
8518    return 1;
8519  if (((long int) (sizeof (long long))) < 0)
8520    {
8521      long int i = longval ();
8522      if (i != ((long int) (sizeof (long long))))
8523	return 1;
8524      fprintf (f, "%ld", i);
8525    }
8526  else
8527    {
8528      unsigned long int i = ulongval ();
8529      if (i != ((long int) (sizeof (long long))))
8530	return 1;
8531      fprintf (f, "%lu", i);
8532    }
8533  /* Do not output a trailing newline, as this causes \r\n confusion
8534     on some platforms.  */
8535  return ferror (f) || fclose (f) != 0;
8536
8537  ;
8538  return 0;
8539}
8540_ACEOF
8541rm -f conftest$ac_exeext
8542if { (ac_try="$ac_link"
8543case "(($ac_try" in
8544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545  *) ac_try_echo=$ac_try;;
8546esac
8547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8548$as_echo "$ac_try_echo") >&5
8549  (eval "$ac_link") 2>&5
8550  ac_status=$?
8551  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8553  { (case "(($ac_try" in
8554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555  *) ac_try_echo=$ac_try;;
8556esac
8557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8558$as_echo "$ac_try_echo") >&5
8559  (eval "$ac_try") 2>&5
8560  ac_status=$?
8561  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562  (exit $ac_status); }; }; then
8563  ac_cv_sizeof_long_long=`cat conftest.val`
8564else
8565  $as_echo "$as_me: program exited with status $ac_status" >&5
8566$as_echo "$as_me: failed program was:" >&5
8567sed 's/^/| /' conftest.$ac_ext >&5
8568
8569( exit $ac_status )
8570if test "$ac_cv_type_long_long" = yes; then
8571     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8573{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8574See \`config.log' for more details." >&5
8575$as_echo "$as_me: error: cannot compute sizeof (long long)
8576See \`config.log' for more details." >&2;}
8577   { (exit 77); exit 77; }; }; }
8578   else
8579     ac_cv_sizeof_long_long=0
8580   fi
8581fi
8582rm -rf conftest.dSYM
8583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8584fi
8585rm -f conftest.val
8586fi
8587{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8588$as_echo "$ac_cv_sizeof_long_long" >&6; }
8589
8590
8591
8592cat >>confdefs.h <<_ACEOF
8593#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8594_ACEOF
8595
8596
8597
8598{ $as_echo "$as_me:$LINENO: checking for uint_t" >&5
8599$as_echo_n "checking for uint_t... " >&6; }
8600if test "${ac_cv_type_uint_t+set}" = set; then
8601  $as_echo_n "(cached) " >&6
8602else
8603  ac_cv_type_uint_t=no
8604cat >conftest.$ac_ext <<_ACEOF
8605/* confdefs.h.  */
8606_ACEOF
8607cat confdefs.h >>conftest.$ac_ext
8608cat >>conftest.$ac_ext <<_ACEOF
8609/* end confdefs.h.  */
8610$ac_includes_default
8611int
8612main ()
8613{
8614if (sizeof (uint_t))
8615       return 0;
8616  ;
8617  return 0;
8618}
8619_ACEOF
8620rm -f conftest.$ac_objext
8621if { (ac_try="$ac_compile"
8622case "(($ac_try" in
8623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624  *) ac_try_echo=$ac_try;;
8625esac
8626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8627$as_echo "$ac_try_echo") >&5
8628  (eval "$ac_compile") 2>conftest.er1
8629  ac_status=$?
8630  grep -v '^ *+' conftest.er1 >conftest.err
8631  rm -f conftest.er1
8632  cat conftest.err >&5
8633  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634  (exit $ac_status); } && {
8635	 test -z "$ac_c_werror_flag" ||
8636	 test ! -s conftest.err
8637       } && test -s conftest.$ac_objext; then
8638  cat >conftest.$ac_ext <<_ACEOF
8639/* confdefs.h.  */
8640_ACEOF
8641cat confdefs.h >>conftest.$ac_ext
8642cat >>conftest.$ac_ext <<_ACEOF
8643/* end confdefs.h.  */
8644$ac_includes_default
8645int
8646main ()
8647{
8648if (sizeof ((uint_t)))
8649	  return 0;
8650  ;
8651  return 0;
8652}
8653_ACEOF
8654rm -f conftest.$ac_objext
8655if { (ac_try="$ac_compile"
8656case "(($ac_try" in
8657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658  *) ac_try_echo=$ac_try;;
8659esac
8660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8661$as_echo "$ac_try_echo") >&5
8662  (eval "$ac_compile") 2>conftest.er1
8663  ac_status=$?
8664  grep -v '^ *+' conftest.er1 >conftest.err
8665  rm -f conftest.er1
8666  cat conftest.err >&5
8667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668  (exit $ac_status); } && {
8669	 test -z "$ac_c_werror_flag" ||
8670	 test ! -s conftest.err
8671       } && test -s conftest.$ac_objext; then
8672  :
8673else
8674  $as_echo "$as_me: failed program was:" >&5
8675sed 's/^/| /' conftest.$ac_ext >&5
8676
8677	ac_cv_type_uint_t=yes
8678fi
8679
8680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681else
8682  $as_echo "$as_me: failed program was:" >&5
8683sed 's/^/| /' conftest.$ac_ext >&5
8684
8685
8686fi
8687
8688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689fi
8690{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
8691$as_echo "$ac_cv_type_uint_t" >&6; }
8692if test "x$ac_cv_type_uint_t" = x""yes; then
8693  :
8694else
8695
8696cat >>confdefs.h <<_ACEOF
8697#define uint_t unsigned int
8698_ACEOF
8699
8700fi
8701
8702{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
8703$as_echo_n "checking for int8_t... " >&6; }
8704if test "${ac_cv_type_int8_t+set}" = set; then
8705  $as_echo_n "(cached) " >&6
8706else
8707  ac_cv_type_int8_t=no
8708cat >conftest.$ac_ext <<_ACEOF
8709/* confdefs.h.  */
8710_ACEOF
8711cat confdefs.h >>conftest.$ac_ext
8712cat >>conftest.$ac_ext <<_ACEOF
8713/* end confdefs.h.  */
8714$ac_includes_default
8715int
8716main ()
8717{
8718if (sizeof (int8_t))
8719       return 0;
8720  ;
8721  return 0;
8722}
8723_ACEOF
8724rm -f conftest.$ac_objext
8725if { (ac_try="$ac_compile"
8726case "(($ac_try" in
8727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728  *) ac_try_echo=$ac_try;;
8729esac
8730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8731$as_echo "$ac_try_echo") >&5
8732  (eval "$ac_compile") 2>conftest.er1
8733  ac_status=$?
8734  grep -v '^ *+' conftest.er1 >conftest.err
8735  rm -f conftest.er1
8736  cat conftest.err >&5
8737  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738  (exit $ac_status); } && {
8739	 test -z "$ac_c_werror_flag" ||
8740	 test ! -s conftest.err
8741       } && test -s conftest.$ac_objext; then
8742  cat >conftest.$ac_ext <<_ACEOF
8743/* confdefs.h.  */
8744_ACEOF
8745cat confdefs.h >>conftest.$ac_ext
8746cat >>conftest.$ac_ext <<_ACEOF
8747/* end confdefs.h.  */
8748$ac_includes_default
8749int
8750main ()
8751{
8752if (sizeof ((int8_t)))
8753	  return 0;
8754  ;
8755  return 0;
8756}
8757_ACEOF
8758rm -f conftest.$ac_objext
8759if { (ac_try="$ac_compile"
8760case "(($ac_try" in
8761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762  *) ac_try_echo=$ac_try;;
8763esac
8764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8765$as_echo "$ac_try_echo") >&5
8766  (eval "$ac_compile") 2>conftest.er1
8767  ac_status=$?
8768  grep -v '^ *+' conftest.er1 >conftest.err
8769  rm -f conftest.er1
8770  cat conftest.err >&5
8771  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772  (exit $ac_status); } && {
8773	 test -z "$ac_c_werror_flag" ||
8774	 test ! -s conftest.err
8775       } && test -s conftest.$ac_objext; then
8776  :
8777else
8778  $as_echo "$as_me: failed program was:" >&5
8779sed 's/^/| /' conftest.$ac_ext >&5
8780
8781	ac_cv_type_int8_t=yes
8782fi
8783
8784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8785else
8786  $as_echo "$as_me: failed program was:" >&5
8787sed 's/^/| /' conftest.$ac_ext >&5
8788
8789
8790fi
8791
8792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8793fi
8794{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
8795$as_echo "$ac_cv_type_int8_t" >&6; }
8796if test "x$ac_cv_type_int8_t" = x""yes; then
8797  :
8798else
8799
8800cat >>confdefs.h <<_ACEOF
8801#define int8_t char
8802_ACEOF
8803
8804fi
8805
8806{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
8807$as_echo_n "checking for uint8_t... " >&6; }
8808if test "${ac_cv_type_uint8_t+set}" = set; then
8809  $as_echo_n "(cached) " >&6
8810else
8811  ac_cv_type_uint8_t=no
8812cat >conftest.$ac_ext <<_ACEOF
8813/* confdefs.h.  */
8814_ACEOF
8815cat confdefs.h >>conftest.$ac_ext
8816cat >>conftest.$ac_ext <<_ACEOF
8817/* end confdefs.h.  */
8818$ac_includes_default
8819int
8820main ()
8821{
8822if (sizeof (uint8_t))
8823       return 0;
8824  ;
8825  return 0;
8826}
8827_ACEOF
8828rm -f conftest.$ac_objext
8829if { (ac_try="$ac_compile"
8830case "(($ac_try" in
8831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832  *) ac_try_echo=$ac_try;;
8833esac
8834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8835$as_echo "$ac_try_echo") >&5
8836  (eval "$ac_compile") 2>conftest.er1
8837  ac_status=$?
8838  grep -v '^ *+' conftest.er1 >conftest.err
8839  rm -f conftest.er1
8840  cat conftest.err >&5
8841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842  (exit $ac_status); } && {
8843	 test -z "$ac_c_werror_flag" ||
8844	 test ! -s conftest.err
8845       } && test -s conftest.$ac_objext; then
8846  cat >conftest.$ac_ext <<_ACEOF
8847/* confdefs.h.  */
8848_ACEOF
8849cat confdefs.h >>conftest.$ac_ext
8850cat >>conftest.$ac_ext <<_ACEOF
8851/* end confdefs.h.  */
8852$ac_includes_default
8853int
8854main ()
8855{
8856if (sizeof ((uint8_t)))
8857	  return 0;
8858  ;
8859  return 0;
8860}
8861_ACEOF
8862rm -f conftest.$ac_objext
8863if { (ac_try="$ac_compile"
8864case "(($ac_try" in
8865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866  *) ac_try_echo=$ac_try;;
8867esac
8868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8869$as_echo "$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  $as_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  :
8881else
8882  $as_echo "$as_me: failed program was:" >&5
8883sed 's/^/| /' conftest.$ac_ext >&5
8884
8885	ac_cv_type_uint8_t=yes
8886fi
8887
8888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889else
8890  $as_echo "$as_me: failed program was:" >&5
8891sed 's/^/| /' conftest.$ac_ext >&5
8892
8893
8894fi
8895
8896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8897fi
8898{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
8899$as_echo "$ac_cv_type_uint8_t" >&6; }
8900if test "x$ac_cv_type_uint8_t" = x""yes; then
8901  :
8902else
8903
8904cat >>confdefs.h <<_ACEOF
8905#define uint8_t unsigned char
8906_ACEOF
8907
8908fi
8909
8910{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
8911$as_echo_n "checking for int16_t... " >&6; }
8912if test "${ac_cv_type_int16_t+set}" = set; then
8913  $as_echo_n "(cached) " >&6
8914else
8915  ac_cv_type_int16_t=no
8916cat >conftest.$ac_ext <<_ACEOF
8917/* confdefs.h.  */
8918_ACEOF
8919cat confdefs.h >>conftest.$ac_ext
8920cat >>conftest.$ac_ext <<_ACEOF
8921/* end confdefs.h.  */
8922$ac_includes_default
8923int
8924main ()
8925{
8926if (sizeof (int16_t))
8927       return 0;
8928  ;
8929  return 0;
8930}
8931_ACEOF
8932rm -f conftest.$ac_objext
8933if { (ac_try="$ac_compile"
8934case "(($ac_try" in
8935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936  *) ac_try_echo=$ac_try;;
8937esac
8938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8939$as_echo "$ac_try_echo") >&5
8940  (eval "$ac_compile") 2>conftest.er1
8941  ac_status=$?
8942  grep -v '^ *+' conftest.er1 >conftest.err
8943  rm -f conftest.er1
8944  cat conftest.err >&5
8945  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946  (exit $ac_status); } && {
8947	 test -z "$ac_c_werror_flag" ||
8948	 test ! -s conftest.err
8949       } && test -s conftest.$ac_objext; then
8950  cat >conftest.$ac_ext <<_ACEOF
8951/* confdefs.h.  */
8952_ACEOF
8953cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h.  */
8956$ac_includes_default
8957int
8958main ()
8959{
8960if (sizeof ((int16_t)))
8961	  return 0;
8962  ;
8963  return 0;
8964}
8965_ACEOF
8966rm -f conftest.$ac_objext
8967if { (ac_try="$ac_compile"
8968case "(($ac_try" in
8969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970  *) ac_try_echo=$ac_try;;
8971esac
8972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8973$as_echo "$ac_try_echo") >&5
8974  (eval "$ac_compile") 2>conftest.er1
8975  ac_status=$?
8976  grep -v '^ *+' conftest.er1 >conftest.err
8977  rm -f conftest.er1
8978  cat conftest.err >&5
8979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980  (exit $ac_status); } && {
8981	 test -z "$ac_c_werror_flag" ||
8982	 test ! -s conftest.err
8983       } && test -s conftest.$ac_objext; then
8984  :
8985else
8986  $as_echo "$as_me: failed program was:" >&5
8987sed 's/^/| /' conftest.$ac_ext >&5
8988
8989	ac_cv_type_int16_t=yes
8990fi
8991
8992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993else
8994  $as_echo "$as_me: failed program was:" >&5
8995sed 's/^/| /' conftest.$ac_ext >&5
8996
8997
8998fi
8999
9000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001fi
9002{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
9003$as_echo "$ac_cv_type_int16_t" >&6; }
9004if test "x$ac_cv_type_int16_t" = x""yes; then
9005  :
9006else
9007
9008cat >>confdefs.h <<_ACEOF
9009#define int16_t short
9010_ACEOF
9011
9012fi
9013
9014{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
9015$as_echo_n "checking for uint16_t... " >&6; }
9016if test "${ac_cv_type_uint16_t+set}" = set; then
9017  $as_echo_n "(cached) " >&6
9018else
9019  ac_cv_type_uint16_t=no
9020cat >conftest.$ac_ext <<_ACEOF
9021/* confdefs.h.  */
9022_ACEOF
9023cat confdefs.h >>conftest.$ac_ext
9024cat >>conftest.$ac_ext <<_ACEOF
9025/* end confdefs.h.  */
9026$ac_includes_default
9027int
9028main ()
9029{
9030if (sizeof (uint16_t))
9031       return 0;
9032  ;
9033  return 0;
9034}
9035_ACEOF
9036rm -f conftest.$ac_objext
9037if { (ac_try="$ac_compile"
9038case "(($ac_try" in
9039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9040  *) ac_try_echo=$ac_try;;
9041esac
9042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9043$as_echo "$ac_try_echo") >&5
9044  (eval "$ac_compile") 2>conftest.er1
9045  ac_status=$?
9046  grep -v '^ *+' conftest.er1 >conftest.err
9047  rm -f conftest.er1
9048  cat conftest.err >&5
9049  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050  (exit $ac_status); } && {
9051	 test -z "$ac_c_werror_flag" ||
9052	 test ! -s conftest.err
9053       } && test -s conftest.$ac_objext; then
9054  cat >conftest.$ac_ext <<_ACEOF
9055/* confdefs.h.  */
9056_ACEOF
9057cat confdefs.h >>conftest.$ac_ext
9058cat >>conftest.$ac_ext <<_ACEOF
9059/* end confdefs.h.  */
9060$ac_includes_default
9061int
9062main ()
9063{
9064if (sizeof ((uint16_t)))
9065	  return 0;
9066  ;
9067  return 0;
9068}
9069_ACEOF
9070rm -f conftest.$ac_objext
9071if { (ac_try="$ac_compile"
9072case "(($ac_try" in
9073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074  *) ac_try_echo=$ac_try;;
9075esac
9076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9077$as_echo "$ac_try_echo") >&5
9078  (eval "$ac_compile") 2>conftest.er1
9079  ac_status=$?
9080  grep -v '^ *+' conftest.er1 >conftest.err
9081  rm -f conftest.er1
9082  cat conftest.err >&5
9083  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084  (exit $ac_status); } && {
9085	 test -z "$ac_c_werror_flag" ||
9086	 test ! -s conftest.err
9087       } && test -s conftest.$ac_objext; then
9088  :
9089else
9090  $as_echo "$as_me: failed program was:" >&5
9091sed 's/^/| /' conftest.$ac_ext >&5
9092
9093	ac_cv_type_uint16_t=yes
9094fi
9095
9096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097else
9098  $as_echo "$as_me: failed program was:" >&5
9099sed 's/^/| /' conftest.$ac_ext >&5
9100
9101
9102fi
9103
9104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105fi
9106{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
9107$as_echo "$ac_cv_type_uint16_t" >&6; }
9108if test "x$ac_cv_type_uint16_t" = x""yes; then
9109  :
9110else
9111
9112cat >>confdefs.h <<_ACEOF
9113#define uint16_t unsigned short
9114_ACEOF
9115
9116fi
9117
9118
9119if test $ac_cv_sizeof_int -eq 4 ; then
9120{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
9121$as_echo_n "checking for int32_t... " >&6; }
9122if test "${ac_cv_type_int32_t+set}" = set; then
9123  $as_echo_n "(cached) " >&6
9124else
9125  ac_cv_type_int32_t=no
9126cat >conftest.$ac_ext <<_ACEOF
9127/* confdefs.h.  */
9128_ACEOF
9129cat confdefs.h >>conftest.$ac_ext
9130cat >>conftest.$ac_ext <<_ACEOF
9131/* end confdefs.h.  */
9132$ac_includes_default
9133int
9134main ()
9135{
9136if (sizeof (int32_t))
9137       return 0;
9138  ;
9139  return 0;
9140}
9141_ACEOF
9142rm -f conftest.$ac_objext
9143if { (ac_try="$ac_compile"
9144case "(($ac_try" in
9145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146  *) ac_try_echo=$ac_try;;
9147esac
9148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9149$as_echo "$ac_try_echo") >&5
9150  (eval "$ac_compile") 2>conftest.er1
9151  ac_status=$?
9152  grep -v '^ *+' conftest.er1 >conftest.err
9153  rm -f conftest.er1
9154  cat conftest.err >&5
9155  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156  (exit $ac_status); } && {
9157	 test -z "$ac_c_werror_flag" ||
9158	 test ! -s conftest.err
9159       } && test -s conftest.$ac_objext; then
9160  cat >conftest.$ac_ext <<_ACEOF
9161/* confdefs.h.  */
9162_ACEOF
9163cat confdefs.h >>conftest.$ac_ext
9164cat >>conftest.$ac_ext <<_ACEOF
9165/* end confdefs.h.  */
9166$ac_includes_default
9167int
9168main ()
9169{
9170if (sizeof ((int32_t)))
9171	  return 0;
9172  ;
9173  return 0;
9174}
9175_ACEOF
9176rm -f conftest.$ac_objext
9177if { (ac_try="$ac_compile"
9178case "(($ac_try" in
9179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9180  *) ac_try_echo=$ac_try;;
9181esac
9182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9183$as_echo "$ac_try_echo") >&5
9184  (eval "$ac_compile") 2>conftest.er1
9185  ac_status=$?
9186  grep -v '^ *+' conftest.er1 >conftest.err
9187  rm -f conftest.er1
9188  cat conftest.err >&5
9189  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190  (exit $ac_status); } && {
9191	 test -z "$ac_c_werror_flag" ||
9192	 test ! -s conftest.err
9193       } && test -s conftest.$ac_objext; then
9194  :
9195else
9196  $as_echo "$as_me: failed program was:" >&5
9197sed 's/^/| /' conftest.$ac_ext >&5
9198
9199	ac_cv_type_int32_t=yes
9200fi
9201
9202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9203else
9204  $as_echo "$as_me: failed program was:" >&5
9205sed 's/^/| /' conftest.$ac_ext >&5
9206
9207
9208fi
9209
9210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9211fi
9212{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
9213$as_echo "$ac_cv_type_int32_t" >&6; }
9214if test "x$ac_cv_type_int32_t" = x""yes; then
9215  :
9216else
9217
9218cat >>confdefs.h <<_ACEOF
9219#define int32_t int
9220_ACEOF
9221
9222fi
9223
9224{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
9225$as_echo_n "checking for uint32_t... " >&6; }
9226if test "${ac_cv_type_uint32_t+set}" = set; then
9227  $as_echo_n "(cached) " >&6
9228else
9229  ac_cv_type_uint32_t=no
9230cat >conftest.$ac_ext <<_ACEOF
9231/* confdefs.h.  */
9232_ACEOF
9233cat confdefs.h >>conftest.$ac_ext
9234cat >>conftest.$ac_ext <<_ACEOF
9235/* end confdefs.h.  */
9236$ac_includes_default
9237int
9238main ()
9239{
9240if (sizeof (uint32_t))
9241       return 0;
9242  ;
9243  return 0;
9244}
9245_ACEOF
9246rm -f conftest.$ac_objext
9247if { (ac_try="$ac_compile"
9248case "(($ac_try" in
9249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250  *) ac_try_echo=$ac_try;;
9251esac
9252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9253$as_echo "$ac_try_echo") >&5
9254  (eval "$ac_compile") 2>conftest.er1
9255  ac_status=$?
9256  grep -v '^ *+' conftest.er1 >conftest.err
9257  rm -f conftest.er1
9258  cat conftest.err >&5
9259  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260  (exit $ac_status); } && {
9261	 test -z "$ac_c_werror_flag" ||
9262	 test ! -s conftest.err
9263       } && test -s conftest.$ac_objext; then
9264  cat >conftest.$ac_ext <<_ACEOF
9265/* confdefs.h.  */
9266_ACEOF
9267cat confdefs.h >>conftest.$ac_ext
9268cat >>conftest.$ac_ext <<_ACEOF
9269/* end confdefs.h.  */
9270$ac_includes_default
9271int
9272main ()
9273{
9274if (sizeof ((uint32_t)))
9275	  return 0;
9276  ;
9277  return 0;
9278}
9279_ACEOF
9280rm -f conftest.$ac_objext
9281if { (ac_try="$ac_compile"
9282case "(($ac_try" in
9283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284  *) ac_try_echo=$ac_try;;
9285esac
9286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9287$as_echo "$ac_try_echo") >&5
9288  (eval "$ac_compile") 2>conftest.er1
9289  ac_status=$?
9290  grep -v '^ *+' conftest.er1 >conftest.err
9291  rm -f conftest.er1
9292  cat conftest.err >&5
9293  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294  (exit $ac_status); } && {
9295	 test -z "$ac_c_werror_flag" ||
9296	 test ! -s conftest.err
9297       } && test -s conftest.$ac_objext; then
9298  :
9299else
9300  $as_echo "$as_me: failed program was:" >&5
9301sed 's/^/| /' conftest.$ac_ext >&5
9302
9303	ac_cv_type_uint32_t=yes
9304fi
9305
9306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307else
9308  $as_echo "$as_me: failed program was:" >&5
9309sed 's/^/| /' conftest.$ac_ext >&5
9310
9311
9312fi
9313
9314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9315fi
9316{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
9317$as_echo "$ac_cv_type_uint32_t" >&6; }
9318if test "x$ac_cv_type_uint32_t" = x""yes; then
9319  :
9320else
9321
9322cat >>confdefs.h <<_ACEOF
9323#define uint32_t unsigned int
9324_ACEOF
9325
9326fi
9327
9328elif test $ac_cv_size_long -eq 4 ; then
9329{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
9330$as_echo_n "checking for int32_t... " >&6; }
9331if test "${ac_cv_type_int32_t+set}" = set; then
9332  $as_echo_n "(cached) " >&6
9333else
9334  ac_cv_type_int32_t=no
9335cat >conftest.$ac_ext <<_ACEOF
9336/* confdefs.h.  */
9337_ACEOF
9338cat confdefs.h >>conftest.$ac_ext
9339cat >>conftest.$ac_ext <<_ACEOF
9340/* end confdefs.h.  */
9341$ac_includes_default
9342int
9343main ()
9344{
9345if (sizeof (int32_t))
9346       return 0;
9347  ;
9348  return 0;
9349}
9350_ACEOF
9351rm -f conftest.$ac_objext
9352if { (ac_try="$ac_compile"
9353case "(($ac_try" in
9354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355  *) ac_try_echo=$ac_try;;
9356esac
9357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9358$as_echo "$ac_try_echo") >&5
9359  (eval "$ac_compile") 2>conftest.er1
9360  ac_status=$?
9361  grep -v '^ *+' conftest.er1 >conftest.err
9362  rm -f conftest.er1
9363  cat conftest.err >&5
9364  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365  (exit $ac_status); } && {
9366	 test -z "$ac_c_werror_flag" ||
9367	 test ! -s conftest.err
9368       } && test -s conftest.$ac_objext; then
9369  cat >conftest.$ac_ext <<_ACEOF
9370/* confdefs.h.  */
9371_ACEOF
9372cat confdefs.h >>conftest.$ac_ext
9373cat >>conftest.$ac_ext <<_ACEOF
9374/* end confdefs.h.  */
9375$ac_includes_default
9376int
9377main ()
9378{
9379if (sizeof ((int32_t)))
9380	  return 0;
9381  ;
9382  return 0;
9383}
9384_ACEOF
9385rm -f conftest.$ac_objext
9386if { (ac_try="$ac_compile"
9387case "(($ac_try" in
9388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389  *) ac_try_echo=$ac_try;;
9390esac
9391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9392$as_echo "$ac_try_echo") >&5
9393  (eval "$ac_compile") 2>conftest.er1
9394  ac_status=$?
9395  grep -v '^ *+' conftest.er1 >conftest.err
9396  rm -f conftest.er1
9397  cat conftest.err >&5
9398  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399  (exit $ac_status); } && {
9400	 test -z "$ac_c_werror_flag" ||
9401	 test ! -s conftest.err
9402       } && test -s conftest.$ac_objext; then
9403  :
9404else
9405  $as_echo "$as_me: failed program was:" >&5
9406sed 's/^/| /' conftest.$ac_ext >&5
9407
9408	ac_cv_type_int32_t=yes
9409fi
9410
9411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9412else
9413  $as_echo "$as_me: failed program was:" >&5
9414sed 's/^/| /' conftest.$ac_ext >&5
9415
9416
9417fi
9418
9419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420fi
9421{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
9422$as_echo "$ac_cv_type_int32_t" >&6; }
9423if test "x$ac_cv_type_int32_t" = x""yes; then
9424  :
9425else
9426
9427cat >>confdefs.h <<_ACEOF
9428#define int32_t long
9429_ACEOF
9430
9431fi
9432
9433{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
9434$as_echo_n "checking for uint32_t... " >&6; }
9435if test "${ac_cv_type_uint32_t+set}" = set; then
9436  $as_echo_n "(cached) " >&6
9437else
9438  ac_cv_type_uint32_t=no
9439cat >conftest.$ac_ext <<_ACEOF
9440/* confdefs.h.  */
9441_ACEOF
9442cat confdefs.h >>conftest.$ac_ext
9443cat >>conftest.$ac_ext <<_ACEOF
9444/* end confdefs.h.  */
9445$ac_includes_default
9446int
9447main ()
9448{
9449if (sizeof (uint32_t))
9450       return 0;
9451  ;
9452  return 0;
9453}
9454_ACEOF
9455rm -f conftest.$ac_objext
9456if { (ac_try="$ac_compile"
9457case "(($ac_try" in
9458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459  *) ac_try_echo=$ac_try;;
9460esac
9461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9462$as_echo "$ac_try_echo") >&5
9463  (eval "$ac_compile") 2>conftest.er1
9464  ac_status=$?
9465  grep -v '^ *+' conftest.er1 >conftest.err
9466  rm -f conftest.er1
9467  cat conftest.err >&5
9468  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469  (exit $ac_status); } && {
9470	 test -z "$ac_c_werror_flag" ||
9471	 test ! -s conftest.err
9472       } && test -s conftest.$ac_objext; then
9473  cat >conftest.$ac_ext <<_ACEOF
9474/* confdefs.h.  */
9475_ACEOF
9476cat confdefs.h >>conftest.$ac_ext
9477cat >>conftest.$ac_ext <<_ACEOF
9478/* end confdefs.h.  */
9479$ac_includes_default
9480int
9481main ()
9482{
9483if (sizeof ((uint32_t)))
9484	  return 0;
9485  ;
9486  return 0;
9487}
9488_ACEOF
9489rm -f conftest.$ac_objext
9490if { (ac_try="$ac_compile"
9491case "(($ac_try" in
9492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9493  *) ac_try_echo=$ac_try;;
9494esac
9495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9496$as_echo "$ac_try_echo") >&5
9497  (eval "$ac_compile") 2>conftest.er1
9498  ac_status=$?
9499  grep -v '^ *+' conftest.er1 >conftest.err
9500  rm -f conftest.er1
9501  cat conftest.err >&5
9502  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503  (exit $ac_status); } && {
9504	 test -z "$ac_c_werror_flag" ||
9505	 test ! -s conftest.err
9506       } && test -s conftest.$ac_objext; then
9507  :
9508else
9509  $as_echo "$as_me: failed program was:" >&5
9510sed 's/^/| /' conftest.$ac_ext >&5
9511
9512	ac_cv_type_uint32_t=yes
9513fi
9514
9515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9516else
9517  $as_echo "$as_me: failed program was:" >&5
9518sed 's/^/| /' conftest.$ac_ext >&5
9519
9520
9521fi
9522
9523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9524fi
9525{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
9526$as_echo "$ac_cv_type_uint32_t" >&6; }
9527if test "x$ac_cv_type_uint32_t" = x""yes; then
9528  :
9529else
9530
9531cat >>confdefs.h <<_ACEOF
9532#define uint32_t unsigned long
9533_ACEOF
9534
9535fi
9536
9537else
9538{ { $as_echo "$as_me:$LINENO: error: LIBREPLACE no 32-bit type found" >&5
9539$as_echo "$as_me: error: LIBREPLACE no 32-bit type found" >&2;}
9540   { (exit 1); exit 1; }; }
9541fi
9542
9543{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
9544$as_echo_n "checking for int64_t... " >&6; }
9545if test "${ac_cv_type_int64_t+set}" = set; then
9546  $as_echo_n "(cached) " >&6
9547else
9548  ac_cv_type_int64_t=no
9549cat >conftest.$ac_ext <<_ACEOF
9550/* confdefs.h.  */
9551_ACEOF
9552cat confdefs.h >>conftest.$ac_ext
9553cat >>conftest.$ac_ext <<_ACEOF
9554/* end confdefs.h.  */
9555$ac_includes_default
9556int
9557main ()
9558{
9559if (sizeof (int64_t))
9560       return 0;
9561  ;
9562  return 0;
9563}
9564_ACEOF
9565rm -f conftest.$ac_objext
9566if { (ac_try="$ac_compile"
9567case "(($ac_try" in
9568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569  *) ac_try_echo=$ac_try;;
9570esac
9571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9572$as_echo "$ac_try_echo") >&5
9573  (eval "$ac_compile") 2>conftest.er1
9574  ac_status=$?
9575  grep -v '^ *+' conftest.er1 >conftest.err
9576  rm -f conftest.er1
9577  cat conftest.err >&5
9578  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579  (exit $ac_status); } && {
9580	 test -z "$ac_c_werror_flag" ||
9581	 test ! -s conftest.err
9582       } && test -s conftest.$ac_objext; then
9583  cat >conftest.$ac_ext <<_ACEOF
9584/* confdefs.h.  */
9585_ACEOF
9586cat confdefs.h >>conftest.$ac_ext
9587cat >>conftest.$ac_ext <<_ACEOF
9588/* end confdefs.h.  */
9589$ac_includes_default
9590int
9591main ()
9592{
9593if (sizeof ((int64_t)))
9594	  return 0;
9595  ;
9596  return 0;
9597}
9598_ACEOF
9599rm -f conftest.$ac_objext
9600if { (ac_try="$ac_compile"
9601case "(($ac_try" in
9602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603  *) ac_try_echo=$ac_try;;
9604esac
9605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9606$as_echo "$ac_try_echo") >&5
9607  (eval "$ac_compile") 2>conftest.er1
9608  ac_status=$?
9609  grep -v '^ *+' conftest.er1 >conftest.err
9610  rm -f conftest.er1
9611  cat conftest.err >&5
9612  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613  (exit $ac_status); } && {
9614	 test -z "$ac_c_werror_flag" ||
9615	 test ! -s conftest.err
9616       } && test -s conftest.$ac_objext; then
9617  :
9618else
9619  $as_echo "$as_me: failed program was:" >&5
9620sed 's/^/| /' conftest.$ac_ext >&5
9621
9622	ac_cv_type_int64_t=yes
9623fi
9624
9625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9626else
9627  $as_echo "$as_me: failed program was:" >&5
9628sed 's/^/| /' conftest.$ac_ext >&5
9629
9630
9631fi
9632
9633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9634fi
9635{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
9636$as_echo "$ac_cv_type_int64_t" >&6; }
9637if test "x$ac_cv_type_int64_t" = x""yes; then
9638  :
9639else
9640
9641cat >>confdefs.h <<_ACEOF
9642#define int64_t long long
9643_ACEOF
9644
9645fi
9646
9647{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
9648$as_echo_n "checking for uint64_t... " >&6; }
9649if test "${ac_cv_type_uint64_t+set}" = set; then
9650  $as_echo_n "(cached) " >&6
9651else
9652  ac_cv_type_uint64_t=no
9653cat >conftest.$ac_ext <<_ACEOF
9654/* confdefs.h.  */
9655_ACEOF
9656cat confdefs.h >>conftest.$ac_ext
9657cat >>conftest.$ac_ext <<_ACEOF
9658/* end confdefs.h.  */
9659$ac_includes_default
9660int
9661main ()
9662{
9663if (sizeof (uint64_t))
9664       return 0;
9665  ;
9666  return 0;
9667}
9668_ACEOF
9669rm -f conftest.$ac_objext
9670if { (ac_try="$ac_compile"
9671case "(($ac_try" in
9672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673  *) ac_try_echo=$ac_try;;
9674esac
9675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9676$as_echo "$ac_try_echo") >&5
9677  (eval "$ac_compile") 2>conftest.er1
9678  ac_status=$?
9679  grep -v '^ *+' conftest.er1 >conftest.err
9680  rm -f conftest.er1
9681  cat conftest.err >&5
9682  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683  (exit $ac_status); } && {
9684	 test -z "$ac_c_werror_flag" ||
9685	 test ! -s conftest.err
9686       } && test -s conftest.$ac_objext; then
9687  cat >conftest.$ac_ext <<_ACEOF
9688/* confdefs.h.  */
9689_ACEOF
9690cat confdefs.h >>conftest.$ac_ext
9691cat >>conftest.$ac_ext <<_ACEOF
9692/* end confdefs.h.  */
9693$ac_includes_default
9694int
9695main ()
9696{
9697if (sizeof ((uint64_t)))
9698	  return 0;
9699  ;
9700  return 0;
9701}
9702_ACEOF
9703rm -f conftest.$ac_objext
9704if { (ac_try="$ac_compile"
9705case "(($ac_try" in
9706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707  *) ac_try_echo=$ac_try;;
9708esac
9709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9710$as_echo "$ac_try_echo") >&5
9711  (eval "$ac_compile") 2>conftest.er1
9712  ac_status=$?
9713  grep -v '^ *+' conftest.er1 >conftest.err
9714  rm -f conftest.er1
9715  cat conftest.err >&5
9716  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717  (exit $ac_status); } && {
9718	 test -z "$ac_c_werror_flag" ||
9719	 test ! -s conftest.err
9720       } && test -s conftest.$ac_objext; then
9721  :
9722else
9723  $as_echo "$as_me: failed program was:" >&5
9724sed 's/^/| /' conftest.$ac_ext >&5
9725
9726	ac_cv_type_uint64_t=yes
9727fi
9728
9729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730else
9731  $as_echo "$as_me: failed program was:" >&5
9732sed 's/^/| /' conftest.$ac_ext >&5
9733
9734
9735fi
9736
9737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9738fi
9739{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
9740$as_echo "$ac_cv_type_uint64_t" >&6; }
9741if test "x$ac_cv_type_uint64_t" = x""yes; then
9742  :
9743else
9744
9745cat >>confdefs.h <<_ACEOF
9746#define uint64_t unsigned long long
9747_ACEOF
9748
9749fi
9750
9751
9752{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
9753$as_echo_n "checking for size_t... " >&6; }
9754if test "${ac_cv_type_size_t+set}" = set; then
9755  $as_echo_n "(cached) " >&6
9756else
9757  ac_cv_type_size_t=no
9758cat >conftest.$ac_ext <<_ACEOF
9759/* confdefs.h.  */
9760_ACEOF
9761cat confdefs.h >>conftest.$ac_ext
9762cat >>conftest.$ac_ext <<_ACEOF
9763/* end confdefs.h.  */
9764$ac_includes_default
9765int
9766main ()
9767{
9768if (sizeof (size_t))
9769       return 0;
9770  ;
9771  return 0;
9772}
9773_ACEOF
9774rm -f conftest.$ac_objext
9775if { (ac_try="$ac_compile"
9776case "(($ac_try" in
9777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778  *) ac_try_echo=$ac_try;;
9779esac
9780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9781$as_echo "$ac_try_echo") >&5
9782  (eval "$ac_compile") 2>conftest.er1
9783  ac_status=$?
9784  grep -v '^ *+' conftest.er1 >conftest.err
9785  rm -f conftest.er1
9786  cat conftest.err >&5
9787  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788  (exit $ac_status); } && {
9789	 test -z "$ac_c_werror_flag" ||
9790	 test ! -s conftest.err
9791       } && test -s conftest.$ac_objext; then
9792  cat >conftest.$ac_ext <<_ACEOF
9793/* confdefs.h.  */
9794_ACEOF
9795cat confdefs.h >>conftest.$ac_ext
9796cat >>conftest.$ac_ext <<_ACEOF
9797/* end confdefs.h.  */
9798$ac_includes_default
9799int
9800main ()
9801{
9802if (sizeof ((size_t)))
9803	  return 0;
9804  ;
9805  return 0;
9806}
9807_ACEOF
9808rm -f conftest.$ac_objext
9809if { (ac_try="$ac_compile"
9810case "(($ac_try" in
9811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812  *) ac_try_echo=$ac_try;;
9813esac
9814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9815$as_echo "$ac_try_echo") >&5
9816  (eval "$ac_compile") 2>conftest.er1
9817  ac_status=$?
9818  grep -v '^ *+' conftest.er1 >conftest.err
9819  rm -f conftest.er1
9820  cat conftest.err >&5
9821  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822  (exit $ac_status); } && {
9823	 test -z "$ac_c_werror_flag" ||
9824	 test ! -s conftest.err
9825       } && test -s conftest.$ac_objext; then
9826  :
9827else
9828  $as_echo "$as_me: failed program was:" >&5
9829sed 's/^/| /' conftest.$ac_ext >&5
9830
9831	ac_cv_type_size_t=yes
9832fi
9833
9834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9835else
9836  $as_echo "$as_me: failed program was:" >&5
9837sed 's/^/| /' conftest.$ac_ext >&5
9838
9839
9840fi
9841
9842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9843fi
9844{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9845$as_echo "$ac_cv_type_size_t" >&6; }
9846if test "x$ac_cv_type_size_t" = x""yes; then
9847  :
9848else
9849
9850cat >>confdefs.h <<_ACEOF
9851#define size_t unsigned int
9852_ACEOF
9853
9854fi
9855
9856{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
9857$as_echo_n "checking for ssize_t... " >&6; }
9858if test "${ac_cv_type_ssize_t+set}" = set; then
9859  $as_echo_n "(cached) " >&6
9860else
9861  ac_cv_type_ssize_t=no
9862cat >conftest.$ac_ext <<_ACEOF
9863/* confdefs.h.  */
9864_ACEOF
9865cat confdefs.h >>conftest.$ac_ext
9866cat >>conftest.$ac_ext <<_ACEOF
9867/* end confdefs.h.  */
9868$ac_includes_default
9869int
9870main ()
9871{
9872if (sizeof (ssize_t))
9873       return 0;
9874  ;
9875  return 0;
9876}
9877_ACEOF
9878rm -f conftest.$ac_objext
9879if { (ac_try="$ac_compile"
9880case "(($ac_try" in
9881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882  *) ac_try_echo=$ac_try;;
9883esac
9884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9885$as_echo "$ac_try_echo") >&5
9886  (eval "$ac_compile") 2>conftest.er1
9887  ac_status=$?
9888  grep -v '^ *+' conftest.er1 >conftest.err
9889  rm -f conftest.er1
9890  cat conftest.err >&5
9891  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892  (exit $ac_status); } && {
9893	 test -z "$ac_c_werror_flag" ||
9894	 test ! -s conftest.err
9895       } && test -s conftest.$ac_objext; then
9896  cat >conftest.$ac_ext <<_ACEOF
9897/* confdefs.h.  */
9898_ACEOF
9899cat confdefs.h >>conftest.$ac_ext
9900cat >>conftest.$ac_ext <<_ACEOF
9901/* end confdefs.h.  */
9902$ac_includes_default
9903int
9904main ()
9905{
9906if (sizeof ((ssize_t)))
9907	  return 0;
9908  ;
9909  return 0;
9910}
9911_ACEOF
9912rm -f conftest.$ac_objext
9913if { (ac_try="$ac_compile"
9914case "(($ac_try" in
9915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916  *) ac_try_echo=$ac_try;;
9917esac
9918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9919$as_echo "$ac_try_echo") >&5
9920  (eval "$ac_compile") 2>conftest.er1
9921  ac_status=$?
9922  grep -v '^ *+' conftest.er1 >conftest.err
9923  rm -f conftest.er1
9924  cat conftest.err >&5
9925  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926  (exit $ac_status); } && {
9927	 test -z "$ac_c_werror_flag" ||
9928	 test ! -s conftest.err
9929       } && test -s conftest.$ac_objext; then
9930  :
9931else
9932  $as_echo "$as_me: failed program was:" >&5
9933sed 's/^/| /' conftest.$ac_ext >&5
9934
9935	ac_cv_type_ssize_t=yes
9936fi
9937
9938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9939else
9940  $as_echo "$as_me: failed program was:" >&5
9941sed 's/^/| /' conftest.$ac_ext >&5
9942
9943
9944fi
9945
9946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9947fi
9948{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9949$as_echo "$ac_cv_type_ssize_t" >&6; }
9950if test "x$ac_cv_type_ssize_t" = x""yes; then
9951  :
9952else
9953
9954cat >>confdefs.h <<_ACEOF
9955#define ssize_t int
9956_ACEOF
9957
9958fi
9959
9960
9961# The cast to long int works around a bug in the HP C Compiler
9962# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9963# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9964# This bug is HP SR number 8606223364.
9965{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5
9966$as_echo_n "checking size of off_t... " >&6; }
9967if test "${ac_cv_sizeof_off_t+set}" = set; then
9968  $as_echo_n "(cached) " >&6
9969else
9970  if test "$cross_compiling" = yes; then
9971  # Depending upon the size, compute the lo and hi bounds.
9972cat >conftest.$ac_ext <<_ACEOF
9973/* confdefs.h.  */
9974_ACEOF
9975cat confdefs.h >>conftest.$ac_ext
9976cat >>conftest.$ac_ext <<_ACEOF
9977/* end confdefs.h.  */
9978$ac_includes_default
9979int
9980main ()
9981{
9982static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
9983test_array [0] = 0
9984
9985  ;
9986  return 0;
9987}
9988_ACEOF
9989rm -f conftest.$ac_objext
9990if { (ac_try="$ac_compile"
9991case "(($ac_try" in
9992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993  *) ac_try_echo=$ac_try;;
9994esac
9995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9996$as_echo "$ac_try_echo") >&5
9997  (eval "$ac_compile") 2>conftest.er1
9998  ac_status=$?
9999  grep -v '^ *+' conftest.er1 >conftest.err
10000  rm -f conftest.er1
10001  cat conftest.err >&5
10002  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003  (exit $ac_status); } && {
10004	 test -z "$ac_c_werror_flag" ||
10005	 test ! -s conftest.err
10006       } && test -s conftest.$ac_objext; then
10007  ac_lo=0 ac_mid=0
10008  while :; do
10009    cat >conftest.$ac_ext <<_ACEOF
10010/* confdefs.h.  */
10011_ACEOF
10012cat confdefs.h >>conftest.$ac_ext
10013cat >>conftest.$ac_ext <<_ACEOF
10014/* end confdefs.h.  */
10015$ac_includes_default
10016int
10017main ()
10018{
10019static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
10020test_array [0] = 0
10021
10022  ;
10023  return 0;
10024}
10025_ACEOF
10026rm -f conftest.$ac_objext
10027if { (ac_try="$ac_compile"
10028case "(($ac_try" in
10029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030  *) ac_try_echo=$ac_try;;
10031esac
10032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10033$as_echo "$ac_try_echo") >&5
10034  (eval "$ac_compile") 2>conftest.er1
10035  ac_status=$?
10036  grep -v '^ *+' conftest.er1 >conftest.err
10037  rm -f conftest.er1
10038  cat conftest.err >&5
10039  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040  (exit $ac_status); } && {
10041	 test -z "$ac_c_werror_flag" ||
10042	 test ! -s conftest.err
10043       } && test -s conftest.$ac_objext; then
10044  ac_hi=$ac_mid; break
10045else
10046  $as_echo "$as_me: failed program was:" >&5
10047sed 's/^/| /' conftest.$ac_ext >&5
10048
10049	ac_lo=`expr $ac_mid + 1`
10050			if test $ac_lo -le $ac_mid; then
10051			  ac_lo= ac_hi=
10052			  break
10053			fi
10054			ac_mid=`expr 2 '*' $ac_mid + 1`
10055fi
10056
10057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10058  done
10059else
10060  $as_echo "$as_me: failed program was:" >&5
10061sed 's/^/| /' conftest.$ac_ext >&5
10062
10063	cat >conftest.$ac_ext <<_ACEOF
10064/* confdefs.h.  */
10065_ACEOF
10066cat confdefs.h >>conftest.$ac_ext
10067cat >>conftest.$ac_ext <<_ACEOF
10068/* end confdefs.h.  */
10069$ac_includes_default
10070int
10071main ()
10072{
10073static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
10074test_array [0] = 0
10075
10076  ;
10077  return 0;
10078}
10079_ACEOF
10080rm -f conftest.$ac_objext
10081if { (ac_try="$ac_compile"
10082case "(($ac_try" in
10083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084  *) ac_try_echo=$ac_try;;
10085esac
10086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10087$as_echo "$ac_try_echo") >&5
10088  (eval "$ac_compile") 2>conftest.er1
10089  ac_status=$?
10090  grep -v '^ *+' conftest.er1 >conftest.err
10091  rm -f conftest.er1
10092  cat conftest.err >&5
10093  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094  (exit $ac_status); } && {
10095	 test -z "$ac_c_werror_flag" ||
10096	 test ! -s conftest.err
10097       } && test -s conftest.$ac_objext; then
10098  ac_hi=-1 ac_mid=-1
10099  while :; do
10100    cat >conftest.$ac_ext <<_ACEOF
10101/* confdefs.h.  */
10102_ACEOF
10103cat confdefs.h >>conftest.$ac_ext
10104cat >>conftest.$ac_ext <<_ACEOF
10105/* end confdefs.h.  */
10106$ac_includes_default
10107int
10108main ()
10109{
10110static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
10111test_array [0] = 0
10112
10113  ;
10114  return 0;
10115}
10116_ACEOF
10117rm -f conftest.$ac_objext
10118if { (ac_try="$ac_compile"
10119case "(($ac_try" in
10120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121  *) ac_try_echo=$ac_try;;
10122esac
10123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10124$as_echo "$ac_try_echo") >&5
10125  (eval "$ac_compile") 2>conftest.er1
10126  ac_status=$?
10127  grep -v '^ *+' conftest.er1 >conftest.err
10128  rm -f conftest.er1
10129  cat conftest.err >&5
10130  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131  (exit $ac_status); } && {
10132	 test -z "$ac_c_werror_flag" ||
10133	 test ! -s conftest.err
10134       } && test -s conftest.$ac_objext; then
10135  ac_lo=$ac_mid; break
10136else
10137  $as_echo "$as_me: failed program was:" >&5
10138sed 's/^/| /' conftest.$ac_ext >&5
10139
10140	ac_hi=`expr '(' $ac_mid ')' - 1`
10141			if test $ac_mid -le $ac_hi; then
10142			  ac_lo= ac_hi=
10143			  break
10144			fi
10145			ac_mid=`expr 2 '*' $ac_mid`
10146fi
10147
10148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10149  done
10150else
10151  $as_echo "$as_me: failed program was:" >&5
10152sed 's/^/| /' conftest.$ac_ext >&5
10153
10154	ac_lo= ac_hi=
10155fi
10156
10157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10158fi
10159
10160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10161# Binary search between lo and hi bounds.
10162while test "x$ac_lo" != "x$ac_hi"; do
10163  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10164  cat >conftest.$ac_ext <<_ACEOF
10165/* confdefs.h.  */
10166_ACEOF
10167cat confdefs.h >>conftest.$ac_ext
10168cat >>conftest.$ac_ext <<_ACEOF
10169/* end confdefs.h.  */
10170$ac_includes_default
10171int
10172main ()
10173{
10174static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
10175test_array [0] = 0
10176
10177  ;
10178  return 0;
10179}
10180_ACEOF
10181rm -f conftest.$ac_objext
10182if { (ac_try="$ac_compile"
10183case "(($ac_try" in
10184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185  *) ac_try_echo=$ac_try;;
10186esac
10187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10188$as_echo "$ac_try_echo") >&5
10189  (eval "$ac_compile") 2>conftest.er1
10190  ac_status=$?
10191  grep -v '^ *+' conftest.er1 >conftest.err
10192  rm -f conftest.er1
10193  cat conftest.err >&5
10194  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195  (exit $ac_status); } && {
10196	 test -z "$ac_c_werror_flag" ||
10197	 test ! -s conftest.err
10198       } && test -s conftest.$ac_objext; then
10199  ac_hi=$ac_mid
10200else
10201  $as_echo "$as_me: failed program was:" >&5
10202sed 's/^/| /' conftest.$ac_ext >&5
10203
10204	ac_lo=`expr '(' $ac_mid ')' + 1`
10205fi
10206
10207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10208done
10209case $ac_lo in
10210?*) ac_cv_sizeof_off_t=$ac_lo;;
10211'') if test "$ac_cv_type_off_t" = yes; then
10212     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10214{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
10215See \`config.log' for more details." >&5
10216$as_echo "$as_me: error: cannot compute sizeof (off_t)
10217See \`config.log' for more details." >&2;}
10218   { (exit 77); exit 77; }; }; }
10219   else
10220     ac_cv_sizeof_off_t=0
10221   fi ;;
10222esac
10223else
10224  cat >conftest.$ac_ext <<_ACEOF
10225/* confdefs.h.  */
10226_ACEOF
10227cat confdefs.h >>conftest.$ac_ext
10228cat >>conftest.$ac_ext <<_ACEOF
10229/* end confdefs.h.  */
10230$ac_includes_default
10231static long int longval () { return (long int) (sizeof (off_t)); }
10232static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
10233#include <stdio.h>
10234#include <stdlib.h>
10235int
10236main ()
10237{
10238
10239  FILE *f = fopen ("conftest.val", "w");
10240  if (! f)
10241    return 1;
10242  if (((long int) (sizeof (off_t))) < 0)
10243    {
10244      long int i = longval ();
10245      if (i != ((long int) (sizeof (off_t))))
10246	return 1;
10247      fprintf (f, "%ld", i);
10248    }
10249  else
10250    {
10251      unsigned long int i = ulongval ();
10252      if (i != ((long int) (sizeof (off_t))))
10253	return 1;
10254      fprintf (f, "%lu", i);
10255    }
10256  /* Do not output a trailing newline, as this causes \r\n confusion
10257     on some platforms.  */
10258  return ferror (f) || fclose (f) != 0;
10259
10260  ;
10261  return 0;
10262}
10263_ACEOF
10264rm -f conftest$ac_exeext
10265if { (ac_try="$ac_link"
10266case "(($ac_try" in
10267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10268  *) ac_try_echo=$ac_try;;
10269esac
10270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10271$as_echo "$ac_try_echo") >&5
10272  (eval "$ac_link") 2>&5
10273  ac_status=$?
10274  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10276  { (case "(($ac_try" in
10277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10278  *) ac_try_echo=$ac_try;;
10279esac
10280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10281$as_echo "$ac_try_echo") >&5
10282  (eval "$ac_try") 2>&5
10283  ac_status=$?
10284  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285  (exit $ac_status); }; }; then
10286  ac_cv_sizeof_off_t=`cat conftest.val`
10287else
10288  $as_echo "$as_me: program exited with status $ac_status" >&5
10289$as_echo "$as_me: failed program was:" >&5
10290sed 's/^/| /' conftest.$ac_ext >&5
10291
10292( exit $ac_status )
10293if test "$ac_cv_type_off_t" = yes; then
10294     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10296{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
10297See \`config.log' for more details." >&5
10298$as_echo "$as_me: error: cannot compute sizeof (off_t)
10299See \`config.log' for more details." >&2;}
10300   { (exit 77); exit 77; }; }; }
10301   else
10302     ac_cv_sizeof_off_t=0
10303   fi
10304fi
10305rm -rf conftest.dSYM
10306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10307fi
10308rm -f conftest.val
10309fi
10310{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
10311$as_echo "$ac_cv_sizeof_off_t" >&6; }
10312
10313
10314
10315cat >>confdefs.h <<_ACEOF
10316#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10317_ACEOF
10318
10319
10320# The cast to long int works around a bug in the HP C Compiler
10321# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10322# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10323# This bug is HP SR number 8606223364.
10324{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
10325$as_echo_n "checking size of size_t... " >&6; }
10326if test "${ac_cv_sizeof_size_t+set}" = set; then
10327  $as_echo_n "(cached) " >&6
10328else
10329  if test "$cross_compiling" = yes; then
10330  # Depending upon the size, compute the lo and hi bounds.
10331cat >conftest.$ac_ext <<_ACEOF
10332/* confdefs.h.  */
10333_ACEOF
10334cat confdefs.h >>conftest.$ac_ext
10335cat >>conftest.$ac_ext <<_ACEOF
10336/* end confdefs.h.  */
10337$ac_includes_default
10338int
10339main ()
10340{
10341static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
10342test_array [0] = 0
10343
10344  ;
10345  return 0;
10346}
10347_ACEOF
10348rm -f conftest.$ac_objext
10349if { (ac_try="$ac_compile"
10350case "(($ac_try" in
10351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352  *) ac_try_echo=$ac_try;;
10353esac
10354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10355$as_echo "$ac_try_echo") >&5
10356  (eval "$ac_compile") 2>conftest.er1
10357  ac_status=$?
10358  grep -v '^ *+' conftest.er1 >conftest.err
10359  rm -f conftest.er1
10360  cat conftest.err >&5
10361  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362  (exit $ac_status); } && {
10363	 test -z "$ac_c_werror_flag" ||
10364	 test ! -s conftest.err
10365       } && test -s conftest.$ac_objext; then
10366  ac_lo=0 ac_mid=0
10367  while :; do
10368    cat >conftest.$ac_ext <<_ACEOF
10369/* confdefs.h.  */
10370_ACEOF
10371cat confdefs.h >>conftest.$ac_ext
10372cat >>conftest.$ac_ext <<_ACEOF
10373/* end confdefs.h.  */
10374$ac_includes_default
10375int
10376main ()
10377{
10378static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
10379test_array [0] = 0
10380
10381  ;
10382  return 0;
10383}
10384_ACEOF
10385rm -f conftest.$ac_objext
10386if { (ac_try="$ac_compile"
10387case "(($ac_try" in
10388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389  *) ac_try_echo=$ac_try;;
10390esac
10391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10392$as_echo "$ac_try_echo") >&5
10393  (eval "$ac_compile") 2>conftest.er1
10394  ac_status=$?
10395  grep -v '^ *+' conftest.er1 >conftest.err
10396  rm -f conftest.er1
10397  cat conftest.err >&5
10398  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399  (exit $ac_status); } && {
10400	 test -z "$ac_c_werror_flag" ||
10401	 test ! -s conftest.err
10402       } && test -s conftest.$ac_objext; then
10403  ac_hi=$ac_mid; break
10404else
10405  $as_echo "$as_me: failed program was:" >&5
10406sed 's/^/| /' conftest.$ac_ext >&5
10407
10408	ac_lo=`expr $ac_mid + 1`
10409			if test $ac_lo -le $ac_mid; then
10410			  ac_lo= ac_hi=
10411			  break
10412			fi
10413			ac_mid=`expr 2 '*' $ac_mid + 1`
10414fi
10415
10416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10417  done
10418else
10419  $as_echo "$as_me: failed program was:" >&5
10420sed 's/^/| /' conftest.$ac_ext >&5
10421
10422	cat >conftest.$ac_ext <<_ACEOF
10423/* confdefs.h.  */
10424_ACEOF
10425cat confdefs.h >>conftest.$ac_ext
10426cat >>conftest.$ac_ext <<_ACEOF
10427/* end confdefs.h.  */
10428$ac_includes_default
10429int
10430main ()
10431{
10432static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
10433test_array [0] = 0
10434
10435  ;
10436  return 0;
10437}
10438_ACEOF
10439rm -f conftest.$ac_objext
10440if { (ac_try="$ac_compile"
10441case "(($ac_try" in
10442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443  *) ac_try_echo=$ac_try;;
10444esac
10445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10446$as_echo "$ac_try_echo") >&5
10447  (eval "$ac_compile") 2>conftest.er1
10448  ac_status=$?
10449  grep -v '^ *+' conftest.er1 >conftest.err
10450  rm -f conftest.er1
10451  cat conftest.err >&5
10452  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453  (exit $ac_status); } && {
10454	 test -z "$ac_c_werror_flag" ||
10455	 test ! -s conftest.err
10456       } && test -s conftest.$ac_objext; then
10457  ac_hi=-1 ac_mid=-1
10458  while :; do
10459    cat >conftest.$ac_ext <<_ACEOF
10460/* confdefs.h.  */
10461_ACEOF
10462cat confdefs.h >>conftest.$ac_ext
10463cat >>conftest.$ac_ext <<_ACEOF
10464/* end confdefs.h.  */
10465$ac_includes_default
10466int
10467main ()
10468{
10469static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
10470test_array [0] = 0
10471
10472  ;
10473  return 0;
10474}
10475_ACEOF
10476rm -f conftest.$ac_objext
10477if { (ac_try="$ac_compile"
10478case "(($ac_try" in
10479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10480  *) ac_try_echo=$ac_try;;
10481esac
10482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10483$as_echo "$ac_try_echo") >&5
10484  (eval "$ac_compile") 2>conftest.er1
10485  ac_status=$?
10486  grep -v '^ *+' conftest.er1 >conftest.err
10487  rm -f conftest.er1
10488  cat conftest.err >&5
10489  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490  (exit $ac_status); } && {
10491	 test -z "$ac_c_werror_flag" ||
10492	 test ! -s conftest.err
10493       } && test -s conftest.$ac_objext; then
10494  ac_lo=$ac_mid; break
10495else
10496  $as_echo "$as_me: failed program was:" >&5
10497sed 's/^/| /' conftest.$ac_ext >&5
10498
10499	ac_hi=`expr '(' $ac_mid ')' - 1`
10500			if test $ac_mid -le $ac_hi; then
10501			  ac_lo= ac_hi=
10502			  break
10503			fi
10504			ac_mid=`expr 2 '*' $ac_mid`
10505fi
10506
10507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10508  done
10509else
10510  $as_echo "$as_me: failed program was:" >&5
10511sed 's/^/| /' conftest.$ac_ext >&5
10512
10513	ac_lo= ac_hi=
10514fi
10515
10516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10517fi
10518
10519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10520# Binary search between lo and hi bounds.
10521while test "x$ac_lo" != "x$ac_hi"; do
10522  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10523  cat >conftest.$ac_ext <<_ACEOF
10524/* confdefs.h.  */
10525_ACEOF
10526cat confdefs.h >>conftest.$ac_ext
10527cat >>conftest.$ac_ext <<_ACEOF
10528/* end confdefs.h.  */
10529$ac_includes_default
10530int
10531main ()
10532{
10533static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
10534test_array [0] = 0
10535
10536  ;
10537  return 0;
10538}
10539_ACEOF
10540rm -f conftest.$ac_objext
10541if { (ac_try="$ac_compile"
10542case "(($ac_try" in
10543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544  *) ac_try_echo=$ac_try;;
10545esac
10546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10547$as_echo "$ac_try_echo") >&5
10548  (eval "$ac_compile") 2>conftest.er1
10549  ac_status=$?
10550  grep -v '^ *+' conftest.er1 >conftest.err
10551  rm -f conftest.er1
10552  cat conftest.err >&5
10553  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554  (exit $ac_status); } && {
10555	 test -z "$ac_c_werror_flag" ||
10556	 test ! -s conftest.err
10557       } && test -s conftest.$ac_objext; then
10558  ac_hi=$ac_mid
10559else
10560  $as_echo "$as_me: failed program was:" >&5
10561sed 's/^/| /' conftest.$ac_ext >&5
10562
10563	ac_lo=`expr '(' $ac_mid ')' + 1`
10564fi
10565
10566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10567done
10568case $ac_lo in
10569?*) ac_cv_sizeof_size_t=$ac_lo;;
10570'') if test "$ac_cv_type_size_t" = yes; then
10571     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10573{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10574See \`config.log' for more details." >&5
10575$as_echo "$as_me: error: cannot compute sizeof (size_t)
10576See \`config.log' for more details." >&2;}
10577   { (exit 77); exit 77; }; }; }
10578   else
10579     ac_cv_sizeof_size_t=0
10580   fi ;;
10581esac
10582else
10583  cat >conftest.$ac_ext <<_ACEOF
10584/* confdefs.h.  */
10585_ACEOF
10586cat confdefs.h >>conftest.$ac_ext
10587cat >>conftest.$ac_ext <<_ACEOF
10588/* end confdefs.h.  */
10589$ac_includes_default
10590static long int longval () { return (long int) (sizeof (size_t)); }
10591static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
10592#include <stdio.h>
10593#include <stdlib.h>
10594int
10595main ()
10596{
10597
10598  FILE *f = fopen ("conftest.val", "w");
10599  if (! f)
10600    return 1;
10601  if (((long int) (sizeof (size_t))) < 0)
10602    {
10603      long int i = longval ();
10604      if (i != ((long int) (sizeof (size_t))))
10605	return 1;
10606      fprintf (f, "%ld", i);
10607    }
10608  else
10609    {
10610      unsigned long int i = ulongval ();
10611      if (i != ((long int) (sizeof (size_t))))
10612	return 1;
10613      fprintf (f, "%lu", i);
10614    }
10615  /* Do not output a trailing newline, as this causes \r\n confusion
10616     on some platforms.  */
10617  return ferror (f) || fclose (f) != 0;
10618
10619  ;
10620  return 0;
10621}
10622_ACEOF
10623rm -f conftest$ac_exeext
10624if { (ac_try="$ac_link"
10625case "(($ac_try" in
10626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627  *) ac_try_echo=$ac_try;;
10628esac
10629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10630$as_echo "$ac_try_echo") >&5
10631  (eval "$ac_link") 2>&5
10632  ac_status=$?
10633  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10635  { (case "(($ac_try" in
10636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637  *) ac_try_echo=$ac_try;;
10638esac
10639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10640$as_echo "$ac_try_echo") >&5
10641  (eval "$ac_try") 2>&5
10642  ac_status=$?
10643  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644  (exit $ac_status); }; }; then
10645  ac_cv_sizeof_size_t=`cat conftest.val`
10646else
10647  $as_echo "$as_me: program exited with status $ac_status" >&5
10648$as_echo "$as_me: failed program was:" >&5
10649sed 's/^/| /' conftest.$ac_ext >&5
10650
10651( exit $ac_status )
10652if test "$ac_cv_type_size_t" = yes; then
10653     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10655{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10656See \`config.log' for more details." >&5
10657$as_echo "$as_me: error: cannot compute sizeof (size_t)
10658See \`config.log' for more details." >&2;}
10659   { (exit 77); exit 77; }; }; }
10660   else
10661     ac_cv_sizeof_size_t=0
10662   fi
10663fi
10664rm -rf conftest.dSYM
10665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10666fi
10667rm -f conftest.val
10668fi
10669{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10670$as_echo "$ac_cv_sizeof_size_t" >&6; }
10671
10672
10673
10674cat >>confdefs.h <<_ACEOF
10675#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10676_ACEOF
10677
10678
10679# The cast to long int works around a bug in the HP C Compiler
10680# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10681# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10682# This bug is HP SR number 8606223364.
10683{ $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
10684$as_echo_n "checking size of ssize_t... " >&6; }
10685if test "${ac_cv_sizeof_ssize_t+set}" = set; then
10686  $as_echo_n "(cached) " >&6
10687else
10688  if test "$cross_compiling" = yes; then
10689  # Depending upon the size, compute the lo and hi bounds.
10690cat >conftest.$ac_ext <<_ACEOF
10691/* confdefs.h.  */
10692_ACEOF
10693cat confdefs.h >>conftest.$ac_ext
10694cat >>conftest.$ac_ext <<_ACEOF
10695/* end confdefs.h.  */
10696$ac_includes_default
10697int
10698main ()
10699{
10700static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= 0)];
10701test_array [0] = 0
10702
10703  ;
10704  return 0;
10705}
10706_ACEOF
10707rm -f conftest.$ac_objext
10708if { (ac_try="$ac_compile"
10709case "(($ac_try" in
10710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711  *) ac_try_echo=$ac_try;;
10712esac
10713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10714$as_echo "$ac_try_echo") >&5
10715  (eval "$ac_compile") 2>conftest.er1
10716  ac_status=$?
10717  grep -v '^ *+' conftest.er1 >conftest.err
10718  rm -f conftest.er1
10719  cat conftest.err >&5
10720  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721  (exit $ac_status); } && {
10722	 test -z "$ac_c_werror_flag" ||
10723	 test ! -s conftest.err
10724       } && test -s conftest.$ac_objext; then
10725  ac_lo=0 ac_mid=0
10726  while :; do
10727    cat >conftest.$ac_ext <<_ACEOF
10728/* confdefs.h.  */
10729_ACEOF
10730cat confdefs.h >>conftest.$ac_ext
10731cat >>conftest.$ac_ext <<_ACEOF
10732/* end confdefs.h.  */
10733$ac_includes_default
10734int
10735main ()
10736{
10737static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
10738test_array [0] = 0
10739
10740  ;
10741  return 0;
10742}
10743_ACEOF
10744rm -f conftest.$ac_objext
10745if { (ac_try="$ac_compile"
10746case "(($ac_try" in
10747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748  *) ac_try_echo=$ac_try;;
10749esac
10750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10751$as_echo "$ac_try_echo") >&5
10752  (eval "$ac_compile") 2>conftest.er1
10753  ac_status=$?
10754  grep -v '^ *+' conftest.er1 >conftest.err
10755  rm -f conftest.er1
10756  cat conftest.err >&5
10757  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758  (exit $ac_status); } && {
10759	 test -z "$ac_c_werror_flag" ||
10760	 test ! -s conftest.err
10761       } && test -s conftest.$ac_objext; then
10762  ac_hi=$ac_mid; break
10763else
10764  $as_echo "$as_me: failed program was:" >&5
10765sed 's/^/| /' conftest.$ac_ext >&5
10766
10767	ac_lo=`expr $ac_mid + 1`
10768			if test $ac_lo -le $ac_mid; then
10769			  ac_lo= ac_hi=
10770			  break
10771			fi
10772			ac_mid=`expr 2 '*' $ac_mid + 1`
10773fi
10774
10775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776  done
10777else
10778  $as_echo "$as_me: failed program was:" >&5
10779sed 's/^/| /' conftest.$ac_ext >&5
10780
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$ac_includes_default
10788int
10789main ()
10790{
10791static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) < 0)];
10792test_array [0] = 0
10793
10794  ;
10795  return 0;
10796}
10797_ACEOF
10798rm -f conftest.$ac_objext
10799if { (ac_try="$ac_compile"
10800case "(($ac_try" in
10801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802  *) ac_try_echo=$ac_try;;
10803esac
10804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10805$as_echo "$ac_try_echo") >&5
10806  (eval "$ac_compile") 2>conftest.er1
10807  ac_status=$?
10808  grep -v '^ *+' conftest.er1 >conftest.err
10809  rm -f conftest.er1
10810  cat conftest.err >&5
10811  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812  (exit $ac_status); } && {
10813	 test -z "$ac_c_werror_flag" ||
10814	 test ! -s conftest.err
10815       } && test -s conftest.$ac_objext; then
10816  ac_hi=-1 ac_mid=-1
10817  while :; do
10818    cat >conftest.$ac_ext <<_ACEOF
10819/* confdefs.h.  */
10820_ACEOF
10821cat confdefs.h >>conftest.$ac_ext
10822cat >>conftest.$ac_ext <<_ACEOF
10823/* end confdefs.h.  */
10824$ac_includes_default
10825int
10826main ()
10827{
10828static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= $ac_mid)];
10829test_array [0] = 0
10830
10831  ;
10832  return 0;
10833}
10834_ACEOF
10835rm -f conftest.$ac_objext
10836if { (ac_try="$ac_compile"
10837case "(($ac_try" in
10838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839  *) ac_try_echo=$ac_try;;
10840esac
10841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10842$as_echo "$ac_try_echo") >&5
10843  (eval "$ac_compile") 2>conftest.er1
10844  ac_status=$?
10845  grep -v '^ *+' conftest.er1 >conftest.err
10846  rm -f conftest.er1
10847  cat conftest.err >&5
10848  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849  (exit $ac_status); } && {
10850	 test -z "$ac_c_werror_flag" ||
10851	 test ! -s conftest.err
10852       } && test -s conftest.$ac_objext; then
10853  ac_lo=$ac_mid; break
10854else
10855  $as_echo "$as_me: failed program was:" >&5
10856sed 's/^/| /' conftest.$ac_ext >&5
10857
10858	ac_hi=`expr '(' $ac_mid ')' - 1`
10859			if test $ac_mid -le $ac_hi; then
10860			  ac_lo= ac_hi=
10861			  break
10862			fi
10863			ac_mid=`expr 2 '*' $ac_mid`
10864fi
10865
10866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10867  done
10868else
10869  $as_echo "$as_me: failed program was:" >&5
10870sed 's/^/| /' conftest.$ac_ext >&5
10871
10872	ac_lo= ac_hi=
10873fi
10874
10875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10876fi
10877
10878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10879# Binary search between lo and hi bounds.
10880while test "x$ac_lo" != "x$ac_hi"; do
10881  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10882  cat >conftest.$ac_ext <<_ACEOF
10883/* confdefs.h.  */
10884_ACEOF
10885cat confdefs.h >>conftest.$ac_ext
10886cat >>conftest.$ac_ext <<_ACEOF
10887/* end confdefs.h.  */
10888$ac_includes_default
10889int
10890main ()
10891{
10892static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
10893test_array [0] = 0
10894
10895  ;
10896  return 0;
10897}
10898_ACEOF
10899rm -f conftest.$ac_objext
10900if { (ac_try="$ac_compile"
10901case "(($ac_try" in
10902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903  *) ac_try_echo=$ac_try;;
10904esac
10905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10906$as_echo "$ac_try_echo") >&5
10907  (eval "$ac_compile") 2>conftest.er1
10908  ac_status=$?
10909  grep -v '^ *+' conftest.er1 >conftest.err
10910  rm -f conftest.er1
10911  cat conftest.err >&5
10912  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913  (exit $ac_status); } && {
10914	 test -z "$ac_c_werror_flag" ||
10915	 test ! -s conftest.err
10916       } && test -s conftest.$ac_objext; then
10917  ac_hi=$ac_mid
10918else
10919  $as_echo "$as_me: failed program was:" >&5
10920sed 's/^/| /' conftest.$ac_ext >&5
10921
10922	ac_lo=`expr '(' $ac_mid ')' + 1`
10923fi
10924
10925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10926done
10927case $ac_lo in
10928?*) ac_cv_sizeof_ssize_t=$ac_lo;;
10929'') if test "$ac_cv_type_ssize_t" = yes; then
10930     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10932{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
10933See \`config.log' for more details." >&5
10934$as_echo "$as_me: error: cannot compute sizeof (ssize_t)
10935See \`config.log' for more details." >&2;}
10936   { (exit 77); exit 77; }; }; }
10937   else
10938     ac_cv_sizeof_ssize_t=0
10939   fi ;;
10940esac
10941else
10942  cat >conftest.$ac_ext <<_ACEOF
10943/* confdefs.h.  */
10944_ACEOF
10945cat confdefs.h >>conftest.$ac_ext
10946cat >>conftest.$ac_ext <<_ACEOF
10947/* end confdefs.h.  */
10948$ac_includes_default
10949static long int longval () { return (long int) (sizeof (ssize_t)); }
10950static unsigned long int ulongval () { return (long int) (sizeof (ssize_t)); }
10951#include <stdio.h>
10952#include <stdlib.h>
10953int
10954main ()
10955{
10956
10957  FILE *f = fopen ("conftest.val", "w");
10958  if (! f)
10959    return 1;
10960  if (((long int) (sizeof (ssize_t))) < 0)
10961    {
10962      long int i = longval ();
10963      if (i != ((long int) (sizeof (ssize_t))))
10964	return 1;
10965      fprintf (f, "%ld", i);
10966    }
10967  else
10968    {
10969      unsigned long int i = ulongval ();
10970      if (i != ((long int) (sizeof (ssize_t))))
10971	return 1;
10972      fprintf (f, "%lu", i);
10973    }
10974  /* Do not output a trailing newline, as this causes \r\n confusion
10975     on some platforms.  */
10976  return ferror (f) || fclose (f) != 0;
10977
10978  ;
10979  return 0;
10980}
10981_ACEOF
10982rm -f conftest$ac_exeext
10983if { (ac_try="$ac_link"
10984case "(($ac_try" in
10985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986  *) ac_try_echo=$ac_try;;
10987esac
10988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10989$as_echo "$ac_try_echo") >&5
10990  (eval "$ac_link") 2>&5
10991  ac_status=$?
10992  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10994  { (case "(($ac_try" in
10995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996  *) ac_try_echo=$ac_try;;
10997esac
10998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10999$as_echo "$ac_try_echo") >&5
11000  (eval "$ac_try") 2>&5
11001  ac_status=$?
11002  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003  (exit $ac_status); }; }; then
11004  ac_cv_sizeof_ssize_t=`cat conftest.val`
11005else
11006  $as_echo "$as_me: program exited with status $ac_status" >&5
11007$as_echo "$as_me: failed program was:" >&5
11008sed 's/^/| /' conftest.$ac_ext >&5
11009
11010( exit $ac_status )
11011if test "$ac_cv_type_ssize_t" = yes; then
11012     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11014{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
11015See \`config.log' for more details." >&5
11016$as_echo "$as_me: error: cannot compute sizeof (ssize_t)
11017See \`config.log' for more details." >&2;}
11018   { (exit 77); exit 77; }; }; }
11019   else
11020     ac_cv_sizeof_ssize_t=0
11021   fi
11022fi
11023rm -rf conftest.dSYM
11024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11025fi
11026rm -f conftest.val
11027fi
11028{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
11029$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
11030
11031
11032
11033cat >>confdefs.h <<_ACEOF
11034#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
11035_ACEOF
11036
11037
11038
11039{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11040$as_echo_n "checking for intptr_t... " >&6; }
11041if test "${ac_cv_type_intptr_t+set}" = set; then
11042  $as_echo_n "(cached) " >&6
11043else
11044  ac_cv_type_intptr_t=no
11045cat >conftest.$ac_ext <<_ACEOF
11046/* confdefs.h.  */
11047_ACEOF
11048cat confdefs.h >>conftest.$ac_ext
11049cat >>conftest.$ac_ext <<_ACEOF
11050/* end confdefs.h.  */
11051$ac_includes_default
11052int
11053main ()
11054{
11055if (sizeof (intptr_t))
11056       return 0;
11057  ;
11058  return 0;
11059}
11060_ACEOF
11061rm -f conftest.$ac_objext
11062if { (ac_try="$ac_compile"
11063case "(($ac_try" in
11064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065  *) ac_try_echo=$ac_try;;
11066esac
11067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11068$as_echo "$ac_try_echo") >&5
11069  (eval "$ac_compile") 2>conftest.er1
11070  ac_status=$?
11071  grep -v '^ *+' conftest.er1 >conftest.err
11072  rm -f conftest.er1
11073  cat conftest.err >&5
11074  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075  (exit $ac_status); } && {
11076	 test -z "$ac_c_werror_flag" ||
11077	 test ! -s conftest.err
11078       } && test -s conftest.$ac_objext; then
11079  cat >conftest.$ac_ext <<_ACEOF
11080/* confdefs.h.  */
11081_ACEOF
11082cat confdefs.h >>conftest.$ac_ext
11083cat >>conftest.$ac_ext <<_ACEOF
11084/* end confdefs.h.  */
11085$ac_includes_default
11086int
11087main ()
11088{
11089if (sizeof ((intptr_t)))
11090	  return 0;
11091  ;
11092  return 0;
11093}
11094_ACEOF
11095rm -f conftest.$ac_objext
11096if { (ac_try="$ac_compile"
11097case "(($ac_try" in
11098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099  *) ac_try_echo=$ac_try;;
11100esac
11101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11102$as_echo "$ac_try_echo") >&5
11103  (eval "$ac_compile") 2>conftest.er1
11104  ac_status=$?
11105  grep -v '^ *+' conftest.er1 >conftest.err
11106  rm -f conftest.er1
11107  cat conftest.err >&5
11108  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109  (exit $ac_status); } && {
11110	 test -z "$ac_c_werror_flag" ||
11111	 test ! -s conftest.err
11112       } && test -s conftest.$ac_objext; then
11113  :
11114else
11115  $as_echo "$as_me: failed program was:" >&5
11116sed 's/^/| /' conftest.$ac_ext >&5
11117
11118	ac_cv_type_intptr_t=yes
11119fi
11120
11121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122else
11123  $as_echo "$as_me: failed program was:" >&5
11124sed 's/^/| /' conftest.$ac_ext >&5
11125
11126
11127fi
11128
11129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11130fi
11131{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11132$as_echo "$ac_cv_type_intptr_t" >&6; }
11133if test "x$ac_cv_type_intptr_t" = x""yes; then
11134
11135cat >>confdefs.h <<_ACEOF
11136#define HAVE_INTPTR_T 1
11137_ACEOF
11138
11139
11140fi
11141{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11142$as_echo_n "checking for uintptr_t... " >&6; }
11143if test "${ac_cv_type_uintptr_t+set}" = set; then
11144  $as_echo_n "(cached) " >&6
11145else
11146  ac_cv_type_uintptr_t=no
11147cat >conftest.$ac_ext <<_ACEOF
11148/* confdefs.h.  */
11149_ACEOF
11150cat confdefs.h >>conftest.$ac_ext
11151cat >>conftest.$ac_ext <<_ACEOF
11152/* end confdefs.h.  */
11153$ac_includes_default
11154int
11155main ()
11156{
11157if (sizeof (uintptr_t))
11158       return 0;
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11170$as_echo "$ac_try_echo") >&5
11171  (eval "$ac_compile") 2>conftest.er1
11172  ac_status=$?
11173  grep -v '^ *+' conftest.er1 >conftest.err
11174  rm -f conftest.er1
11175  cat conftest.err >&5
11176  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177  (exit $ac_status); } && {
11178	 test -z "$ac_c_werror_flag" ||
11179	 test ! -s conftest.err
11180       } && test -s conftest.$ac_objext; then
11181  cat >conftest.$ac_ext <<_ACEOF
11182/* confdefs.h.  */
11183_ACEOF
11184cat confdefs.h >>conftest.$ac_ext
11185cat >>conftest.$ac_ext <<_ACEOF
11186/* end confdefs.h.  */
11187$ac_includes_default
11188int
11189main ()
11190{
11191if (sizeof ((uintptr_t)))
11192	  return 0;
11193  ;
11194  return 0;
11195}
11196_ACEOF
11197rm -f conftest.$ac_objext
11198if { (ac_try="$ac_compile"
11199case "(($ac_try" in
11200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201  *) ac_try_echo=$ac_try;;
11202esac
11203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11204$as_echo "$ac_try_echo") >&5
11205  (eval "$ac_compile") 2>conftest.er1
11206  ac_status=$?
11207  grep -v '^ *+' conftest.er1 >conftest.err
11208  rm -f conftest.er1
11209  cat conftest.err >&5
11210  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211  (exit $ac_status); } && {
11212	 test -z "$ac_c_werror_flag" ||
11213	 test ! -s conftest.err
11214       } && test -s conftest.$ac_objext; then
11215  :
11216else
11217  $as_echo "$as_me: failed program was:" >&5
11218sed 's/^/| /' conftest.$ac_ext >&5
11219
11220	ac_cv_type_uintptr_t=yes
11221fi
11222
11223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11224else
11225  $as_echo "$as_me: failed program was:" >&5
11226sed 's/^/| /' conftest.$ac_ext >&5
11227
11228
11229fi
11230
11231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11232fi
11233{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11234$as_echo "$ac_cv_type_uintptr_t" >&6; }
11235if test "x$ac_cv_type_uintptr_t" = x""yes; then
11236
11237cat >>confdefs.h <<_ACEOF
11238#define HAVE_UINTPTR_T 1
11239_ACEOF
11240
11241
11242fi
11243{ $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11244$as_echo_n "checking for ptrdiff_t... " >&6; }
11245if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11246  $as_echo_n "(cached) " >&6
11247else
11248  ac_cv_type_ptrdiff_t=no
11249cat >conftest.$ac_ext <<_ACEOF
11250/* confdefs.h.  */
11251_ACEOF
11252cat confdefs.h >>conftest.$ac_ext
11253cat >>conftest.$ac_ext <<_ACEOF
11254/* end confdefs.h.  */
11255$ac_includes_default
11256int
11257main ()
11258{
11259if (sizeof (ptrdiff_t))
11260       return 0;
11261  ;
11262  return 0;
11263}
11264_ACEOF
11265rm -f conftest.$ac_objext
11266if { (ac_try="$ac_compile"
11267case "(($ac_try" in
11268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269  *) ac_try_echo=$ac_try;;
11270esac
11271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11272$as_echo "$ac_try_echo") >&5
11273  (eval "$ac_compile") 2>conftest.er1
11274  ac_status=$?
11275  grep -v '^ *+' conftest.er1 >conftest.err
11276  rm -f conftest.er1
11277  cat conftest.err >&5
11278  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279  (exit $ac_status); } && {
11280	 test -z "$ac_c_werror_flag" ||
11281	 test ! -s conftest.err
11282       } && test -s conftest.$ac_objext; then
11283  cat >conftest.$ac_ext <<_ACEOF
11284/* confdefs.h.  */
11285_ACEOF
11286cat confdefs.h >>conftest.$ac_ext
11287cat >>conftest.$ac_ext <<_ACEOF
11288/* end confdefs.h.  */
11289$ac_includes_default
11290int
11291main ()
11292{
11293if (sizeof ((ptrdiff_t)))
11294	  return 0;
11295  ;
11296  return 0;
11297}
11298_ACEOF
11299rm -f conftest.$ac_objext
11300if { (ac_try="$ac_compile"
11301case "(($ac_try" in
11302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303  *) ac_try_echo=$ac_try;;
11304esac
11305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11306$as_echo "$ac_try_echo") >&5
11307  (eval "$ac_compile") 2>conftest.er1
11308  ac_status=$?
11309  grep -v '^ *+' conftest.er1 >conftest.err
11310  rm -f conftest.er1
11311  cat conftest.err >&5
11312  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313  (exit $ac_status); } && {
11314	 test -z "$ac_c_werror_flag" ||
11315	 test ! -s conftest.err
11316       } && test -s conftest.$ac_objext; then
11317  :
11318else
11319  $as_echo "$as_me: failed program was:" >&5
11320sed 's/^/| /' conftest.$ac_ext >&5
11321
11322	ac_cv_type_ptrdiff_t=yes
11323fi
11324
11325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11326else
11327  $as_echo "$as_me: failed program was:" >&5
11328sed 's/^/| /' conftest.$ac_ext >&5
11329
11330
11331fi
11332
11333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334fi
11335{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11336$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
11337if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
11338
11339cat >>confdefs.h <<_ACEOF
11340#define HAVE_PTRDIFF_T 1
11341_ACEOF
11342
11343
11344fi
11345
11346
11347if test x"$ac_cv_type_long_long" != x"yes";then
11348	{ { $as_echo "$as_me:$LINENO: error: LIBREPLACE needs type 'long long'" >&5
11349$as_echo "$as_me: error: LIBREPLACE needs type 'long long'" >&2;}
11350   { (exit 1); exit 1; }; }
11351fi
11352if test $ac_cv_sizeof_long_long -lt 8;then
11353	{ { $as_echo "$as_me:$LINENO: error: LIBREPLACE needs sizeof(long long) >= 8" >&5
11354$as_echo "$as_me: error: LIBREPLACE needs sizeof(long long) >= 8" >&2;}
11355   { (exit 1); exit 1; }; }
11356fi
11357
11358############################################
11359# check if the compiler can do immediate structures
11360
11361{ $as_echo "$as_me:$LINENO: checking for immediate structures" >&5
11362$as_echo_n "checking for immediate structures... " >&6; }
11363if test "${libreplace_cv_immediate_structures+set}" = set; then
11364  $as_echo_n "(cached) " >&6
11365else
11366
11367	cat >conftest.$ac_ext <<_ACEOF
11368/* confdefs.h.  */
11369_ACEOF
11370cat confdefs.h >>conftest.$ac_ext
11371cat >>conftest.$ac_ext <<_ACEOF
11372/* end confdefs.h.  */
11373
11374		#include <stdio.h>
11375
11376int
11377main ()
11378{
11379
11380		typedef struct {unsigned x;} FOOBAR;
11381		#define X_FOOBAR(x) ((FOOBAR) { x })
11382		#define FOO_ONE X_FOOBAR(1)
11383		FOOBAR f = FOO_ONE;
11384		static const struct {
11385			FOOBAR y;
11386		} f2[] = {
11387			{FOO_ONE}
11388		};
11389		static const FOOBAR f3[] = {FOO_ONE};
11390
11391  ;
11392  return 0;
11393}
11394_ACEOF
11395rm -f conftest.$ac_objext
11396if { (ac_try="$ac_compile"
11397case "(($ac_try" in
11398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399  *) ac_try_echo=$ac_try;;
11400esac
11401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11402$as_echo "$ac_try_echo") >&5
11403  (eval "$ac_compile") 2>conftest.er1
11404  ac_status=$?
11405  grep -v '^ *+' conftest.er1 >conftest.err
11406  rm -f conftest.er1
11407  cat conftest.err >&5
11408  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409  (exit $ac_status); } && {
11410	 test -z "$ac_c_werror_flag" ||
11411	 test ! -s conftest.err
11412       } && test -s conftest.$ac_objext; then
11413  libreplace_cv_immediate_structures=yes
11414else
11415  $as_echo "$as_me: failed program was:" >&5
11416sed 's/^/| /' conftest.$ac_ext >&5
11417
11418	libreplace_cv_immediate_structures=no
11419fi
11420
11421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11422
11423fi
11424{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_immediate_structures" >&5
11425$as_echo "$libreplace_cv_immediate_structures" >&6; }
11426if test x"$libreplace_cv_immediate_structures" = x"yes"; then
11427
11428cat >>confdefs.h <<\_ACEOF
11429#define HAVE_IMMEDIATE_STRUCTURES 1
11430_ACEOF
11431
11432fi
11433
11434
11435echo "LIBREPLACE_CC_CHECKS: END"
11436
11437
11438
11439
11440
11441
11442if test x"$teventdir" = "x"; then
11443	teventdir=""
11444	teventpaths="$srcdir $srcdir/../lib/tevent $srcdir/tevent $srcdir/../tevent"
11445	for d in $teventpaths; do
11446		if test -f "$d/tevent.c"; then
11447			teventdir="$d"
11448			break;
11449		fi
11450	done
11451	if test x"$teventdir" = "x"; then
11452	   { { $as_echo "$as_me:$LINENO: error: cannot find libtevent source in $teventpaths" >&5
11453$as_echo "$as_me: error: cannot find libtevent source in $teventpaths" >&2;}
11454   { (exit 1); exit 1; }; }
11455	fi
11456fi
11457
11458TEVENT_OBJ=""
11459TEVENT_CFLAGS=""
11460TEVENT_LIBS=""
11461
11462
11463
11464
11465TEVENT_CFLAGS="-I$teventdir"
11466
11467TEVENT_OBJ="tevent.o tevent_debug.o tevent_util.o"
11468TEVENT_OBJ="$TEVENT_OBJ tevent_fd.o tevent_timed.o tevent_immediate.o tevent_signal.o"
11469TEVENT_OBJ="$TEVENT_OBJ tevent_req.o tevent_wakeup.o tevent_queue.o"
11470TEVENT_OBJ="$TEVENT_OBJ tevent_standard.o tevent_select.o"
11471
11472
11473for ac_header in sys/epoll.h
11474do
11475as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11477  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11478$as_echo_n "checking for $ac_header... " >&6; }
11479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11480  $as_echo_n "(cached) " >&6
11481fi
11482ac_res=`eval 'as_val=${'$as_ac_Header'}
11483		 $as_echo "$as_val"'`
11484	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11485$as_echo "$ac_res" >&6; }
11486else
11487  # Is the header compilable?
11488{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11489$as_echo_n "checking $ac_header usability... " >&6; }
11490cat >conftest.$ac_ext <<_ACEOF
11491/* confdefs.h.  */
11492_ACEOF
11493cat confdefs.h >>conftest.$ac_ext
11494cat >>conftest.$ac_ext <<_ACEOF
11495/* end confdefs.h.  */
11496$ac_includes_default
11497#include <$ac_header>
11498_ACEOF
11499rm -f conftest.$ac_objext
11500if { (ac_try="$ac_compile"
11501case "(($ac_try" in
11502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503  *) ac_try_echo=$ac_try;;
11504esac
11505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11506$as_echo "$ac_try_echo") >&5
11507  (eval "$ac_compile") 2>conftest.er1
11508  ac_status=$?
11509  grep -v '^ *+' conftest.er1 >conftest.err
11510  rm -f conftest.er1
11511  cat conftest.err >&5
11512  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513  (exit $ac_status); } && {
11514	 test -z "$ac_c_werror_flag" ||
11515	 test ! -s conftest.err
11516       } && test -s conftest.$ac_objext; then
11517  ac_header_compiler=yes
11518else
11519  $as_echo "$as_me: failed program was:" >&5
11520sed 's/^/| /' conftest.$ac_ext >&5
11521
11522	ac_header_compiler=no
11523fi
11524
11525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11526{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11527$as_echo "$ac_header_compiler" >&6; }
11528
11529# Is the header present?
11530{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11531$as_echo_n "checking $ac_header presence... " >&6; }
11532cat >conftest.$ac_ext <<_ACEOF
11533/* confdefs.h.  */
11534_ACEOF
11535cat confdefs.h >>conftest.$ac_ext
11536cat >>conftest.$ac_ext <<_ACEOF
11537/* end confdefs.h.  */
11538#include <$ac_header>
11539_ACEOF
11540if { (ac_try="$ac_cpp conftest.$ac_ext"
11541case "(($ac_try" in
11542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543  *) ac_try_echo=$ac_try;;
11544esac
11545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11546$as_echo "$ac_try_echo") >&5
11547  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11548  ac_status=$?
11549  grep -v '^ *+' conftest.er1 >conftest.err
11550  rm -f conftest.er1
11551  cat conftest.err >&5
11552  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553  (exit $ac_status); } >/dev/null && {
11554	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11555	 test ! -s conftest.err
11556       }; then
11557  ac_header_preproc=yes
11558else
11559  $as_echo "$as_me: failed program was:" >&5
11560sed 's/^/| /' conftest.$ac_ext >&5
11561
11562  ac_header_preproc=no
11563fi
11564
11565rm -f conftest.err conftest.$ac_ext
11566{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11567$as_echo "$ac_header_preproc" >&6; }
11568
11569# So?  What about this header?
11570case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11571  yes:no: )
11572    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11573$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11574    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11575$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11576    ac_header_preproc=yes
11577    ;;
11578  no:yes:* )
11579    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11580$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11581    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11582$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11583    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11584$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11585    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11586$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11587    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11588$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11589    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11590$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11591    ( cat <<\_ASBOX
11592## ---------------------------------------- ##
11593## Report this to samba-technical@samba.org ##
11594## ---------------------------------------- ##
11595_ASBOX
11596     ) | sed "s/^/$as_me: WARNING:     /" >&2
11597    ;;
11598esac
11599{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11600$as_echo_n "checking for $ac_header... " >&6; }
11601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11602  $as_echo_n "(cached) " >&6
11603else
11604  eval "$as_ac_Header=\$ac_header_preproc"
11605fi
11606ac_res=`eval 'as_val=${'$as_ac_Header'}
11607		 $as_echo "$as_val"'`
11608	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11609$as_echo "$ac_res" >&6; }
11610
11611fi
11612as_val=`eval 'as_val=${'$as_ac_Header'}
11613		 $as_echo "$as_val"'`
11614   if test "x$as_val" = x""yes; then
11615  cat >>confdefs.h <<_ACEOF
11616#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11617_ACEOF
11618
11619fi
11620
11621done
11622
11623
11624for ac_func in epoll_create
11625do
11626as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11627{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11628$as_echo_n "checking for $ac_func... " >&6; }
11629if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11630  $as_echo_n "(cached) " >&6
11631else
11632  cat >conftest.$ac_ext <<_ACEOF
11633/* confdefs.h.  */
11634_ACEOF
11635cat confdefs.h >>conftest.$ac_ext
11636cat >>conftest.$ac_ext <<_ACEOF
11637/* end confdefs.h.  */
11638/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11639   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11640#define $ac_func innocuous_$ac_func
11641
11642/* System header to define __stub macros and hopefully few prototypes,
11643    which can conflict with char $ac_func (); below.
11644    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11645    <limits.h> exists even on freestanding compilers.  */
11646
11647#ifdef __STDC__
11648# include <limits.h>
11649#else
11650# include <assert.h>
11651#endif
11652
11653#undef $ac_func
11654
11655/* Override any GCC internal prototype to avoid an error.
11656   Use char because int might match the return type of a GCC
11657   builtin and then its argument prototype would still apply.  */
11658#ifdef __cplusplus
11659extern "C"
11660#endif
11661char $ac_func ();
11662/* The GNU C library defines this for functions which it implements
11663    to always fail with ENOSYS.  Some functions are actually named
11664    something starting with __ and the normal name is an alias.  */
11665#if defined __stub_$ac_func || defined __stub___$ac_func
11666choke me
11667#endif
11668
11669int
11670main ()
11671{
11672return $ac_func ();
11673  ;
11674  return 0;
11675}
11676_ACEOF
11677rm -f conftest.$ac_objext conftest$ac_exeext
11678if { (ac_try="$ac_link"
11679case "(($ac_try" in
11680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681  *) ac_try_echo=$ac_try;;
11682esac
11683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11684$as_echo "$ac_try_echo") >&5
11685  (eval "$ac_link") 2>conftest.er1
11686  ac_status=$?
11687  grep -v '^ *+' conftest.er1 >conftest.err
11688  rm -f conftest.er1
11689  cat conftest.err >&5
11690  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691  (exit $ac_status); } && {
11692	 test -z "$ac_c_werror_flag" ||
11693	 test ! -s conftest.err
11694       } && test -s conftest$ac_exeext && {
11695	 test "$cross_compiling" = yes ||
11696	 $as_test_x conftest$ac_exeext
11697       }; then
11698  eval "$as_ac_var=yes"
11699else
11700  $as_echo "$as_me: failed program was:" >&5
11701sed 's/^/| /' conftest.$ac_ext >&5
11702
11703	eval "$as_ac_var=no"
11704fi
11705
11706rm -rf conftest.dSYM
11707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11708      conftest$ac_exeext conftest.$ac_ext
11709fi
11710ac_res=`eval 'as_val=${'$as_ac_var'}
11711		 $as_echo "$as_val"'`
11712	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11713$as_echo "$ac_res" >&6; }
11714as_val=`eval 'as_val=${'$as_ac_var'}
11715		 $as_echo "$as_val"'`
11716   if test "x$as_val" = x""yes; then
11717  cat >>confdefs.h <<_ACEOF
11718#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11719_ACEOF
11720
11721fi
11722done
11723
11724if test x"$ac_cv_header_sys_epoll_h" = x"yes" -a x"$ac_cv_func_epoll_create" = x"yes"; then
11725   TEVENT_OBJ="$TEVENT_OBJ tevent_epoll.o"
11726
11727cat >>confdefs.h <<\_ACEOF
11728#define HAVE_EPOLL 1
11729_ACEOF
11730
11731fi
11732
11733if test x"$VERSIONSCRIPT" != "x"; then
11734    EXPORTSFILE=tevent.exports
11735
11736fi
11737
11738
11739
11740LIBTEVENT_OBJ0=""
11741for obj in ${TEVENT_OBJ}; do
11742	LIBTEVENT_OBJ0="${LIBTEVENT_OBJ0} ${teventdir}/${obj}"
11743done
11744
11745LIBS="${LIBS} ${TEVENT_LIBS}"
11746
11747SAMBA_CPPFLAGS="-Iinclude -I${srcdir-.}/include  -I. -I${srcdir-.}"
11748SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} -I${srcdir-.}/../lib/replace"
11749SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} ${TEVENT_CFLAGS}"
11750SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} -I${srcdir-.}/libaddns"
11751SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} -I${srcdir-.}/librpc"
11752SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} -I${srcdir-.}/.."
11753
11754SAMBA_CONFIGURE_CPPFLAGS="${SAMBA_CPPFLAGS} -I${srcdir-.}/../lib/popt"
11755
11756## cleanup the $(srcdir) in the Makefile if we are outside of the tree
11757if test "x${srcdir-.}" != "x."; then
11758	SAMBA_CPPFLAGS=`echo ${SAMBA_CPPFLAGS} | sed -e "s;${srcdir};\$\(srcdir\);g"`
11759fi
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819# compile with optimization and without debugging by default, but
11820# allow people to set their own preference.
11821# do this here since AC_CACHE_CHECK apparently sets the CFLAGS to "-g -O2"
11822# if it has no value.  This prevent *very* large debug binaries from occurring
11823# by default.
11824if test "x$debug" = "xyes" ; then
11825	CFLAGS="${CFLAGS} -g"
11826fi
11827if test "x$CFLAGS" = x; then
11828  CFLAGS="-O"
11829fi
11830
11831# Check whether --enable-socket-wrapper was given.
11832if test "${enable_socket_wrapper+set}" = set; then
11833  enableval=$enable_socket_wrapper;
11834fi
11835
11836
11837DEFAULT_TEST_OPTIONS=
11838HAVE_SOCKET_WRAPPER=no
11839
11840if eval "test x$developer = xyes"; then
11841	enable_socket_wrapper=yes
11842fi
11843
11844if eval "test x$enable_socket_wrapper = xyes"; then
11845
11846cat >>confdefs.h <<\_ACEOF
11847#define SOCKET_WRAPPER 1
11848_ACEOF
11849
11850	DEFAULT_TEST_OPTIONS=--socket-wrapper
11851	HAVE_SOCKET_WRAPPER=yes
11852
11853	# this is only used for samba3
11854	SOCKET_WRAPPER_OBJS="../lib/socket_wrapper/socket_wrapper.o"
11855fi
11856
11857
11858
11859
11860
11861# Check whether --enable-nss-wrapper was given.
11862if test "${enable_nss_wrapper+set}" = set; then
11863  enableval=$enable_nss_wrapper;
11864fi
11865
11866
11867HAVE_NSS_WRAPPER=no
11868
11869if eval "test x$developer = xyes"; then
11870	enable_nss_wrapper=yes
11871fi
11872
11873if eval "test x$enable_nss_wrapper = xyes"; then
11874
11875cat >>confdefs.h <<\_ACEOF
11876#define NSS_WRAPPER 1
11877_ACEOF
11878
11879	HAVE_NSS_WRAPPER=yes
11880
11881	# this is only used for samba3
11882	NSS_WRAPPER_OBJS="../lib/nss_wrapper/nss_wrapper.o"
11883fi
11884
11885
11886
11887
11888
11889
11890
11891SWAT_SBIN_TARGETS='bin/swat$(EXEEXT)'
11892SWAT_INSTALL_TARGETS=installswat
11893
11894# Check whether --enable-swat was given.
11895if test "${enable_swat+set}" = set; then
11896  enableval=$enable_swat;
11897    case "$enable_swat" in
11898	no)
11899	    SWAT_SBIN_TARGETS=''
11900	    SWAT_INSTALL_TARGETS=''
11901	    ;;
11902    esac
11903
11904fi
11905
11906
11907
11908
11909
11910
11911
11912# Probe the gcc version for extra CFLAGS. We always stash these in
11913# DEVELOPER_CFLAGS, so that you can turn them on and off with a simple
11914# Makefile edit, avoiding the need to re-run configure.
11915if test x"$ac_cv_c_compiler_gnu" = x"yes" ; then
11916    	DEVELOPER_CFLAGS="-g -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
11917	# Add -Wdeclaration-after-statement if compiler supports it
11918	{ $as_echo "$as_me:$LINENO: checking that the C compiler understands -Wdeclaration-after-statement" >&5
11919$as_echo_n "checking that the C compiler understands -Wdeclaration-after-statement... " >&6; }
11920if test "${samba_cv_HAVE_Wdeclaration_after_statement+set}" = set; then
11921  $as_echo_n "(cached) " >&6
11922else
11923
11924
11925	old_CFLAGS="$CFLAGS";
11926	CFLAGS="$CFLAGS -Wdeclaration-after-statement";
11927	export CFLAGS;
11928	old_CPPFLAGS="$CPPFLAGS";
11929	CPPFLAGS="$CPPFLAGS";
11930	export CPPFLAGS;
11931	old_LDFLAGS="$LDFLAGS";
11932	LDFLAGS="$LDFLAGS";
11933	export LDFLAGS;
11934	if test "$cross_compiling" = yes; then
11935  samba_cv_HAVE_Wdeclaration_after_statement=cross
11936else
11937  cat >conftest.$ac_ext <<_ACEOF
11938/* confdefs.h.  */
11939_ACEOF
11940cat confdefs.h >>conftest.$ac_ext
11941cat >>conftest.$ac_ext <<_ACEOF
11942/* end confdefs.h.  */
11943
11944	    int main(void)
11945	    {
11946	    	return 0;
11947	    }
11948_ACEOF
11949rm -f conftest$ac_exeext
11950if { (ac_try="$ac_link"
11951case "(($ac_try" in
11952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953  *) ac_try_echo=$ac_try;;
11954esac
11955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11956$as_echo "$ac_try_echo") >&5
11957  (eval "$ac_link") 2>&5
11958  ac_status=$?
11959  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11961  { (case "(($ac_try" in
11962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963  *) ac_try_echo=$ac_try;;
11964esac
11965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11966$as_echo "$ac_try_echo") >&5
11967  (eval "$ac_try") 2>&5
11968  ac_status=$?
11969  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970  (exit $ac_status); }; }; then
11971  samba_cv_HAVE_Wdeclaration_after_statement=yes
11972else
11973  $as_echo "$as_me: program exited with status $ac_status" >&5
11974$as_echo "$as_me: failed program was:" >&5
11975sed 's/^/| /' conftest.$ac_ext >&5
11976
11977( exit $ac_status )
11978samba_cv_HAVE_Wdeclaration_after_statement=no
11979fi
11980rm -rf conftest.dSYM
11981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11982fi
11983
11984
11985	CFLAGS="$old_CFLAGS";
11986	old_CFLAGS="";
11987	export CFLAGS;
11988	CPPFLAGS="$old_CPPFLAGS";
11989	old_CPPFLAGS="";
11990	export CPPFLAGS;
11991	LDFLAGS="$old_LDFLAGS";
11992	old_LDFLAGS="";
11993	export LDFLAGS;
11994
11995
11996fi
11997{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_Wdeclaration_after_statement" >&5
11998$as_echo "$samba_cv_HAVE_Wdeclaration_after_statement" >&6; }
11999
12000	if test x"$samba_cv_HAVE_Wdeclaration_after_statement" = x"yes"; then
12001	    DEVELOPER_CFLAGS="${DEVELOPER_CFLAGS} -Wdeclaration-after-statement"
12002	fi
12003
12004	#-Werror-implicit-function-declaration
12005	{ $as_echo "$as_me:$LINENO: checking that the C compiler understands -Werror-implicit-function-declaration" >&5
12006$as_echo_n "checking that the C compiler understands -Werror-implicit-function-declaration... " >&6; }
12007if test "${samba_cv_HAVE_Werror_implicit_function_declaration+set}" = set; then
12008  $as_echo_n "(cached) " >&6
12009else
12010
12011
12012	old_CFLAGS="$CFLAGS";
12013	CFLAGS="$CFLAGS -Werror-implicit-function-declaration";
12014	export CFLAGS;
12015	old_CPPFLAGS="$CPPFLAGS";
12016	CPPFLAGS="$CPPFLAGS";
12017	export CPPFLAGS;
12018	old_LDFLAGS="$LDFLAGS";
12019	LDFLAGS="$LDFLAGS";
12020	export LDFLAGS;
12021	if test "$cross_compiling" = yes; then
12022  samba_cv_HAVE_Werror_implicit_function_declaration=cross
12023else
12024  cat >conftest.$ac_ext <<_ACEOF
12025/* confdefs.h.  */
12026_ACEOF
12027cat confdefs.h >>conftest.$ac_ext
12028cat >>conftest.$ac_ext <<_ACEOF
12029/* end confdefs.h.  */
12030
12031	    int main(void)
12032	    {
12033	    	return 0;
12034	    }
12035_ACEOF
12036rm -f conftest$ac_exeext
12037if { (ac_try="$ac_link"
12038case "(($ac_try" in
12039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040  *) ac_try_echo=$ac_try;;
12041esac
12042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12043$as_echo "$ac_try_echo") >&5
12044  (eval "$ac_link") 2>&5
12045  ac_status=$?
12046  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12048  { (case "(($ac_try" in
12049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050  *) ac_try_echo=$ac_try;;
12051esac
12052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12053$as_echo "$ac_try_echo") >&5
12054  (eval "$ac_try") 2>&5
12055  ac_status=$?
12056  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057  (exit $ac_status); }; }; then
12058  samba_cv_HAVE_Werror_implicit_function_declaration=yes
12059else
12060  $as_echo "$as_me: program exited with status $ac_status" >&5
12061$as_echo "$as_me: failed program was:" >&5
12062sed 's/^/| /' conftest.$ac_ext >&5
12063
12064( exit $ac_status )
12065samba_cv_HAVE_Werror_implicit_function_declaration=no
12066fi
12067rm -rf conftest.dSYM
12068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12069fi
12070
12071
12072	CFLAGS="$old_CFLAGS";
12073	old_CFLAGS="";
12074	export CFLAGS;
12075	CPPFLAGS="$old_CPPFLAGS";
12076	old_CPPFLAGS="";
12077	export CPPFLAGS;
12078	LDFLAGS="$old_LDFLAGS";
12079	old_LDFLAGS="";
12080	export LDFLAGS;
12081
12082
12083fi
12084{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_Werror_implicit_function_declaration" >&5
12085$as_echo "$samba_cv_HAVE_Werror_implicit_function_declaration" >&6; }
12086       if test x"$samba_cv_HAVE_Werror_implicit_function_declaration" = x"yes"; then
12087	    DEVELOPER_CFLAGS="${DEVELOPER_CFLAGS} -Werror-implicit-function-declaration"
12088       fi
12089
12090	# krb5developer is like developer, except we don't get
12091	# -Wstrict-prototypes.
12092       if test x"$krb5_developer" != x"$yes" ; then
12093	    DEVELOPER_CFLAGS="$DEVELOPER_CFLAGS -Wstrict-prototypes"
12094       fi
12095
12096       if test x"$picky_developer" = x"yes"; then
12097	    DEVELOPER_CFLAGS="$DEVELOPER_CFLAGS -Werror"
12098       fi
12099fi
12100
12101#################################################
12102# check for a shared memory profiling support
12103{ $as_echo "$as_me:$LINENO: checking whether to use profiling" >&5
12104$as_echo_n "checking whether to use profiling... " >&6; }
12105
12106# Check whether --with-profiling-data was given.
12107if test "${with_profiling_data+set}" = set; then
12108  withval=$with_profiling_data;  case "$withval" in
12109  yes)
12110    { $as_echo "$as_me:$LINENO: result: yes" >&5
12111$as_echo "yes" >&6; }
12112
12113cat >>confdefs.h <<\_ACEOF
12114#define WITH_PROFILE 1
12115_ACEOF
12116
12117    samba_cv_WITH_PROFILE=yes
12118    ;;
12119  *)
12120    { $as_echo "$as_me:$LINENO: result: no" >&5
12121$as_echo "no" >&6; }
12122    samba_cv_WITH_PROFILE=no
12123    ;;
12124  esac
12125else
12126  { $as_echo "$as_me:$LINENO: result: no" >&5
12127$as_echo "no" >&6; }
12128
12129fi
12130
12131
12132merged_build_possible=yes
12133
12134# Find a good install program.  We prefer a C program (faster),
12135# so one script is as good as another.  But avoid the broken or
12136# incompatible versions:
12137# SysV /etc/install, /usr/sbin/install
12138# SunOS /usr/etc/install
12139# IRIX /sbin/install
12140# AIX /bin/install
12141# AmigaOS /C/install, which installs bootblocks on floppy discs
12142# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12143# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12144# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12145# OS/2's system install, which has a completely different semantic
12146# ./install, which can be erroneously created by make from ./install.sh.
12147# Reject install programs that cannot install multiple files.
12148{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12149$as_echo_n "checking for a BSD-compatible install... " >&6; }
12150if test -z "$INSTALL"; then
12151if test "${ac_cv_path_install+set}" = set; then
12152  $as_echo_n "(cached) " >&6
12153else
12154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155for as_dir in $PATH
12156do
12157  IFS=$as_save_IFS
12158  test -z "$as_dir" && as_dir=.
12159  # Account for people who put trailing slashes in PATH elements.
12160case $as_dir/ in
12161  ./ | .// | /cC/* | \
12162  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12163  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12164  /usr/ucb/* ) ;;
12165  *)
12166    # OSF1 and SCO ODT 3.0 have their own names for install.
12167    # Don't use installbsd from OSF since it installs stuff as root
12168    # by default.
12169    for ac_prog in ginstall scoinst install; do
12170      for ac_exec_ext in '' $ac_executable_extensions; do
12171	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12172	  if test $ac_prog = install &&
12173	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12174	    # AIX install.  It has an incompatible calling convention.
12175	    :
12176	  elif test $ac_prog = install &&
12177	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12178	    # program-specific install script used by HP pwplus--don't use.
12179	    :
12180	  else
12181	    rm -rf conftest.one conftest.two conftest.dir
12182	    echo one > conftest.one
12183	    echo two > conftest.two
12184	    mkdir conftest.dir
12185	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12186	      test -s conftest.one && test -s conftest.two &&
12187	      test -s conftest.dir/conftest.one &&
12188	      test -s conftest.dir/conftest.two
12189	    then
12190	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12191	      break 3
12192	    fi
12193	  fi
12194	fi
12195      done
12196    done
12197    ;;
12198esac
12199
12200done
12201IFS=$as_save_IFS
12202
12203rm -rf conftest.one conftest.two conftest.dir
12204
12205fi
12206  if test "${ac_cv_path_install+set}" = set; then
12207    INSTALL=$ac_cv_path_install
12208  else
12209    # As a last resort, use the slow shell script.  Don't cache a
12210    # value for INSTALL within a source directory, because that will
12211    # break other packages using the cache if that directory is
12212    # removed, or if the value is a relative name.
12213    INSTALL=$ac_install_sh
12214  fi
12215fi
12216{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12217$as_echo "$INSTALL" >&6; }
12218
12219# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12220# It thinks the first close brace ends the variable substitution.
12221test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12222
12223test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12224
12225test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12226
12227for ac_prog in gawk mawk nawk awk
12228do
12229  # Extract the first word of "$ac_prog", so it can be a program name with args.
12230set dummy $ac_prog; ac_word=$2
12231{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12232$as_echo_n "checking for $ac_word... " >&6; }
12233if test "${ac_cv_prog_AWK+set}" = set; then
12234  $as_echo_n "(cached) " >&6
12235else
12236  if test -n "$AWK"; then
12237  ac_cv_prog_AWK="$AWK" # Let the user override the test.
12238else
12239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240for as_dir in $PATH
12241do
12242  IFS=$as_save_IFS
12243  test -z "$as_dir" && as_dir=.
12244  for ac_exec_ext in '' $ac_executable_extensions; do
12245  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12246    ac_cv_prog_AWK="$ac_prog"
12247    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12248    break 2
12249  fi
12250done
12251done
12252IFS=$as_save_IFS
12253
12254fi
12255fi
12256AWK=$ac_cv_prog_AWK
12257if test -n "$AWK"; then
12258  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
12259$as_echo "$AWK" >&6; }
12260else
12261  { $as_echo "$as_me:$LINENO: result: no" >&5
12262$as_echo "no" >&6; }
12263fi
12264
12265
12266  test -n "$AWK" && break
12267done
12268
12269# Check for GNU make
12270
12271
12272
12273
12274
12275
12276for ac_prog in gmake make
12277do
12278  # Extract the first word of "$ac_prog", so it can be a program name with args.
12279set dummy $ac_prog; ac_word=$2
12280{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12281$as_echo_n "checking for $ac_word... " >&6; }
12282if test "${ac_cv_path_MAKE+set}" = set; then
12283  $as_echo_n "(cached) " >&6
12284else
12285  case $MAKE in
12286  [\\/]* | ?:[\\/]*)
12287  ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
12288  ;;
12289  *)
12290  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291for as_dir in $PATH
12292do
12293  IFS=$as_save_IFS
12294  test -z "$as_dir" && as_dir=.
12295  for ac_exec_ext in '' $ac_executable_extensions; do
12296  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12297    ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
12298    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12299    break 2
12300  fi
12301done
12302done
12303IFS=$as_save_IFS
12304
12305  ;;
12306esac
12307fi
12308MAKE=$ac_cv_path_MAKE
12309if test -n "$MAKE"; then
12310  { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
12311$as_echo "$MAKE" >&6; }
12312else
12313  { $as_echo "$as_me:$LINENO: result: no" >&5
12314$as_echo "no" >&6; }
12315fi
12316
12317
12318  test -n "$MAKE" && break
12319done
12320
12321
12322{ $as_echo "$as_me:$LINENO: checking whether we have GNU make" >&5
12323$as_echo_n "checking whether we have GNU make... " >&6; }
12324if test "${samba_cv_gnu_make+set}" = set; then
12325  $as_echo_n "(cached) " >&6
12326else
12327
12328if ! $ac_cv_path_MAKE --version | head -1 | grep GNU 2>/dev/null >/dev/null
12329then
12330	samba_cv_gnu_make=no
12331else
12332	samba_cv_gnu_make=yes
12333fi
12334
12335fi
12336{ $as_echo "$as_me:$LINENO: result: $samba_cv_gnu_make" >&5
12337$as_echo "$samba_cv_gnu_make" >&6; }
12338if test x$samba_cv_gnu_make = xyes; then
12339	true
12340else
12341	merged_build_possible=no
12342fi
12343
12344
12345# Check for perl
12346
12347
12348
12349
12350
12351case "$host_os" in
12352	*irix*)
12353		# On IRIX, we prefer Freeware or Nekoware Perl, because the
12354		# system perl is so ancient.
12355		# Extract the first word of "perl", so it can be a program name with args.
12356set dummy perl; ac_word=$2
12357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12358$as_echo_n "checking for $ac_word... " >&6; }
12359if test "${ac_cv_path_PERL+set}" = set; then
12360  $as_echo_n "(cached) " >&6
12361else
12362  case $PERL in
12363  [\\/]* | ?:[\\/]*)
12364  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12365  ;;
12366  *)
12367  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368as_dummy=""/usr/freeware/bin:/usr/nekoware/bin:$PATH""
12369for as_dir in $as_dummy
12370do
12371  IFS=$as_save_IFS
12372  test -z "$as_dir" && as_dir=.
12373  for ac_exec_ext in '' $ac_executable_extensions; do
12374  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12375    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12376    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12377    break 2
12378  fi
12379done
12380done
12381IFS=$as_save_IFS
12382
12383  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL=""""
12384  ;;
12385esac
12386fi
12387PERL=$ac_cv_path_PERL
12388if test -n "$PERL"; then
12389  { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12390$as_echo "$PERL" >&6; }
12391else
12392  { $as_echo "$as_me:$LINENO: result: no" >&5
12393$as_echo "no" >&6; }
12394fi
12395
12396
12397		;;
12398	*)
12399		# Extract the first word of "perl", so it can be a program name with args.
12400set dummy perl; ac_word=$2
12401{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12402$as_echo_n "checking for $ac_word... " >&6; }
12403if test "${ac_cv_path_PERL+set}" = set; then
12404  $as_echo_n "(cached) " >&6
12405else
12406  case $PERL in
12407  [\\/]* | ?:[\\/]*)
12408  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12409  ;;
12410  *)
12411  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412for as_dir in $PATH
12413do
12414  IFS=$as_save_IFS
12415  test -z "$as_dir" && as_dir=.
12416  for ac_exec_ext in '' $ac_executable_extensions; do
12417  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12418    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12419    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12420    break 2
12421  fi
12422done
12423done
12424IFS=$as_save_IFS
12425
12426  ;;
12427esac
12428fi
12429PERL=$ac_cv_path_PERL
12430if test -n "$PERL"; then
12431  { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12432$as_echo "$PERL" >&6; }
12433else
12434  { $as_echo "$as_me:$LINENO: result: no" >&5
12435$as_echo "no" >&6; }
12436fi
12437
12438
12439		;;
12440esac
12441
12442if test x"$PERL" = x""; then
12443	{ $as_echo "$as_me:$LINENO: WARNING: No version of perl was found!" >&5
12444$as_echo "$as_me: WARNING: No version of perl was found!" >&2;}
12445	merged_build_possible=no
12446else
12447	if test x"$debug" = x"yes";then
12448		PERL="$PERL -W"
12449	fi
12450	export PERL
12451	true
12452fi
12453
12454
12455if test -n "$ac_tool_prefix"; then
12456  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12457set dummy ${ac_tool_prefix}ar; ac_word=$2
12458{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12459$as_echo_n "checking for $ac_word... " >&6; }
12460if test "${ac_cv_prog_AR+set}" = set; then
12461  $as_echo_n "(cached) " >&6
12462else
12463  if test -n "$AR"; then
12464  ac_cv_prog_AR="$AR" # Let the user override the test.
12465else
12466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467for as_dir in $PATH
12468do
12469  IFS=$as_save_IFS
12470  test -z "$as_dir" && as_dir=.
12471  for ac_exec_ext in '' $ac_executable_extensions; do
12472  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12473    ac_cv_prog_AR="${ac_tool_prefix}ar"
12474    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12475    break 2
12476  fi
12477done
12478done
12479IFS=$as_save_IFS
12480
12481fi
12482fi
12483AR=$ac_cv_prog_AR
12484if test -n "$AR"; then
12485  { $as_echo "$as_me:$LINENO: result: $AR" >&5
12486$as_echo "$AR" >&6; }
12487else
12488  { $as_echo "$as_me:$LINENO: result: no" >&5
12489$as_echo "no" >&6; }
12490fi
12491
12492
12493fi
12494if test -z "$ac_cv_prog_AR"; then
12495  ac_ct_AR=$AR
12496  # Extract the first word of "ar", so it can be a program name with args.
12497set dummy ar; ac_word=$2
12498{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12499$as_echo_n "checking for $ac_word... " >&6; }
12500if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12501  $as_echo_n "(cached) " >&6
12502else
12503  if test -n "$ac_ct_AR"; then
12504  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12505else
12506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507for as_dir in $PATH
12508do
12509  IFS=$as_save_IFS
12510  test -z "$as_dir" && as_dir=.
12511  for ac_exec_ext in '' $ac_executable_extensions; do
12512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12513    ac_cv_prog_ac_ct_AR="ar"
12514    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12515    break 2
12516  fi
12517done
12518done
12519IFS=$as_save_IFS
12520
12521fi
12522fi
12523ac_ct_AR=$ac_cv_prog_ac_ct_AR
12524if test -n "$ac_ct_AR"; then
12525  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12526$as_echo "$ac_ct_AR" >&6; }
12527else
12528  { $as_echo "$as_me:$LINENO: result: no" >&5
12529$as_echo "no" >&6; }
12530fi
12531
12532  if test "x$ac_ct_AR" = x; then
12533    AR=""
12534  else
12535    case $cross_compiling:$ac_tool_warned in
12536yes:)
12537{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12539ac_tool_warned=yes ;;
12540esac
12541    AR=$ac_ct_AR
12542  fi
12543else
12544  AR="$ac_cv_prog_AR"
12545fi
12546
12547
12548{ $as_echo "$as_me:$LINENO: checking if the linker used by compiler is GNU ld" >&5
12549$as_echo_n "checking if the linker used by compiler is GNU ld... " >&6; }
12550if test "${ac_cv_prog_gnu_ld+set}" = set; then
12551  $as_echo_n "(cached) " >&6
12552else
12553  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12554if $CC -Wl,-v /dev/null 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12555  ac_cv_prog_gnu_ld=yes
12556else
12557  ac_cv_prog_gnu_ld=no
12558fi
12559fi
12560{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
12561$as_echo "$ac_cv_prog_gnu_ld" >&6; }
12562
12563
12564if test "$ac_cv_prog_gnu_ld" = "yes"; then
12565	ac_cv_gnu_ld_version=`$CC -Wl,-v /dev/null 2>/dev/null | head -1`
12566	{ $as_echo "$as_me:$LINENO: checking GNU ld release date" >&5
12567$as_echo_n "checking GNU ld release date... " >&6; }
12568		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'`
12569		{ $as_echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_date}" >&5
12570$as_echo "${ac_cv_gnu_ld_date}" >&6; }
12571        if test -n "$ac_cv_gnu_ld_date"; then
12572 	if test "$ac_cv_gnu_ld_date" -lt 20030217; then
12573 		ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes
12574 	fi
12575	if test "$ac_cv_gnu_ld_date" -gt 20030101; then
12576		ac_cv_gnu_ld_version_script=yes
12577	fi
12578        else
12579           { $as_echo "$as_me:$LINENO: checking GNU ld release version" >&5
12580$as_echo_n "checking GNU ld release version... " >&6; }
12581                      ac_cv_gnu_ld_vernr=`echo $ac_cv_gnu_ld_version | sed -n 's,^[^0-9]*\([1-9][0-9]*\.[0-9][0-9]*\).*$,\1,p'`
12582           ac_cv_gnu_ld_vernr_major=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 1`
12583           ac_cv_gnu_ld_vernr_minor=`echo $ac_cv_gnu_ld_vernr | cut -d '.' -f 2`
12584                      { $as_echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_vernr}" >&5
12585$as_echo "${ac_cv_gnu_ld_vernr}" >&6; }
12586           { $as_echo "$as_me:$LINENO: checking GNU ld release version major" >&5
12587$as_echo_n "checking GNU ld release version major... " >&6; }
12588           { $as_echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_vernr_major}" >&5
12589$as_echo "${ac_cv_gnu_ld_vernr_major}" >&6; }
12590           { $as_echo "$as_me:$LINENO: checking GNU ld release version minor" >&5
12591$as_echo_n "checking GNU ld release version minor... " >&6; }
12592           { $as_echo "$as_me:$LINENO: result: ${ac_cv_gnu_ld_vernr_minor}" >&5
12593$as_echo "${ac_cv_gnu_ld_vernr_minor}" >&6; }
12594           if test "$ac_cv_gnu_ld_vernr_major" -lt 2 || test "$ac_cv_gnu_ld_vernr_minor" -lt 14; then
12595             ac_cv_gnu_ld_no_default_allow_shlib_undefined=yes
12596           fi
12597           if test "$ac_cv_gnu_ld_vernr_major" -gt 2 || test "$ac_cv_gnu_ld_vernr_major" = 2 && test "$ac_cv_gnu_ld_vernr_minor" -ge 12; then
12598             ac_cv_gnu_ld_version_script=yes
12599           fi
12600        fi
12601fi
12602
12603
12604
12605if test "x$CC" != xcc; then
12606  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
12607$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12608else
12609  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
12610$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12611fi
12612set dummy $CC; ac_cc=`$as_echo "$2" |
12613		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12614if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
12615  $as_echo_n "(cached) " >&6
12616else
12617  cat >conftest.$ac_ext <<_ACEOF
12618/* confdefs.h.  */
12619_ACEOF
12620cat confdefs.h >>conftest.$ac_ext
12621cat >>conftest.$ac_ext <<_ACEOF
12622/* end confdefs.h.  */
12623
12624int
12625main ()
12626{
12627
12628  ;
12629  return 0;
12630}
12631_ACEOF
12632# Make sure it works both with $CC and with simple cc.
12633# We do the test twice because some compilers refuse to overwrite an
12634# existing .o file with -o, though they will create one.
12635ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12636rm -f conftest2.*
12637if { (case "(($ac_try" in
12638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639  *) ac_try_echo=$ac_try;;
12640esac
12641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12642$as_echo "$ac_try_echo") >&5
12643  (eval "$ac_try") 2>&5
12644  ac_status=$?
12645  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646  (exit $ac_status); } &&
12647   test -f conftest2.$ac_objext && { (case "(($ac_try" in
12648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649  *) ac_try_echo=$ac_try;;
12650esac
12651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12652$as_echo "$ac_try_echo") >&5
12653  (eval "$ac_try") 2>&5
12654  ac_status=$?
12655  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656  (exit $ac_status); };
12657then
12658  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12659  if test "x$CC" != xcc; then
12660    # Test first that cc exists at all.
12661    if { ac_try='cc -c conftest.$ac_ext >&5'
12662  { (case "(($ac_try" in
12663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664  *) ac_try_echo=$ac_try;;
12665esac
12666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12667$as_echo "$ac_try_echo") >&5
12668  (eval "$ac_try") 2>&5
12669  ac_status=$?
12670  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671  (exit $ac_status); }; }; then
12672      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12673      rm -f conftest2.*
12674      if { (case "(($ac_try" in
12675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676  *) ac_try_echo=$ac_try;;
12677esac
12678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12679$as_echo "$ac_try_echo") >&5
12680  (eval "$ac_try") 2>&5
12681  ac_status=$?
12682  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683  (exit $ac_status); } &&
12684	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
12685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686  *) ac_try_echo=$ac_try;;
12687esac
12688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12689$as_echo "$ac_try_echo") >&5
12690  (eval "$ac_try") 2>&5
12691  ac_status=$?
12692  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693  (exit $ac_status); };
12694      then
12695	# cc works too.
12696	:
12697      else
12698	# cc exists but doesn't like -o.
12699	eval ac_cv_prog_cc_${ac_cc}_c_o=no
12700      fi
12701    fi
12702  fi
12703else
12704  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12705fi
12706rm -f core conftest*
12707
12708fi
12709if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12710  { $as_echo "$as_me:$LINENO: result: yes" >&5
12711$as_echo "yes" >&6; }
12712else
12713  { $as_echo "$as_me:$LINENO: result: no" >&5
12714$as_echo "no" >&6; }
12715
12716cat >>confdefs.h <<\_ACEOF
12717#define NO_MINUS_C_MINUS_O 1
12718_ACEOF
12719
12720fi
12721
12722if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
12723      BROKEN_CC=
12724else
12725      BROKEN_CC=#
12726fi
12727
12728
12729{ $as_echo "$as_me:$LINENO: checking that the C compiler understands -Werror" >&5
12730$as_echo_n "checking that the C compiler understands -Werror... " >&6; }
12731if test "${samba_cv_HAVE_Werror+set}" = set; then
12732  $as_echo_n "(cached) " >&6
12733else
12734
12735
12736	old_CFLAGS="$CFLAGS";
12737	CFLAGS="$CFLAGS -Werror";
12738	export CFLAGS;
12739	old_CPPFLAGS="$CPPFLAGS";
12740	CPPFLAGS="$CPPFLAGS";
12741	export CPPFLAGS;
12742	old_LDFLAGS="$LDFLAGS";
12743	LDFLAGS="$LDFLAGS";
12744	export LDFLAGS;
12745	if test "$cross_compiling" = yes; then
12746  samba_cv_HAVE_Werror=cross
12747else
12748  cat >conftest.$ac_ext <<_ACEOF
12749/* confdefs.h.  */
12750_ACEOF
12751cat confdefs.h >>conftest.$ac_ext
12752cat >>conftest.$ac_ext <<_ACEOF
12753/* end confdefs.h.  */
12754
12755  int main(void)
12756  {
12757  	return 0;
12758  }
12759_ACEOF
12760rm -f conftest$ac_exeext
12761if { (ac_try="$ac_link"
12762case "(($ac_try" in
12763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764  *) ac_try_echo=$ac_try;;
12765esac
12766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12767$as_echo "$ac_try_echo") >&5
12768  (eval "$ac_link") 2>&5
12769  ac_status=$?
12770  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12772  { (case "(($ac_try" in
12773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774  *) ac_try_echo=$ac_try;;
12775esac
12776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12777$as_echo "$ac_try_echo") >&5
12778  (eval "$ac_try") 2>&5
12779  ac_status=$?
12780  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781  (exit $ac_status); }; }; then
12782  samba_cv_HAVE_Werror=yes
12783else
12784  $as_echo "$as_me: program exited with status $ac_status" >&5
12785$as_echo "$as_me: failed program was:" >&5
12786sed 's/^/| /' conftest.$ac_ext >&5
12787
12788( exit $ac_status )
12789samba_cv_HAVE_Werror=no
12790fi
12791rm -rf conftest.dSYM
12792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12793fi
12794
12795
12796	CFLAGS="$old_CFLAGS";
12797	old_CFLAGS="";
12798	export CFLAGS;
12799	CPPFLAGS="$old_CPPFLAGS";
12800	old_CPPFLAGS="";
12801	export CPPFLAGS;
12802	LDFLAGS="$old_LDFLAGS";
12803	old_LDFLAGS="";
12804	export LDFLAGS;
12805
12806fi
12807{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_Werror" >&5
12808$as_echo "$samba_cv_HAVE_Werror" >&6; }
12809if test x"$samba_cv_HAVE_Werror" = x"yes"; then
12810   Werror_FLAGS="-Werror"
12811else
12812{ $as_echo "$as_me:$LINENO: checking that the C compiler understands -w2" >&5
12813$as_echo_n "checking that the C compiler understands -w2... " >&6; }
12814if test "${samba_cv_HAVE_w2+set}" = set; then
12815  $as_echo_n "(cached) " >&6
12816else
12817
12818
12819	old_CFLAGS="$CFLAGS";
12820	CFLAGS="$CFLAGS -w2";
12821	export CFLAGS;
12822	old_CPPFLAGS="$CPPFLAGS";
12823	CPPFLAGS="$CPPFLAGS";
12824	export CPPFLAGS;
12825	old_LDFLAGS="$LDFLAGS";
12826	LDFLAGS="$LDFLAGS";
12827	export LDFLAGS;
12828	if test "$cross_compiling" = yes; then
12829  samba_cv_HAVE_w2=cross
12830else
12831  cat >conftest.$ac_ext <<_ACEOF
12832/* confdefs.h.  */
12833_ACEOF
12834cat confdefs.h >>conftest.$ac_ext
12835cat >>conftest.$ac_ext <<_ACEOF
12836/* end confdefs.h.  */
12837
12838  int main(void)
12839  {
12840  	return 0;
12841  }
12842_ACEOF
12843rm -f conftest$ac_exeext
12844if { (ac_try="$ac_link"
12845case "(($ac_try" in
12846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847  *) ac_try_echo=$ac_try;;
12848esac
12849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12850$as_echo "$ac_try_echo") >&5
12851  (eval "$ac_link") 2>&5
12852  ac_status=$?
12853  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12855  { (case "(($ac_try" in
12856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857  *) ac_try_echo=$ac_try;;
12858esac
12859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12860$as_echo "$ac_try_echo") >&5
12861  (eval "$ac_try") 2>&5
12862  ac_status=$?
12863  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864  (exit $ac_status); }; }; then
12865  samba_cv_HAVE_w2=yes
12866else
12867  $as_echo "$as_me: program exited with status $ac_status" >&5
12868$as_echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
12871( exit $ac_status )
12872samba_cv_HAVE_w2=no
12873fi
12874rm -rf conftest.dSYM
12875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12876fi
12877
12878
12879	CFLAGS="$old_CFLAGS";
12880	old_CFLAGS="";
12881	export CFLAGS;
12882	CPPFLAGS="$old_CPPFLAGS";
12883	old_CPPFLAGS="";
12884	export CPPFLAGS;
12885	LDFLAGS="$old_LDFLAGS";
12886	old_LDFLAGS="";
12887	export LDFLAGS;
12888
12889fi
12890{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_w2" >&5
12891$as_echo "$samba_cv_HAVE_w2" >&6; }
12892if test x"$samba_cv_HAVE_w2" = x"yes"; then
12893   Werror_FLAGS="-w2"
12894else
12895{ $as_echo "$as_me:$LINENO: checking that the C compiler understands -errwarn" >&5
12896$as_echo_n "checking that the C compiler understands -errwarn... " >&6; }
12897if test "${samba_cv_HAVE_errwarn+set}" = set; then
12898  $as_echo_n "(cached) " >&6
12899else
12900
12901
12902	old_CFLAGS="$CFLAGS";
12903	CFLAGS="$CFLAGS -errwarn=%all";
12904	export CFLAGS;
12905	old_CPPFLAGS="$CPPFLAGS";
12906	CPPFLAGS="$CPPFLAGS";
12907	export CPPFLAGS;
12908	old_LDFLAGS="$LDFLAGS";
12909	LDFLAGS="$LDFLAGS";
12910	export LDFLAGS;
12911	if test "$cross_compiling" = yes; then
12912  samba_cv_HAVE_errwarn=cross
12913else
12914  cat >conftest.$ac_ext <<_ACEOF
12915/* confdefs.h.  */
12916_ACEOF
12917cat confdefs.h >>conftest.$ac_ext
12918cat >>conftest.$ac_ext <<_ACEOF
12919/* end confdefs.h.  */
12920
12921   int main(void)
12922   {
12923	return 0;
12924   }
12925_ACEOF
12926rm -f conftest$ac_exeext
12927if { (ac_try="$ac_link"
12928case "(($ac_try" in
12929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930  *) ac_try_echo=$ac_try;;
12931esac
12932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12933$as_echo "$ac_try_echo") >&5
12934  (eval "$ac_link") 2>&5
12935  ac_status=$?
12936  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12938  { (case "(($ac_try" in
12939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940  *) ac_try_echo=$ac_try;;
12941esac
12942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12943$as_echo "$ac_try_echo") >&5
12944  (eval "$ac_try") 2>&5
12945  ac_status=$?
12946  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947  (exit $ac_status); }; }; then
12948  samba_cv_HAVE_errwarn=yes
12949else
12950  $as_echo "$as_me: program exited with status $ac_status" >&5
12951$as_echo "$as_me: failed program was:" >&5
12952sed 's/^/| /' conftest.$ac_ext >&5
12953
12954( exit $ac_status )
12955samba_cv_HAVE_errwarn=no
12956fi
12957rm -rf conftest.dSYM
12958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12959fi
12960
12961
12962	CFLAGS="$old_CFLAGS";
12963	old_CFLAGS="";
12964	export CFLAGS;
12965	CPPFLAGS="$old_CPPFLAGS";
12966	old_CPPFLAGS="";
12967	export CPPFLAGS;
12968	LDFLAGS="$old_LDFLAGS";
12969	old_LDFLAGS="";
12970	export LDFLAGS;
12971
12972fi
12973{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_errwarn" >&5
12974$as_echo "$samba_cv_HAVE_errwarn" >&6; }
12975if test x"$samba_cv_HAVE_errwarn" = x"yes"; then
12976   Werror_FLAGS="-errwarn=%all"
12977else
12978{ $as_echo "$as_me:$LINENO: checking that the C compiler understands -qhalt" >&5
12979$as_echo_n "checking that the C compiler understands -qhalt... " >&6; }
12980if test "${samba_cv_HAVE_qhalt+set}" = set; then
12981  $as_echo_n "(cached) " >&6
12982else
12983
12984
12985	old_CFLAGS="$CFLAGS";
12986	CFLAGS="$CFLAGS -qhalt=w";
12987	export CFLAGS;
12988	old_CPPFLAGS="$CPPFLAGS";
12989	CPPFLAGS="$CPPFLAGS";
12990	export CPPFLAGS;
12991	old_LDFLAGS="$LDFLAGS";
12992	LDFLAGS="$LDFLAGS";
12993	export LDFLAGS;
12994	if test "$cross_compiling" = yes; then
12995  samba_cv_HAVE_qhalt=cross
12996else
12997  cat >conftest.$ac_ext <<_ACEOF
12998/* confdefs.h.  */
12999_ACEOF
13000cat confdefs.h >>conftest.$ac_ext
13001cat >>conftest.$ac_ext <<_ACEOF
13002/* end confdefs.h.  */
13003
13004   int main(void)
13005   {
13006	return 0;
13007   }
13008_ACEOF
13009rm -f conftest$ac_exeext
13010if { (ac_try="$ac_link"
13011case "(($ac_try" in
13012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013  *) ac_try_echo=$ac_try;;
13014esac
13015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13016$as_echo "$ac_try_echo") >&5
13017  (eval "$ac_link") 2>&5
13018  ac_status=$?
13019  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13021  { (case "(($ac_try" in
13022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023  *) ac_try_echo=$ac_try;;
13024esac
13025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13026$as_echo "$ac_try_echo") >&5
13027  (eval "$ac_try") 2>&5
13028  ac_status=$?
13029  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030  (exit $ac_status); }; }; then
13031  samba_cv_HAVE_qhalt=yes
13032else
13033  $as_echo "$as_me: program exited with status $ac_status" >&5
13034$as_echo "$as_me: failed program was:" >&5
13035sed 's/^/| /' conftest.$ac_ext >&5
13036
13037( exit $ac_status )
13038samba_cv_HAVE_qhalt=no
13039fi
13040rm -rf conftest.dSYM
13041rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13042fi
13043
13044
13045	CFLAGS="$old_CFLAGS";
13046	old_CFLAGS="";
13047	export CFLAGS;
13048	CPPFLAGS="$old_CPPFLAGS";
13049	old_CPPFLAGS="";
13050	export CPPFLAGS;
13051	LDFLAGS="$old_LDFLAGS";
13052	old_LDFLAGS="";
13053	export LDFLAGS;
13054
13055fi
13056{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_qhalt" >&5
13057$as_echo "$samba_cv_HAVE_qhalt" >&6; }
13058if test x"$samba_cv_HAVE_qhalt" = x"yes"; then
13059   Werror_FLAGS="-qhalt=w"
13060fi
13061fi
13062fi
13063fi
13064
13065############################################
13066# check if the compiler can handle negative enum values
13067# and don't truncate the values to INT_MAX
13068# a runtime test is needed here
13069
13070{ $as_echo "$as_me:$LINENO: checking that the C compiler understands negative enum values" >&5
13071$as_echo_n "checking that the C compiler understands negative enum values... " >&6; }
13072if test "${samba_cv_CC_NEGATIVE_ENUM_VALUES+set}" = set; then
13073  $as_echo_n "(cached) " >&6
13074else
13075
13076    if test "$cross_compiling" = yes; then
13077  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13079{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13080See \`config.log' for more details." >&5
13081$as_echo "$as_me: error: cannot run test program while cross compiling
13082See \`config.log' for more details." >&2;}
13083   { (exit 1); exit 1; }; }; }
13084else
13085  cat >conftest.$ac_ext <<_ACEOF
13086/* confdefs.h.  */
13087_ACEOF
13088cat confdefs.h >>conftest.$ac_ext
13089cat >>conftest.$ac_ext <<_ACEOF
13090/* end confdefs.h.  */
13091
13092	#include <stdio.h>
13093	enum negative_values { NEGATIVE_VALUE = 0xFFFFFFFF };
13094	int main(void) {
13095		enum negative_values v1 = NEGATIVE_VALUE;
13096		unsigned v2 = NEGATIVE_VALUE;
13097
13098		if (v1 != 0xFFFFFFFF) {
13099			printf("%u != 0xFFFFFFFF\n", v1);
13100			return 1;
13101		}
13102		if (v2 != 0xFFFFFFFF) {
13103			printf("%u != 0xFFFFFFFF\n", v2);
13104			return 1;
13105		}
13106
13107		return 0;
13108	}
13109
13110_ACEOF
13111rm -f conftest$ac_exeext
13112if { (ac_try="$ac_link"
13113case "(($ac_try" in
13114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115  *) ac_try_echo=$ac_try;;
13116esac
13117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13118$as_echo "$ac_try_echo") >&5
13119  (eval "$ac_link") 2>&5
13120  ac_status=$?
13121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13123  { (case "(($ac_try" in
13124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125  *) ac_try_echo=$ac_try;;
13126esac
13127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13128$as_echo "$ac_try_echo") >&5
13129  (eval "$ac_try") 2>&5
13130  ac_status=$?
13131  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132  (exit $ac_status); }; }; then
13133  samba_cv_CC_NEGATIVE_ENUM_VALUES=yes
13134else
13135  $as_echo "$as_me: program exited with status $ac_status" >&5
13136$as_echo "$as_me: failed program was:" >&5
13137sed 's/^/| /' conftest.$ac_ext >&5
13138
13139( exit $ac_status )
13140samba_cv__CC_NEGATIVE_ENUM_VALUES=no
13141fi
13142rm -rf conftest.dSYM
13143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13144fi
13145
13146
13147fi
13148{ $as_echo "$as_me:$LINENO: result: $samba_cv_CC_NEGATIVE_ENUM_VALUES" >&5
13149$as_echo "$samba_cv_CC_NEGATIVE_ENUM_VALUES" >&6; }
13150if test x"$samba_cv_CC_NEGATIVE_ENUM_VALUES" != x"yes"; then
13151	{ $as_echo "$as_me:$LINENO: WARNING: using --uint-enums for pidl" >&5
13152$as_echo "$as_me: WARNING: using --uint-enums for pidl" >&2;}
13153	PIDL_ARGS="$PIDL_ARGS --uint-enums"
13154fi
13155
13156
13157
13158saved_CFLAGS="$CFLAGS";
13159c99_init=no
13160if test x"$c99_init" = x"no"; then
13161    { $as_echo "$as_me:$LINENO: checking for C99 designated initializers" >&5
13162$as_echo_n "checking for C99 designated initializers... " >&6; }
13163    CFLAGS="$saved_CFLAGS";
13164    cat >conftest.$ac_ext <<_ACEOF
13165/* confdefs.h.  */
13166_ACEOF
13167cat confdefs.h >>conftest.$ac_ext
13168cat >>conftest.$ac_ext <<_ACEOF
13169/* end confdefs.h.  */
13170#include <stdio.h>
13171int
13172main ()
13173{
13174 struct foo {int x;char y;};
13175       struct foo bar = { .y = 'X', .x = 1 };
13176
13177  ;
13178  return 0;
13179}
13180_ACEOF
13181rm -f conftest.$ac_objext
13182if { (ac_try="$ac_compile"
13183case "(($ac_try" in
13184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185  *) ac_try_echo=$ac_try;;
13186esac
13187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13188$as_echo "$ac_try_echo") >&5
13189  (eval "$ac_compile") 2>conftest.er1
13190  ac_status=$?
13191  grep -v '^ *+' conftest.er1 >conftest.err
13192  rm -f conftest.er1
13193  cat conftest.err >&5
13194  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195  (exit $ac_status); } && {
13196	 test -z "$ac_c_werror_flag" ||
13197	 test ! -s conftest.err
13198       } && test -s conftest.$ac_objext; then
13199  { $as_echo "$as_me:$LINENO: result: yes" >&5
13200$as_echo "yes" >&6; }; c99_init=yes
13201else
13202  $as_echo "$as_me: failed program was:" >&5
13203sed 's/^/| /' conftest.$ac_ext >&5
13204
13205	{ $as_echo "$as_me:$LINENO: result: no" >&5
13206$as_echo "no" >&6; }
13207fi
13208
13209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210fi
13211if test x"$c99_init" = x"no"; then
13212    { $as_echo "$as_me:$LINENO: checking for C99 designated initializers with -AC99" >&5
13213$as_echo_n "checking for C99 designated initializers with -AC99... " >&6; }
13214    CFLAGS="$saved_CFLAGS -AC99";
13215    cat >conftest.$ac_ext <<_ACEOF
13216/* confdefs.h.  */
13217_ACEOF
13218cat confdefs.h >>conftest.$ac_ext
13219cat >>conftest.$ac_ext <<_ACEOF
13220/* end confdefs.h.  */
13221#include <stdio.h>
13222int
13223main ()
13224{
13225 struct foo {int x;char y;};
13226       struct foo bar = { .y = 'X', .x = 1 };
13227
13228  ;
13229  return 0;
13230}
13231_ACEOF
13232rm -f conftest.$ac_objext
13233if { (ac_try="$ac_compile"
13234case "(($ac_try" in
13235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236  *) ac_try_echo=$ac_try;;
13237esac
13238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13239$as_echo "$ac_try_echo") >&5
13240  (eval "$ac_compile") 2>conftest.er1
13241  ac_status=$?
13242  grep -v '^ *+' conftest.er1 >conftest.err
13243  rm -f conftest.er1
13244  cat conftest.err >&5
13245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246  (exit $ac_status); } && {
13247	 test -z "$ac_c_werror_flag" ||
13248	 test ! -s conftest.err
13249       } && test -s conftest.$ac_objext; then
13250  { $as_echo "$as_me:$LINENO: result: yes" >&5
13251$as_echo "yes" >&6; }; c99_init=yes
13252else
13253  $as_echo "$as_me: failed program was:" >&5
13254sed 's/^/| /' conftest.$ac_ext >&5
13255
13256	{ $as_echo "$as_me:$LINENO: result: no" >&5
13257$as_echo "no" >&6; }
13258fi
13259
13260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13261fi
13262if test x"$c99_init" = x"no"; then
13263    { $as_echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=extc99" >&5
13264$as_echo_n "checking for C99 designated initializers with -qlanglvl=extc99... " >&6; }
13265    CFLAGS="$saved_CFLAGS -qlanglvl=extc99";
13266    cat >conftest.$ac_ext <<_ACEOF
13267/* confdefs.h.  */
13268_ACEOF
13269cat confdefs.h >>conftest.$ac_ext
13270cat >>conftest.$ac_ext <<_ACEOF
13271/* end confdefs.h.  */
13272#include <stdio.h>
13273int
13274main ()
13275{
13276 struct foo {int x;char y;};
13277       struct foo bar = { .y = 'X', .x = 1 };
13278
13279  ;
13280  return 0;
13281}
13282_ACEOF
13283rm -f conftest.$ac_objext
13284if { (ac_try="$ac_compile"
13285case "(($ac_try" in
13286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287  *) ac_try_echo=$ac_try;;
13288esac
13289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13290$as_echo "$ac_try_echo") >&5
13291  (eval "$ac_compile") 2>conftest.er1
13292  ac_status=$?
13293  grep -v '^ *+' conftest.er1 >conftest.err
13294  rm -f conftest.er1
13295  cat conftest.err >&5
13296  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297  (exit $ac_status); } && {
13298	 test -z "$ac_c_werror_flag" ||
13299	 test ! -s conftest.err
13300       } && test -s conftest.$ac_objext; then
13301  { $as_echo "$as_me:$LINENO: result: yes" >&5
13302$as_echo "yes" >&6; }; c99_init=yes
13303else
13304  $as_echo "$as_me: failed program was:" >&5
13305sed 's/^/| /' conftest.$ac_ext >&5
13306
13307	{ $as_echo "$as_me:$LINENO: result: no" >&5
13308$as_echo "no" >&6; }
13309fi
13310
13311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13312fi
13313if test x"$c99_init" = x"no"; then
13314    { $as_echo "$as_me:$LINENO: checking for C99 designated initializers with -qlanglvl=stdc99" >&5
13315$as_echo_n "checking for C99 designated initializers with -qlanglvl=stdc99... " >&6; }
13316    CFLAGS="$saved_CFLAGS -qlanglvl=stdc99";
13317    cat >conftest.$ac_ext <<_ACEOF
13318/* confdefs.h.  */
13319_ACEOF
13320cat confdefs.h >>conftest.$ac_ext
13321cat >>conftest.$ac_ext <<_ACEOF
13322/* end confdefs.h.  */
13323#include <stdio.h>
13324int
13325main ()
13326{
13327 struct foo {int x;char y;};
13328       struct foo bar = { .y = 'X', .x = 1 };
13329
13330  ;
13331  return 0;
13332}
13333_ACEOF
13334rm -f conftest.$ac_objext
13335if { (ac_try="$ac_compile"
13336case "(($ac_try" in
13337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338  *) ac_try_echo=$ac_try;;
13339esac
13340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13341$as_echo "$ac_try_echo") >&5
13342  (eval "$ac_compile") 2>conftest.er1
13343  ac_status=$?
13344  grep -v '^ *+' conftest.er1 >conftest.err
13345  rm -f conftest.er1
13346  cat conftest.err >&5
13347  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348  (exit $ac_status); } && {
13349	 test -z "$ac_c_werror_flag" ||
13350	 test ! -s conftest.err
13351       } && test -s conftest.$ac_objext; then
13352  { $as_echo "$as_me:$LINENO: result: yes" >&5
13353$as_echo "yes" >&6; }; c99_init=yes
13354else
13355  $as_echo "$as_me: failed program was:" >&5
13356sed 's/^/| /' conftest.$ac_ext >&5
13357
13358	{ $as_echo "$as_me:$LINENO: result: no" >&5
13359$as_echo "no" >&6; }
13360fi
13361
13362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13363fi
13364if test x"$c99_init" = x"no"; then
13365    { $as_echo "$as_me:$LINENO: checking for C99 designated initializers with -c99" >&5
13366$as_echo_n "checking for C99 designated initializers with -c99... " >&6; }
13367    CFLAGS="$saved_CFLAGS -c99"
13368    cat >conftest.$ac_ext <<_ACEOF
13369/* confdefs.h.  */
13370_ACEOF
13371cat confdefs.h >>conftest.$ac_ext
13372cat >>conftest.$ac_ext <<_ACEOF
13373/* end confdefs.h.  */
13374#include <stdio.h>
13375int
13376main ()
13377{
13378 struct foo {int x;char y;};
13379       struct foo bar = { .y = 'X', .x = 1 };
13380
13381  ;
13382  return 0;
13383}
13384_ACEOF
13385rm -f conftest.$ac_objext
13386if { (ac_try="$ac_compile"
13387case "(($ac_try" in
13388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389  *) ac_try_echo=$ac_try;;
13390esac
13391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13392$as_echo "$ac_try_echo") >&5
13393  (eval "$ac_compile") 2>conftest.er1
13394  ac_status=$?
13395  grep -v '^ *+' conftest.er1 >conftest.err
13396  rm -f conftest.er1
13397  cat conftest.err >&5
13398  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399  (exit $ac_status); } && {
13400	 test -z "$ac_c_werror_flag" ||
13401	 test ! -s conftest.err
13402       } && test -s conftest.$ac_objext; then
13403  { $as_echo "$as_me:$LINENO: result: yes" >&5
13404$as_echo "yes" >&6; }; c99_init=yes
13405else
13406  $as_echo "$as_me: failed program was:" >&5
13407sed 's/^/| /' conftest.$ac_ext >&5
13408
13409	{ $as_echo "$as_me:$LINENO: result: no" >&5
13410$as_echo "no" >&6; }
13411fi
13412
13413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13414fi
13415
13416if test "`uname`" = "HP-UX"; then
13417  if test "$ac_cv_c_compiler_gnu" = no; then
13418	# special override for broken HP-UX compiler - I can't find a way to test
13419	# this properly (its a compiler bug)
13420	CFLAGS="$CFLAGS -AC99";
13421	c99_init=yes;
13422  fi
13423fi
13424
13425if test x"$c99_init" = x"yes"; then
13426    saved_CFLAGS=""
13427
13428else
13429    CFLAGS="$saved_CFLAGS"
13430    saved_CFLAGS=""
13431    { { $as_echo "$as_me:$LINENO: error: c99 structure initializer are not supported" >&5
13432$as_echo "$as_me: error: c99 structure initializer are not supported" >&2;}
13433   { (exit 1); exit 1; }; }
13434fi
13435
13436
13437UNAME_S=`(uname -s) 2>/dev/null` || UNAME_S="unknown"
13438{ $as_echo "$as_me:$LINENO: checking uname -s" >&5
13439$as_echo_n "checking uname -s... " >&6; }
13440{ $as_echo "$as_me:$LINENO: result: ${UNAME_S}" >&5
13441$as_echo "${UNAME_S}" >&6; }
13442
13443UNAME_R=`(uname -r) 2>/dev/null` || UNAME_R="unknown"
13444{ $as_echo "$as_me:$LINENO: checking uname -r" >&5
13445$as_echo_n "checking uname -r... " >&6; }
13446{ $as_echo "$as_me:$LINENO: result: ${UNAME_R}" >&5
13447$as_echo "${UNAME_R}" >&6; }
13448
13449UNAME_M=`(uname -m) 2>/dev/null` || UNAME_M="unknown"
13450{ $as_echo "$as_me:$LINENO: checking uname -m" >&5
13451$as_echo_n "checking uname -m... " >&6; }
13452{ $as_echo "$as_me:$LINENO: result: ${UNAME_M}" >&5
13453$as_echo "${UNAME_M}" >&6; }
13454
13455UNAME_P=`(uname -p) 2>/dev/null` || UNAME_P="unknown"
13456{ $as_echo "$as_me:$LINENO: checking uname -p" >&5
13457$as_echo_n "checking uname -p... " >&6; }
13458{ $as_echo "$as_me:$LINENO: result: ${UNAME_P}" >&5
13459$as_echo "${UNAME_P}" >&6; }
13460
13461UNAME_I=`(uname -i) 2>/dev/null` || UNAME_I="unknown"
13462{ $as_echo "$as_me:$LINENO: checking uname -i" >&5
13463$as_echo_n "checking uname -i... " >&6; }
13464{ $as_echo "$as_me:$LINENO: result: ${UNAME_I}" >&5
13465$as_echo "${UNAME_I}" >&6; }
13466
13467  case "$host_os" in
13468	*irix6*)
13469		#TODO add to libreplace
13470		if test x"$ac_cv_c_compiler_gnu" != x"yes" ; then
13471																								CFLAGS="$CFLAGS -diag_error 1035"
13472												CFLAGS="$CFLAGS -woff 1209,1174,3201"
13473		fi
13474	;;
13475esac
13476
13477DYNEXP=
13478
13479LDSHFLAGS_Z_DEFS=
13480
13481LDSHFLAGS_Z_NODEFS=
13482
13483
13484default_static_modules="pdb_smbpasswd pdb_tdbsam pdb_wbc_sam rpc_lsarpc rpc_samr rpc_winreg rpc_initshutdown rpc_dssetup rpc_wkssvc rpc_svcctl rpc_ntsvcs rpc_netlogon rpc_netdfs rpc_srvsvc rpc_spoolss rpc_eventlog auth_sam auth_unix auth_winbind auth_wbc auth_server auth_domain auth_builtin auth_netlogond vfs_default nss_info_template"
13485
13486default_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 vfs_shadow_copy2 charset_CP850 charset_CP437 auth_script vfs_readahead vfs_xattr_tdb vfs_streams_xattr vfs_streams_depot vfs_acl_xattr vfs_acl_tdb vfs_smb_traffic_analyzer vfs_preopen vfs_catia vfs_scannedonly"
13487
13488if test "x$developer" = xyes; then
13489   default_static_modules="$default_static_modules rpc_rpcecho pdb_ads"
13490   default_shared_modules="$default_shared_modules charset_weird perfcount_test"
13491fi
13492
13493#
13494# Config CPPFLAG settings for strange OS's that must be set
13495# before other tests. Do NOT invoke AC_CHECK_HEADERS within this
13496# case statement; its first reference must be unconditional.
13497#
13498case "$host_os" in
13499    *hpux*)
13500#
13501# Defines needed for HPUX support.
13502# HPUX has bigcrypt but (sometimes?) doesn't use it for
13503# password hashing - hence the USE_BOTH_CRYPT_CALLS define.
13504#
13505      case `uname -r` in
13506		*9*|*10*|*11)
13507
13508cat >>confdefs.h <<\_ACEOF
13509#define USE_BOTH_CRYPT_CALLS 1
13510_ACEOF
13511
13512		;;
13513      esac
13514      ;;
13515
13516#
13517# CRAY Unicos has broken const handling
13518       *unicos*)
13519	  { $as_echo "$as_me:$LINENO: result: disabling const" >&5
13520$as_echo "disabling const" >&6; }
13521	  CPPFLAGS="$CPPFLAGS -Dconst="
13522	  ;;
13523
13524#
13525# AIX4.x doesn't even admit to having large
13526# files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
13527#
13528    *aix4*)
13529	  { $as_echo "$as_me:$LINENO: result: enabling large file support" >&5
13530$as_echo "enabling large file support" >&6; }
13531      CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
13532
13533cat >>confdefs.h <<\_ACEOF
13534#define _LARGE_FILES 1
13535_ACEOF
13536
13537      ;;
13538#
13539# Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
13540# to the existance of large files..
13541# Note that -D_LARGEFILE64_SOURCE is different from the Sun
13542# recommendations on large file support, however it makes the
13543# compile work using gcc 2.7 and 2.8, whereas using the Sun
13544# recommendation makes the compile fail on gcc2.7. JRA.
13545#
13546# Solaris uses SYSV printing.  Make sure to set that here.  --jerry
13547#
13548	*solaris*)
13549
13550cat >>confdefs.h <<\_ACEOF
13551#define SYSV 1
13552_ACEOF
13553
13554		case `uname -r` in
13555			5.0|5.0.*|5.1|5.1.*|5.2|5.2.*|5.3|5.3.*|5.5|5.5.*)
13556	  			{ $as_echo "$as_me:$LINENO: result: no large file support" >&5
13557$as_echo "no large file support" >&6; }
13558				;;
13559			5.*)
13560			{ $as_echo "$as_me:$LINENO: result: enabling large file support" >&5
13561$as_echo "enabling large file support" >&6; }
13562			if test "$ac_cv_c_compiler_gnu" = yes; then
13563				${CC-cc} -v >conftest.c 2>&1
13564				ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
13565				rm -fr conftest.c
13566				case "$ac_cv_gcc_compiler_version_number" in
13567					*"gcc version 2.6"*|*"gcc version 2.7"*)
13568						CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE -D_REENTRANT"
13569						LDFLAGS="$LDFLAGS -lthread"
13570
13571cat >>confdefs.h <<\_ACEOF
13572#define _LARGEFILE64_SOURCE 1
13573_ACEOF
13574
13575						;;
13576					*)
13577						CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64"
13578						LDFLAGS="$LDFLAGS -lthread"
13579
13580cat >>confdefs.h <<\_ACEOF
13581#define _LARGEFILE64_SOURCE 1
13582_ACEOF
13583
13584
13585cat >>confdefs.h <<\_ACEOF
13586#define _FILE_OFFSET_BITS 64
13587_ACEOF
13588
13589						;;
13590				esac
13591			else
13592				CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64"
13593				LDFLAGS="$LDFLAGS -lthread"
13594
13595cat >>confdefs.h <<\_ACEOF
13596#define _LARGEFILE64_SOURCE 1
13597_ACEOF
13598
13599
13600cat >>confdefs.h <<\_ACEOF
13601#define _FILE_OFFSET_BITS 64
13602_ACEOF
13603
13604			fi
13605			;;
13606		esac
13607		;;
13608#
13609# IRIX uses SYSV printing.  Make sure to set that here
13610#
13611	*irix*)
13612
13613cat >>confdefs.h <<\_ACEOF
13614#define SYSV 1
13615_ACEOF
13616
13617		;;
13618	*freebsd*|*dragonfly*)
13619
13620cat >>confdefs.h <<\_ACEOF
13621#define FREEBSD 1
13622_ACEOF
13623
13624		;;
13625#
13626# VOS may need to have POSIX support and System V compatibility enabled.
13627#
13628    *vos*)
13629    case "$CPPFLAGS" in
13630	  *-D_POSIX_C_SOURCE*)
13631		;;
13632	  *)
13633		CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L"
13634
13635cat >>confdefs.h <<\_ACEOF
13636#define _POSIX_C_SOURCE 200112L
13637_ACEOF
13638
13639		;;
13640    esac
13641    case "$CPPFLAGS" in
13642	  *-D_SYSV*|*-D_SVID_SOURCE*)
13643		;;
13644	  *)
13645		CPPFLAGS="$CPPFLAGS -D_SYSV"
13646
13647cat >>confdefs.h <<\_ACEOF
13648#define _SYSV 1
13649_ACEOF
13650
13651    esac
13652    ;;
13653#
13654# Tests needed for SINIX large file support.
13655#
13656    *sysv4*)
13657      if test $host = mips-sni-sysv4 ; then
13658        { $as_echo "$as_me:$LINENO: checking for LFS support" >&5
13659$as_echo_n "checking for LFS support... " >&6; }
13660        old_CPPFLAGS="$CPPFLAGS"
13661        CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
13662        if test "$cross_compiling" = yes; then
13663  SINIX_LFS_SUPPORT=cross
13664else
13665  cat >conftest.$ac_ext <<_ACEOF
13666/* confdefs.h.  */
13667_ACEOF
13668cat confdefs.h >>conftest.$ac_ext
13669cat >>conftest.$ac_ext <<_ACEOF
13670/* end confdefs.h.  */
13671
13672#include <unistd.h>
13673main () {
13674#if _LFS64_LARGEFILE == 1
13675exit(0);
13676#else
13677exit(1);
13678#endif
13679}
13680_ACEOF
13681rm -f conftest$ac_exeext
13682if { (ac_try="$ac_link"
13683case "(($ac_try" in
13684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685  *) ac_try_echo=$ac_try;;
13686esac
13687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13688$as_echo "$ac_try_echo") >&5
13689  (eval "$ac_link") 2>&5
13690  ac_status=$?
13691  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13693  { (case "(($ac_try" in
13694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695  *) ac_try_echo=$ac_try;;
13696esac
13697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13698$as_echo "$ac_try_echo") >&5
13699  (eval "$ac_try") 2>&5
13700  ac_status=$?
13701  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702  (exit $ac_status); }; }; then
13703  SINIX_LFS_SUPPORT=yes
13704else
13705  $as_echo "$as_me: program exited with status $ac_status" >&5
13706$as_echo "$as_me: failed program was:" >&5
13707sed 's/^/| /' conftest.$ac_ext >&5
13708
13709( exit $ac_status )
13710SINIX_LFS_SUPPORT=no
13711fi
13712rm -rf conftest.dSYM
13713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13714fi
13715
13716
13717        CPPFLAGS="$old_CPPFLAGS"
13718        if test x$SINIX_LFS_SUPPORT = xyes ; then
13719          CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
13720
13721cat >>confdefs.h <<\_ACEOF
13722#define _LARGEFILE64_SOURCE 1
13723_ACEOF
13724
13725          CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
13726          LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
13727          LIBS="`getconf LFS64_LIBS` $LIBS"
13728        fi
13729      { $as_echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
13730$as_echo "$SINIX_LFS_SUPPORT" >&6; }
13731      fi
13732    ;;
13733
13734# Systems with LFS support.
13735#
13736    gnu* | k*bsd*-gnu | kopensolaris*-gnu)
13737	CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
13738
13739cat >>confdefs.h <<\_ACEOF
13740#define _LARGEFILE64_SOURCE 1
13741_ACEOF
13742
13743
13744cat >>confdefs.h <<\_ACEOF
13745#define _FILE_OFFSET_BITS 64
13746_ACEOF
13747
13748
13749cat >>confdefs.h <<\_ACEOF
13750#define _GNU_SOURCE 1
13751_ACEOF
13752
13753	;;
13754
13755# Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
13756#
13757    *linux*)
13758        { $as_echo "$as_me:$LINENO: checking for LFS support" >&5
13759$as_echo_n "checking for LFS support... " >&6; }
13760        old_CPPFLAGS="$CPPFLAGS"
13761        CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
13762       if test "$cross_compiling" = yes; then
13763  LINUX_LFS_SUPPORT=cross
13764else
13765  cat >conftest.$ac_ext <<_ACEOF
13766/* confdefs.h.  */
13767_ACEOF
13768cat confdefs.h >>conftest.$ac_ext
13769cat >>conftest.$ac_ext <<_ACEOF
13770/* end confdefs.h.  */
13771
13772#include <unistd.h>
13773#include <sys/utsname.h>
13774#include <string.h>
13775#include <stdlib.h>
13776main() {
13777#if _LFS64_LARGEFILE == 1
13778       struct utsname uts;
13779       char *release;
13780       int major, minor;
13781
13782       /* Ensure this is glibc 2.2 or higher */
13783#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
13784       int libc_major = __GLIBC__;
13785       int libc_minor = __GLIBC_MINOR__;
13786
13787       if (libc_major < 2)
13788              exit(1);
13789       if (libc_minor < 2)
13790              exit(1);
13791#endif
13792
13793       /* Ensure this is kernel 2.4 or higher */
13794
13795       uname(&uts);
13796       release = strdup(uts.release);
13797       major = atoi(strsep(&release, "."));
13798       minor = atoi(strsep(&release, "."));
13799
13800       if (major > 2 || (major == 2 && minor > 3))
13801               exit(0);
13802       exit(1);
13803#else
13804       exit(1);
13805#endif
13806}
13807
13808_ACEOF
13809rm -f conftest$ac_exeext
13810if { (ac_try="$ac_link"
13811case "(($ac_try" in
13812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813  *) ac_try_echo=$ac_try;;
13814esac
13815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13816$as_echo "$ac_try_echo") >&5
13817  (eval "$ac_link") 2>&5
13818  ac_status=$?
13819  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13821  { (case "(($ac_try" in
13822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823  *) ac_try_echo=$ac_try;;
13824esac
13825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13826$as_echo "$ac_try_echo") >&5
13827  (eval "$ac_try") 2>&5
13828  ac_status=$?
13829  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830  (exit $ac_status); }; }; then
13831  LINUX_LFS_SUPPORT=yes
13832else
13833  $as_echo "$as_me: program exited with status $ac_status" >&5
13834$as_echo "$as_me: failed program was:" >&5
13835sed 's/^/| /' conftest.$ac_ext >&5
13836
13837( exit $ac_status )
13838LINUX_LFS_SUPPORT=no
13839fi
13840rm -rf conftest.dSYM
13841rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13842fi
13843
13844
13845	CPPFLAGS="$old_CPPFLAGS"
13846	if test x$LINUX_LFS_SUPPORT = xyes ; then
13847		CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
13848
13849cat >>confdefs.h <<\_ACEOF
13850#define _LARGEFILE64_SOURCE 1
13851_ACEOF
13852
13853
13854cat >>confdefs.h <<\_ACEOF
13855#define _FILE_OFFSET_BITS 64
13856_ACEOF
13857
13858
13859cat >>confdefs.h <<\_ACEOF
13860#define _GNU_SOURCE 1
13861_ACEOF
13862
13863	fi
13864	{ $as_echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
13865$as_echo "$LINUX_LFS_SUPPORT" >&6; }
13866	;;
13867
13868#
13869# MacOS X is the *only* system that uses compose character in utf8. This
13870# is so horribly broken....
13871#
13872    *darwin*)
13873
13874cat >>confdefs.h <<\_ACEOF
13875#define BROKEN_UNICODE_COMPOSE_CHARACTERS 1
13876_ACEOF
13877
13878
13879# Add a system specific charset module.
13880	default_shared_modules="$default_shared_modules charset_macosxfs"
13881
13882	;;
13883    *hurd*)
13884        { $as_echo "$as_me:$LINENO: checking for LFS support" >&5
13885$as_echo_n "checking for LFS support... " >&6; }
13886        old_CPPFLAGS="$CPPFLAGS"
13887        CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
13888        if test "$cross_compiling" = yes; then
13889  GLIBC_LFS_SUPPORT=cross
13890else
13891  cat >conftest.$ac_ext <<_ACEOF
13892/* confdefs.h.  */
13893_ACEOF
13894cat confdefs.h >>conftest.$ac_ext
13895cat >>conftest.$ac_ext <<_ACEOF
13896/* end confdefs.h.  */
13897
13898#include <unistd.h>
13899main () {
13900#if _LFS64_LARGEFILE == 1
13901exit(0);
13902#else
13903exit(1);
13904#endif
13905}
13906_ACEOF
13907rm -f conftest$ac_exeext
13908if { (ac_try="$ac_link"
13909case "(($ac_try" in
13910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911  *) ac_try_echo=$ac_try;;
13912esac
13913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13914$as_echo "$ac_try_echo") >&5
13915  (eval "$ac_link") 2>&5
13916  ac_status=$?
13917  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13919  { (case "(($ac_try" in
13920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13921  *) ac_try_echo=$ac_try;;
13922esac
13923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13924$as_echo "$ac_try_echo") >&5
13925  (eval "$ac_try") 2>&5
13926  ac_status=$?
13927  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928  (exit $ac_status); }; }; then
13929  GLIBC_LFS_SUPPORT=yes
13930else
13931  $as_echo "$as_me: program exited with status $ac_status" >&5
13932$as_echo "$as_me: failed program was:" >&5
13933sed 's/^/| /' conftest.$ac_ext >&5
13934
13935( exit $ac_status )
13936GLIBC_LFS_SUPPORT=no
13937fi
13938rm -rf conftest.dSYM
13939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13940fi
13941
13942
13943        CPPFLAGS="$old_CPPFLAGS"
13944        if test x$GLIBC_LFS_SUPPORT = xyes ; then
13945          CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
13946
13947cat >>confdefs.h <<\_ACEOF
13948#define _LARGEFILE64_SOURCE 1
13949_ACEOF
13950
13951
13952cat >>confdefs.h <<\_ACEOF
13953#define _GNU_SOURCE 1
13954_ACEOF
13955
13956        fi
13957      { $as_echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
13958$as_echo "$GLIBC_LFS_SUPPORT" >&6; }
13959    ;;
13960    *qnx*)
13961        CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
13962
13963cat >>confdefs.h <<\_ACEOF
13964#define _LARGEFILE64_SOURCE 1
13965_ACEOF
13966
13967        ;;
13968
13969esac
13970
13971SAVE_CPPFLAGS="${CPPFLAGS}"
13972CPPFLAGS="${CPPFLAGS} ${SAMBA_CONFIGURE_CPPFLAGS}"
13973
13974
13975echo "LIBREPLACE_BROKEN_CHECKS: START"
13976
13977libreplacedir=""
13978libreplacepaths="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace $srcdir/../lib/replace $srcdir/../../../lib/replace"
13979for d in $libreplacepaths; do
13980	if test -f "$d/replace.c"; then
13981		libreplacedir="$d"
13982
13983		break;
13984	fi
13985done
13986if test x"$libreplacedir" = "x"; then
13987	{ { $as_echo "$as_me:$LINENO: error: cannot find libreplace in $libreplacepaths" >&5
13988$as_echo "$as_me: error: cannot find libreplace in $libreplacepaths" >&2;}
13989   { (exit 1); exit 1; }; }
13990fi
13991
13992LIBREPLACEOBJ="$libreplacedir/replace.o"
13993
13994
13995LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/snprintf.o"
13996
13997{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13998$as_echo_n "checking return type of signal handlers... " >&6; }
13999if test "${ac_cv_type_signal+set}" = set; then
14000  $as_echo_n "(cached) " >&6
14001else
14002  cat >conftest.$ac_ext <<_ACEOF
14003/* confdefs.h.  */
14004_ACEOF
14005cat confdefs.h >>conftest.$ac_ext
14006cat >>conftest.$ac_ext <<_ACEOF
14007/* end confdefs.h.  */
14008#include <sys/types.h>
14009#include <signal.h>
14010
14011int
14012main ()
14013{
14014return *(signal (0, 0)) (0) == 1;
14015  ;
14016  return 0;
14017}
14018_ACEOF
14019rm -f conftest.$ac_objext
14020if { (ac_try="$ac_compile"
14021case "(($ac_try" in
14022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023  *) ac_try_echo=$ac_try;;
14024esac
14025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14026$as_echo "$ac_try_echo") >&5
14027  (eval "$ac_compile") 2>conftest.er1
14028  ac_status=$?
14029  grep -v '^ *+' conftest.er1 >conftest.err
14030  rm -f conftest.er1
14031  cat conftest.err >&5
14032  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033  (exit $ac_status); } && {
14034	 test -z "$ac_c_werror_flag" ||
14035	 test ! -s conftest.err
14036       } && test -s conftest.$ac_objext; then
14037  ac_cv_type_signal=int
14038else
14039  $as_echo "$as_me: failed program was:" >&5
14040sed 's/^/| /' conftest.$ac_ext >&5
14041
14042	ac_cv_type_signal=void
14043fi
14044
14045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14046fi
14047{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14048$as_echo "$ac_cv_type_signal" >&6; }
14049
14050cat >>confdefs.h <<_ACEOF
14051#define RETSIGTYPE $ac_cv_type_signal
14052_ACEOF
14053
14054
14055{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14056$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14057if test "${ac_cv_type_uid_t+set}" = set; then
14058  $as_echo_n "(cached) " >&6
14059else
14060  cat >conftest.$ac_ext <<_ACEOF
14061/* confdefs.h.  */
14062_ACEOF
14063cat confdefs.h >>conftest.$ac_ext
14064cat >>conftest.$ac_ext <<_ACEOF
14065/* end confdefs.h.  */
14066#include <sys/types.h>
14067
14068_ACEOF
14069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14070  $EGREP "uid_t" >/dev/null 2>&1; then
14071  ac_cv_type_uid_t=yes
14072else
14073  ac_cv_type_uid_t=no
14074fi
14075rm -f conftest*
14076
14077fi
14078{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14079$as_echo "$ac_cv_type_uid_t" >&6; }
14080if test $ac_cv_type_uid_t = no; then
14081
14082cat >>confdefs.h <<\_ACEOF
14083#define uid_t int
14084_ACEOF
14085
14086
14087cat >>confdefs.h <<\_ACEOF
14088#define gid_t int
14089_ACEOF
14090
14091fi
14092
14093{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
14094$as_echo_n "checking for mode_t... " >&6; }
14095if test "${ac_cv_type_mode_t+set}" = set; then
14096  $as_echo_n "(cached) " >&6
14097else
14098  ac_cv_type_mode_t=no
14099cat >conftest.$ac_ext <<_ACEOF
14100/* confdefs.h.  */
14101_ACEOF
14102cat confdefs.h >>conftest.$ac_ext
14103cat >>conftest.$ac_ext <<_ACEOF
14104/* end confdefs.h.  */
14105$ac_includes_default
14106int
14107main ()
14108{
14109if (sizeof (mode_t))
14110       return 0;
14111  ;
14112  return 0;
14113}
14114_ACEOF
14115rm -f conftest.$ac_objext
14116if { (ac_try="$ac_compile"
14117case "(($ac_try" in
14118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119  *) ac_try_echo=$ac_try;;
14120esac
14121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14122$as_echo "$ac_try_echo") >&5
14123  (eval "$ac_compile") 2>conftest.er1
14124  ac_status=$?
14125  grep -v '^ *+' conftest.er1 >conftest.err
14126  rm -f conftest.er1
14127  cat conftest.err >&5
14128  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129  (exit $ac_status); } && {
14130	 test -z "$ac_c_werror_flag" ||
14131	 test ! -s conftest.err
14132       } && test -s conftest.$ac_objext; then
14133  cat >conftest.$ac_ext <<_ACEOF
14134/* confdefs.h.  */
14135_ACEOF
14136cat confdefs.h >>conftest.$ac_ext
14137cat >>conftest.$ac_ext <<_ACEOF
14138/* end confdefs.h.  */
14139$ac_includes_default
14140int
14141main ()
14142{
14143if (sizeof ((mode_t)))
14144	  return 0;
14145  ;
14146  return 0;
14147}
14148_ACEOF
14149rm -f conftest.$ac_objext
14150if { (ac_try="$ac_compile"
14151case "(($ac_try" in
14152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153  *) ac_try_echo=$ac_try;;
14154esac
14155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14156$as_echo "$ac_try_echo") >&5
14157  (eval "$ac_compile") 2>conftest.er1
14158  ac_status=$?
14159  grep -v '^ *+' conftest.er1 >conftest.err
14160  rm -f conftest.er1
14161  cat conftest.err >&5
14162  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163  (exit $ac_status); } && {
14164	 test -z "$ac_c_werror_flag" ||
14165	 test ! -s conftest.err
14166       } && test -s conftest.$ac_objext; then
14167  :
14168else
14169  $as_echo "$as_me: failed program was:" >&5
14170sed 's/^/| /' conftest.$ac_ext >&5
14171
14172	ac_cv_type_mode_t=yes
14173fi
14174
14175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176else
14177  $as_echo "$as_me: failed program was:" >&5
14178sed 's/^/| /' conftest.$ac_ext >&5
14179
14180
14181fi
14182
14183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184fi
14185{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14186$as_echo "$ac_cv_type_mode_t" >&6; }
14187if test "x$ac_cv_type_mode_t" = x""yes; then
14188  :
14189else
14190
14191cat >>confdefs.h <<_ACEOF
14192#define mode_t int
14193_ACEOF
14194
14195fi
14196
14197{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
14198$as_echo_n "checking for off_t... " >&6; }
14199if test "${ac_cv_type_off_t+set}" = set; then
14200  $as_echo_n "(cached) " >&6
14201else
14202  ac_cv_type_off_t=no
14203cat >conftest.$ac_ext <<_ACEOF
14204/* confdefs.h.  */
14205_ACEOF
14206cat confdefs.h >>conftest.$ac_ext
14207cat >>conftest.$ac_ext <<_ACEOF
14208/* end confdefs.h.  */
14209$ac_includes_default
14210int
14211main ()
14212{
14213if (sizeof (off_t))
14214       return 0;
14215  ;
14216  return 0;
14217}
14218_ACEOF
14219rm -f conftest.$ac_objext
14220if { (ac_try="$ac_compile"
14221case "(($ac_try" in
14222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223  *) ac_try_echo=$ac_try;;
14224esac
14225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14226$as_echo "$ac_try_echo") >&5
14227  (eval "$ac_compile") 2>conftest.er1
14228  ac_status=$?
14229  grep -v '^ *+' conftest.er1 >conftest.err
14230  rm -f conftest.er1
14231  cat conftest.err >&5
14232  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233  (exit $ac_status); } && {
14234	 test -z "$ac_c_werror_flag" ||
14235	 test ! -s conftest.err
14236       } && test -s conftest.$ac_objext; then
14237  cat >conftest.$ac_ext <<_ACEOF
14238/* confdefs.h.  */
14239_ACEOF
14240cat confdefs.h >>conftest.$ac_ext
14241cat >>conftest.$ac_ext <<_ACEOF
14242/* end confdefs.h.  */
14243$ac_includes_default
14244int
14245main ()
14246{
14247if (sizeof ((off_t)))
14248	  return 0;
14249  ;
14250  return 0;
14251}
14252_ACEOF
14253rm -f conftest.$ac_objext
14254if { (ac_try="$ac_compile"
14255case "(($ac_try" in
14256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257  *) ac_try_echo=$ac_try;;
14258esac
14259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14260$as_echo "$ac_try_echo") >&5
14261  (eval "$ac_compile") 2>conftest.er1
14262  ac_status=$?
14263  grep -v '^ *+' conftest.er1 >conftest.err
14264  rm -f conftest.er1
14265  cat conftest.err >&5
14266  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267  (exit $ac_status); } && {
14268	 test -z "$ac_c_werror_flag" ||
14269	 test ! -s conftest.err
14270       } && test -s conftest.$ac_objext; then
14271  :
14272else
14273  $as_echo "$as_me: failed program was:" >&5
14274sed 's/^/| /' conftest.$ac_ext >&5
14275
14276	ac_cv_type_off_t=yes
14277fi
14278
14279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14280else
14281  $as_echo "$as_me: failed program was:" >&5
14282sed 's/^/| /' conftest.$ac_ext >&5
14283
14284
14285fi
14286
14287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14288fi
14289{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14290$as_echo "$ac_cv_type_off_t" >&6; }
14291if test "x$ac_cv_type_off_t" = x""yes; then
14292  :
14293else
14294
14295cat >>confdefs.h <<_ACEOF
14296#define off_t long int
14297_ACEOF
14298
14299fi
14300
14301{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
14302$as_echo_n "checking for size_t... " >&6; }
14303if test "${ac_cv_type_size_t+set}" = set; then
14304  $as_echo_n "(cached) " >&6
14305else
14306  ac_cv_type_size_t=no
14307cat >conftest.$ac_ext <<_ACEOF
14308/* confdefs.h.  */
14309_ACEOF
14310cat confdefs.h >>conftest.$ac_ext
14311cat >>conftest.$ac_ext <<_ACEOF
14312/* end confdefs.h.  */
14313$ac_includes_default
14314int
14315main ()
14316{
14317if (sizeof (size_t))
14318       return 0;
14319  ;
14320  return 0;
14321}
14322_ACEOF
14323rm -f conftest.$ac_objext
14324if { (ac_try="$ac_compile"
14325case "(($ac_try" in
14326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327  *) ac_try_echo=$ac_try;;
14328esac
14329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14330$as_echo "$ac_try_echo") >&5
14331  (eval "$ac_compile") 2>conftest.er1
14332  ac_status=$?
14333  grep -v '^ *+' conftest.er1 >conftest.err
14334  rm -f conftest.er1
14335  cat conftest.err >&5
14336  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337  (exit $ac_status); } && {
14338	 test -z "$ac_c_werror_flag" ||
14339	 test ! -s conftest.err
14340       } && test -s conftest.$ac_objext; then
14341  cat >conftest.$ac_ext <<_ACEOF
14342/* confdefs.h.  */
14343_ACEOF
14344cat confdefs.h >>conftest.$ac_ext
14345cat >>conftest.$ac_ext <<_ACEOF
14346/* end confdefs.h.  */
14347$ac_includes_default
14348int
14349main ()
14350{
14351if (sizeof ((size_t)))
14352	  return 0;
14353  ;
14354  return 0;
14355}
14356_ACEOF
14357rm -f conftest.$ac_objext
14358if { (ac_try="$ac_compile"
14359case "(($ac_try" in
14360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361  *) ac_try_echo=$ac_try;;
14362esac
14363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14364$as_echo "$ac_try_echo") >&5
14365  (eval "$ac_compile") 2>conftest.er1
14366  ac_status=$?
14367  grep -v '^ *+' conftest.er1 >conftest.err
14368  rm -f conftest.er1
14369  cat conftest.err >&5
14370  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371  (exit $ac_status); } && {
14372	 test -z "$ac_c_werror_flag" ||
14373	 test ! -s conftest.err
14374       } && test -s conftest.$ac_objext; then
14375  :
14376else
14377  $as_echo "$as_me: failed program was:" >&5
14378sed 's/^/| /' conftest.$ac_ext >&5
14379
14380	ac_cv_type_size_t=yes
14381fi
14382
14383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14384else
14385  $as_echo "$as_me: failed program was:" >&5
14386sed 's/^/| /' conftest.$ac_ext >&5
14387
14388
14389fi
14390
14391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14392fi
14393{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14394$as_echo "$ac_cv_type_size_t" >&6; }
14395if test "x$ac_cv_type_size_t" = x""yes; then
14396  :
14397else
14398
14399cat >>confdefs.h <<_ACEOF
14400#define size_t unsigned int
14401_ACEOF
14402
14403fi
14404
14405{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
14406$as_echo_n "checking for pid_t... " >&6; }
14407if test "${ac_cv_type_pid_t+set}" = set; then
14408  $as_echo_n "(cached) " >&6
14409else
14410  ac_cv_type_pid_t=no
14411cat >conftest.$ac_ext <<_ACEOF
14412/* confdefs.h.  */
14413_ACEOF
14414cat confdefs.h >>conftest.$ac_ext
14415cat >>conftest.$ac_ext <<_ACEOF
14416/* end confdefs.h.  */
14417$ac_includes_default
14418int
14419main ()
14420{
14421if (sizeof (pid_t))
14422       return 0;
14423  ;
14424  return 0;
14425}
14426_ACEOF
14427rm -f conftest.$ac_objext
14428if { (ac_try="$ac_compile"
14429case "(($ac_try" in
14430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431  *) ac_try_echo=$ac_try;;
14432esac
14433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14434$as_echo "$ac_try_echo") >&5
14435  (eval "$ac_compile") 2>conftest.er1
14436  ac_status=$?
14437  grep -v '^ *+' conftest.er1 >conftest.err
14438  rm -f conftest.er1
14439  cat conftest.err >&5
14440  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441  (exit $ac_status); } && {
14442	 test -z "$ac_c_werror_flag" ||
14443	 test ! -s conftest.err
14444       } && test -s conftest.$ac_objext; then
14445  cat >conftest.$ac_ext <<_ACEOF
14446/* confdefs.h.  */
14447_ACEOF
14448cat confdefs.h >>conftest.$ac_ext
14449cat >>conftest.$ac_ext <<_ACEOF
14450/* end confdefs.h.  */
14451$ac_includes_default
14452int
14453main ()
14454{
14455if (sizeof ((pid_t)))
14456	  return 0;
14457  ;
14458  return 0;
14459}
14460_ACEOF
14461rm -f conftest.$ac_objext
14462if { (ac_try="$ac_compile"
14463case "(($ac_try" in
14464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465  *) ac_try_echo=$ac_try;;
14466esac
14467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14468$as_echo "$ac_try_echo") >&5
14469  (eval "$ac_compile") 2>conftest.er1
14470  ac_status=$?
14471  grep -v '^ *+' conftest.er1 >conftest.err
14472  rm -f conftest.er1
14473  cat conftest.err >&5
14474  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475  (exit $ac_status); } && {
14476	 test -z "$ac_c_werror_flag" ||
14477	 test ! -s conftest.err
14478       } && test -s conftest.$ac_objext; then
14479  :
14480else
14481  $as_echo "$as_me: failed program was:" >&5
14482sed 's/^/| /' conftest.$ac_ext >&5
14483
14484	ac_cv_type_pid_t=yes
14485fi
14486
14487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14488else
14489  $as_echo "$as_me: failed program was:" >&5
14490sed 's/^/| /' conftest.$ac_ext >&5
14491
14492
14493fi
14494
14495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496fi
14497{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14498$as_echo "$ac_cv_type_pid_t" >&6; }
14499if test "x$ac_cv_type_pid_t" = x""yes; then
14500  :
14501else
14502
14503cat >>confdefs.h <<_ACEOF
14504#define pid_t int
14505_ACEOF
14506
14507fi
14508
14509{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14510$as_echo_n "checking for struct stat.st_rdev... " >&6; }
14511if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14512  $as_echo_n "(cached) " >&6
14513else
14514  cat >conftest.$ac_ext <<_ACEOF
14515/* confdefs.h.  */
14516_ACEOF
14517cat confdefs.h >>conftest.$ac_ext
14518cat >>conftest.$ac_ext <<_ACEOF
14519/* end confdefs.h.  */
14520$ac_includes_default
14521int
14522main ()
14523{
14524static struct stat ac_aggr;
14525if (ac_aggr.st_rdev)
14526return 0;
14527  ;
14528  return 0;
14529}
14530_ACEOF
14531rm -f conftest.$ac_objext
14532if { (ac_try="$ac_compile"
14533case "(($ac_try" in
14534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535  *) ac_try_echo=$ac_try;;
14536esac
14537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14538$as_echo "$ac_try_echo") >&5
14539  (eval "$ac_compile") 2>conftest.er1
14540  ac_status=$?
14541  grep -v '^ *+' conftest.er1 >conftest.err
14542  rm -f conftest.er1
14543  cat conftest.err >&5
14544  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545  (exit $ac_status); } && {
14546	 test -z "$ac_c_werror_flag" ||
14547	 test ! -s conftest.err
14548       } && test -s conftest.$ac_objext; then
14549  ac_cv_member_struct_stat_st_rdev=yes
14550else
14551  $as_echo "$as_me: failed program was:" >&5
14552sed 's/^/| /' conftest.$ac_ext >&5
14553
14554	cat >conftest.$ac_ext <<_ACEOF
14555/* confdefs.h.  */
14556_ACEOF
14557cat confdefs.h >>conftest.$ac_ext
14558cat >>conftest.$ac_ext <<_ACEOF
14559/* end confdefs.h.  */
14560$ac_includes_default
14561int
14562main ()
14563{
14564static struct stat ac_aggr;
14565if (sizeof ac_aggr.st_rdev)
14566return 0;
14567  ;
14568  return 0;
14569}
14570_ACEOF
14571rm -f conftest.$ac_objext
14572if { (ac_try="$ac_compile"
14573case "(($ac_try" in
14574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575  *) ac_try_echo=$ac_try;;
14576esac
14577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14578$as_echo "$ac_try_echo") >&5
14579  (eval "$ac_compile") 2>conftest.er1
14580  ac_status=$?
14581  grep -v '^ *+' conftest.er1 >conftest.err
14582  rm -f conftest.er1
14583  cat conftest.err >&5
14584  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585  (exit $ac_status); } && {
14586	 test -z "$ac_c_werror_flag" ||
14587	 test ! -s conftest.err
14588       } && test -s conftest.$ac_objext; then
14589  ac_cv_member_struct_stat_st_rdev=yes
14590else
14591  $as_echo "$as_me: failed program was:" >&5
14592sed 's/^/| /' conftest.$ac_ext >&5
14593
14594	ac_cv_member_struct_stat_st_rdev=no
14595fi
14596
14597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14598fi
14599
14600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601fi
14602{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14603$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
14604if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
14605
14606cat >>confdefs.h <<_ACEOF
14607#define HAVE_STRUCT_STAT_ST_RDEV 1
14608_ACEOF
14609
14610
14611cat >>confdefs.h <<\_ACEOF
14612#define HAVE_ST_RDEV 1
14613_ACEOF
14614
14615fi
14616
14617
14618{ $as_echo "$as_me:$LINENO: checking for ino_t" >&5
14619$as_echo_n "checking for ino_t... " >&6; }
14620if test "${ac_cv_type_ino_t+set}" = set; then
14621  $as_echo_n "(cached) " >&6
14622else
14623  ac_cv_type_ino_t=no
14624cat >conftest.$ac_ext <<_ACEOF
14625/* confdefs.h.  */
14626_ACEOF
14627cat confdefs.h >>conftest.$ac_ext
14628cat >>conftest.$ac_ext <<_ACEOF
14629/* end confdefs.h.  */
14630$ac_includes_default
14631int
14632main ()
14633{
14634if (sizeof (ino_t))
14635       return 0;
14636  ;
14637  return 0;
14638}
14639_ACEOF
14640rm -f conftest.$ac_objext
14641if { (ac_try="$ac_compile"
14642case "(($ac_try" in
14643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644  *) ac_try_echo=$ac_try;;
14645esac
14646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14647$as_echo "$ac_try_echo") >&5
14648  (eval "$ac_compile") 2>conftest.er1
14649  ac_status=$?
14650  grep -v '^ *+' conftest.er1 >conftest.err
14651  rm -f conftest.er1
14652  cat conftest.err >&5
14653  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654  (exit $ac_status); } && {
14655	 test -z "$ac_c_werror_flag" ||
14656	 test ! -s conftest.err
14657       } && test -s conftest.$ac_objext; then
14658  cat >conftest.$ac_ext <<_ACEOF
14659/* confdefs.h.  */
14660_ACEOF
14661cat confdefs.h >>conftest.$ac_ext
14662cat >>conftest.$ac_ext <<_ACEOF
14663/* end confdefs.h.  */
14664$ac_includes_default
14665int
14666main ()
14667{
14668if (sizeof ((ino_t)))
14669	  return 0;
14670  ;
14671  return 0;
14672}
14673_ACEOF
14674rm -f conftest.$ac_objext
14675if { (ac_try="$ac_compile"
14676case "(($ac_try" in
14677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14678  *) ac_try_echo=$ac_try;;
14679esac
14680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14681$as_echo "$ac_try_echo") >&5
14682  (eval "$ac_compile") 2>conftest.er1
14683  ac_status=$?
14684  grep -v '^ *+' conftest.er1 >conftest.err
14685  rm -f conftest.er1
14686  cat conftest.err >&5
14687  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688  (exit $ac_status); } && {
14689	 test -z "$ac_c_werror_flag" ||
14690	 test ! -s conftest.err
14691       } && test -s conftest.$ac_objext; then
14692  :
14693else
14694  $as_echo "$as_me: failed program was:" >&5
14695sed 's/^/| /' conftest.$ac_ext >&5
14696
14697	ac_cv_type_ino_t=yes
14698fi
14699
14700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14701else
14702  $as_echo "$as_me: failed program was:" >&5
14703sed 's/^/| /' conftest.$ac_ext >&5
14704
14705
14706fi
14707
14708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14709fi
14710{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
14711$as_echo "$ac_cv_type_ino_t" >&6; }
14712if test "x$ac_cv_type_ino_t" = x""yes; then
14713  :
14714else
14715
14716cat >>confdefs.h <<_ACEOF
14717#define ino_t unsigned
14718_ACEOF
14719
14720fi
14721
14722{ $as_echo "$as_me:$LINENO: checking for loff_t" >&5
14723$as_echo_n "checking for loff_t... " >&6; }
14724if test "${ac_cv_type_loff_t+set}" = set; then
14725  $as_echo_n "(cached) " >&6
14726else
14727  ac_cv_type_loff_t=no
14728cat >conftest.$ac_ext <<_ACEOF
14729/* confdefs.h.  */
14730_ACEOF
14731cat confdefs.h >>conftest.$ac_ext
14732cat >>conftest.$ac_ext <<_ACEOF
14733/* end confdefs.h.  */
14734$ac_includes_default
14735int
14736main ()
14737{
14738if (sizeof (loff_t))
14739       return 0;
14740  ;
14741  return 0;
14742}
14743_ACEOF
14744rm -f conftest.$ac_objext
14745if { (ac_try="$ac_compile"
14746case "(($ac_try" in
14747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748  *) ac_try_echo=$ac_try;;
14749esac
14750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14751$as_echo "$ac_try_echo") >&5
14752  (eval "$ac_compile") 2>conftest.er1
14753  ac_status=$?
14754  grep -v '^ *+' conftest.er1 >conftest.err
14755  rm -f conftest.er1
14756  cat conftest.err >&5
14757  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758  (exit $ac_status); } && {
14759	 test -z "$ac_c_werror_flag" ||
14760	 test ! -s conftest.err
14761       } && test -s conftest.$ac_objext; then
14762  cat >conftest.$ac_ext <<_ACEOF
14763/* confdefs.h.  */
14764_ACEOF
14765cat confdefs.h >>conftest.$ac_ext
14766cat >>conftest.$ac_ext <<_ACEOF
14767/* end confdefs.h.  */
14768$ac_includes_default
14769int
14770main ()
14771{
14772if (sizeof ((loff_t)))
14773	  return 0;
14774  ;
14775  return 0;
14776}
14777_ACEOF
14778rm -f conftest.$ac_objext
14779if { (ac_try="$ac_compile"
14780case "(($ac_try" in
14781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782  *) ac_try_echo=$ac_try;;
14783esac
14784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14785$as_echo "$ac_try_echo") >&5
14786  (eval "$ac_compile") 2>conftest.er1
14787  ac_status=$?
14788  grep -v '^ *+' conftest.er1 >conftest.err
14789  rm -f conftest.er1
14790  cat conftest.err >&5
14791  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792  (exit $ac_status); } && {
14793	 test -z "$ac_c_werror_flag" ||
14794	 test ! -s conftest.err
14795       } && test -s conftest.$ac_objext; then
14796  :
14797else
14798  $as_echo "$as_me: failed program was:" >&5
14799sed 's/^/| /' conftest.$ac_ext >&5
14800
14801	ac_cv_type_loff_t=yes
14802fi
14803
14804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14805else
14806  $as_echo "$as_me: failed program was:" >&5
14807sed 's/^/| /' conftest.$ac_ext >&5
14808
14809
14810fi
14811
14812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14813fi
14814{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
14815$as_echo "$ac_cv_type_loff_t" >&6; }
14816if test "x$ac_cv_type_loff_t" = x""yes; then
14817  :
14818else
14819
14820cat >>confdefs.h <<_ACEOF
14821#define loff_t off_t
14822_ACEOF
14823
14824fi
14825
14826{ $as_echo "$as_me:$LINENO: checking for offset_t" >&5
14827$as_echo_n "checking for offset_t... " >&6; }
14828if test "${ac_cv_type_offset_t+set}" = set; then
14829  $as_echo_n "(cached) " >&6
14830else
14831  ac_cv_type_offset_t=no
14832cat >conftest.$ac_ext <<_ACEOF
14833/* confdefs.h.  */
14834_ACEOF
14835cat confdefs.h >>conftest.$ac_ext
14836cat >>conftest.$ac_ext <<_ACEOF
14837/* end confdefs.h.  */
14838$ac_includes_default
14839int
14840main ()
14841{
14842if (sizeof (offset_t))
14843       return 0;
14844  ;
14845  return 0;
14846}
14847_ACEOF
14848rm -f conftest.$ac_objext
14849if { (ac_try="$ac_compile"
14850case "(($ac_try" in
14851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14852  *) ac_try_echo=$ac_try;;
14853esac
14854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14855$as_echo "$ac_try_echo") >&5
14856  (eval "$ac_compile") 2>conftest.er1
14857  ac_status=$?
14858  grep -v '^ *+' conftest.er1 >conftest.err
14859  rm -f conftest.er1
14860  cat conftest.err >&5
14861  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862  (exit $ac_status); } && {
14863	 test -z "$ac_c_werror_flag" ||
14864	 test ! -s conftest.err
14865       } && test -s conftest.$ac_objext; then
14866  cat >conftest.$ac_ext <<_ACEOF
14867/* confdefs.h.  */
14868_ACEOF
14869cat confdefs.h >>conftest.$ac_ext
14870cat >>conftest.$ac_ext <<_ACEOF
14871/* end confdefs.h.  */
14872$ac_includes_default
14873int
14874main ()
14875{
14876if (sizeof ((offset_t)))
14877	  return 0;
14878  ;
14879  return 0;
14880}
14881_ACEOF
14882rm -f conftest.$ac_objext
14883if { (ac_try="$ac_compile"
14884case "(($ac_try" in
14885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886  *) ac_try_echo=$ac_try;;
14887esac
14888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14889$as_echo "$ac_try_echo") >&5
14890  (eval "$ac_compile") 2>conftest.er1
14891  ac_status=$?
14892  grep -v '^ *+' conftest.er1 >conftest.err
14893  rm -f conftest.er1
14894  cat conftest.err >&5
14895  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896  (exit $ac_status); } && {
14897	 test -z "$ac_c_werror_flag" ||
14898	 test ! -s conftest.err
14899       } && test -s conftest.$ac_objext; then
14900  :
14901else
14902  $as_echo "$as_me: failed program was:" >&5
14903sed 's/^/| /' conftest.$ac_ext >&5
14904
14905	ac_cv_type_offset_t=yes
14906fi
14907
14908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909else
14910  $as_echo "$as_me: failed program was:" >&5
14911sed 's/^/| /' conftest.$ac_ext >&5
14912
14913
14914fi
14915
14916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14917fi
14918{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
14919$as_echo "$ac_cv_type_offset_t" >&6; }
14920if test "x$ac_cv_type_offset_t" = x""yes; then
14921  :
14922else
14923
14924cat >>confdefs.h <<_ACEOF
14925#define offset_t loff_t
14926_ACEOF
14927
14928fi
14929
14930
14931{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
14932$as_echo_n "checking for working memcmp... " >&6; }
14933if test "${ac_cv_func_memcmp_working+set}" = set; then
14934  $as_echo_n "(cached) " >&6
14935else
14936  if test "$cross_compiling" = yes; then
14937  ac_cv_func_memcmp_working=no
14938else
14939  cat >conftest.$ac_ext <<_ACEOF
14940/* confdefs.h.  */
14941_ACEOF
14942cat confdefs.h >>conftest.$ac_ext
14943cat >>conftest.$ac_ext <<_ACEOF
14944/* end confdefs.h.  */
14945$ac_includes_default
14946int
14947main ()
14948{
14949
14950  /* Some versions of memcmp are not 8-bit clean.  */
14951  char c0 = '\100', c1 = '\200', c2 = '\201';
14952  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14953    return 1;
14954
14955  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14956     or more and with at least one buffer not starting on a 4-byte boundary.
14957     William Lewis provided this test program.   */
14958  {
14959    char foo[21];
14960    char bar[21];
14961    int i;
14962    for (i = 0; i < 4; i++)
14963      {
14964	char *a = foo + i;
14965	char *b = bar + i;
14966	strcpy (a, "--------01111111");
14967	strcpy (b, "--------10000000");
14968	if (memcmp (a, b, 16) >= 0)
14969	  return 1;
14970      }
14971    return 0;
14972  }
14973
14974  ;
14975  return 0;
14976}
14977_ACEOF
14978rm -f conftest$ac_exeext
14979if { (ac_try="$ac_link"
14980case "(($ac_try" in
14981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982  *) ac_try_echo=$ac_try;;
14983esac
14984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14985$as_echo "$ac_try_echo") >&5
14986  (eval "$ac_link") 2>&5
14987  ac_status=$?
14988  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14990  { (case "(($ac_try" in
14991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992  *) ac_try_echo=$ac_try;;
14993esac
14994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14995$as_echo "$ac_try_echo") >&5
14996  (eval "$ac_try") 2>&5
14997  ac_status=$?
14998  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999  (exit $ac_status); }; }; then
15000  ac_cv_func_memcmp_working=yes
15001else
15002  $as_echo "$as_me: program exited with status $ac_status" >&5
15003$as_echo "$as_me: failed program was:" >&5
15004sed 's/^/| /' conftest.$ac_ext >&5
15005
15006( exit $ac_status )
15007ac_cv_func_memcmp_working=no
15008fi
15009rm -rf conftest.dSYM
15010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15011fi
15012
15013
15014fi
15015{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
15016$as_echo "$ac_cv_func_memcmp_working" >&6; }
15017test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
15018  *" memcmp.$ac_objext "* ) ;;
15019  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15020 ;;
15021esac
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037for ac_func in pipe strftime srandom random srand rand usleep setbuffer lstat getpgrp utime utimes
15038do
15039as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15040{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15041$as_echo_n "checking for $ac_func... " >&6; }
15042if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15043  $as_echo_n "(cached) " >&6
15044else
15045  cat >conftest.$ac_ext <<_ACEOF
15046/* confdefs.h.  */
15047_ACEOF
15048cat confdefs.h >>conftest.$ac_ext
15049cat >>conftest.$ac_ext <<_ACEOF
15050/* end confdefs.h.  */
15051/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15052   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15053#define $ac_func innocuous_$ac_func
15054
15055/* System header to define __stub macros and hopefully few prototypes,
15056    which can conflict with char $ac_func (); below.
15057    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15058    <limits.h> exists even on freestanding compilers.  */
15059
15060#ifdef __STDC__
15061# include <limits.h>
15062#else
15063# include <assert.h>
15064#endif
15065
15066#undef $ac_func
15067
15068/* Override any GCC internal prototype to avoid an error.
15069   Use char because int might match the return type of a GCC
15070   builtin and then its argument prototype would still apply.  */
15071#ifdef __cplusplus
15072extern "C"
15073#endif
15074char $ac_func ();
15075/* The GNU C library defines this for functions which it implements
15076    to always fail with ENOSYS.  Some functions are actually named
15077    something starting with __ and the normal name is an alias.  */
15078#if defined __stub_$ac_func || defined __stub___$ac_func
15079choke me
15080#endif
15081
15082int
15083main ()
15084{
15085return $ac_func ();
15086  ;
15087  return 0;
15088}
15089_ACEOF
15090rm -f conftest.$ac_objext conftest$ac_exeext
15091if { (ac_try="$ac_link"
15092case "(($ac_try" in
15093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094  *) ac_try_echo=$ac_try;;
15095esac
15096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15097$as_echo "$ac_try_echo") >&5
15098  (eval "$ac_link") 2>conftest.er1
15099  ac_status=$?
15100  grep -v '^ *+' conftest.er1 >conftest.err
15101  rm -f conftest.er1
15102  cat conftest.err >&5
15103  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104  (exit $ac_status); } && {
15105	 test -z "$ac_c_werror_flag" ||
15106	 test ! -s conftest.err
15107       } && test -s conftest$ac_exeext && {
15108	 test "$cross_compiling" = yes ||
15109	 $as_test_x conftest$ac_exeext
15110       }; then
15111  eval "$as_ac_var=yes"
15112else
15113  $as_echo "$as_me: failed program was:" >&5
15114sed 's/^/| /' conftest.$ac_ext >&5
15115
15116	eval "$as_ac_var=no"
15117fi
15118
15119rm -rf conftest.dSYM
15120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15121      conftest$ac_exeext conftest.$ac_ext
15122fi
15123ac_res=`eval 'as_val=${'$as_ac_var'}
15124		 $as_echo "$as_val"'`
15125	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15126$as_echo "$ac_res" >&6; }
15127as_val=`eval 'as_val=${'$as_ac_var'}
15128		 $as_echo "$as_val"'`
15129   if test "x$as_val" = x""yes; then
15130  cat >>confdefs.h <<_ACEOF
15131#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15132_ACEOF
15133
15134fi
15135done
15136
15137
15138
15139
15140
15141for ac_header in stdbool.h stdint.h sys/select.h
15142do
15143as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15145  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15146$as_echo_n "checking for $ac_header... " >&6; }
15147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15148  $as_echo_n "(cached) " >&6
15149fi
15150ac_res=`eval 'as_val=${'$as_ac_Header'}
15151		 $as_echo "$as_val"'`
15152	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15153$as_echo "$ac_res" >&6; }
15154else
15155  # Is the header compilable?
15156{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15157$as_echo_n "checking $ac_header usability... " >&6; }
15158cat >conftest.$ac_ext <<_ACEOF
15159/* confdefs.h.  */
15160_ACEOF
15161cat confdefs.h >>conftest.$ac_ext
15162cat >>conftest.$ac_ext <<_ACEOF
15163/* end confdefs.h.  */
15164$ac_includes_default
15165#include <$ac_header>
15166_ACEOF
15167rm -f conftest.$ac_objext
15168if { (ac_try="$ac_compile"
15169case "(($ac_try" in
15170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171  *) ac_try_echo=$ac_try;;
15172esac
15173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15174$as_echo "$ac_try_echo") >&5
15175  (eval "$ac_compile") 2>conftest.er1
15176  ac_status=$?
15177  grep -v '^ *+' conftest.er1 >conftest.err
15178  rm -f conftest.er1
15179  cat conftest.err >&5
15180  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181  (exit $ac_status); } && {
15182	 test -z "$ac_c_werror_flag" ||
15183	 test ! -s conftest.err
15184       } && test -s conftest.$ac_objext; then
15185  ac_header_compiler=yes
15186else
15187  $as_echo "$as_me: failed program was:" >&5
15188sed 's/^/| /' conftest.$ac_ext >&5
15189
15190	ac_header_compiler=no
15191fi
15192
15193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15194{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15195$as_echo "$ac_header_compiler" >&6; }
15196
15197# Is the header present?
15198{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15199$as_echo_n "checking $ac_header presence... " >&6; }
15200cat >conftest.$ac_ext <<_ACEOF
15201/* confdefs.h.  */
15202_ACEOF
15203cat confdefs.h >>conftest.$ac_ext
15204cat >>conftest.$ac_ext <<_ACEOF
15205/* end confdefs.h.  */
15206#include <$ac_header>
15207_ACEOF
15208if { (ac_try="$ac_cpp conftest.$ac_ext"
15209case "(($ac_try" in
15210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15211  *) ac_try_echo=$ac_try;;
15212esac
15213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15214$as_echo "$ac_try_echo") >&5
15215  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15216  ac_status=$?
15217  grep -v '^ *+' conftest.er1 >conftest.err
15218  rm -f conftest.er1
15219  cat conftest.err >&5
15220  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221  (exit $ac_status); } >/dev/null && {
15222	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15223	 test ! -s conftest.err
15224       }; then
15225  ac_header_preproc=yes
15226else
15227  $as_echo "$as_me: failed program was:" >&5
15228sed 's/^/| /' conftest.$ac_ext >&5
15229
15230  ac_header_preproc=no
15231fi
15232
15233rm -f conftest.err conftest.$ac_ext
15234{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15235$as_echo "$ac_header_preproc" >&6; }
15236
15237# So?  What about this header?
15238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15239  yes:no: )
15240    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15241$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15242    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15243$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15244    ac_header_preproc=yes
15245    ;;
15246  no:yes:* )
15247    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15248$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15249    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15250$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15251    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15252$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15253    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15254$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15255    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15256$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15257    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15258$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15259    ( cat <<\_ASBOX
15260## ---------------------------------------- ##
15261## Report this to samba-technical@samba.org ##
15262## ---------------------------------------- ##
15263_ASBOX
15264     ) | sed "s/^/$as_me: WARNING:     /" >&2
15265    ;;
15266esac
15267{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15268$as_echo_n "checking for $ac_header... " >&6; }
15269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15270  $as_echo_n "(cached) " >&6
15271else
15272  eval "$as_ac_Header=\$ac_header_preproc"
15273fi
15274ac_res=`eval 'as_val=${'$as_ac_Header'}
15275		 $as_echo "$as_val"'`
15276	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15277$as_echo "$ac_res" >&6; }
15278
15279fi
15280as_val=`eval 'as_val=${'$as_ac_Header'}
15281		 $as_echo "$as_val"'`
15282   if test "x$as_val" = x""yes; then
15283  cat >>confdefs.h <<_ACEOF
15284#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15285_ACEOF
15286
15287fi
15288
15289done
15290
15291
15292
15293for ac_header in setjmp.h utime.h
15294do
15295as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15297  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15298$as_echo_n "checking for $ac_header... " >&6; }
15299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15300  $as_echo_n "(cached) " >&6
15301fi
15302ac_res=`eval 'as_val=${'$as_ac_Header'}
15303		 $as_echo "$as_val"'`
15304	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15305$as_echo "$ac_res" >&6; }
15306else
15307  # Is the header compilable?
15308{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15309$as_echo_n "checking $ac_header usability... " >&6; }
15310cat >conftest.$ac_ext <<_ACEOF
15311/* confdefs.h.  */
15312_ACEOF
15313cat confdefs.h >>conftest.$ac_ext
15314cat >>conftest.$ac_ext <<_ACEOF
15315/* end confdefs.h.  */
15316$ac_includes_default
15317#include <$ac_header>
15318_ACEOF
15319rm -f conftest.$ac_objext
15320if { (ac_try="$ac_compile"
15321case "(($ac_try" in
15322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323  *) ac_try_echo=$ac_try;;
15324esac
15325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15326$as_echo "$ac_try_echo") >&5
15327  (eval "$ac_compile") 2>conftest.er1
15328  ac_status=$?
15329  grep -v '^ *+' conftest.er1 >conftest.err
15330  rm -f conftest.er1
15331  cat conftest.err >&5
15332  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333  (exit $ac_status); } && {
15334	 test -z "$ac_c_werror_flag" ||
15335	 test ! -s conftest.err
15336       } && test -s conftest.$ac_objext; then
15337  ac_header_compiler=yes
15338else
15339  $as_echo "$as_me: failed program was:" >&5
15340sed 's/^/| /' conftest.$ac_ext >&5
15341
15342	ac_header_compiler=no
15343fi
15344
15345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15346{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15347$as_echo "$ac_header_compiler" >&6; }
15348
15349# Is the header present?
15350{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15351$as_echo_n "checking $ac_header presence... " >&6; }
15352cat >conftest.$ac_ext <<_ACEOF
15353/* confdefs.h.  */
15354_ACEOF
15355cat confdefs.h >>conftest.$ac_ext
15356cat >>conftest.$ac_ext <<_ACEOF
15357/* end confdefs.h.  */
15358#include <$ac_header>
15359_ACEOF
15360if { (ac_try="$ac_cpp conftest.$ac_ext"
15361case "(($ac_try" in
15362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363  *) ac_try_echo=$ac_try;;
15364esac
15365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15366$as_echo "$ac_try_echo") >&5
15367  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15368  ac_status=$?
15369  grep -v '^ *+' conftest.er1 >conftest.err
15370  rm -f conftest.er1
15371  cat conftest.err >&5
15372  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373  (exit $ac_status); } >/dev/null && {
15374	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15375	 test ! -s conftest.err
15376       }; then
15377  ac_header_preproc=yes
15378else
15379  $as_echo "$as_me: failed program was:" >&5
15380sed 's/^/| /' conftest.$ac_ext >&5
15381
15382  ac_header_preproc=no
15383fi
15384
15385rm -f conftest.err conftest.$ac_ext
15386{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15387$as_echo "$ac_header_preproc" >&6; }
15388
15389# So?  What about this header?
15390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15391  yes:no: )
15392    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15393$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15394    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15395$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15396    ac_header_preproc=yes
15397    ;;
15398  no:yes:* )
15399    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15400$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15401    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15402$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15403    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15404$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15405    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15406$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15407    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15408$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15409    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15410$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15411    ( cat <<\_ASBOX
15412## ---------------------------------------- ##
15413## Report this to samba-technical@samba.org ##
15414## ---------------------------------------- ##
15415_ASBOX
15416     ) | sed "s/^/$as_me: WARNING:     /" >&2
15417    ;;
15418esac
15419{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15420$as_echo_n "checking for $ac_header... " >&6; }
15421if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15422  $as_echo_n "(cached) " >&6
15423else
15424  eval "$as_ac_Header=\$ac_header_preproc"
15425fi
15426ac_res=`eval 'as_val=${'$as_ac_Header'}
15427		 $as_echo "$as_val"'`
15428	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15429$as_echo "$ac_res" >&6; }
15430
15431fi
15432as_val=`eval 'as_val=${'$as_ac_Header'}
15433		 $as_echo "$as_val"'`
15434   if test "x$as_val" = x""yes; then
15435  cat >>confdefs.h <<_ACEOF
15436#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15437_ACEOF
15438
15439fi
15440
15441done
15442
15443
15444if test "${ac_cv_header_stdint_h+set}" = set; then
15445  { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
15446$as_echo_n "checking for stdint.h... " >&6; }
15447if test "${ac_cv_header_stdint_h+set}" = set; then
15448  $as_echo_n "(cached) " >&6
15449fi
15450{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
15451$as_echo "$ac_cv_header_stdint_h" >&6; }
15452else
15453  # Is the header compilable?
15454{ $as_echo "$as_me:$LINENO: checking stdint.h usability" >&5
15455$as_echo_n "checking stdint.h usability... " >&6; }
15456cat >conftest.$ac_ext <<_ACEOF
15457/* confdefs.h.  */
15458_ACEOF
15459cat confdefs.h >>conftest.$ac_ext
15460cat >>conftest.$ac_ext <<_ACEOF
15461/* end confdefs.h.  */
15462$ac_includes_default
15463#include <stdint.h>
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15472$as_echo "$ac_try_echo") >&5
15473  (eval "$ac_compile") 2>conftest.er1
15474  ac_status=$?
15475  grep -v '^ *+' conftest.er1 >conftest.err
15476  rm -f conftest.er1
15477  cat conftest.err >&5
15478  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479  (exit $ac_status); } && {
15480	 test -z "$ac_c_werror_flag" ||
15481	 test ! -s conftest.err
15482       } && test -s conftest.$ac_objext; then
15483  ac_header_compiler=yes
15484else
15485  $as_echo "$as_me: failed program was:" >&5
15486sed 's/^/| /' conftest.$ac_ext >&5
15487
15488	ac_header_compiler=no
15489fi
15490
15491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15492{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15493$as_echo "$ac_header_compiler" >&6; }
15494
15495# Is the header present?
15496{ $as_echo "$as_me:$LINENO: checking stdint.h presence" >&5
15497$as_echo_n "checking stdint.h presence... " >&6; }
15498cat >conftest.$ac_ext <<_ACEOF
15499/* confdefs.h.  */
15500_ACEOF
15501cat confdefs.h >>conftest.$ac_ext
15502cat >>conftest.$ac_ext <<_ACEOF
15503/* end confdefs.h.  */
15504#include <stdint.h>
15505_ACEOF
15506if { (ac_try="$ac_cpp conftest.$ac_ext"
15507case "(($ac_try" in
15508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509  *) ac_try_echo=$ac_try;;
15510esac
15511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15512$as_echo "$ac_try_echo") >&5
15513  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15514  ac_status=$?
15515  grep -v '^ *+' conftest.er1 >conftest.err
15516  rm -f conftest.er1
15517  cat conftest.err >&5
15518  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519  (exit $ac_status); } >/dev/null && {
15520	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15521	 test ! -s conftest.err
15522       }; then
15523  ac_header_preproc=yes
15524else
15525  $as_echo "$as_me: failed program was:" >&5
15526sed 's/^/| /' conftest.$ac_ext >&5
15527
15528  ac_header_preproc=no
15529fi
15530
15531rm -f conftest.err conftest.$ac_ext
15532{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15533$as_echo "$ac_header_preproc" >&6; }
15534
15535# So?  What about this header?
15536case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15537  yes:no: )
15538    { $as_echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
15539$as_echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15540    { $as_echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
15541$as_echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
15542    ac_header_preproc=yes
15543    ;;
15544  no:yes:* )
15545    { $as_echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
15546$as_echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
15547    { $as_echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
15548$as_echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
15549    { $as_echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
15550$as_echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
15551    { $as_echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
15552$as_echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15553    { $as_echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
15554$as_echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
15555    { $as_echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
15556$as_echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
15557    ( cat <<\_ASBOX
15558## ---------------------------------------- ##
15559## Report this to samba-technical@samba.org ##
15560## ---------------------------------------- ##
15561_ASBOX
15562     ) | sed "s/^/$as_me: WARNING:     /" >&2
15563    ;;
15564esac
15565{ $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
15566$as_echo_n "checking for stdint.h... " >&6; }
15567if test "${ac_cv_header_stdint_h+set}" = set; then
15568  $as_echo_n "(cached) " >&6
15569else
15570  ac_cv_header_stdint_h=$ac_header_preproc
15571fi
15572{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
15573$as_echo "$ac_cv_header_stdint_h" >&6; }
15574
15575fi
15576if test "x$ac_cv_header_stdint_h" = x""yes; then
15577   ac_config_commands="$ac_config_commands rm-stdint.h"
15578
15579else
15580   ac_config_commands="$ac_config_commands mk-stdint.h"
15581
15582
15583fi
15584
15585
15586
15587if test "${ac_cv_header_stdbool_h+set}" = set; then
15588  { $as_echo "$as_me:$LINENO: checking for stdbool.h" >&5
15589$as_echo_n "checking for stdbool.h... " >&6; }
15590if test "${ac_cv_header_stdbool_h+set}" = set; then
15591  $as_echo_n "(cached) " >&6
15592fi
15593{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
15594$as_echo "$ac_cv_header_stdbool_h" >&6; }
15595else
15596  # Is the header compilable?
15597{ $as_echo "$as_me:$LINENO: checking stdbool.h usability" >&5
15598$as_echo_n "checking stdbool.h usability... " >&6; }
15599cat >conftest.$ac_ext <<_ACEOF
15600/* confdefs.h.  */
15601_ACEOF
15602cat confdefs.h >>conftest.$ac_ext
15603cat >>conftest.$ac_ext <<_ACEOF
15604/* end confdefs.h.  */
15605$ac_includes_default
15606#include <stdbool.h>
15607_ACEOF
15608rm -f conftest.$ac_objext
15609if { (ac_try="$ac_compile"
15610case "(($ac_try" in
15611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612  *) ac_try_echo=$ac_try;;
15613esac
15614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15615$as_echo "$ac_try_echo") >&5
15616  (eval "$ac_compile") 2>conftest.er1
15617  ac_status=$?
15618  grep -v '^ *+' conftest.er1 >conftest.err
15619  rm -f conftest.er1
15620  cat conftest.err >&5
15621  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622  (exit $ac_status); } && {
15623	 test -z "$ac_c_werror_flag" ||
15624	 test ! -s conftest.err
15625       } && test -s conftest.$ac_objext; then
15626  ac_header_compiler=yes
15627else
15628  $as_echo "$as_me: failed program was:" >&5
15629sed 's/^/| /' conftest.$ac_ext >&5
15630
15631	ac_header_compiler=no
15632fi
15633
15634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15635{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15636$as_echo "$ac_header_compiler" >&6; }
15637
15638# Is the header present?
15639{ $as_echo "$as_me:$LINENO: checking stdbool.h presence" >&5
15640$as_echo_n "checking stdbool.h presence... " >&6; }
15641cat >conftest.$ac_ext <<_ACEOF
15642/* confdefs.h.  */
15643_ACEOF
15644cat confdefs.h >>conftest.$ac_ext
15645cat >>conftest.$ac_ext <<_ACEOF
15646/* end confdefs.h.  */
15647#include <stdbool.h>
15648_ACEOF
15649if { (ac_try="$ac_cpp conftest.$ac_ext"
15650case "(($ac_try" in
15651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652  *) ac_try_echo=$ac_try;;
15653esac
15654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15655$as_echo "$ac_try_echo") >&5
15656  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15657  ac_status=$?
15658  grep -v '^ *+' conftest.er1 >conftest.err
15659  rm -f conftest.er1
15660  cat conftest.err >&5
15661  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662  (exit $ac_status); } >/dev/null && {
15663	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15664	 test ! -s conftest.err
15665       }; then
15666  ac_header_preproc=yes
15667else
15668  $as_echo "$as_me: failed program was:" >&5
15669sed 's/^/| /' conftest.$ac_ext >&5
15670
15671  ac_header_preproc=no
15672fi
15673
15674rm -f conftest.err conftest.$ac_ext
15675{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15676$as_echo "$ac_header_preproc" >&6; }
15677
15678# So?  What about this header?
15679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15680  yes:no: )
15681    { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: accepted by the compiler, rejected by the preprocessor!" >&5
15682$as_echo "$as_me: WARNING: stdbool.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15683    { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: proceeding with the compiler's result" >&5
15684$as_echo "$as_me: WARNING: stdbool.h: proceeding with the compiler's result" >&2;}
15685    ac_header_preproc=yes
15686    ;;
15687  no:yes:* )
15688    { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: present but cannot be compiled" >&5
15689$as_echo "$as_me: WARNING: stdbool.h: present but cannot be compiled" >&2;}
15690    { $as_echo "$as_me:$LINENO: WARNING: stdbool.h:     check for missing prerequisite headers?" >&5
15691$as_echo "$as_me: WARNING: stdbool.h:     check for missing prerequisite headers?" >&2;}
15692    { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: see the Autoconf documentation" >&5
15693$as_echo "$as_me: WARNING: stdbool.h: see the Autoconf documentation" >&2;}
15694    { $as_echo "$as_me:$LINENO: WARNING: stdbool.h:     section \"Present But Cannot Be Compiled\"" >&5
15695$as_echo "$as_me: WARNING: stdbool.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15696    { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: proceeding with the preprocessor's result" >&5
15697$as_echo "$as_me: WARNING: stdbool.h: proceeding with the preprocessor's result" >&2;}
15698    { $as_echo "$as_me:$LINENO: WARNING: stdbool.h: in the future, the compiler will take precedence" >&5
15699$as_echo "$as_me: WARNING: stdbool.h: in the future, the compiler will take precedence" >&2;}
15700    ( cat <<\_ASBOX
15701## ---------------------------------------- ##
15702## Report this to samba-technical@samba.org ##
15703## ---------------------------------------- ##
15704_ASBOX
15705     ) | sed "s/^/$as_me: WARNING:     /" >&2
15706    ;;
15707esac
15708{ $as_echo "$as_me:$LINENO: checking for stdbool.h" >&5
15709$as_echo_n "checking for stdbool.h... " >&6; }
15710if test "${ac_cv_header_stdbool_h+set}" = set; then
15711  $as_echo_n "(cached) " >&6
15712else
15713  ac_cv_header_stdbool_h=$ac_header_preproc
15714fi
15715{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
15716$as_echo "$ac_cv_header_stdbool_h" >&6; }
15717
15718fi
15719if test "x$ac_cv_header_stdbool_h" = x""yes; then
15720   ac_config_commands="$ac_config_commands rm-stdbool.h"
15721
15722else
15723   ac_config_commands="$ac_config_commands mk-stdbool.h"
15724
15725
15726fi
15727
15728
15729
15730
15731{ $as_echo "$as_me:$LINENO: checking for bool" >&5
15732$as_echo_n "checking for bool... " >&6; }
15733if test "${ac_cv_type_bool+set}" = set; then
15734  $as_echo_n "(cached) " >&6
15735else
15736  ac_cv_type_bool=no
15737cat >conftest.$ac_ext <<_ACEOF
15738/* confdefs.h.  */
15739_ACEOF
15740cat confdefs.h >>conftest.$ac_ext
15741cat >>conftest.$ac_ext <<_ACEOF
15742/* end confdefs.h.  */
15743
15744$ac_includes_default
15745#ifdef HAVE_STDBOOL_H
15746#include <stdbool.h>
15747#endif
15748
15749
15750int
15751main ()
15752{
15753if (sizeof (bool))
15754       return 0;
15755  ;
15756  return 0;
15757}
15758_ACEOF
15759rm -f conftest.$ac_objext
15760if { (ac_try="$ac_compile"
15761case "(($ac_try" in
15762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763  *) ac_try_echo=$ac_try;;
15764esac
15765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15766$as_echo "$ac_try_echo") >&5
15767  (eval "$ac_compile") 2>conftest.er1
15768  ac_status=$?
15769  grep -v '^ *+' conftest.er1 >conftest.err
15770  rm -f conftest.er1
15771  cat conftest.err >&5
15772  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773  (exit $ac_status); } && {
15774	 test -z "$ac_c_werror_flag" ||
15775	 test ! -s conftest.err
15776       } && test -s conftest.$ac_objext; then
15777  cat >conftest.$ac_ext <<_ACEOF
15778/* confdefs.h.  */
15779_ACEOF
15780cat confdefs.h >>conftest.$ac_ext
15781cat >>conftest.$ac_ext <<_ACEOF
15782/* end confdefs.h.  */
15783
15784$ac_includes_default
15785#ifdef HAVE_STDBOOL_H
15786#include <stdbool.h>
15787#endif
15788
15789
15790int
15791main ()
15792{
15793if (sizeof ((bool)))
15794	  return 0;
15795  ;
15796  return 0;
15797}
15798_ACEOF
15799rm -f conftest.$ac_objext
15800if { (ac_try="$ac_compile"
15801case "(($ac_try" in
15802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803  *) ac_try_echo=$ac_try;;
15804esac
15805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15806$as_echo "$ac_try_echo") >&5
15807  (eval "$ac_compile") 2>conftest.er1
15808  ac_status=$?
15809  grep -v '^ *+' conftest.er1 >conftest.err
15810  rm -f conftest.er1
15811  cat conftest.err >&5
15812  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813  (exit $ac_status); } && {
15814	 test -z "$ac_c_werror_flag" ||
15815	 test ! -s conftest.err
15816       } && test -s conftest.$ac_objext; then
15817  :
15818else
15819  $as_echo "$as_me: failed program was:" >&5
15820sed 's/^/| /' conftest.$ac_ext >&5
15821
15822	ac_cv_type_bool=yes
15823fi
15824
15825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15826else
15827  $as_echo "$as_me: failed program was:" >&5
15828sed 's/^/| /' conftest.$ac_ext >&5
15829
15830
15831fi
15832
15833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15834fi
15835{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
15836$as_echo "$ac_cv_type_bool" >&6; }
15837if test "x$ac_cv_type_bool" = x""yes; then
15838
15839cat >>confdefs.h <<\_ACEOF
15840#define HAVE_BOOL 1
15841_ACEOF
15842
15843fi
15844
15845
15846{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
15847$as_echo_n "checking for _Bool... " >&6; }
15848if test "${ac_cv_type__Bool+set}" = set; then
15849  $as_echo_n "(cached) " >&6
15850else
15851  ac_cv_type__Bool=no
15852cat >conftest.$ac_ext <<_ACEOF
15853/* confdefs.h.  */
15854_ACEOF
15855cat confdefs.h >>conftest.$ac_ext
15856cat >>conftest.$ac_ext <<_ACEOF
15857/* end confdefs.h.  */
15858
15859$ac_includes_default
15860#ifdef HAVE_STDBOOL_H
15861#include <stdbool.h>
15862#endif
15863
15864
15865int
15866main ()
15867{
15868if (sizeof (_Bool))
15869       return 0;
15870  ;
15871  return 0;
15872}
15873_ACEOF
15874rm -f conftest.$ac_objext
15875if { (ac_try="$ac_compile"
15876case "(($ac_try" in
15877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878  *) ac_try_echo=$ac_try;;
15879esac
15880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15881$as_echo "$ac_try_echo") >&5
15882  (eval "$ac_compile") 2>conftest.er1
15883  ac_status=$?
15884  grep -v '^ *+' conftest.er1 >conftest.err
15885  rm -f conftest.er1
15886  cat conftest.err >&5
15887  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888  (exit $ac_status); } && {
15889	 test -z "$ac_c_werror_flag" ||
15890	 test ! -s conftest.err
15891       } && test -s conftest.$ac_objext; then
15892  cat >conftest.$ac_ext <<_ACEOF
15893/* confdefs.h.  */
15894_ACEOF
15895cat confdefs.h >>conftest.$ac_ext
15896cat >>conftest.$ac_ext <<_ACEOF
15897/* end confdefs.h.  */
15898
15899$ac_includes_default
15900#ifdef HAVE_STDBOOL_H
15901#include <stdbool.h>
15902#endif
15903
15904
15905int
15906main ()
15907{
15908if (sizeof ((_Bool)))
15909	  return 0;
15910  ;
15911  return 0;
15912}
15913_ACEOF
15914rm -f conftest.$ac_objext
15915if { (ac_try="$ac_compile"
15916case "(($ac_try" in
15917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918  *) ac_try_echo=$ac_try;;
15919esac
15920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15921$as_echo "$ac_try_echo") >&5
15922  (eval "$ac_compile") 2>conftest.er1
15923  ac_status=$?
15924  grep -v '^ *+' conftest.er1 >conftest.err
15925  rm -f conftest.er1
15926  cat conftest.err >&5
15927  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928  (exit $ac_status); } && {
15929	 test -z "$ac_c_werror_flag" ||
15930	 test ! -s conftest.err
15931       } && test -s conftest.$ac_objext; then
15932  :
15933else
15934  $as_echo "$as_me: failed program was:" >&5
15935sed 's/^/| /' conftest.$ac_ext >&5
15936
15937	ac_cv_type__Bool=yes
15938fi
15939
15940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15941else
15942  $as_echo "$as_me: failed program was:" >&5
15943sed 's/^/| /' conftest.$ac_ext >&5
15944
15945
15946fi
15947
15948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949fi
15950{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
15951$as_echo "$ac_cv_type__Bool" >&6; }
15952if test "x$ac_cv_type__Bool" = x""yes; then
15953
15954cat >>confdefs.h <<\_ACEOF
15955#define HAVE__Bool 1
15956_ACEOF
15957
15958fi
15959
15960
15961{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
15962$as_echo_n "checking for working mmap... " >&6; }
15963if test "${libreplace_cv_HAVE_MMAP+set}" = set; then
15964  $as_echo_n "(cached) " >&6
15965else
15966
15967if test "$cross_compiling" = yes; then
15968  libreplace_cv_HAVE_MMAP=cross
15969else
15970  cat >conftest.$ac_ext <<_ACEOF
15971/* confdefs.h.  */
15972_ACEOF
15973cat confdefs.h >>conftest.$ac_ext
15974cat >>conftest.$ac_ext <<_ACEOF
15975/* end confdefs.h.  */
15976#include "$libreplacedir/test/shared_mmap.c"
15977_ACEOF
15978rm -f conftest$ac_exeext
15979if { (ac_try="$ac_link"
15980case "(($ac_try" in
15981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15982  *) ac_try_echo=$ac_try;;
15983esac
15984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15985$as_echo "$ac_try_echo") >&5
15986  (eval "$ac_link") 2>&5
15987  ac_status=$?
15988  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15990  { (case "(($ac_try" in
15991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992  *) ac_try_echo=$ac_try;;
15993esac
15994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15995$as_echo "$ac_try_echo") >&5
15996  (eval "$ac_try") 2>&5
15997  ac_status=$?
15998  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999  (exit $ac_status); }; }; then
16000  libreplace_cv_HAVE_MMAP=yes
16001else
16002  $as_echo "$as_me: program exited with status $ac_status" >&5
16003$as_echo "$as_me: failed program was:" >&5
16004sed 's/^/| /' conftest.$ac_ext >&5
16005
16006( exit $ac_status )
16007libreplace_cv_HAVE_MMAP=no
16008fi
16009rm -rf conftest.dSYM
16010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16011fi
16012
16013
16014fi
16015{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_MMAP" >&5
16016$as_echo "$libreplace_cv_HAVE_MMAP" >&6; }
16017if test x"$libreplace_cv_HAVE_MMAP" = x"yes"; then
16018
16019cat >>confdefs.h <<\_ACEOF
16020#define HAVE_MMAP 1
16021_ACEOF
16022
16023fi
16024
16025
16026
16027
16028for ac_header in sys/syslog.h syslog.h
16029do
16030as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16032  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16033$as_echo_n "checking for $ac_header... " >&6; }
16034if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16035  $as_echo_n "(cached) " >&6
16036fi
16037ac_res=`eval 'as_val=${'$as_ac_Header'}
16038		 $as_echo "$as_val"'`
16039	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16040$as_echo "$ac_res" >&6; }
16041else
16042  # Is the header compilable?
16043{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16044$as_echo_n "checking $ac_header usability... " >&6; }
16045cat >conftest.$ac_ext <<_ACEOF
16046/* confdefs.h.  */
16047_ACEOF
16048cat confdefs.h >>conftest.$ac_ext
16049cat >>conftest.$ac_ext <<_ACEOF
16050/* end confdefs.h.  */
16051$ac_includes_default
16052#include <$ac_header>
16053_ACEOF
16054rm -f conftest.$ac_objext
16055if { (ac_try="$ac_compile"
16056case "(($ac_try" in
16057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058  *) ac_try_echo=$ac_try;;
16059esac
16060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16061$as_echo "$ac_try_echo") >&5
16062  (eval "$ac_compile") 2>conftest.er1
16063  ac_status=$?
16064  grep -v '^ *+' conftest.er1 >conftest.err
16065  rm -f conftest.er1
16066  cat conftest.err >&5
16067  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068  (exit $ac_status); } && {
16069	 test -z "$ac_c_werror_flag" ||
16070	 test ! -s conftest.err
16071       } && test -s conftest.$ac_objext; then
16072  ac_header_compiler=yes
16073else
16074  $as_echo "$as_me: failed program was:" >&5
16075sed 's/^/| /' conftest.$ac_ext >&5
16076
16077	ac_header_compiler=no
16078fi
16079
16080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16081{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16082$as_echo "$ac_header_compiler" >&6; }
16083
16084# Is the header present?
16085{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16086$as_echo_n "checking $ac_header presence... " >&6; }
16087cat >conftest.$ac_ext <<_ACEOF
16088/* confdefs.h.  */
16089_ACEOF
16090cat confdefs.h >>conftest.$ac_ext
16091cat >>conftest.$ac_ext <<_ACEOF
16092/* end confdefs.h.  */
16093#include <$ac_header>
16094_ACEOF
16095if { (ac_try="$ac_cpp conftest.$ac_ext"
16096case "(($ac_try" in
16097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098  *) ac_try_echo=$ac_try;;
16099esac
16100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16101$as_echo "$ac_try_echo") >&5
16102  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16103  ac_status=$?
16104  grep -v '^ *+' conftest.er1 >conftest.err
16105  rm -f conftest.er1
16106  cat conftest.err >&5
16107  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108  (exit $ac_status); } >/dev/null && {
16109	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16110	 test ! -s conftest.err
16111       }; then
16112  ac_header_preproc=yes
16113else
16114  $as_echo "$as_me: failed program was:" >&5
16115sed 's/^/| /' conftest.$ac_ext >&5
16116
16117  ac_header_preproc=no
16118fi
16119
16120rm -f conftest.err conftest.$ac_ext
16121{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16122$as_echo "$ac_header_preproc" >&6; }
16123
16124# So?  What about this header?
16125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16126  yes:no: )
16127    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16128$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16129    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16130$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16131    ac_header_preproc=yes
16132    ;;
16133  no:yes:* )
16134    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16135$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16136    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16137$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16138    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16139$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16140    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16141$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16142    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16143$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16144    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16145$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16146    ( cat <<\_ASBOX
16147## ---------------------------------------- ##
16148## Report this to samba-technical@samba.org ##
16149## ---------------------------------------- ##
16150_ASBOX
16151     ) | sed "s/^/$as_me: WARNING:     /" >&2
16152    ;;
16153esac
16154{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16155$as_echo_n "checking for $ac_header... " >&6; }
16156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16157  $as_echo_n "(cached) " >&6
16158else
16159  eval "$as_ac_Header=\$ac_header_preproc"
16160fi
16161ac_res=`eval 'as_val=${'$as_ac_Header'}
16162		 $as_echo "$as_val"'`
16163	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16164$as_echo "$ac_res" >&6; }
16165
16166fi
16167as_val=`eval 'as_val=${'$as_ac_Header'}
16168		 $as_echo "$as_val"'`
16169   if test "x$as_val" = x""yes; then
16170  cat >>confdefs.h <<_ACEOF
16171#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16172_ACEOF
16173
16174fi
16175
16176done
16177
16178
16179
16180for ac_header in sys/time.h time.h
16181do
16182as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16183if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16184  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16185$as_echo_n "checking for $ac_header... " >&6; }
16186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16187  $as_echo_n "(cached) " >&6
16188fi
16189ac_res=`eval 'as_val=${'$as_ac_Header'}
16190		 $as_echo "$as_val"'`
16191	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16192$as_echo "$ac_res" >&6; }
16193else
16194  # Is the header compilable?
16195{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16196$as_echo_n "checking $ac_header usability... " >&6; }
16197cat >conftest.$ac_ext <<_ACEOF
16198/* confdefs.h.  */
16199_ACEOF
16200cat confdefs.h >>conftest.$ac_ext
16201cat >>conftest.$ac_ext <<_ACEOF
16202/* end confdefs.h.  */
16203$ac_includes_default
16204#include <$ac_header>
16205_ACEOF
16206rm -f conftest.$ac_objext
16207if { (ac_try="$ac_compile"
16208case "(($ac_try" in
16209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210  *) ac_try_echo=$ac_try;;
16211esac
16212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16213$as_echo "$ac_try_echo") >&5
16214  (eval "$ac_compile") 2>conftest.er1
16215  ac_status=$?
16216  grep -v '^ *+' conftest.er1 >conftest.err
16217  rm -f conftest.er1
16218  cat conftest.err >&5
16219  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220  (exit $ac_status); } && {
16221	 test -z "$ac_c_werror_flag" ||
16222	 test ! -s conftest.err
16223       } && test -s conftest.$ac_objext; then
16224  ac_header_compiler=yes
16225else
16226  $as_echo "$as_me: failed program was:" >&5
16227sed 's/^/| /' conftest.$ac_ext >&5
16228
16229	ac_header_compiler=no
16230fi
16231
16232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16233{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16234$as_echo "$ac_header_compiler" >&6; }
16235
16236# Is the header present?
16237{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16238$as_echo_n "checking $ac_header presence... " >&6; }
16239cat >conftest.$ac_ext <<_ACEOF
16240/* confdefs.h.  */
16241_ACEOF
16242cat confdefs.h >>conftest.$ac_ext
16243cat >>conftest.$ac_ext <<_ACEOF
16244/* end confdefs.h.  */
16245#include <$ac_header>
16246_ACEOF
16247if { (ac_try="$ac_cpp conftest.$ac_ext"
16248case "(($ac_try" in
16249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250  *) ac_try_echo=$ac_try;;
16251esac
16252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16253$as_echo "$ac_try_echo") >&5
16254  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16255  ac_status=$?
16256  grep -v '^ *+' conftest.er1 >conftest.err
16257  rm -f conftest.er1
16258  cat conftest.err >&5
16259  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260  (exit $ac_status); } >/dev/null && {
16261	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16262	 test ! -s conftest.err
16263       }; then
16264  ac_header_preproc=yes
16265else
16266  $as_echo "$as_me: failed program was:" >&5
16267sed 's/^/| /' conftest.$ac_ext >&5
16268
16269  ac_header_preproc=no
16270fi
16271
16272rm -f conftest.err conftest.$ac_ext
16273{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16274$as_echo "$ac_header_preproc" >&6; }
16275
16276# So?  What about this header?
16277case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16278  yes:no: )
16279    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16280$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16281    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16282$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16283    ac_header_preproc=yes
16284    ;;
16285  no:yes:* )
16286    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16287$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16288    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16289$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16290    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16291$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16292    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16293$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16294    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16295$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16296    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16297$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16298    ( cat <<\_ASBOX
16299## ---------------------------------------- ##
16300## Report this to samba-technical@samba.org ##
16301## ---------------------------------------- ##
16302_ASBOX
16303     ) | sed "s/^/$as_me: WARNING:     /" >&2
16304    ;;
16305esac
16306{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16307$as_echo_n "checking for $ac_header... " >&6; }
16308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16309  $as_echo_n "(cached) " >&6
16310else
16311  eval "$as_ac_Header=\$ac_header_preproc"
16312fi
16313ac_res=`eval 'as_val=${'$as_ac_Header'}
16314		 $as_echo "$as_val"'`
16315	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16316$as_echo "$ac_res" >&6; }
16317
16318fi
16319as_val=`eval 'as_val=${'$as_ac_Header'}
16320		 $as_echo "$as_val"'`
16321   if test "x$as_val" = x""yes; then
16322  cat >>confdefs.h <<_ACEOF
16323#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16324_ACEOF
16325
16326fi
16327
16328done
16329
16330
16331
16332for ac_header in stdarg.h vararg.h
16333do
16334as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16336  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16337$as_echo_n "checking for $ac_header... " >&6; }
16338if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16339  $as_echo_n "(cached) " >&6
16340fi
16341ac_res=`eval 'as_val=${'$as_ac_Header'}
16342		 $as_echo "$as_val"'`
16343	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16344$as_echo "$ac_res" >&6; }
16345else
16346  # Is the header compilable?
16347{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16348$as_echo_n "checking $ac_header usability... " >&6; }
16349cat >conftest.$ac_ext <<_ACEOF
16350/* confdefs.h.  */
16351_ACEOF
16352cat confdefs.h >>conftest.$ac_ext
16353cat >>conftest.$ac_ext <<_ACEOF
16354/* end confdefs.h.  */
16355$ac_includes_default
16356#include <$ac_header>
16357_ACEOF
16358rm -f conftest.$ac_objext
16359if { (ac_try="$ac_compile"
16360case "(($ac_try" in
16361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362  *) ac_try_echo=$ac_try;;
16363esac
16364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16365$as_echo "$ac_try_echo") >&5
16366  (eval "$ac_compile") 2>conftest.er1
16367  ac_status=$?
16368  grep -v '^ *+' conftest.er1 >conftest.err
16369  rm -f conftest.er1
16370  cat conftest.err >&5
16371  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372  (exit $ac_status); } && {
16373	 test -z "$ac_c_werror_flag" ||
16374	 test ! -s conftest.err
16375       } && test -s conftest.$ac_objext; then
16376  ac_header_compiler=yes
16377else
16378  $as_echo "$as_me: failed program was:" >&5
16379sed 's/^/| /' conftest.$ac_ext >&5
16380
16381	ac_header_compiler=no
16382fi
16383
16384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16385{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16386$as_echo "$ac_header_compiler" >&6; }
16387
16388# Is the header present?
16389{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16390$as_echo_n "checking $ac_header presence... " >&6; }
16391cat >conftest.$ac_ext <<_ACEOF
16392/* confdefs.h.  */
16393_ACEOF
16394cat confdefs.h >>conftest.$ac_ext
16395cat >>conftest.$ac_ext <<_ACEOF
16396/* end confdefs.h.  */
16397#include <$ac_header>
16398_ACEOF
16399if { (ac_try="$ac_cpp conftest.$ac_ext"
16400case "(($ac_try" in
16401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402  *) ac_try_echo=$ac_try;;
16403esac
16404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16405$as_echo "$ac_try_echo") >&5
16406  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16407  ac_status=$?
16408  grep -v '^ *+' conftest.er1 >conftest.err
16409  rm -f conftest.er1
16410  cat conftest.err >&5
16411  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412  (exit $ac_status); } >/dev/null && {
16413	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16414	 test ! -s conftest.err
16415       }; then
16416  ac_header_preproc=yes
16417else
16418  $as_echo "$as_me: failed program was:" >&5
16419sed 's/^/| /' conftest.$ac_ext >&5
16420
16421  ac_header_preproc=no
16422fi
16423
16424rm -f conftest.err conftest.$ac_ext
16425{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16426$as_echo "$ac_header_preproc" >&6; }
16427
16428# So?  What about this header?
16429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16430  yes:no: )
16431    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16432$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16433    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16434$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16435    ac_header_preproc=yes
16436    ;;
16437  no:yes:* )
16438    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16439$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16440    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16441$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16442    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16443$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16444    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16445$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16446    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16447$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16448    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16449$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16450    ( cat <<\_ASBOX
16451## ---------------------------------------- ##
16452## Report this to samba-technical@samba.org ##
16453## ---------------------------------------- ##
16454_ASBOX
16455     ) | sed "s/^/$as_me: WARNING:     /" >&2
16456    ;;
16457esac
16458{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16459$as_echo_n "checking for $ac_header... " >&6; }
16460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16461  $as_echo_n "(cached) " >&6
16462else
16463  eval "$as_ac_Header=\$ac_header_preproc"
16464fi
16465ac_res=`eval 'as_val=${'$as_ac_Header'}
16466		 $as_echo "$as_val"'`
16467	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16468$as_echo "$ac_res" >&6; }
16469
16470fi
16471as_val=`eval 'as_val=${'$as_ac_Header'}
16472		 $as_echo "$as_val"'`
16473   if test "x$as_val" = x""yes; then
16474  cat >>confdefs.h <<_ACEOF
16475#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16476_ACEOF
16477
16478fi
16479
16480done
16481
16482
16483
16484for ac_header in sys/mount.h mntent.h
16485do
16486as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16488  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16489$as_echo_n "checking for $ac_header... " >&6; }
16490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16491  $as_echo_n "(cached) " >&6
16492fi
16493ac_res=`eval 'as_val=${'$as_ac_Header'}
16494		 $as_echo "$as_val"'`
16495	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16496$as_echo "$ac_res" >&6; }
16497else
16498  # Is the header compilable?
16499{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16500$as_echo_n "checking $ac_header usability... " >&6; }
16501cat >conftest.$ac_ext <<_ACEOF
16502/* confdefs.h.  */
16503_ACEOF
16504cat confdefs.h >>conftest.$ac_ext
16505cat >>conftest.$ac_ext <<_ACEOF
16506/* end confdefs.h.  */
16507$ac_includes_default
16508#include <$ac_header>
16509_ACEOF
16510rm -f conftest.$ac_objext
16511if { (ac_try="$ac_compile"
16512case "(($ac_try" in
16513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514  *) ac_try_echo=$ac_try;;
16515esac
16516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16517$as_echo "$ac_try_echo") >&5
16518  (eval "$ac_compile") 2>conftest.er1
16519  ac_status=$?
16520  grep -v '^ *+' conftest.er1 >conftest.err
16521  rm -f conftest.er1
16522  cat conftest.err >&5
16523  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524  (exit $ac_status); } && {
16525	 test -z "$ac_c_werror_flag" ||
16526	 test ! -s conftest.err
16527       } && test -s conftest.$ac_objext; then
16528  ac_header_compiler=yes
16529else
16530  $as_echo "$as_me: failed program was:" >&5
16531sed 's/^/| /' conftest.$ac_ext >&5
16532
16533	ac_header_compiler=no
16534fi
16535
16536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16537{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16538$as_echo "$ac_header_compiler" >&6; }
16539
16540# Is the header present?
16541{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16542$as_echo_n "checking $ac_header presence... " >&6; }
16543cat >conftest.$ac_ext <<_ACEOF
16544/* confdefs.h.  */
16545_ACEOF
16546cat confdefs.h >>conftest.$ac_ext
16547cat >>conftest.$ac_ext <<_ACEOF
16548/* end confdefs.h.  */
16549#include <$ac_header>
16550_ACEOF
16551if { (ac_try="$ac_cpp conftest.$ac_ext"
16552case "(($ac_try" in
16553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554  *) ac_try_echo=$ac_try;;
16555esac
16556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16557$as_echo "$ac_try_echo") >&5
16558  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16559  ac_status=$?
16560  grep -v '^ *+' conftest.er1 >conftest.err
16561  rm -f conftest.er1
16562  cat conftest.err >&5
16563  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564  (exit $ac_status); } >/dev/null && {
16565	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16566	 test ! -s conftest.err
16567       }; then
16568  ac_header_preproc=yes
16569else
16570  $as_echo "$as_me: failed program was:" >&5
16571sed 's/^/| /' conftest.$ac_ext >&5
16572
16573  ac_header_preproc=no
16574fi
16575
16576rm -f conftest.err conftest.$ac_ext
16577{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16578$as_echo "$ac_header_preproc" >&6; }
16579
16580# So?  What about this header?
16581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16582  yes:no: )
16583    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16584$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16585    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16586$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16587    ac_header_preproc=yes
16588    ;;
16589  no:yes:* )
16590    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16591$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16592    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16593$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16594    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16595$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16596    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16597$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16598    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16599$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16600    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16601$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16602    ( cat <<\_ASBOX
16603## ---------------------------------------- ##
16604## Report this to samba-technical@samba.org ##
16605## ---------------------------------------- ##
16606_ASBOX
16607     ) | sed "s/^/$as_me: WARNING:     /" >&2
16608    ;;
16609esac
16610{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16611$as_echo_n "checking for $ac_header... " >&6; }
16612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16613  $as_echo_n "(cached) " >&6
16614else
16615  eval "$as_ac_Header=\$ac_header_preproc"
16616fi
16617ac_res=`eval 'as_val=${'$as_ac_Header'}
16618		 $as_echo "$as_val"'`
16619	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16620$as_echo "$ac_res" >&6; }
16621
16622fi
16623as_val=`eval 'as_val=${'$as_ac_Header'}
16624		 $as_echo "$as_val"'`
16625   if test "x$as_val" = x""yes; then
16626  cat >>confdefs.h <<_ACEOF
16627#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16628_ACEOF
16629
16630fi
16631
16632done
16633
16634
16635for ac_header in stropts.h
16636do
16637as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16639  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16640$as_echo_n "checking for $ac_header... " >&6; }
16641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16642  $as_echo_n "(cached) " >&6
16643fi
16644ac_res=`eval 'as_val=${'$as_ac_Header'}
16645		 $as_echo "$as_val"'`
16646	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16647$as_echo "$ac_res" >&6; }
16648else
16649  # Is the header compilable?
16650{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16651$as_echo_n "checking $ac_header usability... " >&6; }
16652cat >conftest.$ac_ext <<_ACEOF
16653/* confdefs.h.  */
16654_ACEOF
16655cat confdefs.h >>conftest.$ac_ext
16656cat >>conftest.$ac_ext <<_ACEOF
16657/* end confdefs.h.  */
16658$ac_includes_default
16659#include <$ac_header>
16660_ACEOF
16661rm -f conftest.$ac_objext
16662if { (ac_try="$ac_compile"
16663case "(($ac_try" in
16664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665  *) ac_try_echo=$ac_try;;
16666esac
16667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16668$as_echo "$ac_try_echo") >&5
16669  (eval "$ac_compile") 2>conftest.er1
16670  ac_status=$?
16671  grep -v '^ *+' conftest.er1 >conftest.err
16672  rm -f conftest.er1
16673  cat conftest.err >&5
16674  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675  (exit $ac_status); } && {
16676	 test -z "$ac_c_werror_flag" ||
16677	 test ! -s conftest.err
16678       } && test -s conftest.$ac_objext; then
16679  ac_header_compiler=yes
16680else
16681  $as_echo "$as_me: failed program was:" >&5
16682sed 's/^/| /' conftest.$ac_ext >&5
16683
16684	ac_header_compiler=no
16685fi
16686
16687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16688{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16689$as_echo "$ac_header_compiler" >&6; }
16690
16691# Is the header present?
16692{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16693$as_echo_n "checking $ac_header presence... " >&6; }
16694cat >conftest.$ac_ext <<_ACEOF
16695/* confdefs.h.  */
16696_ACEOF
16697cat confdefs.h >>conftest.$ac_ext
16698cat >>conftest.$ac_ext <<_ACEOF
16699/* end confdefs.h.  */
16700#include <$ac_header>
16701_ACEOF
16702if { (ac_try="$ac_cpp conftest.$ac_ext"
16703case "(($ac_try" in
16704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705  *) ac_try_echo=$ac_try;;
16706esac
16707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16708$as_echo "$ac_try_echo") >&5
16709  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16710  ac_status=$?
16711  grep -v '^ *+' conftest.er1 >conftest.err
16712  rm -f conftest.er1
16713  cat conftest.err >&5
16714  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715  (exit $ac_status); } >/dev/null && {
16716	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16717	 test ! -s conftest.err
16718       }; then
16719  ac_header_preproc=yes
16720else
16721  $as_echo "$as_me: failed program was:" >&5
16722sed 's/^/| /' conftest.$ac_ext >&5
16723
16724  ac_header_preproc=no
16725fi
16726
16727rm -f conftest.err conftest.$ac_ext
16728{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16729$as_echo "$ac_header_preproc" >&6; }
16730
16731# So?  What about this header?
16732case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16733  yes:no: )
16734    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16735$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16736    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16737$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16738    ac_header_preproc=yes
16739    ;;
16740  no:yes:* )
16741    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16742$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16743    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16744$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16745    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16746$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16747    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16748$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16749    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16750$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16751    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16752$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16753    ( cat <<\_ASBOX
16754## ---------------------------------------- ##
16755## Report this to samba-technical@samba.org ##
16756## ---------------------------------------- ##
16757_ASBOX
16758     ) | sed "s/^/$as_me: WARNING:     /" >&2
16759    ;;
16760esac
16761{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16762$as_echo_n "checking for $ac_header... " >&6; }
16763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16764  $as_echo_n "(cached) " >&6
16765else
16766  eval "$as_ac_Header=\$ac_header_preproc"
16767fi
16768ac_res=`eval 'as_val=${'$as_ac_Header'}
16769		 $as_echo "$as_val"'`
16770	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16771$as_echo "$ac_res" >&6; }
16772
16773fi
16774as_val=`eval 'as_val=${'$as_ac_Header'}
16775		 $as_echo "$as_val"'`
16776   if test "x$as_val" = x""yes; then
16777  cat >>confdefs.h <<_ACEOF
16778#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16779_ACEOF
16780
16781fi
16782
16783done
16784
16785
16786for ac_header in unix.h
16787do
16788as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16790  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16791$as_echo_n "checking for $ac_header... " >&6; }
16792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16793  $as_echo_n "(cached) " >&6
16794fi
16795ac_res=`eval 'as_val=${'$as_ac_Header'}
16796		 $as_echo "$as_val"'`
16797	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16798$as_echo "$ac_res" >&6; }
16799else
16800  # Is the header compilable?
16801{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16802$as_echo_n "checking $ac_header usability... " >&6; }
16803cat >conftest.$ac_ext <<_ACEOF
16804/* confdefs.h.  */
16805_ACEOF
16806cat confdefs.h >>conftest.$ac_ext
16807cat >>conftest.$ac_ext <<_ACEOF
16808/* end confdefs.h.  */
16809$ac_includes_default
16810#include <$ac_header>
16811_ACEOF
16812rm -f conftest.$ac_objext
16813if { (ac_try="$ac_compile"
16814case "(($ac_try" in
16815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816  *) ac_try_echo=$ac_try;;
16817esac
16818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16819$as_echo "$ac_try_echo") >&5
16820  (eval "$ac_compile") 2>conftest.er1
16821  ac_status=$?
16822  grep -v '^ *+' conftest.er1 >conftest.err
16823  rm -f conftest.er1
16824  cat conftest.err >&5
16825  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826  (exit $ac_status); } && {
16827	 test -z "$ac_c_werror_flag" ||
16828	 test ! -s conftest.err
16829       } && test -s conftest.$ac_objext; then
16830  ac_header_compiler=yes
16831else
16832  $as_echo "$as_me: failed program was:" >&5
16833sed 's/^/| /' conftest.$ac_ext >&5
16834
16835	ac_header_compiler=no
16836fi
16837
16838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16839{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16840$as_echo "$ac_header_compiler" >&6; }
16841
16842# Is the header present?
16843{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16844$as_echo_n "checking $ac_header presence... " >&6; }
16845cat >conftest.$ac_ext <<_ACEOF
16846/* confdefs.h.  */
16847_ACEOF
16848cat confdefs.h >>conftest.$ac_ext
16849cat >>conftest.$ac_ext <<_ACEOF
16850/* end confdefs.h.  */
16851#include <$ac_header>
16852_ACEOF
16853if { (ac_try="$ac_cpp conftest.$ac_ext"
16854case "(($ac_try" in
16855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856  *) ac_try_echo=$ac_try;;
16857esac
16858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16859$as_echo "$ac_try_echo") >&5
16860  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16861  ac_status=$?
16862  grep -v '^ *+' conftest.er1 >conftest.err
16863  rm -f conftest.er1
16864  cat conftest.err >&5
16865  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866  (exit $ac_status); } >/dev/null && {
16867	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16868	 test ! -s conftest.err
16869       }; then
16870  ac_header_preproc=yes
16871else
16872  $as_echo "$as_me: failed program was:" >&5
16873sed 's/^/| /' conftest.$ac_ext >&5
16874
16875  ac_header_preproc=no
16876fi
16877
16878rm -f conftest.err conftest.$ac_ext
16879{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16880$as_echo "$ac_header_preproc" >&6; }
16881
16882# So?  What about this header?
16883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16884  yes:no: )
16885    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16886$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16887    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16888$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16889    ac_header_preproc=yes
16890    ;;
16891  no:yes:* )
16892    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16893$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16894    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16895$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16896    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16897$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16898    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16899$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16900    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16901$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16902    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16903$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16904    ( cat <<\_ASBOX
16905## ---------------------------------------- ##
16906## Report this to samba-technical@samba.org ##
16907## ---------------------------------------- ##
16908_ASBOX
16909     ) | sed "s/^/$as_me: WARNING:     /" >&2
16910    ;;
16911esac
16912{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16913$as_echo_n "checking for $ac_header... " >&6; }
16914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16915  $as_echo_n "(cached) " >&6
16916else
16917  eval "$as_ac_Header=\$ac_header_preproc"
16918fi
16919ac_res=`eval 'as_val=${'$as_ac_Header'}
16920		 $as_echo "$as_val"'`
16921	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16922$as_echo "$ac_res" >&6; }
16923
16924fi
16925as_val=`eval 'as_val=${'$as_ac_Header'}
16926		 $as_echo "$as_val"'`
16927   if test "x$as_val" = x""yes; then
16928  cat >>confdefs.h <<_ACEOF
16929#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16930_ACEOF
16931
16932fi
16933
16934done
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944for ac_func in seteuid setresuid setegid setresgid chroot bzero strerror
16945do
16946as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16947{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16948$as_echo_n "checking for $ac_func... " >&6; }
16949if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16950  $as_echo_n "(cached) " >&6
16951else
16952  cat >conftest.$ac_ext <<_ACEOF
16953/* confdefs.h.  */
16954_ACEOF
16955cat confdefs.h >>conftest.$ac_ext
16956cat >>conftest.$ac_ext <<_ACEOF
16957/* end confdefs.h.  */
16958/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16959   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16960#define $ac_func innocuous_$ac_func
16961
16962/* System header to define __stub macros and hopefully few prototypes,
16963    which can conflict with char $ac_func (); below.
16964    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16965    <limits.h> exists even on freestanding compilers.  */
16966
16967#ifdef __STDC__
16968# include <limits.h>
16969#else
16970# include <assert.h>
16971#endif
16972
16973#undef $ac_func
16974
16975/* Override any GCC internal prototype to avoid an error.
16976   Use char because int might match the return type of a GCC
16977   builtin and then its argument prototype would still apply.  */
16978#ifdef __cplusplus
16979extern "C"
16980#endif
16981char $ac_func ();
16982/* The GNU C library defines this for functions which it implements
16983    to always fail with ENOSYS.  Some functions are actually named
16984    something starting with __ and the normal name is an alias.  */
16985#if defined __stub_$ac_func || defined __stub___$ac_func
16986choke me
16987#endif
16988
16989int
16990main ()
16991{
16992return $ac_func ();
16993  ;
16994  return 0;
16995}
16996_ACEOF
16997rm -f conftest.$ac_objext conftest$ac_exeext
16998if { (ac_try="$ac_link"
16999case "(($ac_try" in
17000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001  *) ac_try_echo=$ac_try;;
17002esac
17003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17004$as_echo "$ac_try_echo") >&5
17005  (eval "$ac_link") 2>conftest.er1
17006  ac_status=$?
17007  grep -v '^ *+' conftest.er1 >conftest.err
17008  rm -f conftest.er1
17009  cat conftest.err >&5
17010  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011  (exit $ac_status); } && {
17012	 test -z "$ac_c_werror_flag" ||
17013	 test ! -s conftest.err
17014       } && test -s conftest$ac_exeext && {
17015	 test "$cross_compiling" = yes ||
17016	 $as_test_x conftest$ac_exeext
17017       }; then
17018  eval "$as_ac_var=yes"
17019else
17020  $as_echo "$as_me: failed program was:" >&5
17021sed 's/^/| /' conftest.$ac_ext >&5
17022
17023	eval "$as_ac_var=no"
17024fi
17025
17026rm -rf conftest.dSYM
17027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17028      conftest$ac_exeext conftest.$ac_ext
17029fi
17030ac_res=`eval 'as_val=${'$as_ac_var'}
17031		 $as_echo "$as_val"'`
17032	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17033$as_echo "$ac_res" >&6; }
17034as_val=`eval 'as_val=${'$as_ac_var'}
17035		 $as_echo "$as_val"'`
17036   if test "x$as_val" = x""yes; then
17037  cat >>confdefs.h <<_ACEOF
17038#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17039_ACEOF
17040
17041fi
17042done
17043
17044
17045
17046
17047
17048
17049
17050for ac_func in vsyslog setlinebuf mktime ftruncate chsize rename
17051do
17052as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17053{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17054$as_echo_n "checking for $ac_func... " >&6; }
17055if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17056  $as_echo_n "(cached) " >&6
17057else
17058  cat >conftest.$ac_ext <<_ACEOF
17059/* confdefs.h.  */
17060_ACEOF
17061cat confdefs.h >>conftest.$ac_ext
17062cat >>conftest.$ac_ext <<_ACEOF
17063/* end confdefs.h.  */
17064/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17065   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17066#define $ac_func innocuous_$ac_func
17067
17068/* System header to define __stub macros and hopefully few prototypes,
17069    which can conflict with char $ac_func (); below.
17070    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17071    <limits.h> exists even on freestanding compilers.  */
17072
17073#ifdef __STDC__
17074# include <limits.h>
17075#else
17076# include <assert.h>
17077#endif
17078
17079#undef $ac_func
17080
17081/* Override any GCC internal prototype to avoid an error.
17082   Use char because int might match the return type of a GCC
17083   builtin and then its argument prototype would still apply.  */
17084#ifdef __cplusplus
17085extern "C"
17086#endif
17087char $ac_func ();
17088/* The GNU C library defines this for functions which it implements
17089    to always fail with ENOSYS.  Some functions are actually named
17090    something starting with __ and the normal name is an alias.  */
17091#if defined __stub_$ac_func || defined __stub___$ac_func
17092choke me
17093#endif
17094
17095int
17096main ()
17097{
17098return $ac_func ();
17099  ;
17100  return 0;
17101}
17102_ACEOF
17103rm -f conftest.$ac_objext conftest$ac_exeext
17104if { (ac_try="$ac_link"
17105case "(($ac_try" in
17106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107  *) ac_try_echo=$ac_try;;
17108esac
17109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17110$as_echo "$ac_try_echo") >&5
17111  (eval "$ac_link") 2>conftest.er1
17112  ac_status=$?
17113  grep -v '^ *+' conftest.er1 >conftest.err
17114  rm -f conftest.er1
17115  cat conftest.err >&5
17116  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117  (exit $ac_status); } && {
17118	 test -z "$ac_c_werror_flag" ||
17119	 test ! -s conftest.err
17120       } && test -s conftest$ac_exeext && {
17121	 test "$cross_compiling" = yes ||
17122	 $as_test_x conftest$ac_exeext
17123       }; then
17124  eval "$as_ac_var=yes"
17125else
17126  $as_echo "$as_me: failed program was:" >&5
17127sed 's/^/| /' conftest.$ac_ext >&5
17128
17129	eval "$as_ac_var=no"
17130fi
17131
17132rm -rf conftest.dSYM
17133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17134      conftest$ac_exeext conftest.$ac_ext
17135fi
17136ac_res=`eval 'as_val=${'$as_ac_var'}
17137		 $as_echo "$as_val"'`
17138	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17139$as_echo "$ac_res" >&6; }
17140as_val=`eval 'as_val=${'$as_ac_var'}
17141		 $as_echo "$as_val"'`
17142   if test "x$as_val" = x""yes; then
17143  cat >>confdefs.h <<_ACEOF
17144#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17145_ACEOF
17146
17147fi
17148done
17149
17150
17151
17152
17153
17154
17155
17156
17157for ac_func in waitpid wait4 strlcpy strlcat initgroups memmove strdup
17158do
17159as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17160{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17161$as_echo_n "checking for $ac_func... " >&6; }
17162if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17163  $as_echo_n "(cached) " >&6
17164else
17165  cat >conftest.$ac_ext <<_ACEOF
17166/* confdefs.h.  */
17167_ACEOF
17168cat confdefs.h >>conftest.$ac_ext
17169cat >>conftest.$ac_ext <<_ACEOF
17170/* end confdefs.h.  */
17171/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17172   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17173#define $ac_func innocuous_$ac_func
17174
17175/* System header to define __stub macros and hopefully few prototypes,
17176    which can conflict with char $ac_func (); below.
17177    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17178    <limits.h> exists even on freestanding compilers.  */
17179
17180#ifdef __STDC__
17181# include <limits.h>
17182#else
17183# include <assert.h>
17184#endif
17185
17186#undef $ac_func
17187
17188/* Override any GCC internal prototype to avoid an error.
17189   Use char because int might match the return type of a GCC
17190   builtin and then its argument prototype would still apply.  */
17191#ifdef __cplusplus
17192extern "C"
17193#endif
17194char $ac_func ();
17195/* The GNU C library defines this for functions which it implements
17196    to always fail with ENOSYS.  Some functions are actually named
17197    something starting with __ and the normal name is an alias.  */
17198#if defined __stub_$ac_func || defined __stub___$ac_func
17199choke me
17200#endif
17201
17202int
17203main ()
17204{
17205return $ac_func ();
17206  ;
17207  return 0;
17208}
17209_ACEOF
17210rm -f conftest.$ac_objext conftest$ac_exeext
17211if { (ac_try="$ac_link"
17212case "(($ac_try" in
17213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214  *) ac_try_echo=$ac_try;;
17215esac
17216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17217$as_echo "$ac_try_echo") >&5
17218  (eval "$ac_link") 2>conftest.er1
17219  ac_status=$?
17220  grep -v '^ *+' conftest.er1 >conftest.err
17221  rm -f conftest.er1
17222  cat conftest.err >&5
17223  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224  (exit $ac_status); } && {
17225	 test -z "$ac_c_werror_flag" ||
17226	 test ! -s conftest.err
17227       } && test -s conftest$ac_exeext && {
17228	 test "$cross_compiling" = yes ||
17229	 $as_test_x conftest$ac_exeext
17230       }; then
17231  eval "$as_ac_var=yes"
17232else
17233  $as_echo "$as_me: failed program was:" >&5
17234sed 's/^/| /' conftest.$ac_ext >&5
17235
17236	eval "$as_ac_var=no"
17237fi
17238
17239rm -rf conftest.dSYM
17240rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17241      conftest$ac_exeext conftest.$ac_ext
17242fi
17243ac_res=`eval 'as_val=${'$as_ac_var'}
17244		 $as_echo "$as_val"'`
17245	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17246$as_echo "$ac_res" >&6; }
17247as_val=`eval 'as_val=${'$as_ac_var'}
17248		 $as_echo "$as_val"'`
17249   if test "x$as_val" = x""yes; then
17250  cat >>confdefs.h <<_ACEOF
17251#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17252_ACEOF
17253
17254fi
17255done
17256
17257
17258
17259
17260
17261
17262
17263
17264for ac_func in pread pwrite strndup strcasestr strtok_r mkdtemp dup2
17265do
17266as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17267{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17268$as_echo_n "checking for $ac_func... " >&6; }
17269if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17270  $as_echo_n "(cached) " >&6
17271else
17272  cat >conftest.$ac_ext <<_ACEOF
17273/* confdefs.h.  */
17274_ACEOF
17275cat confdefs.h >>conftest.$ac_ext
17276cat >>conftest.$ac_ext <<_ACEOF
17277/* end confdefs.h.  */
17278/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17279   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17280#define $ac_func innocuous_$ac_func
17281
17282/* System header to define __stub macros and hopefully few prototypes,
17283    which can conflict with char $ac_func (); below.
17284    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17285    <limits.h> exists even on freestanding compilers.  */
17286
17287#ifdef __STDC__
17288# include <limits.h>
17289#else
17290# include <assert.h>
17291#endif
17292
17293#undef $ac_func
17294
17295/* Override any GCC internal prototype to avoid an error.
17296   Use char because int might match the return type of a GCC
17297   builtin and then its argument prototype would still apply.  */
17298#ifdef __cplusplus
17299extern "C"
17300#endif
17301char $ac_func ();
17302/* The GNU C library defines this for functions which it implements
17303    to always fail with ENOSYS.  Some functions are actually named
17304    something starting with __ and the normal name is an alias.  */
17305#if defined __stub_$ac_func || defined __stub___$ac_func
17306choke me
17307#endif
17308
17309int
17310main ()
17311{
17312return $ac_func ();
17313  ;
17314  return 0;
17315}
17316_ACEOF
17317rm -f conftest.$ac_objext conftest$ac_exeext
17318if { (ac_try="$ac_link"
17319case "(($ac_try" in
17320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321  *) ac_try_echo=$ac_try;;
17322esac
17323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17324$as_echo "$ac_try_echo") >&5
17325  (eval "$ac_link") 2>conftest.er1
17326  ac_status=$?
17327  grep -v '^ *+' conftest.er1 >conftest.err
17328  rm -f conftest.er1
17329  cat conftest.err >&5
17330  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331  (exit $ac_status); } && {
17332	 test -z "$ac_c_werror_flag" ||
17333	 test ! -s conftest.err
17334       } && test -s conftest$ac_exeext && {
17335	 test "$cross_compiling" = yes ||
17336	 $as_test_x conftest$ac_exeext
17337       }; then
17338  eval "$as_ac_var=yes"
17339else
17340  $as_echo "$as_me: failed program was:" >&5
17341sed 's/^/| /' conftest.$ac_ext >&5
17342
17343	eval "$as_ac_var=no"
17344fi
17345
17346rm -rf conftest.dSYM
17347rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17348      conftest$ac_exeext conftest.$ac_ext
17349fi
17350ac_res=`eval 'as_val=${'$as_ac_var'}
17351		 $as_echo "$as_val"'`
17352	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17353$as_echo "$ac_res" >&6; }
17354as_val=`eval 'as_val=${'$as_ac_var'}
17355		 $as_echo "$as_val"'`
17356   if test "x$as_val" = x""yes; then
17357  cat >>confdefs.h <<_ACEOF
17358#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17359_ACEOF
17360
17361fi
17362done
17363
17364
17365
17366
17367
17368
17369
17370
17371for ac_func in isatty chown lchown link readlink symlink realpath
17372do
17373as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17374{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17375$as_echo_n "checking for $ac_func... " >&6; }
17376if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17377  $as_echo_n "(cached) " >&6
17378else
17379  cat >conftest.$ac_ext <<_ACEOF
17380/* confdefs.h.  */
17381_ACEOF
17382cat confdefs.h >>conftest.$ac_ext
17383cat >>conftest.$ac_ext <<_ACEOF
17384/* end confdefs.h.  */
17385/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17386   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17387#define $ac_func innocuous_$ac_func
17388
17389/* System header to define __stub macros and hopefully few prototypes,
17390    which can conflict with char $ac_func (); below.
17391    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17392    <limits.h> exists even on freestanding compilers.  */
17393
17394#ifdef __STDC__
17395# include <limits.h>
17396#else
17397# include <assert.h>
17398#endif
17399
17400#undef $ac_func
17401
17402/* Override any GCC internal prototype to avoid an error.
17403   Use char because int might match the return type of a GCC
17404   builtin and then its argument prototype would still apply.  */
17405#ifdef __cplusplus
17406extern "C"
17407#endif
17408char $ac_func ();
17409/* The GNU C library defines this for functions which it implements
17410    to always fail with ENOSYS.  Some functions are actually named
17411    something starting with __ and the normal name is an alias.  */
17412#if defined __stub_$ac_func || defined __stub___$ac_func
17413choke me
17414#endif
17415
17416int
17417main ()
17418{
17419return $ac_func ();
17420  ;
17421  return 0;
17422}
17423_ACEOF
17424rm -f conftest.$ac_objext conftest$ac_exeext
17425if { (ac_try="$ac_link"
17426case "(($ac_try" in
17427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428  *) ac_try_echo=$ac_try;;
17429esac
17430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17431$as_echo "$ac_try_echo") >&5
17432  (eval "$ac_link") 2>conftest.er1
17433  ac_status=$?
17434  grep -v '^ *+' conftest.er1 >conftest.err
17435  rm -f conftest.er1
17436  cat conftest.err >&5
17437  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438  (exit $ac_status); } && {
17439	 test -z "$ac_c_werror_flag" ||
17440	 test ! -s conftest.err
17441       } && test -s conftest$ac_exeext && {
17442	 test "$cross_compiling" = yes ||
17443	 $as_test_x conftest$ac_exeext
17444       }; then
17445  eval "$as_ac_var=yes"
17446else
17447  $as_echo "$as_me: failed program was:" >&5
17448sed 's/^/| /' conftest.$ac_ext >&5
17449
17450	eval "$as_ac_var=no"
17451fi
17452
17453rm -rf conftest.dSYM
17454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17455      conftest$ac_exeext conftest.$ac_ext
17456fi
17457ac_res=`eval 'as_val=${'$as_ac_var'}
17458		 $as_echo "$as_val"'`
17459	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17460$as_echo "$ac_res" >&6; }
17461as_val=`eval 'as_val=${'$as_ac_var'}
17462		 $as_echo "$as_val"'`
17463   if test "x$as_val" = x""yes; then
17464  cat >>confdefs.h <<_ACEOF
17465#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17466_ACEOF
17467
17468fi
17469done
17470
17471
17472 { $as_echo "$as_me:$LINENO: checking for setresuid declaration" >&5
17473$as_echo_n "checking for setresuid declaration... " >&6; }
17474if test "${ac_cv_have_setresuid_decl+set}" = set; then
17475  $as_echo_n "(cached) " >&6
17476else
17477
17478    cat >conftest.$ac_ext <<_ACEOF
17479/* confdefs.h.  */
17480_ACEOF
17481cat confdefs.h >>conftest.$ac_ext
17482cat >>conftest.$ac_ext <<_ACEOF
17483/* end confdefs.h.  */
17484#include <unistd.h>
17485int
17486main ()
17487{
17488int i = (int)setresuid
17489  ;
17490  return 0;
17491}
17492_ACEOF
17493rm -f conftest.$ac_objext
17494if { (ac_try="$ac_compile"
17495case "(($ac_try" in
17496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497  *) ac_try_echo=$ac_try;;
17498esac
17499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17500$as_echo "$ac_try_echo") >&5
17501  (eval "$ac_compile") 2>conftest.er1
17502  ac_status=$?
17503  grep -v '^ *+' conftest.er1 >conftest.err
17504  rm -f conftest.er1
17505  cat conftest.err >&5
17506  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507  (exit $ac_status); } && {
17508	 test -z "$ac_c_werror_flag" ||
17509	 test ! -s conftest.err
17510       } && test -s conftest.$ac_objext; then
17511  ac_cv_have_setresuid_decl=yes
17512else
17513  $as_echo "$as_me: failed program was:" >&5
17514sed 's/^/| /' conftest.$ac_ext >&5
17515
17516	ac_cv_have_setresuid_decl=no
17517fi
17518
17519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17520fi
17521{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
17522$as_echo "$ac_cv_have_setresuid_decl" >&6; }
17523 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
17524
17525cat >>confdefs.h <<\_ACEOF
17526#define HAVE_SETRESUID_DECL 1
17527_ACEOF
17528
17529 fi
17530
17531
17532 { $as_echo "$as_me:$LINENO: checking for setresgid declaration" >&5
17533$as_echo_n "checking for setresgid declaration... " >&6; }
17534if test "${ac_cv_have_setresgid_decl+set}" = set; then
17535  $as_echo_n "(cached) " >&6
17536else
17537
17538    cat >conftest.$ac_ext <<_ACEOF
17539/* confdefs.h.  */
17540_ACEOF
17541cat confdefs.h >>conftest.$ac_ext
17542cat >>conftest.$ac_ext <<_ACEOF
17543/* end confdefs.h.  */
17544#include <unistd.h>
17545int
17546main ()
17547{
17548int i = (int)setresgid
17549  ;
17550  return 0;
17551}
17552_ACEOF
17553rm -f conftest.$ac_objext
17554if { (ac_try="$ac_compile"
17555case "(($ac_try" in
17556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557  *) ac_try_echo=$ac_try;;
17558esac
17559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17560$as_echo "$ac_try_echo") >&5
17561  (eval "$ac_compile") 2>conftest.er1
17562  ac_status=$?
17563  grep -v '^ *+' conftest.er1 >conftest.err
17564  rm -f conftest.er1
17565  cat conftest.err >&5
17566  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567  (exit $ac_status); } && {
17568	 test -z "$ac_c_werror_flag" ||
17569	 test ! -s conftest.err
17570       } && test -s conftest.$ac_objext; then
17571  ac_cv_have_setresgid_decl=yes
17572else
17573  $as_echo "$as_me: failed program was:" >&5
17574sed 's/^/| /' conftest.$ac_ext >&5
17575
17576	ac_cv_have_setresgid_decl=no
17577fi
17578
17579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17580fi
17581{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
17582$as_echo "$ac_cv_have_setresgid_decl" >&6; }
17583 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
17584
17585cat >>confdefs.h <<\_ACEOF
17586#define HAVE_SETRESGID_DECL 1
17587_ACEOF
17588
17589 fi
17590
17591
17592 { $as_echo "$as_me:$LINENO: checking for errno declaration" >&5
17593$as_echo_n "checking for errno declaration... " >&6; }
17594if test "${ac_cv_have_errno_decl+set}" = set; then
17595  $as_echo_n "(cached) " >&6
17596else
17597
17598    cat >conftest.$ac_ext <<_ACEOF
17599/* confdefs.h.  */
17600_ACEOF
17601cat confdefs.h >>conftest.$ac_ext
17602cat >>conftest.$ac_ext <<_ACEOF
17603/* end confdefs.h.  */
17604#include <errno.h>
17605int
17606main ()
17607{
17608int i = (int)errno
17609  ;
17610  return 0;
17611}
17612_ACEOF
17613rm -f conftest.$ac_objext
17614if { (ac_try="$ac_compile"
17615case "(($ac_try" in
17616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617  *) ac_try_echo=$ac_try;;
17618esac
17619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17620$as_echo "$ac_try_echo") >&5
17621  (eval "$ac_compile") 2>conftest.er1
17622  ac_status=$?
17623  grep -v '^ *+' conftest.er1 >conftest.err
17624  rm -f conftest.er1
17625  cat conftest.err >&5
17626  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627  (exit $ac_status); } && {
17628	 test -z "$ac_c_werror_flag" ||
17629	 test ! -s conftest.err
17630       } && test -s conftest.$ac_objext; then
17631  ac_cv_have_errno_decl=yes
17632else
17633  $as_echo "$as_me: failed program was:" >&5
17634sed 's/^/| /' conftest.$ac_ext >&5
17635
17636	ac_cv_have_errno_decl=no
17637fi
17638
17639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17640fi
17641{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
17642$as_echo "$ac_cv_have_errno_decl" >&6; }
17643 if test x"$ac_cv_have_errno_decl" = x"yes"; then
17644
17645cat >>confdefs.h <<\_ACEOF
17646#define HAVE_ERRNO_DECL 1
17647_ACEOF
17648
17649 fi
17650
17651
17652{ $as_echo "$as_me:$LINENO: checking for secure mkstemp" >&5
17653$as_echo_n "checking for secure mkstemp... " >&6; }
17654if test "${libreplace_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
17655  $as_echo_n "(cached) " >&6
17656else
17657
17658if test "$cross_compiling" = yes; then
17659  libreplace_cv_HAVE_SECURE_MKSTEMP=cross
17660else
17661  cat >conftest.$ac_ext <<_ACEOF
17662/* confdefs.h.  */
17663_ACEOF
17664cat confdefs.h >>conftest.$ac_ext
17665cat >>conftest.$ac_ext <<_ACEOF
17666/* end confdefs.h.  */
17667#include <stdlib.h>
17668#include <sys/types.h>
17669#include <sys/stat.h>
17670#include <unistd.h>
17671main() {
17672  struct stat st;
17673  char tpl[20]="/tmp/test.XXXXXX";
17674  int fd = mkstemp(tpl);
17675  if (fd == -1) exit(1);
17676  unlink(tpl);
17677  if (fstat(fd, &st) != 0) exit(1);
17678  if ((st.st_mode & 0777) != 0600) exit(1);
17679  exit(0);
17680}
17681_ACEOF
17682rm -f conftest$ac_exeext
17683if { (ac_try="$ac_link"
17684case "(($ac_try" in
17685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686  *) ac_try_echo=$ac_try;;
17687esac
17688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17689$as_echo "$ac_try_echo") >&5
17690  (eval "$ac_link") 2>&5
17691  ac_status=$?
17692  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17694  { (case "(($ac_try" in
17695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696  *) ac_try_echo=$ac_try;;
17697esac
17698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17699$as_echo "$ac_try_echo") >&5
17700  (eval "$ac_try") 2>&5
17701  ac_status=$?
17702  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703  (exit $ac_status); }; }; then
17704  libreplace_cv_HAVE_SECURE_MKSTEMP=yes
17705else
17706  $as_echo "$as_me: program exited with status $ac_status" >&5
17707$as_echo "$as_me: failed program was:" >&5
17708sed 's/^/| /' conftest.$ac_ext >&5
17709
17710( exit $ac_status )
17711libreplace_cv_HAVE_SECURE_MKSTEMP=no
17712fi
17713rm -rf conftest.dSYM
17714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17715fi
17716
17717
17718fi
17719{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_SECURE_MKSTEMP" >&5
17720$as_echo "$libreplace_cv_HAVE_SECURE_MKSTEMP" >&6; }
17721if test x"$libreplace_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
17722
17723cat >>confdefs.h <<\_ACEOF
17724#define HAVE_SECURE_MKSTEMP 1
17725_ACEOF
17726
17727fi
17728
17729
17730
17731for ac_header in stdio.h strings.h
17732do
17733as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17735  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17736$as_echo_n "checking for $ac_header... " >&6; }
17737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17738  $as_echo_n "(cached) " >&6
17739fi
17740ac_res=`eval 'as_val=${'$as_ac_Header'}
17741		 $as_echo "$as_val"'`
17742	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17743$as_echo "$ac_res" >&6; }
17744else
17745  # Is the header compilable?
17746{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17747$as_echo_n "checking $ac_header usability... " >&6; }
17748cat >conftest.$ac_ext <<_ACEOF
17749/* confdefs.h.  */
17750_ACEOF
17751cat confdefs.h >>conftest.$ac_ext
17752cat >>conftest.$ac_ext <<_ACEOF
17753/* end confdefs.h.  */
17754$ac_includes_default
17755#include <$ac_header>
17756_ACEOF
17757rm -f conftest.$ac_objext
17758if { (ac_try="$ac_compile"
17759case "(($ac_try" in
17760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761  *) ac_try_echo=$ac_try;;
17762esac
17763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17764$as_echo "$ac_try_echo") >&5
17765  (eval "$ac_compile") 2>conftest.er1
17766  ac_status=$?
17767  grep -v '^ *+' conftest.er1 >conftest.err
17768  rm -f conftest.er1
17769  cat conftest.err >&5
17770  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771  (exit $ac_status); } && {
17772	 test -z "$ac_c_werror_flag" ||
17773	 test ! -s conftest.err
17774       } && test -s conftest.$ac_objext; then
17775  ac_header_compiler=yes
17776else
17777  $as_echo "$as_me: failed program was:" >&5
17778sed 's/^/| /' conftest.$ac_ext >&5
17779
17780	ac_header_compiler=no
17781fi
17782
17783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17784{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17785$as_echo "$ac_header_compiler" >&6; }
17786
17787# Is the header present?
17788{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17789$as_echo_n "checking $ac_header presence... " >&6; }
17790cat >conftest.$ac_ext <<_ACEOF
17791/* confdefs.h.  */
17792_ACEOF
17793cat confdefs.h >>conftest.$ac_ext
17794cat >>conftest.$ac_ext <<_ACEOF
17795/* end confdefs.h.  */
17796#include <$ac_header>
17797_ACEOF
17798if { (ac_try="$ac_cpp conftest.$ac_ext"
17799case "(($ac_try" in
17800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801  *) ac_try_echo=$ac_try;;
17802esac
17803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17804$as_echo "$ac_try_echo") >&5
17805  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17806  ac_status=$?
17807  grep -v '^ *+' conftest.er1 >conftest.err
17808  rm -f conftest.er1
17809  cat conftest.err >&5
17810  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811  (exit $ac_status); } >/dev/null && {
17812	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17813	 test ! -s conftest.err
17814       }; then
17815  ac_header_preproc=yes
17816else
17817  $as_echo "$as_me: failed program was:" >&5
17818sed 's/^/| /' conftest.$ac_ext >&5
17819
17820  ac_header_preproc=no
17821fi
17822
17823rm -f conftest.err conftest.$ac_ext
17824{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17825$as_echo "$ac_header_preproc" >&6; }
17826
17827# So?  What about this header?
17828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17829  yes:no: )
17830    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17831$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17832    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17833$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17834    ac_header_preproc=yes
17835    ;;
17836  no:yes:* )
17837    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17838$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17839    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17840$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17841    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17842$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17843    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17844$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17845    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17846$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17847    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17848$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17849    ( cat <<\_ASBOX
17850## ---------------------------------------- ##
17851## Report this to samba-technical@samba.org ##
17852## ---------------------------------------- ##
17853_ASBOX
17854     ) | sed "s/^/$as_me: WARNING:     /" >&2
17855    ;;
17856esac
17857{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17858$as_echo_n "checking for $ac_header... " >&6; }
17859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17860  $as_echo_n "(cached) " >&6
17861else
17862  eval "$as_ac_Header=\$ac_header_preproc"
17863fi
17864ac_res=`eval 'as_val=${'$as_ac_Header'}
17865		 $as_echo "$as_val"'`
17866	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17867$as_echo "$ac_res" >&6; }
17868
17869fi
17870as_val=`eval 'as_val=${'$as_ac_Header'}
17871		 $as_echo "$as_val"'`
17872   if test "x$as_val" = x""yes; then
17873  cat >>confdefs.h <<_ACEOF
17874#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17875_ACEOF
17876
17877fi
17878
17879done
17880
17881{ $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17882$as_echo_n "checking whether snprintf is declared... " >&6; }
17883if test "${ac_cv_have_decl_snprintf+set}" = set; then
17884  $as_echo_n "(cached) " >&6
17885else
17886  cat >conftest.$ac_ext <<_ACEOF
17887/* confdefs.h.  */
17888_ACEOF
17889cat confdefs.h >>conftest.$ac_ext
17890cat >>conftest.$ac_ext <<_ACEOF
17891/* end confdefs.h.  */
17892$ac_includes_default
17893int
17894main ()
17895{
17896#ifndef snprintf
17897  (void) snprintf;
17898#endif
17899
17900  ;
17901  return 0;
17902}
17903_ACEOF
17904rm -f conftest.$ac_objext
17905if { (ac_try="$ac_compile"
17906case "(($ac_try" in
17907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908  *) ac_try_echo=$ac_try;;
17909esac
17910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17911$as_echo "$ac_try_echo") >&5
17912  (eval "$ac_compile") 2>conftest.er1
17913  ac_status=$?
17914  grep -v '^ *+' conftest.er1 >conftest.err
17915  rm -f conftest.er1
17916  cat conftest.err >&5
17917  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918  (exit $ac_status); } && {
17919	 test -z "$ac_c_werror_flag" ||
17920	 test ! -s conftest.err
17921       } && test -s conftest.$ac_objext; then
17922  ac_cv_have_decl_snprintf=yes
17923else
17924  $as_echo "$as_me: failed program was:" >&5
17925sed 's/^/| /' conftest.$ac_ext >&5
17926
17927	ac_cv_have_decl_snprintf=no
17928fi
17929
17930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17931fi
17932{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17933$as_echo "$ac_cv_have_decl_snprintf" >&6; }
17934if test "x$ac_cv_have_decl_snprintf" = x""yes; then
17935
17936cat >>confdefs.h <<_ACEOF
17937#define HAVE_DECL_SNPRINTF 1
17938_ACEOF
17939
17940
17941else
17942  cat >>confdefs.h <<_ACEOF
17943#define HAVE_DECL_SNPRINTF 0
17944_ACEOF
17945
17946
17947fi
17948{ $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17949$as_echo_n "checking whether vsnprintf is declared... " >&6; }
17950if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17951  $as_echo_n "(cached) " >&6
17952else
17953  cat >conftest.$ac_ext <<_ACEOF
17954/* confdefs.h.  */
17955_ACEOF
17956cat confdefs.h >>conftest.$ac_ext
17957cat >>conftest.$ac_ext <<_ACEOF
17958/* end confdefs.h.  */
17959$ac_includes_default
17960int
17961main ()
17962{
17963#ifndef vsnprintf
17964  (void) vsnprintf;
17965#endif
17966
17967  ;
17968  return 0;
17969}
17970_ACEOF
17971rm -f conftest.$ac_objext
17972if { (ac_try="$ac_compile"
17973case "(($ac_try" in
17974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975  *) ac_try_echo=$ac_try;;
17976esac
17977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17978$as_echo "$ac_try_echo") >&5
17979  (eval "$ac_compile") 2>conftest.er1
17980  ac_status=$?
17981  grep -v '^ *+' conftest.er1 >conftest.err
17982  rm -f conftest.er1
17983  cat conftest.err >&5
17984  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985  (exit $ac_status); } && {
17986	 test -z "$ac_c_werror_flag" ||
17987	 test ! -s conftest.err
17988       } && test -s conftest.$ac_objext; then
17989  ac_cv_have_decl_vsnprintf=yes
17990else
17991  $as_echo "$as_me: failed program was:" >&5
17992sed 's/^/| /' conftest.$ac_ext >&5
17993
17994	ac_cv_have_decl_vsnprintf=no
17995fi
17996
17997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17998fi
17999{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18000$as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
18001if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
18002
18003cat >>confdefs.h <<_ACEOF
18004#define HAVE_DECL_VSNPRINTF 1
18005_ACEOF
18006
18007
18008else
18009  cat >>confdefs.h <<_ACEOF
18010#define HAVE_DECL_VSNPRINTF 0
18011_ACEOF
18012
18013
18014fi
18015{ $as_echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
18016$as_echo_n "checking whether asprintf is declared... " >&6; }
18017if test "${ac_cv_have_decl_asprintf+set}" = set; then
18018  $as_echo_n "(cached) " >&6
18019else
18020  cat >conftest.$ac_ext <<_ACEOF
18021/* confdefs.h.  */
18022_ACEOF
18023cat confdefs.h >>conftest.$ac_ext
18024cat >>conftest.$ac_ext <<_ACEOF
18025/* end confdefs.h.  */
18026$ac_includes_default
18027int
18028main ()
18029{
18030#ifndef asprintf
18031  (void) asprintf;
18032#endif
18033
18034  ;
18035  return 0;
18036}
18037_ACEOF
18038rm -f conftest.$ac_objext
18039if { (ac_try="$ac_compile"
18040case "(($ac_try" in
18041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042  *) ac_try_echo=$ac_try;;
18043esac
18044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18045$as_echo "$ac_try_echo") >&5
18046  (eval "$ac_compile") 2>conftest.er1
18047  ac_status=$?
18048  grep -v '^ *+' conftest.er1 >conftest.err
18049  rm -f conftest.er1
18050  cat conftest.err >&5
18051  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052  (exit $ac_status); } && {
18053	 test -z "$ac_c_werror_flag" ||
18054	 test ! -s conftest.err
18055       } && test -s conftest.$ac_objext; then
18056  ac_cv_have_decl_asprintf=yes
18057else
18058  $as_echo "$as_me: failed program was:" >&5
18059sed 's/^/| /' conftest.$ac_ext >&5
18060
18061	ac_cv_have_decl_asprintf=no
18062fi
18063
18064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18065fi
18066{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
18067$as_echo "$ac_cv_have_decl_asprintf" >&6; }
18068if test "x$ac_cv_have_decl_asprintf" = x""yes; then
18069
18070cat >>confdefs.h <<_ACEOF
18071#define HAVE_DECL_ASPRINTF 1
18072_ACEOF
18073
18074
18075else
18076  cat >>confdefs.h <<_ACEOF
18077#define HAVE_DECL_ASPRINTF 0
18078_ACEOF
18079
18080
18081fi
18082{ $as_echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
18083$as_echo_n "checking whether vasprintf is declared... " >&6; }
18084if test "${ac_cv_have_decl_vasprintf+set}" = set; then
18085  $as_echo_n "(cached) " >&6
18086else
18087  cat >conftest.$ac_ext <<_ACEOF
18088/* confdefs.h.  */
18089_ACEOF
18090cat confdefs.h >>conftest.$ac_ext
18091cat >>conftest.$ac_ext <<_ACEOF
18092/* end confdefs.h.  */
18093$ac_includes_default
18094int
18095main ()
18096{
18097#ifndef vasprintf
18098  (void) vasprintf;
18099#endif
18100
18101  ;
18102  return 0;
18103}
18104_ACEOF
18105rm -f conftest.$ac_objext
18106if { (ac_try="$ac_compile"
18107case "(($ac_try" in
18108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109  *) ac_try_echo=$ac_try;;
18110esac
18111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18112$as_echo "$ac_try_echo") >&5
18113  (eval "$ac_compile") 2>conftest.er1
18114  ac_status=$?
18115  grep -v '^ *+' conftest.er1 >conftest.err
18116  rm -f conftest.er1
18117  cat conftest.err >&5
18118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119  (exit $ac_status); } && {
18120	 test -z "$ac_c_werror_flag" ||
18121	 test ! -s conftest.err
18122       } && test -s conftest.$ac_objext; then
18123  ac_cv_have_decl_vasprintf=yes
18124else
18125  $as_echo "$as_me: failed program was:" >&5
18126sed 's/^/| /' conftest.$ac_ext >&5
18127
18128	ac_cv_have_decl_vasprintf=no
18129fi
18130
18131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18132fi
18133{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
18134$as_echo "$ac_cv_have_decl_vasprintf" >&6; }
18135if test "x$ac_cv_have_decl_vasprintf" = x""yes; then
18136
18137cat >>confdefs.h <<_ACEOF
18138#define HAVE_DECL_VASPRINTF 1
18139_ACEOF
18140
18141
18142else
18143  cat >>confdefs.h <<_ACEOF
18144#define HAVE_DECL_VASPRINTF 0
18145_ACEOF
18146
18147
18148fi
18149
18150
18151
18152
18153
18154
18155for ac_func in snprintf vsnprintf asprintf vasprintf
18156do
18157as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18158{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18159$as_echo_n "checking for $ac_func... " >&6; }
18160if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18161  $as_echo_n "(cached) " >&6
18162else
18163  cat >conftest.$ac_ext <<_ACEOF
18164/* confdefs.h.  */
18165_ACEOF
18166cat confdefs.h >>conftest.$ac_ext
18167cat >>conftest.$ac_ext <<_ACEOF
18168/* end confdefs.h.  */
18169/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18170   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18171#define $ac_func innocuous_$ac_func
18172
18173/* System header to define __stub macros and hopefully few prototypes,
18174    which can conflict with char $ac_func (); below.
18175    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18176    <limits.h> exists even on freestanding compilers.  */
18177
18178#ifdef __STDC__
18179# include <limits.h>
18180#else
18181# include <assert.h>
18182#endif
18183
18184#undef $ac_func
18185
18186/* Override any GCC internal prototype to avoid an error.
18187   Use char because int might match the return type of a GCC
18188   builtin and then its argument prototype would still apply.  */
18189#ifdef __cplusplus
18190extern "C"
18191#endif
18192char $ac_func ();
18193/* The GNU C library defines this for functions which it implements
18194    to always fail with ENOSYS.  Some functions are actually named
18195    something starting with __ and the normal name is an alias.  */
18196#if defined __stub_$ac_func || defined __stub___$ac_func
18197choke me
18198#endif
18199
18200int
18201main ()
18202{
18203return $ac_func ();
18204  ;
18205  return 0;
18206}
18207_ACEOF
18208rm -f conftest.$ac_objext conftest$ac_exeext
18209if { (ac_try="$ac_link"
18210case "(($ac_try" in
18211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18212  *) ac_try_echo=$ac_try;;
18213esac
18214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18215$as_echo "$ac_try_echo") >&5
18216  (eval "$ac_link") 2>conftest.er1
18217  ac_status=$?
18218  grep -v '^ *+' conftest.er1 >conftest.err
18219  rm -f conftest.er1
18220  cat conftest.err >&5
18221  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222  (exit $ac_status); } && {
18223	 test -z "$ac_c_werror_flag" ||
18224	 test ! -s conftest.err
18225       } && test -s conftest$ac_exeext && {
18226	 test "$cross_compiling" = yes ||
18227	 $as_test_x conftest$ac_exeext
18228       }; then
18229  eval "$as_ac_var=yes"
18230else
18231  $as_echo "$as_me: failed program was:" >&5
18232sed 's/^/| /' conftest.$ac_ext >&5
18233
18234	eval "$as_ac_var=no"
18235fi
18236
18237rm -rf conftest.dSYM
18238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18239      conftest$ac_exeext conftest.$ac_ext
18240fi
18241ac_res=`eval 'as_val=${'$as_ac_var'}
18242		 $as_echo "$as_val"'`
18243	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18244$as_echo "$ac_res" >&6; }
18245as_val=`eval 'as_val=${'$as_ac_var'}
18246		 $as_echo "$as_val"'`
18247   if test "x$as_val" = x""yes; then
18248  cat >>confdefs.h <<_ACEOF
18249#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18250_ACEOF
18251
18252fi
18253done
18254
18255
18256{ $as_echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
18257$as_echo_n "checking for C99 vsnprintf... " >&6; }
18258if test "${libreplace_cv_HAVE_C99_VSNPRINTF+set}" = set; then
18259  $as_echo_n "(cached) " >&6
18260else
18261
18262if test "$cross_compiling" = yes; then
18263  libreplace_cv_HAVE_C99_VSNPRINTF=cross
18264else
18265  cat >conftest.$ac_ext <<_ACEOF
18266/* confdefs.h.  */
18267_ACEOF
18268cat confdefs.h >>conftest.$ac_ext
18269cat >>conftest.$ac_ext <<_ACEOF
18270/* end confdefs.h.  */
18271
18272#include <sys/types.h>
18273#include <stdio.h>
18274#include <stdarg.h>
18275#include <stdlib.h>
18276void foo(const char *format, ...) {
18277       va_list ap;
18278       int len;
18279       char buf[20];
18280       long long l = 1234567890;
18281       l *= 100;
18282
18283       va_start(ap, format);
18284       len = vsnprintf(buf, 0, format, ap);
18285       va_end(ap);
18286       if (len != 5) exit(1);
18287
18288       va_start(ap, format);
18289       len = vsnprintf(0, 0, format, ap);
18290       va_end(ap);
18291       if (len != 5) exit(2);
18292
18293       if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(3);
18294
18295       if (snprintf(buf, 20, "%lld", l) != 12 || strcmp(buf, "123456789000") != 0) exit(4);
18296       if (snprintf(buf, 20, "%zu", 123456789) != 9 || strcmp(buf, "123456789") != 0) exit(5);
18297       if (snprintf(buf, 20, "%2\$d %1\$d", 3, 4) != 3 || strcmp(buf, "4 3") != 0) exit(6);
18298       if (snprintf(buf, 20, "%s", 0) < 3) exit(7);
18299
18300       exit(0);
18301}
18302main() { foo("hello"); }
18303
18304_ACEOF
18305rm -f conftest$ac_exeext
18306if { (ac_try="$ac_link"
18307case "(($ac_try" in
18308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309  *) ac_try_echo=$ac_try;;
18310esac
18311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18312$as_echo "$ac_try_echo") >&5
18313  (eval "$ac_link") 2>&5
18314  ac_status=$?
18315  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18317  { (case "(($ac_try" in
18318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18319  *) ac_try_echo=$ac_try;;
18320esac
18321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18322$as_echo "$ac_try_echo") >&5
18323  (eval "$ac_try") 2>&5
18324  ac_status=$?
18325  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326  (exit $ac_status); }; }; then
18327#  libreplace_cv_HAVE_C99_VSNPRINTF=yes
18328  samba_cv_HAVE_C99_VSNPRINTF=yes
18329else
18330  $as_echo "$as_me: program exited with status $ac_status" >&5
18331$as_echo "$as_me: failed program was:" >&5
18332sed 's/^/| /' conftest.$ac_ext >&5
18333
18334( exit $ac_status )
18335libreplace_cv_HAVE_C99_VSNPRINTF=no
18336#samba_cv_HAVE_C99_VSNPRINTF=no
18337fi
18338rm -rf conftest.dSYM
18339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18340fi
18341
18342
18343fi
18344#{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_C99_VSNPRINTF" >&5
18345{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
18346#$as_echo "$libreplace_cv_HAVE_C99_VSNPRINTF" >&6; }
18347$as_echo "$samba_cv_HAVE_C99_VSNPRINTF" >&6; }
18348#if test x"$libreplace_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
18349if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
18350
18351cat >>confdefs.h <<\_ACEOF
18352#define HAVE_C99_VSNPRINTF 1
18353_ACEOF
18354
18355fi
18356
18357
18358{ $as_echo "$as_me:$LINENO: checking for va_copy" >&5
18359$as_echo_n "checking for va_copy... " >&6; }
18360if test "${libreplace_cv_HAVE_VA_COPY+set}" = set; then
18361  $as_echo_n "(cached) " >&6
18362else
18363
18364cat >conftest.$ac_ext <<_ACEOF
18365/* confdefs.h.  */
18366_ACEOF
18367cat confdefs.h >>conftest.$ac_ext
18368cat >>conftest.$ac_ext <<_ACEOF
18369/* end confdefs.h.  */
18370#include <stdarg.h>
18371va_list ap1,ap2;
18372int
18373main ()
18374{
18375va_copy(ap1,ap2);
18376  ;
18377  return 0;
18378}
18379_ACEOF
18380rm -f conftest.$ac_objext conftest$ac_exeext
18381if { (ac_try="$ac_link"
18382case "(($ac_try" in
18383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18384  *) ac_try_echo=$ac_try;;
18385esac
18386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18387$as_echo "$ac_try_echo") >&5
18388  (eval "$ac_link") 2>conftest.er1
18389  ac_status=$?
18390  grep -v '^ *+' conftest.er1 >conftest.err
18391  rm -f conftest.er1
18392  cat conftest.err >&5
18393  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394  (exit $ac_status); } && {
18395	 test -z "$ac_c_werror_flag" ||
18396	 test ! -s conftest.err
18397       } && test -s conftest$ac_exeext && {
18398	 test "$cross_compiling" = yes ||
18399	 $as_test_x conftest$ac_exeext
18400       }; then
18401  libreplace_cv_HAVE_VA_COPY=yes
18402else
18403  $as_echo "$as_me: failed program was:" >&5
18404sed 's/^/| /' conftest.$ac_ext >&5
18405
18406	libreplace_cv_HAVE_VA_COPY=no
18407fi
18408
18409rm -rf conftest.dSYM
18410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18411      conftest$ac_exeext conftest.$ac_ext
18412fi
18413{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_VA_COPY" >&5
18414$as_echo "$libreplace_cv_HAVE_VA_COPY" >&6; }
18415if test x"$libreplace_cv_HAVE_VA_COPY" = x"yes"; then
18416
18417cat >>confdefs.h <<\_ACEOF
18418#define HAVE_VA_COPY 1
18419_ACEOF
18420
18421fi
18422
18423if test x"$libreplace_cv_HAVE_VA_COPY" != x"yes"; then
18424{ $as_echo "$as_me:$LINENO: checking for __va_copy" >&5
18425$as_echo_n "checking for __va_copy... " >&6; }
18426if test "${libreplace_cv_HAVE___VA_COPY+set}" = set; then
18427  $as_echo_n "(cached) " >&6
18428else
18429
18430cat >conftest.$ac_ext <<_ACEOF
18431/* confdefs.h.  */
18432_ACEOF
18433cat confdefs.h >>conftest.$ac_ext
18434cat >>conftest.$ac_ext <<_ACEOF
18435/* end confdefs.h.  */
18436#include <stdarg.h>
18437va_list ap1,ap2;
18438int
18439main ()
18440{
18441__va_copy(ap1,ap2);
18442  ;
18443  return 0;
18444}
18445_ACEOF
18446rm -f conftest.$ac_objext conftest$ac_exeext
18447if { (ac_try="$ac_link"
18448case "(($ac_try" in
18449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450  *) ac_try_echo=$ac_try;;
18451esac
18452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18453$as_echo "$ac_try_echo") >&5
18454  (eval "$ac_link") 2>conftest.er1
18455  ac_status=$?
18456  grep -v '^ *+' conftest.er1 >conftest.err
18457  rm -f conftest.er1
18458  cat conftest.err >&5
18459  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460  (exit $ac_status); } && {
18461	 test -z "$ac_c_werror_flag" ||
18462	 test ! -s conftest.err
18463       } && test -s conftest$ac_exeext && {
18464	 test "$cross_compiling" = yes ||
18465	 $as_test_x conftest$ac_exeext
18466       }; then
18467  libreplace_cv_HAVE___VA_COPY=yes
18468else
18469  $as_echo "$as_me: failed program was:" >&5
18470sed 's/^/| /' conftest.$ac_ext >&5
18471
18472	libreplace_cv_HAVE___VA_COPY=no
18473fi
18474
18475rm -rf conftest.dSYM
18476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18477      conftest$ac_exeext conftest.$ac_ext
18478fi
18479{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE___VA_COPY" >&5
18480$as_echo "$libreplace_cv_HAVE___VA_COPY" >&6; }
18481if test x"$libreplace_cv_HAVE___VA_COPY" = x"yes"; then
18482
18483cat >>confdefs.h <<\_ACEOF
18484#define HAVE___VA_COPY 1
18485_ACEOF
18486
18487fi
18488fi
18489
18490{ $as_echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
18491$as_echo_n "checking for __FUNCTION__ macro... " >&6; }
18492if test "${libreplace_cv_HAVE_FUNCTION_MACRO+set}" = set; then
18493  $as_echo_n "(cached) " >&6
18494else
18495
18496cat >conftest.$ac_ext <<_ACEOF
18497/* confdefs.h.  */
18498_ACEOF
18499cat confdefs.h >>conftest.$ac_ext
18500cat >>conftest.$ac_ext <<_ACEOF
18501/* end confdefs.h.  */
18502#include <stdio.h>
18503int
18504main ()
18505{
18506printf("%s\n", __FUNCTION__);
18507  ;
18508  return 0;
18509}
18510_ACEOF
18511rm -f conftest.$ac_objext
18512if { (ac_try="$ac_compile"
18513case "(($ac_try" in
18514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515  *) ac_try_echo=$ac_try;;
18516esac
18517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18518$as_echo "$ac_try_echo") >&5
18519  (eval "$ac_compile") 2>conftest.er1
18520  ac_status=$?
18521  grep -v '^ *+' conftest.er1 >conftest.err
18522  rm -f conftest.er1
18523  cat conftest.err >&5
18524  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525  (exit $ac_status); } && {
18526	 test -z "$ac_c_werror_flag" ||
18527	 test ! -s conftest.err
18528       } && test -s conftest.$ac_objext; then
18529  libreplace_cv_HAVE_FUNCTION_MACRO=yes
18530else
18531  $as_echo "$as_me: failed program was:" >&5
18532sed 's/^/| /' conftest.$ac_ext >&5
18533
18534	libreplace_cv_HAVE_FUNCTION_MACRO=no
18535fi
18536
18537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18538fi
18539{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_FUNCTION_MACRO" >&5
18540$as_echo "$libreplace_cv_HAVE_FUNCTION_MACRO" >&6; }
18541if test x"$libreplace_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
18542
18543cat >>confdefs.h <<\_ACEOF
18544#define HAVE_FUNCTION_MACRO 1
18545_ACEOF
18546
18547else
18548        { $as_echo "$as_me:$LINENO: checking for __func__ macro" >&5
18549$as_echo_n "checking for __func__ macro... " >&6; }
18550if test "${libreplace_cv_HAVE_func_MACRO+set}" = set; then
18551  $as_echo_n "(cached) " >&6
18552else
18553
18554    cat >conftest.$ac_ext <<_ACEOF
18555/* confdefs.h.  */
18556_ACEOF
18557cat confdefs.h >>conftest.$ac_ext
18558cat >>conftest.$ac_ext <<_ACEOF
18559/* end confdefs.h.  */
18560#include <stdio.h>
18561int
18562main ()
18563{
18564printf("%s\n", __func__);
18565  ;
18566  return 0;
18567}
18568_ACEOF
18569rm -f conftest.$ac_objext
18570if { (ac_try="$ac_compile"
18571case "(($ac_try" in
18572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573  *) ac_try_echo=$ac_try;;
18574esac
18575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18576$as_echo "$ac_try_echo") >&5
18577  (eval "$ac_compile") 2>conftest.er1
18578  ac_status=$?
18579  grep -v '^ *+' conftest.er1 >conftest.err
18580  rm -f conftest.er1
18581  cat conftest.err >&5
18582  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583  (exit $ac_status); } && {
18584	 test -z "$ac_c_werror_flag" ||
18585	 test ! -s conftest.err
18586       } && test -s conftest.$ac_objext; then
18587  libreplace_cv_HAVE_func_MACRO=yes
18588else
18589  $as_echo "$as_me: failed program was:" >&5
18590sed 's/^/| /' conftest.$ac_ext >&5
18591
18592	libreplace_cv_HAVE_func_MACRO=no
18593fi
18594
18595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18596fi
18597{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_func_MACRO" >&5
18598$as_echo "$libreplace_cv_HAVE_func_MACRO" >&6; }
18599    if test x"$libreplace_cv_HAVE_func_MACRO" = x"yes"; then
18600
18601cat >>confdefs.h <<\_ACEOF
18602#define HAVE_func_MACRO 1
18603_ACEOF
18604
18605    fi
18606fi
18607
18608
18609
18610for ac_header in sys/param.h limits.h
18611do
18612as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18614  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18615$as_echo_n "checking for $ac_header... " >&6; }
18616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18617  $as_echo_n "(cached) " >&6
18618fi
18619ac_res=`eval 'as_val=${'$as_ac_Header'}
18620		 $as_echo "$as_val"'`
18621	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18622$as_echo "$ac_res" >&6; }
18623else
18624  # Is the header compilable?
18625{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18626$as_echo_n "checking $ac_header usability... " >&6; }
18627cat >conftest.$ac_ext <<_ACEOF
18628/* confdefs.h.  */
18629_ACEOF
18630cat confdefs.h >>conftest.$ac_ext
18631cat >>conftest.$ac_ext <<_ACEOF
18632/* end confdefs.h.  */
18633$ac_includes_default
18634#include <$ac_header>
18635_ACEOF
18636rm -f conftest.$ac_objext
18637if { (ac_try="$ac_compile"
18638case "(($ac_try" in
18639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640  *) ac_try_echo=$ac_try;;
18641esac
18642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18643$as_echo "$ac_try_echo") >&5
18644  (eval "$ac_compile") 2>conftest.er1
18645  ac_status=$?
18646  grep -v '^ *+' conftest.er1 >conftest.err
18647  rm -f conftest.er1
18648  cat conftest.err >&5
18649  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650  (exit $ac_status); } && {
18651	 test -z "$ac_c_werror_flag" ||
18652	 test ! -s conftest.err
18653       } && test -s conftest.$ac_objext; then
18654  ac_header_compiler=yes
18655else
18656  $as_echo "$as_me: failed program was:" >&5
18657sed 's/^/| /' conftest.$ac_ext >&5
18658
18659	ac_header_compiler=no
18660fi
18661
18662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18663{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18664$as_echo "$ac_header_compiler" >&6; }
18665
18666# Is the header present?
18667{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18668$as_echo_n "checking $ac_header presence... " >&6; }
18669cat >conftest.$ac_ext <<_ACEOF
18670/* confdefs.h.  */
18671_ACEOF
18672cat confdefs.h >>conftest.$ac_ext
18673cat >>conftest.$ac_ext <<_ACEOF
18674/* end confdefs.h.  */
18675#include <$ac_header>
18676_ACEOF
18677if { (ac_try="$ac_cpp conftest.$ac_ext"
18678case "(($ac_try" in
18679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680  *) ac_try_echo=$ac_try;;
18681esac
18682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18683$as_echo "$ac_try_echo") >&5
18684  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18685  ac_status=$?
18686  grep -v '^ *+' conftest.er1 >conftest.err
18687  rm -f conftest.er1
18688  cat conftest.err >&5
18689  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690  (exit $ac_status); } >/dev/null && {
18691	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18692	 test ! -s conftest.err
18693       }; then
18694  ac_header_preproc=yes
18695else
18696  $as_echo "$as_me: failed program was:" >&5
18697sed 's/^/| /' conftest.$ac_ext >&5
18698
18699  ac_header_preproc=no
18700fi
18701
18702rm -f conftest.err conftest.$ac_ext
18703{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18704$as_echo "$ac_header_preproc" >&6; }
18705
18706# So?  What about this header?
18707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18708  yes:no: )
18709    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18710$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18711    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18712$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18713    ac_header_preproc=yes
18714    ;;
18715  no:yes:* )
18716    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18717$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18718    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18719$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18720    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18721$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18722    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18723$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18724    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18725$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18726    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18727$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18728    ( cat <<\_ASBOX
18729## ---------------------------------------- ##
18730## Report this to samba-technical@samba.org ##
18731## ---------------------------------------- ##
18732_ASBOX
18733     ) | sed "s/^/$as_me: WARNING:     /" >&2
18734    ;;
18735esac
18736{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18737$as_echo_n "checking for $ac_header... " >&6; }
18738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18739  $as_echo_n "(cached) " >&6
18740else
18741  eval "$as_ac_Header=\$ac_header_preproc"
18742fi
18743ac_res=`eval 'as_val=${'$as_ac_Header'}
18744		 $as_echo "$as_val"'`
18745	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18746$as_echo "$ac_res" >&6; }
18747
18748fi
18749as_val=`eval 'as_val=${'$as_ac_Header'}
18750		 $as_echo "$as_val"'`
18751   if test "x$as_val" = x""yes; then
18752  cat >>confdefs.h <<_ACEOF
18753#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18754_ACEOF
18755
18756fi
18757
18758done
18759
18760
18761{ $as_echo "$as_me:$LINENO: checking for comparison_fn_t" >&5
18762$as_echo_n "checking for comparison_fn_t... " >&6; }
18763if test "${ac_cv_type_comparison_fn_t+set}" = set; then
18764  $as_echo_n "(cached) " >&6
18765else
18766  ac_cv_type_comparison_fn_t=no
18767cat >conftest.$ac_ext <<_ACEOF
18768/* confdefs.h.  */
18769_ACEOF
18770cat confdefs.h >>conftest.$ac_ext
18771cat >>conftest.$ac_ext <<_ACEOF
18772/* end confdefs.h.  */
18773$ac_includes_default
18774int
18775main ()
18776{
18777if (sizeof (comparison_fn_t))
18778       return 0;
18779  ;
18780  return 0;
18781}
18782_ACEOF
18783rm -f conftest.$ac_objext
18784if { (ac_try="$ac_compile"
18785case "(($ac_try" in
18786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787  *) ac_try_echo=$ac_try;;
18788esac
18789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18790$as_echo "$ac_try_echo") >&5
18791  (eval "$ac_compile") 2>conftest.er1
18792  ac_status=$?
18793  grep -v '^ *+' conftest.er1 >conftest.err
18794  rm -f conftest.er1
18795  cat conftest.err >&5
18796  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797  (exit $ac_status); } && {
18798	 test -z "$ac_c_werror_flag" ||
18799	 test ! -s conftest.err
18800       } && test -s conftest.$ac_objext; then
18801  cat >conftest.$ac_ext <<_ACEOF
18802/* confdefs.h.  */
18803_ACEOF
18804cat confdefs.h >>conftest.$ac_ext
18805cat >>conftest.$ac_ext <<_ACEOF
18806/* end confdefs.h.  */
18807$ac_includes_default
18808int
18809main ()
18810{
18811if (sizeof ((comparison_fn_t)))
18812	  return 0;
18813  ;
18814  return 0;
18815}
18816_ACEOF
18817rm -f conftest.$ac_objext
18818if { (ac_try="$ac_compile"
18819case "(($ac_try" in
18820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18821  *) ac_try_echo=$ac_try;;
18822esac
18823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18824$as_echo "$ac_try_echo") >&5
18825  (eval "$ac_compile") 2>conftest.er1
18826  ac_status=$?
18827  grep -v '^ *+' conftest.er1 >conftest.err
18828  rm -f conftest.er1
18829  cat conftest.err >&5
18830  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831  (exit $ac_status); } && {
18832	 test -z "$ac_c_werror_flag" ||
18833	 test ! -s conftest.err
18834       } && test -s conftest.$ac_objext; then
18835  :
18836else
18837  $as_echo "$as_me: failed program was:" >&5
18838sed 's/^/| /' conftest.$ac_ext >&5
18839
18840	ac_cv_type_comparison_fn_t=yes
18841fi
18842
18843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18844else
18845  $as_echo "$as_me: failed program was:" >&5
18846sed 's/^/| /' conftest.$ac_ext >&5
18847
18848
18849fi
18850
18851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18852fi
18853{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_comparison_fn_t" >&5
18854$as_echo "$ac_cv_type_comparison_fn_t" >&6; }
18855if test "x$ac_cv_type_comparison_fn_t" = x""yes; then
18856
18857cat >>confdefs.h <<\_ACEOF
18858#define HAVE_COMPARISON_FN_T 1
18859_ACEOF
18860
18861fi
18862
18863
18864
18865 { $as_echo "$as_me:$LINENO: checking for setenv declaration" >&5
18866$as_echo_n "checking for setenv declaration... " >&6; }
18867if test "${ac_cv_have_setenv_decl+set}" = set; then
18868  $as_echo_n "(cached) " >&6
18869else
18870
18871    cat >conftest.$ac_ext <<_ACEOF
18872/* confdefs.h.  */
18873_ACEOF
18874cat confdefs.h >>conftest.$ac_ext
18875cat >>conftest.$ac_ext <<_ACEOF
18876/* end confdefs.h.  */
18877#include <stdlib.h>
18878int
18879main ()
18880{
18881int i = (int)setenv
18882  ;
18883  return 0;
18884}
18885_ACEOF
18886rm -f conftest.$ac_objext
18887if { (ac_try="$ac_compile"
18888case "(($ac_try" in
18889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890  *) ac_try_echo=$ac_try;;
18891esac
18892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18893$as_echo "$ac_try_echo") >&5
18894  (eval "$ac_compile") 2>conftest.er1
18895  ac_status=$?
18896  grep -v '^ *+' conftest.er1 >conftest.err
18897  rm -f conftest.er1
18898  cat conftest.err >&5
18899  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900  (exit $ac_status); } && {
18901	 test -z "$ac_c_werror_flag" ||
18902	 test ! -s conftest.err
18903       } && test -s conftest.$ac_objext; then
18904  ac_cv_have_setenv_decl=yes
18905else
18906  $as_echo "$as_me: failed program was:" >&5
18907sed 's/^/| /' conftest.$ac_ext >&5
18908
18909	ac_cv_have_setenv_decl=no
18910fi
18911
18912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18913fi
18914{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_setenv_decl" >&5
18915$as_echo "$ac_cv_have_setenv_decl" >&6; }
18916 if test x"$ac_cv_have_setenv_decl" = x"yes"; then
18917
18918cat >>confdefs.h <<\_ACEOF
18919#define HAVE_SETENV_DECL 1
18920_ACEOF
18921
18922 fi
18923
18924
18925
18926for ac_func in setenv unsetenv
18927do
18928as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18929{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18930$as_echo_n "checking for $ac_func... " >&6; }
18931if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18932  $as_echo_n "(cached) " >&6
18933else
18934  cat >conftest.$ac_ext <<_ACEOF
18935/* confdefs.h.  */
18936_ACEOF
18937cat confdefs.h >>conftest.$ac_ext
18938cat >>conftest.$ac_ext <<_ACEOF
18939/* end confdefs.h.  */
18940/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18941   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18942#define $ac_func innocuous_$ac_func
18943
18944/* System header to define __stub macros and hopefully few prototypes,
18945    which can conflict with char $ac_func (); below.
18946    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18947    <limits.h> exists even on freestanding compilers.  */
18948
18949#ifdef __STDC__
18950# include <limits.h>
18951#else
18952# include <assert.h>
18953#endif
18954
18955#undef $ac_func
18956
18957/* Override any GCC internal prototype to avoid an error.
18958   Use char because int might match the return type of a GCC
18959   builtin and then its argument prototype would still apply.  */
18960#ifdef __cplusplus
18961extern "C"
18962#endif
18963char $ac_func ();
18964/* The GNU C library defines this for functions which it implements
18965    to always fail with ENOSYS.  Some functions are actually named
18966    something starting with __ and the normal name is an alias.  */
18967#if defined __stub_$ac_func || defined __stub___$ac_func
18968choke me
18969#endif
18970
18971int
18972main ()
18973{
18974return $ac_func ();
18975  ;
18976  return 0;
18977}
18978_ACEOF
18979rm -f conftest.$ac_objext conftest$ac_exeext
18980if { (ac_try="$ac_link"
18981case "(($ac_try" in
18982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983  *) ac_try_echo=$ac_try;;
18984esac
18985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18986$as_echo "$ac_try_echo") >&5
18987  (eval "$ac_link") 2>conftest.er1
18988  ac_status=$?
18989  grep -v '^ *+' conftest.er1 >conftest.err
18990  rm -f conftest.er1
18991  cat conftest.err >&5
18992  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993  (exit $ac_status); } && {
18994	 test -z "$ac_c_werror_flag" ||
18995	 test ! -s conftest.err
18996       } && test -s conftest$ac_exeext && {
18997	 test "$cross_compiling" = yes ||
18998	 $as_test_x conftest$ac_exeext
18999       }; then
19000  eval "$as_ac_var=yes"
19001else
19002  $as_echo "$as_me: failed program was:" >&5
19003sed 's/^/| /' conftest.$ac_ext >&5
19004
19005	eval "$as_ac_var=no"
19006fi
19007
19008rm -rf conftest.dSYM
19009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19010      conftest$ac_exeext conftest.$ac_ext
19011fi
19012ac_res=`eval 'as_val=${'$as_ac_var'}
19013		 $as_echo "$as_val"'`
19014	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19015$as_echo "$ac_res" >&6; }
19016as_val=`eval 'as_val=${'$as_ac_var'}
19017		 $as_echo "$as_val"'`
19018   if test "x$as_val" = x""yes; then
19019  cat >>confdefs.h <<_ACEOF
19020#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19021_ACEOF
19022
19023fi
19024done
19025
19026
19027 { $as_echo "$as_me:$LINENO: checking for environ declaration" >&5
19028$as_echo_n "checking for environ declaration... " >&6; }
19029if test "${ac_cv_have_environ_decl+set}" = set; then
19030  $as_echo_n "(cached) " >&6
19031else
19032
19033    cat >conftest.$ac_ext <<_ACEOF
19034/* confdefs.h.  */
19035_ACEOF
19036cat confdefs.h >>conftest.$ac_ext
19037cat >>conftest.$ac_ext <<_ACEOF
19038/* end confdefs.h.  */
19039#include <unistd.h>
19040int
19041main ()
19042{
19043int i = (int)environ
19044  ;
19045  return 0;
19046}
19047_ACEOF
19048rm -f conftest.$ac_objext
19049if { (ac_try="$ac_compile"
19050case "(($ac_try" in
19051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052  *) ac_try_echo=$ac_try;;
19053esac
19054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19055$as_echo "$ac_try_echo") >&5
19056  (eval "$ac_compile") 2>conftest.er1
19057  ac_status=$?
19058  grep -v '^ *+' conftest.er1 >conftest.err
19059  rm -f conftest.er1
19060  cat conftest.err >&5
19061  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062  (exit $ac_status); } && {
19063	 test -z "$ac_c_werror_flag" ||
19064	 test ! -s conftest.err
19065       } && test -s conftest.$ac_objext; then
19066  ac_cv_have_environ_decl=yes
19067else
19068  $as_echo "$as_me: failed program was:" >&5
19069sed 's/^/| /' conftest.$ac_ext >&5
19070
19071	ac_cv_have_environ_decl=no
19072fi
19073
19074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075fi
19076{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_environ_decl" >&5
19077$as_echo "$ac_cv_have_environ_decl" >&6; }
19078 if test x"$ac_cv_have_environ_decl" = x"yes"; then
19079
19080cat >>confdefs.h <<\_ACEOF
19081#define HAVE_ENVIRON_DECL 1
19082_ACEOF
19083
19084 fi
19085
19086
19087
19088for ac_func in strnlen
19089do
19090as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19091{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19092$as_echo_n "checking for $ac_func... " >&6; }
19093if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19094  $as_echo_n "(cached) " >&6
19095else
19096  cat >conftest.$ac_ext <<_ACEOF
19097/* confdefs.h.  */
19098_ACEOF
19099cat confdefs.h >>conftest.$ac_ext
19100cat >>conftest.$ac_ext <<_ACEOF
19101/* end confdefs.h.  */
19102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19103   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19104#define $ac_func innocuous_$ac_func
19105
19106/* System header to define __stub macros and hopefully few prototypes,
19107    which can conflict with char $ac_func (); below.
19108    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19109    <limits.h> exists even on freestanding compilers.  */
19110
19111#ifdef __STDC__
19112# include <limits.h>
19113#else
19114# include <assert.h>
19115#endif
19116
19117#undef $ac_func
19118
19119/* Override any GCC internal prototype to avoid an error.
19120   Use char because int might match the return type of a GCC
19121   builtin and then its argument prototype would still apply.  */
19122#ifdef __cplusplus
19123extern "C"
19124#endif
19125char $ac_func ();
19126/* The GNU C library defines this for functions which it implements
19127    to always fail with ENOSYS.  Some functions are actually named
19128    something starting with __ and the normal name is an alias.  */
19129#if defined __stub_$ac_func || defined __stub___$ac_func
19130choke me
19131#endif
19132
19133int
19134main ()
19135{
19136return $ac_func ();
19137  ;
19138  return 0;
19139}
19140_ACEOF
19141rm -f conftest.$ac_objext conftest$ac_exeext
19142if { (ac_try="$ac_link"
19143case "(($ac_try" in
19144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19145  *) ac_try_echo=$ac_try;;
19146esac
19147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19148$as_echo "$ac_try_echo") >&5
19149  (eval "$ac_link") 2>conftest.er1
19150  ac_status=$?
19151  grep -v '^ *+' conftest.er1 >conftest.err
19152  rm -f conftest.er1
19153  cat conftest.err >&5
19154  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155  (exit $ac_status); } && {
19156	 test -z "$ac_c_werror_flag" ||
19157	 test ! -s conftest.err
19158       } && test -s conftest$ac_exeext && {
19159	 test "$cross_compiling" = yes ||
19160	 $as_test_x conftest$ac_exeext
19161       }; then
19162  eval "$as_ac_var=yes"
19163else
19164  $as_echo "$as_me: failed program was:" >&5
19165sed 's/^/| /' conftest.$ac_ext >&5
19166
19167	eval "$as_ac_var=no"
19168fi
19169
19170rm -rf conftest.dSYM
19171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19172      conftest$ac_exeext conftest.$ac_ext
19173fi
19174ac_res=`eval 'as_val=${'$as_ac_var'}
19175		 $as_echo "$as_val"'`
19176	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19177$as_echo "$ac_res" >&6; }
19178as_val=`eval 'as_val=${'$as_ac_var'}
19179		 $as_echo "$as_val"'`
19180   if test "x$as_val" = x""yes; then
19181  cat >>confdefs.h <<_ACEOF
19182#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19183_ACEOF
19184
19185fi
19186done
19187
19188
19189
19190
19191
19192
19193
19194for ac_func in strtoull __strtoull strtouq strtoll __strtoll strtoq
19195do
19196as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19197{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19198$as_echo_n "checking for $ac_func... " >&6; }
19199if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19200  $as_echo_n "(cached) " >&6
19201else
19202  cat >conftest.$ac_ext <<_ACEOF
19203/* confdefs.h.  */
19204_ACEOF
19205cat confdefs.h >>conftest.$ac_ext
19206cat >>conftest.$ac_ext <<_ACEOF
19207/* end confdefs.h.  */
19208/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19209   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19210#define $ac_func innocuous_$ac_func
19211
19212/* System header to define __stub macros and hopefully few prototypes,
19213    which can conflict with char $ac_func (); below.
19214    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19215    <limits.h> exists even on freestanding compilers.  */
19216
19217#ifdef __STDC__
19218# include <limits.h>
19219#else
19220# include <assert.h>
19221#endif
19222
19223#undef $ac_func
19224
19225/* Override any GCC internal prototype to avoid an error.
19226   Use char because int might match the return type of a GCC
19227   builtin and then its argument prototype would still apply.  */
19228#ifdef __cplusplus
19229extern "C"
19230#endif
19231char $ac_func ();
19232/* The GNU C library defines this for functions which it implements
19233    to always fail with ENOSYS.  Some functions are actually named
19234    something starting with __ and the normal name is an alias.  */
19235#if defined __stub_$ac_func || defined __stub___$ac_func
19236choke me
19237#endif
19238
19239int
19240main ()
19241{
19242return $ac_func ();
19243  ;
19244  return 0;
19245}
19246_ACEOF
19247rm -f conftest.$ac_objext conftest$ac_exeext
19248if { (ac_try="$ac_link"
19249case "(($ac_try" in
19250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251  *) ac_try_echo=$ac_try;;
19252esac
19253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19254$as_echo "$ac_try_echo") >&5
19255  (eval "$ac_link") 2>conftest.er1
19256  ac_status=$?
19257  grep -v '^ *+' conftest.er1 >conftest.err
19258  rm -f conftest.er1
19259  cat conftest.err >&5
19260  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261  (exit $ac_status); } && {
19262	 test -z "$ac_c_werror_flag" ||
19263	 test ! -s conftest.err
19264       } && test -s conftest$ac_exeext && {
19265	 test "$cross_compiling" = yes ||
19266	 $as_test_x conftest$ac_exeext
19267       }; then
19268  eval "$as_ac_var=yes"
19269else
19270  $as_echo "$as_me: failed program was:" >&5
19271sed 's/^/| /' conftest.$ac_ext >&5
19272
19273	eval "$as_ac_var=no"
19274fi
19275
19276rm -rf conftest.dSYM
19277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19278      conftest$ac_exeext conftest.$ac_ext
19279fi
19280ac_res=`eval 'as_val=${'$as_ac_var'}
19281		 $as_echo "$as_val"'`
19282	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19283$as_echo "$ac_res" >&6; }
19284as_val=`eval 'as_val=${'$as_ac_var'}
19285		 $as_echo "$as_val"'`
19286   if test "x$as_val" = x""yes; then
19287  cat >>confdefs.h <<_ACEOF
19288#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19289_ACEOF
19290
19291fi
19292done
19293
19294
19295# this test disabled as we don't actually need __VA_ARGS__ yet
19296cat >conftest.$ac_ext <<_ACEOF
19297/* confdefs.h.  */
19298_ACEOF
19299cat confdefs.h >>conftest.$ac_ext
19300cat >>conftest.$ac_ext <<_ACEOF
19301/* end confdefs.h.  */
19302
19303#define eprintf(...) fprintf(stderr, __VA_ARGS__)
19304eprintf("bla", "bar");
19305
19306_ACEOF
19307if { (ac_try="$ac_cpp conftest.$ac_ext"
19308case "(($ac_try" in
19309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310  *) ac_try_echo=$ac_try;;
19311esac
19312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19313$as_echo "$ac_try_echo") >&5
19314  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19315  ac_status=$?
19316  grep -v '^ *+' conftest.er1 >conftest.err
19317  rm -f conftest.er1
19318  cat conftest.err >&5
19319  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320  (exit $ac_status); } >/dev/null && {
19321	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19322	 test ! -s conftest.err
19323       }; then
19324
19325cat >>confdefs.h <<\_ACEOF
19326#define HAVE__VA_ARGS__MACRO 1
19327_ACEOF
19328
19329else
19330  $as_echo "$as_me: failed program was:" >&5
19331sed 's/^/| /' conftest.$ac_ext >&5
19332
19333
19334fi
19335
19336rm -f conftest.err conftest.$ac_ext
19337
19338
19339{ $as_echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
19340$as_echo_n "checking for sig_atomic_t type... " >&6; }
19341if test "${libreplace_cv_sig_atomic_t+set}" = set; then
19342  $as_echo_n "(cached) " >&6
19343else
19344
19345    cat >conftest.$ac_ext <<_ACEOF
19346/* confdefs.h.  */
19347_ACEOF
19348cat confdefs.h >>conftest.$ac_ext
19349cat >>conftest.$ac_ext <<_ACEOF
19350/* end confdefs.h.  */
19351
19352#include <sys/types.h>
19353#if STDC_HEADERS
19354#include <stdlib.h>
19355#include <stddef.h>
19356#endif
19357#include <signal.h>
19358int
19359main ()
19360{
19361sig_atomic_t i = 0
19362  ;
19363  return 0;
19364}
19365_ACEOF
19366rm -f conftest.$ac_objext
19367if { (ac_try="$ac_compile"
19368case "(($ac_try" in
19369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370  *) ac_try_echo=$ac_try;;
19371esac
19372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19373$as_echo "$ac_try_echo") >&5
19374  (eval "$ac_compile") 2>conftest.er1
19375  ac_status=$?
19376  grep -v '^ *+' conftest.er1 >conftest.err
19377  rm -f conftest.er1
19378  cat conftest.err >&5
19379  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380  (exit $ac_status); } && {
19381	 test -z "$ac_c_werror_flag" ||
19382	 test ! -s conftest.err
19383       } && test -s conftest.$ac_objext; then
19384  libreplace_cv_sig_atomic_t=yes
19385else
19386  $as_echo "$as_me: failed program was:" >&5
19387sed 's/^/| /' conftest.$ac_ext >&5
19388
19389	libreplace_cv_sig_atomic_t=no
19390fi
19391
19392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19393fi
19394{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_sig_atomic_t" >&5
19395$as_echo "$libreplace_cv_sig_atomic_t" >&6; }
19396if test x"$libreplace_cv_sig_atomic_t" = x"yes"; then
19397
19398cat >>confdefs.h <<\_ACEOF
19399#define HAVE_SIG_ATOMIC_T_TYPE 1
19400_ACEOF
19401
19402fi
19403
19404
19405{ $as_echo "$as_me:$LINENO: checking for O_DIRECT flag to open(2)" >&5
19406$as_echo_n "checking for O_DIRECT flag to open(2)... " >&6; }
19407if test "${libreplace_cv_HAVE_OPEN_O_DIRECT+set}" = set; then
19408  $as_echo_n "(cached) " >&6
19409else
19410
19411cat >conftest.$ac_ext <<_ACEOF
19412/* confdefs.h.  */
19413_ACEOF
19414cat confdefs.h >>conftest.$ac_ext
19415cat >>conftest.$ac_ext <<_ACEOF
19416/* end confdefs.h.  */
19417
19418#include <unistd.h>
19419#ifdef HAVE_FCNTL_H
19420#include <fcntl.h>
19421#endif
19422int
19423main ()
19424{
19425int fd = open("/dev/null", O_DIRECT);
19426  ;
19427  return 0;
19428}
19429_ACEOF
19430rm -f conftest.$ac_objext
19431if { (ac_try="$ac_compile"
19432case "(($ac_try" in
19433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434  *) ac_try_echo=$ac_try;;
19435esac
19436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19437$as_echo "$ac_try_echo") >&5
19438  (eval "$ac_compile") 2>conftest.er1
19439  ac_status=$?
19440  grep -v '^ *+' conftest.er1 >conftest.err
19441  rm -f conftest.er1
19442  cat conftest.err >&5
19443  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444  (exit $ac_status); } && {
19445	 test -z "$ac_c_werror_flag" ||
19446	 test ! -s conftest.err
19447       } && test -s conftest.$ac_objext; then
19448  libreplace_cv_HAVE_OPEN_O_DIRECT=yes
19449else
19450  $as_echo "$as_me: failed program was:" >&5
19451sed 's/^/| /' conftest.$ac_ext >&5
19452
19453	libreplace_cv_HAVE_OPEN_O_DIRECT=no
19454fi
19455
19456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19457fi
19458{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_OPEN_O_DIRECT" >&5
19459$as_echo "$libreplace_cv_HAVE_OPEN_O_DIRECT" >&6; }
19460if test x"$libreplace_cv_HAVE_OPEN_O_DIRECT" = x"yes"; then
19461
19462cat >>confdefs.h <<\_ACEOF
19463#define HAVE_OPEN_O_DIRECT 1
19464_ACEOF
19465
19466fi
19467
19468
19469{ $as_echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
19470$as_echo_n "checking that the C compiler understands volatile... " >&6; }
19471if test "${libreplace_cv_volatile+set}" = set; then
19472  $as_echo_n "(cached) " >&6
19473else
19474
19475	cat >conftest.$ac_ext <<_ACEOF
19476/* confdefs.h.  */
19477_ACEOF
19478cat confdefs.h >>conftest.$ac_ext
19479cat >>conftest.$ac_ext <<_ACEOF
19480/* end confdefs.h.  */
19481#include <sys/types.h>
19482int
19483main ()
19484{
19485volatile int i = 0
19486  ;
19487  return 0;
19488}
19489_ACEOF
19490rm -f conftest.$ac_objext
19491if { (ac_try="$ac_compile"
19492case "(($ac_try" in
19493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494  *) ac_try_echo=$ac_try;;
19495esac
19496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19497$as_echo "$ac_try_echo") >&5
19498  (eval "$ac_compile") 2>conftest.er1
19499  ac_status=$?
19500  grep -v '^ *+' conftest.er1 >conftest.err
19501  rm -f conftest.er1
19502  cat conftest.err >&5
19503  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504  (exit $ac_status); } && {
19505	 test -z "$ac_c_werror_flag" ||
19506	 test ! -s conftest.err
19507       } && test -s conftest.$ac_objext; then
19508  libreplace_cv_volatile=yes
19509else
19510  $as_echo "$as_me: failed program was:" >&5
19511sed 's/^/| /' conftest.$ac_ext >&5
19512
19513	libreplace_cv_volatile=no
19514fi
19515
19516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19517fi
19518{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_volatile" >&5
19519$as_echo "$libreplace_cv_volatile" >&6; }
19520if test x"$libreplace_cv_volatile" = x"yes"; then
19521
19522cat >>confdefs.h <<\_ACEOF
19523#define HAVE_VOLATILE 1
19524_ACEOF
19525
19526fi
19527
19528# filesys
19529
19530
19531
19532
19533
19534ac_header_dirent=no
19535for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19536  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19537{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19538$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19540  $as_echo_n "(cached) " >&6
19541else
19542  cat >conftest.$ac_ext <<_ACEOF
19543/* confdefs.h.  */
19544_ACEOF
19545cat confdefs.h >>conftest.$ac_ext
19546cat >>conftest.$ac_ext <<_ACEOF
19547/* end confdefs.h.  */
19548#include <sys/types.h>
19549#include <$ac_hdr>
19550
19551int
19552main ()
19553{
19554if ((DIR *) 0)
19555return 0;
19556  ;
19557  return 0;
19558}
19559_ACEOF
19560rm -f conftest.$ac_objext
19561if { (ac_try="$ac_compile"
19562case "(($ac_try" in
19563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564  *) ac_try_echo=$ac_try;;
19565esac
19566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19567$as_echo "$ac_try_echo") >&5
19568  (eval "$ac_compile") 2>conftest.er1
19569  ac_status=$?
19570  grep -v '^ *+' conftest.er1 >conftest.err
19571  rm -f conftest.er1
19572  cat conftest.err >&5
19573  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574  (exit $ac_status); } && {
19575	 test -z "$ac_c_werror_flag" ||
19576	 test ! -s conftest.err
19577       } && test -s conftest.$ac_objext; then
19578  eval "$as_ac_Header=yes"
19579else
19580  $as_echo "$as_me: failed program was:" >&5
19581sed 's/^/| /' conftest.$ac_ext >&5
19582
19583	eval "$as_ac_Header=no"
19584fi
19585
19586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19587fi
19588ac_res=`eval 'as_val=${'$as_ac_Header'}
19589		 $as_echo "$as_val"'`
19590	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19591$as_echo "$ac_res" >&6; }
19592as_val=`eval 'as_val=${'$as_ac_Header'}
19593		 $as_echo "$as_val"'`
19594   if test "x$as_val" = x""yes; then
19595  cat >>confdefs.h <<_ACEOF
19596#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19597_ACEOF
19598
19599ac_header_dirent=$ac_hdr; break
19600fi
19601
19602done
19603# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19604if test $ac_header_dirent = dirent.h; then
19605  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
19606$as_echo_n "checking for library containing opendir... " >&6; }
19607if test "${ac_cv_search_opendir+set}" = set; then
19608  $as_echo_n "(cached) " >&6
19609else
19610  ac_func_search_save_LIBS=$LIBS
19611cat >conftest.$ac_ext <<_ACEOF
19612/* confdefs.h.  */
19613_ACEOF
19614cat confdefs.h >>conftest.$ac_ext
19615cat >>conftest.$ac_ext <<_ACEOF
19616/* end confdefs.h.  */
19617
19618/* Override any GCC internal prototype to avoid an error.
19619   Use char because int might match the return type of a GCC
19620   builtin and then its argument prototype would still apply.  */
19621#ifdef __cplusplus
19622extern "C"
19623#endif
19624char opendir ();
19625int
19626main ()
19627{
19628return opendir ();
19629  ;
19630  return 0;
19631}
19632_ACEOF
19633for ac_lib in '' dir; do
19634  if test -z "$ac_lib"; then
19635    ac_res="none required"
19636  else
19637    ac_res=-l$ac_lib
19638    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19639  fi
19640  rm -f conftest.$ac_objext conftest$ac_exeext
19641if { (ac_try="$ac_link"
19642case "(($ac_try" in
19643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644  *) ac_try_echo=$ac_try;;
19645esac
19646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19647$as_echo "$ac_try_echo") >&5
19648  (eval "$ac_link") 2>conftest.er1
19649  ac_status=$?
19650  grep -v '^ *+' conftest.er1 >conftest.err
19651  rm -f conftest.er1
19652  cat conftest.err >&5
19653  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654  (exit $ac_status); } && {
19655	 test -z "$ac_c_werror_flag" ||
19656	 test ! -s conftest.err
19657       } && test -s conftest$ac_exeext && {
19658	 test "$cross_compiling" = yes ||
19659	 $as_test_x conftest$ac_exeext
19660       }; then
19661  ac_cv_search_opendir=$ac_res
19662else
19663  $as_echo "$as_me: failed program was:" >&5
19664sed 's/^/| /' conftest.$ac_ext >&5
19665
19666
19667fi
19668
19669rm -rf conftest.dSYM
19670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19671      conftest$ac_exeext
19672  if test "${ac_cv_search_opendir+set}" = set; then
19673  break
19674fi
19675done
19676if test "${ac_cv_search_opendir+set}" = set; then
19677  :
19678else
19679  ac_cv_search_opendir=no
19680fi
19681rm conftest.$ac_ext
19682LIBS=$ac_func_search_save_LIBS
19683fi
19684{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19685$as_echo "$ac_cv_search_opendir" >&6; }
19686ac_res=$ac_cv_search_opendir
19687if test "$ac_res" != no; then
19688  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19689
19690fi
19691
19692else
19693  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
19694$as_echo_n "checking for library containing opendir... " >&6; }
19695if test "${ac_cv_search_opendir+set}" = set; then
19696  $as_echo_n "(cached) " >&6
19697else
19698  ac_func_search_save_LIBS=$LIBS
19699cat >conftest.$ac_ext <<_ACEOF
19700/* confdefs.h.  */
19701_ACEOF
19702cat confdefs.h >>conftest.$ac_ext
19703cat >>conftest.$ac_ext <<_ACEOF
19704/* end confdefs.h.  */
19705
19706/* Override any GCC internal prototype to avoid an error.
19707   Use char because int might match the return type of a GCC
19708   builtin and then its argument prototype would still apply.  */
19709#ifdef __cplusplus
19710extern "C"
19711#endif
19712char opendir ();
19713int
19714main ()
19715{
19716return opendir ();
19717  ;
19718  return 0;
19719}
19720_ACEOF
19721for ac_lib in '' x; do
19722  if test -z "$ac_lib"; then
19723    ac_res="none required"
19724  else
19725    ac_res=-l$ac_lib
19726    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19727  fi
19728  rm -f conftest.$ac_objext conftest$ac_exeext
19729if { (ac_try="$ac_link"
19730case "(($ac_try" in
19731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732  *) ac_try_echo=$ac_try;;
19733esac
19734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19735$as_echo "$ac_try_echo") >&5
19736  (eval "$ac_link") 2>conftest.er1
19737  ac_status=$?
19738  grep -v '^ *+' conftest.er1 >conftest.err
19739  rm -f conftest.er1
19740  cat conftest.err >&5
19741  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742  (exit $ac_status); } && {
19743	 test -z "$ac_c_werror_flag" ||
19744	 test ! -s conftest.err
19745       } && test -s conftest$ac_exeext && {
19746	 test "$cross_compiling" = yes ||
19747	 $as_test_x conftest$ac_exeext
19748       }; then
19749  ac_cv_search_opendir=$ac_res
19750else
19751  $as_echo "$as_me: failed program was:" >&5
19752sed 's/^/| /' conftest.$ac_ext >&5
19753
19754
19755fi
19756
19757rm -rf conftest.dSYM
19758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19759      conftest$ac_exeext
19760  if test "${ac_cv_search_opendir+set}" = set; then
19761  break
19762fi
19763done
19764if test "${ac_cv_search_opendir+set}" = set; then
19765  :
19766else
19767  ac_cv_search_opendir=no
19768fi
19769rm conftest.$ac_ext
19770LIBS=$ac_func_search_save_LIBS
19771fi
19772{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19773$as_echo "$ac_cv_search_opendir" >&6; }
19774ac_res=$ac_cv_search_opendir
19775if test "$ac_res" != no; then
19776  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19777
19778fi
19779
19780fi
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790for 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
19791do
19792as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19794  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19795$as_echo_n "checking for $ac_header... " >&6; }
19796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19797  $as_echo_n "(cached) " >&6
19798fi
19799ac_res=`eval 'as_val=${'$as_ac_Header'}
19800		 $as_echo "$as_val"'`
19801	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19802$as_echo "$ac_res" >&6; }
19803else
19804  # Is the header compilable?
19805{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19806$as_echo_n "checking $ac_header usability... " >&6; }
19807cat >conftest.$ac_ext <<_ACEOF
19808/* confdefs.h.  */
19809_ACEOF
19810cat confdefs.h >>conftest.$ac_ext
19811cat >>conftest.$ac_ext <<_ACEOF
19812/* end confdefs.h.  */
19813$ac_includes_default
19814#include <$ac_header>
19815_ACEOF
19816rm -f conftest.$ac_objext
19817if { (ac_try="$ac_compile"
19818case "(($ac_try" in
19819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820  *) ac_try_echo=$ac_try;;
19821esac
19822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19823$as_echo "$ac_try_echo") >&5
19824  (eval "$ac_compile") 2>conftest.er1
19825  ac_status=$?
19826  grep -v '^ *+' conftest.er1 >conftest.err
19827  rm -f conftest.er1
19828  cat conftest.err >&5
19829  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830  (exit $ac_status); } && {
19831	 test -z "$ac_c_werror_flag" ||
19832	 test ! -s conftest.err
19833       } && test -s conftest.$ac_objext; then
19834  ac_header_compiler=yes
19835else
19836  $as_echo "$as_me: failed program was:" >&5
19837sed 's/^/| /' conftest.$ac_ext >&5
19838
19839	ac_header_compiler=no
19840fi
19841
19842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19843{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19844$as_echo "$ac_header_compiler" >&6; }
19845
19846# Is the header present?
19847{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19848$as_echo_n "checking $ac_header presence... " >&6; }
19849cat >conftest.$ac_ext <<_ACEOF
19850/* confdefs.h.  */
19851_ACEOF
19852cat confdefs.h >>conftest.$ac_ext
19853cat >>conftest.$ac_ext <<_ACEOF
19854/* end confdefs.h.  */
19855#include <$ac_header>
19856_ACEOF
19857if { (ac_try="$ac_cpp conftest.$ac_ext"
19858case "(($ac_try" in
19859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860  *) ac_try_echo=$ac_try;;
19861esac
19862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19863$as_echo "$ac_try_echo") >&5
19864  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19865  ac_status=$?
19866  grep -v '^ *+' conftest.er1 >conftest.err
19867  rm -f conftest.er1
19868  cat conftest.err >&5
19869  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870  (exit $ac_status); } >/dev/null && {
19871	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19872	 test ! -s conftest.err
19873       }; then
19874  ac_header_preproc=yes
19875else
19876  $as_echo "$as_me: failed program was:" >&5
19877sed 's/^/| /' conftest.$ac_ext >&5
19878
19879  ac_header_preproc=no
19880fi
19881
19882rm -f conftest.err conftest.$ac_ext
19883{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19884$as_echo "$ac_header_preproc" >&6; }
19885
19886# So?  What about this header?
19887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19888  yes:no: )
19889    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19890$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19891    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19892$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19893    ac_header_preproc=yes
19894    ;;
19895  no:yes:* )
19896    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19897$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19898    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19899$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19900    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19901$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19902    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19903$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19904    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19905$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19906    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19907$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19908    ( cat <<\_ASBOX
19909## ---------------------------------------- ##
19910## Report this to samba-technical@samba.org ##
19911## ---------------------------------------- ##
19912_ASBOX
19913     ) | sed "s/^/$as_me: WARNING:     /" >&2
19914    ;;
19915esac
19916{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19917$as_echo_n "checking for $ac_header... " >&6; }
19918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19919  $as_echo_n "(cached) " >&6
19920else
19921  eval "$as_ac_Header=\$ac_header_preproc"
19922fi
19923ac_res=`eval 'as_val=${'$as_ac_Header'}
19924		 $as_echo "$as_val"'`
19925	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19926$as_echo "$ac_res" >&6; }
19927
19928fi
19929as_val=`eval 'as_val=${'$as_ac_Header'}
19930		 $as_echo "$as_val"'`
19931   if test "x$as_val" = x""yes; then
19932  cat >>confdefs.h <<_ACEOF
19933#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19934_ACEOF
19935
19936fi
19937
19938done
19939
19940
19941
19942for ac_header in sys/acl.h acl/libacl.h
19943do
19944as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19946  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19947$as_echo_n "checking for $ac_header... " >&6; }
19948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19949  $as_echo_n "(cached) " >&6
19950fi
19951ac_res=`eval 'as_val=${'$as_ac_Header'}
19952		 $as_echo "$as_val"'`
19953	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19954$as_echo "$ac_res" >&6; }
19955else
19956  # Is the header compilable?
19957{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19958$as_echo_n "checking $ac_header usability... " >&6; }
19959cat >conftest.$ac_ext <<_ACEOF
19960/* confdefs.h.  */
19961_ACEOF
19962cat confdefs.h >>conftest.$ac_ext
19963cat >>conftest.$ac_ext <<_ACEOF
19964/* end confdefs.h.  */
19965$ac_includes_default
19966#include <$ac_header>
19967_ACEOF
19968rm -f conftest.$ac_objext
19969if { (ac_try="$ac_compile"
19970case "(($ac_try" in
19971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972  *) ac_try_echo=$ac_try;;
19973esac
19974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19975$as_echo "$ac_try_echo") >&5
19976  (eval "$ac_compile") 2>conftest.er1
19977  ac_status=$?
19978  grep -v '^ *+' conftest.er1 >conftest.err
19979  rm -f conftest.er1
19980  cat conftest.err >&5
19981  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982  (exit $ac_status); } && {
19983	 test -z "$ac_c_werror_flag" ||
19984	 test ! -s conftest.err
19985       } && test -s conftest.$ac_objext; then
19986  ac_header_compiler=yes
19987else
19988  $as_echo "$as_me: failed program was:" >&5
19989sed 's/^/| /' conftest.$ac_ext >&5
19990
19991	ac_header_compiler=no
19992fi
19993
19994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19995{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19996$as_echo "$ac_header_compiler" >&6; }
19997
19998# Is the header present?
19999{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20000$as_echo_n "checking $ac_header presence... " >&6; }
20001cat >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#include <$ac_header>
20008_ACEOF
20009if { (ac_try="$ac_cpp conftest.$ac_ext"
20010case "(($ac_try" in
20011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012  *) ac_try_echo=$ac_try;;
20013esac
20014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20015$as_echo "$ac_try_echo") >&5
20016  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20017  ac_status=$?
20018  grep -v '^ *+' conftest.er1 >conftest.err
20019  rm -f conftest.er1
20020  cat conftest.err >&5
20021  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022  (exit $ac_status); } >/dev/null && {
20023	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20024	 test ! -s conftest.err
20025       }; then
20026  ac_header_preproc=yes
20027else
20028  $as_echo "$as_me: failed program was:" >&5
20029sed 's/^/| /' conftest.$ac_ext >&5
20030
20031  ac_header_preproc=no
20032fi
20033
20034rm -f conftest.err conftest.$ac_ext
20035{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20036$as_echo "$ac_header_preproc" >&6; }
20037
20038# So?  What about this header?
20039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20040  yes:no: )
20041    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20042$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20043    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20044$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20045    ac_header_preproc=yes
20046    ;;
20047  no:yes:* )
20048    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20049$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20050    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20051$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20052    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20053$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20054    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20055$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20056    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20057$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20058    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20059$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20060    ( cat <<\_ASBOX
20061## ---------------------------------------- ##
20062## Report this to samba-technical@samba.org ##
20063## ---------------------------------------- ##
20064_ASBOX
20065     ) | sed "s/^/$as_me: WARNING:     /" >&2
20066    ;;
20067esac
20068{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20069$as_echo_n "checking for $ac_header... " >&6; }
20070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20071  $as_echo_n "(cached) " >&6
20072else
20073  eval "$as_ac_Header=\$ac_header_preproc"
20074fi
20075ac_res=`eval 'as_val=${'$as_ac_Header'}
20076		 $as_echo "$as_val"'`
20077	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20078$as_echo "$ac_res" >&6; }
20079
20080fi
20081as_val=`eval 'as_val=${'$as_ac_Header'}
20082		 $as_echo "$as_val"'`
20083   if test "x$as_val" = x""yes; then
20084  cat >>confdefs.h <<_ACEOF
20085#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20086_ACEOF
20087
20088fi
20089
20090done
20091
20092
20093# select
20094
20095for ac_header in sys/select.h
20096do
20097as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20099  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20100$as_echo_n "checking for $ac_header... " >&6; }
20101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20102  $as_echo_n "(cached) " >&6
20103fi
20104ac_res=`eval 'as_val=${'$as_ac_Header'}
20105		 $as_echo "$as_val"'`
20106	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20107$as_echo "$ac_res" >&6; }
20108else
20109  # Is the header compilable?
20110{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20111$as_echo_n "checking $ac_header usability... " >&6; }
20112cat >conftest.$ac_ext <<_ACEOF
20113/* confdefs.h.  */
20114_ACEOF
20115cat confdefs.h >>conftest.$ac_ext
20116cat >>conftest.$ac_ext <<_ACEOF
20117/* end confdefs.h.  */
20118$ac_includes_default
20119#include <$ac_header>
20120_ACEOF
20121rm -f conftest.$ac_objext
20122if { (ac_try="$ac_compile"
20123case "(($ac_try" in
20124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125  *) ac_try_echo=$ac_try;;
20126esac
20127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20128$as_echo "$ac_try_echo") >&5
20129  (eval "$ac_compile") 2>conftest.er1
20130  ac_status=$?
20131  grep -v '^ *+' conftest.er1 >conftest.err
20132  rm -f conftest.er1
20133  cat conftest.err >&5
20134  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135  (exit $ac_status); } && {
20136	 test -z "$ac_c_werror_flag" ||
20137	 test ! -s conftest.err
20138       } && test -s conftest.$ac_objext; then
20139  ac_header_compiler=yes
20140else
20141  $as_echo "$as_me: failed program was:" >&5
20142sed 's/^/| /' conftest.$ac_ext >&5
20143
20144	ac_header_compiler=no
20145fi
20146
20147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20148{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20149$as_echo "$ac_header_compiler" >&6; }
20150
20151# Is the header present?
20152{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20153$as_echo_n "checking $ac_header presence... " >&6; }
20154cat >conftest.$ac_ext <<_ACEOF
20155/* confdefs.h.  */
20156_ACEOF
20157cat confdefs.h >>conftest.$ac_ext
20158cat >>conftest.$ac_ext <<_ACEOF
20159/* end confdefs.h.  */
20160#include <$ac_header>
20161_ACEOF
20162if { (ac_try="$ac_cpp conftest.$ac_ext"
20163case "(($ac_try" in
20164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165  *) ac_try_echo=$ac_try;;
20166esac
20167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20168$as_echo "$ac_try_echo") >&5
20169  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20170  ac_status=$?
20171  grep -v '^ *+' conftest.er1 >conftest.err
20172  rm -f conftest.er1
20173  cat conftest.err >&5
20174  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175  (exit $ac_status); } >/dev/null && {
20176	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20177	 test ! -s conftest.err
20178       }; then
20179  ac_header_preproc=yes
20180else
20181  $as_echo "$as_me: failed program was:" >&5
20182sed 's/^/| /' conftest.$ac_ext >&5
20183
20184  ac_header_preproc=no
20185fi
20186
20187rm -f conftest.err conftest.$ac_ext
20188{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20189$as_echo "$ac_header_preproc" >&6; }
20190
20191# So?  What about this header?
20192case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20193  yes:no: )
20194    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20195$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20196    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20197$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20198    ac_header_preproc=yes
20199    ;;
20200  no:yes:* )
20201    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20202$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20203    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20204$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20205    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20206$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20207    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20208$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20209    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20210$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20211    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20212$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20213    ( cat <<\_ASBOX
20214## ---------------------------------------- ##
20215## Report this to samba-technical@samba.org ##
20216## ---------------------------------------- ##
20217_ASBOX
20218     ) | sed "s/^/$as_me: WARNING:     /" >&2
20219    ;;
20220esac
20221{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20222$as_echo_n "checking for $ac_header... " >&6; }
20223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20224  $as_echo_n "(cached) " >&6
20225else
20226  eval "$as_ac_Header=\$ac_header_preproc"
20227fi
20228ac_res=`eval 'as_val=${'$as_ac_Header'}
20229		 $as_echo "$as_val"'`
20230	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20231$as_echo "$ac_res" >&6; }
20232
20233fi
20234as_val=`eval 'as_val=${'$as_ac_Header'}
20235		 $as_echo "$as_val"'`
20236   if test "x$as_val" = x""yes; then
20237  cat >>confdefs.h <<_ACEOF
20238#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20239_ACEOF
20240
20241fi
20242
20243done
20244
20245
20246# time
20247
20248
20249for ac_header in sys/time.h utime.h
20250do
20251as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20253  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20254$as_echo_n "checking for $ac_header... " >&6; }
20255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20256  $as_echo_n "(cached) " >&6
20257fi
20258ac_res=`eval 'as_val=${'$as_ac_Header'}
20259		 $as_echo "$as_val"'`
20260	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20261$as_echo "$ac_res" >&6; }
20262else
20263  # Is the header compilable?
20264{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20265$as_echo_n "checking $ac_header usability... " >&6; }
20266cat >conftest.$ac_ext <<_ACEOF
20267/* confdefs.h.  */
20268_ACEOF
20269cat confdefs.h >>conftest.$ac_ext
20270cat >>conftest.$ac_ext <<_ACEOF
20271/* end confdefs.h.  */
20272$ac_includes_default
20273#include <$ac_header>
20274_ACEOF
20275rm -f conftest.$ac_objext
20276if { (ac_try="$ac_compile"
20277case "(($ac_try" in
20278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279  *) ac_try_echo=$ac_try;;
20280esac
20281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20282$as_echo "$ac_try_echo") >&5
20283  (eval "$ac_compile") 2>conftest.er1
20284  ac_status=$?
20285  grep -v '^ *+' conftest.er1 >conftest.err
20286  rm -f conftest.er1
20287  cat conftest.err >&5
20288  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289  (exit $ac_status); } && {
20290	 test -z "$ac_c_werror_flag" ||
20291	 test ! -s conftest.err
20292       } && test -s conftest.$ac_objext; then
20293  ac_header_compiler=yes
20294else
20295  $as_echo "$as_me: failed program was:" >&5
20296sed 's/^/| /' conftest.$ac_ext >&5
20297
20298	ac_header_compiler=no
20299fi
20300
20301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20303$as_echo "$ac_header_compiler" >&6; }
20304
20305# Is the header present?
20306{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20307$as_echo_n "checking $ac_header presence... " >&6; }
20308cat >conftest.$ac_ext <<_ACEOF
20309/* confdefs.h.  */
20310_ACEOF
20311cat confdefs.h >>conftest.$ac_ext
20312cat >>conftest.$ac_ext <<_ACEOF
20313/* end confdefs.h.  */
20314#include <$ac_header>
20315_ACEOF
20316if { (ac_try="$ac_cpp conftest.$ac_ext"
20317case "(($ac_try" in
20318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319  *) ac_try_echo=$ac_try;;
20320esac
20321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20322$as_echo "$ac_try_echo") >&5
20323  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20324  ac_status=$?
20325  grep -v '^ *+' conftest.er1 >conftest.err
20326  rm -f conftest.er1
20327  cat conftest.err >&5
20328  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329  (exit $ac_status); } >/dev/null && {
20330	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20331	 test ! -s conftest.err
20332       }; then
20333  ac_header_preproc=yes
20334else
20335  $as_echo "$as_me: failed program was:" >&5
20336sed 's/^/| /' conftest.$ac_ext >&5
20337
20338  ac_header_preproc=no
20339fi
20340
20341rm -f conftest.err conftest.$ac_ext
20342{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20343$as_echo "$ac_header_preproc" >&6; }
20344
20345# So?  What about this header?
20346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20347  yes:no: )
20348    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20349$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20350    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20351$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20352    ac_header_preproc=yes
20353    ;;
20354  no:yes:* )
20355    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20356$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20357    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20358$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20359    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20360$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20361    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20362$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20363    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20364$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20365    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20366$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20367    ( cat <<\_ASBOX
20368## ---------------------------------------- ##
20369## Report this to samba-technical@samba.org ##
20370## ---------------------------------------- ##
20371_ASBOX
20372     ) | sed "s/^/$as_me: WARNING:     /" >&2
20373    ;;
20374esac
20375{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20376$as_echo_n "checking for $ac_header... " >&6; }
20377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20378  $as_echo_n "(cached) " >&6
20379else
20380  eval "$as_ac_Header=\$ac_header_preproc"
20381fi
20382ac_res=`eval 'as_val=${'$as_ac_Header'}
20383		 $as_echo "$as_val"'`
20384	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20385$as_echo "$ac_res" >&6; }
20386
20387fi
20388as_val=`eval 'as_val=${'$as_ac_Header'}
20389		 $as_echo "$as_val"'`
20390   if test "x$as_val" = x""yes; then
20391  cat >>confdefs.h <<_ACEOF
20392#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20393_ACEOF
20394
20395fi
20396
20397done
20398
20399{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20400$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20401if test "${ac_cv_header_time+set}" = set; then
20402  $as_echo_n "(cached) " >&6
20403else
20404  cat >conftest.$ac_ext <<_ACEOF
20405/* confdefs.h.  */
20406_ACEOF
20407cat confdefs.h >>conftest.$ac_ext
20408cat >>conftest.$ac_ext <<_ACEOF
20409/* end confdefs.h.  */
20410#include <sys/types.h>
20411#include <sys/time.h>
20412#include <time.h>
20413
20414int
20415main ()
20416{
20417if ((struct tm *) 0)
20418return 0;
20419  ;
20420  return 0;
20421}
20422_ACEOF
20423rm -f conftest.$ac_objext
20424if { (ac_try="$ac_compile"
20425case "(($ac_try" in
20426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427  *) ac_try_echo=$ac_try;;
20428esac
20429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20430$as_echo "$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  $as_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_cv_header_time=yes
20442else
20443  $as_echo "$as_me: failed program was:" >&5
20444sed 's/^/| /' conftest.$ac_ext >&5
20445
20446	ac_cv_header_time=no
20447fi
20448
20449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20450fi
20451{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20452$as_echo "$ac_cv_header_time" >&6; }
20453if test $ac_cv_header_time = yes; then
20454
20455cat >>confdefs.h <<\_ACEOF
20456#define TIME_WITH_SYS_TIME 1
20457_ACEOF
20458
20459fi
20460
20461
20462
20463for ac_func in utime utimes
20464do
20465as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20466{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20467$as_echo_n "checking for $ac_func... " >&6; }
20468if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20469  $as_echo_n "(cached) " >&6
20470else
20471  cat >conftest.$ac_ext <<_ACEOF
20472/* confdefs.h.  */
20473_ACEOF
20474cat confdefs.h >>conftest.$ac_ext
20475cat >>conftest.$ac_ext <<_ACEOF
20476/* end confdefs.h.  */
20477/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20478   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20479#define $ac_func innocuous_$ac_func
20480
20481/* System header to define __stub macros and hopefully few prototypes,
20482    which can conflict with char $ac_func (); below.
20483    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20484    <limits.h> exists even on freestanding compilers.  */
20485
20486#ifdef __STDC__
20487# include <limits.h>
20488#else
20489# include <assert.h>
20490#endif
20491
20492#undef $ac_func
20493
20494/* Override any GCC internal prototype to avoid an error.
20495   Use char because int might match the return type of a GCC
20496   builtin and then its argument prototype would still apply.  */
20497#ifdef __cplusplus
20498extern "C"
20499#endif
20500char $ac_func ();
20501/* The GNU C library defines this for functions which it implements
20502    to always fail with ENOSYS.  Some functions are actually named
20503    something starting with __ and the normal name is an alias.  */
20504#if defined __stub_$ac_func || defined __stub___$ac_func
20505choke me
20506#endif
20507
20508int
20509main ()
20510{
20511return $ac_func ();
20512  ;
20513  return 0;
20514}
20515_ACEOF
20516rm -f conftest.$ac_objext conftest$ac_exeext
20517if { (ac_try="$ac_link"
20518case "(($ac_try" in
20519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520  *) ac_try_echo=$ac_try;;
20521esac
20522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20523$as_echo "$ac_try_echo") >&5
20524  (eval "$ac_link") 2>conftest.er1
20525  ac_status=$?
20526  grep -v '^ *+' conftest.er1 >conftest.err
20527  rm -f conftest.er1
20528  cat conftest.err >&5
20529  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530  (exit $ac_status); } && {
20531	 test -z "$ac_c_werror_flag" ||
20532	 test ! -s conftest.err
20533       } && test -s conftest$ac_exeext && {
20534	 test "$cross_compiling" = yes ||
20535	 $as_test_x conftest$ac_exeext
20536       }; then
20537  eval "$as_ac_var=yes"
20538else
20539  $as_echo "$as_me: failed program was:" >&5
20540sed 's/^/| /' conftest.$ac_ext >&5
20541
20542	eval "$as_ac_var=no"
20543fi
20544
20545rm -rf conftest.dSYM
20546rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20547      conftest$ac_exeext conftest.$ac_ext
20548fi
20549ac_res=`eval 'as_val=${'$as_ac_var'}
20550		 $as_echo "$as_val"'`
20551	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20552$as_echo "$ac_res" >&6; }
20553as_val=`eval 'as_val=${'$as_ac_var'}
20554		 $as_echo "$as_val"'`
20555   if test "x$as_val" = x""yes; then
20556  cat >>confdefs.h <<_ACEOF
20557#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20558_ACEOF
20559
20560fi
20561done
20562
20563
20564# wait
20565{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20566$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20567if test "${ac_cv_header_sys_wait_h+set}" = set; then
20568  $as_echo_n "(cached) " >&6
20569else
20570  cat >conftest.$ac_ext <<_ACEOF
20571/* confdefs.h.  */
20572_ACEOF
20573cat confdefs.h >>conftest.$ac_ext
20574cat >>conftest.$ac_ext <<_ACEOF
20575/* end confdefs.h.  */
20576#include <sys/types.h>
20577#include <sys/wait.h>
20578#ifndef WEXITSTATUS
20579# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20580#endif
20581#ifndef WIFEXITED
20582# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20583#endif
20584
20585int
20586main ()
20587{
20588  int s;
20589  wait (&s);
20590  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20591  ;
20592  return 0;
20593}
20594_ACEOF
20595rm -f conftest.$ac_objext
20596if { (ac_try="$ac_compile"
20597case "(($ac_try" in
20598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599  *) ac_try_echo=$ac_try;;
20600esac
20601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20602$as_echo "$ac_try_echo") >&5
20603  (eval "$ac_compile") 2>conftest.er1
20604  ac_status=$?
20605  grep -v '^ *+' conftest.er1 >conftest.err
20606  rm -f conftest.er1
20607  cat conftest.err >&5
20608  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609  (exit $ac_status); } && {
20610	 test -z "$ac_c_werror_flag" ||
20611	 test ! -s conftest.err
20612       } && test -s conftest.$ac_objext; then
20613  ac_cv_header_sys_wait_h=yes
20614else
20615  $as_echo "$as_me: failed program was:" >&5
20616sed 's/^/| /' conftest.$ac_ext >&5
20617
20618	ac_cv_header_sys_wait_h=no
20619fi
20620
20621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20622fi
20623{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20624$as_echo "$ac_cv_header_sys_wait_h" >&6; }
20625if test $ac_cv_header_sys_wait_h = yes; then
20626
20627cat >>confdefs.h <<\_ACEOF
20628#define HAVE_SYS_WAIT_H 1
20629_ACEOF
20630
20631fi
20632
20633
20634# capability
20635
20636for ac_header in sys/capability.h
20637do
20638as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20640  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20641$as_echo_n "checking for $ac_header... " >&6; }
20642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20643  $as_echo_n "(cached) " >&6
20644fi
20645ac_res=`eval 'as_val=${'$as_ac_Header'}
20646		 $as_echo "$as_val"'`
20647	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20648$as_echo "$ac_res" >&6; }
20649else
20650  # Is the header compilable?
20651{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20652$as_echo_n "checking $ac_header usability... " >&6; }
20653cat >conftest.$ac_ext <<_ACEOF
20654/* confdefs.h.  */
20655_ACEOF
20656cat confdefs.h >>conftest.$ac_ext
20657cat >>conftest.$ac_ext <<_ACEOF
20658/* end confdefs.h.  */
20659$ac_includes_default
20660#include <$ac_header>
20661_ACEOF
20662rm -f conftest.$ac_objext
20663if { (ac_try="$ac_compile"
20664case "(($ac_try" in
20665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666  *) ac_try_echo=$ac_try;;
20667esac
20668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20669$as_echo "$ac_try_echo") >&5
20670  (eval "$ac_compile") 2>conftest.er1
20671  ac_status=$?
20672  grep -v '^ *+' conftest.er1 >conftest.err
20673  rm -f conftest.er1
20674  cat conftest.err >&5
20675  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676  (exit $ac_status); } && {
20677	 test -z "$ac_c_werror_flag" ||
20678	 test ! -s conftest.err
20679       } && test -s conftest.$ac_objext; then
20680  ac_header_compiler=yes
20681else
20682  $as_echo "$as_me: failed program was:" >&5
20683sed 's/^/| /' conftest.$ac_ext >&5
20684
20685	ac_header_compiler=no
20686fi
20687
20688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20689{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20690$as_echo "$ac_header_compiler" >&6; }
20691
20692# Is the header present?
20693{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20694$as_echo_n "checking $ac_header presence... " >&6; }
20695cat >conftest.$ac_ext <<_ACEOF
20696/* confdefs.h.  */
20697_ACEOF
20698cat confdefs.h >>conftest.$ac_ext
20699cat >>conftest.$ac_ext <<_ACEOF
20700/* end confdefs.h.  */
20701#include <$ac_header>
20702_ACEOF
20703if { (ac_try="$ac_cpp conftest.$ac_ext"
20704case "(($ac_try" in
20705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706  *) ac_try_echo=$ac_try;;
20707esac
20708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20709$as_echo "$ac_try_echo") >&5
20710  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20711  ac_status=$?
20712  grep -v '^ *+' conftest.er1 >conftest.err
20713  rm -f conftest.er1
20714  cat conftest.err >&5
20715  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716  (exit $ac_status); } >/dev/null && {
20717	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20718	 test ! -s conftest.err
20719       }; then
20720  ac_header_preproc=yes
20721else
20722  $as_echo "$as_me: failed program was:" >&5
20723sed 's/^/| /' conftest.$ac_ext >&5
20724
20725  ac_header_preproc=no
20726fi
20727
20728rm -f conftest.err conftest.$ac_ext
20729{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20730$as_echo "$ac_header_preproc" >&6; }
20731
20732# So?  What about this header?
20733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20734  yes:no: )
20735    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20736$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20737    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20738$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20739    ac_header_preproc=yes
20740    ;;
20741  no:yes:* )
20742    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20743$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20744    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20745$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20746    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20747$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20748    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20749$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20750    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20751$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20752    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20753$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20754    ( cat <<\_ASBOX
20755## ---------------------------------------- ##
20756## Report this to samba-technical@samba.org ##
20757## ---------------------------------------- ##
20758_ASBOX
20759     ) | sed "s/^/$as_me: WARNING:     /" >&2
20760    ;;
20761esac
20762{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20763$as_echo_n "checking for $ac_header... " >&6; }
20764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20765  $as_echo_n "(cached) " >&6
20766else
20767  eval "$as_ac_Header=\$ac_header_preproc"
20768fi
20769ac_res=`eval 'as_val=${'$as_ac_Header'}
20770		 $as_echo "$as_val"'`
20771	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20772$as_echo "$ac_res" >&6; }
20773
20774fi
20775as_val=`eval 'as_val=${'$as_ac_Header'}
20776		 $as_echo "$as_val"'`
20777   if test "x$as_val" = x""yes; then
20778  cat >>confdefs.h <<_ACEOF
20779#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20780_ACEOF
20781
20782fi
20783
20784done
20785
20786
20787case "$host_os" in
20788*linux*)
20789{ $as_echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
20790$as_echo_n "checking for broken RedHat 7.2 system header files... " >&6; }
20791if test "${libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
20792  $as_echo_n "(cached) " >&6
20793else
20794
20795cat >conftest.$ac_ext <<_ACEOF
20796/* confdefs.h.  */
20797_ACEOF
20798cat confdefs.h >>conftest.$ac_ext
20799cat >>conftest.$ac_ext <<_ACEOF
20800/* end confdefs.h.  */
20801
20802	#ifdef HAVE_SYS_VFS_H
20803	#include <sys/vfs.h>
20804	#endif
20805	#ifdef HAVE_SYS_CAPABILITY_H
20806	#include <sys/capability.h>
20807	#endif
20808
20809int
20810main ()
20811{
20812
20813	int i;
20814
20815  ;
20816  return 0;
20817}
20818_ACEOF
20819rm -f conftest.$ac_objext
20820if { (ac_try="$ac_compile"
20821case "(($ac_try" in
20822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823  *) ac_try_echo=$ac_try;;
20824esac
20825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20826$as_echo "$ac_try_echo") >&5
20827  (eval "$ac_compile") 2>conftest.er1
20828  ac_status=$?
20829  grep -v '^ *+' conftest.er1 >conftest.err
20830  rm -f conftest.er1
20831  cat conftest.err >&5
20832  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833  (exit $ac_status); } && {
20834	 test -z "$ac_c_werror_flag" ||
20835	 test ! -s conftest.err
20836       } && test -s conftest.$ac_objext; then
20837  libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
20838else
20839  $as_echo "$as_me: failed program was:" >&5
20840sed 's/^/| /' conftest.$ac_ext >&5
20841
20842	libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
20843
20844fi
20845
20846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847fi
20848{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
20849$as_echo "$libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6; }
20850if test x"$libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
20851
20852cat >>confdefs.h <<\_ACEOF
20853#define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
20854_ACEOF
20855
20856fi
20857
20858{ $as_echo "$as_me:$LINENO: checking for broken RHEL5 sys/capability.h" >&5
20859$as_echo_n "checking for broken RHEL5 sys/capability.h... " >&6; }
20860if test "${libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER+set}" = set; then
20861  $as_echo_n "(cached) " >&6
20862else
20863
20864cat >conftest.$ac_ext <<_ACEOF
20865/* confdefs.h.  */
20866_ACEOF
20867cat confdefs.h >>conftest.$ac_ext
20868cat >>conftest.$ac_ext <<_ACEOF
20869/* end confdefs.h.  */
20870
20871	#ifdef HAVE_SYS_CAPABILITY_H
20872	#include <sys/capability.h>
20873	#endif
20874	#include <linux/types.h>
20875
20876int
20877main ()
20878{
20879
20880	__s8 i;
20881
20882  ;
20883  return 0;
20884}
20885_ACEOF
20886rm -f conftest.$ac_objext
20887if { (ac_try="$ac_compile"
20888case "(($ac_try" in
20889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890  *) ac_try_echo=$ac_try;;
20891esac
20892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20893$as_echo "$ac_try_echo") >&5
20894  (eval "$ac_compile") 2>conftest.er1
20895  ac_status=$?
20896  grep -v '^ *+' conftest.er1 >conftest.err
20897  rm -f conftest.er1
20898  cat conftest.err >&5
20899  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900  (exit $ac_status); } && {
20901	 test -z "$ac_c_werror_flag" ||
20902	 test ! -s conftest.err
20903       } && test -s conftest.$ac_objext; then
20904  libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER=no
20905else
20906  $as_echo "$as_me: failed program was:" >&5
20907sed 's/^/| /' conftest.$ac_ext >&5
20908
20909	libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER=yes
20910
20911fi
20912
20913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20914fi
20915{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER" >&5
20916$as_echo "$libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER" >&6; }
20917if test x"$libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER" = x"yes"; then
20918
20919cat >>confdefs.h <<\_ACEOF
20920#define BROKEN_RHEL5_SYS_CAP_HEADER 1
20921_ACEOF
20922
20923fi
20924;;
20925esac
20926
20927# passwd
20928
20929
20930
20931
20932
20933
20934
20935for ac_header in grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h
20936do
20937as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20939  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20940$as_echo_n "checking for $ac_header... " >&6; }
20941if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20942  $as_echo_n "(cached) " >&6
20943fi
20944ac_res=`eval 'as_val=${'$as_ac_Header'}
20945		 $as_echo "$as_val"'`
20946	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20947$as_echo "$ac_res" >&6; }
20948else
20949  # Is the header compilable?
20950{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20951$as_echo_n "checking $ac_header usability... " >&6; }
20952cat >conftest.$ac_ext <<_ACEOF
20953/* confdefs.h.  */
20954_ACEOF
20955cat confdefs.h >>conftest.$ac_ext
20956cat >>conftest.$ac_ext <<_ACEOF
20957/* end confdefs.h.  */
20958$ac_includes_default
20959#include <$ac_header>
20960_ACEOF
20961rm -f conftest.$ac_objext
20962if { (ac_try="$ac_compile"
20963case "(($ac_try" in
20964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965  *) ac_try_echo=$ac_try;;
20966esac
20967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20968$as_echo "$ac_try_echo") >&5
20969  (eval "$ac_compile") 2>conftest.er1
20970  ac_status=$?
20971  grep -v '^ *+' conftest.er1 >conftest.err
20972  rm -f conftest.er1
20973  cat conftest.err >&5
20974  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975  (exit $ac_status); } && {
20976	 test -z "$ac_c_werror_flag" ||
20977	 test ! -s conftest.err
20978       } && test -s conftest.$ac_objext; then
20979  ac_header_compiler=yes
20980else
20981  $as_echo "$as_me: failed program was:" >&5
20982sed 's/^/| /' conftest.$ac_ext >&5
20983
20984	ac_header_compiler=no
20985fi
20986
20987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20988{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20989$as_echo "$ac_header_compiler" >&6; }
20990
20991# Is the header present?
20992{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20993$as_echo_n "checking $ac_header presence... " >&6; }
20994cat >conftest.$ac_ext <<_ACEOF
20995/* confdefs.h.  */
20996_ACEOF
20997cat confdefs.h >>conftest.$ac_ext
20998cat >>conftest.$ac_ext <<_ACEOF
20999/* end confdefs.h.  */
21000#include <$ac_header>
21001_ACEOF
21002if { (ac_try="$ac_cpp conftest.$ac_ext"
21003case "(($ac_try" in
21004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005  *) ac_try_echo=$ac_try;;
21006esac
21007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21008$as_echo "$ac_try_echo") >&5
21009  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21010  ac_status=$?
21011  grep -v '^ *+' conftest.er1 >conftest.err
21012  rm -f conftest.er1
21013  cat conftest.err >&5
21014  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015  (exit $ac_status); } >/dev/null && {
21016	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21017	 test ! -s conftest.err
21018       }; then
21019  ac_header_preproc=yes
21020else
21021  $as_echo "$as_me: failed program was:" >&5
21022sed 's/^/| /' conftest.$ac_ext >&5
21023
21024  ac_header_preproc=no
21025fi
21026
21027rm -f conftest.err conftest.$ac_ext
21028{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21029$as_echo "$ac_header_preproc" >&6; }
21030
21031# So?  What about this header?
21032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21033  yes:no: )
21034    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21035$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21036    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21037$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21038    ac_header_preproc=yes
21039    ;;
21040  no:yes:* )
21041    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21042$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21043    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21044$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21045    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21046$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21047    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21048$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21049    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21050$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21051    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21052$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21053    ( cat <<\_ASBOX
21054## ---------------------------------------- ##
21055## Report this to samba-technical@samba.org ##
21056## ---------------------------------------- ##
21057_ASBOX
21058     ) | sed "s/^/$as_me: WARNING:     /" >&2
21059    ;;
21060esac
21061{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21062$as_echo_n "checking for $ac_header... " >&6; }
21063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21064  $as_echo_n "(cached) " >&6
21065else
21066  eval "$as_ac_Header=\$ac_header_preproc"
21067fi
21068ac_res=`eval 'as_val=${'$as_ac_Header'}
21069		 $as_echo "$as_val"'`
21070	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21071$as_echo "$ac_res" >&6; }
21072
21073fi
21074as_val=`eval 'as_val=${'$as_ac_Header'}
21075		 $as_echo "$as_val"'`
21076   if test "x$as_val" = x""yes; then
21077  cat >>confdefs.h <<_ACEOF
21078#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21079_ACEOF
21080
21081fi
21082
21083done
21084
21085
21086
21087
21088for ac_func in getpwnam_r getpwuid_r getpwent_r
21089do
21090as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21091{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21092$as_echo_n "checking for $ac_func... " >&6; }
21093if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21094  $as_echo_n "(cached) " >&6
21095else
21096  cat >conftest.$ac_ext <<_ACEOF
21097/* confdefs.h.  */
21098_ACEOF
21099cat confdefs.h >>conftest.$ac_ext
21100cat >>conftest.$ac_ext <<_ACEOF
21101/* end confdefs.h.  */
21102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21103   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21104#define $ac_func innocuous_$ac_func
21105
21106/* System header to define __stub macros and hopefully few prototypes,
21107    which can conflict with char $ac_func (); below.
21108    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21109    <limits.h> exists even on freestanding compilers.  */
21110
21111#ifdef __STDC__
21112# include <limits.h>
21113#else
21114# include <assert.h>
21115#endif
21116
21117#undef $ac_func
21118
21119/* Override any GCC internal prototype to avoid an error.
21120   Use char because int might match the return type of a GCC
21121   builtin and then its argument prototype would still apply.  */
21122#ifdef __cplusplus
21123extern "C"
21124#endif
21125char $ac_func ();
21126/* The GNU C library defines this for functions which it implements
21127    to always fail with ENOSYS.  Some functions are actually named
21128    something starting with __ and the normal name is an alias.  */
21129#if defined __stub_$ac_func || defined __stub___$ac_func
21130choke me
21131#endif
21132
21133int
21134main ()
21135{
21136return $ac_func ();
21137  ;
21138  return 0;
21139}
21140_ACEOF
21141rm -f conftest.$ac_objext conftest$ac_exeext
21142if { (ac_try="$ac_link"
21143case "(($ac_try" in
21144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145  *) ac_try_echo=$ac_try;;
21146esac
21147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21148$as_echo "$ac_try_echo") >&5
21149  (eval "$ac_link") 2>conftest.er1
21150  ac_status=$?
21151  grep -v '^ *+' conftest.er1 >conftest.err
21152  rm -f conftest.er1
21153  cat conftest.err >&5
21154  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155  (exit $ac_status); } && {
21156	 test -z "$ac_c_werror_flag" ||
21157	 test ! -s conftest.err
21158       } && test -s conftest$ac_exeext && {
21159	 test "$cross_compiling" = yes ||
21160	 $as_test_x conftest$ac_exeext
21161       }; then
21162  eval "$as_ac_var=yes"
21163else
21164  $as_echo "$as_me: failed program was:" >&5
21165sed 's/^/| /' conftest.$ac_ext >&5
21166
21167	eval "$as_ac_var=no"
21168fi
21169
21170rm -rf conftest.dSYM
21171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21172      conftest$ac_exeext conftest.$ac_ext
21173fi
21174ac_res=`eval 'as_val=${'$as_ac_var'}
21175		 $as_echo "$as_val"'`
21176	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21177$as_echo "$ac_res" >&6; }
21178as_val=`eval 'as_val=${'$as_ac_var'}
21179		 $as_echo "$as_val"'`
21180   if test "x$as_val" = x""yes; then
21181  cat >>confdefs.h <<_ACEOF
21182#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21183_ACEOF
21184
21185fi
21186done
21187
21188
21189 { $as_echo "$as_me:$LINENO: checking for getpwent_r declaration" >&5
21190$as_echo_n "checking for getpwent_r declaration... " >&6; }
21191if test "${ac_cv_have_getpwent_r_decl+set}" = set; then
21192  $as_echo_n "(cached) " >&6
21193else
21194
21195    cat >conftest.$ac_ext <<_ACEOF
21196/* confdefs.h.  */
21197_ACEOF
21198cat confdefs.h >>conftest.$ac_ext
21199cat >>conftest.$ac_ext <<_ACEOF
21200/* end confdefs.h.  */
21201
21202	#include <unistd.h>
21203	#include <pwd.h>
21204
21205int
21206main ()
21207{
21208int i = (int)getpwent_r
21209  ;
21210  return 0;
21211}
21212_ACEOF
21213rm -f conftest.$ac_objext
21214if { (ac_try="$ac_compile"
21215case "(($ac_try" in
21216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217  *) ac_try_echo=$ac_try;;
21218esac
21219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21220$as_echo "$ac_try_echo") >&5
21221  (eval "$ac_compile") 2>conftest.er1
21222  ac_status=$?
21223  grep -v '^ *+' conftest.er1 >conftest.err
21224  rm -f conftest.er1
21225  cat conftest.err >&5
21226  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227  (exit $ac_status); } && {
21228	 test -z "$ac_c_werror_flag" ||
21229	 test ! -s conftest.err
21230       } && test -s conftest.$ac_objext; then
21231  ac_cv_have_getpwent_r_decl=yes
21232else
21233  $as_echo "$as_me: failed program was:" >&5
21234sed 's/^/| /' conftest.$ac_ext >&5
21235
21236	ac_cv_have_getpwent_r_decl=no
21237fi
21238
21239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21240fi
21241{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_getpwent_r_decl" >&5
21242$as_echo "$ac_cv_have_getpwent_r_decl" >&6; }
21243 if test x"$ac_cv_have_getpwent_r_decl" = x"yes"; then
21244
21245cat >>confdefs.h <<\_ACEOF
21246#define HAVE_GETPWENT_R_DECL 1
21247_ACEOF
21248
21249 fi
21250
21251{ $as_echo "$as_me:$LINENO: checking for prototype struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)" >&5
21252$as_echo_n "checking for prototype struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)... " >&6; }
21253if test "${ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_+set}" = set; then
21254  $as_echo_n "(cached) " >&6
21255else
21256  cat >conftest.$ac_ext <<_ACEOF
21257/* confdefs.h.  */
21258_ACEOF
21259cat confdefs.h >>conftest.$ac_ext
21260cat >>conftest.$ac_ext <<_ACEOF
21261/* end confdefs.h.  */
21262
21263		$ac_includes_default
21264
21265	#include <unistd.h>
21266	#include <pwd.h>
21267
21268		struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)
21269		{
21270
21271	#ifndef HAVE_GETPWENT_R_DECL
21272	#error missing getpwent_r prototype
21273	#endif
21274	return NULL;
21275
21276		}
21277
21278_ACEOF
21279rm -f conftest.$ac_objext
21280if { (ac_try="$ac_compile"
21281case "(($ac_try" in
21282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283  *) ac_try_echo=$ac_try;;
21284esac
21285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21286$as_echo "$ac_try_echo") >&5
21287  (eval "$ac_compile") 2>conftest.er1
21288  ac_status=$?
21289  grep -v '^ *+' conftest.er1 >conftest.err
21290  rm -f conftest.er1
21291  cat conftest.err >&5
21292  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293  (exit $ac_status); } && {
21294	 test -z "$ac_c_werror_flag" ||
21295	 test ! -s conftest.err
21296       } && test -s conftest.$ac_objext; then
21297
21298		ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_=yes
21299
21300else
21301  $as_echo "$as_me: failed program was:" >&5
21302sed 's/^/| /' conftest.$ac_ext >&5
21303
21304
21305		ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_=no
21306
21307fi
21308
21309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21310
21311fi
21312{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_" >&5
21313$as_echo "$ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_" >&6; }
21314if test $ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_ = yes; then
21315
21316
21317cat >>confdefs.h <<\_ACEOF
21318#define SOLARIS_GETPWENT_R 1
21319_ACEOF
21320
21321
21322fi
21323
21324
21325{ $as_echo "$as_me:$LINENO: checking for prototype struct passwd *getpwent_r(struct passwd *src, char *buf, size_t buflen)" >&5
21326$as_echo_n "checking for prototype struct passwd *getpwent_r(struct passwd *src, char *buf, size_t buflen)... " >&6; }
21327if test "${ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_+set}" = set; then
21328  $as_echo_n "(cached) " >&6
21329else
21330  cat >conftest.$ac_ext <<_ACEOF
21331/* confdefs.h.  */
21332_ACEOF
21333cat confdefs.h >>conftest.$ac_ext
21334cat >>conftest.$ac_ext <<_ACEOF
21335/* end confdefs.h.  */
21336
21337		$ac_includes_default
21338
21339	#include <unistd.h>
21340	#include <pwd.h>
21341
21342		struct passwd *getpwent_r(struct passwd *src, char *buf, size_t buflen)
21343		{
21344
21345	#ifndef HAVE_GETPWENT_R_DECL
21346	#error missing getpwent_r prototype
21347	#endif
21348	return NULL;
21349
21350		}
21351
21352_ACEOF
21353rm -f conftest.$ac_objext
21354if { (ac_try="$ac_compile"
21355case "(($ac_try" in
21356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357  *) ac_try_echo=$ac_try;;
21358esac
21359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21360$as_echo "$ac_try_echo") >&5
21361  (eval "$ac_compile") 2>conftest.er1
21362  ac_status=$?
21363  grep -v '^ *+' conftest.er1 >conftest.err
21364  rm -f conftest.er1
21365  cat conftest.err >&5
21366  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367  (exit $ac_status); } && {
21368	 test -z "$ac_c_werror_flag" ||
21369	 test ! -s conftest.err
21370       } && test -s conftest.$ac_objext; then
21371
21372		ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_=yes
21373
21374else
21375  $as_echo "$as_me: failed program was:" >&5
21376sed 's/^/| /' conftest.$ac_ext >&5
21377
21378
21379		ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_=no
21380
21381fi
21382
21383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21384
21385fi
21386{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_" >&5
21387$as_echo "$ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_" >&6; }
21388if test $ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_ = yes; then
21389
21390
21391cat >>confdefs.h <<\_ACEOF
21392#define SOLARIS_GETPWENT_R 1
21393_ACEOF
21394
21395
21396fi
21397
21398
21399
21400
21401
21402for ac_func in getgrnam_r getgrgid_r getgrent_r
21403do
21404as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21405{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21406$as_echo_n "checking for $ac_func... " >&6; }
21407if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21408  $as_echo_n "(cached) " >&6
21409else
21410  cat >conftest.$ac_ext <<_ACEOF
21411/* confdefs.h.  */
21412_ACEOF
21413cat confdefs.h >>conftest.$ac_ext
21414cat >>conftest.$ac_ext <<_ACEOF
21415/* end confdefs.h.  */
21416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21417   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21418#define $ac_func innocuous_$ac_func
21419
21420/* System header to define __stub macros and hopefully few prototypes,
21421    which can conflict with char $ac_func (); below.
21422    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21423    <limits.h> exists even on freestanding compilers.  */
21424
21425#ifdef __STDC__
21426# include <limits.h>
21427#else
21428# include <assert.h>
21429#endif
21430
21431#undef $ac_func
21432
21433/* Override any GCC internal prototype to avoid an error.
21434   Use char because int might match the return type of a GCC
21435   builtin and then its argument prototype would still apply.  */
21436#ifdef __cplusplus
21437extern "C"
21438#endif
21439char $ac_func ();
21440/* The GNU C library defines this for functions which it implements
21441    to always fail with ENOSYS.  Some functions are actually named
21442    something starting with __ and the normal name is an alias.  */
21443#if defined __stub_$ac_func || defined __stub___$ac_func
21444choke me
21445#endif
21446
21447int
21448main ()
21449{
21450return $ac_func ();
21451  ;
21452  return 0;
21453}
21454_ACEOF
21455rm -f conftest.$ac_objext conftest$ac_exeext
21456if { (ac_try="$ac_link"
21457case "(($ac_try" in
21458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459  *) ac_try_echo=$ac_try;;
21460esac
21461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21462$as_echo "$ac_try_echo") >&5
21463  (eval "$ac_link") 2>conftest.er1
21464  ac_status=$?
21465  grep -v '^ *+' conftest.er1 >conftest.err
21466  rm -f conftest.er1
21467  cat conftest.err >&5
21468  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469  (exit $ac_status); } && {
21470	 test -z "$ac_c_werror_flag" ||
21471	 test ! -s conftest.err
21472       } && test -s conftest$ac_exeext && {
21473	 test "$cross_compiling" = yes ||
21474	 $as_test_x conftest$ac_exeext
21475       }; then
21476  eval "$as_ac_var=yes"
21477else
21478  $as_echo "$as_me: failed program was:" >&5
21479sed 's/^/| /' conftest.$ac_ext >&5
21480
21481	eval "$as_ac_var=no"
21482fi
21483
21484rm -rf conftest.dSYM
21485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21486      conftest$ac_exeext conftest.$ac_ext
21487fi
21488ac_res=`eval 'as_val=${'$as_ac_var'}
21489		 $as_echo "$as_val"'`
21490	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21491$as_echo "$ac_res" >&6; }
21492as_val=`eval 'as_val=${'$as_ac_var'}
21493		 $as_echo "$as_val"'`
21494   if test "x$as_val" = x""yes; then
21495  cat >>confdefs.h <<_ACEOF
21496#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21497_ACEOF
21498
21499fi
21500done
21501
21502
21503 { $as_echo "$as_me:$LINENO: checking for getgrent_r declaration" >&5
21504$as_echo_n "checking for getgrent_r declaration... " >&6; }
21505if test "${ac_cv_have_getgrent_r_decl+set}" = set; then
21506  $as_echo_n "(cached) " >&6
21507else
21508
21509    cat >conftest.$ac_ext <<_ACEOF
21510/* confdefs.h.  */
21511_ACEOF
21512cat confdefs.h >>conftest.$ac_ext
21513cat >>conftest.$ac_ext <<_ACEOF
21514/* end confdefs.h.  */
21515
21516	#include <unistd.h>
21517	#include <grp.h>
21518
21519int
21520main ()
21521{
21522int i = (int)getgrent_r
21523  ;
21524  return 0;
21525}
21526_ACEOF
21527rm -f conftest.$ac_objext
21528if { (ac_try="$ac_compile"
21529case "(($ac_try" in
21530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531  *) ac_try_echo=$ac_try;;
21532esac
21533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21534$as_echo "$ac_try_echo") >&5
21535  (eval "$ac_compile") 2>conftest.er1
21536  ac_status=$?
21537  grep -v '^ *+' conftest.er1 >conftest.err
21538  rm -f conftest.er1
21539  cat conftest.err >&5
21540  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541  (exit $ac_status); } && {
21542	 test -z "$ac_c_werror_flag" ||
21543	 test ! -s conftest.err
21544       } && test -s conftest.$ac_objext; then
21545  ac_cv_have_getgrent_r_decl=yes
21546else
21547  $as_echo "$as_me: failed program was:" >&5
21548sed 's/^/| /' conftest.$ac_ext >&5
21549
21550	ac_cv_have_getgrent_r_decl=no
21551fi
21552
21553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21554fi
21555{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_getgrent_r_decl" >&5
21556$as_echo "$ac_cv_have_getgrent_r_decl" >&6; }
21557 if test x"$ac_cv_have_getgrent_r_decl" = x"yes"; then
21558
21559cat >>confdefs.h <<\_ACEOF
21560#define HAVE_GETGRENT_R_DECL 1
21561_ACEOF
21562
21563 fi
21564
21565{ $as_echo "$as_me:$LINENO: checking for prototype struct group *getgrent_r(struct group *src, char *buf, int buflen)" >&5
21566$as_echo_n "checking for prototype struct group *getgrent_r(struct group *src, char *buf, int buflen)... " >&6; }
21567if test "${ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_+set}" = set; then
21568  $as_echo_n "(cached) " >&6
21569else
21570  cat >conftest.$ac_ext <<_ACEOF
21571/* confdefs.h.  */
21572_ACEOF
21573cat confdefs.h >>conftest.$ac_ext
21574cat >>conftest.$ac_ext <<_ACEOF
21575/* end confdefs.h.  */
21576
21577		$ac_includes_default
21578
21579	#include <unistd.h>
21580	#include <grp.h>
21581
21582		struct group *getgrent_r(struct group *src, char *buf, int buflen)
21583		{
21584
21585	#ifndef HAVE_GETGRENT_R_DECL
21586	#error missing getgrent_r prototype
21587	#endif
21588	return NULL;
21589
21590		}
21591
21592_ACEOF
21593rm -f conftest.$ac_objext
21594if { (ac_try="$ac_compile"
21595case "(($ac_try" in
21596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597  *) ac_try_echo=$ac_try;;
21598esac
21599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21600$as_echo "$ac_try_echo") >&5
21601  (eval "$ac_compile") 2>conftest.er1
21602  ac_status=$?
21603  grep -v '^ *+' conftest.er1 >conftest.err
21604  rm -f conftest.er1
21605  cat conftest.err >&5
21606  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607  (exit $ac_status); } && {
21608	 test -z "$ac_c_werror_flag" ||
21609	 test ! -s conftest.err
21610       } && test -s conftest.$ac_objext; then
21611
21612		ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_=yes
21613
21614else
21615  $as_echo "$as_me: failed program was:" >&5
21616sed 's/^/| /' conftest.$ac_ext >&5
21617
21618
21619		ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_=no
21620
21621fi
21622
21623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21624
21625fi
21626{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_" >&5
21627$as_echo "$ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_" >&6; }
21628if test $ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_ = yes; then
21629
21630
21631cat >>confdefs.h <<\_ACEOF
21632#define SOLARIS_GETGRENT_R 1
21633_ACEOF
21634
21635
21636fi
21637
21638
21639
21640{ $as_echo "$as_me:$LINENO: checking for prototype struct group *getgrent_r(struct group *src, char *buf, size_t buflen)" >&5
21641$as_echo_n "checking for prototype struct group *getgrent_r(struct group *src, char *buf, size_t buflen)... " >&6; }
21642if test "${ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_+set}" = set; then
21643  $as_echo_n "(cached) " >&6
21644else
21645  cat >conftest.$ac_ext <<_ACEOF
21646/* confdefs.h.  */
21647_ACEOF
21648cat confdefs.h >>conftest.$ac_ext
21649cat >>conftest.$ac_ext <<_ACEOF
21650/* end confdefs.h.  */
21651
21652		$ac_includes_default
21653
21654	#include <unistd.h>
21655	#include <grp.h>
21656
21657		struct group *getgrent_r(struct group *src, char *buf, size_t buflen)
21658		{
21659
21660	#ifndef HAVE_GETGRENT_R_DECL
21661	#error missing getgrent_r prototype
21662	#endif
21663	return NULL;
21664
21665		}
21666
21667_ACEOF
21668rm -f conftest.$ac_objext
21669if { (ac_try="$ac_compile"
21670case "(($ac_try" in
21671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21672  *) ac_try_echo=$ac_try;;
21673esac
21674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21675$as_echo "$ac_try_echo") >&5
21676  (eval "$ac_compile") 2>conftest.er1
21677  ac_status=$?
21678  grep -v '^ *+' conftest.er1 >conftest.err
21679  rm -f conftest.er1
21680  cat conftest.err >&5
21681  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682  (exit $ac_status); } && {
21683	 test -z "$ac_c_werror_flag" ||
21684	 test ! -s conftest.err
21685       } && test -s conftest.$ac_objext; then
21686
21687		ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_=yes
21688
21689else
21690  $as_echo "$as_me: failed program was:" >&5
21691sed 's/^/| /' conftest.$ac_ext >&5
21692
21693
21694		ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_=no
21695
21696fi
21697
21698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21699
21700fi
21701{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_" >&5
21702$as_echo "$ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_" >&6; }
21703if test $ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_ = yes; then
21704
21705
21706cat >>confdefs.h <<\_ACEOF
21707#define SOLARIS_GETGRENT_R 1
21708_ACEOF
21709
21710
21711fi
21712
21713
21714
21715for ac_func in getgrouplist
21716do
21717as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21718{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21719$as_echo_n "checking for $ac_func... " >&6; }
21720if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21721  $as_echo_n "(cached) " >&6
21722else
21723  cat >conftest.$ac_ext <<_ACEOF
21724/* confdefs.h.  */
21725_ACEOF
21726cat confdefs.h >>conftest.$ac_ext
21727cat >>conftest.$ac_ext <<_ACEOF
21728/* end confdefs.h.  */
21729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21730   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21731#define $ac_func innocuous_$ac_func
21732
21733/* System header to define __stub macros and hopefully few prototypes,
21734    which can conflict with char $ac_func (); below.
21735    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21736    <limits.h> exists even on freestanding compilers.  */
21737
21738#ifdef __STDC__
21739# include <limits.h>
21740#else
21741# include <assert.h>
21742#endif
21743
21744#undef $ac_func
21745
21746/* Override any GCC internal prototype to avoid an error.
21747   Use char because int might match the return type of a GCC
21748   builtin and then its argument prototype would still apply.  */
21749#ifdef __cplusplus
21750extern "C"
21751#endif
21752char $ac_func ();
21753/* The GNU C library defines this for functions which it implements
21754    to always fail with ENOSYS.  Some functions are actually named
21755    something starting with __ and the normal name is an alias.  */
21756#if defined __stub_$ac_func || defined __stub___$ac_func
21757choke me
21758#endif
21759
21760int
21761main ()
21762{
21763return $ac_func ();
21764  ;
21765  return 0;
21766}
21767_ACEOF
21768rm -f conftest.$ac_objext conftest$ac_exeext
21769if { (ac_try="$ac_link"
21770case "(($ac_try" in
21771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772  *) ac_try_echo=$ac_try;;
21773esac
21774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21775$as_echo "$ac_try_echo") >&5
21776  (eval "$ac_link") 2>conftest.er1
21777  ac_status=$?
21778  grep -v '^ *+' conftest.er1 >conftest.err
21779  rm -f conftest.er1
21780  cat conftest.err >&5
21781  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782  (exit $ac_status); } && {
21783	 test -z "$ac_c_werror_flag" ||
21784	 test ! -s conftest.err
21785       } && test -s conftest$ac_exeext && {
21786	 test "$cross_compiling" = yes ||
21787	 $as_test_x conftest$ac_exeext
21788       }; then
21789  eval "$as_ac_var=yes"
21790else
21791  $as_echo "$as_me: failed program was:" >&5
21792sed 's/^/| /' conftest.$ac_ext >&5
21793
21794	eval "$as_ac_var=no"
21795fi
21796
21797rm -rf conftest.dSYM
21798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21799      conftest$ac_exeext conftest.$ac_ext
21800fi
21801ac_res=`eval 'as_val=${'$as_ac_var'}
21802		 $as_echo "$as_val"'`
21803	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21804$as_echo "$ac_res" >&6; }
21805as_val=`eval 'as_val=${'$as_ac_var'}
21806		 $as_echo "$as_val"'`
21807   if test "x$as_val" = x""yes; then
21808  cat >>confdefs.h <<_ACEOF
21809#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21810_ACEOF
21811
21812fi
21813done
21814
21815
21816# locale
21817
21818
21819
21820for ac_header in ctype.h locale.h langinfo.h
21821do
21822as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21824  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21825$as_echo_n "checking for $ac_header... " >&6; }
21826if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21827  $as_echo_n "(cached) " >&6
21828fi
21829ac_res=`eval 'as_val=${'$as_ac_Header'}
21830		 $as_echo "$as_val"'`
21831	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21832$as_echo "$ac_res" >&6; }
21833else
21834  # Is the header compilable?
21835{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21836$as_echo_n "checking $ac_header usability... " >&6; }
21837cat >conftest.$ac_ext <<_ACEOF
21838/* confdefs.h.  */
21839_ACEOF
21840cat confdefs.h >>conftest.$ac_ext
21841cat >>conftest.$ac_ext <<_ACEOF
21842/* end confdefs.h.  */
21843$ac_includes_default
21844#include <$ac_header>
21845_ACEOF
21846rm -f conftest.$ac_objext
21847if { (ac_try="$ac_compile"
21848case "(($ac_try" in
21849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850  *) ac_try_echo=$ac_try;;
21851esac
21852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21853$as_echo "$ac_try_echo") >&5
21854  (eval "$ac_compile") 2>conftest.er1
21855  ac_status=$?
21856  grep -v '^ *+' conftest.er1 >conftest.err
21857  rm -f conftest.er1
21858  cat conftest.err >&5
21859  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860  (exit $ac_status); } && {
21861	 test -z "$ac_c_werror_flag" ||
21862	 test ! -s conftest.err
21863       } && test -s conftest.$ac_objext; then
21864  ac_header_compiler=yes
21865else
21866  $as_echo "$as_me: failed program was:" >&5
21867sed 's/^/| /' conftest.$ac_ext >&5
21868
21869	ac_header_compiler=no
21870fi
21871
21872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21873{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21874$as_echo "$ac_header_compiler" >&6; }
21875
21876# Is the header present?
21877{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21878$as_echo_n "checking $ac_header presence... " >&6; }
21879cat >conftest.$ac_ext <<_ACEOF
21880/* confdefs.h.  */
21881_ACEOF
21882cat confdefs.h >>conftest.$ac_ext
21883cat >>conftest.$ac_ext <<_ACEOF
21884/* end confdefs.h.  */
21885#include <$ac_header>
21886_ACEOF
21887if { (ac_try="$ac_cpp conftest.$ac_ext"
21888case "(($ac_try" in
21889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890  *) ac_try_echo=$ac_try;;
21891esac
21892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21893$as_echo "$ac_try_echo") >&5
21894  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21895  ac_status=$?
21896  grep -v '^ *+' conftest.er1 >conftest.err
21897  rm -f conftest.er1
21898  cat conftest.err >&5
21899  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900  (exit $ac_status); } >/dev/null && {
21901	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21902	 test ! -s conftest.err
21903       }; then
21904  ac_header_preproc=yes
21905else
21906  $as_echo "$as_me: failed program was:" >&5
21907sed 's/^/| /' conftest.$ac_ext >&5
21908
21909  ac_header_preproc=no
21910fi
21911
21912rm -f conftest.err conftest.$ac_ext
21913{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21914$as_echo "$ac_header_preproc" >&6; }
21915
21916# So?  What about this header?
21917case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21918  yes:no: )
21919    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21920$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21921    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21922$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21923    ac_header_preproc=yes
21924    ;;
21925  no:yes:* )
21926    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21927$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21928    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21929$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21930    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21931$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21932    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21933$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21934    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21935$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21936    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21937$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21938    ( cat <<\_ASBOX
21939## ---------------------------------------- ##
21940## Report this to samba-technical@samba.org ##
21941## ---------------------------------------- ##
21942_ASBOX
21943     ) | sed "s/^/$as_me: WARNING:     /" >&2
21944    ;;
21945esac
21946{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21947$as_echo_n "checking for $ac_header... " >&6; }
21948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21949  $as_echo_n "(cached) " >&6
21950else
21951  eval "$as_ac_Header=\$ac_header_preproc"
21952fi
21953ac_res=`eval 'as_val=${'$as_ac_Header'}
21954		 $as_echo "$as_val"'`
21955	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21956$as_echo "$ac_res" >&6; }
21957
21958fi
21959as_val=`eval 'as_val=${'$as_ac_Header'}
21960		 $as_echo "$as_val"'`
21961   if test "x$as_val" = x""yes; then
21962  cat >>confdefs.h <<_ACEOF
21963#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21964_ACEOF
21965
21966fi
21967
21968done
21969
21970
21971# glob
21972
21973for ac_header in fnmatch.h
21974do
21975as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21977  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21978$as_echo_n "checking for $ac_header... " >&6; }
21979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21980  $as_echo_n "(cached) " >&6
21981fi
21982ac_res=`eval 'as_val=${'$as_ac_Header'}
21983		 $as_echo "$as_val"'`
21984	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21985$as_echo "$ac_res" >&6; }
21986else
21987  # Is the header compilable?
21988{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21989$as_echo_n "checking $ac_header usability... " >&6; }
21990cat >conftest.$ac_ext <<_ACEOF
21991/* confdefs.h.  */
21992_ACEOF
21993cat confdefs.h >>conftest.$ac_ext
21994cat >>conftest.$ac_ext <<_ACEOF
21995/* end confdefs.h.  */
21996$ac_includes_default
21997#include <$ac_header>
21998_ACEOF
21999rm -f conftest.$ac_objext
22000if { (ac_try="$ac_compile"
22001case "(($ac_try" in
22002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003  *) ac_try_echo=$ac_try;;
22004esac
22005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22006$as_echo "$ac_try_echo") >&5
22007  (eval "$ac_compile") 2>conftest.er1
22008  ac_status=$?
22009  grep -v '^ *+' conftest.er1 >conftest.err
22010  rm -f conftest.er1
22011  cat conftest.err >&5
22012  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013  (exit $ac_status); } && {
22014	 test -z "$ac_c_werror_flag" ||
22015	 test ! -s conftest.err
22016       } && test -s conftest.$ac_objext; then
22017  ac_header_compiler=yes
22018else
22019  $as_echo "$as_me: failed program was:" >&5
22020sed 's/^/| /' conftest.$ac_ext >&5
22021
22022	ac_header_compiler=no
22023fi
22024
22025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22026{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22027$as_echo "$ac_header_compiler" >&6; }
22028
22029# Is the header present?
22030{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22031$as_echo_n "checking $ac_header presence... " >&6; }
22032cat >conftest.$ac_ext <<_ACEOF
22033/* confdefs.h.  */
22034_ACEOF
22035cat confdefs.h >>conftest.$ac_ext
22036cat >>conftest.$ac_ext <<_ACEOF
22037/* end confdefs.h.  */
22038#include <$ac_header>
22039_ACEOF
22040if { (ac_try="$ac_cpp conftest.$ac_ext"
22041case "(($ac_try" in
22042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043  *) ac_try_echo=$ac_try;;
22044esac
22045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22046$as_echo "$ac_try_echo") >&5
22047  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22048  ac_status=$?
22049  grep -v '^ *+' conftest.er1 >conftest.err
22050  rm -f conftest.er1
22051  cat conftest.err >&5
22052  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053  (exit $ac_status); } >/dev/null && {
22054	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22055	 test ! -s conftest.err
22056       }; then
22057  ac_header_preproc=yes
22058else
22059  $as_echo "$as_me: failed program was:" >&5
22060sed 's/^/| /' conftest.$ac_ext >&5
22061
22062  ac_header_preproc=no
22063fi
22064
22065rm -f conftest.err conftest.$ac_ext
22066{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22067$as_echo "$ac_header_preproc" >&6; }
22068
22069# So?  What about this header?
22070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22071  yes:no: )
22072    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22073$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22074    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22075$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22076    ac_header_preproc=yes
22077    ;;
22078  no:yes:* )
22079    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22080$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22081    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22082$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22083    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22084$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22085    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22086$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22087    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22088$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22089    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22090$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22091    ( cat <<\_ASBOX
22092## ---------------------------------------- ##
22093## Report this to samba-technical@samba.org ##
22094## ---------------------------------------- ##
22095_ASBOX
22096     ) | sed "s/^/$as_me: WARNING:     /" >&2
22097    ;;
22098esac
22099{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22100$as_echo_n "checking for $ac_header... " >&6; }
22101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22102  $as_echo_n "(cached) " >&6
22103else
22104  eval "$as_ac_Header=\$ac_header_preproc"
22105fi
22106ac_res=`eval 'as_val=${'$as_ac_Header'}
22107		 $as_echo "$as_val"'`
22108	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22109$as_echo "$ac_res" >&6; }
22110
22111fi
22112as_val=`eval 'as_val=${'$as_ac_Header'}
22113		 $as_echo "$as_val"'`
22114   if test "x$as_val" = x""yes; then
22115  cat >>confdefs.h <<_ACEOF
22116#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22117_ACEOF
22118
22119fi
22120
22121done
22122
22123
22124# shmem
22125
22126
22127
22128for ac_header in sys/ipc.h sys/mman.h sys/shm.h
22129do
22130as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22132  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22133$as_echo_n "checking for $ac_header... " >&6; }
22134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22135  $as_echo_n "(cached) " >&6
22136fi
22137ac_res=`eval 'as_val=${'$as_ac_Header'}
22138		 $as_echo "$as_val"'`
22139	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22140$as_echo "$ac_res" >&6; }
22141else
22142  # Is the header compilable?
22143{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22144$as_echo_n "checking $ac_header usability... " >&6; }
22145cat >conftest.$ac_ext <<_ACEOF
22146/* confdefs.h.  */
22147_ACEOF
22148cat confdefs.h >>conftest.$ac_ext
22149cat >>conftest.$ac_ext <<_ACEOF
22150/* end confdefs.h.  */
22151$ac_includes_default
22152#include <$ac_header>
22153_ACEOF
22154rm -f conftest.$ac_objext
22155if { (ac_try="$ac_compile"
22156case "(($ac_try" in
22157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22158  *) ac_try_echo=$ac_try;;
22159esac
22160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22161$as_echo "$ac_try_echo") >&5
22162  (eval "$ac_compile") 2>conftest.er1
22163  ac_status=$?
22164  grep -v '^ *+' conftest.er1 >conftest.err
22165  rm -f conftest.er1
22166  cat conftest.err >&5
22167  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168  (exit $ac_status); } && {
22169	 test -z "$ac_c_werror_flag" ||
22170	 test ! -s conftest.err
22171       } && test -s conftest.$ac_objext; then
22172  ac_header_compiler=yes
22173else
22174  $as_echo "$as_me: failed program was:" >&5
22175sed 's/^/| /' conftest.$ac_ext >&5
22176
22177	ac_header_compiler=no
22178fi
22179
22180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22181{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22182$as_echo "$ac_header_compiler" >&6; }
22183
22184# Is the header present?
22185{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22186$as_echo_n "checking $ac_header presence... " >&6; }
22187cat >conftest.$ac_ext <<_ACEOF
22188/* confdefs.h.  */
22189_ACEOF
22190cat confdefs.h >>conftest.$ac_ext
22191cat >>conftest.$ac_ext <<_ACEOF
22192/* end confdefs.h.  */
22193#include <$ac_header>
22194_ACEOF
22195if { (ac_try="$ac_cpp conftest.$ac_ext"
22196case "(($ac_try" in
22197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198  *) ac_try_echo=$ac_try;;
22199esac
22200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22201$as_echo "$ac_try_echo") >&5
22202  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22203  ac_status=$?
22204  grep -v '^ *+' conftest.er1 >conftest.err
22205  rm -f conftest.er1
22206  cat conftest.err >&5
22207  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208  (exit $ac_status); } >/dev/null && {
22209	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22210	 test ! -s conftest.err
22211       }; then
22212  ac_header_preproc=yes
22213else
22214  $as_echo "$as_me: failed program was:" >&5
22215sed 's/^/| /' conftest.$ac_ext >&5
22216
22217  ac_header_preproc=no
22218fi
22219
22220rm -f conftest.err conftest.$ac_ext
22221{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22222$as_echo "$ac_header_preproc" >&6; }
22223
22224# So?  What about this header?
22225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22226  yes:no: )
22227    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22228$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22229    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22230$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22231    ac_header_preproc=yes
22232    ;;
22233  no:yes:* )
22234    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22235$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22236    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22237$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22238    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22239$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22240    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22241$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22242    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22243$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22244    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22245$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22246    ( cat <<\_ASBOX
22247## ---------------------------------------- ##
22248## Report this to samba-technical@samba.org ##
22249## ---------------------------------------- ##
22250_ASBOX
22251     ) | sed "s/^/$as_me: WARNING:     /" >&2
22252    ;;
22253esac
22254{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22255$as_echo_n "checking for $ac_header... " >&6; }
22256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22257  $as_echo_n "(cached) " >&6
22258else
22259  eval "$as_ac_Header=\$ac_header_preproc"
22260fi
22261ac_res=`eval 'as_val=${'$as_ac_Header'}
22262		 $as_echo "$as_val"'`
22263	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22264$as_echo "$ac_res" >&6; }
22265
22266fi
22267as_val=`eval 'as_val=${'$as_ac_Header'}
22268		 $as_echo "$as_val"'`
22269   if test "x$as_val" = x""yes; then
22270  cat >>confdefs.h <<_ACEOF
22271#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22272_ACEOF
22273
22274fi
22275
22276done
22277
22278
22279# terminal
22280
22281
22282
22283for ac_header in termios.h termio.h sys/termio.h
22284do
22285as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22287  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22288$as_echo_n "checking for $ac_header... " >&6; }
22289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22290  $as_echo_n "(cached) " >&6
22291fi
22292ac_res=`eval 'as_val=${'$as_ac_Header'}
22293		 $as_echo "$as_val"'`
22294	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22295$as_echo "$ac_res" >&6; }
22296else
22297  # Is the header compilable?
22298{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22299$as_echo_n "checking $ac_header usability... " >&6; }
22300cat >conftest.$ac_ext <<_ACEOF
22301/* confdefs.h.  */
22302_ACEOF
22303cat confdefs.h >>conftest.$ac_ext
22304cat >>conftest.$ac_ext <<_ACEOF
22305/* end confdefs.h.  */
22306$ac_includes_default
22307#include <$ac_header>
22308_ACEOF
22309rm -f conftest.$ac_objext
22310if { (ac_try="$ac_compile"
22311case "(($ac_try" in
22312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313  *) ac_try_echo=$ac_try;;
22314esac
22315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22316$as_echo "$ac_try_echo") >&5
22317  (eval "$ac_compile") 2>conftest.er1
22318  ac_status=$?
22319  grep -v '^ *+' conftest.er1 >conftest.err
22320  rm -f conftest.er1
22321  cat conftest.err >&5
22322  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323  (exit $ac_status); } && {
22324	 test -z "$ac_c_werror_flag" ||
22325	 test ! -s conftest.err
22326       } && test -s conftest.$ac_objext; then
22327  ac_header_compiler=yes
22328else
22329  $as_echo "$as_me: failed program was:" >&5
22330sed 's/^/| /' conftest.$ac_ext >&5
22331
22332	ac_header_compiler=no
22333fi
22334
22335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22336{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22337$as_echo "$ac_header_compiler" >&6; }
22338
22339# Is the header present?
22340{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22341$as_echo_n "checking $ac_header presence... " >&6; }
22342cat >conftest.$ac_ext <<_ACEOF
22343/* confdefs.h.  */
22344_ACEOF
22345cat confdefs.h >>conftest.$ac_ext
22346cat >>conftest.$ac_ext <<_ACEOF
22347/* end confdefs.h.  */
22348#include <$ac_header>
22349_ACEOF
22350if { (ac_try="$ac_cpp conftest.$ac_ext"
22351case "(($ac_try" in
22352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353  *) ac_try_echo=$ac_try;;
22354esac
22355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22356$as_echo "$ac_try_echo") >&5
22357  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22358  ac_status=$?
22359  grep -v '^ *+' conftest.er1 >conftest.err
22360  rm -f conftest.er1
22361  cat conftest.err >&5
22362  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363  (exit $ac_status); } >/dev/null && {
22364	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22365	 test ! -s conftest.err
22366       }; then
22367  ac_header_preproc=yes
22368else
22369  $as_echo "$as_me: failed program was:" >&5
22370sed 's/^/| /' conftest.$ac_ext >&5
22371
22372  ac_header_preproc=no
22373fi
22374
22375rm -f conftest.err conftest.$ac_ext
22376{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22377$as_echo "$ac_header_preproc" >&6; }
22378
22379# So?  What about this header?
22380case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22381  yes:no: )
22382    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22383$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22384    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22385$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22386    ac_header_preproc=yes
22387    ;;
22388  no:yes:* )
22389    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22390$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22391    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22392$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22393    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22394$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22395    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22396$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22397    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22398$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22399    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22400$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22401    ( cat <<\_ASBOX
22402## ---------------------------------------- ##
22403## Report this to samba-technical@samba.org ##
22404## ---------------------------------------- ##
22405_ASBOX
22406     ) | sed "s/^/$as_me: WARNING:     /" >&2
22407    ;;
22408esac
22409{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22410$as_echo_n "checking for $ac_header... " >&6; }
22411if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22412  $as_echo_n "(cached) " >&6
22413else
22414  eval "$as_ac_Header=\$ac_header_preproc"
22415fi
22416ac_res=`eval 'as_val=${'$as_ac_Header'}
22417		 $as_echo "$as_val"'`
22418	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22419$as_echo "$ac_res" >&6; }
22420
22421fi
22422as_val=`eval 'as_val=${'$as_ac_Header'}
22423		 $as_echo "$as_val"'`
22424   if test "x$as_val" = x""yes; then
22425  cat >>confdefs.h <<_ACEOF
22426#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22427_ACEOF
22428
22429fi
22430
22431done
22432
22433
22434
22435save_LIBS="$LIBS"
22436LIBS=""
22437
22438libreplace_cv_dlfcn=no
22439{ $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
22440$as_echo_n "checking for library containing dlopen... " >&6; }
22441if test "${ac_cv_search_dlopen+set}" = set; then
22442  $as_echo_n "(cached) " >&6
22443else
22444  ac_func_search_save_LIBS=$LIBS
22445cat >conftest.$ac_ext <<_ACEOF
22446/* confdefs.h.  */
22447_ACEOF
22448cat confdefs.h >>conftest.$ac_ext
22449cat >>conftest.$ac_ext <<_ACEOF
22450/* end confdefs.h.  */
22451
22452/* Override any GCC internal prototype to avoid an error.
22453   Use char because int might match the return type of a GCC
22454   builtin and then its argument prototype would still apply.  */
22455#ifdef __cplusplus
22456extern "C"
22457#endif
22458char dlopen ();
22459int
22460main ()
22461{
22462return dlopen ();
22463  ;
22464  return 0;
22465}
22466_ACEOF
22467for ac_lib in '' dl; do
22468  if test -z "$ac_lib"; then
22469    ac_res="none required"
22470  else
22471    ac_res=-l$ac_lib
22472    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22473  fi
22474  rm -f conftest.$ac_objext conftest$ac_exeext
22475if { (ac_try="$ac_link"
22476case "(($ac_try" in
22477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22478  *) ac_try_echo=$ac_try;;
22479esac
22480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22481$as_echo "$ac_try_echo") >&5
22482  (eval "$ac_link") 2>conftest.er1
22483  ac_status=$?
22484  grep -v '^ *+' conftest.er1 >conftest.err
22485  rm -f conftest.er1
22486  cat conftest.err >&5
22487  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488  (exit $ac_status); } && {
22489	 test -z "$ac_c_werror_flag" ||
22490	 test ! -s conftest.err
22491       } && test -s conftest$ac_exeext && {
22492	 test "$cross_compiling" = yes ||
22493	 $as_test_x conftest$ac_exeext
22494       }; then
22495  ac_cv_search_dlopen=$ac_res
22496else
22497  $as_echo "$as_me: failed program was:" >&5
22498sed 's/^/| /' conftest.$ac_ext >&5
22499
22500
22501fi
22502
22503rm -rf conftest.dSYM
22504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22505      conftest$ac_exeext
22506  if test "${ac_cv_search_dlopen+set}" = set; then
22507  break
22508fi
22509done
22510if test "${ac_cv_search_dlopen+set}" = set; then
22511  :
22512else
22513  ac_cv_search_dlopen=no
22514fi
22515rm conftest.$ac_ext
22516LIBS=$ac_func_search_save_LIBS
22517fi
22518{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
22519$as_echo "$ac_cv_search_dlopen" >&6; }
22520ac_res=$ac_cv_search_dlopen
22521if test "$ac_res" != no; then
22522  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22523
22524fi
22525
22526
22527
22528for ac_header in dlfcn.h
22529do
22530as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22532  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22533$as_echo_n "checking for $ac_header... " >&6; }
22534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22535  $as_echo_n "(cached) " >&6
22536fi
22537ac_res=`eval 'as_val=${'$as_ac_Header'}
22538		 $as_echo "$as_val"'`
22539	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22540$as_echo "$ac_res" >&6; }
22541else
22542  # Is the header compilable?
22543{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22544$as_echo_n "checking $ac_header usability... " >&6; }
22545cat >conftest.$ac_ext <<_ACEOF
22546/* confdefs.h.  */
22547_ACEOF
22548cat confdefs.h >>conftest.$ac_ext
22549cat >>conftest.$ac_ext <<_ACEOF
22550/* end confdefs.h.  */
22551$ac_includes_default
22552#include <$ac_header>
22553_ACEOF
22554rm -f conftest.$ac_objext
22555if { (ac_try="$ac_compile"
22556case "(($ac_try" in
22557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558  *) ac_try_echo=$ac_try;;
22559esac
22560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22561$as_echo "$ac_try_echo") >&5
22562  (eval "$ac_compile") 2>conftest.er1
22563  ac_status=$?
22564  grep -v '^ *+' conftest.er1 >conftest.err
22565  rm -f conftest.er1
22566  cat conftest.err >&5
22567  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568  (exit $ac_status); } && {
22569	 test -z "$ac_c_werror_flag" ||
22570	 test ! -s conftest.err
22571       } && test -s conftest.$ac_objext; then
22572  ac_header_compiler=yes
22573else
22574  $as_echo "$as_me: failed program was:" >&5
22575sed 's/^/| /' conftest.$ac_ext >&5
22576
22577	ac_header_compiler=no
22578fi
22579
22580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22581{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22582$as_echo "$ac_header_compiler" >&6; }
22583
22584# Is the header present?
22585{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22586$as_echo_n "checking $ac_header presence... " >&6; }
22587cat >conftest.$ac_ext <<_ACEOF
22588/* confdefs.h.  */
22589_ACEOF
22590cat confdefs.h >>conftest.$ac_ext
22591cat >>conftest.$ac_ext <<_ACEOF
22592/* end confdefs.h.  */
22593#include <$ac_header>
22594_ACEOF
22595if { (ac_try="$ac_cpp conftest.$ac_ext"
22596case "(($ac_try" in
22597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598  *) ac_try_echo=$ac_try;;
22599esac
22600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22601$as_echo "$ac_try_echo") >&5
22602  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22603  ac_status=$?
22604  grep -v '^ *+' conftest.er1 >conftest.err
22605  rm -f conftest.er1
22606  cat conftest.err >&5
22607  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608  (exit $ac_status); } >/dev/null && {
22609	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22610	 test ! -s conftest.err
22611       }; then
22612  ac_header_preproc=yes
22613else
22614  $as_echo "$as_me: failed program was:" >&5
22615sed 's/^/| /' conftest.$ac_ext >&5
22616
22617  ac_header_preproc=no
22618fi
22619
22620rm -f conftest.err conftest.$ac_ext
22621{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22622$as_echo "$ac_header_preproc" >&6; }
22623
22624# So?  What about this header?
22625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22626  yes:no: )
22627    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22628$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22629    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22630$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22631    ac_header_preproc=yes
22632    ;;
22633  no:yes:* )
22634    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22635$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22636    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22637$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22638    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22639$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22640    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22641$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22642    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22643$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22644    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22645$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22646    ( cat <<\_ASBOX
22647## ---------------------------------------- ##
22648## Report this to samba-technical@samba.org ##
22649## ---------------------------------------- ##
22650_ASBOX
22651     ) | sed "s/^/$as_me: WARNING:     /" >&2
22652    ;;
22653esac
22654{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22655$as_echo_n "checking for $ac_header... " >&6; }
22656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22657  $as_echo_n "(cached) " >&6
22658else
22659  eval "$as_ac_Header=\$ac_header_preproc"
22660fi
22661ac_res=`eval 'as_val=${'$as_ac_Header'}
22662		 $as_echo "$as_val"'`
22663	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22664$as_echo "$ac_res" >&6; }
22665
22666fi
22667as_val=`eval 'as_val=${'$as_ac_Header'}
22668		 $as_echo "$as_val"'`
22669   if test "x$as_val" = x""yes; then
22670  cat >>confdefs.h <<_ACEOF
22671#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22672_ACEOF
22673
22674fi
22675
22676done
22677
22678
22679
22680
22681
22682for ac_func in dlopen dlsym dlerror dlclose
22683do
22684as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22685{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22686$as_echo_n "checking for $ac_func... " >&6; }
22687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22688  $as_echo_n "(cached) " >&6
22689else
22690  cat >conftest.$ac_ext <<_ACEOF
22691/* confdefs.h.  */
22692_ACEOF
22693cat confdefs.h >>conftest.$ac_ext
22694cat >>conftest.$ac_ext <<_ACEOF
22695/* end confdefs.h.  */
22696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22697   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22698#define $ac_func innocuous_$ac_func
22699
22700/* System header to define __stub macros and hopefully few prototypes,
22701    which can conflict with char $ac_func (); below.
22702    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22703    <limits.h> exists even on freestanding compilers.  */
22704
22705#ifdef __STDC__
22706# include <limits.h>
22707#else
22708# include <assert.h>
22709#endif
22710
22711#undef $ac_func
22712
22713/* Override any GCC internal prototype to avoid an error.
22714   Use char because int might match the return type of a GCC
22715   builtin and then its argument prototype would still apply.  */
22716#ifdef __cplusplus
22717extern "C"
22718#endif
22719char $ac_func ();
22720/* The GNU C library defines this for functions which it implements
22721    to always fail with ENOSYS.  Some functions are actually named
22722    something starting with __ and the normal name is an alias.  */
22723#if defined __stub_$ac_func || defined __stub___$ac_func
22724choke me
22725#endif
22726
22727int
22728main ()
22729{
22730return $ac_func ();
22731  ;
22732  return 0;
22733}
22734_ACEOF
22735rm -f conftest.$ac_objext conftest$ac_exeext
22736if { (ac_try="$ac_link"
22737case "(($ac_try" in
22738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739  *) ac_try_echo=$ac_try;;
22740esac
22741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22742$as_echo "$ac_try_echo") >&5
22743  (eval "$ac_link") 2>conftest.er1
22744  ac_status=$?
22745  grep -v '^ *+' conftest.er1 >conftest.err
22746  rm -f conftest.er1
22747  cat conftest.err >&5
22748  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749  (exit $ac_status); } && {
22750	 test -z "$ac_c_werror_flag" ||
22751	 test ! -s conftest.err
22752       } && test -s conftest$ac_exeext && {
22753	 test "$cross_compiling" = yes ||
22754	 $as_test_x conftest$ac_exeext
22755       }; then
22756  eval "$as_ac_var=yes"
22757else
22758  $as_echo "$as_me: failed program was:" >&5
22759sed 's/^/| /' conftest.$ac_ext >&5
22760
22761	eval "$as_ac_var=no"
22762fi
22763
22764rm -rf conftest.dSYM
22765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22766      conftest$ac_exeext conftest.$ac_ext
22767fi
22768ac_res=`eval 'as_val=${'$as_ac_var'}
22769		 $as_echo "$as_val"'`
22770	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22771$as_echo "$ac_res" >&6; }
22772as_val=`eval 'as_val=${'$as_ac_var'}
22773		 $as_echo "$as_val"'`
22774   if test "x$as_val" = x""yes; then
22775  cat >>confdefs.h <<_ACEOF
22776#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22777_ACEOF
22778
22779else
22780  libreplace_cv_dlfcn=yes
22781fi
22782done
22783
22784
22785libreplace_cv_shl=no
22786{ $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
22787$as_echo_n "checking for library containing shl_load... " >&6; }
22788if test "${ac_cv_search_shl_load+set}" = set; then
22789  $as_echo_n "(cached) " >&6
22790else
22791  ac_func_search_save_LIBS=$LIBS
22792cat >conftest.$ac_ext <<_ACEOF
22793/* confdefs.h.  */
22794_ACEOF
22795cat confdefs.h >>conftest.$ac_ext
22796cat >>conftest.$ac_ext <<_ACEOF
22797/* end confdefs.h.  */
22798
22799/* Override any GCC internal prototype to avoid an error.
22800   Use char because int might match the return type of a GCC
22801   builtin and then its argument prototype would still apply.  */
22802#ifdef __cplusplus
22803extern "C"
22804#endif
22805char shl_load ();
22806int
22807main ()
22808{
22809return shl_load ();
22810  ;
22811  return 0;
22812}
22813_ACEOF
22814for ac_lib in '' sl; do
22815  if test -z "$ac_lib"; then
22816    ac_res="none required"
22817  else
22818    ac_res=-l$ac_lib
22819    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22820  fi
22821  rm -f conftest.$ac_objext conftest$ac_exeext
22822if { (ac_try="$ac_link"
22823case "(($ac_try" in
22824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22825  *) ac_try_echo=$ac_try;;
22826esac
22827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22828$as_echo "$ac_try_echo") >&5
22829  (eval "$ac_link") 2>conftest.er1
22830  ac_status=$?
22831  grep -v '^ *+' conftest.er1 >conftest.err
22832  rm -f conftest.er1
22833  cat conftest.err >&5
22834  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835  (exit $ac_status); } && {
22836	 test -z "$ac_c_werror_flag" ||
22837	 test ! -s conftest.err
22838       } && test -s conftest$ac_exeext && {
22839	 test "$cross_compiling" = yes ||
22840	 $as_test_x conftest$ac_exeext
22841       }; then
22842  ac_cv_search_shl_load=$ac_res
22843else
22844  $as_echo "$as_me: failed program was:" >&5
22845sed 's/^/| /' conftest.$ac_ext >&5
22846
22847
22848fi
22849
22850rm -rf conftest.dSYM
22851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22852      conftest$ac_exeext
22853  if test "${ac_cv_search_shl_load+set}" = set; then
22854  break
22855fi
22856done
22857if test "${ac_cv_search_shl_load+set}" = set; then
22858  :
22859else
22860  ac_cv_search_shl_load=no
22861fi
22862rm conftest.$ac_ext
22863LIBS=$ac_func_search_save_LIBS
22864fi
22865{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
22866$as_echo "$ac_cv_search_shl_load" >&6; }
22867ac_res=$ac_cv_search_shl_load
22868if test "$ac_res" != no; then
22869  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22870
22871fi
22872
22873
22874for ac_header in dl.h
22875do
22876as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22878  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22879$as_echo_n "checking for $ac_header... " >&6; }
22880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22881  $as_echo_n "(cached) " >&6
22882fi
22883ac_res=`eval 'as_val=${'$as_ac_Header'}
22884		 $as_echo "$as_val"'`
22885	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22886$as_echo "$ac_res" >&6; }
22887else
22888  # Is the header compilable?
22889{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22890$as_echo_n "checking $ac_header usability... " >&6; }
22891cat >conftest.$ac_ext <<_ACEOF
22892/* confdefs.h.  */
22893_ACEOF
22894cat confdefs.h >>conftest.$ac_ext
22895cat >>conftest.$ac_ext <<_ACEOF
22896/* end confdefs.h.  */
22897$ac_includes_default
22898#include <$ac_header>
22899_ACEOF
22900rm -f conftest.$ac_objext
22901if { (ac_try="$ac_compile"
22902case "(($ac_try" in
22903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22904  *) ac_try_echo=$ac_try;;
22905esac
22906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22907$as_echo "$ac_try_echo") >&5
22908  (eval "$ac_compile") 2>conftest.er1
22909  ac_status=$?
22910  grep -v '^ *+' conftest.er1 >conftest.err
22911  rm -f conftest.er1
22912  cat conftest.err >&5
22913  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914  (exit $ac_status); } && {
22915	 test -z "$ac_c_werror_flag" ||
22916	 test ! -s conftest.err
22917       } && test -s conftest.$ac_objext; then
22918  ac_header_compiler=yes
22919else
22920  $as_echo "$as_me: failed program was:" >&5
22921sed 's/^/| /' conftest.$ac_ext >&5
22922
22923	ac_header_compiler=no
22924fi
22925
22926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22927{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22928$as_echo "$ac_header_compiler" >&6; }
22929
22930# Is the header present?
22931{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22932$as_echo_n "checking $ac_header presence... " >&6; }
22933cat >conftest.$ac_ext <<_ACEOF
22934/* confdefs.h.  */
22935_ACEOF
22936cat confdefs.h >>conftest.$ac_ext
22937cat >>conftest.$ac_ext <<_ACEOF
22938/* end confdefs.h.  */
22939#include <$ac_header>
22940_ACEOF
22941if { (ac_try="$ac_cpp conftest.$ac_ext"
22942case "(($ac_try" in
22943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22944  *) ac_try_echo=$ac_try;;
22945esac
22946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22947$as_echo "$ac_try_echo") >&5
22948  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22949  ac_status=$?
22950  grep -v '^ *+' conftest.er1 >conftest.err
22951  rm -f conftest.er1
22952  cat conftest.err >&5
22953  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954  (exit $ac_status); } >/dev/null && {
22955	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22956	 test ! -s conftest.err
22957       }; then
22958  ac_header_preproc=yes
22959else
22960  $as_echo "$as_me: failed program was:" >&5
22961sed 's/^/| /' conftest.$ac_ext >&5
22962
22963  ac_header_preproc=no
22964fi
22965
22966rm -f conftest.err conftest.$ac_ext
22967{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22968$as_echo "$ac_header_preproc" >&6; }
22969
22970# So?  What about this header?
22971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22972  yes:no: )
22973    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22974$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22975    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22976$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22977    ac_header_preproc=yes
22978    ;;
22979  no:yes:* )
22980    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22981$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22982    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22983$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22984    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22985$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22986    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22987$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22988    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22989$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22990    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22991$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22992    ( cat <<\_ASBOX
22993## ---------------------------------------- ##
22994## Report this to samba-technical@samba.org ##
22995## ---------------------------------------- ##
22996_ASBOX
22997     ) | sed "s/^/$as_me: WARNING:     /" >&2
22998    ;;
22999esac
23000{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23001$as_echo_n "checking for $ac_header... " >&6; }
23002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23003  $as_echo_n "(cached) " >&6
23004else
23005  eval "$as_ac_Header=\$ac_header_preproc"
23006fi
23007ac_res=`eval 'as_val=${'$as_ac_Header'}
23008		 $as_echo "$as_val"'`
23009	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23010$as_echo "$ac_res" >&6; }
23011
23012fi
23013as_val=`eval 'as_val=${'$as_ac_Header'}
23014		 $as_echo "$as_val"'`
23015   if test "x$as_val" = x""yes; then
23016  cat >>confdefs.h <<_ACEOF
23017#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23018_ACEOF
23019
23020fi
23021
23022done
23023
23024
23025
23026
23027for ac_func in shl_load shl_unload shl_findsym
23028do
23029as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23030{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23031$as_echo_n "checking for $ac_func... " >&6; }
23032if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23033  $as_echo_n "(cached) " >&6
23034else
23035  cat >conftest.$ac_ext <<_ACEOF
23036/* confdefs.h.  */
23037_ACEOF
23038cat confdefs.h >>conftest.$ac_ext
23039cat >>conftest.$ac_ext <<_ACEOF
23040/* end confdefs.h.  */
23041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23042   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23043#define $ac_func innocuous_$ac_func
23044
23045/* System header to define __stub macros and hopefully few prototypes,
23046    which can conflict with char $ac_func (); below.
23047    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23048    <limits.h> exists even on freestanding compilers.  */
23049
23050#ifdef __STDC__
23051# include <limits.h>
23052#else
23053# include <assert.h>
23054#endif
23055
23056#undef $ac_func
23057
23058/* Override any GCC internal prototype to avoid an error.
23059   Use char because int might match the return type of a GCC
23060   builtin and then its argument prototype would still apply.  */
23061#ifdef __cplusplus
23062extern "C"
23063#endif
23064char $ac_func ();
23065/* The GNU C library defines this for functions which it implements
23066    to always fail with ENOSYS.  Some functions are actually named
23067    something starting with __ and the normal name is an alias.  */
23068#if defined __stub_$ac_func || defined __stub___$ac_func
23069choke me
23070#endif
23071
23072int
23073main ()
23074{
23075return $ac_func ();
23076  ;
23077  return 0;
23078}
23079_ACEOF
23080rm -f conftest.$ac_objext conftest$ac_exeext
23081if { (ac_try="$ac_link"
23082case "(($ac_try" in
23083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23084  *) ac_try_echo=$ac_try;;
23085esac
23086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23087$as_echo "$ac_try_echo") >&5
23088  (eval "$ac_link") 2>conftest.er1
23089  ac_status=$?
23090  grep -v '^ *+' conftest.er1 >conftest.err
23091  rm -f conftest.er1
23092  cat conftest.err >&5
23093  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094  (exit $ac_status); } && {
23095	 test -z "$ac_c_werror_flag" ||
23096	 test ! -s conftest.err
23097       } && test -s conftest$ac_exeext && {
23098	 test "$cross_compiling" = yes ||
23099	 $as_test_x conftest$ac_exeext
23100       }; then
23101  eval "$as_ac_var=yes"
23102else
23103  $as_echo "$as_me: failed program was:" >&5
23104sed 's/^/| /' conftest.$ac_ext >&5
23105
23106	eval "$as_ac_var=no"
23107fi
23108
23109rm -rf conftest.dSYM
23110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23111      conftest$ac_exeext conftest.$ac_ext
23112fi
23113ac_res=`eval 'as_val=${'$as_ac_var'}
23114		 $as_echo "$as_val"'`
23115	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23116$as_echo "$ac_res" >&6; }
23117as_val=`eval 'as_val=${'$as_ac_var'}
23118		 $as_echo "$as_val"'`
23119   if test "x$as_val" = x""yes; then
23120  cat >>confdefs.h <<_ACEOF
23121#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23122_ACEOF
23123
23124else
23125  libreplace_cv_shl=yes
23126fi
23127done
23128
23129
23130{ $as_echo "$as_me:$LINENO: checking for prototype void *dlopen(const char* filename, unsigned int flags)" >&5
23131$as_echo_n "checking for prototype void *dlopen(const char* filename, unsigned int flags)... " >&6; }
23132if test "${ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_+set}" = set; then
23133  $as_echo_n "(cached) " >&6
23134else
23135  cat >conftest.$ac_ext <<_ACEOF
23136/* confdefs.h.  */
23137_ACEOF
23138cat confdefs.h >>conftest.$ac_ext
23139cat >>conftest.$ac_ext <<_ACEOF
23140/* end confdefs.h.  */
23141
23142		$ac_includes_default
23143
23144	#include <dlfcn.h>
23145
23146		void *dlopen(const char* filename, unsigned int flags)
23147		{
23148
23149	return 0;
23150
23151		}
23152
23153_ACEOF
23154rm -f conftest.$ac_objext
23155if { (ac_try="$ac_compile"
23156case "(($ac_try" in
23157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158  *) ac_try_echo=$ac_try;;
23159esac
23160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23161$as_echo "$ac_try_echo") >&5
23162  (eval "$ac_compile") 2>conftest.er1
23163  ac_status=$?
23164  grep -v '^ *+' conftest.er1 >conftest.err
23165  rm -f conftest.er1
23166  cat conftest.err >&5
23167  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168  (exit $ac_status); } && {
23169	 test -z "$ac_c_werror_flag" ||
23170	 test ! -s conftest.err
23171       } && test -s conftest.$ac_objext; then
23172
23173		ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_=yes
23174
23175else
23176  $as_echo "$as_me: failed program was:" >&5
23177sed 's/^/| /' conftest.$ac_ext >&5
23178
23179
23180		ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_=no
23181
23182fi
23183
23184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23185
23186fi
23187{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_" >&5
23188$as_echo "$ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_" >&6; }
23189if test $ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_ = yes; then
23190
23191
23192cat >>confdefs.h <<\_ACEOF
23193#define DLOPEN_TAKES_UNSIGNED_FLAGS 1
23194_ACEOF
23195
23196
23197fi
23198
23199
23200
23201if test x"${libreplace_cv_dlfcn}" = x"yes";then
23202	LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/dlfcn.o"
23203fi
23204
23205LIBDL="$LIBS"
23206
23207LIBS="$save_LIBS"
23208
23209{ $as_echo "$as_me:$LINENO: checking for getpass" >&5
23210$as_echo_n "checking for getpass... " >&6; }
23211if test "${ac_cv_func_getpass+set}" = set; then
23212  $as_echo_n "(cached) " >&6
23213else
23214  cat >conftest.$ac_ext <<_ACEOF
23215/* confdefs.h.  */
23216_ACEOF
23217cat confdefs.h >>conftest.$ac_ext
23218cat >>conftest.$ac_ext <<_ACEOF
23219/* end confdefs.h.  */
23220/* Define getpass to an innocuous variant, in case <limits.h> declares getpass.
23221   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23222#define getpass innocuous_getpass
23223
23224/* System header to define __stub macros and hopefully few prototypes,
23225    which can conflict with char getpass (); below.
23226    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23227    <limits.h> exists even on freestanding compilers.  */
23228
23229#ifdef __STDC__
23230# include <limits.h>
23231#else
23232# include <assert.h>
23233#endif
23234
23235#undef getpass
23236
23237/* Override any GCC internal prototype to avoid an error.
23238   Use char because int might match the return type of a GCC
23239   builtin and then its argument prototype would still apply.  */
23240#ifdef __cplusplus
23241extern "C"
23242#endif
23243char getpass ();
23244/* The GNU C library defines this for functions which it implements
23245    to always fail with ENOSYS.  Some functions are actually named
23246    something starting with __ and the normal name is an alias.  */
23247#if defined __stub_getpass || defined __stub___getpass
23248choke me
23249#endif
23250
23251int
23252main ()
23253{
23254return getpass ();
23255  ;
23256  return 0;
23257}
23258_ACEOF
23259rm -f conftest.$ac_objext conftest$ac_exeext
23260if { (ac_try="$ac_link"
23261case "(($ac_try" in
23262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263  *) ac_try_echo=$ac_try;;
23264esac
23265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23266$as_echo "$ac_try_echo") >&5
23267  (eval "$ac_link") 2>conftest.er1
23268  ac_status=$?
23269  grep -v '^ *+' conftest.er1 >conftest.err
23270  rm -f conftest.er1
23271  cat conftest.err >&5
23272  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273  (exit $ac_status); } && {
23274	 test -z "$ac_c_werror_flag" ||
23275	 test ! -s conftest.err
23276       } && test -s conftest$ac_exeext && {
23277	 test "$cross_compiling" = yes ||
23278	 $as_test_x conftest$ac_exeext
23279       }; then
23280  ac_cv_func_getpass=yes
23281else
23282  $as_echo "$as_me: failed program was:" >&5
23283sed 's/^/| /' conftest.$ac_ext >&5
23284
23285	ac_cv_func_getpass=no
23286fi
23287
23288rm -rf conftest.dSYM
23289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23290      conftest$ac_exeext conftest.$ac_ext
23291fi
23292{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpass" >&5
23293$as_echo "$ac_cv_func_getpass" >&6; }
23294if test "x$ac_cv_func_getpass" = x""yes; then
23295  libreplace_cv_HAVE_GETPASS=yes
23296fi
23297
23298{ $as_echo "$as_me:$LINENO: checking for getpassphrase" >&5
23299$as_echo_n "checking for getpassphrase... " >&6; }
23300if test "${ac_cv_func_getpassphrase+set}" = set; then
23301  $as_echo_n "(cached) " >&6
23302else
23303  cat >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/* Define getpassphrase to an innocuous variant, in case <limits.h> declares getpassphrase.
23310   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23311#define getpassphrase innocuous_getpassphrase
23312
23313/* System header to define __stub macros and hopefully few prototypes,
23314    which can conflict with char getpassphrase (); below.
23315    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23316    <limits.h> exists even on freestanding compilers.  */
23317
23318#ifdef __STDC__
23319# include <limits.h>
23320#else
23321# include <assert.h>
23322#endif
23323
23324#undef getpassphrase
23325
23326/* Override any GCC internal prototype to avoid an error.
23327   Use char because int might match the return type of a GCC
23328   builtin and then its argument prototype would still apply.  */
23329#ifdef __cplusplus
23330extern "C"
23331#endif
23332char getpassphrase ();
23333/* The GNU C library defines this for functions which it implements
23334    to always fail with ENOSYS.  Some functions are actually named
23335    something starting with __ and the normal name is an alias.  */
23336#if defined __stub_getpassphrase || defined __stub___getpassphrase
23337choke me
23338#endif
23339
23340int
23341main ()
23342{
23343return getpassphrase ();
23344  ;
23345  return 0;
23346}
23347_ACEOF
23348rm -f conftest.$ac_objext conftest$ac_exeext
23349if { (ac_try="$ac_link"
23350case "(($ac_try" in
23351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23352  *) ac_try_echo=$ac_try;;
23353esac
23354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23355$as_echo "$ac_try_echo") >&5
23356  (eval "$ac_link") 2>conftest.er1
23357  ac_status=$?
23358  grep -v '^ *+' conftest.er1 >conftest.err
23359  rm -f conftest.er1
23360  cat conftest.err >&5
23361  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362  (exit $ac_status); } && {
23363	 test -z "$ac_c_werror_flag" ||
23364	 test ! -s conftest.err
23365       } && test -s conftest$ac_exeext && {
23366	 test "$cross_compiling" = yes ||
23367	 $as_test_x conftest$ac_exeext
23368       }; then
23369  ac_cv_func_getpassphrase=yes
23370else
23371  $as_echo "$as_me: failed program was:" >&5
23372sed 's/^/| /' conftest.$ac_ext >&5
23373
23374	ac_cv_func_getpassphrase=no
23375fi
23376
23377rm -rf conftest.dSYM
23378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23379      conftest$ac_exeext conftest.$ac_ext
23380fi
23381{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpassphrase" >&5
23382$as_echo "$ac_cv_func_getpassphrase" >&6; }
23383if test "x$ac_cv_func_getpassphrase" = x""yes; then
23384  libreplace_cv_HAVE_GETPASSPHRASE=yes
23385fi
23386
23387if test x"$libreplace_cv_HAVE_GETPASS" = x"yes" -a x"$libreplace_cv_HAVE_GETPASSPHRASE" = x"yes"; then
23388
23389cat >>confdefs.h <<\_ACEOF
23390#define REPLACE_GETPASS_BY_GETPASSPHRASE 1
23391_ACEOF
23392
23393
23394cat >>confdefs.h <<\_ACEOF
23395#define REPLACE_GETPASS 1
23396_ACEOF
23397
23398	LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/getpass.o"
23399else
23400
23401{ $as_echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
23402$as_echo_n "checking whether getpass should be replaced... " >&6; }
23403if test "${libreplace_cv_REPLACE_GETPASS+set}" = set; then
23404  $as_echo_n "(cached) " >&6
23405else
23406
23407SAVE_CPPFLAGS="$CPPFLAGS"
23408CPPFLAGS="$CPPFLAGS -I$libreplacedir/"
23409cat >conftest.$ac_ext <<_ACEOF
23410/* confdefs.h.  */
23411_ACEOF
23412cat confdefs.h >>conftest.$ac_ext
23413cat >>conftest.$ac_ext <<_ACEOF
23414/* end confdefs.h.  */
23415
23416#include "confdefs.h"
23417#define NO_CONFIG_H
23418#include "$libreplacedir/getpass.c"
23419
23420int
23421main ()
23422{
23423
23424  ;
23425  return 0;
23426}
23427_ACEOF
23428rm -f conftest.$ac_objext
23429if { (ac_try="$ac_compile"
23430case "(($ac_try" in
23431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23432  *) ac_try_echo=$ac_try;;
23433esac
23434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23435$as_echo "$ac_try_echo") >&5
23436  (eval "$ac_compile") 2>conftest.er1
23437  ac_status=$?
23438  grep -v '^ *+' conftest.er1 >conftest.err
23439  rm -f conftest.er1
23440  cat conftest.err >&5
23441  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442  (exit $ac_status); } && {
23443	 test -z "$ac_c_werror_flag" ||
23444	 test ! -s conftest.err
23445       } && test -s conftest.$ac_objext; then
23446  libreplace_cv_REPLACE_GETPASS=yes
23447else
23448  $as_echo "$as_me: failed program was:" >&5
23449sed 's/^/| /' conftest.$ac_ext >&5
23450
23451	libreplace_cv_REPLACE_GETPASS=no
23452fi
23453
23454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23455CPPFLAGS="$SAVE_CPPFLAGS"
23456
23457fi
23458{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_REPLACE_GETPASS" >&5
23459$as_echo "$libreplace_cv_REPLACE_GETPASS" >&6; }
23460if test x"$libreplace_cv_REPLACE_GETPASS" = x"yes"; then
23461
23462cat >>confdefs.h <<\_ACEOF
23463#define REPLACE_GETPASS 1
23464_ACEOF
23465
23466	LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/getpass.o"
23467fi
23468
23469fi
23470
23471{ $as_echo "$as_me:$LINENO: checking whether strptime is available and works" >&5
23472$as_echo_n "checking whether strptime is available and works... " >&6; }
23473if test "${libreplace_cv_STRPTIME_OK+set}" = set; then
23474  $as_echo_n "(cached) " >&6
23475else
23476
23477	if test "$cross_compiling" = yes; then
23478  libreplace_cv_STRPTIME_OK="assuming not"
23479else
23480  cat >conftest.$ac_ext <<_ACEOF
23481/* confdefs.h.  */
23482_ACEOF
23483cat confdefs.h >>conftest.$ac_ext
23484cat >>conftest.$ac_ext <<_ACEOF
23485/* end confdefs.h.  */
23486
23487		#define LIBREPLACE_CONFIGURE_TEST_STRPTIME
23488		#include "$libreplacedir/test/strptime.c"
23489
23490_ACEOF
23491rm -f conftest$ac_exeext
23492if { (ac_try="$ac_link"
23493case "(($ac_try" in
23494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23495  *) ac_try_echo=$ac_try;;
23496esac
23497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23498$as_echo "$ac_try_echo") >&5
23499  (eval "$ac_link") 2>&5
23500  ac_status=$?
23501  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23503  { (case "(($ac_try" in
23504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23505  *) ac_try_echo=$ac_try;;
23506esac
23507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23508$as_echo "$ac_try_echo") >&5
23509  (eval "$ac_try") 2>&5
23510  ac_status=$?
23511  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512  (exit $ac_status); }; }; then
23513  libreplace_cv_STRPTIME_OK=yes
23514else
23515  $as_echo "$as_me: program exited with status $ac_status" >&5
23516$as_echo "$as_me: failed program was:" >&5
23517sed 's/^/| /' conftest.$ac_ext >&5
23518
23519( exit $ac_status )
23520libreplace_cv_STRPTIME_OK=no
23521fi
23522rm -rf conftest.dSYM
23523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23524fi
23525
23526
23527
23528fi
23529{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_STRPTIME_OK" >&5
23530$as_echo "$libreplace_cv_STRPTIME_OK" >&6; }
23531if test x"$libreplace_cv_STRPTIME_OK" != x"yes"; then
23532
23533cat >>confdefs.h <<\_ACEOF
23534#define REPLACE_STRPTIME 1
23535_ACEOF
23536
23537        LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/strptime.o"
23538fi
23539
23540
23541
23542
23543
23544for ac_header in direct.h windows.h winsock2.h ws2tcpip.h
23545do
23546as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23548  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23549$as_echo_n "checking for $ac_header... " >&6; }
23550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23551  $as_echo_n "(cached) " >&6
23552fi
23553ac_res=`eval 'as_val=${'$as_ac_Header'}
23554		 $as_echo "$as_val"'`
23555	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23556$as_echo "$ac_res" >&6; }
23557else
23558  # Is the header compilable?
23559{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23560$as_echo_n "checking $ac_header usability... " >&6; }
23561cat >conftest.$ac_ext <<_ACEOF
23562/* confdefs.h.  */
23563_ACEOF
23564cat confdefs.h >>conftest.$ac_ext
23565cat >>conftest.$ac_ext <<_ACEOF
23566/* end confdefs.h.  */
23567$ac_includes_default
23568#include <$ac_header>
23569_ACEOF
23570rm -f conftest.$ac_objext
23571if { (ac_try="$ac_compile"
23572case "(($ac_try" in
23573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23574  *) ac_try_echo=$ac_try;;
23575esac
23576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23577$as_echo "$ac_try_echo") >&5
23578  (eval "$ac_compile") 2>conftest.er1
23579  ac_status=$?
23580  grep -v '^ *+' conftest.er1 >conftest.err
23581  rm -f conftest.er1
23582  cat conftest.err >&5
23583  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584  (exit $ac_status); } && {
23585	 test -z "$ac_c_werror_flag" ||
23586	 test ! -s conftest.err
23587       } && test -s conftest.$ac_objext; then
23588  ac_header_compiler=yes
23589else
23590  $as_echo "$as_me: failed program was:" >&5
23591sed 's/^/| /' conftest.$ac_ext >&5
23592
23593	ac_header_compiler=no
23594fi
23595
23596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23597{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23598$as_echo "$ac_header_compiler" >&6; }
23599
23600# Is the header present?
23601{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23602$as_echo_n "checking $ac_header presence... " >&6; }
23603cat >conftest.$ac_ext <<_ACEOF
23604/* confdefs.h.  */
23605_ACEOF
23606cat confdefs.h >>conftest.$ac_ext
23607cat >>conftest.$ac_ext <<_ACEOF
23608/* end confdefs.h.  */
23609#include <$ac_header>
23610_ACEOF
23611if { (ac_try="$ac_cpp conftest.$ac_ext"
23612case "(($ac_try" in
23613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23614  *) ac_try_echo=$ac_try;;
23615esac
23616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23617$as_echo "$ac_try_echo") >&5
23618  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23619  ac_status=$?
23620  grep -v '^ *+' conftest.er1 >conftest.err
23621  rm -f conftest.er1
23622  cat conftest.err >&5
23623  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624  (exit $ac_status); } >/dev/null && {
23625	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23626	 test ! -s conftest.err
23627       }; then
23628  ac_header_preproc=yes
23629else
23630  $as_echo "$as_me: failed program was:" >&5
23631sed 's/^/| /' conftest.$ac_ext >&5
23632
23633  ac_header_preproc=no
23634fi
23635
23636rm -f conftest.err conftest.$ac_ext
23637{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23638$as_echo "$ac_header_preproc" >&6; }
23639
23640# So?  What about this header?
23641case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23642  yes:no: )
23643    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23644$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23645    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23646$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23647    ac_header_preproc=yes
23648    ;;
23649  no:yes:* )
23650    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23651$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23652    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23653$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23654    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23655$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23656    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23657$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23658    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23659$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23660    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23661$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23662    ( cat <<\_ASBOX
23663## ---------------------------------------- ##
23664## Report this to samba-technical@samba.org ##
23665## ---------------------------------------- ##
23666_ASBOX
23667     ) | sed "s/^/$as_me: WARNING:     /" >&2
23668    ;;
23669esac
23670{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23671$as_echo_n "checking for $ac_header... " >&6; }
23672if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23673  $as_echo_n "(cached) " >&6
23674else
23675  eval "$as_ac_Header=\$ac_header_preproc"
23676fi
23677ac_res=`eval 'as_val=${'$as_ac_Header'}
23678		 $as_echo "$as_val"'`
23679	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23680$as_echo "$ac_res" >&6; }
23681
23682fi
23683as_val=`eval 'as_val=${'$as_ac_Header'}
23684		 $as_echo "$as_val"'`
23685   if test "x$as_val" = x""yes; then
23686  cat >>confdefs.h <<_ACEOF
23687#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23688_ACEOF
23689
23690fi
23691
23692done
23693
23694
23695#######################################
23696# Check for mkdir mode
23697{ $as_echo "$as_me:$LINENO: checking whether mkdir supports mode" >&5
23698$as_echo_n "checking whether mkdir supports mode... " >&6; }
23699if test "${libreplace_cv_mkdir_has_mode+set}" = set; then
23700  $as_echo_n "(cached) " >&6
23701else
23702  cat >conftest.$ac_ext <<_ACEOF
23703/* confdefs.h.  */
23704_ACEOF
23705cat confdefs.h >>conftest.$ac_ext
23706cat >>conftest.$ac_ext <<_ACEOF
23707/* end confdefs.h.  */
23708
23709		#include <stdio.h>
23710		#ifdef HAVE_DIRECT_H
23711		#include <direct.h>
23712		#endif
23713int
23714main ()
23715{
23716
23717			mkdir("foo",0777);
23718			return 0;
23719
23720  ;
23721  return 0;
23722}
23723_ACEOF
23724rm -f conftest.$ac_objext
23725if { (ac_try="$ac_compile"
23726case "(($ac_try" in
23727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23728  *) ac_try_echo=$ac_try;;
23729esac
23730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23731$as_echo "$ac_try_echo") >&5
23732  (eval "$ac_compile") 2>conftest.er1
23733  ac_status=$?
23734  grep -v '^ *+' conftest.er1 >conftest.err
23735  rm -f conftest.er1
23736  cat conftest.err >&5
23737  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738  (exit $ac_status); } && {
23739	 test -z "$ac_c_werror_flag" ||
23740	 test ! -s conftest.err
23741       } && test -s conftest.$ac_objext; then
23742  libreplace_cv_mkdir_has_mode="yes"
23743else
23744  $as_echo "$as_me: failed program was:" >&5
23745sed 's/^/| /' conftest.$ac_ext >&5
23746
23747	libreplace_cv_mkdir_has_mode="no"
23748fi
23749
23750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23751fi
23752{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_mkdir_has_mode" >&5
23753$as_echo "$libreplace_cv_mkdir_has_mode" >&6; }
23754
23755if test "$libreplace_cv_mkdir_has_mode" = "yes"
23756then
23757
23758cat >>confdefs.h <<\_ACEOF
23759#define HAVE_MKDIR_MODE 1
23760_ACEOF
23761
23762fi
23763
23764
23765for ac_func in timegm
23766do
23767as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23768{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23769$as_echo_n "checking for $ac_func... " >&6; }
23770if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23771  $as_echo_n "(cached) " >&6
23772else
23773  cat >conftest.$ac_ext <<_ACEOF
23774/* confdefs.h.  */
23775_ACEOF
23776cat confdefs.h >>conftest.$ac_ext
23777cat >>conftest.$ac_ext <<_ACEOF
23778/* end confdefs.h.  */
23779/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23780   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23781#define $ac_func innocuous_$ac_func
23782
23783/* System header to define __stub macros and hopefully few prototypes,
23784    which can conflict with char $ac_func (); below.
23785    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23786    <limits.h> exists even on freestanding compilers.  */
23787
23788#ifdef __STDC__
23789# include <limits.h>
23790#else
23791# include <assert.h>
23792#endif
23793
23794#undef $ac_func
23795
23796/* Override any GCC internal prototype to avoid an error.
23797   Use char because int might match the return type of a GCC
23798   builtin and then its argument prototype would still apply.  */
23799#ifdef __cplusplus
23800extern "C"
23801#endif
23802char $ac_func ();
23803/* The GNU C library defines this for functions which it implements
23804    to always fail with ENOSYS.  Some functions are actually named
23805    something starting with __ and the normal name is an alias.  */
23806#if defined __stub_$ac_func || defined __stub___$ac_func
23807choke me
23808#endif
23809
23810int
23811main ()
23812{
23813return $ac_func ();
23814  ;
23815  return 0;
23816}
23817_ACEOF
23818rm -f conftest.$ac_objext conftest$ac_exeext
23819if { (ac_try="$ac_link"
23820case "(($ac_try" in
23821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822  *) ac_try_echo=$ac_try;;
23823esac
23824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23825$as_echo "$ac_try_echo") >&5
23826  (eval "$ac_link") 2>conftest.er1
23827  ac_status=$?
23828  grep -v '^ *+' conftest.er1 >conftest.err
23829  rm -f conftest.er1
23830  cat conftest.err >&5
23831  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832  (exit $ac_status); } && {
23833	 test -z "$ac_c_werror_flag" ||
23834	 test ! -s conftest.err
23835       } && test -s conftest$ac_exeext && {
23836	 test "$cross_compiling" = yes ||
23837	 $as_test_x conftest$ac_exeext
23838       }; then
23839  eval "$as_ac_var=yes"
23840else
23841  $as_echo "$as_me: failed program was:" >&5
23842sed 's/^/| /' conftest.$ac_ext >&5
23843
23844	eval "$as_ac_var=no"
23845fi
23846
23847rm -rf conftest.dSYM
23848rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23849      conftest$ac_exeext conftest.$ac_ext
23850fi
23851ac_res=`eval 'as_val=${'$as_ac_var'}
23852		 $as_echo "$as_val"'`
23853	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23854$as_echo "$ac_res" >&6; }
23855as_val=`eval 'as_val=${'$as_ac_var'}
23856		 $as_echo "$as_val"'`
23857   if test "x$as_val" = x""yes; then
23858  cat >>confdefs.h <<_ACEOF
23859#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23860_ACEOF
23861
23862else
23863  LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/timegm.o"
23864fi
23865done
23866
23867
23868{ $as_echo "$as_me:$LINENO: checking for broken readdir" >&5
23869$as_echo_n "checking for broken readdir... " >&6; }
23870if test "${libreplace_cv_READDIR_NEEDED+set}" = set; then
23871  $as_echo_n "(cached) " >&6
23872else
23873
23874	if test "$cross_compiling" = yes; then
23875  libreplace_cv_READDIR_NEEDED="assuming not"
23876else
23877  cat >conftest.$ac_ext <<_ACEOF
23878/* confdefs.h.  */
23879_ACEOF
23880cat confdefs.h >>conftest.$ac_ext
23881cat >>conftest.$ac_ext <<_ACEOF
23882/* end confdefs.h.  */
23883
23884#define test_readdir_os2_delete main
23885#include "$libreplacedir/test/os2_delete.c"
23886_ACEOF
23887rm -f conftest$ac_exeext
23888if { (ac_try="$ac_link"
23889case "(($ac_try" in
23890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891  *) ac_try_echo=$ac_try;;
23892esac
23893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23894$as_echo "$ac_try_echo") >&5
23895  (eval "$ac_link") 2>&5
23896  ac_status=$?
23897  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23899  { (case "(($ac_try" in
23900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901  *) ac_try_echo=$ac_try;;
23902esac
23903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23904$as_echo "$ac_try_echo") >&5
23905  (eval "$ac_try") 2>&5
23906  ac_status=$?
23907  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908  (exit $ac_status); }; }; then
23909  libreplace_cv_READDIR_NEEDED=no
23910else
23911  $as_echo "$as_me: program exited with status $ac_status" >&5
23912$as_echo "$as_me: failed program was:" >&5
23913sed 's/^/| /' conftest.$ac_ext >&5
23914
23915( exit $ac_status )
23916libreplace_cv_READDIR_NEEDED=yes
23917fi
23918rm -rf conftest.dSYM
23919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23920fi
23921
23922
23923
23924fi
23925{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_NEEDED" >&5
23926$as_echo "$libreplace_cv_READDIR_NEEDED" >&6; }
23927
23928
23929for ac_func in dirfd
23930do
23931as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23932{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23933$as_echo_n "checking for $ac_func... " >&6; }
23934if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23935  $as_echo_n "(cached) " >&6
23936else
23937  cat >conftest.$ac_ext <<_ACEOF
23938/* confdefs.h.  */
23939_ACEOF
23940cat confdefs.h >>conftest.$ac_ext
23941cat >>conftest.$ac_ext <<_ACEOF
23942/* end confdefs.h.  */
23943/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23944   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23945#define $ac_func innocuous_$ac_func
23946
23947/* System header to define __stub macros and hopefully few prototypes,
23948    which can conflict with char $ac_func (); below.
23949    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23950    <limits.h> exists even on freestanding compilers.  */
23951
23952#ifdef __STDC__
23953# include <limits.h>
23954#else
23955# include <assert.h>
23956#endif
23957
23958#undef $ac_func
23959
23960/* Override any GCC internal prototype to avoid an error.
23961   Use char because int might match the return type of a GCC
23962   builtin and then its argument prototype would still apply.  */
23963#ifdef __cplusplus
23964extern "C"
23965#endif
23966char $ac_func ();
23967/* The GNU C library defines this for functions which it implements
23968    to always fail with ENOSYS.  Some functions are actually named
23969    something starting with __ and the normal name is an alias.  */
23970#if defined __stub_$ac_func || defined __stub___$ac_func
23971choke me
23972#endif
23973
23974int
23975main ()
23976{
23977return $ac_func ();
23978  ;
23979  return 0;
23980}
23981_ACEOF
23982rm -f conftest.$ac_objext conftest$ac_exeext
23983if { (ac_try="$ac_link"
23984case "(($ac_try" in
23985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23986  *) ac_try_echo=$ac_try;;
23987esac
23988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23989$as_echo "$ac_try_echo") >&5
23990  (eval "$ac_link") 2>conftest.er1
23991  ac_status=$?
23992  grep -v '^ *+' conftest.er1 >conftest.err
23993  rm -f conftest.er1
23994  cat conftest.err >&5
23995  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996  (exit $ac_status); } && {
23997	 test -z "$ac_c_werror_flag" ||
23998	 test ! -s conftest.err
23999       } && test -s conftest$ac_exeext && {
24000	 test "$cross_compiling" = yes ||
24001	 $as_test_x conftest$ac_exeext
24002       }; then
24003  eval "$as_ac_var=yes"
24004else
24005  $as_echo "$as_me: failed program was:" >&5
24006sed 's/^/| /' conftest.$ac_ext >&5
24007
24008	eval "$as_ac_var=no"
24009fi
24010
24011rm -rf conftest.dSYM
24012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24013      conftest$ac_exeext conftest.$ac_ext
24014fi
24015ac_res=`eval 'as_val=${'$as_ac_var'}
24016		 $as_echo "$as_val"'`
24017	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24018$as_echo "$ac_res" >&6; }
24019as_val=`eval 'as_val=${'$as_ac_var'}
24020		 $as_echo "$as_val"'`
24021   if test "x$as_val" = x""yes; then
24022  cat >>confdefs.h <<_ACEOF
24023#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24024_ACEOF
24025
24026fi
24027done
24028
24029
24030 { $as_echo "$as_me:$LINENO: checking for dirfd declaration" >&5
24031$as_echo_n "checking for dirfd declaration... " >&6; }
24032if test "${ac_cv_have_dirfd_decl+set}" = set; then
24033  $as_echo_n "(cached) " >&6
24034else
24035
24036    cat >conftest.$ac_ext <<_ACEOF
24037/* confdefs.h.  */
24038_ACEOF
24039cat confdefs.h >>conftest.$ac_ext
24040cat >>conftest.$ac_ext <<_ACEOF
24041/* end confdefs.h.  */
24042#include <dirent.h>
24043int
24044main ()
24045{
24046int i = (int)dirfd
24047  ;
24048  return 0;
24049}
24050_ACEOF
24051rm -f conftest.$ac_objext
24052if { (ac_try="$ac_compile"
24053case "(($ac_try" in
24054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24055  *) ac_try_echo=$ac_try;;
24056esac
24057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24058$as_echo "$ac_try_echo") >&5
24059  (eval "$ac_compile") 2>conftest.er1
24060  ac_status=$?
24061  grep -v '^ *+' conftest.er1 >conftest.err
24062  rm -f conftest.er1
24063  cat conftest.err >&5
24064  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065  (exit $ac_status); } && {
24066	 test -z "$ac_c_werror_flag" ||
24067	 test ! -s conftest.err
24068       } && test -s conftest.$ac_objext; then
24069  ac_cv_have_dirfd_decl=yes
24070else
24071  $as_echo "$as_me: failed program was:" >&5
24072sed 's/^/| /' conftest.$ac_ext >&5
24073
24074	ac_cv_have_dirfd_decl=no
24075fi
24076
24077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24078fi
24079{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_dirfd_decl" >&5
24080$as_echo "$ac_cv_have_dirfd_decl" >&6; }
24081 if test x"$ac_cv_have_dirfd_decl" = x"yes"; then
24082
24083cat >>confdefs.h <<\_ACEOF
24084#define HAVE_DIRFD_DECL 1
24085_ACEOF
24086
24087 fi
24088
24089
24090#
24091# try to replace with getdirentries() if needed
24092#
24093if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
24094
24095for ac_func in getdirentries
24096do
24097as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24098{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24099$as_echo_n "checking for $ac_func... " >&6; }
24100if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24101  $as_echo_n "(cached) " >&6
24102else
24103  cat >conftest.$ac_ext <<_ACEOF
24104/* confdefs.h.  */
24105_ACEOF
24106cat confdefs.h >>conftest.$ac_ext
24107cat >>conftest.$ac_ext <<_ACEOF
24108/* end confdefs.h.  */
24109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24110   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24111#define $ac_func innocuous_$ac_func
24112
24113/* System header to define __stub macros and hopefully few prototypes,
24114    which can conflict with char $ac_func (); below.
24115    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24116    <limits.h> exists even on freestanding compilers.  */
24117
24118#ifdef __STDC__
24119# include <limits.h>
24120#else
24121# include <assert.h>
24122#endif
24123
24124#undef $ac_func
24125
24126/* Override any GCC internal prototype to avoid an error.
24127   Use char because int might match the return type of a GCC
24128   builtin and then its argument prototype would still apply.  */
24129#ifdef __cplusplus
24130extern "C"
24131#endif
24132char $ac_func ();
24133/* The GNU C library defines this for functions which it implements
24134    to always fail with ENOSYS.  Some functions are actually named
24135    something starting with __ and the normal name is an alias.  */
24136#if defined __stub_$ac_func || defined __stub___$ac_func
24137choke me
24138#endif
24139
24140int
24141main ()
24142{
24143return $ac_func ();
24144  ;
24145  return 0;
24146}
24147_ACEOF
24148rm -f conftest.$ac_objext conftest$ac_exeext
24149if { (ac_try="$ac_link"
24150case "(($ac_try" in
24151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152  *) ac_try_echo=$ac_try;;
24153esac
24154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24155$as_echo "$ac_try_echo") >&5
24156  (eval "$ac_link") 2>conftest.er1
24157  ac_status=$?
24158  grep -v '^ *+' conftest.er1 >conftest.err
24159  rm -f conftest.er1
24160  cat conftest.err >&5
24161  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162  (exit $ac_status); } && {
24163	 test -z "$ac_c_werror_flag" ||
24164	 test ! -s conftest.err
24165       } && test -s conftest$ac_exeext && {
24166	 test "$cross_compiling" = yes ||
24167	 $as_test_x conftest$ac_exeext
24168       }; then
24169  eval "$as_ac_var=yes"
24170else
24171  $as_echo "$as_me: failed program was:" >&5
24172sed 's/^/| /' conftest.$ac_ext >&5
24173
24174	eval "$as_ac_var=no"
24175fi
24176
24177rm -rf conftest.dSYM
24178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24179      conftest$ac_exeext conftest.$ac_ext
24180fi
24181ac_res=`eval 'as_val=${'$as_ac_var'}
24182		 $as_echo "$as_val"'`
24183	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24184$as_echo "$ac_res" >&6; }
24185as_val=`eval 'as_val=${'$as_ac_var'}
24186		 $as_echo "$as_val"'`
24187   if test "x$as_val" = x""yes; then
24188  cat >>confdefs.h <<_ACEOF
24189#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24190_ACEOF
24191
24192fi
24193done
24194
24195{ $as_echo "$as_me:$LINENO: checking for prototype long telldir(const DIR *dir)" >&5
24196$as_echo_n "checking for prototype long telldir(const DIR *dir)... " >&6; }
24197if test "${ac_cv_c_prototype_long_telldir_const_DIR_pdir_+set}" = set; then
24198  $as_echo_n "(cached) " >&6
24199else
24200  cat >conftest.$ac_ext <<_ACEOF
24201/* confdefs.h.  */
24202_ACEOF
24203cat confdefs.h >>conftest.$ac_ext
24204cat >>conftest.$ac_ext <<_ACEOF
24205/* end confdefs.h.  */
24206
24207		$ac_includes_default
24208
24209	#include <dirent.h>
24210
24211		long telldir(const DIR *dir)
24212		{
24213
24214	return 0;
24215
24216		}
24217
24218_ACEOF
24219rm -f conftest.$ac_objext
24220if { (ac_try="$ac_compile"
24221case "(($ac_try" in
24222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24223  *) ac_try_echo=$ac_try;;
24224esac
24225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24226$as_echo "$ac_try_echo") >&5
24227  (eval "$ac_compile") 2>conftest.er1
24228  ac_status=$?
24229  grep -v '^ *+' conftest.er1 >conftest.err
24230  rm -f conftest.er1
24231  cat conftest.err >&5
24232  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233  (exit $ac_status); } && {
24234	 test -z "$ac_c_werror_flag" ||
24235	 test ! -s conftest.err
24236       } && test -s conftest.$ac_objext; then
24237
24238		ac_cv_c_prototype_long_telldir_const_DIR_pdir_=yes
24239
24240else
24241  $as_echo "$as_me: failed program was:" >&5
24242sed 's/^/| /' conftest.$ac_ext >&5
24243
24244
24245		ac_cv_c_prototype_long_telldir_const_DIR_pdir_=no
24246
24247fi
24248
24249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24250
24251fi
24252{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&5
24253$as_echo "$ac_cv_c_prototype_long_telldir_const_DIR_pdir_" >&6; }
24254if test $ac_cv_c_prototype_long_telldir_const_DIR_pdir_ = yes; then
24255
24256
24257cat >>confdefs.h <<\_ACEOF
24258#define TELLDIR_TAKES_CONST_DIR 1
24259_ACEOF
24260
24261
24262fi
24263
24264
24265
24266{ $as_echo "$as_me:$LINENO: checking for prototype int seekdir(DIR *dir, long ofs)" >&5
24267$as_echo_n "checking for prototype int seekdir(DIR *dir, long ofs)... " >&6; }
24268if test "${ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_+set}" = set; then
24269  $as_echo_n "(cached) " >&6
24270else
24271  cat >conftest.$ac_ext <<_ACEOF
24272/* confdefs.h.  */
24273_ACEOF
24274cat confdefs.h >>conftest.$ac_ext
24275cat >>conftest.$ac_ext <<_ACEOF
24276/* end confdefs.h.  */
24277
24278		$ac_includes_default
24279
24280	#include <dirent.h>
24281
24282		int seekdir(DIR *dir, long ofs)
24283		{
24284
24285	return 0;
24286
24287		}
24288
24289_ACEOF
24290rm -f conftest.$ac_objext
24291if { (ac_try="$ac_compile"
24292case "(($ac_try" in
24293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294  *) ac_try_echo=$ac_try;;
24295esac
24296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24297$as_echo "$ac_try_echo") >&5
24298  (eval "$ac_compile") 2>conftest.er1
24299  ac_status=$?
24300  grep -v '^ *+' conftest.er1 >conftest.err
24301  rm -f conftest.er1
24302  cat conftest.err >&5
24303  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304  (exit $ac_status); } && {
24305	 test -z "$ac_c_werror_flag" ||
24306	 test ! -s conftest.err
24307       } && test -s conftest.$ac_objext; then
24308
24309		ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=yes
24310
24311else
24312  $as_echo "$as_me: failed program was:" >&5
24313sed 's/^/| /' conftest.$ac_ext >&5
24314
24315
24316		ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_=no
24317
24318fi
24319
24320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24321
24322fi
24323{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&5
24324$as_echo "$ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_" >&6; }
24325if test $ac_cv_c_prototype_int_seekdir_DIR_pdir__long_ofs_ = yes; then
24326
24327
24328cat >>confdefs.h <<\_ACEOF
24329#define SEEKDIR_RETURNS_INT 1
24330_ACEOF
24331
24332
24333fi
24334
24335
24336{ $as_echo "$as_me:$LINENO: checking for replacing readdir using getdirentries()" >&5
24337$as_echo_n "checking for replacing readdir using getdirentries()... " >&6; }
24338if test "${libreplace_cv_READDIR_GETDIRENTRIES+set}" = set; then
24339  $as_echo_n "(cached) " >&6
24340else
24341
24342	if test "$cross_compiling" = yes; then
24343  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24345{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24346See \`config.log' for more details." >&5
24347$as_echo "$as_me: error: cannot run test program while cross compiling
24348See \`config.log' for more details." >&2;}
24349   { (exit 1); exit 1; }; }; }
24350else
24351  cat >conftest.$ac_ext <<_ACEOF
24352/* confdefs.h.  */
24353_ACEOF
24354cat confdefs.h >>conftest.$ac_ext
24355cat >>conftest.$ac_ext <<_ACEOF
24356/* end confdefs.h.  */
24357
24358#define _LIBREPLACE_REPLACE_H
24359#include "$libreplacedir/repdir_getdirentries.c"
24360#define test_readdir_os2_delete main
24361#include "$libreplacedir/test/os2_delete.c"
24362_ACEOF
24363rm -f conftest$ac_exeext
24364if { (ac_try="$ac_link"
24365case "(($ac_try" in
24366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24367  *) ac_try_echo=$ac_try;;
24368esac
24369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24370$as_echo "$ac_try_echo") >&5
24371  (eval "$ac_link") 2>&5
24372  ac_status=$?
24373  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24375  { (case "(($ac_try" in
24376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24377  *) ac_try_echo=$ac_try;;
24378esac
24379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24380$as_echo "$ac_try_echo") >&5
24381  (eval "$ac_try") 2>&5
24382  ac_status=$?
24383  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384  (exit $ac_status); }; }; then
24385  libreplace_cv_READDIR_GETDIRENTRIES=yes
24386else
24387  $as_echo "$as_me: program exited with status $ac_status" >&5
24388$as_echo "$as_me: failed program was:" >&5
24389sed 's/^/| /' conftest.$ac_ext >&5
24390
24391( exit $ac_status )
24392libreplace_cv_READDIR_GETDIRENTRIES=no
24393fi
24394rm -rf conftest.dSYM
24395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24396fi
24397
24398
24399
24400fi
24401{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDIRENTRIES" >&5
24402$as_echo "$libreplace_cv_READDIR_GETDIRENTRIES" >&6; }
24403fi
24404if test x"$libreplace_cv_READDIR_GETDIRENTRIES" = x"yes"; then
24405
24406cat >>confdefs.h <<\_ACEOF
24407#define REPLACE_READDIR 1
24408_ACEOF
24409
24410
24411cat >>confdefs.h <<\_ACEOF
24412#define REPLACE_READDIR_GETDIRENTRIES 1
24413_ACEOF
24414
24415	LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/repdir_getdirentries.o"
24416	libreplace_cv_READDIR_NEEDED=no
24417fi
24418
24419#
24420# try to replace with getdents() if needed
24421#
24422if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
24423
24424for ac_func in getdents
24425do
24426as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24427{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24428$as_echo_n "checking for $ac_func... " >&6; }
24429if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24430  $as_echo_n "(cached) " >&6
24431else
24432  cat >conftest.$ac_ext <<_ACEOF
24433/* confdefs.h.  */
24434_ACEOF
24435cat confdefs.h >>conftest.$ac_ext
24436cat >>conftest.$ac_ext <<_ACEOF
24437/* end confdefs.h.  */
24438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24439   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24440#define $ac_func innocuous_$ac_func
24441
24442/* System header to define __stub macros and hopefully few prototypes,
24443    which can conflict with char $ac_func (); below.
24444    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24445    <limits.h> exists even on freestanding compilers.  */
24446
24447#ifdef __STDC__
24448# include <limits.h>
24449#else
24450# include <assert.h>
24451#endif
24452
24453#undef $ac_func
24454
24455/* Override any GCC internal prototype to avoid an error.
24456   Use char because int might match the return type of a GCC
24457   builtin and then its argument prototype would still apply.  */
24458#ifdef __cplusplus
24459extern "C"
24460#endif
24461char $ac_func ();
24462/* The GNU C library defines this for functions which it implements
24463    to always fail with ENOSYS.  Some functions are actually named
24464    something starting with __ and the normal name is an alias.  */
24465#if defined __stub_$ac_func || defined __stub___$ac_func
24466choke me
24467#endif
24468
24469int
24470main ()
24471{
24472return $ac_func ();
24473  ;
24474  return 0;
24475}
24476_ACEOF
24477rm -f conftest.$ac_objext conftest$ac_exeext
24478if { (ac_try="$ac_link"
24479case "(($ac_try" in
24480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24481  *) ac_try_echo=$ac_try;;
24482esac
24483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24484$as_echo "$ac_try_echo") >&5
24485  (eval "$ac_link") 2>conftest.er1
24486  ac_status=$?
24487  grep -v '^ *+' conftest.er1 >conftest.err
24488  rm -f conftest.er1
24489  cat conftest.err >&5
24490  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491  (exit $ac_status); } && {
24492	 test -z "$ac_c_werror_flag" ||
24493	 test ! -s conftest.err
24494       } && test -s conftest$ac_exeext && {
24495	 test "$cross_compiling" = yes ||
24496	 $as_test_x conftest$ac_exeext
24497       }; then
24498  eval "$as_ac_var=yes"
24499else
24500  $as_echo "$as_me: failed program was:" >&5
24501sed 's/^/| /' conftest.$ac_ext >&5
24502
24503	eval "$as_ac_var=no"
24504fi
24505
24506rm -rf conftest.dSYM
24507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24508      conftest$ac_exeext conftest.$ac_ext
24509fi
24510ac_res=`eval 'as_val=${'$as_ac_var'}
24511		 $as_echo "$as_val"'`
24512	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24513$as_echo "$ac_res" >&6; }
24514as_val=`eval 'as_val=${'$as_ac_var'}
24515		 $as_echo "$as_val"'`
24516   if test "x$as_val" = x""yes; then
24517  cat >>confdefs.h <<_ACEOF
24518#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24519_ACEOF
24520
24521fi
24522done
24523
24524{ $as_echo "$as_me:$LINENO: checking for replacing readdir using getdents()" >&5
24525$as_echo_n "checking for replacing readdir using getdents()... " >&6; }
24526if test "${libreplace_cv_READDIR_GETDENTS+set}" = set; then
24527  $as_echo_n "(cached) " >&6
24528else
24529
24530	if test "$cross_compiling" = yes; then
24531  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24533{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24534See \`config.log' for more details." >&5
24535$as_echo "$as_me: error: cannot run test program while cross compiling
24536See \`config.log' for more details." >&2;}
24537   { (exit 1); exit 1; }; }; }
24538else
24539  cat >conftest.$ac_ext <<_ACEOF
24540/* confdefs.h.  */
24541_ACEOF
24542cat confdefs.h >>conftest.$ac_ext
24543cat >>conftest.$ac_ext <<_ACEOF
24544/* end confdefs.h.  */
24545
24546#define _LIBREPLACE_REPLACE_H
24547#error _donot_use_getdents_replacement_anymore
24548#include "$libreplacedir/repdir_getdents.c"
24549#define test_readdir_os2_delete main
24550#include "$libreplacedir/test/os2_delete.c"
24551_ACEOF
24552rm -f conftest$ac_exeext
24553if { (ac_try="$ac_link"
24554case "(($ac_try" in
24555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24556  *) ac_try_echo=$ac_try;;
24557esac
24558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24559$as_echo "$ac_try_echo") >&5
24560  (eval "$ac_link") 2>&5
24561  ac_status=$?
24562  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24564  { (case "(($ac_try" in
24565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24566  *) ac_try_echo=$ac_try;;
24567esac
24568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24569$as_echo "$ac_try_echo") >&5
24570  (eval "$ac_try") 2>&5
24571  ac_status=$?
24572  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573  (exit $ac_status); }; }; then
24574  libreplace_cv_READDIR_GETDENTS=yes
24575else
24576  $as_echo "$as_me: program exited with status $ac_status" >&5
24577$as_echo "$as_me: failed program was:" >&5
24578sed 's/^/| /' conftest.$ac_ext >&5
24579
24580( exit $ac_status )
24581libreplace_cv_READDIR_GETDENTS=no
24582fi
24583rm -rf conftest.dSYM
24584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24585fi
24586
24587
24588
24589fi
24590{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_READDIR_GETDENTS" >&5
24591$as_echo "$libreplace_cv_READDIR_GETDENTS" >&6; }
24592fi
24593if test x"$libreplace_cv_READDIR_GETDENTS" = x"yes"; then
24594
24595cat >>confdefs.h <<\_ACEOF
24596#define REPLACE_READDIR 1
24597_ACEOF
24598
24599
24600cat >>confdefs.h <<\_ACEOF
24601#define REPLACE_READDIR_GETDENTS 1
24602_ACEOF
24603
24604	LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/repdir_getdents.o"
24605	libreplace_cv_READDIR_NEEDED=no
24606fi
24607
24608{ $as_echo "$as_me:$LINENO: checking a usable readdir()" >&5
24609$as_echo_n "checking a usable readdir()... " >&6; }
24610if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
24611	{ $as_echo "$as_me:$LINENO: result: no" >&5
24612$as_echo "no" >&6; }
24613	{ $as_echo "$as_me:$LINENO: WARNING: the provided readdir() is broken" >&5
24614$as_echo "$as_me: WARNING: the provided readdir() is broken" >&2;}
24615else
24616	{ $as_echo "$as_me:$LINENO: result: yes" >&5
24617$as_echo "yes" >&6; }
24618fi
24619
24620###############################################
24621# test for where we get crypt() from
24622
24623for ac_header in crypt.h
24624do
24625as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24627  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24628$as_echo_n "checking for $ac_header... " >&6; }
24629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24630  $as_echo_n "(cached) " >&6
24631fi
24632ac_res=`eval 'as_val=${'$as_ac_Header'}
24633		 $as_echo "$as_val"'`
24634	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24635$as_echo "$ac_res" >&6; }
24636else
24637  # Is the header compilable?
24638{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24639$as_echo_n "checking $ac_header usability... " >&6; }
24640cat >conftest.$ac_ext <<_ACEOF
24641/* confdefs.h.  */
24642_ACEOF
24643cat confdefs.h >>conftest.$ac_ext
24644cat >>conftest.$ac_ext <<_ACEOF
24645/* end confdefs.h.  */
24646$ac_includes_default
24647#include <$ac_header>
24648_ACEOF
24649rm -f conftest.$ac_objext
24650if { (ac_try="$ac_compile"
24651case "(($ac_try" in
24652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24653  *) ac_try_echo=$ac_try;;
24654esac
24655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24656$as_echo "$ac_try_echo") >&5
24657  (eval "$ac_compile") 2>conftest.er1
24658  ac_status=$?
24659  grep -v '^ *+' conftest.er1 >conftest.err
24660  rm -f conftest.er1
24661  cat conftest.err >&5
24662  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663  (exit $ac_status); } && {
24664	 test -z "$ac_c_werror_flag" ||
24665	 test ! -s conftest.err
24666       } && test -s conftest.$ac_objext; then
24667  ac_header_compiler=yes
24668else
24669  $as_echo "$as_me: failed program was:" >&5
24670sed 's/^/| /' conftest.$ac_ext >&5
24671
24672	ac_header_compiler=no
24673fi
24674
24675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24676{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24677$as_echo "$ac_header_compiler" >&6; }
24678
24679# Is the header present?
24680{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24681$as_echo_n "checking $ac_header presence... " >&6; }
24682cat >conftest.$ac_ext <<_ACEOF
24683/* confdefs.h.  */
24684_ACEOF
24685cat confdefs.h >>conftest.$ac_ext
24686cat >>conftest.$ac_ext <<_ACEOF
24687/* end confdefs.h.  */
24688#include <$ac_header>
24689_ACEOF
24690if { (ac_try="$ac_cpp conftest.$ac_ext"
24691case "(($ac_try" in
24692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24693  *) ac_try_echo=$ac_try;;
24694esac
24695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24696$as_echo "$ac_try_echo") >&5
24697  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24698  ac_status=$?
24699  grep -v '^ *+' conftest.er1 >conftest.err
24700  rm -f conftest.er1
24701  cat conftest.err >&5
24702  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703  (exit $ac_status); } >/dev/null && {
24704	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24705	 test ! -s conftest.err
24706       }; then
24707  ac_header_preproc=yes
24708else
24709  $as_echo "$as_me: failed program was:" >&5
24710sed 's/^/| /' conftest.$ac_ext >&5
24711
24712  ac_header_preproc=no
24713fi
24714
24715rm -f conftest.err conftest.$ac_ext
24716{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24717$as_echo "$ac_header_preproc" >&6; }
24718
24719# So?  What about this header?
24720case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24721  yes:no: )
24722    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24723$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24724    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24725$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24726    ac_header_preproc=yes
24727    ;;
24728  no:yes:* )
24729    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24730$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24731    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24732$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24733    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24734$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24735    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24736$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24737    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24738$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24739    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24740$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24741    ( cat <<\_ASBOX
24742## ---------------------------------------- ##
24743## Report this to samba-technical@samba.org ##
24744## ---------------------------------------- ##
24745_ASBOX
24746     ) | sed "s/^/$as_me: WARNING:     /" >&2
24747    ;;
24748esac
24749{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24750$as_echo_n "checking for $ac_header... " >&6; }
24751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24752  $as_echo_n "(cached) " >&6
24753else
24754  eval "$as_ac_Header=\$ac_header_preproc"
24755fi
24756ac_res=`eval 'as_val=${'$as_ac_Header'}
24757		 $as_echo "$as_val"'`
24758	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24759$as_echo "$ac_res" >&6; }
24760
24761fi
24762as_val=`eval 'as_val=${'$as_ac_Header'}
24763		 $as_echo "$as_val"'`
24764   if test "x$as_val" = x""yes; then
24765  cat >>confdefs.h <<_ACEOF
24766#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24767_ACEOF
24768
24769fi
24770
24771done
24772
24773{ $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
24774$as_echo_n "checking for library containing crypt... " >&6; }
24775if test "${ac_cv_search_ext_crypt+set}" = set; then
24776  $as_echo_n "(cached) " >&6
24777else
24778
24779ac_func_search_ext_save_LIBS=$LIBS
24780ac_cv_search_ext_crypt=no
24781cat >conftest.$ac_ext <<_ACEOF
24782/* confdefs.h.  */
24783_ACEOF
24784cat confdefs.h >>conftest.$ac_ext
24785cat >>conftest.$ac_ext <<_ACEOF
24786/* end confdefs.h.  */
24787
24788/* Override any GCC internal prototype to avoid an error.
24789   Use char because int might match the return type of a GCC
24790   builtin and then its argument prototype would still apply.  */
24791#ifdef __cplusplus
24792extern "C"
24793#endif
24794char crypt ();
24795int
24796main ()
24797{
24798return crypt ();
24799  ;
24800  return 0;
24801}
24802_ACEOF
24803rm -f conftest.$ac_objext conftest$ac_exeext
24804if { (ac_try="$ac_link"
24805case "(($ac_try" in
24806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24807  *) ac_try_echo=$ac_try;;
24808esac
24809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24810$as_echo "$ac_try_echo") >&5
24811  (eval "$ac_link") 2>conftest.er1
24812  ac_status=$?
24813  grep -v '^ *+' conftest.er1 >conftest.err
24814  rm -f conftest.er1
24815  cat conftest.err >&5
24816  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817  (exit $ac_status); } && {
24818	 test -z "$ac_c_werror_flag" ||
24819	 test ! -s conftest.err
24820       } && test -s conftest$ac_exeext && {
24821	 test "$cross_compiling" = yes ||
24822	 $as_test_x conftest$ac_exeext
24823       }; then
24824  ac_cv_search_ext_crypt="none required"
24825else
24826  $as_echo "$as_me: failed program was:" >&5
24827sed 's/^/| /' conftest.$ac_ext >&5
24828
24829
24830fi
24831
24832rm -rf conftest.dSYM
24833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24834      conftest$ac_exeext conftest.$ac_ext
24835if test "$ac_cv_search_ext_crypt" = no; then
24836  for ac_lib in crypt; do
24837    LIBS="-l$ac_lib $CRYPT_LIBS  $ac_func_search_save_ext_LIBS"
24838    cat >conftest.$ac_ext <<_ACEOF
24839/* confdefs.h.  */
24840_ACEOF
24841cat confdefs.h >>conftest.$ac_ext
24842cat >>conftest.$ac_ext <<_ACEOF
24843/* end confdefs.h.  */
24844
24845/* Override any GCC internal prototype to avoid an error.
24846   Use char because int might match the return type of a GCC
24847   builtin and then its argument prototype would still apply.  */
24848#ifdef __cplusplus
24849extern "C"
24850#endif
24851char crypt ();
24852int
24853main ()
24854{
24855return crypt ();
24856  ;
24857  return 0;
24858}
24859_ACEOF
24860rm -f conftest.$ac_objext conftest$ac_exeext
24861if { (ac_try="$ac_link"
24862case "(($ac_try" in
24863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864  *) ac_try_echo=$ac_try;;
24865esac
24866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24867$as_echo "$ac_try_echo") >&5
24868  (eval "$ac_link") 2>conftest.er1
24869  ac_status=$?
24870  grep -v '^ *+' conftest.er1 >conftest.err
24871  rm -f conftest.er1
24872  cat conftest.err >&5
24873  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874  (exit $ac_status); } && {
24875	 test -z "$ac_c_werror_flag" ||
24876	 test ! -s conftest.err
24877       } && test -s conftest$ac_exeext && {
24878	 test "$cross_compiling" = yes ||
24879	 $as_test_x conftest$ac_exeext
24880       }; then
24881  ac_cv_search_ext_crypt="-l$ac_lib"
24882break
24883else
24884  $as_echo "$as_me: failed program was:" >&5
24885sed 's/^/| /' conftest.$ac_ext >&5
24886
24887
24888fi
24889
24890rm -rf conftest.dSYM
24891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24892      conftest$ac_exeext conftest.$ac_ext
24893  done
24894fi
24895LIBS=$ac_func_search_ext_save_LIBS
24896fi
24897{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_ext_crypt" >&5
24898$as_echo "$ac_cv_search_ext_crypt" >&6; }
24899if test "$ac_cv_search_ext_crypt" != no; then
24900  test "$ac_cv_search_ext_crypt" = "none required" || CRYPT_LIBS="$ac_cv_search_ext_crypt $CRYPT_LIBS"
24901
24902cat >>confdefs.h <<\_ACEOF
24903#define HAVE_CRYPT 1
24904_ACEOF
24905
24906else
24907   LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/crypt.o"
24908fi
24909
24910
24911
24912
24913
24914
24915for ac_func in printf memset memcpy
24916do
24917as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24918{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24919$as_echo_n "checking for $ac_func... " >&6; }
24920if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24921  $as_echo_n "(cached) " >&6
24922else
24923  cat >conftest.$ac_ext <<_ACEOF
24924/* confdefs.h.  */
24925_ACEOF
24926cat confdefs.h >>conftest.$ac_ext
24927cat >>conftest.$ac_ext <<_ACEOF
24928/* end confdefs.h.  */
24929/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24930   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24931#define $ac_func innocuous_$ac_func
24932
24933/* System header to define __stub macros and hopefully few prototypes,
24934    which can conflict with char $ac_func (); below.
24935    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24936    <limits.h> exists even on freestanding compilers.  */
24937
24938#ifdef __STDC__
24939# include <limits.h>
24940#else
24941# include <assert.h>
24942#endif
24943
24944#undef $ac_func
24945
24946/* Override any GCC internal prototype to avoid an error.
24947   Use char because int might match the return type of a GCC
24948   builtin and then its argument prototype would still apply.  */
24949#ifdef __cplusplus
24950extern "C"
24951#endif
24952char $ac_func ();
24953/* The GNU C library defines this for functions which it implements
24954    to always fail with ENOSYS.  Some functions are actually named
24955    something starting with __ and the normal name is an alias.  */
24956#if defined __stub_$ac_func || defined __stub___$ac_func
24957choke me
24958#endif
24959
24960int
24961main ()
24962{
24963return $ac_func ();
24964  ;
24965  return 0;
24966}
24967_ACEOF
24968rm -f conftest.$ac_objext conftest$ac_exeext
24969if { (ac_try="$ac_link"
24970case "(($ac_try" in
24971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972  *) ac_try_echo=$ac_try;;
24973esac
24974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24975$as_echo "$ac_try_echo") >&5
24976  (eval "$ac_link") 2>conftest.er1
24977  ac_status=$?
24978  grep -v '^ *+' conftest.er1 >conftest.err
24979  rm -f conftest.er1
24980  cat conftest.err >&5
24981  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982  (exit $ac_status); } && {
24983	 test -z "$ac_c_werror_flag" ||
24984	 test ! -s conftest.err
24985       } && test -s conftest$ac_exeext && {
24986	 test "$cross_compiling" = yes ||
24987	 $as_test_x conftest$ac_exeext
24988       }; then
24989  eval "$as_ac_var=yes"
24990else
24991  $as_echo "$as_me: failed program was:" >&5
24992sed 's/^/| /' conftest.$ac_ext >&5
24993
24994	eval "$as_ac_var=no"
24995fi
24996
24997rm -rf conftest.dSYM
24998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24999      conftest$ac_exeext conftest.$ac_ext
25000fi
25001ac_res=`eval 'as_val=${'$as_ac_var'}
25002		 $as_echo "$as_val"'`
25003	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25004$as_echo "$ac_res" >&6; }
25005as_val=`eval 'as_val=${'$as_ac_var'}
25006		 $as_echo "$as_val"'`
25007   if test "x$as_val" = x""yes; then
25008  cat >>confdefs.h <<_ACEOF
25009#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25010_ACEOF
25011
25012else
25013  { { $as_echo "$as_me:$LINENO: error: Required function not found" >&5
25014$as_echo "$as_me: error: Required function not found" >&2;}
25015   { (exit 1); exit 1; }; }
25016fi
25017done
25018
25019
25020echo "LIBREPLACE_BROKEN_CHECKS: END"
25021
25022
25023for ac_func in syslog
25024do
25025as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25026{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25027$as_echo_n "checking for $ac_func... " >&6; }
25028if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25029  $as_echo_n "(cached) " >&6
25030else
25031  cat >conftest.$ac_ext <<_ACEOF
25032/* confdefs.h.  */
25033_ACEOF
25034cat confdefs.h >>conftest.$ac_ext
25035cat >>conftest.$ac_ext <<_ACEOF
25036/* end confdefs.h.  */
25037/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25038   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25039#define $ac_func innocuous_$ac_func
25040
25041/* System header to define __stub macros and hopefully few prototypes,
25042    which can conflict with char $ac_func (); below.
25043    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25044    <limits.h> exists even on freestanding compilers.  */
25045
25046#ifdef __STDC__
25047# include <limits.h>
25048#else
25049# include <assert.h>
25050#endif
25051
25052#undef $ac_func
25053
25054/* Override any GCC internal prototype to avoid an error.
25055   Use char because int might match the return type of a GCC
25056   builtin and then its argument prototype would still apply.  */
25057#ifdef __cplusplus
25058extern "C"
25059#endif
25060char $ac_func ();
25061/* The GNU C library defines this for functions which it implements
25062    to always fail with ENOSYS.  Some functions are actually named
25063    something starting with __ and the normal name is an alias.  */
25064#if defined __stub_$ac_func || defined __stub___$ac_func
25065choke me
25066#endif
25067
25068int
25069main ()
25070{
25071return $ac_func ();
25072  ;
25073  return 0;
25074}
25075_ACEOF
25076rm -f conftest.$ac_objext conftest$ac_exeext
25077if { (ac_try="$ac_link"
25078case "(($ac_try" in
25079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25080  *) ac_try_echo=$ac_try;;
25081esac
25082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25083$as_echo "$ac_try_echo") >&5
25084  (eval "$ac_link") 2>conftest.er1
25085  ac_status=$?
25086  grep -v '^ *+' conftest.er1 >conftest.err
25087  rm -f conftest.er1
25088  cat conftest.err >&5
25089  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090  (exit $ac_status); } && {
25091	 test -z "$ac_c_werror_flag" ||
25092	 test ! -s conftest.err
25093       } && test -s conftest$ac_exeext && {
25094	 test "$cross_compiling" = yes ||
25095	 $as_test_x conftest$ac_exeext
25096       }; then
25097  eval "$as_ac_var=yes"
25098else
25099  $as_echo "$as_me: failed program was:" >&5
25100sed 's/^/| /' conftest.$ac_ext >&5
25101
25102	eval "$as_ac_var=no"
25103fi
25104
25105rm -rf conftest.dSYM
25106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25107      conftest$ac_exeext conftest.$ac_ext
25108fi
25109ac_res=`eval 'as_val=${'$as_ac_var'}
25110		 $as_echo "$as_val"'`
25111	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25112$as_echo "$ac_res" >&6; }
25113as_val=`eval 'as_val=${'$as_ac_var'}
25114		 $as_echo "$as_val"'`
25115   if test "x$as_val" = x""yes; then
25116  cat >>confdefs.h <<_ACEOF
25117#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25118_ACEOF
25119
25120else
25121  { { $as_echo "$as_me:$LINENO: error: Required function not found" >&5
25122$as_echo "$as_me: error: Required function not found" >&2;}
25123   { (exit 1); exit 1; }; }
25124fi
25125done
25126
25127
25128echo "LIBREPLACE_NETWORK_CHECKS: START"
25129
25130
25131cat >>confdefs.h <<\_ACEOF
25132#define LIBREPLACE_NETWORK_CHECKS 1
25133_ACEOF
25134
25135LIBREPLACE_NETWORK_OBJS=""
25136LIBREPLACE_NETWORK_LIBS=""
25137
25138
25139
25140
25141
25142for ac_header in sys/socket.h netinet/in.h netdb.h arpa/inet.h
25143do
25144as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25146  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25147$as_echo_n "checking for $ac_header... " >&6; }
25148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25149  $as_echo_n "(cached) " >&6
25150fi
25151ac_res=`eval 'as_val=${'$as_ac_Header'}
25152		 $as_echo "$as_val"'`
25153	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25154$as_echo "$ac_res" >&6; }
25155else
25156  # Is the header compilable?
25157{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25158$as_echo_n "checking $ac_header usability... " >&6; }
25159cat >conftest.$ac_ext <<_ACEOF
25160/* confdefs.h.  */
25161_ACEOF
25162cat confdefs.h >>conftest.$ac_ext
25163cat >>conftest.$ac_ext <<_ACEOF
25164/* end confdefs.h.  */
25165$ac_includes_default
25166#include <$ac_header>
25167_ACEOF
25168rm -f conftest.$ac_objext
25169if { (ac_try="$ac_compile"
25170case "(($ac_try" in
25171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25172  *) ac_try_echo=$ac_try;;
25173esac
25174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25175$as_echo "$ac_try_echo") >&5
25176  (eval "$ac_compile") 2>conftest.er1
25177  ac_status=$?
25178  grep -v '^ *+' conftest.er1 >conftest.err
25179  rm -f conftest.er1
25180  cat conftest.err >&5
25181  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182  (exit $ac_status); } && {
25183	 test -z "$ac_c_werror_flag" ||
25184	 test ! -s conftest.err
25185       } && test -s conftest.$ac_objext; then
25186  ac_header_compiler=yes
25187else
25188  $as_echo "$as_me: failed program was:" >&5
25189sed 's/^/| /' conftest.$ac_ext >&5
25190
25191	ac_header_compiler=no
25192fi
25193
25194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25195{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25196$as_echo "$ac_header_compiler" >&6; }
25197
25198# Is the header present?
25199{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25200$as_echo_n "checking $ac_header presence... " >&6; }
25201cat >conftest.$ac_ext <<_ACEOF
25202/* confdefs.h.  */
25203_ACEOF
25204cat confdefs.h >>conftest.$ac_ext
25205cat >>conftest.$ac_ext <<_ACEOF
25206/* end confdefs.h.  */
25207#include <$ac_header>
25208_ACEOF
25209if { (ac_try="$ac_cpp conftest.$ac_ext"
25210case "(($ac_try" in
25211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212  *) ac_try_echo=$ac_try;;
25213esac
25214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25215$as_echo "$ac_try_echo") >&5
25216  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25217  ac_status=$?
25218  grep -v '^ *+' conftest.er1 >conftest.err
25219  rm -f conftest.er1
25220  cat conftest.err >&5
25221  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222  (exit $ac_status); } >/dev/null && {
25223	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25224	 test ! -s conftest.err
25225       }; then
25226  ac_header_preproc=yes
25227else
25228  $as_echo "$as_me: failed program was:" >&5
25229sed 's/^/| /' conftest.$ac_ext >&5
25230
25231  ac_header_preproc=no
25232fi
25233
25234rm -f conftest.err conftest.$ac_ext
25235{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25236$as_echo "$ac_header_preproc" >&6; }
25237
25238# So?  What about this header?
25239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25240  yes:no: )
25241    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25242$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25243    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25244$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25245    ac_header_preproc=yes
25246    ;;
25247  no:yes:* )
25248    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25249$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25250    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25251$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25252    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25253$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25254    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25255$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25256    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25257$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25258    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25259$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25260    ( cat <<\_ASBOX
25261## ---------------------------------------- ##
25262## Report this to samba-technical@samba.org ##
25263## ---------------------------------------- ##
25264_ASBOX
25265     ) | sed "s/^/$as_me: WARNING:     /" >&2
25266    ;;
25267esac
25268{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25269$as_echo_n "checking for $ac_header... " >&6; }
25270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25271  $as_echo_n "(cached) " >&6
25272else
25273  eval "$as_ac_Header=\$ac_header_preproc"
25274fi
25275ac_res=`eval 'as_val=${'$as_ac_Header'}
25276		 $as_echo "$as_val"'`
25277	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25278$as_echo "$ac_res" >&6; }
25279
25280fi
25281as_val=`eval 'as_val=${'$as_ac_Header'}
25282		 $as_echo "$as_val"'`
25283   if test "x$as_val" = x""yes; then
25284  cat >>confdefs.h <<_ACEOF
25285#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25286_ACEOF
25287
25288fi
25289
25290done
25291
25292
25293for ac_header in netinet/in_systm.h
25294do
25295as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25297  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25298$as_echo_n "checking for $ac_header... " >&6; }
25299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25300  $as_echo_n "(cached) " >&6
25301fi
25302ac_res=`eval 'as_val=${'$as_ac_Header'}
25303		 $as_echo "$as_val"'`
25304	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25305$as_echo "$ac_res" >&6; }
25306else
25307  # Is the header compilable?
25308{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25309$as_echo_n "checking $ac_header usability... " >&6; }
25310cat >conftest.$ac_ext <<_ACEOF
25311/* confdefs.h.  */
25312_ACEOF
25313cat confdefs.h >>conftest.$ac_ext
25314cat >>conftest.$ac_ext <<_ACEOF
25315/* end confdefs.h.  */
25316$ac_includes_default
25317#include <$ac_header>
25318_ACEOF
25319rm -f conftest.$ac_objext
25320if { (ac_try="$ac_compile"
25321case "(($ac_try" in
25322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323  *) ac_try_echo=$ac_try;;
25324esac
25325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25326$as_echo "$ac_try_echo") >&5
25327  (eval "$ac_compile") 2>conftest.er1
25328  ac_status=$?
25329  grep -v '^ *+' conftest.er1 >conftest.err
25330  rm -f conftest.er1
25331  cat conftest.err >&5
25332  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333  (exit $ac_status); } && {
25334	 test -z "$ac_c_werror_flag" ||
25335	 test ! -s conftest.err
25336       } && test -s conftest.$ac_objext; then
25337  ac_header_compiler=yes
25338else
25339  $as_echo "$as_me: failed program was:" >&5
25340sed 's/^/| /' conftest.$ac_ext >&5
25341
25342	ac_header_compiler=no
25343fi
25344
25345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25346{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25347$as_echo "$ac_header_compiler" >&6; }
25348
25349# Is the header present?
25350{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25351$as_echo_n "checking $ac_header presence... " >&6; }
25352cat >conftest.$ac_ext <<_ACEOF
25353/* confdefs.h.  */
25354_ACEOF
25355cat confdefs.h >>conftest.$ac_ext
25356cat >>conftest.$ac_ext <<_ACEOF
25357/* end confdefs.h.  */
25358#include <$ac_header>
25359_ACEOF
25360if { (ac_try="$ac_cpp conftest.$ac_ext"
25361case "(($ac_try" in
25362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25363  *) ac_try_echo=$ac_try;;
25364esac
25365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25366$as_echo "$ac_try_echo") >&5
25367  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25368  ac_status=$?
25369  grep -v '^ *+' conftest.er1 >conftest.err
25370  rm -f conftest.er1
25371  cat conftest.err >&5
25372  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373  (exit $ac_status); } >/dev/null && {
25374	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25375	 test ! -s conftest.err
25376       }; then
25377  ac_header_preproc=yes
25378else
25379  $as_echo "$as_me: failed program was:" >&5
25380sed 's/^/| /' conftest.$ac_ext >&5
25381
25382  ac_header_preproc=no
25383fi
25384
25385rm -f conftest.err conftest.$ac_ext
25386{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25387$as_echo "$ac_header_preproc" >&6; }
25388
25389# So?  What about this header?
25390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25391  yes:no: )
25392    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25393$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25394    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25395$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25396    ac_header_preproc=yes
25397    ;;
25398  no:yes:* )
25399    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25400$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25401    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25402$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25403    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25404$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25405    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25406$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25407    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25408$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25409    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25410$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25411    ( cat <<\_ASBOX
25412## ---------------------------------------- ##
25413## Report this to samba-technical@samba.org ##
25414## ---------------------------------------- ##
25415_ASBOX
25416     ) | sed "s/^/$as_me: WARNING:     /" >&2
25417    ;;
25418esac
25419{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25420$as_echo_n "checking for $ac_header... " >&6; }
25421if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25422  $as_echo_n "(cached) " >&6
25423else
25424  eval "$as_ac_Header=\$ac_header_preproc"
25425fi
25426ac_res=`eval 'as_val=${'$as_ac_Header'}
25427		 $as_echo "$as_val"'`
25428	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25429$as_echo "$ac_res" >&6; }
25430
25431fi
25432as_val=`eval 'as_val=${'$as_ac_Header'}
25433		 $as_echo "$as_val"'`
25434   if test "x$as_val" = x""yes; then
25435  cat >>confdefs.h <<_ACEOF
25436#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25437_ACEOF
25438
25439fi
25440
25441done
25442
25443
25444for ac_header in netinet/ip.h
25445do
25446as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25447{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25448$as_echo_n "checking for $ac_header... " >&6; }
25449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25450  $as_echo_n "(cached) " >&6
25451else
25452  cat >conftest.$ac_ext <<_ACEOF
25453/* confdefs.h.  */
25454_ACEOF
25455cat confdefs.h >>conftest.$ac_ext
25456cat >>conftest.$ac_ext <<_ACEOF
25457/* end confdefs.h.  */
25458
25459	#include <sys/types.h>
25460	#ifdef HAVE_NETINET_IN_H
25461	#include <netinet/in.h>
25462	#endif
25463	#ifdef HAVE_NETINET_IN_SYSTM_H
25464	#include <netinet/in_systm.h>
25465	#endif
25466
25467
25468#include <$ac_header>
25469_ACEOF
25470rm -f conftest.$ac_objext
25471if { (ac_try="$ac_compile"
25472case "(($ac_try" in
25473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25474  *) ac_try_echo=$ac_try;;
25475esac
25476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25477$as_echo "$ac_try_echo") >&5
25478  (eval "$ac_compile") 2>conftest.er1
25479  ac_status=$?
25480  grep -v '^ *+' conftest.er1 >conftest.err
25481  rm -f conftest.er1
25482  cat conftest.err >&5
25483  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484  (exit $ac_status); } && {
25485	 test -z "$ac_c_werror_flag" ||
25486	 test ! -s conftest.err
25487       } && test -s conftest.$ac_objext; then
25488  eval "$as_ac_Header=yes"
25489else
25490  $as_echo "$as_me: failed program was:" >&5
25491sed 's/^/| /' conftest.$ac_ext >&5
25492
25493	eval "$as_ac_Header=no"
25494fi
25495
25496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25497fi
25498ac_res=`eval 'as_val=${'$as_ac_Header'}
25499		 $as_echo "$as_val"'`
25500	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25501$as_echo "$ac_res" >&6; }
25502as_val=`eval 'as_val=${'$as_ac_Header'}
25503		 $as_echo "$as_val"'`
25504   if test "x$as_val" = x""yes; then
25505  cat >>confdefs.h <<_ACEOF
25506#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25507_ACEOF
25508
25509fi
25510
25511done
25512
25513
25514
25515for ac_header in netinet/tcp.h netinet/in_ip.h
25516do
25517as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25519  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25520$as_echo_n "checking for $ac_header... " >&6; }
25521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25522  $as_echo_n "(cached) " >&6
25523fi
25524ac_res=`eval 'as_val=${'$as_ac_Header'}
25525		 $as_echo "$as_val"'`
25526	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25527$as_echo "$ac_res" >&6; }
25528else
25529  # Is the header compilable?
25530{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25531$as_echo_n "checking $ac_header usability... " >&6; }
25532cat >conftest.$ac_ext <<_ACEOF
25533/* confdefs.h.  */
25534_ACEOF
25535cat confdefs.h >>conftest.$ac_ext
25536cat >>conftest.$ac_ext <<_ACEOF
25537/* end confdefs.h.  */
25538$ac_includes_default
25539#include <$ac_header>
25540_ACEOF
25541rm -f conftest.$ac_objext
25542if { (ac_try="$ac_compile"
25543case "(($ac_try" in
25544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545  *) ac_try_echo=$ac_try;;
25546esac
25547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25548$as_echo "$ac_try_echo") >&5
25549  (eval "$ac_compile") 2>conftest.er1
25550  ac_status=$?
25551  grep -v '^ *+' conftest.er1 >conftest.err
25552  rm -f conftest.er1
25553  cat conftest.err >&5
25554  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555  (exit $ac_status); } && {
25556	 test -z "$ac_c_werror_flag" ||
25557	 test ! -s conftest.err
25558       } && test -s conftest.$ac_objext; then
25559  ac_header_compiler=yes
25560else
25561  $as_echo "$as_me: failed program was:" >&5
25562sed 's/^/| /' conftest.$ac_ext >&5
25563
25564	ac_header_compiler=no
25565fi
25566
25567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25568{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25569$as_echo "$ac_header_compiler" >&6; }
25570
25571# Is the header present?
25572{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25573$as_echo_n "checking $ac_header presence... " >&6; }
25574cat >conftest.$ac_ext <<_ACEOF
25575/* confdefs.h.  */
25576_ACEOF
25577cat confdefs.h >>conftest.$ac_ext
25578cat >>conftest.$ac_ext <<_ACEOF
25579/* end confdefs.h.  */
25580#include <$ac_header>
25581_ACEOF
25582if { (ac_try="$ac_cpp conftest.$ac_ext"
25583case "(($ac_try" in
25584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25585  *) ac_try_echo=$ac_try;;
25586esac
25587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25588$as_echo "$ac_try_echo") >&5
25589  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25590  ac_status=$?
25591  grep -v '^ *+' conftest.er1 >conftest.err
25592  rm -f conftest.er1
25593  cat conftest.err >&5
25594  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595  (exit $ac_status); } >/dev/null && {
25596	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25597	 test ! -s conftest.err
25598       }; then
25599  ac_header_preproc=yes
25600else
25601  $as_echo "$as_me: failed program was:" >&5
25602sed 's/^/| /' conftest.$ac_ext >&5
25603
25604  ac_header_preproc=no
25605fi
25606
25607rm -f conftest.err conftest.$ac_ext
25608{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25609$as_echo "$ac_header_preproc" >&6; }
25610
25611# So?  What about this header?
25612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25613  yes:no: )
25614    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25615$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25616    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25617$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25618    ac_header_preproc=yes
25619    ;;
25620  no:yes:* )
25621    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25622$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25623    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25624$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25625    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25626$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25627    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25628$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25629    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25630$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25631    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25632$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25633    ( cat <<\_ASBOX
25634## ---------------------------------------- ##
25635## Report this to samba-technical@samba.org ##
25636## ---------------------------------------- ##
25637_ASBOX
25638     ) | sed "s/^/$as_me: WARNING:     /" >&2
25639    ;;
25640esac
25641{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25642$as_echo_n "checking for $ac_header... " >&6; }
25643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25644  $as_echo_n "(cached) " >&6
25645else
25646  eval "$as_ac_Header=\$ac_header_preproc"
25647fi
25648ac_res=`eval 'as_val=${'$as_ac_Header'}
25649		 $as_echo "$as_val"'`
25650	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25651$as_echo "$ac_res" >&6; }
25652
25653fi
25654as_val=`eval 'as_val=${'$as_ac_Header'}
25655		 $as_echo "$as_val"'`
25656   if test "x$as_val" = x""yes; then
25657  cat >>confdefs.h <<_ACEOF
25658#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25659_ACEOF
25660
25661fi
25662
25663done
25664
25665
25666
25667for ac_header in sys/sockio.h sys/un.h
25668do
25669as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25671  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25672$as_echo_n "checking for $ac_header... " >&6; }
25673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25674  $as_echo_n "(cached) " >&6
25675fi
25676ac_res=`eval 'as_val=${'$as_ac_Header'}
25677		 $as_echo "$as_val"'`
25678	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25679$as_echo "$ac_res" >&6; }
25680else
25681  # Is the header compilable?
25682{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25683$as_echo_n "checking $ac_header usability... " >&6; }
25684cat >conftest.$ac_ext <<_ACEOF
25685/* confdefs.h.  */
25686_ACEOF
25687cat confdefs.h >>conftest.$ac_ext
25688cat >>conftest.$ac_ext <<_ACEOF
25689/* end confdefs.h.  */
25690$ac_includes_default
25691#include <$ac_header>
25692_ACEOF
25693rm -f conftest.$ac_objext
25694if { (ac_try="$ac_compile"
25695case "(($ac_try" in
25696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697  *) ac_try_echo=$ac_try;;
25698esac
25699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25700$as_echo "$ac_try_echo") >&5
25701  (eval "$ac_compile") 2>conftest.er1
25702  ac_status=$?
25703  grep -v '^ *+' conftest.er1 >conftest.err
25704  rm -f conftest.er1
25705  cat conftest.err >&5
25706  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707  (exit $ac_status); } && {
25708	 test -z "$ac_c_werror_flag" ||
25709	 test ! -s conftest.err
25710       } && test -s conftest.$ac_objext; then
25711  ac_header_compiler=yes
25712else
25713  $as_echo "$as_me: failed program was:" >&5
25714sed 's/^/| /' conftest.$ac_ext >&5
25715
25716	ac_header_compiler=no
25717fi
25718
25719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25720{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25721$as_echo "$ac_header_compiler" >&6; }
25722
25723# Is the header present?
25724{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25725$as_echo_n "checking $ac_header presence... " >&6; }
25726cat >conftest.$ac_ext <<_ACEOF
25727/* confdefs.h.  */
25728_ACEOF
25729cat confdefs.h >>conftest.$ac_ext
25730cat >>conftest.$ac_ext <<_ACEOF
25731/* end confdefs.h.  */
25732#include <$ac_header>
25733_ACEOF
25734if { (ac_try="$ac_cpp conftest.$ac_ext"
25735case "(($ac_try" in
25736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25737  *) ac_try_echo=$ac_try;;
25738esac
25739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25740$as_echo "$ac_try_echo") >&5
25741  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25742  ac_status=$?
25743  grep -v '^ *+' conftest.er1 >conftest.err
25744  rm -f conftest.er1
25745  cat conftest.err >&5
25746  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747  (exit $ac_status); } >/dev/null && {
25748	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25749	 test ! -s conftest.err
25750       }; then
25751  ac_header_preproc=yes
25752else
25753  $as_echo "$as_me: failed program was:" >&5
25754sed 's/^/| /' conftest.$ac_ext >&5
25755
25756  ac_header_preproc=no
25757fi
25758
25759rm -f conftest.err conftest.$ac_ext
25760{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25761$as_echo "$ac_header_preproc" >&6; }
25762
25763# So?  What about this header?
25764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25765  yes:no: )
25766    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25767$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25768    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25769$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25770    ac_header_preproc=yes
25771    ;;
25772  no:yes:* )
25773    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25774$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25775    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25776$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25777    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25778$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25779    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25780$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25781    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25782$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25783    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25784$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25785    ( cat <<\_ASBOX
25786## ---------------------------------------- ##
25787## Report this to samba-technical@samba.org ##
25788## ---------------------------------------- ##
25789_ASBOX
25790     ) | sed "s/^/$as_me: WARNING:     /" >&2
25791    ;;
25792esac
25793{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25794$as_echo_n "checking for $ac_header... " >&6; }
25795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25796  $as_echo_n "(cached) " >&6
25797else
25798  eval "$as_ac_Header=\$ac_header_preproc"
25799fi
25800ac_res=`eval 'as_val=${'$as_ac_Header'}
25801		 $as_echo "$as_val"'`
25802	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25803$as_echo "$ac_res" >&6; }
25804
25805fi
25806as_val=`eval 'as_val=${'$as_ac_Header'}
25807		 $as_echo "$as_val"'`
25808   if test "x$as_val" = x""yes; then
25809  cat >>confdefs.h <<_ACEOF
25810#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25811_ACEOF
25812
25813fi
25814
25815done
25816
25817
25818for ac_header in sys/uio.h
25819do
25820as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25822  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25823$as_echo_n "checking for $ac_header... " >&6; }
25824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25825  $as_echo_n "(cached) " >&6
25826fi
25827ac_res=`eval 'as_val=${'$as_ac_Header'}
25828		 $as_echo "$as_val"'`
25829	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25830$as_echo "$ac_res" >&6; }
25831else
25832  # Is the header compilable?
25833{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25834$as_echo_n "checking $ac_header usability... " >&6; }
25835cat >conftest.$ac_ext <<_ACEOF
25836/* confdefs.h.  */
25837_ACEOF
25838cat confdefs.h >>conftest.$ac_ext
25839cat >>conftest.$ac_ext <<_ACEOF
25840/* end confdefs.h.  */
25841$ac_includes_default
25842#include <$ac_header>
25843_ACEOF
25844rm -f conftest.$ac_objext
25845if { (ac_try="$ac_compile"
25846case "(($ac_try" in
25847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25848  *) ac_try_echo=$ac_try;;
25849esac
25850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25851$as_echo "$ac_try_echo") >&5
25852  (eval "$ac_compile") 2>conftest.er1
25853  ac_status=$?
25854  grep -v '^ *+' conftest.er1 >conftest.err
25855  rm -f conftest.er1
25856  cat conftest.err >&5
25857  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858  (exit $ac_status); } && {
25859	 test -z "$ac_c_werror_flag" ||
25860	 test ! -s conftest.err
25861       } && test -s conftest.$ac_objext; then
25862  ac_header_compiler=yes
25863else
25864  $as_echo "$as_me: failed program was:" >&5
25865sed 's/^/| /' conftest.$ac_ext >&5
25866
25867	ac_header_compiler=no
25868fi
25869
25870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25871{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25872$as_echo "$ac_header_compiler" >&6; }
25873
25874# Is the header present?
25875{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25876$as_echo_n "checking $ac_header presence... " >&6; }
25877cat >conftest.$ac_ext <<_ACEOF
25878/* confdefs.h.  */
25879_ACEOF
25880cat confdefs.h >>conftest.$ac_ext
25881cat >>conftest.$ac_ext <<_ACEOF
25882/* end confdefs.h.  */
25883#include <$ac_header>
25884_ACEOF
25885if { (ac_try="$ac_cpp conftest.$ac_ext"
25886case "(($ac_try" in
25887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25888  *) ac_try_echo=$ac_try;;
25889esac
25890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25891$as_echo "$ac_try_echo") >&5
25892  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25893  ac_status=$?
25894  grep -v '^ *+' conftest.er1 >conftest.err
25895  rm -f conftest.er1
25896  cat conftest.err >&5
25897  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898  (exit $ac_status); } >/dev/null && {
25899	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25900	 test ! -s conftest.err
25901       }; then
25902  ac_header_preproc=yes
25903else
25904  $as_echo "$as_me: failed program was:" >&5
25905sed 's/^/| /' conftest.$ac_ext >&5
25906
25907  ac_header_preproc=no
25908fi
25909
25910rm -f conftest.err conftest.$ac_ext
25911{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25912$as_echo "$ac_header_preproc" >&6; }
25913
25914# So?  What about this header?
25915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25916  yes:no: )
25917    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25918$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25919    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25920$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25921    ac_header_preproc=yes
25922    ;;
25923  no:yes:* )
25924    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25925$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25926    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25927$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25928    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25929$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25930    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25931$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25932    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25933$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25934    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25935$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25936    ( cat <<\_ASBOX
25937## ---------------------------------------- ##
25938## Report this to samba-technical@samba.org ##
25939## ---------------------------------------- ##
25940_ASBOX
25941     ) | sed "s/^/$as_me: WARNING:     /" >&2
25942    ;;
25943esac
25944{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25945$as_echo_n "checking for $ac_header... " >&6; }
25946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25947  $as_echo_n "(cached) " >&6
25948else
25949  eval "$as_ac_Header=\$ac_header_preproc"
25950fi
25951ac_res=`eval 'as_val=${'$as_ac_Header'}
25952		 $as_echo "$as_val"'`
25953	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25954$as_echo "$ac_res" >&6; }
25955
25956fi
25957as_val=`eval 'as_val=${'$as_ac_Header'}
25958		 $as_echo "$as_val"'`
25959   if test "x$as_val" = x""yes; then
25960  cat >>confdefs.h <<_ACEOF
25961#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25962_ACEOF
25963
25964fi
25965
25966done
25967
25968
25969{ $as_echo "$as_me:$LINENO: checking for usable net/if.h" >&5
25970$as_echo_n "checking for usable net/if.h... " >&6; }
25971if test "${libreplace_cv_USABLE_NET_IF_H+set}" = set; then
25972  $as_echo_n "(cached) " >&6
25973else
25974
25975	cat >conftest.$ac_ext <<_ACEOF
25976/* confdefs.h.  */
25977_ACEOF
25978cat confdefs.h >>conftest.$ac_ext
25979cat >>conftest.$ac_ext <<_ACEOF
25980/* end confdefs.h.  */
25981
25982		$ac_includes_default
25983		#if HAVE_SYS_SOCKET_H
25984		# include <sys/socket.h>
25985		#endif
25986		#include <net/if.h>
25987		int main(void) {return 0;}
25988_ACEOF
25989rm -f conftest.$ac_objext
25990if { (ac_try="$ac_compile"
25991case "(($ac_try" in
25992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25993  *) ac_try_echo=$ac_try;;
25994esac
25995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25996$as_echo "$ac_try_echo") >&5
25997  (eval "$ac_compile") 2>conftest.er1
25998  ac_status=$?
25999  grep -v '^ *+' conftest.er1 >conftest.err
26000  rm -f conftest.er1
26001  cat conftest.err >&5
26002  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003  (exit $ac_status); } && {
26004	 test -z "$ac_c_werror_flag" ||
26005	 test ! -s conftest.err
26006       } && test -s conftest.$ac_objext; then
26007  libreplace_cv_USABLE_NET_IF_H=yes
26008else
26009  $as_echo "$as_me: failed program was:" >&5
26010sed 's/^/| /' conftest.$ac_ext >&5
26011
26012	libreplace_cv_USABLE_NET_IF_H=no
26013
26014fi
26015
26016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26017
26018fi
26019{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_USABLE_NET_IF_H" >&5
26020$as_echo "$libreplace_cv_USABLE_NET_IF_H" >&6; }
26021if test x"$libreplace_cv_USABLE_NET_IF_H" = x"yes";then
26022
26023cat >>confdefs.h <<\_ACEOF
26024#define HAVE_NET_IF_H 1
26025_ACEOF
26026
26027fi
26028
26029
26030
26031cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
26032{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
26033$as_echo_n "checking for socklen_t... " >&6; }
26034if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
26035  $as_echo_n "(cached) " >&6
26036else
26037  cat >conftest.$ac_ext <<_ACEOF
26038/* confdefs.h.  */
26039_ACEOF
26040cat confdefs.h >>conftest.$ac_ext
26041cat >>conftest.$ac_ext <<_ACEOF
26042/* end confdefs.h.  */
26043
26044$ac_includes_default
26045#include <sys/socket.h>
26046int
26047main ()
26048{
26049socklen_t foo;
26050  ;
26051  return 0;
26052}
26053_ACEOF
26054rm -f conftest.$ac_objext
26055if { (ac_try="$ac_compile"
26056case "(($ac_try" in
26057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26058  *) ac_try_echo=$ac_try;;
26059esac
26060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26061$as_echo "$ac_try_echo") >&5
26062  (eval "$ac_compile") 2>conftest.er1
26063  ac_status=$?
26064  grep -v '^ *+' conftest.er1 >conftest.err
26065  rm -f conftest.er1
26066  cat conftest.err >&5
26067  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068  (exit $ac_status); } && {
26069	 test -z "$ac_c_werror_flag" ||
26070	 test ! -s conftest.err
26071       } && test -s conftest.$ac_objext; then
26072  eval "ac_cv_type_$cv=yes"
26073else
26074  $as_echo "$as_me: failed program was:" >&5
26075sed 's/^/| /' conftest.$ac_ext >&5
26076
26077	eval "ac_cv_type_$cv=no"
26078fi
26079
26080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26081fi
26082ac_foo=`eval echo \\$ac_cv_type_$cv`
26083{ $as_echo "$as_me:$LINENO: result: $ac_foo" >&5
26084$as_echo "$ac_foo" >&6; }
26085if test "$ac_foo" = yes; then
26086  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26087if false; then
26088	{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
26089$as_echo_n "checking for socklen_t... " >&6; }
26090if test "${ac_cv_type_socklen_t+set}" = set; then
26091  $as_echo_n "(cached) " >&6
26092else
26093  ac_cv_type_socklen_t=no
26094cat >conftest.$ac_ext <<_ACEOF
26095/* confdefs.h.  */
26096_ACEOF
26097cat confdefs.h >>conftest.$ac_ext
26098cat >>conftest.$ac_ext <<_ACEOF
26099/* end confdefs.h.  */
26100$ac_includes_default
26101int
26102main ()
26103{
26104if (sizeof (socklen_t))
26105       return 0;
26106  ;
26107  return 0;
26108}
26109_ACEOF
26110rm -f conftest.$ac_objext
26111if { (ac_try="$ac_compile"
26112case "(($ac_try" in
26113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26114  *) ac_try_echo=$ac_try;;
26115esac
26116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26117$as_echo "$ac_try_echo") >&5
26118  (eval "$ac_compile") 2>conftest.er1
26119  ac_status=$?
26120  grep -v '^ *+' conftest.er1 >conftest.err
26121  rm -f conftest.er1
26122  cat conftest.err >&5
26123  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124  (exit $ac_status); } && {
26125	 test -z "$ac_c_werror_flag" ||
26126	 test ! -s conftest.err
26127       } && test -s conftest.$ac_objext; then
26128  cat >conftest.$ac_ext <<_ACEOF
26129/* confdefs.h.  */
26130_ACEOF
26131cat confdefs.h >>conftest.$ac_ext
26132cat >>conftest.$ac_ext <<_ACEOF
26133/* end confdefs.h.  */
26134$ac_includes_default
26135int
26136main ()
26137{
26138if (sizeof ((socklen_t)))
26139	  return 0;
26140  ;
26141  return 0;
26142}
26143_ACEOF
26144rm -f conftest.$ac_objext
26145if { (ac_try="$ac_compile"
26146case "(($ac_try" in
26147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26148  *) ac_try_echo=$ac_try;;
26149esac
26150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26151$as_echo "$ac_try_echo") >&5
26152  (eval "$ac_compile") 2>conftest.er1
26153  ac_status=$?
26154  grep -v '^ *+' conftest.er1 >conftest.err
26155  rm -f conftest.er1
26156  cat conftest.err >&5
26157  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158  (exit $ac_status); } && {
26159	 test -z "$ac_c_werror_flag" ||
26160	 test ! -s conftest.err
26161       } && test -s conftest.$ac_objext; then
26162  :
26163else
26164  $as_echo "$as_me: failed program was:" >&5
26165sed 's/^/| /' conftest.$ac_ext >&5
26166
26167	ac_cv_type_socklen_t=yes
26168fi
26169
26170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26171else
26172  $as_echo "$as_me: failed program was:" >&5
26173sed 's/^/| /' conftest.$ac_ext >&5
26174
26175
26176fi
26177
26178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26179fi
26180{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
26181$as_echo "$ac_cv_type_socklen_t" >&6; }
26182if test "x$ac_cv_type_socklen_t" = x""yes; then
26183
26184cat >>confdefs.h <<_ACEOF
26185#define HAVE_SOCKLEN_T 1
26186_ACEOF
26187
26188
26189fi
26190
26191fi
26192
26193cat >>confdefs.h <<_ACEOF
26194#define $ac_tr_hdr 1
26195_ACEOF
26196
26197fi
26198
26199
26200
26201cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
26202{ $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
26203$as_echo_n "checking for sa_family_t... " >&6; }
26204if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
26205  $as_echo_n "(cached) " >&6
26206else
26207  cat >conftest.$ac_ext <<_ACEOF
26208/* confdefs.h.  */
26209_ACEOF
26210cat confdefs.h >>conftest.$ac_ext
26211cat >>conftest.$ac_ext <<_ACEOF
26212/* end confdefs.h.  */
26213
26214$ac_includes_default
26215#include <sys/socket.h>
26216int
26217main ()
26218{
26219sa_family_t foo;
26220  ;
26221  return 0;
26222}
26223_ACEOF
26224rm -f conftest.$ac_objext
26225if { (ac_try="$ac_compile"
26226case "(($ac_try" in
26227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26228  *) ac_try_echo=$ac_try;;
26229esac
26230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26231$as_echo "$ac_try_echo") >&5
26232  (eval "$ac_compile") 2>conftest.er1
26233  ac_status=$?
26234  grep -v '^ *+' conftest.er1 >conftest.err
26235  rm -f conftest.er1
26236  cat conftest.err >&5
26237  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238  (exit $ac_status); } && {
26239	 test -z "$ac_c_werror_flag" ||
26240	 test ! -s conftest.err
26241       } && test -s conftest.$ac_objext; then
26242  eval "ac_cv_type_$cv=yes"
26243else
26244  $as_echo "$as_me: failed program was:" >&5
26245sed 's/^/| /' conftest.$ac_ext >&5
26246
26247	eval "ac_cv_type_$cv=no"
26248fi
26249
26250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26251fi
26252ac_foo=`eval echo \\$ac_cv_type_$cv`
26253{ $as_echo "$as_me:$LINENO: result: $ac_foo" >&5
26254$as_echo "$ac_foo" >&6; }
26255if test "$ac_foo" = yes; then
26256  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26257if false; then
26258	{ $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
26259$as_echo_n "checking for sa_family_t... " >&6; }
26260if test "${ac_cv_type_sa_family_t+set}" = set; then
26261  $as_echo_n "(cached) " >&6
26262else
26263  ac_cv_type_sa_family_t=no
26264cat >conftest.$ac_ext <<_ACEOF
26265/* confdefs.h.  */
26266_ACEOF
26267cat confdefs.h >>conftest.$ac_ext
26268cat >>conftest.$ac_ext <<_ACEOF
26269/* end confdefs.h.  */
26270$ac_includes_default
26271int
26272main ()
26273{
26274if (sizeof (sa_family_t))
26275       return 0;
26276  ;
26277  return 0;
26278}
26279_ACEOF
26280rm -f conftest.$ac_objext
26281if { (ac_try="$ac_compile"
26282case "(($ac_try" in
26283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26284  *) ac_try_echo=$ac_try;;
26285esac
26286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26287$as_echo "$ac_try_echo") >&5
26288  (eval "$ac_compile") 2>conftest.er1
26289  ac_status=$?
26290  grep -v '^ *+' conftest.er1 >conftest.err
26291  rm -f conftest.er1
26292  cat conftest.err >&5
26293  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294  (exit $ac_status); } && {
26295	 test -z "$ac_c_werror_flag" ||
26296	 test ! -s conftest.err
26297       } && test -s conftest.$ac_objext; then
26298  cat >conftest.$ac_ext <<_ACEOF
26299/* confdefs.h.  */
26300_ACEOF
26301cat confdefs.h >>conftest.$ac_ext
26302cat >>conftest.$ac_ext <<_ACEOF
26303/* end confdefs.h.  */
26304$ac_includes_default
26305int
26306main ()
26307{
26308if (sizeof ((sa_family_t)))
26309	  return 0;
26310  ;
26311  return 0;
26312}
26313_ACEOF
26314rm -f conftest.$ac_objext
26315if { (ac_try="$ac_compile"
26316case "(($ac_try" in
26317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26318  *) ac_try_echo=$ac_try;;
26319esac
26320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26321$as_echo "$ac_try_echo") >&5
26322  (eval "$ac_compile") 2>conftest.er1
26323  ac_status=$?
26324  grep -v '^ *+' conftest.er1 >conftest.err
26325  rm -f conftest.er1
26326  cat conftest.err >&5
26327  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328  (exit $ac_status); } && {
26329	 test -z "$ac_c_werror_flag" ||
26330	 test ! -s conftest.err
26331       } && test -s conftest.$ac_objext; then
26332  :
26333else
26334  $as_echo "$as_me: failed program was:" >&5
26335sed 's/^/| /' conftest.$ac_ext >&5
26336
26337	ac_cv_type_sa_family_t=yes
26338fi
26339
26340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26341else
26342  $as_echo "$as_me: failed program was:" >&5
26343sed 's/^/| /' conftest.$ac_ext >&5
26344
26345
26346fi
26347
26348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26349fi
26350{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
26351$as_echo "$ac_cv_type_sa_family_t" >&6; }
26352if test "x$ac_cv_type_sa_family_t" = x""yes; then
26353
26354cat >>confdefs.h <<_ACEOF
26355#define HAVE_SA_FAMILY_T 1
26356_ACEOF
26357
26358
26359fi
26360
26361fi
26362
26363cat >>confdefs.h <<_ACEOF
26364#define $ac_tr_hdr 1
26365_ACEOF
26366
26367fi
26368
26369
26370
26371cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
26372{ $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
26373$as_echo_n "checking for struct addrinfo... " >&6; }
26374if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
26375  $as_echo_n "(cached) " >&6
26376else
26377  cat >conftest.$ac_ext <<_ACEOF
26378/* confdefs.h.  */
26379_ACEOF
26380cat confdefs.h >>conftest.$ac_ext
26381cat >>conftest.$ac_ext <<_ACEOF
26382/* end confdefs.h.  */
26383
26384$ac_includes_default
26385#include <netdb.h>
26386int
26387main ()
26388{
26389struct addrinfo foo;
26390  ;
26391  return 0;
26392}
26393_ACEOF
26394rm -f conftest.$ac_objext
26395if { (ac_try="$ac_compile"
26396case "(($ac_try" in
26397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398  *) ac_try_echo=$ac_try;;
26399esac
26400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26401$as_echo "$ac_try_echo") >&5
26402  (eval "$ac_compile") 2>conftest.er1
26403  ac_status=$?
26404  grep -v '^ *+' conftest.er1 >conftest.err
26405  rm -f conftest.er1
26406  cat conftest.err >&5
26407  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408  (exit $ac_status); } && {
26409	 test -z "$ac_c_werror_flag" ||
26410	 test ! -s conftest.err
26411       } && test -s conftest.$ac_objext; then
26412  eval "ac_cv_type_$cv=yes"
26413else
26414  $as_echo "$as_me: failed program was:" >&5
26415sed 's/^/| /' conftest.$ac_ext >&5
26416
26417	eval "ac_cv_type_$cv=no"
26418fi
26419
26420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26421fi
26422ac_foo=`eval echo \\$ac_cv_type_$cv`
26423{ $as_echo "$as_me:$LINENO: result: $ac_foo" >&5
26424$as_echo "$ac_foo" >&6; }
26425if test "$ac_foo" = yes; then
26426  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26427if false; then
26428	{ $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
26429$as_echo_n "checking for struct addrinfo... " >&6; }
26430if test "${ac_cv_type_struct_addrinfo+set}" = set; then
26431  $as_echo_n "(cached) " >&6
26432else
26433  ac_cv_type_struct_addrinfo=no
26434cat >conftest.$ac_ext <<_ACEOF
26435/* confdefs.h.  */
26436_ACEOF
26437cat confdefs.h >>conftest.$ac_ext
26438cat >>conftest.$ac_ext <<_ACEOF
26439/* end confdefs.h.  */
26440$ac_includes_default
26441int
26442main ()
26443{
26444if (sizeof (struct addrinfo))
26445       return 0;
26446  ;
26447  return 0;
26448}
26449_ACEOF
26450rm -f conftest.$ac_objext
26451if { (ac_try="$ac_compile"
26452case "(($ac_try" in
26453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26454  *) ac_try_echo=$ac_try;;
26455esac
26456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26457$as_echo "$ac_try_echo") >&5
26458  (eval "$ac_compile") 2>conftest.er1
26459  ac_status=$?
26460  grep -v '^ *+' conftest.er1 >conftest.err
26461  rm -f conftest.er1
26462  cat conftest.err >&5
26463  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464  (exit $ac_status); } && {
26465	 test -z "$ac_c_werror_flag" ||
26466	 test ! -s conftest.err
26467       } && test -s conftest.$ac_objext; then
26468  cat >conftest.$ac_ext <<_ACEOF
26469/* confdefs.h.  */
26470_ACEOF
26471cat confdefs.h >>conftest.$ac_ext
26472cat >>conftest.$ac_ext <<_ACEOF
26473/* end confdefs.h.  */
26474$ac_includes_default
26475int
26476main ()
26477{
26478if (sizeof ((struct addrinfo)))
26479	  return 0;
26480  ;
26481  return 0;
26482}
26483_ACEOF
26484rm -f conftest.$ac_objext
26485if { (ac_try="$ac_compile"
26486case "(($ac_try" in
26487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488  *) ac_try_echo=$ac_try;;
26489esac
26490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26491$as_echo "$ac_try_echo") >&5
26492  (eval "$ac_compile") 2>conftest.er1
26493  ac_status=$?
26494  grep -v '^ *+' conftest.er1 >conftest.err
26495  rm -f conftest.er1
26496  cat conftest.err >&5
26497  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498  (exit $ac_status); } && {
26499	 test -z "$ac_c_werror_flag" ||
26500	 test ! -s conftest.err
26501       } && test -s conftest.$ac_objext; then
26502  :
26503else
26504  $as_echo "$as_me: failed program was:" >&5
26505sed 's/^/| /' conftest.$ac_ext >&5
26506
26507	ac_cv_type_struct_addrinfo=yes
26508fi
26509
26510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26511else
26512  $as_echo "$as_me: failed program was:" >&5
26513sed 's/^/| /' conftest.$ac_ext >&5
26514
26515
26516fi
26517
26518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26519fi
26520{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
26521$as_echo "$ac_cv_type_struct_addrinfo" >&6; }
26522if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
26523
26524cat >>confdefs.h <<_ACEOF
26525#define HAVE_STRUCT_ADDRINFO 1
26526_ACEOF
26527
26528
26529fi
26530
26531fi
26532
26533cat >>confdefs.h <<_ACEOF
26534#define $ac_tr_hdr 1
26535_ACEOF
26536
26537fi
26538
26539
26540
26541cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
26542{ $as_echo "$as_me:$LINENO: checking for struct sockaddr" >&5
26543$as_echo_n "checking for struct sockaddr... " >&6; }
26544if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
26545  $as_echo_n "(cached) " >&6
26546else
26547  cat >conftest.$ac_ext <<_ACEOF
26548/* confdefs.h.  */
26549_ACEOF
26550cat confdefs.h >>conftest.$ac_ext
26551cat >>conftest.$ac_ext <<_ACEOF
26552/* end confdefs.h.  */
26553
26554$ac_includes_default
26555#include <sys/socket.h>
26556int
26557main ()
26558{
26559struct sockaddr foo;
26560  ;
26561  return 0;
26562}
26563_ACEOF
26564rm -f conftest.$ac_objext
26565if { (ac_try="$ac_compile"
26566case "(($ac_try" in
26567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26568  *) ac_try_echo=$ac_try;;
26569esac
26570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26571$as_echo "$ac_try_echo") >&5
26572  (eval "$ac_compile") 2>conftest.er1
26573  ac_status=$?
26574  grep -v '^ *+' conftest.er1 >conftest.err
26575  rm -f conftest.er1
26576  cat conftest.err >&5
26577  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578  (exit $ac_status); } && {
26579	 test -z "$ac_c_werror_flag" ||
26580	 test ! -s conftest.err
26581       } && test -s conftest.$ac_objext; then
26582  eval "ac_cv_type_$cv=yes"
26583else
26584  $as_echo "$as_me: failed program was:" >&5
26585sed 's/^/| /' conftest.$ac_ext >&5
26586
26587	eval "ac_cv_type_$cv=no"
26588fi
26589
26590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26591fi
26592ac_foo=`eval echo \\$ac_cv_type_$cv`
26593{ $as_echo "$as_me:$LINENO: result: $ac_foo" >&5
26594$as_echo "$ac_foo" >&6; }
26595if test "$ac_foo" = yes; then
26596  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26597if false; then
26598	{ $as_echo "$as_me:$LINENO: checking for struct sockaddr" >&5
26599$as_echo_n "checking for struct sockaddr... " >&6; }
26600if test "${ac_cv_type_struct_sockaddr+set}" = set; then
26601  $as_echo_n "(cached) " >&6
26602else
26603  ac_cv_type_struct_sockaddr=no
26604cat >conftest.$ac_ext <<_ACEOF
26605/* confdefs.h.  */
26606_ACEOF
26607cat confdefs.h >>conftest.$ac_ext
26608cat >>conftest.$ac_ext <<_ACEOF
26609/* end confdefs.h.  */
26610$ac_includes_default
26611int
26612main ()
26613{
26614if (sizeof (struct sockaddr))
26615       return 0;
26616  ;
26617  return 0;
26618}
26619_ACEOF
26620rm -f conftest.$ac_objext
26621if { (ac_try="$ac_compile"
26622case "(($ac_try" in
26623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26624  *) ac_try_echo=$ac_try;;
26625esac
26626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26627$as_echo "$ac_try_echo") >&5
26628  (eval "$ac_compile") 2>conftest.er1
26629  ac_status=$?
26630  grep -v '^ *+' conftest.er1 >conftest.err
26631  rm -f conftest.er1
26632  cat conftest.err >&5
26633  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634  (exit $ac_status); } && {
26635	 test -z "$ac_c_werror_flag" ||
26636	 test ! -s conftest.err
26637       } && test -s conftest.$ac_objext; then
26638  cat >conftest.$ac_ext <<_ACEOF
26639/* confdefs.h.  */
26640_ACEOF
26641cat confdefs.h >>conftest.$ac_ext
26642cat >>conftest.$ac_ext <<_ACEOF
26643/* end confdefs.h.  */
26644$ac_includes_default
26645int
26646main ()
26647{
26648if (sizeof ((struct sockaddr)))
26649	  return 0;
26650  ;
26651  return 0;
26652}
26653_ACEOF
26654rm -f conftest.$ac_objext
26655if { (ac_try="$ac_compile"
26656case "(($ac_try" in
26657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26658  *) ac_try_echo=$ac_try;;
26659esac
26660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26661$as_echo "$ac_try_echo") >&5
26662  (eval "$ac_compile") 2>conftest.er1
26663  ac_status=$?
26664  grep -v '^ *+' conftest.er1 >conftest.err
26665  rm -f conftest.er1
26666  cat conftest.err >&5
26667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668  (exit $ac_status); } && {
26669	 test -z "$ac_c_werror_flag" ||
26670	 test ! -s conftest.err
26671       } && test -s conftest.$ac_objext; then
26672  :
26673else
26674  $as_echo "$as_me: failed program was:" >&5
26675sed 's/^/| /' conftest.$ac_ext >&5
26676
26677	ac_cv_type_struct_sockaddr=yes
26678fi
26679
26680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26681else
26682  $as_echo "$as_me: failed program was:" >&5
26683sed 's/^/| /' conftest.$ac_ext >&5
26684
26685
26686fi
26687
26688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26689fi
26690{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
26691$as_echo "$ac_cv_type_struct_sockaddr" >&6; }
26692if test "x$ac_cv_type_struct_sockaddr" = x""yes; then
26693
26694cat >>confdefs.h <<_ACEOF
26695#define HAVE_STRUCT_SOCKADDR 1
26696_ACEOF
26697
26698
26699fi
26700
26701fi
26702
26703cat >>confdefs.h <<_ACEOF
26704#define $ac_tr_hdr 1
26705_ACEOF
26706
26707fi
26708
26709
26710
26711cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
26712{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
26713$as_echo_n "checking for struct sockaddr_storage... " >&6; }
26714if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
26715  $as_echo_n "(cached) " >&6
26716else
26717  cat >conftest.$ac_ext <<_ACEOF
26718/* confdefs.h.  */
26719_ACEOF
26720cat confdefs.h >>conftest.$ac_ext
26721cat >>conftest.$ac_ext <<_ACEOF
26722/* end confdefs.h.  */
26723
26724$ac_includes_default
26725
26726#include <sys/socket.h>
26727#include <sys/types.h>
26728#include <netinet/in.h>
26729
26730int
26731main ()
26732{
26733struct sockaddr_storage foo;
26734  ;
26735  return 0;
26736}
26737_ACEOF
26738rm -f conftest.$ac_objext
26739if { (ac_try="$ac_compile"
26740case "(($ac_try" in
26741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26742  *) ac_try_echo=$ac_try;;
26743esac
26744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26745$as_echo "$ac_try_echo") >&5
26746  (eval "$ac_compile") 2>conftest.er1
26747  ac_status=$?
26748  grep -v '^ *+' conftest.er1 >conftest.err
26749  rm -f conftest.er1
26750  cat conftest.err >&5
26751  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752  (exit $ac_status); } && {
26753	 test -z "$ac_c_werror_flag" ||
26754	 test ! -s conftest.err
26755       } && test -s conftest.$ac_objext; then
26756  eval "ac_cv_type_$cv=yes"
26757else
26758  $as_echo "$as_me: failed program was:" >&5
26759sed 's/^/| /' conftest.$ac_ext >&5
26760
26761	eval "ac_cv_type_$cv=no"
26762fi
26763
26764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26765fi
26766ac_foo=`eval echo \\$ac_cv_type_$cv`
26767{ $as_echo "$as_me:$LINENO: result: $ac_foo" >&5
26768$as_echo "$ac_foo" >&6; }
26769if test "$ac_foo" = yes; then
26770  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26771if false; then
26772	{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
26773$as_echo_n "checking for struct sockaddr_storage... " >&6; }
26774if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
26775  $as_echo_n "(cached) " >&6
26776else
26777  ac_cv_type_struct_sockaddr_storage=no
26778cat >conftest.$ac_ext <<_ACEOF
26779/* confdefs.h.  */
26780_ACEOF
26781cat confdefs.h >>conftest.$ac_ext
26782cat >>conftest.$ac_ext <<_ACEOF
26783/* end confdefs.h.  */
26784$ac_includes_default
26785int
26786main ()
26787{
26788if (sizeof (struct sockaddr_storage))
26789       return 0;
26790  ;
26791  return 0;
26792}
26793_ACEOF
26794rm -f conftest.$ac_objext
26795if { (ac_try="$ac_compile"
26796case "(($ac_try" in
26797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26798  *) ac_try_echo=$ac_try;;
26799esac
26800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26801$as_echo "$ac_try_echo") >&5
26802  (eval "$ac_compile") 2>conftest.er1
26803  ac_status=$?
26804  grep -v '^ *+' conftest.er1 >conftest.err
26805  rm -f conftest.er1
26806  cat conftest.err >&5
26807  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808  (exit $ac_status); } && {
26809	 test -z "$ac_c_werror_flag" ||
26810	 test ! -s conftest.err
26811       } && test -s conftest.$ac_objext; then
26812  cat >conftest.$ac_ext <<_ACEOF
26813/* confdefs.h.  */
26814_ACEOF
26815cat confdefs.h >>conftest.$ac_ext
26816cat >>conftest.$ac_ext <<_ACEOF
26817/* end confdefs.h.  */
26818$ac_includes_default
26819int
26820main ()
26821{
26822if (sizeof ((struct sockaddr_storage)))
26823	  return 0;
26824  ;
26825  return 0;
26826}
26827_ACEOF
26828rm -f conftest.$ac_objext
26829if { (ac_try="$ac_compile"
26830case "(($ac_try" in
26831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26832  *) ac_try_echo=$ac_try;;
26833esac
26834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26835$as_echo "$ac_try_echo") >&5
26836  (eval "$ac_compile") 2>conftest.er1
26837  ac_status=$?
26838  grep -v '^ *+' conftest.er1 >conftest.err
26839  rm -f conftest.er1
26840  cat conftest.err >&5
26841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842  (exit $ac_status); } && {
26843	 test -z "$ac_c_werror_flag" ||
26844	 test ! -s conftest.err
26845       } && test -s conftest.$ac_objext; then
26846  :
26847else
26848  $as_echo "$as_me: failed program was:" >&5
26849sed 's/^/| /' conftest.$ac_ext >&5
26850
26851	ac_cv_type_struct_sockaddr_storage=yes
26852fi
26853
26854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26855else
26856  $as_echo "$as_me: failed program was:" >&5
26857sed 's/^/| /' conftest.$ac_ext >&5
26858
26859
26860fi
26861
26862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26863fi
26864{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
26865$as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
26866if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
26867
26868cat >>confdefs.h <<_ACEOF
26869#define HAVE_STRUCT_SOCKADDR_STORAGE 1
26870_ACEOF
26871
26872
26873fi
26874
26875fi
26876
26877cat >>confdefs.h <<_ACEOF
26878#define $ac_tr_hdr 1
26879_ACEOF
26880
26881fi
26882
26883
26884
26885cv=`echo "struct sockaddr_in6" | sed 'y%./+- %__p__%'`
26886{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
26887$as_echo_n "checking for struct sockaddr_in6... " >&6; }
26888if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then
26889  $as_echo_n "(cached) " >&6
26890else
26891  cat >conftest.$ac_ext <<_ACEOF
26892/* confdefs.h.  */
26893_ACEOF
26894cat confdefs.h >>conftest.$ac_ext
26895cat >>conftest.$ac_ext <<_ACEOF
26896/* end confdefs.h.  */
26897
26898$ac_includes_default
26899
26900#include <sys/socket.h>
26901#include <sys/types.h>
26902#include <netinet/in.h>
26903
26904int
26905main ()
26906{
26907struct sockaddr_in6 foo;
26908  ;
26909  return 0;
26910}
26911_ACEOF
26912rm -f conftest.$ac_objext
26913if { (ac_try="$ac_compile"
26914case "(($ac_try" in
26915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916  *) ac_try_echo=$ac_try;;
26917esac
26918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26919$as_echo "$ac_try_echo") >&5
26920  (eval "$ac_compile") 2>conftest.er1
26921  ac_status=$?
26922  grep -v '^ *+' conftest.er1 >conftest.err
26923  rm -f conftest.er1
26924  cat conftest.err >&5
26925  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26926  (exit $ac_status); } && {
26927	 test -z "$ac_c_werror_flag" ||
26928	 test ! -s conftest.err
26929       } && test -s conftest.$ac_objext; then
26930  eval "ac_cv_type_$cv=yes"
26931else
26932  $as_echo "$as_me: failed program was:" >&5
26933sed 's/^/| /' conftest.$ac_ext >&5
26934
26935	eval "ac_cv_type_$cv=no"
26936fi
26937
26938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26939fi
26940ac_foo=`eval echo \\$ac_cv_type_$cv`
26941{ $as_echo "$as_me:$LINENO: result: $ac_foo" >&5
26942$as_echo "$ac_foo" >&6; }
26943if test "$ac_foo" = yes; then
26944  ac_tr_hdr=HAVE_`echo struct sockaddr_in6 | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26945if false; then
26946	{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
26947$as_echo_n "checking for struct sockaddr_in6... " >&6; }
26948if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
26949  $as_echo_n "(cached) " >&6
26950else
26951  ac_cv_type_struct_sockaddr_in6=no
26952cat >conftest.$ac_ext <<_ACEOF
26953/* confdefs.h.  */
26954_ACEOF
26955cat confdefs.h >>conftest.$ac_ext
26956cat >>conftest.$ac_ext <<_ACEOF
26957/* end confdefs.h.  */
26958$ac_includes_default
26959int
26960main ()
26961{
26962if (sizeof (struct sockaddr_in6))
26963       return 0;
26964  ;
26965  return 0;
26966}
26967_ACEOF
26968rm -f conftest.$ac_objext
26969if { (ac_try="$ac_compile"
26970case "(($ac_try" in
26971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26972  *) ac_try_echo=$ac_try;;
26973esac
26974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26975$as_echo "$ac_try_echo") >&5
26976  (eval "$ac_compile") 2>conftest.er1
26977  ac_status=$?
26978  grep -v '^ *+' conftest.er1 >conftest.err
26979  rm -f conftest.er1
26980  cat conftest.err >&5
26981  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982  (exit $ac_status); } && {
26983	 test -z "$ac_c_werror_flag" ||
26984	 test ! -s conftest.err
26985       } && test -s conftest.$ac_objext; then
26986  cat >conftest.$ac_ext <<_ACEOF
26987/* confdefs.h.  */
26988_ACEOF
26989cat confdefs.h >>conftest.$ac_ext
26990cat >>conftest.$ac_ext <<_ACEOF
26991/* end confdefs.h.  */
26992$ac_includes_default
26993int
26994main ()
26995{
26996if (sizeof ((struct sockaddr_in6)))
26997	  return 0;
26998  ;
26999  return 0;
27000}
27001_ACEOF
27002rm -f conftest.$ac_objext
27003if { (ac_try="$ac_compile"
27004case "(($ac_try" in
27005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27006  *) ac_try_echo=$ac_try;;
27007esac
27008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27009$as_echo "$ac_try_echo") >&5
27010  (eval "$ac_compile") 2>conftest.er1
27011  ac_status=$?
27012  grep -v '^ *+' conftest.er1 >conftest.err
27013  rm -f conftest.er1
27014  cat conftest.err >&5
27015  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016  (exit $ac_status); } && {
27017	 test -z "$ac_c_werror_flag" ||
27018	 test ! -s conftest.err
27019       } && test -s conftest.$ac_objext; then
27020  :
27021else
27022  $as_echo "$as_me: failed program was:" >&5
27023sed 's/^/| /' conftest.$ac_ext >&5
27024
27025	ac_cv_type_struct_sockaddr_in6=yes
27026fi
27027
27028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27029else
27030  $as_echo "$as_me: failed program was:" >&5
27031sed 's/^/| /' conftest.$ac_ext >&5
27032
27033
27034fi
27035
27036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27037fi
27038{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
27039$as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
27040if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
27041
27042cat >>confdefs.h <<_ACEOF
27043#define HAVE_STRUCT_SOCKADDR_IN6 1
27044_ACEOF
27045
27046
27047fi
27048
27049fi
27050
27051cat >>confdefs.h <<_ACEOF
27052#define $ac_tr_hdr 1
27053_ACEOF
27054
27055fi
27056
27057
27058if test x"$ac_cv_type_struct_sockaddr_storage" = x"yes"; then
27059{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
27060$as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
27061if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
27062  $as_echo_n "(cached) " >&6
27063else
27064  cat >conftest.$ac_ext <<_ACEOF
27065/* confdefs.h.  */
27066_ACEOF
27067cat confdefs.h >>conftest.$ac_ext
27068cat >>conftest.$ac_ext <<_ACEOF
27069/* end confdefs.h.  */
27070
27071#include <sys/socket.h>
27072#include <sys/types.h>
27073#include <netinet/in.h>
27074
27075
27076int
27077main ()
27078{
27079static struct sockaddr_storage ac_aggr;
27080if (ac_aggr.ss_family)
27081return 0;
27082  ;
27083  return 0;
27084}
27085_ACEOF
27086rm -f conftest.$ac_objext
27087if { (ac_try="$ac_compile"
27088case "(($ac_try" in
27089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27090  *) ac_try_echo=$ac_try;;
27091esac
27092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27093$as_echo "$ac_try_echo") >&5
27094  (eval "$ac_compile") 2>conftest.er1
27095  ac_status=$?
27096  grep -v '^ *+' conftest.er1 >conftest.err
27097  rm -f conftest.er1
27098  cat conftest.err >&5
27099  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100  (exit $ac_status); } && {
27101	 test -z "$ac_c_werror_flag" ||
27102	 test ! -s conftest.err
27103       } && test -s conftest.$ac_objext; then
27104  ac_cv_member_struct_sockaddr_storage_ss_family=yes
27105else
27106  $as_echo "$as_me: failed program was:" >&5
27107sed 's/^/| /' conftest.$ac_ext >&5
27108
27109	cat >conftest.$ac_ext <<_ACEOF
27110/* confdefs.h.  */
27111_ACEOF
27112cat confdefs.h >>conftest.$ac_ext
27113cat >>conftest.$ac_ext <<_ACEOF
27114/* end confdefs.h.  */
27115
27116#include <sys/socket.h>
27117#include <sys/types.h>
27118#include <netinet/in.h>
27119
27120
27121int
27122main ()
27123{
27124static struct sockaddr_storage ac_aggr;
27125if (sizeof ac_aggr.ss_family)
27126return 0;
27127  ;
27128  return 0;
27129}
27130_ACEOF
27131rm -f conftest.$ac_objext
27132if { (ac_try="$ac_compile"
27133case "(($ac_try" in
27134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27135  *) ac_try_echo=$ac_try;;
27136esac
27137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27138$as_echo "$ac_try_echo") >&5
27139  (eval "$ac_compile") 2>conftest.er1
27140  ac_status=$?
27141  grep -v '^ *+' conftest.er1 >conftest.err
27142  rm -f conftest.er1
27143  cat conftest.err >&5
27144  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145  (exit $ac_status); } && {
27146	 test -z "$ac_c_werror_flag" ||
27147	 test ! -s conftest.err
27148       } && test -s conftest.$ac_objext; then
27149  ac_cv_member_struct_sockaddr_storage_ss_family=yes
27150else
27151  $as_echo "$as_me: failed program was:" >&5
27152sed 's/^/| /' conftest.$ac_ext >&5
27153
27154	ac_cv_member_struct_sockaddr_storage_ss_family=no
27155fi
27156
27157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27158fi
27159
27160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27161fi
27162{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
27163$as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
27164if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
27165
27166cat >>confdefs.h <<\_ACEOF
27167#define HAVE_SS_FAMILY 1
27168_ACEOF
27169
27170fi
27171
27172
27173if test x"$ac_cv_member_struct_sockaddr_storage_ss_family" != x"yes"; then
27174{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
27175$as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
27176if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
27177  $as_echo_n "(cached) " >&6
27178else
27179  cat >conftest.$ac_ext <<_ACEOF
27180/* confdefs.h.  */
27181_ACEOF
27182cat confdefs.h >>conftest.$ac_ext
27183cat >>conftest.$ac_ext <<_ACEOF
27184/* end confdefs.h.  */
27185
27186#include <sys/socket.h>
27187#include <sys/types.h>
27188#include <netinet/in.h>
27189
27190
27191int
27192main ()
27193{
27194static struct sockaddr_storage ac_aggr;
27195if (ac_aggr.__ss_family)
27196return 0;
27197  ;
27198  return 0;
27199}
27200_ACEOF
27201rm -f conftest.$ac_objext
27202if { (ac_try="$ac_compile"
27203case "(($ac_try" in
27204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205  *) ac_try_echo=$ac_try;;
27206esac
27207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27208$as_echo "$ac_try_echo") >&5
27209  (eval "$ac_compile") 2>conftest.er1
27210  ac_status=$?
27211  grep -v '^ *+' conftest.er1 >conftest.err
27212  rm -f conftest.er1
27213  cat conftest.err >&5
27214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215  (exit $ac_status); } && {
27216	 test -z "$ac_c_werror_flag" ||
27217	 test ! -s conftest.err
27218       } && test -s conftest.$ac_objext; then
27219  ac_cv_member_struct_sockaddr_storage___ss_family=yes
27220else
27221  $as_echo "$as_me: failed program was:" >&5
27222sed 's/^/| /' conftest.$ac_ext >&5
27223
27224	cat >conftest.$ac_ext <<_ACEOF
27225/* confdefs.h.  */
27226_ACEOF
27227cat confdefs.h >>conftest.$ac_ext
27228cat >>conftest.$ac_ext <<_ACEOF
27229/* end confdefs.h.  */
27230
27231#include <sys/socket.h>
27232#include <sys/types.h>
27233#include <netinet/in.h>
27234
27235
27236int
27237main ()
27238{
27239static struct sockaddr_storage ac_aggr;
27240if (sizeof ac_aggr.__ss_family)
27241return 0;
27242  ;
27243  return 0;
27244}
27245_ACEOF
27246rm -f conftest.$ac_objext
27247if { (ac_try="$ac_compile"
27248case "(($ac_try" in
27249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27250  *) ac_try_echo=$ac_try;;
27251esac
27252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27253$as_echo "$ac_try_echo") >&5
27254  (eval "$ac_compile") 2>conftest.er1
27255  ac_status=$?
27256  grep -v '^ *+' conftest.er1 >conftest.err
27257  rm -f conftest.er1
27258  cat conftest.err >&5
27259  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260  (exit $ac_status); } && {
27261	 test -z "$ac_c_werror_flag" ||
27262	 test ! -s conftest.err
27263       } && test -s conftest.$ac_objext; then
27264  ac_cv_member_struct_sockaddr_storage___ss_family=yes
27265else
27266  $as_echo "$as_me: failed program was:" >&5
27267sed 's/^/| /' conftest.$ac_ext >&5
27268
27269	ac_cv_member_struct_sockaddr_storage___ss_family=no
27270fi
27271
27272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27273fi
27274
27275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27276fi
27277{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
27278$as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
27279if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
27280
27281cat >>confdefs.h <<\_ACEOF
27282#define HAVE___SS_FAMILY 1
27283_ACEOF
27284
27285fi
27286
27287fi
27288fi
27289
27290{ $as_echo "$as_me:$LINENO: checking for sin_len in sock" >&5
27291$as_echo_n "checking for sin_len in sock... " >&6; }
27292if test "${libreplace_cv_HAVE_SOCK_SIN_LEN+set}" = set; then
27293  $as_echo_n "(cached) " >&6
27294else
27295
27296	cat >conftest.$ac_ext <<_ACEOF
27297/* confdefs.h.  */
27298_ACEOF
27299cat confdefs.h >>conftest.$ac_ext
27300cat >>conftest.$ac_ext <<_ACEOF
27301/* end confdefs.h.  */
27302
27303#include <sys/types.h>
27304#include <sys/socket.h>
27305#include <netinet/in.h>
27306
27307int
27308main ()
27309{
27310
27311struct sockaddr_in sock; sock.sin_len = sizeof(sock);
27312
27313  ;
27314  return 0;
27315}
27316_ACEOF
27317rm -f conftest.$ac_objext
27318if { (ac_try="$ac_compile"
27319case "(($ac_try" in
27320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321  *) ac_try_echo=$ac_try;;
27322esac
27323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27324$as_echo "$ac_try_echo") >&5
27325  (eval "$ac_compile") 2>conftest.er1
27326  ac_status=$?
27327  grep -v '^ *+' conftest.er1 >conftest.err
27328  rm -f conftest.er1
27329  cat conftest.err >&5
27330  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331  (exit $ac_status); } && {
27332	 test -z "$ac_c_werror_flag" ||
27333	 test ! -s conftest.err
27334       } && test -s conftest.$ac_objext; then
27335
27336		libreplace_cv_HAVE_SOCK_SIN_LEN=yes
27337
27338else
27339  $as_echo "$as_me: failed program was:" >&5
27340sed 's/^/| /' conftest.$ac_ext >&5
27341
27342
27343		libreplace_cv_HAVE_SOCK_SIN_LEN=no
27344
27345fi
27346
27347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27348
27349fi
27350{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_SOCK_SIN_LEN" >&5
27351$as_echo "$libreplace_cv_HAVE_SOCK_SIN_LEN" >&6; }
27352if test x"$libreplace_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
27353
27354cat >>confdefs.h <<\_ACEOF
27355#define HAVE_SOCK_SIN_LEN 1
27356_ACEOF
27357
27358fi
27359
27360############################################
27361# check for unix domain sockets
27362{ $as_echo "$as_me:$LINENO: checking for unix domain sockets" >&5
27363$as_echo_n "checking for unix domain sockets... " >&6; }
27364if test "${libreplace_cv_HAVE_UNIXSOCKET+set}" = set; then
27365  $as_echo_n "(cached) " >&6
27366else
27367
27368	cat >conftest.$ac_ext <<_ACEOF
27369/* confdefs.h.  */
27370_ACEOF
27371cat confdefs.h >>conftest.$ac_ext
27372cat >>conftest.$ac_ext <<_ACEOF
27373/* end confdefs.h.  */
27374
27375#include <sys/types.h>
27376#include <stdlib.h>
27377#include <stddef.h>
27378#include <sys/socket.h>
27379#include <sys/un.h>
27380
27381int
27382main ()
27383{
27384
27385struct sockaddr_un sunaddr;
27386sunaddr.sun_family = AF_UNIX;
27387
27388  ;
27389  return 0;
27390}
27391_ACEOF
27392rm -f conftest.$ac_objext
27393if { (ac_try="$ac_compile"
27394case "(($ac_try" in
27395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27396  *) ac_try_echo=$ac_try;;
27397esac
27398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27399$as_echo "$ac_try_echo") >&5
27400  (eval "$ac_compile") 2>conftest.er1
27401  ac_status=$?
27402  grep -v '^ *+' conftest.er1 >conftest.err
27403  rm -f conftest.er1
27404  cat conftest.err >&5
27405  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406  (exit $ac_status); } && {
27407	 test -z "$ac_c_werror_flag" ||
27408	 test ! -s conftest.err
27409       } && test -s conftest.$ac_objext; then
27410
27411		libreplace_cv_HAVE_UNIXSOCKET=yes
27412
27413else
27414  $as_echo "$as_me: failed program was:" >&5
27415sed 's/^/| /' conftest.$ac_ext >&5
27416
27417
27418		libreplace_cv_HAVE_UNIXSOCKET=no
27419
27420fi
27421
27422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27423
27424fi
27425{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_UNIXSOCKET" >&5
27426$as_echo "$libreplace_cv_HAVE_UNIXSOCKET" >&6; }
27427if test x"$libreplace_cv_HAVE_UNIXSOCKET" = x"yes"; then
27428
27429cat >>confdefs.h <<\_ACEOF
27430#define HAVE_UNIXSOCKET 1
27431_ACEOF
27432
27433fi
27434
27435
27436for ac_func in connect
27437do
27438as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27439{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27440$as_echo_n "checking for $ac_func... " >&6; }
27441if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27442  $as_echo_n "(cached) " >&6
27443else
27444  cat >conftest.$ac_ext <<_ACEOF
27445/* confdefs.h.  */
27446_ACEOF
27447cat confdefs.h >>conftest.$ac_ext
27448cat >>conftest.$ac_ext <<_ACEOF
27449/* end confdefs.h.  */
27450/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27451   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27452#define $ac_func innocuous_$ac_func
27453
27454/* System header to define __stub macros and hopefully few prototypes,
27455    which can conflict with char $ac_func (); below.
27456    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27457    <limits.h> exists even on freestanding compilers.  */
27458
27459#ifdef __STDC__
27460# include <limits.h>
27461#else
27462# include <assert.h>
27463#endif
27464
27465#undef $ac_func
27466
27467/* Override any GCC internal prototype to avoid an error.
27468   Use char because int might match the return type of a GCC
27469   builtin and then its argument prototype would still apply.  */
27470#ifdef __cplusplus
27471extern "C"
27472#endif
27473char $ac_func ();
27474/* The GNU C library defines this for functions which it implements
27475    to always fail with ENOSYS.  Some functions are actually named
27476    something starting with __ and the normal name is an alias.  */
27477#if defined __stub_$ac_func || defined __stub___$ac_func
27478choke me
27479#endif
27480
27481int
27482main ()
27483{
27484return $ac_func ();
27485  ;
27486  return 0;
27487}
27488_ACEOF
27489rm -f conftest.$ac_objext conftest$ac_exeext
27490if { (ac_try="$ac_link"
27491case "(($ac_try" in
27492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27493  *) ac_try_echo=$ac_try;;
27494esac
27495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27496$as_echo "$ac_try_echo") >&5
27497  (eval "$ac_link") 2>conftest.er1
27498  ac_status=$?
27499  grep -v '^ *+' conftest.er1 >conftest.err
27500  rm -f conftest.er1
27501  cat conftest.err >&5
27502  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503  (exit $ac_status); } && {
27504	 test -z "$ac_c_werror_flag" ||
27505	 test ! -s conftest.err
27506       } && test -s conftest$ac_exeext && {
27507	 test "$cross_compiling" = yes ||
27508	 $as_test_x conftest$ac_exeext
27509       }; then
27510  eval "$as_ac_var=yes"
27511else
27512  $as_echo "$as_me: failed program was:" >&5
27513sed 's/^/| /' conftest.$ac_ext >&5
27514
27515	eval "$as_ac_var=no"
27516fi
27517
27518rm -rf conftest.dSYM
27519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27520      conftest$ac_exeext conftest.$ac_ext
27521fi
27522ac_res=`eval 'as_val=${'$as_ac_var'}
27523		 $as_echo "$as_val"'`
27524	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27525$as_echo "$ac_res" >&6; }
27526as_val=`eval 'as_val=${'$as_ac_var'}
27527		 $as_echo "$as_val"'`
27528   if test "x$as_val" = x""yes; then
27529  cat >>confdefs.h <<_ACEOF
27530#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27531_ACEOF
27532
27533fi
27534done
27535
27536if test x"$ac_cv_func_connect" = x"no"; then
27537
27538
27539
27540ac_check_lib_ext_save_LIBS=$LIBS
27541LIBS="-lnsl_s $LIBREPLACE_NETWORK_LIBS  $LIBS"
27542
27543
27544
27545
27546        { $as_echo "$as_me:$LINENO: checking for connect in -lnsl_s" >&5
27547$as_echo_n "checking for connect in -lnsl_s... " >&6; }
27548if test "${ac_cv_lib_ext_nsl_s_connect+set}" = set; then
27549  $as_echo_n "(cached) " >&6
27550else
27551  cat >conftest.$ac_ext <<_ACEOF
27552/* confdefs.h.  */
27553_ACEOF
27554cat confdefs.h >>conftest.$ac_ext
27555cat >>conftest.$ac_ext <<_ACEOF
27556/* end confdefs.h.  */
27557
27558/* Override any GCC internal prototype to avoid an error.
27559   Use char because int might match the return type of a GCC
27560   builtin and then its argument prototype would still apply.  */
27561#ifdef __cplusplus
27562extern "C"
27563#endif
27564char connect ();
27565int
27566main ()
27567{
27568return connect ();
27569  ;
27570  return 0;
27571}
27572_ACEOF
27573rm -f conftest.$ac_objext conftest$ac_exeext
27574if { (ac_try="$ac_link"
27575case "(($ac_try" in
27576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27577  *) ac_try_echo=$ac_try;;
27578esac
27579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27580$as_echo "$ac_try_echo") >&5
27581  (eval "$ac_link") 2>conftest.er1
27582  ac_status=$?
27583  grep -v '^ *+' conftest.er1 >conftest.err
27584  rm -f conftest.er1
27585  cat conftest.err >&5
27586  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587  (exit $ac_status); } && {
27588	 test -z "$ac_c_werror_flag" ||
27589	 test ! -s conftest.err
27590       } && test -s conftest$ac_exeext && {
27591	 test "$cross_compiling" = yes ||
27592	 $as_test_x conftest$ac_exeext
27593       }; then
27594  ac_cv_lib_ext_nsl_s_connect=yes;
27595		  ac_cv_lib_ext_nsl_s=yes
27596else
27597  $as_echo "$as_me: failed program was:" >&5
27598sed 's/^/| /' conftest.$ac_ext >&5
27599
27600	ac_cv_lib_ext_nsl_s_connect=no;
27601		  ac_cv_lib_ext_nsl_s=no
27602fi
27603
27604rm -rf conftest.dSYM
27605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27606      conftest$ac_exeext conftest.$ac_ext
27607
27608fi
27609{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_nsl_s_connect" >&5
27610$as_echo "$ac_cv_lib_ext_nsl_s_connect" >&6; }
27611    if test $ac_cv_lib_ext_nsl_s_connect = yes; then
27612  cat >>confdefs.h <<_ACEOF
27613#define HAVE_CONNECT 1
27614_ACEOF
27615
27616fi
27617
27618LIBS=$ac_check_lib_ext_save_LIBS
27619
27620if test $ac_cv_lib_ext_nsl_s = yes; then
27621  cat >>confdefs.h <<_ACEOF
27622#define HAVE_LIBNSL_S 1
27623_ACEOF
27624
27625		case "$LIBREPLACE_NETWORK_LIBS" in
27626		    *-lnsl_s*)
27627			;;
27628		    *)
27629			LIBREPLACE_NETWORK_LIBS="-lnsl_s $LIBREPLACE_NETWORK_LIBS"
27630			;;
27631		esac
27632
27633
27634fi
27635
27636
27637
27638
27639ac_check_lib_ext_save_LIBS=$LIBS
27640LIBS="-lnsl $LIBREPLACE_NETWORK_LIBS  $LIBS"
27641
27642
27643
27644
27645        { $as_echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
27646$as_echo_n "checking for connect in -lnsl... " >&6; }
27647if test "${ac_cv_lib_ext_nsl_connect+set}" = set; then
27648  $as_echo_n "(cached) " >&6
27649else
27650  cat >conftest.$ac_ext <<_ACEOF
27651/* confdefs.h.  */
27652_ACEOF
27653cat confdefs.h >>conftest.$ac_ext
27654cat >>conftest.$ac_ext <<_ACEOF
27655/* end confdefs.h.  */
27656
27657/* Override any GCC internal prototype to avoid an error.
27658   Use char because int might match the return type of a GCC
27659   builtin and then its argument prototype would still apply.  */
27660#ifdef __cplusplus
27661extern "C"
27662#endif
27663char connect ();
27664int
27665main ()
27666{
27667return connect ();
27668  ;
27669  return 0;
27670}
27671_ACEOF
27672rm -f conftest.$ac_objext conftest$ac_exeext
27673if { (ac_try="$ac_link"
27674case "(($ac_try" in
27675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676  *) ac_try_echo=$ac_try;;
27677esac
27678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27679$as_echo "$ac_try_echo") >&5
27680  (eval "$ac_link") 2>conftest.er1
27681  ac_status=$?
27682  grep -v '^ *+' conftest.er1 >conftest.err
27683  rm -f conftest.er1
27684  cat conftest.err >&5
27685  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686  (exit $ac_status); } && {
27687	 test -z "$ac_c_werror_flag" ||
27688	 test ! -s conftest.err
27689       } && test -s conftest$ac_exeext && {
27690	 test "$cross_compiling" = yes ||
27691	 $as_test_x conftest$ac_exeext
27692       }; then
27693  ac_cv_lib_ext_nsl_connect=yes;
27694		  ac_cv_lib_ext_nsl=yes
27695else
27696  $as_echo "$as_me: failed program was:" >&5
27697sed 's/^/| /' conftest.$ac_ext >&5
27698
27699	ac_cv_lib_ext_nsl_connect=no;
27700		  ac_cv_lib_ext_nsl=no
27701fi
27702
27703rm -rf conftest.dSYM
27704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27705      conftest$ac_exeext conftest.$ac_ext
27706
27707fi
27708{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_nsl_connect" >&5
27709$as_echo "$ac_cv_lib_ext_nsl_connect" >&6; }
27710    if test $ac_cv_lib_ext_nsl_connect = yes; then
27711  cat >>confdefs.h <<_ACEOF
27712#define HAVE_CONNECT 1
27713_ACEOF
27714
27715fi
27716
27717LIBS=$ac_check_lib_ext_save_LIBS
27718
27719if test $ac_cv_lib_ext_nsl = yes; then
27720  cat >>confdefs.h <<_ACEOF
27721#define HAVE_LIBNSL 1
27722_ACEOF
27723
27724		case "$LIBREPLACE_NETWORK_LIBS" in
27725		    *-lnsl*)
27726			;;
27727		    *)
27728			LIBREPLACE_NETWORK_LIBS="-lnsl $LIBREPLACE_NETWORK_LIBS"
27729			;;
27730		esac
27731
27732
27733fi
27734
27735
27736
27737
27738ac_check_lib_ext_save_LIBS=$LIBS
27739LIBS="-lsocket $LIBREPLACE_NETWORK_LIBS  $LIBS"
27740
27741
27742
27743
27744        { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27745$as_echo_n "checking for connect in -lsocket... " >&6; }
27746if test "${ac_cv_lib_ext_socket_connect+set}" = set; then
27747  $as_echo_n "(cached) " >&6
27748else
27749  cat >conftest.$ac_ext <<_ACEOF
27750/* confdefs.h.  */
27751_ACEOF
27752cat confdefs.h >>conftest.$ac_ext
27753cat >>conftest.$ac_ext <<_ACEOF
27754/* end confdefs.h.  */
27755
27756/* Override any GCC internal prototype to avoid an error.
27757   Use char because int might match the return type of a GCC
27758   builtin and then its argument prototype would still apply.  */
27759#ifdef __cplusplus
27760extern "C"
27761#endif
27762char connect ();
27763int
27764main ()
27765{
27766return connect ();
27767  ;
27768  return 0;
27769}
27770_ACEOF
27771rm -f conftest.$ac_objext conftest$ac_exeext
27772if { (ac_try="$ac_link"
27773case "(($ac_try" in
27774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775  *) ac_try_echo=$ac_try;;
27776esac
27777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27778$as_echo "$ac_try_echo") >&5
27779  (eval "$ac_link") 2>conftest.er1
27780  ac_status=$?
27781  grep -v '^ *+' conftest.er1 >conftest.err
27782  rm -f conftest.er1
27783  cat conftest.err >&5
27784  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785  (exit $ac_status); } && {
27786	 test -z "$ac_c_werror_flag" ||
27787	 test ! -s conftest.err
27788       } && test -s conftest$ac_exeext && {
27789	 test "$cross_compiling" = yes ||
27790	 $as_test_x conftest$ac_exeext
27791       }; then
27792  ac_cv_lib_ext_socket_connect=yes;
27793		  ac_cv_lib_ext_socket=yes
27794else
27795  $as_echo "$as_me: failed program was:" >&5
27796sed 's/^/| /' conftest.$ac_ext >&5
27797
27798	ac_cv_lib_ext_socket_connect=no;
27799		  ac_cv_lib_ext_socket=no
27800fi
27801
27802rm -rf conftest.dSYM
27803rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27804      conftest$ac_exeext conftest.$ac_ext
27805
27806fi
27807{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_socket_connect" >&5
27808$as_echo "$ac_cv_lib_ext_socket_connect" >&6; }
27809    if test $ac_cv_lib_ext_socket_connect = yes; then
27810  cat >>confdefs.h <<_ACEOF
27811#define HAVE_CONNECT 1
27812_ACEOF
27813
27814fi
27815
27816LIBS=$ac_check_lib_ext_save_LIBS
27817
27818if test $ac_cv_lib_ext_socket = yes; then
27819  cat >>confdefs.h <<_ACEOF
27820#define HAVE_LIBSOCKET 1
27821_ACEOF
27822
27823		case "$LIBREPLACE_NETWORK_LIBS" in
27824		    *-lsocket*)
27825			;;
27826		    *)
27827			LIBREPLACE_NETWORK_LIBS="-lsocket $LIBREPLACE_NETWORK_LIBS"
27828			;;
27829		esac
27830
27831
27832fi
27833
27834
27835
27836
27837ac_check_lib_ext_save_LIBS=$LIBS
27838LIBS="-linet $LIBREPLACE_NETWORK_LIBS  $LIBS"
27839
27840
27841
27842
27843        { $as_echo "$as_me:$LINENO: checking for connect in -linet" >&5
27844$as_echo_n "checking for connect in -linet... " >&6; }
27845if test "${ac_cv_lib_ext_inet_connect+set}" = set; then
27846  $as_echo_n "(cached) " >&6
27847else
27848  cat >conftest.$ac_ext <<_ACEOF
27849/* confdefs.h.  */
27850_ACEOF
27851cat confdefs.h >>conftest.$ac_ext
27852cat >>conftest.$ac_ext <<_ACEOF
27853/* end confdefs.h.  */
27854
27855/* Override any GCC internal prototype to avoid an error.
27856   Use char because int might match the return type of a GCC
27857   builtin and then its argument prototype would still apply.  */
27858#ifdef __cplusplus
27859extern "C"
27860#endif
27861char connect ();
27862int
27863main ()
27864{
27865return connect ();
27866  ;
27867  return 0;
27868}
27869_ACEOF
27870rm -f conftest.$ac_objext conftest$ac_exeext
27871if { (ac_try="$ac_link"
27872case "(($ac_try" in
27873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27874  *) ac_try_echo=$ac_try;;
27875esac
27876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27877$as_echo "$ac_try_echo") >&5
27878  (eval "$ac_link") 2>conftest.er1
27879  ac_status=$?
27880  grep -v '^ *+' conftest.er1 >conftest.err
27881  rm -f conftest.er1
27882  cat conftest.err >&5
27883  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884  (exit $ac_status); } && {
27885	 test -z "$ac_c_werror_flag" ||
27886	 test ! -s conftest.err
27887       } && test -s conftest$ac_exeext && {
27888	 test "$cross_compiling" = yes ||
27889	 $as_test_x conftest$ac_exeext
27890       }; then
27891  ac_cv_lib_ext_inet_connect=yes;
27892		  ac_cv_lib_ext_inet=yes
27893else
27894  $as_echo "$as_me: failed program was:" >&5
27895sed 's/^/| /' conftest.$ac_ext >&5
27896
27897	ac_cv_lib_ext_inet_connect=no;
27898		  ac_cv_lib_ext_inet=no
27899fi
27900
27901rm -rf conftest.dSYM
27902rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27903      conftest$ac_exeext conftest.$ac_ext
27904
27905fi
27906{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_inet_connect" >&5
27907$as_echo "$ac_cv_lib_ext_inet_connect" >&6; }
27908    if test $ac_cv_lib_ext_inet_connect = yes; then
27909  cat >>confdefs.h <<_ACEOF
27910#define HAVE_CONNECT 1
27911_ACEOF
27912
27913fi
27914
27915LIBS=$ac_check_lib_ext_save_LIBS
27916
27917if test $ac_cv_lib_ext_inet = yes; then
27918  cat >>confdefs.h <<_ACEOF
27919#define HAVE_LIBINET 1
27920_ACEOF
27921
27922		case "$LIBREPLACE_NETWORK_LIBS" in
27923		    *-linet*)
27924			;;
27925		    *)
27926			LIBREPLACE_NETWORK_LIBS="-linet $LIBREPLACE_NETWORK_LIBS"
27927			;;
27928		esac
27929
27930
27931fi
27932
27933			if test x"$ac_cv_lib_ext_nsl_s_connect" = x"yes" ||
27934		test x"$ac_cv_lib_ext_nsl_connect" = x"yes" ||
27935		test x"$ac_cv_lib_ext_socket_connect" = x"yes" ||
27936		test x"$ac_cv_lib_ext_inet_connect" = x"yes"
27937	then
27938
27939cat >>confdefs.h <<\_ACEOF
27940#define HAVE_CONNECT 1
27941_ACEOF
27942
27943	fi
27944fi
27945
27946
27947for ac_func in gethostbyname
27948do
27949as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27950{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27951$as_echo_n "checking for $ac_func... " >&6; }
27952if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27953  $as_echo_n "(cached) " >&6
27954else
27955  cat >conftest.$ac_ext <<_ACEOF
27956/* confdefs.h.  */
27957_ACEOF
27958cat confdefs.h >>conftest.$ac_ext
27959cat >>conftest.$ac_ext <<_ACEOF
27960/* end confdefs.h.  */
27961/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27962   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27963#define $ac_func innocuous_$ac_func
27964
27965/* System header to define __stub macros and hopefully few prototypes,
27966    which can conflict with char $ac_func (); below.
27967    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27968    <limits.h> exists even on freestanding compilers.  */
27969
27970#ifdef __STDC__
27971# include <limits.h>
27972#else
27973# include <assert.h>
27974#endif
27975
27976#undef $ac_func
27977
27978/* Override any GCC internal prototype to avoid an error.
27979   Use char because int might match the return type of a GCC
27980   builtin and then its argument prototype would still apply.  */
27981#ifdef __cplusplus
27982extern "C"
27983#endif
27984char $ac_func ();
27985/* The GNU C library defines this for functions which it implements
27986    to always fail with ENOSYS.  Some functions are actually named
27987    something starting with __ and the normal name is an alias.  */
27988#if defined __stub_$ac_func || defined __stub___$ac_func
27989choke me
27990#endif
27991
27992int
27993main ()
27994{
27995return $ac_func ();
27996  ;
27997  return 0;
27998}
27999_ACEOF
28000rm -f conftest.$ac_objext conftest$ac_exeext
28001if { (ac_try="$ac_link"
28002case "(($ac_try" in
28003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28004  *) ac_try_echo=$ac_try;;
28005esac
28006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28007$as_echo "$ac_try_echo") >&5
28008  (eval "$ac_link") 2>conftest.er1
28009  ac_status=$?
28010  grep -v '^ *+' conftest.er1 >conftest.err
28011  rm -f conftest.er1
28012  cat conftest.err >&5
28013  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014  (exit $ac_status); } && {
28015	 test -z "$ac_c_werror_flag" ||
28016	 test ! -s conftest.err
28017       } && test -s conftest$ac_exeext && {
28018	 test "$cross_compiling" = yes ||
28019	 $as_test_x conftest$ac_exeext
28020       }; then
28021  eval "$as_ac_var=yes"
28022else
28023  $as_echo "$as_me: failed program was:" >&5
28024sed 's/^/| /' conftest.$ac_ext >&5
28025
28026	eval "$as_ac_var=no"
28027fi
28028
28029rm -rf conftest.dSYM
28030rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28031      conftest$ac_exeext conftest.$ac_ext
28032fi
28033ac_res=`eval 'as_val=${'$as_ac_var'}
28034		 $as_echo "$as_val"'`
28035	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28036$as_echo "$ac_res" >&6; }
28037as_val=`eval 'as_val=${'$as_ac_var'}
28038		 $as_echo "$as_val"'`
28039   if test "x$as_val" = x""yes; then
28040  cat >>confdefs.h <<_ACEOF
28041#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28042_ACEOF
28043
28044fi
28045done
28046
28047if test x"$ac_cv_func_gethostbyname" = x"no"; then
28048
28049
28050
28051ac_check_lib_ext_save_LIBS=$LIBS
28052LIBS="-lnsl_s $LIBREPLACE_NETWORK_LIBS  $LIBS"
28053
28054
28055
28056
28057        { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl_s" >&5
28058$as_echo_n "checking for gethostbyname in -lnsl_s... " >&6; }
28059if test "${ac_cv_lib_ext_nsl_s_gethostbyname+set}" = set; then
28060  $as_echo_n "(cached) " >&6
28061else
28062  cat >conftest.$ac_ext <<_ACEOF
28063/* confdefs.h.  */
28064_ACEOF
28065cat confdefs.h >>conftest.$ac_ext
28066cat >>conftest.$ac_ext <<_ACEOF
28067/* end confdefs.h.  */
28068
28069/* Override any GCC internal prototype to avoid an error.
28070   Use char because int might match the return type of a GCC
28071   builtin and then its argument prototype would still apply.  */
28072#ifdef __cplusplus
28073extern "C"
28074#endif
28075char gethostbyname ();
28076int
28077main ()
28078{
28079return gethostbyname ();
28080  ;
28081  return 0;
28082}
28083_ACEOF
28084rm -f conftest.$ac_objext conftest$ac_exeext
28085if { (ac_try="$ac_link"
28086case "(($ac_try" in
28087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088  *) ac_try_echo=$ac_try;;
28089esac
28090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28091$as_echo "$ac_try_echo") >&5
28092  (eval "$ac_link") 2>conftest.er1
28093  ac_status=$?
28094  grep -v '^ *+' conftest.er1 >conftest.err
28095  rm -f conftest.er1
28096  cat conftest.err >&5
28097  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098  (exit $ac_status); } && {
28099	 test -z "$ac_c_werror_flag" ||
28100	 test ! -s conftest.err
28101       } && test -s conftest$ac_exeext && {
28102	 test "$cross_compiling" = yes ||
28103	 $as_test_x conftest$ac_exeext
28104       }; then
28105  ac_cv_lib_ext_nsl_s_gethostbyname=yes;
28106		  ac_cv_lib_ext_nsl_s=yes
28107else
28108  $as_echo "$as_me: failed program was:" >&5
28109sed 's/^/| /' conftest.$ac_ext >&5
28110
28111	ac_cv_lib_ext_nsl_s_gethostbyname=no;
28112		  ac_cv_lib_ext_nsl_s=no
28113fi
28114
28115rm -rf conftest.dSYM
28116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28117      conftest$ac_exeext conftest.$ac_ext
28118
28119fi
28120{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_nsl_s_gethostbyname" >&5
28121$as_echo "$ac_cv_lib_ext_nsl_s_gethostbyname" >&6; }
28122    if test $ac_cv_lib_ext_nsl_s_gethostbyname = yes; then
28123  cat >>confdefs.h <<_ACEOF
28124#define HAVE_GETHOSTBYNAME 1
28125_ACEOF
28126
28127fi
28128
28129LIBS=$ac_check_lib_ext_save_LIBS
28130
28131if test $ac_cv_lib_ext_nsl_s = yes; then
28132  cat >>confdefs.h <<_ACEOF
28133#define HAVE_LIBNSL_S 1
28134_ACEOF
28135
28136		case "$LIBREPLACE_NETWORK_LIBS" in
28137		    *-lnsl_s*)
28138			;;
28139		    *)
28140			LIBREPLACE_NETWORK_LIBS="-lnsl_s $LIBREPLACE_NETWORK_LIBS"
28141			;;
28142		esac
28143
28144
28145fi
28146
28147
28148
28149
28150ac_check_lib_ext_save_LIBS=$LIBS
28151LIBS="-lnsl $LIBREPLACE_NETWORK_LIBS  $LIBS"
28152
28153
28154
28155
28156        { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28157$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
28158if test "${ac_cv_lib_ext_nsl_gethostbyname+set}" = set; then
28159  $as_echo_n "(cached) " >&6
28160else
28161  cat >conftest.$ac_ext <<_ACEOF
28162/* confdefs.h.  */
28163_ACEOF
28164cat confdefs.h >>conftest.$ac_ext
28165cat >>conftest.$ac_ext <<_ACEOF
28166/* end confdefs.h.  */
28167
28168/* Override any GCC internal prototype to avoid an error.
28169   Use char because int might match the return type of a GCC
28170   builtin and then its argument prototype would still apply.  */
28171#ifdef __cplusplus
28172extern "C"
28173#endif
28174char gethostbyname ();
28175int
28176main ()
28177{
28178return gethostbyname ();
28179  ;
28180  return 0;
28181}
28182_ACEOF
28183rm -f conftest.$ac_objext conftest$ac_exeext
28184if { (ac_try="$ac_link"
28185case "(($ac_try" in
28186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28187  *) ac_try_echo=$ac_try;;
28188esac
28189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28190$as_echo "$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  $as_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	 test "$cross_compiling" = yes ||
28202	 $as_test_x conftest$ac_exeext
28203       }; then
28204  ac_cv_lib_ext_nsl_gethostbyname=yes;
28205		  ac_cv_lib_ext_nsl=yes
28206else
28207  $as_echo "$as_me: failed program was:" >&5
28208sed 's/^/| /' conftest.$ac_ext >&5
28209
28210	ac_cv_lib_ext_nsl_gethostbyname=no;
28211		  ac_cv_lib_ext_nsl=no
28212fi
28213
28214rm -rf conftest.dSYM
28215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28216      conftest$ac_exeext conftest.$ac_ext
28217
28218fi
28219{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_nsl_gethostbyname" >&5
28220$as_echo "$ac_cv_lib_ext_nsl_gethostbyname" >&6; }
28221    if test $ac_cv_lib_ext_nsl_gethostbyname = yes; then
28222  cat >>confdefs.h <<_ACEOF
28223#define HAVE_GETHOSTBYNAME 1
28224_ACEOF
28225
28226fi
28227
28228LIBS=$ac_check_lib_ext_save_LIBS
28229
28230if test $ac_cv_lib_ext_nsl = yes; then
28231  cat >>confdefs.h <<_ACEOF
28232#define HAVE_LIBNSL 1
28233_ACEOF
28234
28235		case "$LIBREPLACE_NETWORK_LIBS" in
28236		    *-lnsl*)
28237			;;
28238		    *)
28239			LIBREPLACE_NETWORK_LIBS="-lnsl $LIBREPLACE_NETWORK_LIBS"
28240			;;
28241		esac
28242
28243
28244fi
28245
28246
28247
28248
28249ac_check_lib_ext_save_LIBS=$LIBS
28250LIBS="-lsocket $LIBREPLACE_NETWORK_LIBS  $LIBS"
28251
28252
28253
28254
28255        { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
28256$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
28257if test "${ac_cv_lib_ext_socket_gethostbyname+set}" = set; then
28258  $as_echo_n "(cached) " >&6
28259else
28260  cat >conftest.$ac_ext <<_ACEOF
28261/* confdefs.h.  */
28262_ACEOF
28263cat confdefs.h >>conftest.$ac_ext
28264cat >>conftest.$ac_ext <<_ACEOF
28265/* end confdefs.h.  */
28266
28267/* Override any GCC internal prototype to avoid an error.
28268   Use char because int might match the return type of a GCC
28269   builtin and then its argument prototype would still apply.  */
28270#ifdef __cplusplus
28271extern "C"
28272#endif
28273char gethostbyname ();
28274int
28275main ()
28276{
28277return gethostbyname ();
28278  ;
28279  return 0;
28280}
28281_ACEOF
28282rm -f conftest.$ac_objext conftest$ac_exeext
28283if { (ac_try="$ac_link"
28284case "(($ac_try" in
28285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28286  *) ac_try_echo=$ac_try;;
28287esac
28288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28289$as_echo "$ac_try_echo") >&5
28290  (eval "$ac_link") 2>conftest.er1
28291  ac_status=$?
28292  grep -v '^ *+' conftest.er1 >conftest.err
28293  rm -f conftest.er1
28294  cat conftest.err >&5
28295  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296  (exit $ac_status); } && {
28297	 test -z "$ac_c_werror_flag" ||
28298	 test ! -s conftest.err
28299       } && test -s conftest$ac_exeext && {
28300	 test "$cross_compiling" = yes ||
28301	 $as_test_x conftest$ac_exeext
28302       }; then
28303  ac_cv_lib_ext_socket_gethostbyname=yes;
28304		  ac_cv_lib_ext_socket=yes
28305else
28306  $as_echo "$as_me: failed program was:" >&5
28307sed 's/^/| /' conftest.$ac_ext >&5
28308
28309	ac_cv_lib_ext_socket_gethostbyname=no;
28310		  ac_cv_lib_ext_socket=no
28311fi
28312
28313rm -rf conftest.dSYM
28314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28315      conftest$ac_exeext conftest.$ac_ext
28316
28317fi
28318{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_socket_gethostbyname" >&5
28319$as_echo "$ac_cv_lib_ext_socket_gethostbyname" >&6; }
28320    if test $ac_cv_lib_ext_socket_gethostbyname = yes; then
28321  cat >>confdefs.h <<_ACEOF
28322#define HAVE_GETHOSTBYNAME 1
28323_ACEOF
28324
28325fi
28326
28327LIBS=$ac_check_lib_ext_save_LIBS
28328
28329if test $ac_cv_lib_ext_socket = yes; then
28330  cat >>confdefs.h <<_ACEOF
28331#define HAVE_LIBSOCKET 1
28332_ACEOF
28333
28334		case "$LIBREPLACE_NETWORK_LIBS" in
28335		    *-lsocket*)
28336			;;
28337		    *)
28338			LIBREPLACE_NETWORK_LIBS="-lsocket $LIBREPLACE_NETWORK_LIBS"
28339			;;
28340		esac
28341
28342
28343fi
28344
28345			if test x"$ac_cv_lib_ext_nsl_s_gethostbyname" = x"yes" ||
28346		test x"$ac_cv_lib_ext_nsl_gethostbyname" = x"yes" ||
28347		test x"$ac_cv_lib_ext_socket_gethostbyname" = x"yes"
28348	then
28349
28350cat >>confdefs.h <<\_ACEOF
28351#define HAVE_GETHOSTBYNAME 1
28352_ACEOF
28353
28354	fi
28355fi
28356
28357
28358for ac_func in if_nametoindex
28359do
28360as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28361{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28362$as_echo_n "checking for $ac_func... " >&6; }
28363if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28364  $as_echo_n "(cached) " >&6
28365else
28366  cat >conftest.$ac_ext <<_ACEOF
28367/* confdefs.h.  */
28368_ACEOF
28369cat confdefs.h >>conftest.$ac_ext
28370cat >>conftest.$ac_ext <<_ACEOF
28371/* end confdefs.h.  */
28372/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28373   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28374#define $ac_func innocuous_$ac_func
28375
28376/* System header to define __stub macros and hopefully few prototypes,
28377    which can conflict with char $ac_func (); below.
28378    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28379    <limits.h> exists even on freestanding compilers.  */
28380
28381#ifdef __STDC__
28382# include <limits.h>
28383#else
28384# include <assert.h>
28385#endif
28386
28387#undef $ac_func
28388
28389/* Override any GCC internal prototype to avoid an error.
28390   Use char because int might match the return type of a GCC
28391   builtin and then its argument prototype would still apply.  */
28392#ifdef __cplusplus
28393extern "C"
28394#endif
28395char $ac_func ();
28396/* The GNU C library defines this for functions which it implements
28397    to always fail with ENOSYS.  Some functions are actually named
28398    something starting with __ and the normal name is an alias.  */
28399#if defined __stub_$ac_func || defined __stub___$ac_func
28400choke me
28401#endif
28402
28403int
28404main ()
28405{
28406return $ac_func ();
28407  ;
28408  return 0;
28409}
28410_ACEOF
28411rm -f conftest.$ac_objext conftest$ac_exeext
28412if { (ac_try="$ac_link"
28413case "(($ac_try" in
28414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28415  *) ac_try_echo=$ac_try;;
28416esac
28417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28418$as_echo "$ac_try_echo") >&5
28419  (eval "$ac_link") 2>conftest.er1
28420  ac_status=$?
28421  grep -v '^ *+' conftest.er1 >conftest.err
28422  rm -f conftest.er1
28423  cat conftest.err >&5
28424  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425  (exit $ac_status); } && {
28426	 test -z "$ac_c_werror_flag" ||
28427	 test ! -s conftest.err
28428       } && test -s conftest$ac_exeext && {
28429	 test "$cross_compiling" = yes ||
28430	 $as_test_x conftest$ac_exeext
28431       }; then
28432  eval "$as_ac_var=yes"
28433else
28434  $as_echo "$as_me: failed program was:" >&5
28435sed 's/^/| /' conftest.$ac_ext >&5
28436
28437	eval "$as_ac_var=no"
28438fi
28439
28440rm -rf conftest.dSYM
28441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28442      conftest$ac_exeext conftest.$ac_ext
28443fi
28444ac_res=`eval 'as_val=${'$as_ac_var'}
28445		 $as_echo "$as_val"'`
28446	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28447$as_echo "$ac_res" >&6; }
28448as_val=`eval 'as_val=${'$as_ac_var'}
28449		 $as_echo "$as_val"'`
28450   if test "x$as_val" = x""yes; then
28451  cat >>confdefs.h <<_ACEOF
28452#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28453_ACEOF
28454
28455fi
28456done
28457
28458if test x"$ac_cv_func_if_nametoindex" = x"no"; then
28459
28460
28461
28462ac_check_lib_ext_save_LIBS=$LIBS
28463LIBS="-lipv6 $LIBREPLACE_NETWORK_LIBS  $LIBS"
28464
28465
28466
28467
28468        { $as_echo "$as_me:$LINENO: checking for if_nametoindex in -lipv6" >&5
28469$as_echo_n "checking for if_nametoindex in -lipv6... " >&6; }
28470if test "${ac_cv_lib_ext_ipv6_if_nametoindex+set}" = set; then
28471  $as_echo_n "(cached) " >&6
28472else
28473  cat >conftest.$ac_ext <<_ACEOF
28474/* confdefs.h.  */
28475_ACEOF
28476cat confdefs.h >>conftest.$ac_ext
28477cat >>conftest.$ac_ext <<_ACEOF
28478/* end confdefs.h.  */
28479
28480/* Override any GCC internal prototype to avoid an error.
28481   Use char because int might match the return type of a GCC
28482   builtin and then its argument prototype would still apply.  */
28483#ifdef __cplusplus
28484extern "C"
28485#endif
28486char if_nametoindex ();
28487int
28488main ()
28489{
28490return if_nametoindex ();
28491  ;
28492  return 0;
28493}
28494_ACEOF
28495rm -f conftest.$ac_objext conftest$ac_exeext
28496if { (ac_try="$ac_link"
28497case "(($ac_try" in
28498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28499  *) ac_try_echo=$ac_try;;
28500esac
28501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28502$as_echo "$ac_try_echo") >&5
28503  (eval "$ac_link") 2>conftest.er1
28504  ac_status=$?
28505  grep -v '^ *+' conftest.er1 >conftest.err
28506  rm -f conftest.er1
28507  cat conftest.err >&5
28508  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509  (exit $ac_status); } && {
28510	 test -z "$ac_c_werror_flag" ||
28511	 test ! -s conftest.err
28512       } && test -s conftest$ac_exeext && {
28513	 test "$cross_compiling" = yes ||
28514	 $as_test_x conftest$ac_exeext
28515       }; then
28516  ac_cv_lib_ext_ipv6_if_nametoindex=yes;
28517		  ac_cv_lib_ext_ipv6=yes
28518else
28519  $as_echo "$as_me: failed program was:" >&5
28520sed 's/^/| /' conftest.$ac_ext >&5
28521
28522	ac_cv_lib_ext_ipv6_if_nametoindex=no;
28523		  ac_cv_lib_ext_ipv6=no
28524fi
28525
28526rm -rf conftest.dSYM
28527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28528      conftest$ac_exeext conftest.$ac_ext
28529
28530fi
28531{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_ipv6_if_nametoindex" >&5
28532$as_echo "$ac_cv_lib_ext_ipv6_if_nametoindex" >&6; }
28533    if test $ac_cv_lib_ext_ipv6_if_nametoindex = yes; then
28534  cat >>confdefs.h <<_ACEOF
28535#define HAVE_IF_NAMETOINDEX 1
28536_ACEOF
28537
28538fi
28539
28540LIBS=$ac_check_lib_ext_save_LIBS
28541
28542if test $ac_cv_lib_ext_ipv6 = yes; then
28543  cat >>confdefs.h <<_ACEOF
28544#define HAVE_LIBIPV6 1
28545_ACEOF
28546
28547		case "$LIBREPLACE_NETWORK_LIBS" in
28548		    *-lipv6*)
28549			;;
28550		    *)
28551			LIBREPLACE_NETWORK_LIBS="-lipv6 $LIBREPLACE_NETWORK_LIBS"
28552			;;
28553		esac
28554
28555
28556fi
28557
28558			if test x"$ac_cv_lib_ext_ipv6_if_nametoindex" = x"yes"
28559	then
28560
28561cat >>confdefs.h <<\_ACEOF
28562#define HAVE_IF_NAMETOINDEX 1
28563_ACEOF
28564
28565	fi
28566fi
28567
28568# The following tests need LIBS="${LIBREPLACE_NETWORK_LIBS}"
28569old_LIBS=$LIBS
28570LIBS="${LIBREPLACE_NETWORK_LIBS}"
28571libreplace_SAVE_CPPFLAGS="$CPPFLAGS"
28572CPPFLAGS="$CPPFLAGS -I$libreplacedir"
28573
28574
28575for ac_func in socketpair
28576do
28577as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28578{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28579$as_echo_n "checking for $ac_func... " >&6; }
28580if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28581  $as_echo_n "(cached) " >&6
28582else
28583  cat >conftest.$ac_ext <<_ACEOF
28584/* confdefs.h.  */
28585_ACEOF
28586cat confdefs.h >>conftest.$ac_ext
28587cat >>conftest.$ac_ext <<_ACEOF
28588/* end confdefs.h.  */
28589/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28590   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28591#define $ac_func innocuous_$ac_func
28592
28593/* System header to define __stub macros and hopefully few prototypes,
28594    which can conflict with char $ac_func (); below.
28595    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28596    <limits.h> exists even on freestanding compilers.  */
28597
28598#ifdef __STDC__
28599# include <limits.h>
28600#else
28601# include <assert.h>
28602#endif
28603
28604#undef $ac_func
28605
28606/* Override any GCC internal prototype to avoid an error.
28607   Use char because int might match the return type of a GCC
28608   builtin and then its argument prototype would still apply.  */
28609#ifdef __cplusplus
28610extern "C"
28611#endif
28612char $ac_func ();
28613/* The GNU C library defines this for functions which it implements
28614    to always fail with ENOSYS.  Some functions are actually named
28615    something starting with __ and the normal name is an alias.  */
28616#if defined __stub_$ac_func || defined __stub___$ac_func
28617choke me
28618#endif
28619
28620int
28621main ()
28622{
28623return $ac_func ();
28624  ;
28625  return 0;
28626}
28627_ACEOF
28628rm -f conftest.$ac_objext conftest$ac_exeext
28629if { (ac_try="$ac_link"
28630case "(($ac_try" in
28631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28632  *) ac_try_echo=$ac_try;;
28633esac
28634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28635$as_echo "$ac_try_echo") >&5
28636  (eval "$ac_link") 2>conftest.er1
28637  ac_status=$?
28638  grep -v '^ *+' conftest.er1 >conftest.err
28639  rm -f conftest.er1
28640  cat conftest.err >&5
28641  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642  (exit $ac_status); } && {
28643	 test -z "$ac_c_werror_flag" ||
28644	 test ! -s conftest.err
28645       } && test -s conftest$ac_exeext && {
28646	 test "$cross_compiling" = yes ||
28647	 $as_test_x conftest$ac_exeext
28648       }; then
28649  eval "$as_ac_var=yes"
28650else
28651  $as_echo "$as_me: failed program was:" >&5
28652sed 's/^/| /' conftest.$ac_ext >&5
28653
28654	eval "$as_ac_var=no"
28655fi
28656
28657rm -rf conftest.dSYM
28658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28659      conftest$ac_exeext conftest.$ac_ext
28660fi
28661ac_res=`eval 'as_val=${'$as_ac_var'}
28662		 $as_echo "$as_val"'`
28663	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28664$as_echo "$ac_res" >&6; }
28665as_val=`eval 'as_val=${'$as_ac_var'}
28666		 $as_echo "$as_val"'`
28667   if test "x$as_val" = x""yes; then
28668  cat >>confdefs.h <<_ACEOF
28669#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28670_ACEOF
28671
28672else
28673  LIBREPLACE_NETWORK_OBJS="${LIBREPLACE_NETWORK_OBJS} $libreplacedir/socketpair.o"
28674fi
28675done
28676
28677
28678{ $as_echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
28679$as_echo_n "checking for broken inet_ntoa... " >&6; }
28680if test "${libreplace_cv_REPLACE_INET_NTOA+set}" = set; then
28681  $as_echo_n "(cached) " >&6
28682else
28683
28684if test "$cross_compiling" = yes; then
28685  libreplace_cv_REPLACE_INET_NTOA=cross
28686else
28687  cat >conftest.$ac_ext <<_ACEOF
28688/* confdefs.h.  */
28689_ACEOF
28690cat confdefs.h >>conftest.$ac_ext
28691cat >>conftest.$ac_ext <<_ACEOF
28692/* end confdefs.h.  */
28693
28694#include <stdio.h>
28695#include <unistd.h>
28696#include <sys/types.h>
28697#include <netinet/in.h>
28698#ifdef HAVE_ARPA_INET_H
28699#include <arpa/inet.h>
28700#endif
28701main() { struct in_addr ip; ip.s_addr = 0x12345678;
28702if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
28703    strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
28704exit(1);}
28705_ACEOF
28706rm -f conftest$ac_exeext
28707if { (ac_try="$ac_link"
28708case "(($ac_try" in
28709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28710  *) ac_try_echo=$ac_try;;
28711esac
28712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28713$as_echo "$ac_try_echo") >&5
28714  (eval "$ac_link") 2>&5
28715  ac_status=$?
28716  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28718  { (case "(($ac_try" in
28719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28720  *) ac_try_echo=$ac_try;;
28721esac
28722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28723$as_echo "$ac_try_echo") >&5
28724  (eval "$ac_try") 2>&5
28725  ac_status=$?
28726  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727  (exit $ac_status); }; }; then
28728  libreplace_cv_REPLACE_INET_NTOA=yes
28729else
28730  $as_echo "$as_me: program exited with status $ac_status" >&5
28731$as_echo "$as_me: failed program was:" >&5
28732sed 's/^/| /' conftest.$ac_ext >&5
28733
28734( exit $ac_status )
28735libreplace_cv_REPLACE_INET_NTOA=no
28736fi
28737rm -rf conftest.dSYM
28738rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28739fi
28740
28741
28742fi
28743{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_REPLACE_INET_NTOA" >&5
28744$as_echo "$libreplace_cv_REPLACE_INET_NTOA" >&6; }
28745
28746
28747for ac_func in inet_ntoa
28748do
28749as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28750{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28751$as_echo_n "checking for $ac_func... " >&6; }
28752if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28753  $as_echo_n "(cached) " >&6
28754else
28755  cat >conftest.$ac_ext <<_ACEOF
28756/* confdefs.h.  */
28757_ACEOF
28758cat confdefs.h >>conftest.$ac_ext
28759cat >>conftest.$ac_ext <<_ACEOF
28760/* end confdefs.h.  */
28761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28762   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28763#define $ac_func innocuous_$ac_func
28764
28765/* System header to define __stub macros and hopefully few prototypes,
28766    which can conflict with char $ac_func (); below.
28767    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28768    <limits.h> exists even on freestanding compilers.  */
28769
28770#ifdef __STDC__
28771# include <limits.h>
28772#else
28773# include <assert.h>
28774#endif
28775
28776#undef $ac_func
28777
28778/* Override any GCC internal prototype to avoid an error.
28779   Use char because int might match the return type of a GCC
28780   builtin and then its argument prototype would still apply.  */
28781#ifdef __cplusplus
28782extern "C"
28783#endif
28784char $ac_func ();
28785/* The GNU C library defines this for functions which it implements
28786    to always fail with ENOSYS.  Some functions are actually named
28787    something starting with __ and the normal name is an alias.  */
28788#if defined __stub_$ac_func || defined __stub___$ac_func
28789choke me
28790#endif
28791
28792int
28793main ()
28794{
28795return $ac_func ();
28796  ;
28797  return 0;
28798}
28799_ACEOF
28800rm -f conftest.$ac_objext conftest$ac_exeext
28801if { (ac_try="$ac_link"
28802case "(($ac_try" in
28803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28804  *) ac_try_echo=$ac_try;;
28805esac
28806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28807$as_echo "$ac_try_echo") >&5
28808  (eval "$ac_link") 2>conftest.er1
28809  ac_status=$?
28810  grep -v '^ *+' conftest.er1 >conftest.err
28811  rm -f conftest.er1
28812  cat conftest.err >&5
28813  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814  (exit $ac_status); } && {
28815	 test -z "$ac_c_werror_flag" ||
28816	 test ! -s conftest.err
28817       } && test -s conftest$ac_exeext && {
28818	 test "$cross_compiling" = yes ||
28819	 $as_test_x conftest$ac_exeext
28820       }; then
28821  eval "$as_ac_var=yes"
28822else
28823  $as_echo "$as_me: failed program was:" >&5
28824sed 's/^/| /' conftest.$ac_ext >&5
28825
28826	eval "$as_ac_var=no"
28827fi
28828
28829rm -rf conftest.dSYM
28830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28831      conftest$ac_exeext conftest.$ac_ext
28832fi
28833ac_res=`eval 'as_val=${'$as_ac_var'}
28834		 $as_echo "$as_val"'`
28835	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28836$as_echo "$ac_res" >&6; }
28837as_val=`eval 'as_val=${'$as_ac_var'}
28838		 $as_echo "$as_val"'`
28839   if test "x$as_val" = x""yes; then
28840  cat >>confdefs.h <<_ACEOF
28841#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28842_ACEOF
28843
28844else
28845  libreplace_cv_REPLACE_INET_NTOA=yes
28846fi
28847done
28848
28849if test x"$libreplace_cv_REPLACE_INET_NTOA" = x"yes"; then
28850
28851cat >>confdefs.h <<\_ACEOF
28852#define REPLACE_INET_NTOA 1
28853_ACEOF
28854
28855    LIBREPLACE_NETWORK_OBJS="${LIBREPLACE_NETWORK_OBJS} $libreplacedir/inet_ntoa.o"
28856fi
28857
28858
28859for ac_func in inet_aton
28860do
28861as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28862{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28863$as_echo_n "checking for $ac_func... " >&6; }
28864if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28865  $as_echo_n "(cached) " >&6
28866else
28867  cat >conftest.$ac_ext <<_ACEOF
28868/* confdefs.h.  */
28869_ACEOF
28870cat confdefs.h >>conftest.$ac_ext
28871cat >>conftest.$ac_ext <<_ACEOF
28872/* end confdefs.h.  */
28873/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28874   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28875#define $ac_func innocuous_$ac_func
28876
28877/* System header to define __stub macros and hopefully few prototypes,
28878    which can conflict with char $ac_func (); below.
28879    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28880    <limits.h> exists even on freestanding compilers.  */
28881
28882#ifdef __STDC__
28883# include <limits.h>
28884#else
28885# include <assert.h>
28886#endif
28887
28888#undef $ac_func
28889
28890/* Override any GCC internal prototype to avoid an error.
28891   Use char because int might match the return type of a GCC
28892   builtin and then its argument prototype would still apply.  */
28893#ifdef __cplusplus
28894extern "C"
28895#endif
28896char $ac_func ();
28897/* The GNU C library defines this for functions which it implements
28898    to always fail with ENOSYS.  Some functions are actually named
28899    something starting with __ and the normal name is an alias.  */
28900#if defined __stub_$ac_func || defined __stub___$ac_func
28901choke me
28902#endif
28903
28904int
28905main ()
28906{
28907return $ac_func ();
28908  ;
28909  return 0;
28910}
28911_ACEOF
28912rm -f conftest.$ac_objext conftest$ac_exeext
28913if { (ac_try="$ac_link"
28914case "(($ac_try" in
28915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28916  *) ac_try_echo=$ac_try;;
28917esac
28918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28919$as_echo "$ac_try_echo") >&5
28920  (eval "$ac_link") 2>conftest.er1
28921  ac_status=$?
28922  grep -v '^ *+' conftest.er1 >conftest.err
28923  rm -f conftest.er1
28924  cat conftest.err >&5
28925  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926  (exit $ac_status); } && {
28927	 test -z "$ac_c_werror_flag" ||
28928	 test ! -s conftest.err
28929       } && test -s conftest$ac_exeext && {
28930	 test "$cross_compiling" = yes ||
28931	 $as_test_x conftest$ac_exeext
28932       }; then
28933  eval "$as_ac_var=yes"
28934else
28935  $as_echo "$as_me: failed program was:" >&5
28936sed 's/^/| /' conftest.$ac_ext >&5
28937
28938	eval "$as_ac_var=no"
28939fi
28940
28941rm -rf conftest.dSYM
28942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28943      conftest$ac_exeext conftest.$ac_ext
28944fi
28945ac_res=`eval 'as_val=${'$as_ac_var'}
28946		 $as_echo "$as_val"'`
28947	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28948$as_echo "$ac_res" >&6; }
28949as_val=`eval 'as_val=${'$as_ac_var'}
28950		 $as_echo "$as_val"'`
28951   if test "x$as_val" = x""yes; then
28952  cat >>confdefs.h <<_ACEOF
28953#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28954_ACEOF
28955
28956else
28957  LIBREPLACE_NETWORK_OBJS="${LIBREPLACE_NETWORK_OBJS} $libreplacedir/inet_aton.o"
28958fi
28959done
28960
28961
28962
28963for ac_func in inet_ntop
28964do
28965as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28966{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28967$as_echo_n "checking for $ac_func... " >&6; }
28968if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28969  $as_echo_n "(cached) " >&6
28970else
28971  cat >conftest.$ac_ext <<_ACEOF
28972/* confdefs.h.  */
28973_ACEOF
28974cat confdefs.h >>conftest.$ac_ext
28975cat >>conftest.$ac_ext <<_ACEOF
28976/* end confdefs.h.  */
28977/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28978   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28979#define $ac_func innocuous_$ac_func
28980
28981/* System header to define __stub macros and hopefully few prototypes,
28982    which can conflict with char $ac_func (); below.
28983    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28984    <limits.h> exists even on freestanding compilers.  */
28985
28986#ifdef __STDC__
28987# include <limits.h>
28988#else
28989# include <assert.h>
28990#endif
28991
28992#undef $ac_func
28993
28994/* Override any GCC internal prototype to avoid an error.
28995   Use char because int might match the return type of a GCC
28996   builtin and then its argument prototype would still apply.  */
28997#ifdef __cplusplus
28998extern "C"
28999#endif
29000char $ac_func ();
29001/* The GNU C library defines this for functions which it implements
29002    to always fail with ENOSYS.  Some functions are actually named
29003    something starting with __ and the normal name is an alias.  */
29004#if defined __stub_$ac_func || defined __stub___$ac_func
29005choke me
29006#endif
29007
29008int
29009main ()
29010{
29011return $ac_func ();
29012  ;
29013  return 0;
29014}
29015_ACEOF
29016rm -f conftest.$ac_objext conftest$ac_exeext
29017if { (ac_try="$ac_link"
29018case "(($ac_try" in
29019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29020  *) ac_try_echo=$ac_try;;
29021esac
29022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29023$as_echo "$ac_try_echo") >&5
29024  (eval "$ac_link") 2>conftest.er1
29025  ac_status=$?
29026  grep -v '^ *+' conftest.er1 >conftest.err
29027  rm -f conftest.er1
29028  cat conftest.err >&5
29029  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030  (exit $ac_status); } && {
29031	 test -z "$ac_c_werror_flag" ||
29032	 test ! -s conftest.err
29033       } && test -s conftest$ac_exeext && {
29034	 test "$cross_compiling" = yes ||
29035	 $as_test_x conftest$ac_exeext
29036       }; then
29037  eval "$as_ac_var=yes"
29038else
29039  $as_echo "$as_me: failed program was:" >&5
29040sed 's/^/| /' conftest.$ac_ext >&5
29041
29042	eval "$as_ac_var=no"
29043fi
29044
29045rm -rf conftest.dSYM
29046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29047      conftest$ac_exeext conftest.$ac_ext
29048fi
29049ac_res=`eval 'as_val=${'$as_ac_var'}
29050		 $as_echo "$as_val"'`
29051	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29052$as_echo "$ac_res" >&6; }
29053as_val=`eval 'as_val=${'$as_ac_var'}
29054		 $as_echo "$as_val"'`
29055   if test "x$as_val" = x""yes; then
29056  cat >>confdefs.h <<_ACEOF
29057#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29058_ACEOF
29059
29060else
29061  LIBREPLACE_NETWORK_OBJS="${LIBREPLACE_NETWORK_OBJS} $libreplacedir/inet_ntop.o"
29062fi
29063done
29064
29065
29066
29067for ac_func in inet_pton
29068do
29069as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29070{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29071$as_echo_n "checking for $ac_func... " >&6; }
29072if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29073  $as_echo_n "(cached) " >&6
29074else
29075  cat >conftest.$ac_ext <<_ACEOF
29076/* confdefs.h.  */
29077_ACEOF
29078cat confdefs.h >>conftest.$ac_ext
29079cat >>conftest.$ac_ext <<_ACEOF
29080/* end confdefs.h.  */
29081/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29082   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29083#define $ac_func innocuous_$ac_func
29084
29085/* System header to define __stub macros and hopefully few prototypes,
29086    which can conflict with char $ac_func (); below.
29087    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29088    <limits.h> exists even on freestanding compilers.  */
29089
29090#ifdef __STDC__
29091# include <limits.h>
29092#else
29093# include <assert.h>
29094#endif
29095
29096#undef $ac_func
29097
29098/* Override any GCC internal prototype to avoid an error.
29099   Use char because int might match the return type of a GCC
29100   builtin and then its argument prototype would still apply.  */
29101#ifdef __cplusplus
29102extern "C"
29103#endif
29104char $ac_func ();
29105/* The GNU C library defines this for functions which it implements
29106    to always fail with ENOSYS.  Some functions are actually named
29107    something starting with __ and the normal name is an alias.  */
29108#if defined __stub_$ac_func || defined __stub___$ac_func
29109choke me
29110#endif
29111
29112int
29113main ()
29114{
29115return $ac_func ();
29116  ;
29117  return 0;
29118}
29119_ACEOF
29120rm -f conftest.$ac_objext conftest$ac_exeext
29121if { (ac_try="$ac_link"
29122case "(($ac_try" in
29123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29124  *) ac_try_echo=$ac_try;;
29125esac
29126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29127$as_echo "$ac_try_echo") >&5
29128  (eval "$ac_link") 2>conftest.er1
29129  ac_status=$?
29130  grep -v '^ *+' conftest.er1 >conftest.err
29131  rm -f conftest.er1
29132  cat conftest.err >&5
29133  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134  (exit $ac_status); } && {
29135	 test -z "$ac_c_werror_flag" ||
29136	 test ! -s conftest.err
29137       } && test -s conftest$ac_exeext && {
29138	 test "$cross_compiling" = yes ||
29139	 $as_test_x conftest$ac_exeext
29140       }; then
29141  eval "$as_ac_var=yes"
29142else
29143  $as_echo "$as_me: failed program was:" >&5
29144sed 's/^/| /' conftest.$ac_ext >&5
29145
29146	eval "$as_ac_var=no"
29147fi
29148
29149rm -rf conftest.dSYM
29150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29151      conftest$ac_exeext conftest.$ac_ext
29152fi
29153ac_res=`eval 'as_val=${'$as_ac_var'}
29154		 $as_echo "$as_val"'`
29155	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29156$as_echo "$ac_res" >&6; }
29157as_val=`eval 'as_val=${'$as_ac_var'}
29158		 $as_echo "$as_val"'`
29159   if test "x$as_val" = x""yes; then
29160  cat >>confdefs.h <<_ACEOF
29161#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29162_ACEOF
29163
29164else
29165  LIBREPLACE_NETWORK_OBJS="${LIBREPLACE_NETWORK_OBJS} $libreplacedir/inet_pton.o"
29166fi
29167done
29168
29169
29170{ $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
29171$as_echo_n "checking for getaddrinfo... " >&6; }
29172if test "${libreplace_cv_HAVE_GETADDRINFO+set}" = set; then
29173  $as_echo_n "(cached) " >&6
29174else
29175
29176cat >conftest.$ac_ext <<_ACEOF
29177/* confdefs.h.  */
29178_ACEOF
29179cat confdefs.h >>conftest.$ac_ext
29180cat >>conftest.$ac_ext <<_ACEOF
29181/* end confdefs.h.  */
29182
29183#include <sys/types.h>
29184#if STDC_HEADERS
29185#include <stdlib.h>
29186#include <stddef.h>
29187#endif
29188#include <sys/socket.h>
29189#include <netdb.h>
29190int
29191main ()
29192{
29193
29194struct sockaddr sa;
29195struct addrinfo *ai = NULL;
29196int ret = getaddrinfo(NULL, NULL, NULL, &ai);
29197if (ret != 0) {
29198	const char *es = gai_strerror(ret);
29199}
29200freeaddrinfo(ai);
29201ret = getnameinfo(&sa, sizeof(sa),
29202		NULL, 0,
29203		NULL, 0, 0);
29204
29205
29206  ;
29207  return 0;
29208}
29209_ACEOF
29210rm -f conftest.$ac_objext conftest$ac_exeext
29211if { (ac_try="$ac_link"
29212case "(($ac_try" in
29213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29214  *) ac_try_echo=$ac_try;;
29215esac
29216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29217$as_echo "$ac_try_echo") >&5
29218  (eval "$ac_link") 2>conftest.er1
29219  ac_status=$?
29220  grep -v '^ *+' conftest.er1 >conftest.err
29221  rm -f conftest.er1
29222  cat conftest.err >&5
29223  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224  (exit $ac_status); } && {
29225	 test -z "$ac_c_werror_flag" ||
29226	 test ! -s conftest.err
29227       } && test -s conftest$ac_exeext && {
29228	 test "$cross_compiling" = yes ||
29229	 $as_test_x conftest$ac_exeext
29230       }; then
29231  libreplace_cv_HAVE_GETADDRINFO=yes
29232else
29233  $as_echo "$as_me: failed program was:" >&5
29234sed 's/^/| /' conftest.$ac_ext >&5
29235
29236	libreplace_cv_HAVE_GETADDRINFO=no
29237fi
29238
29239rm -rf conftest.dSYM
29240rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29241      conftest$ac_exeext conftest.$ac_ext
29242fi
29243{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_GETADDRINFO" >&5
29244$as_echo "$libreplace_cv_HAVE_GETADDRINFO" >&6; }
29245if test x"$libreplace_cv_HAVE_GETADDRINFO" = x"yes"; then
29246
29247cat >>confdefs.h <<\_ACEOF
29248#define HAVE_GETADDRINFO 1
29249_ACEOF
29250
29251
29252cat >>confdefs.h <<\_ACEOF
29253#define HAVE_GETNAMEINFO 1
29254_ACEOF
29255
29256
29257cat >>confdefs.h <<\_ACEOF
29258#define HAVE_FREEADDRINFO 1
29259_ACEOF
29260
29261
29262cat >>confdefs.h <<\_ACEOF
29263#define HAVE_GAI_STRERROR 1
29264_ACEOF
29265
29266else
29267	LIBREPLACE_NETWORK_OBJS="${LIBREPLACE_NETWORK_OBJS} $libreplacedir/getaddrinfo.o"
29268fi
29269
29270
29271for ac_header in ifaddrs.h
29272do
29273as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29275  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29276$as_echo_n "checking for $ac_header... " >&6; }
29277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29278  $as_echo_n "(cached) " >&6
29279fi
29280ac_res=`eval 'as_val=${'$as_ac_Header'}
29281		 $as_echo "$as_val"'`
29282	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29283$as_echo "$ac_res" >&6; }
29284else
29285  # Is the header compilable?
29286{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29287$as_echo_n "checking $ac_header usability... " >&6; }
29288cat >conftest.$ac_ext <<_ACEOF
29289/* confdefs.h.  */
29290_ACEOF
29291cat confdefs.h >>conftest.$ac_ext
29292cat >>conftest.$ac_ext <<_ACEOF
29293/* end confdefs.h.  */
29294$ac_includes_default
29295#include <$ac_header>
29296_ACEOF
29297rm -f conftest.$ac_objext
29298if { (ac_try="$ac_compile"
29299case "(($ac_try" in
29300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301  *) ac_try_echo=$ac_try;;
29302esac
29303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29304$as_echo "$ac_try_echo") >&5
29305  (eval "$ac_compile") 2>conftest.er1
29306  ac_status=$?
29307  grep -v '^ *+' conftest.er1 >conftest.err
29308  rm -f conftest.er1
29309  cat conftest.err >&5
29310  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311  (exit $ac_status); } && {
29312	 test -z "$ac_c_werror_flag" ||
29313	 test ! -s conftest.err
29314       } && test -s conftest.$ac_objext; then
29315  ac_header_compiler=yes
29316else
29317  $as_echo "$as_me: failed program was:" >&5
29318sed 's/^/| /' conftest.$ac_ext >&5
29319
29320	ac_header_compiler=no
29321fi
29322
29323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29324{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29325$as_echo "$ac_header_compiler" >&6; }
29326
29327# Is the header present?
29328{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29329$as_echo_n "checking $ac_header presence... " >&6; }
29330cat >conftest.$ac_ext <<_ACEOF
29331/* confdefs.h.  */
29332_ACEOF
29333cat confdefs.h >>conftest.$ac_ext
29334cat >>conftest.$ac_ext <<_ACEOF
29335/* end confdefs.h.  */
29336#include <$ac_header>
29337_ACEOF
29338if { (ac_try="$ac_cpp conftest.$ac_ext"
29339case "(($ac_try" in
29340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29341  *) ac_try_echo=$ac_try;;
29342esac
29343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29344$as_echo "$ac_try_echo") >&5
29345  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29346  ac_status=$?
29347  grep -v '^ *+' conftest.er1 >conftest.err
29348  rm -f conftest.er1
29349  cat conftest.err >&5
29350  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351  (exit $ac_status); } >/dev/null && {
29352	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29353	 test ! -s conftest.err
29354       }; then
29355  ac_header_preproc=yes
29356else
29357  $as_echo "$as_me: failed program was:" >&5
29358sed 's/^/| /' conftest.$ac_ext >&5
29359
29360  ac_header_preproc=no
29361fi
29362
29363rm -f conftest.err conftest.$ac_ext
29364{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29365$as_echo "$ac_header_preproc" >&6; }
29366
29367# So?  What about this header?
29368case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29369  yes:no: )
29370    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29371$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29372    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29373$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29374    ac_header_preproc=yes
29375    ;;
29376  no:yes:* )
29377    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29378$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29379    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29380$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29381    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29382$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29383    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29384$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29385    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29386$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29387    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29388$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29389    ( cat <<\_ASBOX
29390## ---------------------------------------- ##
29391## Report this to samba-technical@samba.org ##
29392## ---------------------------------------- ##
29393_ASBOX
29394     ) | sed "s/^/$as_me: WARNING:     /" >&2
29395    ;;
29396esac
29397{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29398$as_echo_n "checking for $ac_header... " >&6; }
29399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29400  $as_echo_n "(cached) " >&6
29401else
29402  eval "$as_ac_Header=\$ac_header_preproc"
29403fi
29404ac_res=`eval 'as_val=${'$as_ac_Header'}
29405		 $as_echo "$as_val"'`
29406	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29407$as_echo "$ac_res" >&6; }
29408
29409fi
29410as_val=`eval 'as_val=${'$as_ac_Header'}
29411		 $as_echo "$as_val"'`
29412   if test "x$as_val" = x""yes; then
29413  cat >>confdefs.h <<_ACEOF
29414#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29415_ACEOF
29416
29417fi
29418
29419done
29420
29421
29422{ $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
29423$as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
29424if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
29425  $as_echo_n "(cached) " >&6
29426else
29427  cat >conftest.$ac_ext <<_ACEOF
29428/* confdefs.h.  */
29429_ACEOF
29430cat confdefs.h >>conftest.$ac_ext
29431cat >>conftest.$ac_ext <<_ACEOF
29432/* end confdefs.h.  */
29433#include <sys/socket.h>
29434
29435int
29436main ()
29437{
29438static struct sockaddr ac_aggr;
29439if (ac_aggr.sa_len)
29440return 0;
29441  ;
29442  return 0;
29443}
29444_ACEOF
29445rm -f conftest.$ac_objext
29446if { (ac_try="$ac_compile"
29447case "(($ac_try" in
29448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29449  *) ac_try_echo=$ac_try;;
29450esac
29451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29452$as_echo "$ac_try_echo") >&5
29453  (eval "$ac_compile") 2>conftest.er1
29454  ac_status=$?
29455  grep -v '^ *+' conftest.er1 >conftest.err
29456  rm -f conftest.er1
29457  cat conftest.err >&5
29458  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459  (exit $ac_status); } && {
29460	 test -z "$ac_c_werror_flag" ||
29461	 test ! -s conftest.err
29462       } && test -s conftest.$ac_objext; then
29463  ac_cv_member_struct_sockaddr_sa_len=yes
29464else
29465  $as_echo "$as_me: failed program was:" >&5
29466sed 's/^/| /' conftest.$ac_ext >&5
29467
29468	cat >conftest.$ac_ext <<_ACEOF
29469/* confdefs.h.  */
29470_ACEOF
29471cat confdefs.h >>conftest.$ac_ext
29472cat >>conftest.$ac_ext <<_ACEOF
29473/* end confdefs.h.  */
29474#include <sys/socket.h>
29475
29476int
29477main ()
29478{
29479static struct sockaddr ac_aggr;
29480if (sizeof ac_aggr.sa_len)
29481return 0;
29482  ;
29483  return 0;
29484}
29485_ACEOF
29486rm -f conftest.$ac_objext
29487if { (ac_try="$ac_compile"
29488case "(($ac_try" in
29489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29490  *) ac_try_echo=$ac_try;;
29491esac
29492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29493$as_echo "$ac_try_echo") >&5
29494  (eval "$ac_compile") 2>conftest.er1
29495  ac_status=$?
29496  grep -v '^ *+' conftest.er1 >conftest.err
29497  rm -f conftest.er1
29498  cat conftest.err >&5
29499  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500  (exit $ac_status); } && {
29501	 test -z "$ac_c_werror_flag" ||
29502	 test ! -s conftest.err
29503       } && test -s conftest.$ac_objext; then
29504  ac_cv_member_struct_sockaddr_sa_len=yes
29505else
29506  $as_echo "$as_me: failed program was:" >&5
29507sed 's/^/| /' conftest.$ac_ext >&5
29508
29509	ac_cv_member_struct_sockaddr_sa_len=no
29510fi
29511
29512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29513fi
29514
29515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29516fi
29517{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
29518$as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
29519if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
29520
29521cat >>confdefs.h <<_ACEOF
29522#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
29523_ACEOF
29524
29525
29526cat >>confdefs.h <<\_ACEOF
29527#define HAVE_SOCKADDR_SA_LEN 1
29528_ACEOF
29529
29530fi
29531
29532
29533{ $as_echo "$as_me:$LINENO: checking for getifaddrs and freeifaddrs" >&5
29534$as_echo_n "checking for getifaddrs and freeifaddrs... " >&6; }
29535if test "${libreplace_cv_HAVE_GETIFADDRS+set}" = set; then
29536  $as_echo_n "(cached) " >&6
29537else
29538
29539cat >conftest.$ac_ext <<_ACEOF
29540/* confdefs.h.  */
29541_ACEOF
29542cat confdefs.h >>conftest.$ac_ext
29543cat >>conftest.$ac_ext <<_ACEOF
29544/* end confdefs.h.  */
29545
29546#include <sys/types.h>
29547#if STDC_HEADERS
29548#include <stdlib.h>
29549#include <stddef.h>
29550#endif
29551#include <sys/socket.h>
29552#include <netinet/in.h>
29553#include <arpa/inet.h>
29554#include <ifaddrs.h>
29555#include <netdb.h>
29556int
29557main ()
29558{
29559
29560struct ifaddrs *ifp = NULL;
29561int ret = getifaddrs (&ifp);
29562freeifaddrs(ifp);
29563
29564  ;
29565  return 0;
29566}
29567_ACEOF
29568rm -f conftest.$ac_objext conftest$ac_exeext
29569if { (ac_try="$ac_link"
29570case "(($ac_try" in
29571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29572  *) ac_try_echo=$ac_try;;
29573esac
29574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29575$as_echo "$ac_try_echo") >&5
29576  (eval "$ac_link") 2>conftest.er1
29577  ac_status=$?
29578  grep -v '^ *+' conftest.er1 >conftest.err
29579  rm -f conftest.er1
29580  cat conftest.err >&5
29581  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582  (exit $ac_status); } && {
29583	 test -z "$ac_c_werror_flag" ||
29584	 test ! -s conftest.err
29585       } && test -s conftest$ac_exeext && {
29586	 test "$cross_compiling" = yes ||
29587	 $as_test_x conftest$ac_exeext
29588       }; then
29589  libreplace_cv_HAVE_GETIFADDRS=yes
29590else
29591  $as_echo "$as_me: failed program was:" >&5
29592sed 's/^/| /' conftest.$ac_ext >&5
29593
29594	libreplace_cv_HAVE_GETIFADDRS=no
29595fi
29596
29597rm -rf conftest.dSYM
29598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29599      conftest$ac_exeext conftest.$ac_ext
29600fi
29601{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_GETIFADDRS" >&5
29602$as_echo "$libreplace_cv_HAVE_GETIFADDRS" >&6; }
29603if test x"$libreplace_cv_HAVE_GETIFADDRS" = x"yes"; then
29604
29605cat >>confdefs.h <<\_ACEOF
29606#define HAVE_GETIFADDRS 1
29607_ACEOF
29608
29609
29610cat >>confdefs.h <<\_ACEOF
29611#define HAVE_FREEIFADDRS 1
29612_ACEOF
29613
29614
29615cat >>confdefs.h <<\_ACEOF
29616#define HAVE_STRUCT_IFADDRS 1
29617_ACEOF
29618
29619fi
29620
29621##################
29622# look for a method of finding the list of network interfaces
29623iface=no;
29624{ $as_echo "$as_me:$LINENO: checking for iface getifaddrs" >&5
29625$as_echo_n "checking for iface getifaddrs... " >&6; }
29626if test "${libreplace_cv_HAVE_IFACE_GETIFADDRS+set}" = set; then
29627  $as_echo_n "(cached) " >&6
29628else
29629
29630if test "$cross_compiling" = yes; then
29631  libreplace_cv_HAVE_IFACE_GETIFADDRS=cross
29632else
29633  cat >conftest.$ac_ext <<_ACEOF
29634/* confdefs.h.  */
29635_ACEOF
29636cat confdefs.h >>conftest.$ac_ext
29637cat >>conftest.$ac_ext <<_ACEOF
29638/* end confdefs.h.  */
29639
29640#define HAVE_IFACE_GETIFADDRS 1
29641#define NO_CONFIG_H 1
29642#define AUTOCONF_TEST 1
29643#define SOCKET_WRAPPER_NOT_REPLACE
29644#include "$libreplacedir/replace.c"
29645#include "$libreplacedir/inet_ntop.c"
29646#include "$libreplacedir/snprintf.c"
29647#include "$libreplacedir/getifaddrs.c"
29648#define getifaddrs_test main
29649#include "$libreplacedir/test/getifaddrs.c"
29650_ACEOF
29651rm -f conftest$ac_exeext
29652if { (ac_try="$ac_link"
29653case "(($ac_try" in
29654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29655  *) ac_try_echo=$ac_try;;
29656esac
29657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29658$as_echo "$ac_try_echo") >&5
29659  (eval "$ac_link") 2>&5
29660  ac_status=$?
29661  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29663  { (case "(($ac_try" in
29664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665  *) ac_try_echo=$ac_try;;
29666esac
29667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29668$as_echo "$ac_try_echo") >&5
29669  (eval "$ac_try") 2>&5
29670  ac_status=$?
29671  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29672  (exit $ac_status); }; }; then
29673  libreplace_cv_HAVE_IFACE_GETIFADDRS=yes
29674else
29675  $as_echo "$as_me: program exited with status $ac_status" >&5
29676$as_echo "$as_me: failed program was:" >&5
29677sed 's/^/| /' conftest.$ac_ext >&5
29678
29679( exit $ac_status )
29680libreplace_cv_HAVE_IFACE_GETIFADDRS=no
29681fi
29682rm -rf conftest.dSYM
29683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29684fi
29685
29686
29687fi
29688{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_IFACE_GETIFADDRS" >&5
29689$as_echo "$libreplace_cv_HAVE_IFACE_GETIFADDRS" >&6; }
29690if test x"$libreplace_cv_HAVE_IFACE_GETIFADDRS" = x"yes"; then
29691    iface=yes;
29692cat >>confdefs.h <<\_ACEOF
29693#define HAVE_IFACE_GETIFADDRS 1
29694_ACEOF
29695
29696else
29697	LIBREPLACE_NETWORK_OBJS="${LIBREPLACE_NETWORK_OBJS} $libreplacedir/getifaddrs.o"
29698fi
29699
29700
29701if test $iface = no; then
29702{ $as_echo "$as_me:$LINENO: checking for iface AIX" >&5
29703$as_echo_n "checking for iface AIX... " >&6; }
29704if test "${libreplace_cv_HAVE_IFACE_AIX+set}" = set; then
29705  $as_echo_n "(cached) " >&6
29706else
29707
29708if test "$cross_compiling" = yes; then
29709  libreplace_cv_HAVE_IFACE_AIX=cross
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
29718#define HAVE_IFACE_AIX 1
29719#define NO_CONFIG_H 1
29720#define AUTOCONF_TEST 1
29721#undef _XOPEN_SOURCE_EXTENDED
29722#define SOCKET_WRAPPER_NOT_REPLACE
29723#include "$libreplacedir/replace.c"
29724#include "$libreplacedir/inet_ntop.c"
29725#include "$libreplacedir/snprintf.c"
29726#include "$libreplacedir/getifaddrs.c"
29727#define getifaddrs_test main
29728#include "$libreplacedir/test/getifaddrs.c"
29729_ACEOF
29730rm -f conftest$ac_exeext
29731if { (ac_try="$ac_link"
29732case "(($ac_try" in
29733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29734  *) ac_try_echo=$ac_try;;
29735esac
29736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29737$as_echo "$ac_try_echo") >&5
29738  (eval "$ac_link") 2>&5
29739  ac_status=$?
29740  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29742  { (case "(($ac_try" in
29743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744  *) ac_try_echo=$ac_try;;
29745esac
29746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29747$as_echo "$ac_try_echo") >&5
29748  (eval "$ac_try") 2>&5
29749  ac_status=$?
29750  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751  (exit $ac_status); }; }; then
29752  libreplace_cv_HAVE_IFACE_AIX=yes
29753else
29754  $as_echo "$as_me: program exited with status $ac_status" >&5
29755$as_echo "$as_me: failed program was:" >&5
29756sed 's/^/| /' conftest.$ac_ext >&5
29757
29758( exit $ac_status )
29759libreplace_cv_HAVE_IFACE_AIX=no
29760fi
29761rm -rf conftest.dSYM
29762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29763fi
29764
29765
29766fi
29767{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_IFACE_AIX" >&5
29768$as_echo "$libreplace_cv_HAVE_IFACE_AIX" >&6; }
29769if test x"$libreplace_cv_HAVE_IFACE_AIX" = x"yes"; then
29770    iface=yes;
29771cat >>confdefs.h <<\_ACEOF
29772#define HAVE_IFACE_AIX 1
29773_ACEOF
29774
29775fi
29776fi
29777
29778
29779if test $iface = no; then
29780{ $as_echo "$as_me:$LINENO: checking for iface ifconf" >&5
29781$as_echo_n "checking for iface ifconf... " >&6; }
29782if test "${libreplace_cv_HAVE_IFACE_IFCONF+set}" = set; then
29783  $as_echo_n "(cached) " >&6
29784else
29785
29786if test "$cross_compiling" = yes; then
29787  libreplace_cv_HAVE_IFACE_IFCONF=cross
29788else
29789  cat >conftest.$ac_ext <<_ACEOF
29790/* confdefs.h.  */
29791_ACEOF
29792cat confdefs.h >>conftest.$ac_ext
29793cat >>conftest.$ac_ext <<_ACEOF
29794/* end confdefs.h.  */
29795
29796#define HAVE_IFACE_IFCONF 1
29797#define NO_CONFIG_H 1
29798#define AUTOCONF_TEST 1
29799#define SOCKET_WRAPPER_NOT_REPLACE
29800#include "$libreplacedir/replace.c"
29801#include "$libreplacedir/inet_ntop.c"
29802#include "$libreplacedir/snprintf.c"
29803#include "$libreplacedir/getifaddrs.c"
29804#define getifaddrs_test main
29805#include "$libreplacedir/test/getifaddrs.c"
29806_ACEOF
29807rm -f conftest$ac_exeext
29808if { (ac_try="$ac_link"
29809case "(($ac_try" in
29810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29811  *) ac_try_echo=$ac_try;;
29812esac
29813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29814$as_echo "$ac_try_echo") >&5
29815  (eval "$ac_link") 2>&5
29816  ac_status=$?
29817  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29819  { (case "(($ac_try" in
29820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29821  *) ac_try_echo=$ac_try;;
29822esac
29823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29824$as_echo "$ac_try_echo") >&5
29825  (eval "$ac_try") 2>&5
29826  ac_status=$?
29827  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828  (exit $ac_status); }; }; then
29829  libreplace_cv_HAVE_IFACE_IFCONF=yes
29830else
29831  $as_echo "$as_me: program exited with status $ac_status" >&5
29832$as_echo "$as_me: failed program was:" >&5
29833sed 's/^/| /' conftest.$ac_ext >&5
29834
29835( exit $ac_status )
29836libreplace_cv_HAVE_IFACE_IFCONF=no
29837fi
29838rm -rf conftest.dSYM
29839rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29840fi
29841
29842
29843fi
29844{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_IFACE_IFCONF" >&5
29845$as_echo "$libreplace_cv_HAVE_IFACE_IFCONF" >&6; }
29846if test x"$libreplace_cv_HAVE_IFACE_IFCONF" = x"yes"; then
29847    iface=yes;
29848cat >>confdefs.h <<\_ACEOF
29849#define HAVE_IFACE_IFCONF 1
29850_ACEOF
29851
29852fi
29853fi
29854
29855if test $iface = no; then
29856{ $as_echo "$as_me:$LINENO: checking for iface ifreq" >&5
29857$as_echo_n "checking for iface ifreq... " >&6; }
29858if test "${libreplace_cv_HAVE_IFACE_IFREQ+set}" = set; then
29859  $as_echo_n "(cached) " >&6
29860else
29861
29862if test "$cross_compiling" = yes; then
29863  libreplace_cv_HAVE_IFACE_IFREQ=cross
29864else
29865  cat >conftest.$ac_ext <<_ACEOF
29866/* confdefs.h.  */
29867_ACEOF
29868cat confdefs.h >>conftest.$ac_ext
29869cat >>conftest.$ac_ext <<_ACEOF
29870/* end confdefs.h.  */
29871
29872#define HAVE_IFACE_IFREQ 1
29873#define NO_CONFIG_H 1
29874#define AUTOCONF_TEST 1
29875#define SOCKET_WRAPPER_NOT_REPLACE
29876#include "$libreplacedir/replace.c"
29877#include "$libreplacedir/inet_ntop.c"
29878#include "$libreplacedir/snprintf.c"
29879#include "$libreplacedir/getifaddrs.c"
29880#define getifaddrs_test main
29881#include "$libreplacedir/test/getifaddrs.c"
29882_ACEOF
29883rm -f conftest$ac_exeext
29884if { (ac_try="$ac_link"
29885case "(($ac_try" in
29886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29887  *) ac_try_echo=$ac_try;;
29888esac
29889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29890$as_echo "$ac_try_echo") >&5
29891  (eval "$ac_link") 2>&5
29892  ac_status=$?
29893  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29895  { (case "(($ac_try" in
29896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29897  *) ac_try_echo=$ac_try;;
29898esac
29899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29900$as_echo "$ac_try_echo") >&5
29901  (eval "$ac_try") 2>&5
29902  ac_status=$?
29903  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904  (exit $ac_status); }; }; then
29905  libreplace_cv_HAVE_IFACE_IFREQ=yes
29906else
29907  $as_echo "$as_me: program exited with status $ac_status" >&5
29908$as_echo "$as_me: failed program was:" >&5
29909sed 's/^/| /' conftest.$ac_ext >&5
29910
29911( exit $ac_status )
29912libreplace_cv_HAVE_IFACE_IFREQ=no
29913fi
29914rm -rf conftest.dSYM
29915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29916fi
29917
29918
29919fi
29920{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_IFACE_IFREQ" >&5
29921$as_echo "$libreplace_cv_HAVE_IFACE_IFREQ" >&6; }
29922if test x"$libreplace_cv_HAVE_IFACE_IFREQ" = x"yes"; then
29923    iface=yes;
29924cat >>confdefs.h <<\_ACEOF
29925#define HAVE_IFACE_IFREQ 1
29926_ACEOF
29927
29928fi
29929fi
29930
29931{ $as_echo "$as_me:$LINENO: checking for IPV6_V6ONLY support" >&5
29932$as_echo_n "checking for IPV6_V6ONLY support... " >&6; }
29933if test "${libreplace_cv_HAVE_IPV6_V6ONLY+set}" = set; then
29934  $as_echo_n "(cached) " >&6
29935else
29936
29937	cat >conftest.$ac_ext <<_ACEOF
29938/* confdefs.h.  */
29939_ACEOF
29940cat confdefs.h >>conftest.$ac_ext
29941cat >>conftest.$ac_ext <<_ACEOF
29942/* end confdefs.h.  */
29943
29944#include <stdlib.h> /* for NULL */
29945#include <sys/socket.h>
29946#include <sys/types.h>
29947#include <netdb.h>
29948#include <netinet/in.h>
29949
29950int
29951main ()
29952{
29953
29954#ifndef IPV6_V6ONLY
29955#error no IPV6_V6ONLY
29956#endif
29957
29958  ;
29959  return 0;
29960}
29961_ACEOF
29962rm -f conftest.$ac_objext
29963if { (ac_try="$ac_compile"
29964case "(($ac_try" in
29965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29966  *) ac_try_echo=$ac_try;;
29967esac
29968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29969$as_echo "$ac_try_echo") >&5
29970  (eval "$ac_compile") 2>conftest.er1
29971  ac_status=$?
29972  grep -v '^ *+' conftest.er1 >conftest.err
29973  rm -f conftest.er1
29974  cat conftest.err >&5
29975  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976  (exit $ac_status); } && {
29977	 test -z "$ac_c_werror_flag" ||
29978	 test ! -s conftest.err
29979       } && test -s conftest.$ac_objext; then
29980
29981		libreplace_cv_HAVE_IPV6_V6ONLY=yes
29982
29983else
29984  $as_echo "$as_me: failed program was:" >&5
29985sed 's/^/| /' conftest.$ac_ext >&5
29986
29987
29988		libreplace_cv_HAVE_IPV6_V6ONLY=no
29989
29990fi
29991
29992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29993
29994fi
29995{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_IPV6_V6ONLY" >&5
29996$as_echo "$libreplace_cv_HAVE_IPV6_V6ONLY" >&6; }
29997if test x"$libreplace_cv_HAVE_IPV6_V6ONLY" != x"yes"; then
29998      { $as_echo "$as_me:$LINENO: checking for IPV6_V6ONLY in linux/in6.h" >&5
29999$as_echo_n "checking for IPV6_V6ONLY in linux/in6.h... " >&6; }
30000if test "${libreplace_cv_HAVE_LINUX_IPV6_V6ONLY_26+set}" = set; then
30001  $as_echo_n "(cached) " >&6
30002else
30003
30004	cat >conftest.$ac_ext <<_ACEOF
30005/* confdefs.h.  */
30006_ACEOF
30007cat confdefs.h >>conftest.$ac_ext
30008cat >>conftest.$ac_ext <<_ACEOF
30009/* end confdefs.h.  */
30010
30011	#include <linux/in6.h>
30012
30013int
30014main ()
30015{
30016
30017	#if (IPV6_V6ONLY != 26)
30018	#error no linux IPV6_V6ONLY
30019	#endif
30020
30021  ;
30022  return 0;
30023}
30024_ACEOF
30025rm -f conftest.$ac_objext
30026if { (ac_try="$ac_compile"
30027case "(($ac_try" in
30028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30029  *) ac_try_echo=$ac_try;;
30030esac
30031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30032$as_echo "$ac_try_echo") >&5
30033  (eval "$ac_compile") 2>conftest.er1
30034  ac_status=$?
30035  grep -v '^ *+' conftest.er1 >conftest.err
30036  rm -f conftest.er1
30037  cat conftest.err >&5
30038  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039  (exit $ac_status); } && {
30040	 test -z "$ac_c_werror_flag" ||
30041	 test ! -s conftest.err
30042       } && test -s conftest.$ac_objext; then
30043
30044		libreplace_cv_HAVE_LINUX_IPV6_V6ONLY_26=yes
30045
30046else
30047  $as_echo "$as_me: failed program was:" >&5
30048sed 's/^/| /' conftest.$ac_ext >&5
30049
30050
30051		libreplace_cv_HAVE_LINUX_IPV6_V6ONLY_26=no
30052
30053fi
30054
30055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30056
30057fi
30058{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_LINUX_IPV6_V6ONLY_26" >&5
30059$as_echo "$libreplace_cv_HAVE_LINUX_IPV6_V6ONLY_26" >&6; }
30060	if test x"$libreplace_cv_HAVE_LINUX_IPV6_V6ONLY_26" = x"yes"; then
30061
30062cat >>confdefs.h <<\_ACEOF
30063#define HAVE_LINUX_IPV6_V6ONLY_26 1
30064_ACEOF
30065
30066	fi
30067fi
30068
30069{ $as_echo "$as_me:$LINENO: checking for ipv6 support" >&5
30070$as_echo_n "checking for ipv6 support... " >&6; }
30071if test "${libreplace_cv_HAVE_IPV6+set}" = set; then
30072  $as_echo_n "(cached) " >&6
30073else
30074
30075	cat >conftest.$ac_ext <<_ACEOF
30076/* confdefs.h.  */
30077_ACEOF
30078cat confdefs.h >>conftest.$ac_ext
30079cat >>conftest.$ac_ext <<_ACEOF
30080/* end confdefs.h.  */
30081
30082#include <stdlib.h> /* for NULL */
30083#include <sys/socket.h>
30084#include <sys/types.h>
30085#include <netdb.h>
30086#include <netinet/in.h>
30087
30088int
30089main ()
30090{
30091
30092struct sockaddr_storage sa_store;
30093struct addrinfo *ai = NULL;
30094struct in6_addr in6addr;
30095int idx = if_nametoindex("iface1");
30096int s = socket(AF_INET6, SOCK_STREAM, 0);
30097int ret = getaddrinfo(NULL, NULL, NULL, &ai);
30098if (ret != 0) {
30099	const char *es = gai_strerror(ret);
30100}
30101freeaddrinfo(ai);
30102{
30103	int val = 1;
30104	#ifdef HAVE_LINUX_IPV6_V6ONLY_26
30105	#define IPV6_V6ONLY 26
30106	#endif
30107	ret = setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY,
30108			 (const void *)&val, sizeof(val));
30109}
30110
30111  ;
30112  return 0;
30113}
30114_ACEOF
30115rm -f conftest.$ac_objext conftest$ac_exeext
30116if { (ac_try="$ac_link"
30117case "(($ac_try" in
30118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30119  *) ac_try_echo=$ac_try;;
30120esac
30121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30122$as_echo "$ac_try_echo") >&5
30123  (eval "$ac_link") 2>conftest.er1
30124  ac_status=$?
30125  grep -v '^ *+' conftest.er1 >conftest.err
30126  rm -f conftest.er1
30127  cat conftest.err >&5
30128  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129  (exit $ac_status); } && {
30130	 test -z "$ac_c_werror_flag" ||
30131	 test ! -s conftest.err
30132       } && test -s conftest$ac_exeext && {
30133	 test "$cross_compiling" = yes ||
30134	 $as_test_x conftest$ac_exeext
30135       }; then
30136
30137		libreplace_cv_HAVE_IPV6=yes
30138
30139else
30140  $as_echo "$as_me: failed program was:" >&5
30141sed 's/^/| /' conftest.$ac_ext >&5
30142
30143
30144		libreplace_cv_HAVE_IPV6=no
30145
30146fi
30147
30148rm -rf conftest.dSYM
30149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30150      conftest$ac_exeext conftest.$ac_ext
30151
30152fi
30153{ $as_echo "$as_me:$LINENO: result: $libreplace_cv_HAVE_IPV6" >&5
30154$as_echo "$libreplace_cv_HAVE_IPV6" >&6; }
30155if test x"$libreplace_cv_HAVE_IPV6" = x"yes"; then
30156
30157cat >>confdefs.h <<\_ACEOF
30158#define HAVE_IPV6 1
30159_ACEOF
30160
30161fi
30162
30163LIBS=$old_LIBS
30164CPPFLAGS="$libreplace_SAVE_CPPFLAGS"
30165
30166LIBREPLACEOBJ="${LIBREPLACEOBJ} ${LIBREPLACE_NETWORK_OBJS}"
30167
30168echo "LIBREPLACE_NETWORK_CHECKS: END"
30169
30170
30171CPPFLAGS="${SAVE_CPPFLAGS}"
30172
30173LIBREPLACE_DIR=`echo ${libreplacedir} | sed -e "s;${srcdir};;" -e "s;^/;;"`
30174
30175LIBREPLACE_OBJS="${LIBREPLACEOBJ}"
30176
30177
30178LIBREPLACE_LIBS="${LIBREPLACE_NETWORK_LIBS}"
30179
30180
30181
30182# add -ldl to the global LIBS
30183LIBS="${LIBS} ${LIBDL} ${LIBREPLACE_NETWORK_LIBS}"
30184AUTH_LIBS="${AUTH_LIBS} ${CRYPT_LIBS}"
30185
30186
30187
30188
30189
30190
30191
30192
30193
30194for ac_header in aio.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h rpc/nettype.h
30195do
30196as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30198  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30199$as_echo_n "checking for $ac_header... " >&6; }
30200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30201  $as_echo_n "(cached) " >&6
30202fi
30203ac_res=`eval 'as_val=${'$as_ac_Header'}
30204		 $as_echo "$as_val"'`
30205	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30206$as_echo "$ac_res" >&6; }
30207else
30208  # Is the header compilable?
30209{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30210$as_echo_n "checking $ac_header usability... " >&6; }
30211cat >conftest.$ac_ext <<_ACEOF
30212/* confdefs.h.  */
30213_ACEOF
30214cat confdefs.h >>conftest.$ac_ext
30215cat >>conftest.$ac_ext <<_ACEOF
30216/* end confdefs.h.  */
30217$ac_includes_default
30218#include <$ac_header>
30219_ACEOF
30220rm -f conftest.$ac_objext
30221if { (ac_try="$ac_compile"
30222case "(($ac_try" in
30223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30224  *) ac_try_echo=$ac_try;;
30225esac
30226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30227$as_echo "$ac_try_echo") >&5
30228  (eval "$ac_compile") 2>conftest.er1
30229  ac_status=$?
30230  grep -v '^ *+' conftest.er1 >conftest.err
30231  rm -f conftest.er1
30232  cat conftest.err >&5
30233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30234  (exit $ac_status); } && {
30235	 test -z "$ac_c_werror_flag" ||
30236	 test ! -s conftest.err
30237       } && test -s conftest.$ac_objext; then
30238  ac_header_compiler=yes
30239else
30240  $as_echo "$as_me: failed program was:" >&5
30241sed 's/^/| /' conftest.$ac_ext >&5
30242
30243	ac_header_compiler=no
30244fi
30245
30246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30247{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30248$as_echo "$ac_header_compiler" >&6; }
30249
30250# Is the header present?
30251{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30252$as_echo_n "checking $ac_header presence... " >&6; }
30253cat >conftest.$ac_ext <<_ACEOF
30254/* confdefs.h.  */
30255_ACEOF
30256cat confdefs.h >>conftest.$ac_ext
30257cat >>conftest.$ac_ext <<_ACEOF
30258/* end confdefs.h.  */
30259#include <$ac_header>
30260_ACEOF
30261if { (ac_try="$ac_cpp conftest.$ac_ext"
30262case "(($ac_try" in
30263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30264  *) ac_try_echo=$ac_try;;
30265esac
30266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30267$as_echo "$ac_try_echo") >&5
30268  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30269  ac_status=$?
30270  grep -v '^ *+' conftest.er1 >conftest.err
30271  rm -f conftest.er1
30272  cat conftest.err >&5
30273  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274  (exit $ac_status); } >/dev/null && {
30275	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30276	 test ! -s conftest.err
30277       }; then
30278  ac_header_preproc=yes
30279else
30280  $as_echo "$as_me: failed program was:" >&5
30281sed 's/^/| /' conftest.$ac_ext >&5
30282
30283  ac_header_preproc=no
30284fi
30285
30286rm -f conftest.err conftest.$ac_ext
30287{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30288$as_echo "$ac_header_preproc" >&6; }
30289
30290# So?  What about this header?
30291case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30292  yes:no: )
30293    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30294$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30295    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30296$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30297    ac_header_preproc=yes
30298    ;;
30299  no:yes:* )
30300    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30301$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30302    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30303$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30304    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30305$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30306    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30307$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30308    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30309$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30310    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30311$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30312    ( cat <<\_ASBOX
30313## ---------------------------------------- ##
30314## Report this to samba-technical@samba.org ##
30315## ---------------------------------------- ##
30316_ASBOX
30317     ) | sed "s/^/$as_me: WARNING:     /" >&2
30318    ;;
30319esac
30320{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30321$as_echo_n "checking for $ac_header... " >&6; }
30322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30323  $as_echo_n "(cached) " >&6
30324else
30325  eval "$as_ac_Header=\$ac_header_preproc"
30326fi
30327ac_res=`eval 'as_val=${'$as_ac_Header'}
30328		 $as_echo "$as_val"'`
30329	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30330$as_echo "$ac_res" >&6; }
30331
30332fi
30333as_val=`eval 'as_val=${'$as_ac_Header'}
30334		 $as_echo "$as_val"'`
30335   if test "x$as_val" = x""yes; then
30336  cat >>confdefs.h <<_ACEOF
30337#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30338_ACEOF
30339
30340fi
30341
30342done
30343
30344
30345
30346
30347
30348
30349for ac_header in unistd.h grp.h sys/id.h memory.h alloca.h
30350do
30351as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30353  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30354$as_echo_n "checking for $ac_header... " >&6; }
30355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30356  $as_echo_n "(cached) " >&6
30357fi
30358ac_res=`eval 'as_val=${'$as_ac_Header'}
30359		 $as_echo "$as_val"'`
30360	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30361$as_echo "$ac_res" >&6; }
30362else
30363  # Is the header compilable?
30364{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30365$as_echo_n "checking $ac_header usability... " >&6; }
30366cat >conftest.$ac_ext <<_ACEOF
30367/* confdefs.h.  */
30368_ACEOF
30369cat confdefs.h >>conftest.$ac_ext
30370cat >>conftest.$ac_ext <<_ACEOF
30371/* end confdefs.h.  */
30372$ac_includes_default
30373#include <$ac_header>
30374_ACEOF
30375rm -f conftest.$ac_objext
30376if { (ac_try="$ac_compile"
30377case "(($ac_try" in
30378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30379  *) ac_try_echo=$ac_try;;
30380esac
30381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30382$as_echo "$ac_try_echo") >&5
30383  (eval "$ac_compile") 2>conftest.er1
30384  ac_status=$?
30385  grep -v '^ *+' conftest.er1 >conftest.err
30386  rm -f conftest.er1
30387  cat conftest.err >&5
30388  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30389  (exit $ac_status); } && {
30390	 test -z "$ac_c_werror_flag" ||
30391	 test ! -s conftest.err
30392       } && test -s conftest.$ac_objext; then
30393  ac_header_compiler=yes
30394else
30395  $as_echo "$as_me: failed program was:" >&5
30396sed 's/^/| /' conftest.$ac_ext >&5
30397
30398	ac_header_compiler=no
30399fi
30400
30401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30402{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30403$as_echo "$ac_header_compiler" >&6; }
30404
30405# Is the header present?
30406{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30407$as_echo_n "checking $ac_header presence... " >&6; }
30408cat >conftest.$ac_ext <<_ACEOF
30409/* confdefs.h.  */
30410_ACEOF
30411cat confdefs.h >>conftest.$ac_ext
30412cat >>conftest.$ac_ext <<_ACEOF
30413/* end confdefs.h.  */
30414#include <$ac_header>
30415_ACEOF
30416if { (ac_try="$ac_cpp conftest.$ac_ext"
30417case "(($ac_try" in
30418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30419  *) ac_try_echo=$ac_try;;
30420esac
30421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30422$as_echo "$ac_try_echo") >&5
30423  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30424  ac_status=$?
30425  grep -v '^ *+' conftest.er1 >conftest.err
30426  rm -f conftest.er1
30427  cat conftest.err >&5
30428  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429  (exit $ac_status); } >/dev/null && {
30430	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30431	 test ! -s conftest.err
30432       }; then
30433  ac_header_preproc=yes
30434else
30435  $as_echo "$as_me: failed program was:" >&5
30436sed 's/^/| /' conftest.$ac_ext >&5
30437
30438  ac_header_preproc=no
30439fi
30440
30441rm -f conftest.err conftest.$ac_ext
30442{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30443$as_echo "$ac_header_preproc" >&6; }
30444
30445# So?  What about this header?
30446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30447  yes:no: )
30448    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30449$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30450    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30451$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30452    ac_header_preproc=yes
30453    ;;
30454  no:yes:* )
30455    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30456$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30457    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30458$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30459    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30460$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30461    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30462$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30463    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30464$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30465    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30466$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30467    ( cat <<\_ASBOX
30468## ---------------------------------------- ##
30469## Report this to samba-technical@samba.org ##
30470## ---------------------------------------- ##
30471_ASBOX
30472     ) | sed "s/^/$as_me: WARNING:     /" >&2
30473    ;;
30474esac
30475{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30476$as_echo_n "checking for $ac_header... " >&6; }
30477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30478  $as_echo_n "(cached) " >&6
30479else
30480  eval "$as_ac_Header=\$ac_header_preproc"
30481fi
30482ac_res=`eval 'as_val=${'$as_ac_Header'}
30483		 $as_echo "$as_val"'`
30484	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30485$as_echo "$ac_res" >&6; }
30486
30487fi
30488as_val=`eval 'as_val=${'$as_ac_Header'}
30489		 $as_echo "$as_val"'`
30490   if test "x$as_val" = x""yes; then
30491  cat >>confdefs.h <<_ACEOF
30492#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30493_ACEOF
30494
30495fi
30496
30497done
30498
30499
30500
30501
30502for ac_header in limits.h float.h libintl.h
30503do
30504as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30506  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30507$as_echo_n "checking for $ac_header... " >&6; }
30508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30509  $as_echo_n "(cached) " >&6
30510fi
30511ac_res=`eval 'as_val=${'$as_ac_Header'}
30512		 $as_echo "$as_val"'`
30513	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30514$as_echo "$ac_res" >&6; }
30515else
30516  # Is the header compilable?
30517{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30518$as_echo_n "checking $ac_header usability... " >&6; }
30519cat >conftest.$ac_ext <<_ACEOF
30520/* confdefs.h.  */
30521_ACEOF
30522cat confdefs.h >>conftest.$ac_ext
30523cat >>conftest.$ac_ext <<_ACEOF
30524/* end confdefs.h.  */
30525$ac_includes_default
30526#include <$ac_header>
30527_ACEOF
30528rm -f conftest.$ac_objext
30529if { (ac_try="$ac_compile"
30530case "(($ac_try" in
30531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30532  *) ac_try_echo=$ac_try;;
30533esac
30534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30535$as_echo "$ac_try_echo") >&5
30536  (eval "$ac_compile") 2>conftest.er1
30537  ac_status=$?
30538  grep -v '^ *+' conftest.er1 >conftest.err
30539  rm -f conftest.er1
30540  cat conftest.err >&5
30541  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542  (exit $ac_status); } && {
30543	 test -z "$ac_c_werror_flag" ||
30544	 test ! -s conftest.err
30545       } && test -s conftest.$ac_objext; then
30546  ac_header_compiler=yes
30547else
30548  $as_echo "$as_me: failed program was:" >&5
30549sed 's/^/| /' conftest.$ac_ext >&5
30550
30551	ac_header_compiler=no
30552fi
30553
30554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30555{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30556$as_echo "$ac_header_compiler" >&6; }
30557
30558# Is the header present?
30559{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30560$as_echo_n "checking $ac_header presence... " >&6; }
30561cat >conftest.$ac_ext <<_ACEOF
30562/* confdefs.h.  */
30563_ACEOF
30564cat confdefs.h >>conftest.$ac_ext
30565cat >>conftest.$ac_ext <<_ACEOF
30566/* end confdefs.h.  */
30567#include <$ac_header>
30568_ACEOF
30569if { (ac_try="$ac_cpp conftest.$ac_ext"
30570case "(($ac_try" in
30571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30572  *) ac_try_echo=$ac_try;;
30573esac
30574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30575$as_echo "$ac_try_echo") >&5
30576  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30577  ac_status=$?
30578  grep -v '^ *+' conftest.er1 >conftest.err
30579  rm -f conftest.er1
30580  cat conftest.err >&5
30581  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30582  (exit $ac_status); } >/dev/null && {
30583	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30584	 test ! -s conftest.err
30585       }; then
30586  ac_header_preproc=yes
30587else
30588  $as_echo "$as_me: failed program was:" >&5
30589sed 's/^/| /' conftest.$ac_ext >&5
30590
30591  ac_header_preproc=no
30592fi
30593
30594rm -f conftest.err conftest.$ac_ext
30595{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30596$as_echo "$ac_header_preproc" >&6; }
30597
30598# So?  What about this header?
30599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30600  yes:no: )
30601    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30602$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30603    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30604$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30605    ac_header_preproc=yes
30606    ;;
30607  no:yes:* )
30608    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30609$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30610    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30611$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30612    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30613$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30614    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30615$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30616    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30617$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30618    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30619$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30620    ( cat <<\_ASBOX
30621## ---------------------------------------- ##
30622## Report this to samba-technical@samba.org ##
30623## ---------------------------------------- ##
30624_ASBOX
30625     ) | sed "s/^/$as_me: WARNING:     /" >&2
30626    ;;
30627esac
30628{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30629$as_echo_n "checking for $ac_header... " >&6; }
30630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30631  $as_echo_n "(cached) " >&6
30632else
30633  eval "$as_ac_Header=\$ac_header_preproc"
30634fi
30635ac_res=`eval 'as_val=${'$as_ac_Header'}
30636		 $as_echo "$as_val"'`
30637	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30638$as_echo "$ac_res" >&6; }
30639
30640fi
30641as_val=`eval 'as_val=${'$as_ac_Header'}
30642		 $as_echo "$as_val"'`
30643   if test "x$as_val" = x""yes; then
30644  cat >>confdefs.h <<_ACEOF
30645#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30646_ACEOF
30647
30648fi
30649
30650done
30651
30652
30653
30654
30655for ac_header in rpc/rpc.h rpcsvc/nis.h rpcsvc/ypclnt.h
30656do
30657as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30659  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30660$as_echo_n "checking for $ac_header... " >&6; }
30661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30662  $as_echo_n "(cached) " >&6
30663fi
30664ac_res=`eval 'as_val=${'$as_ac_Header'}
30665		 $as_echo "$as_val"'`
30666	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30667$as_echo "$ac_res" >&6; }
30668else
30669  # Is the header compilable?
30670{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30671$as_echo_n "checking $ac_header usability... " >&6; }
30672cat >conftest.$ac_ext <<_ACEOF
30673/* confdefs.h.  */
30674_ACEOF
30675cat confdefs.h >>conftest.$ac_ext
30676cat >>conftest.$ac_ext <<_ACEOF
30677/* end confdefs.h.  */
30678$ac_includes_default
30679#include <$ac_header>
30680_ACEOF
30681rm -f conftest.$ac_objext
30682if { (ac_try="$ac_compile"
30683case "(($ac_try" in
30684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30685  *) ac_try_echo=$ac_try;;
30686esac
30687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30688$as_echo "$ac_try_echo") >&5
30689  (eval "$ac_compile") 2>conftest.er1
30690  ac_status=$?
30691  grep -v '^ *+' conftest.er1 >conftest.err
30692  rm -f conftest.er1
30693  cat conftest.err >&5
30694  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695  (exit $ac_status); } && {
30696	 test -z "$ac_c_werror_flag" ||
30697	 test ! -s conftest.err
30698       } && test -s conftest.$ac_objext; then
30699  ac_header_compiler=yes
30700else
30701  $as_echo "$as_me: failed program was:" >&5
30702sed 's/^/| /' conftest.$ac_ext >&5
30703
30704	ac_header_compiler=no
30705fi
30706
30707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30708{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30709$as_echo "$ac_header_compiler" >&6; }
30710
30711# Is the header present?
30712{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30713$as_echo_n "checking $ac_header presence... " >&6; }
30714cat >conftest.$ac_ext <<_ACEOF
30715/* confdefs.h.  */
30716_ACEOF
30717cat confdefs.h >>conftest.$ac_ext
30718cat >>conftest.$ac_ext <<_ACEOF
30719/* end confdefs.h.  */
30720#include <$ac_header>
30721_ACEOF
30722if { (ac_try="$ac_cpp conftest.$ac_ext"
30723case "(($ac_try" in
30724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30725  *) ac_try_echo=$ac_try;;
30726esac
30727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30728$as_echo "$ac_try_echo") >&5
30729  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30730  ac_status=$?
30731  grep -v '^ *+' conftest.er1 >conftest.err
30732  rm -f conftest.er1
30733  cat conftest.err >&5
30734  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30735  (exit $ac_status); } >/dev/null && {
30736	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30737	 test ! -s conftest.err
30738       }; then
30739  ac_header_preproc=yes
30740else
30741  $as_echo "$as_me: failed program was:" >&5
30742sed 's/^/| /' conftest.$ac_ext >&5
30743
30744  ac_header_preproc=no
30745fi
30746
30747rm -f conftest.err conftest.$ac_ext
30748{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30749$as_echo "$ac_header_preproc" >&6; }
30750
30751# So?  What about this header?
30752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30753  yes:no: )
30754    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30755$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30756    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30757$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30758    ac_header_preproc=yes
30759    ;;
30760  no:yes:* )
30761    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30762$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30763    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30764$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30765    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30766$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30767    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30768$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30769    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30770$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30771    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30772$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30773    ( cat <<\_ASBOX
30774## ---------------------------------------- ##
30775## Report this to samba-technical@samba.org ##
30776## ---------------------------------------- ##
30777_ASBOX
30778     ) | sed "s/^/$as_me: WARNING:     /" >&2
30779    ;;
30780esac
30781{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30782$as_echo_n "checking for $ac_header... " >&6; }
30783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30784  $as_echo_n "(cached) " >&6
30785else
30786  eval "$as_ac_Header=\$ac_header_preproc"
30787fi
30788ac_res=`eval 'as_val=${'$as_ac_Header'}
30789		 $as_echo "$as_val"'`
30790	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30791$as_echo "$ac_res" >&6; }
30792
30793fi
30794as_val=`eval 'as_val=${'$as_ac_Header'}
30795		 $as_echo "$as_val"'`
30796   if test "x$as_val" = x""yes; then
30797  cat >>confdefs.h <<_ACEOF
30798#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30799_ACEOF
30800
30801fi
30802
30803done
30804
30805
30806
30807
30808
30809
30810
30811
30812
30813for ac_header in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/prctl.h sys/sysctl.h
30814do
30815as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30817  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30818$as_echo_n "checking for $ac_header... " >&6; }
30819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30820  $as_echo_n "(cached) " >&6
30821fi
30822ac_res=`eval 'as_val=${'$as_ac_Header'}
30823		 $as_echo "$as_val"'`
30824	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30825$as_echo "$ac_res" >&6; }
30826else
30827  # Is the header compilable?
30828{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30829$as_echo_n "checking $ac_header usability... " >&6; }
30830cat >conftest.$ac_ext <<_ACEOF
30831/* confdefs.h.  */
30832_ACEOF
30833cat confdefs.h >>conftest.$ac_ext
30834cat >>conftest.$ac_ext <<_ACEOF
30835/* end confdefs.h.  */
30836$ac_includes_default
30837#include <$ac_header>
30838_ACEOF
30839rm -f conftest.$ac_objext
30840if { (ac_try="$ac_compile"
30841case "(($ac_try" in
30842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30843  *) ac_try_echo=$ac_try;;
30844esac
30845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30846$as_echo "$ac_try_echo") >&5
30847  (eval "$ac_compile") 2>conftest.er1
30848  ac_status=$?
30849  grep -v '^ *+' conftest.er1 >conftest.err
30850  rm -f conftest.er1
30851  cat conftest.err >&5
30852  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853  (exit $ac_status); } && {
30854	 test -z "$ac_c_werror_flag" ||
30855	 test ! -s conftest.err
30856       } && test -s conftest.$ac_objext; then
30857  ac_header_compiler=yes
30858else
30859  $as_echo "$as_me: failed program was:" >&5
30860sed 's/^/| /' conftest.$ac_ext >&5
30861
30862	ac_header_compiler=no
30863fi
30864
30865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30866{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30867$as_echo "$ac_header_compiler" >&6; }
30868
30869# Is the header present?
30870{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30871$as_echo_n "checking $ac_header presence... " >&6; }
30872cat >conftest.$ac_ext <<_ACEOF
30873/* confdefs.h.  */
30874_ACEOF
30875cat confdefs.h >>conftest.$ac_ext
30876cat >>conftest.$ac_ext <<_ACEOF
30877/* end confdefs.h.  */
30878#include <$ac_header>
30879_ACEOF
30880if { (ac_try="$ac_cpp conftest.$ac_ext"
30881case "(($ac_try" in
30882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30883  *) ac_try_echo=$ac_try;;
30884esac
30885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30886$as_echo "$ac_try_echo") >&5
30887  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30888  ac_status=$?
30889  grep -v '^ *+' conftest.er1 >conftest.err
30890  rm -f conftest.er1
30891  cat conftest.err >&5
30892  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893  (exit $ac_status); } >/dev/null && {
30894	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30895	 test ! -s conftest.err
30896       }; then
30897  ac_header_preproc=yes
30898else
30899  $as_echo "$as_me: failed program was:" >&5
30900sed 's/^/| /' conftest.$ac_ext >&5
30901
30902  ac_header_preproc=no
30903fi
30904
30905rm -f conftest.err conftest.$ac_ext
30906{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30907$as_echo "$ac_header_preproc" >&6; }
30908
30909# So?  What about this header?
30910case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30911  yes:no: )
30912    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30913$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30914    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30915$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30916    ac_header_preproc=yes
30917    ;;
30918  no:yes:* )
30919    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30920$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30921    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30922$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30923    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30924$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30925    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30926$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30927    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30928$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30929    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30930$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30931    ( cat <<\_ASBOX
30932## ---------------------------------------- ##
30933## Report this to samba-technical@samba.org ##
30934## ---------------------------------------- ##
30935_ASBOX
30936     ) | sed "s/^/$as_me: WARNING:     /" >&2
30937    ;;
30938esac
30939{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30940$as_echo_n "checking for $ac_header... " >&6; }
30941if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30942  $as_echo_n "(cached) " >&6
30943else
30944  eval "$as_ac_Header=\$ac_header_preproc"
30945fi
30946ac_res=`eval 'as_val=${'$as_ac_Header'}
30947		 $as_echo "$as_val"'`
30948	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30949$as_echo "$ac_res" >&6; }
30950
30951fi
30952as_val=`eval 'as_val=${'$as_ac_Header'}
30953		 $as_echo "$as_val"'`
30954   if test "x$as_val" = x""yes; then
30955  cat >>confdefs.h <<_ACEOF
30956#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30957_ACEOF
30958
30959fi
30960
30961done
30962
30963
30964
30965
30966
30967
30968
30969
30970for ac_header in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h
30971do
30972as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30973if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30974  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30975$as_echo_n "checking for $ac_header... " >&6; }
30976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30977  $as_echo_n "(cached) " >&6
30978fi
30979ac_res=`eval 'as_val=${'$as_ac_Header'}
30980		 $as_echo "$as_val"'`
30981	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30982$as_echo "$ac_res" >&6; }
30983else
30984  # Is the header compilable?
30985{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30986$as_echo_n "checking $ac_header usability... " >&6; }
30987cat >conftest.$ac_ext <<_ACEOF
30988/* confdefs.h.  */
30989_ACEOF
30990cat confdefs.h >>conftest.$ac_ext
30991cat >>conftest.$ac_ext <<_ACEOF
30992/* end confdefs.h.  */
30993$ac_includes_default
30994#include <$ac_header>
30995_ACEOF
30996rm -f conftest.$ac_objext
30997if { (ac_try="$ac_compile"
30998case "(($ac_try" in
30999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31000  *) ac_try_echo=$ac_try;;
31001esac
31002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31003$as_echo "$ac_try_echo") >&5
31004  (eval "$ac_compile") 2>conftest.er1
31005  ac_status=$?
31006  grep -v '^ *+' conftest.er1 >conftest.err
31007  rm -f conftest.er1
31008  cat conftest.err >&5
31009  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31010  (exit $ac_status); } && {
31011	 test -z "$ac_c_werror_flag" ||
31012	 test ! -s conftest.err
31013       } && test -s conftest.$ac_objext; then
31014  ac_header_compiler=yes
31015else
31016  $as_echo "$as_me: failed program was:" >&5
31017sed 's/^/| /' conftest.$ac_ext >&5
31018
31019	ac_header_compiler=no
31020fi
31021
31022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31023{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31024$as_echo "$ac_header_compiler" >&6; }
31025
31026# Is the header present?
31027{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31028$as_echo_n "checking $ac_header presence... " >&6; }
31029cat >conftest.$ac_ext <<_ACEOF
31030/* confdefs.h.  */
31031_ACEOF
31032cat confdefs.h >>conftest.$ac_ext
31033cat >>conftest.$ac_ext <<_ACEOF
31034/* end confdefs.h.  */
31035#include <$ac_header>
31036_ACEOF
31037if { (ac_try="$ac_cpp conftest.$ac_ext"
31038case "(($ac_try" in
31039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31040  *) ac_try_echo=$ac_try;;
31041esac
31042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31043$as_echo "$ac_try_echo") >&5
31044  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31045  ac_status=$?
31046  grep -v '^ *+' conftest.er1 >conftest.err
31047  rm -f conftest.er1
31048  cat conftest.err >&5
31049  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050  (exit $ac_status); } >/dev/null && {
31051	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31052	 test ! -s conftest.err
31053       }; then
31054  ac_header_preproc=yes
31055else
31056  $as_echo "$as_me: failed program was:" >&5
31057sed 's/^/| /' conftest.$ac_ext >&5
31058
31059  ac_header_preproc=no
31060fi
31061
31062rm -f conftest.err conftest.$ac_ext
31063{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31064$as_echo "$ac_header_preproc" >&6; }
31065
31066# So?  What about this header?
31067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31068  yes:no: )
31069    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31070$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31071    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31072$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31073    ac_header_preproc=yes
31074    ;;
31075  no:yes:* )
31076    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31077$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31078    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31079$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31080    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31081$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31082    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31083$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31084    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31085$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31086    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31087$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31088    ( cat <<\_ASBOX
31089## ---------------------------------------- ##
31090## Report this to samba-technical@samba.org ##
31091## ---------------------------------------- ##
31092_ASBOX
31093     ) | sed "s/^/$as_me: WARNING:     /" >&2
31094    ;;
31095esac
31096{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31097$as_echo_n "checking for $ac_header... " >&6; }
31098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31099  $as_echo_n "(cached) " >&6
31100else
31101  eval "$as_ac_Header=\$ac_header_preproc"
31102fi
31103ac_res=`eval 'as_val=${'$as_ac_Header'}
31104		 $as_echo "$as_val"'`
31105	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31106$as_echo "$ac_res" >&6; }
31107
31108fi
31109as_val=`eval 'as_val=${'$as_ac_Header'}
31110		 $as_echo "$as_val"'`
31111   if test "x$as_val" = x""yes; then
31112  cat >>confdefs.h <<_ACEOF
31113#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31114_ACEOF
31115
31116fi
31117
31118done
31119
31120
31121
31122
31123
31124
31125
31126for ac_header in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
31127do
31128as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31130  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31131$as_echo_n "checking for $ac_header... " >&6; }
31132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31133  $as_echo_n "(cached) " >&6
31134fi
31135ac_res=`eval 'as_val=${'$as_ac_Header'}
31136		 $as_echo "$as_val"'`
31137	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31138$as_echo "$ac_res" >&6; }
31139else
31140  # Is the header compilable?
31141{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31142$as_echo_n "checking $ac_header usability... " >&6; }
31143cat >conftest.$ac_ext <<_ACEOF
31144/* confdefs.h.  */
31145_ACEOF
31146cat confdefs.h >>conftest.$ac_ext
31147cat >>conftest.$ac_ext <<_ACEOF
31148/* end confdefs.h.  */
31149$ac_includes_default
31150#include <$ac_header>
31151_ACEOF
31152rm -f conftest.$ac_objext
31153if { (ac_try="$ac_compile"
31154case "(($ac_try" in
31155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31156  *) ac_try_echo=$ac_try;;
31157esac
31158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31159$as_echo "$ac_try_echo") >&5
31160  (eval "$ac_compile") 2>conftest.er1
31161  ac_status=$?
31162  grep -v '^ *+' conftest.er1 >conftest.err
31163  rm -f conftest.er1
31164  cat conftest.err >&5
31165  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166  (exit $ac_status); } && {
31167	 test -z "$ac_c_werror_flag" ||
31168	 test ! -s conftest.err
31169       } && test -s conftest.$ac_objext; then
31170  ac_header_compiler=yes
31171else
31172  $as_echo "$as_me: failed program was:" >&5
31173sed 's/^/| /' conftest.$ac_ext >&5
31174
31175	ac_header_compiler=no
31176fi
31177
31178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31179{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31180$as_echo "$ac_header_compiler" >&6; }
31181
31182# Is the header present?
31183{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31184$as_echo_n "checking $ac_header presence... " >&6; }
31185cat >conftest.$ac_ext <<_ACEOF
31186/* confdefs.h.  */
31187_ACEOF
31188cat confdefs.h >>conftest.$ac_ext
31189cat >>conftest.$ac_ext <<_ACEOF
31190/* end confdefs.h.  */
31191#include <$ac_header>
31192_ACEOF
31193if { (ac_try="$ac_cpp conftest.$ac_ext"
31194case "(($ac_try" in
31195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31196  *) ac_try_echo=$ac_try;;
31197esac
31198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31199$as_echo "$ac_try_echo") >&5
31200  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31201  ac_status=$?
31202  grep -v '^ *+' conftest.er1 >conftest.err
31203  rm -f conftest.er1
31204  cat conftest.err >&5
31205  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206  (exit $ac_status); } >/dev/null && {
31207	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31208	 test ! -s conftest.err
31209       }; then
31210  ac_header_preproc=yes
31211else
31212  $as_echo "$as_me: failed program was:" >&5
31213sed 's/^/| /' conftest.$ac_ext >&5
31214
31215  ac_header_preproc=no
31216fi
31217
31218rm -f conftest.err conftest.$ac_ext
31219{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31220$as_echo "$ac_header_preproc" >&6; }
31221
31222# So?  What about this header?
31223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31224  yes:no: )
31225    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31226$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31227    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31228$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31229    ac_header_preproc=yes
31230    ;;
31231  no:yes:* )
31232    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31233$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31234    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31235$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31236    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31237$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31238    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31239$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31240    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31241$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31242    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31243$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31244    ( cat <<\_ASBOX
31245## ---------------------------------------- ##
31246## Report this to samba-technical@samba.org ##
31247## ---------------------------------------- ##
31248_ASBOX
31249     ) | sed "s/^/$as_me: WARNING:     /" >&2
31250    ;;
31251esac
31252{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31253$as_echo_n "checking for $ac_header... " >&6; }
31254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31255  $as_echo_n "(cached) " >&6
31256else
31257  eval "$as_ac_Header=\$ac_header_preproc"
31258fi
31259ac_res=`eval 'as_val=${'$as_ac_Header'}
31260		 $as_echo "$as_val"'`
31261	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31262$as_echo "$ac_res" >&6; }
31263
31264fi
31265as_val=`eval 'as_val=${'$as_ac_Header'}
31266		 $as_echo "$as_val"'`
31267   if test "x$as_val" = x""yes; then
31268  cat >>confdefs.h <<_ACEOF
31269#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31270_ACEOF
31271
31272fi
31273
31274done
31275
31276
31277
31278
31279
31280
31281for ac_header in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h
31282do
31283as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31285  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31286$as_echo_n "checking for $ac_header... " >&6; }
31287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31288  $as_echo_n "(cached) " >&6
31289fi
31290ac_res=`eval 'as_val=${'$as_ac_Header'}
31291		 $as_echo "$as_val"'`
31292	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31293$as_echo "$ac_res" >&6; }
31294else
31295  # Is the header compilable?
31296{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31297$as_echo_n "checking $ac_header usability... " >&6; }
31298cat >conftest.$ac_ext <<_ACEOF
31299/* confdefs.h.  */
31300_ACEOF
31301cat confdefs.h >>conftest.$ac_ext
31302cat >>conftest.$ac_ext <<_ACEOF
31303/* end confdefs.h.  */
31304$ac_includes_default
31305#include <$ac_header>
31306_ACEOF
31307rm -f conftest.$ac_objext
31308if { (ac_try="$ac_compile"
31309case "(($ac_try" in
31310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31311  *) ac_try_echo=$ac_try;;
31312esac
31313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31314$as_echo "$ac_try_echo") >&5
31315  (eval "$ac_compile") 2>conftest.er1
31316  ac_status=$?
31317  grep -v '^ *+' conftest.er1 >conftest.err
31318  rm -f conftest.er1
31319  cat conftest.err >&5
31320  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31321  (exit $ac_status); } && {
31322	 test -z "$ac_c_werror_flag" ||
31323	 test ! -s conftest.err
31324       } && test -s conftest.$ac_objext; then
31325  ac_header_compiler=yes
31326else
31327  $as_echo "$as_me: failed program was:" >&5
31328sed 's/^/| /' conftest.$ac_ext >&5
31329
31330	ac_header_compiler=no
31331fi
31332
31333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31334{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31335$as_echo "$ac_header_compiler" >&6; }
31336
31337# Is the header present?
31338{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31339$as_echo_n "checking $ac_header presence... " >&6; }
31340cat >conftest.$ac_ext <<_ACEOF
31341/* confdefs.h.  */
31342_ACEOF
31343cat confdefs.h >>conftest.$ac_ext
31344cat >>conftest.$ac_ext <<_ACEOF
31345/* end confdefs.h.  */
31346#include <$ac_header>
31347_ACEOF
31348if { (ac_try="$ac_cpp conftest.$ac_ext"
31349case "(($ac_try" in
31350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31351  *) ac_try_echo=$ac_try;;
31352esac
31353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31354$as_echo "$ac_try_echo") >&5
31355  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31356  ac_status=$?
31357  grep -v '^ *+' conftest.er1 >conftest.err
31358  rm -f conftest.er1
31359  cat conftest.err >&5
31360  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361  (exit $ac_status); } >/dev/null && {
31362	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31363	 test ! -s conftest.err
31364       }; then
31365  ac_header_preproc=yes
31366else
31367  $as_echo "$as_me: failed program was:" >&5
31368sed 's/^/| /' conftest.$ac_ext >&5
31369
31370  ac_header_preproc=no
31371fi
31372
31373rm -f conftest.err conftest.$ac_ext
31374{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31375$as_echo "$ac_header_preproc" >&6; }
31376
31377# So?  What about this header?
31378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31379  yes:no: )
31380    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31381$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31382    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31383$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31384    ac_header_preproc=yes
31385    ;;
31386  no:yes:* )
31387    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31388$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31389    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31390$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31391    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31392$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31393    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31394$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31395    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31396$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31397    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31398$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31399    ( cat <<\_ASBOX
31400## ---------------------------------------- ##
31401## Report this to samba-technical@samba.org ##
31402## ---------------------------------------- ##
31403_ASBOX
31404     ) | sed "s/^/$as_me: WARNING:     /" >&2
31405    ;;
31406esac
31407{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31408$as_echo_n "checking for $ac_header... " >&6; }
31409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31410  $as_echo_n "(cached) " >&6
31411else
31412  eval "$as_ac_Header=\$ac_header_preproc"
31413fi
31414ac_res=`eval 'as_val=${'$as_ac_Header'}
31415		 $as_echo "$as_val"'`
31416	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31417$as_echo "$ac_res" >&6; }
31418
31419fi
31420as_val=`eval 'as_val=${'$as_ac_Header'}
31421		 $as_echo "$as_val"'`
31422   if test "x$as_val" = x""yes; then
31423  cat >>confdefs.h <<_ACEOF
31424#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31425_ACEOF
31426
31427fi
31428
31429done
31430
31431
31432for ac_header in sys/sysmacros.h
31433do
31434as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31436  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31437$as_echo_n "checking for $ac_header... " >&6; }
31438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31439  $as_echo_n "(cached) " >&6
31440fi
31441ac_res=`eval 'as_val=${'$as_ac_Header'}
31442		 $as_echo "$as_val"'`
31443	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31444$as_echo "$ac_res" >&6; }
31445else
31446  # Is the header compilable?
31447{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31448$as_echo_n "checking $ac_header usability... " >&6; }
31449cat >conftest.$ac_ext <<_ACEOF
31450/* confdefs.h.  */
31451_ACEOF
31452cat confdefs.h >>conftest.$ac_ext
31453cat >>conftest.$ac_ext <<_ACEOF
31454/* end confdefs.h.  */
31455$ac_includes_default
31456#include <$ac_header>
31457_ACEOF
31458rm -f conftest.$ac_objext
31459if { (ac_try="$ac_compile"
31460case "(($ac_try" in
31461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31462  *) ac_try_echo=$ac_try;;
31463esac
31464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31465$as_echo "$ac_try_echo") >&5
31466  (eval "$ac_compile") 2>conftest.er1
31467  ac_status=$?
31468  grep -v '^ *+' conftest.er1 >conftest.err
31469  rm -f conftest.er1
31470  cat conftest.err >&5
31471  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31472  (exit $ac_status); } && {
31473	 test -z "$ac_c_werror_flag" ||
31474	 test ! -s conftest.err
31475       } && test -s conftest.$ac_objext; then
31476  ac_header_compiler=yes
31477else
31478  $as_echo "$as_me: failed program was:" >&5
31479sed 's/^/| /' conftest.$ac_ext >&5
31480
31481	ac_header_compiler=no
31482fi
31483
31484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31485{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31486$as_echo "$ac_header_compiler" >&6; }
31487
31488# Is the header present?
31489{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31490$as_echo_n "checking $ac_header presence... " >&6; }
31491cat >conftest.$ac_ext <<_ACEOF
31492/* confdefs.h.  */
31493_ACEOF
31494cat confdefs.h >>conftest.$ac_ext
31495cat >>conftest.$ac_ext <<_ACEOF
31496/* end confdefs.h.  */
31497#include <$ac_header>
31498_ACEOF
31499if { (ac_try="$ac_cpp conftest.$ac_ext"
31500case "(($ac_try" in
31501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502  *) ac_try_echo=$ac_try;;
31503esac
31504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31505$as_echo "$ac_try_echo") >&5
31506  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31507  ac_status=$?
31508  grep -v '^ *+' conftest.er1 >conftest.err
31509  rm -f conftest.er1
31510  cat conftest.err >&5
31511  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31512  (exit $ac_status); } >/dev/null && {
31513	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31514	 test ! -s conftest.err
31515       }; then
31516  ac_header_preproc=yes
31517else
31518  $as_echo "$as_me: failed program was:" >&5
31519sed 's/^/| /' conftest.$ac_ext >&5
31520
31521  ac_header_preproc=no
31522fi
31523
31524rm -f conftest.err conftest.$ac_ext
31525{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31526$as_echo "$ac_header_preproc" >&6; }
31527
31528# So?  What about this header?
31529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31530  yes:no: )
31531    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31532$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31533    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31534$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31535    ac_header_preproc=yes
31536    ;;
31537  no:yes:* )
31538    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31539$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31540    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31541$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31542    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31543$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31544    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31545$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31546    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31547$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31548    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31549$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31550    ( cat <<\_ASBOX
31551## ---------------------------------------- ##
31552## Report this to samba-technical@samba.org ##
31553## ---------------------------------------- ##
31554_ASBOX
31555     ) | sed "s/^/$as_me: WARNING:     /" >&2
31556    ;;
31557esac
31558{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31559$as_echo_n "checking for $ac_header... " >&6; }
31560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31561  $as_echo_n "(cached) " >&6
31562else
31563  eval "$as_ac_Header=\$ac_header_preproc"
31564fi
31565ac_res=`eval 'as_val=${'$as_ac_Header'}
31566		 $as_echo "$as_val"'`
31567	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31568$as_echo "$ac_res" >&6; }
31569
31570fi
31571as_val=`eval 'as_val=${'$as_ac_Header'}
31572		 $as_echo "$as_val"'`
31573   if test "x$as_val" = x""yes; then
31574  cat >>confdefs.h <<_ACEOF
31575#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31576_ACEOF
31577
31578fi
31579
31580done
31581
31582
31583
31584for ac_header in sys/syslog.h syslog.h
31585do
31586as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31588  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31589$as_echo_n "checking for $ac_header... " >&6; }
31590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31591  $as_echo_n "(cached) " >&6
31592fi
31593ac_res=`eval 'as_val=${'$as_ac_Header'}
31594		 $as_echo "$as_val"'`
31595	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31596$as_echo "$ac_res" >&6; }
31597else
31598  # Is the header compilable?
31599{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31600$as_echo_n "checking $ac_header usability... " >&6; }
31601cat >conftest.$ac_ext <<_ACEOF
31602/* confdefs.h.  */
31603_ACEOF
31604cat confdefs.h >>conftest.$ac_ext
31605cat >>conftest.$ac_ext <<_ACEOF
31606/* end confdefs.h.  */
31607$ac_includes_default
31608#include <$ac_header>
31609_ACEOF
31610rm -f conftest.$ac_objext
31611if { (ac_try="$ac_compile"
31612case "(($ac_try" in
31613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31614  *) ac_try_echo=$ac_try;;
31615esac
31616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31617$as_echo "$ac_try_echo") >&5
31618  (eval "$ac_compile") 2>conftest.er1
31619  ac_status=$?
31620  grep -v '^ *+' conftest.er1 >conftest.err
31621  rm -f conftest.er1
31622  cat conftest.err >&5
31623  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624  (exit $ac_status); } && {
31625	 test -z "$ac_c_werror_flag" ||
31626	 test ! -s conftest.err
31627       } && test -s conftest.$ac_objext; then
31628  ac_header_compiler=yes
31629else
31630  $as_echo "$as_me: failed program was:" >&5
31631sed 's/^/| /' conftest.$ac_ext >&5
31632
31633	ac_header_compiler=no
31634fi
31635
31636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31637{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31638$as_echo "$ac_header_compiler" >&6; }
31639
31640# Is the header present?
31641{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31642$as_echo_n "checking $ac_header presence... " >&6; }
31643cat >conftest.$ac_ext <<_ACEOF
31644/* confdefs.h.  */
31645_ACEOF
31646cat confdefs.h >>conftest.$ac_ext
31647cat >>conftest.$ac_ext <<_ACEOF
31648/* end confdefs.h.  */
31649#include <$ac_header>
31650_ACEOF
31651if { (ac_try="$ac_cpp conftest.$ac_ext"
31652case "(($ac_try" in
31653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654  *) ac_try_echo=$ac_try;;
31655esac
31656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31657$as_echo "$ac_try_echo") >&5
31658  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31659  ac_status=$?
31660  grep -v '^ *+' conftest.er1 >conftest.err
31661  rm -f conftest.er1
31662  cat conftest.err >&5
31663  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664  (exit $ac_status); } >/dev/null && {
31665	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31666	 test ! -s conftest.err
31667       }; then
31668  ac_header_preproc=yes
31669else
31670  $as_echo "$as_me: failed program was:" >&5
31671sed 's/^/| /' conftest.$ac_ext >&5
31672
31673  ac_header_preproc=no
31674fi
31675
31676rm -f conftest.err conftest.$ac_ext
31677{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31678$as_echo "$ac_header_preproc" >&6; }
31679
31680# So?  What about this header?
31681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31682  yes:no: )
31683    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31684$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31685    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31686$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31687    ac_header_preproc=yes
31688    ;;
31689  no:yes:* )
31690    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31691$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31692    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31693$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31694    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31695$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31696    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31697$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31698    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31699$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31700    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31701$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31702    ( cat <<\_ASBOX
31703## ---------------------------------------- ##
31704## Report this to samba-technical@samba.org ##
31705## ---------------------------------------- ##
31706_ASBOX
31707     ) | sed "s/^/$as_me: WARNING:     /" >&2
31708    ;;
31709esac
31710{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31711$as_echo_n "checking for $ac_header... " >&6; }
31712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31713  $as_echo_n "(cached) " >&6
31714else
31715  eval "$as_ac_Header=\$ac_header_preproc"
31716fi
31717ac_res=`eval 'as_val=${'$as_ac_Header'}
31718		 $as_echo "$as_val"'`
31719	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31720$as_echo "$ac_res" >&6; }
31721
31722fi
31723as_val=`eval 'as_val=${'$as_ac_Header'}
31724		 $as_echo "$as_val"'`
31725   if test "x$as_val" = x""yes; then
31726  cat >>confdefs.h <<_ACEOF
31727#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31728_ACEOF
31729
31730fi
31731
31732done
31733
31734
31735
31736for ac_header in langinfo.h locale.h
31737do
31738as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31740  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31741$as_echo_n "checking for $ac_header... " >&6; }
31742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31743  $as_echo_n "(cached) " >&6
31744fi
31745ac_res=`eval 'as_val=${'$as_ac_Header'}
31746		 $as_echo "$as_val"'`
31747	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31748$as_echo "$ac_res" >&6; }
31749else
31750  # Is the header compilable?
31751{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31752$as_echo_n "checking $ac_header usability... " >&6; }
31753cat >conftest.$ac_ext <<_ACEOF
31754/* confdefs.h.  */
31755_ACEOF
31756cat confdefs.h >>conftest.$ac_ext
31757cat >>conftest.$ac_ext <<_ACEOF
31758/* end confdefs.h.  */
31759$ac_includes_default
31760#include <$ac_header>
31761_ACEOF
31762rm -f conftest.$ac_objext
31763if { (ac_try="$ac_compile"
31764case "(($ac_try" in
31765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31766  *) ac_try_echo=$ac_try;;
31767esac
31768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31769$as_echo "$ac_try_echo") >&5
31770  (eval "$ac_compile") 2>conftest.er1
31771  ac_status=$?
31772  grep -v '^ *+' conftest.er1 >conftest.err
31773  rm -f conftest.er1
31774  cat conftest.err >&5
31775  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776  (exit $ac_status); } && {
31777	 test -z "$ac_c_werror_flag" ||
31778	 test ! -s conftest.err
31779       } && test -s conftest.$ac_objext; then
31780  ac_header_compiler=yes
31781else
31782  $as_echo "$as_me: failed program was:" >&5
31783sed 's/^/| /' conftest.$ac_ext >&5
31784
31785	ac_header_compiler=no
31786fi
31787
31788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31789{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31790$as_echo "$ac_header_compiler" >&6; }
31791
31792# Is the header present?
31793{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31794$as_echo_n "checking $ac_header presence... " >&6; }
31795cat >conftest.$ac_ext <<_ACEOF
31796/* confdefs.h.  */
31797_ACEOF
31798cat confdefs.h >>conftest.$ac_ext
31799cat >>conftest.$ac_ext <<_ACEOF
31800/* end confdefs.h.  */
31801#include <$ac_header>
31802_ACEOF
31803if { (ac_try="$ac_cpp conftest.$ac_ext"
31804case "(($ac_try" in
31805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31806  *) ac_try_echo=$ac_try;;
31807esac
31808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31809$as_echo "$ac_try_echo") >&5
31810  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31811  ac_status=$?
31812  grep -v '^ *+' conftest.er1 >conftest.err
31813  rm -f conftest.er1
31814  cat conftest.err >&5
31815  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31816  (exit $ac_status); } >/dev/null && {
31817	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31818	 test ! -s conftest.err
31819       }; then
31820  ac_header_preproc=yes
31821else
31822  $as_echo "$as_me: failed program was:" >&5
31823sed 's/^/| /' conftest.$ac_ext >&5
31824
31825  ac_header_preproc=no
31826fi
31827
31828rm -f conftest.err conftest.$ac_ext
31829{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31830$as_echo "$ac_header_preproc" >&6; }
31831
31832# So?  What about this header?
31833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31834  yes:no: )
31835    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31836$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31837    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31838$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31839    ac_header_preproc=yes
31840    ;;
31841  no:yes:* )
31842    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31843$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31844    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31845$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31846    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31847$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31848    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31849$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31850    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31851$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31852    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31853$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31854    ( cat <<\_ASBOX
31855## ---------------------------------------- ##
31856## Report this to samba-technical@samba.org ##
31857## ---------------------------------------- ##
31858_ASBOX
31859     ) | sed "s/^/$as_me: WARNING:     /" >&2
31860    ;;
31861esac
31862{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31863$as_echo_n "checking for $ac_header... " >&6; }
31864if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31865  $as_echo_n "(cached) " >&6
31866else
31867  eval "$as_ac_Header=\$ac_header_preproc"
31868fi
31869ac_res=`eval 'as_val=${'$as_ac_Header'}
31870		 $as_echo "$as_val"'`
31871	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31872$as_echo "$ac_res" >&6; }
31873
31874fi
31875as_val=`eval 'as_val=${'$as_ac_Header'}
31876		 $as_echo "$as_val"'`
31877   if test "x$as_val" = x""yes; then
31878  cat >>confdefs.h <<_ACEOF
31879#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31880_ACEOF
31881
31882fi
31883
31884done
31885
31886
31887for ac_header in xfs/libxfs.h
31888do
31889as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31890if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31891  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31892$as_echo_n "checking for $ac_header... " >&6; }
31893if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31894  $as_echo_n "(cached) " >&6
31895fi
31896ac_res=`eval 'as_val=${'$as_ac_Header'}
31897		 $as_echo "$as_val"'`
31898	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31899$as_echo "$ac_res" >&6; }
31900else
31901  # Is the header compilable?
31902{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31903$as_echo_n "checking $ac_header usability... " >&6; }
31904cat >conftest.$ac_ext <<_ACEOF
31905/* confdefs.h.  */
31906_ACEOF
31907cat confdefs.h >>conftest.$ac_ext
31908cat >>conftest.$ac_ext <<_ACEOF
31909/* end confdefs.h.  */
31910$ac_includes_default
31911#include <$ac_header>
31912_ACEOF
31913rm -f conftest.$ac_objext
31914if { (ac_try="$ac_compile"
31915case "(($ac_try" in
31916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31917  *) ac_try_echo=$ac_try;;
31918esac
31919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31920$as_echo "$ac_try_echo") >&5
31921  (eval "$ac_compile") 2>conftest.er1
31922  ac_status=$?
31923  grep -v '^ *+' conftest.er1 >conftest.err
31924  rm -f conftest.er1
31925  cat conftest.err >&5
31926  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927  (exit $ac_status); } && {
31928	 test -z "$ac_c_werror_flag" ||
31929	 test ! -s conftest.err
31930       } && test -s conftest.$ac_objext; then
31931  ac_header_compiler=yes
31932else
31933  $as_echo "$as_me: failed program was:" >&5
31934sed 's/^/| /' conftest.$ac_ext >&5
31935
31936	ac_header_compiler=no
31937fi
31938
31939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31940{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31941$as_echo "$ac_header_compiler" >&6; }
31942
31943# Is the header present?
31944{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31945$as_echo_n "checking $ac_header presence... " >&6; }
31946cat >conftest.$ac_ext <<_ACEOF
31947/* confdefs.h.  */
31948_ACEOF
31949cat confdefs.h >>conftest.$ac_ext
31950cat >>conftest.$ac_ext <<_ACEOF
31951/* end confdefs.h.  */
31952#include <$ac_header>
31953_ACEOF
31954if { (ac_try="$ac_cpp conftest.$ac_ext"
31955case "(($ac_try" in
31956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31957  *) ac_try_echo=$ac_try;;
31958esac
31959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31960$as_echo "$ac_try_echo") >&5
31961  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31962  ac_status=$?
31963  grep -v '^ *+' conftest.er1 >conftest.err
31964  rm -f conftest.er1
31965  cat conftest.err >&5
31966  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31967  (exit $ac_status); } >/dev/null && {
31968	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31969	 test ! -s conftest.err
31970       }; then
31971  ac_header_preproc=yes
31972else
31973  $as_echo "$as_me: failed program was:" >&5
31974sed 's/^/| /' conftest.$ac_ext >&5
31975
31976  ac_header_preproc=no
31977fi
31978
31979rm -f conftest.err conftest.$ac_ext
31980{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31981$as_echo "$ac_header_preproc" >&6; }
31982
31983# So?  What about this header?
31984case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31985  yes:no: )
31986    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31987$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31988    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31989$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31990    ac_header_preproc=yes
31991    ;;
31992  no:yes:* )
31993    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31994$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31995    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31996$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31997    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31998$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31999    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32000$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32001    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32002$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32003    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32004$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32005    ( cat <<\_ASBOX
32006## ---------------------------------------- ##
32007## Report this to samba-technical@samba.org ##
32008## ---------------------------------------- ##
32009_ASBOX
32010     ) | sed "s/^/$as_me: WARNING:     /" >&2
32011    ;;
32012esac
32013{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32014$as_echo_n "checking for $ac_header... " >&6; }
32015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32016  $as_echo_n "(cached) " >&6
32017else
32018  eval "$as_ac_Header=\$ac_header_preproc"
32019fi
32020ac_res=`eval 'as_val=${'$as_ac_Header'}
32021		 $as_echo "$as_val"'`
32022	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32023$as_echo "$ac_res" >&6; }
32024
32025fi
32026as_val=`eval 'as_val=${'$as_ac_Header'}
32027		 $as_echo "$as_val"'`
32028   if test "x$as_val" = x""yes; then
32029  cat >>confdefs.h <<_ACEOF
32030#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32031_ACEOF
32032
32033fi
32034
32035done
32036
32037
32038for ac_header in netgroup.h
32039do
32040as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32042  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32043$as_echo_n "checking for $ac_header... " >&6; }
32044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32045  $as_echo_n "(cached) " >&6
32046fi
32047ac_res=`eval 'as_val=${'$as_ac_Header'}
32048		 $as_echo "$as_val"'`
32049	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32050$as_echo "$ac_res" >&6; }
32051else
32052  # Is the header compilable?
32053{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32054$as_echo_n "checking $ac_header usability... " >&6; }
32055cat >conftest.$ac_ext <<_ACEOF
32056/* confdefs.h.  */
32057_ACEOF
32058cat confdefs.h >>conftest.$ac_ext
32059cat >>conftest.$ac_ext <<_ACEOF
32060/* end confdefs.h.  */
32061$ac_includes_default
32062#include <$ac_header>
32063_ACEOF
32064rm -f conftest.$ac_objext
32065if { (ac_try="$ac_compile"
32066case "(($ac_try" in
32067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32068  *) ac_try_echo=$ac_try;;
32069esac
32070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32071$as_echo "$ac_try_echo") >&5
32072  (eval "$ac_compile") 2>conftest.er1
32073  ac_status=$?
32074  grep -v '^ *+' conftest.er1 >conftest.err
32075  rm -f conftest.er1
32076  cat conftest.err >&5
32077  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32078  (exit $ac_status); } && {
32079	 test -z "$ac_c_werror_flag" ||
32080	 test ! -s conftest.err
32081       } && test -s conftest.$ac_objext; then
32082  ac_header_compiler=yes
32083else
32084  $as_echo "$as_me: failed program was:" >&5
32085sed 's/^/| /' conftest.$ac_ext >&5
32086
32087	ac_header_compiler=no
32088fi
32089
32090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32091{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32092$as_echo "$ac_header_compiler" >&6; }
32093
32094# Is the header present?
32095{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32096$as_echo_n "checking $ac_header presence... " >&6; }
32097cat >conftest.$ac_ext <<_ACEOF
32098/* confdefs.h.  */
32099_ACEOF
32100cat confdefs.h >>conftest.$ac_ext
32101cat >>conftest.$ac_ext <<_ACEOF
32102/* end confdefs.h.  */
32103#include <$ac_header>
32104_ACEOF
32105if { (ac_try="$ac_cpp conftest.$ac_ext"
32106case "(($ac_try" in
32107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32108  *) ac_try_echo=$ac_try;;
32109esac
32110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32111$as_echo "$ac_try_echo") >&5
32112  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32113  ac_status=$?
32114  grep -v '^ *+' conftest.er1 >conftest.err
32115  rm -f conftest.er1
32116  cat conftest.err >&5
32117  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118  (exit $ac_status); } >/dev/null && {
32119	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32120	 test ! -s conftest.err
32121       }; then
32122  ac_header_preproc=yes
32123else
32124  $as_echo "$as_me: failed program was:" >&5
32125sed 's/^/| /' conftest.$ac_ext >&5
32126
32127  ac_header_preproc=no
32128fi
32129
32130rm -f conftest.err conftest.$ac_ext
32131{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32132$as_echo "$ac_header_preproc" >&6; }
32133
32134# So?  What about this header?
32135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32136  yes:no: )
32137    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32138$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32139    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32140$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32141    ac_header_preproc=yes
32142    ;;
32143  no:yes:* )
32144    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32145$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32146    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32147$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32148    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32149$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32150    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32151$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32152    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32153$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32154    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32155$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32156    ( cat <<\_ASBOX
32157## ---------------------------------------- ##
32158## Report this to samba-technical@samba.org ##
32159## ---------------------------------------- ##
32160_ASBOX
32161     ) | sed "s/^/$as_me: WARNING:     /" >&2
32162    ;;
32163esac
32164{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32165$as_echo_n "checking for $ac_header... " >&6; }
32166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32167  $as_echo_n "(cached) " >&6
32168else
32169  eval "$as_ac_Header=\$ac_header_preproc"
32170fi
32171ac_res=`eval 'as_val=${'$as_ac_Header'}
32172		 $as_echo "$as_val"'`
32173	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32174$as_echo "$ac_res" >&6; }
32175
32176fi
32177as_val=`eval 'as_val=${'$as_ac_Header'}
32178		 $as_echo "$as_val"'`
32179   if test "x$as_val" = x""yes; then
32180  cat >>confdefs.h <<_ACEOF
32181#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32182_ACEOF
32183
32184fi
32185
32186done
32187
32188
32189
32190for ac_header in rpcsvc/yp_prot.h
32191do
32192as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32193{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32194$as_echo_n "checking for $ac_header... " >&6; }
32195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32196  $as_echo_n "(cached) " >&6
32197else
32198  cat >conftest.$ac_ext <<_ACEOF
32199/* confdefs.h.  */
32200_ACEOF
32201cat confdefs.h >>conftest.$ac_ext
32202cat >>conftest.$ac_ext <<_ACEOF
32203/* end confdefs.h.  */
32204
32205#if HAVE_RPC_RPC_H
32206#include <rpc/rpc.h>
32207#endif
32208
32209
32210#include <$ac_header>
32211_ACEOF
32212rm -f conftest.$ac_objext
32213if { (ac_try="$ac_compile"
32214case "(($ac_try" in
32215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32216  *) ac_try_echo=$ac_try;;
32217esac
32218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32219$as_echo "$ac_try_echo") >&5
32220  (eval "$ac_compile") 2>conftest.er1
32221  ac_status=$?
32222  grep -v '^ *+' conftest.er1 >conftest.err
32223  rm -f conftest.er1
32224  cat conftest.err >&5
32225  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226  (exit $ac_status); } && {
32227	 test -z "$ac_c_werror_flag" ||
32228	 test ! -s conftest.err
32229       } && test -s conftest.$ac_objext; then
32230  eval "$as_ac_Header=yes"
32231else
32232  $as_echo "$as_me: failed program was:" >&5
32233sed 's/^/| /' conftest.$ac_ext >&5
32234
32235	eval "$as_ac_Header=no"
32236fi
32237
32238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32239fi
32240ac_res=`eval 'as_val=${'$as_ac_Header'}
32241		 $as_echo "$as_val"'`
32242	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32243$as_echo "$ac_res" >&6; }
32244as_val=`eval 'as_val=${'$as_ac_Header'}
32245		 $as_echo "$as_val"'`
32246   if test "x$as_val" = x""yes; then
32247  cat >>confdefs.h <<_ACEOF
32248#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32249_ACEOF
32250
32251fi
32252
32253done
32254
32255
32256## These fail to compile on IRIX so just check for their presence
32257
32258for ac_header in sys/mode.h
32259do
32260as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32262  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32263$as_echo_n "checking for $ac_header... " >&6; }
32264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32265  $as_echo_n "(cached) " >&6
32266fi
32267ac_res=`eval 'as_val=${'$as_ac_Header'}
32268		 $as_echo "$as_val"'`
32269	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32270$as_echo "$ac_res" >&6; }
32271else
32272  # Is the header compilable?
32273{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32274$as_echo_n "checking $ac_header usability... " >&6; }
32275cat >conftest.$ac_ext <<_ACEOF
32276/* confdefs.h.  */
32277_ACEOF
32278cat confdefs.h >>conftest.$ac_ext
32279cat >>conftest.$ac_ext <<_ACEOF
32280/* end confdefs.h.  */
32281$ac_includes_default
32282#include <$ac_header>
32283_ACEOF
32284rm -f conftest.$ac_objext
32285if { (ac_try="$ac_compile"
32286case "(($ac_try" in
32287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32288  *) ac_try_echo=$ac_try;;
32289esac
32290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32291$as_echo "$ac_try_echo") >&5
32292  (eval "$ac_compile") 2>conftest.er1
32293  ac_status=$?
32294  grep -v '^ *+' conftest.er1 >conftest.err
32295  rm -f conftest.er1
32296  cat conftest.err >&5
32297  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298  (exit $ac_status); } && {
32299	 test -z "$ac_c_werror_flag" ||
32300	 test ! -s conftest.err
32301       } && test -s conftest.$ac_objext; then
32302  ac_header_compiler=yes
32303else
32304  $as_echo "$as_me: failed program was:" >&5
32305sed 's/^/| /' conftest.$ac_ext >&5
32306
32307	ac_header_compiler=no
32308fi
32309
32310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32311{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32312$as_echo "$ac_header_compiler" >&6; }
32313
32314# Is the header present?
32315{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32316$as_echo_n "checking $ac_header presence... " >&6; }
32317cat >conftest.$ac_ext <<_ACEOF
32318/* confdefs.h.  */
32319_ACEOF
32320cat confdefs.h >>conftest.$ac_ext
32321cat >>conftest.$ac_ext <<_ACEOF
32322/* end confdefs.h.  */
32323#include <$ac_header>
32324_ACEOF
32325if { (ac_try="$ac_cpp conftest.$ac_ext"
32326case "(($ac_try" in
32327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32328  *) ac_try_echo=$ac_try;;
32329esac
32330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32331$as_echo "$ac_try_echo") >&5
32332  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32333  ac_status=$?
32334  grep -v '^ *+' conftest.er1 >conftest.err
32335  rm -f conftest.er1
32336  cat conftest.err >&5
32337  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32338  (exit $ac_status); } >/dev/null && {
32339	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32340	 test ! -s conftest.err
32341       }; then
32342  ac_header_preproc=yes
32343else
32344  $as_echo "$as_me: failed program was:" >&5
32345sed 's/^/| /' conftest.$ac_ext >&5
32346
32347  ac_header_preproc=no
32348fi
32349
32350rm -f conftest.err conftest.$ac_ext
32351{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32352$as_echo "$ac_header_preproc" >&6; }
32353
32354# So?  What about this header?
32355case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32356  yes:no: )
32357    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32358$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32359    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32360$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32361    ac_header_preproc=yes
32362    ;;
32363  no:yes:* )
32364    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32365$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32366    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32367$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32368    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32369$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32370    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32371$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32372    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32373$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32374    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32375$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32376    ( cat <<\_ASBOX
32377## ---------------------------------------- ##
32378## Report this to samba-technical@samba.org ##
32379## ---------------------------------------- ##
32380_ASBOX
32381     ) | sed "s/^/$as_me: WARNING:     /" >&2
32382    ;;
32383esac
32384{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32385$as_echo_n "checking for $ac_header... " >&6; }
32386if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32387  $as_echo_n "(cached) " >&6
32388else
32389  eval "$as_ac_Header=\$ac_header_preproc"
32390fi
32391ac_res=`eval 'as_val=${'$as_ac_Header'}
32392		 $as_echo "$as_val"'`
32393	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32394$as_echo "$ac_res" >&6; }
32395
32396fi
32397as_val=`eval 'as_val=${'$as_ac_Header'}
32398		 $as_echo "$as_val"'`
32399   if test "x$as_val" = x""yes; then
32400  cat >>confdefs.h <<_ACEOF
32401#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32402_ACEOF
32403
32404fi
32405
32406done
32407
32408
32409# Look for Darwin headers
32410old_CPPFLAGS="$CPPFLAGS"
32411CPPFLAGS="-Iinclude $CPPFLAGS"
32412
32413for ac_header in CoreFoundation/CFStringEncodingConverter.h
32414do
32415as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32417  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32418$as_echo_n "checking for $ac_header... " >&6; }
32419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32420  $as_echo_n "(cached) " >&6
32421fi
32422ac_res=`eval 'as_val=${'$as_ac_Header'}
32423		 $as_echo "$as_val"'`
32424	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32425$as_echo "$ac_res" >&6; }
32426else
32427  # Is the header compilable?
32428{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32429$as_echo_n "checking $ac_header usability... " >&6; }
32430cat >conftest.$ac_ext <<_ACEOF
32431/* confdefs.h.  */
32432_ACEOF
32433cat confdefs.h >>conftest.$ac_ext
32434cat >>conftest.$ac_ext <<_ACEOF
32435/* end confdefs.h.  */
32436$ac_includes_default
32437#include <$ac_header>
32438_ACEOF
32439rm -f conftest.$ac_objext
32440if { (ac_try="$ac_compile"
32441case "(($ac_try" in
32442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32443  *) ac_try_echo=$ac_try;;
32444esac
32445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32446$as_echo "$ac_try_echo") >&5
32447  (eval "$ac_compile") 2>conftest.er1
32448  ac_status=$?
32449  grep -v '^ *+' conftest.er1 >conftest.err
32450  rm -f conftest.er1
32451  cat conftest.err >&5
32452  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453  (exit $ac_status); } && {
32454	 test -z "$ac_c_werror_flag" ||
32455	 test ! -s conftest.err
32456       } && test -s conftest.$ac_objext; then
32457  ac_header_compiler=yes
32458else
32459  $as_echo "$as_me: failed program was:" >&5
32460sed 's/^/| /' conftest.$ac_ext >&5
32461
32462	ac_header_compiler=no
32463fi
32464
32465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32466{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32467$as_echo "$ac_header_compiler" >&6; }
32468
32469# Is the header present?
32470{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32471$as_echo_n "checking $ac_header presence... " >&6; }
32472cat >conftest.$ac_ext <<_ACEOF
32473/* confdefs.h.  */
32474_ACEOF
32475cat confdefs.h >>conftest.$ac_ext
32476cat >>conftest.$ac_ext <<_ACEOF
32477/* end confdefs.h.  */
32478#include <$ac_header>
32479_ACEOF
32480if { (ac_try="$ac_cpp conftest.$ac_ext"
32481case "(($ac_try" in
32482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32483  *) ac_try_echo=$ac_try;;
32484esac
32485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32486$as_echo "$ac_try_echo") >&5
32487  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32488  ac_status=$?
32489  grep -v '^ *+' conftest.er1 >conftest.err
32490  rm -f conftest.er1
32491  cat conftest.err >&5
32492  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32493  (exit $ac_status); } >/dev/null && {
32494	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32495	 test ! -s conftest.err
32496       }; then
32497  ac_header_preproc=yes
32498else
32499  $as_echo "$as_me: failed program was:" >&5
32500sed 's/^/| /' conftest.$ac_ext >&5
32501
32502  ac_header_preproc=no
32503fi
32504
32505rm -f conftest.err conftest.$ac_ext
32506{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32507$as_echo "$ac_header_preproc" >&6; }
32508
32509# So?  What about this header?
32510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32511  yes:no: )
32512    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32513$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32514    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32515$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32516    ac_header_preproc=yes
32517    ;;
32518  no:yes:* )
32519    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32520$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32521    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32522$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32523    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32524$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32525    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32526$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32527    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32528$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32529    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32530$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32531    ( cat <<\_ASBOX
32532## ---------------------------------------- ##
32533## Report this to samba-technical@samba.org ##
32534## ---------------------------------------- ##
32535_ASBOX
32536     ) | sed "s/^/$as_me: WARNING:     /" >&2
32537    ;;
32538esac
32539{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32540$as_echo_n "checking for $ac_header... " >&6; }
32541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32542  $as_echo_n "(cached) " >&6
32543else
32544  eval "$as_ac_Header=\$ac_header_preproc"
32545fi
32546ac_res=`eval 'as_val=${'$as_ac_Header'}
32547		 $as_echo "$as_val"'`
32548	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32549$as_echo "$ac_res" >&6; }
32550
32551fi
32552as_val=`eval 'as_val=${'$as_ac_Header'}
32553		 $as_echo "$as_val"'`
32554   if test "x$as_val" = x""yes; then
32555  cat >>confdefs.h <<_ACEOF
32556#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32557_ACEOF
32558
32559else
32560
32561for ac_header in CFStringEncodingConverter.h
32562do
32563as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32565  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32566$as_echo_n "checking for $ac_header... " >&6; }
32567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32568  $as_echo_n "(cached) " >&6
32569fi
32570ac_res=`eval 'as_val=${'$as_ac_Header'}
32571		 $as_echo "$as_val"'`
32572	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32573$as_echo "$ac_res" >&6; }
32574else
32575  # Is the header compilable?
32576{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32577$as_echo_n "checking $ac_header usability... " >&6; }
32578cat >conftest.$ac_ext <<_ACEOF
32579/* confdefs.h.  */
32580_ACEOF
32581cat confdefs.h >>conftest.$ac_ext
32582cat >>conftest.$ac_ext <<_ACEOF
32583/* end confdefs.h.  */
32584$ac_includes_default
32585#include <$ac_header>
32586_ACEOF
32587rm -f conftest.$ac_objext
32588if { (ac_try="$ac_compile"
32589case "(($ac_try" in
32590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32591  *) ac_try_echo=$ac_try;;
32592esac
32593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32594$as_echo "$ac_try_echo") >&5
32595  (eval "$ac_compile") 2>conftest.er1
32596  ac_status=$?
32597  grep -v '^ *+' conftest.er1 >conftest.err
32598  rm -f conftest.er1
32599  cat conftest.err >&5
32600  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32601  (exit $ac_status); } && {
32602	 test -z "$ac_c_werror_flag" ||
32603	 test ! -s conftest.err
32604       } && test -s conftest.$ac_objext; then
32605  ac_header_compiler=yes
32606else
32607  $as_echo "$as_me: failed program was:" >&5
32608sed 's/^/| /' conftest.$ac_ext >&5
32609
32610	ac_header_compiler=no
32611fi
32612
32613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32614{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32615$as_echo "$ac_header_compiler" >&6; }
32616
32617# Is the header present?
32618{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32619$as_echo_n "checking $ac_header presence... " >&6; }
32620cat >conftest.$ac_ext <<_ACEOF
32621/* confdefs.h.  */
32622_ACEOF
32623cat confdefs.h >>conftest.$ac_ext
32624cat >>conftest.$ac_ext <<_ACEOF
32625/* end confdefs.h.  */
32626#include <$ac_header>
32627_ACEOF
32628if { (ac_try="$ac_cpp conftest.$ac_ext"
32629case "(($ac_try" in
32630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32631  *) ac_try_echo=$ac_try;;
32632esac
32633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32634$as_echo "$ac_try_echo") >&5
32635  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32636  ac_status=$?
32637  grep -v '^ *+' conftest.er1 >conftest.err
32638  rm -f conftest.er1
32639  cat conftest.err >&5
32640  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641  (exit $ac_status); } >/dev/null && {
32642	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32643	 test ! -s conftest.err
32644       }; then
32645  ac_header_preproc=yes
32646else
32647  $as_echo "$as_me: failed program was:" >&5
32648sed 's/^/| /' conftest.$ac_ext >&5
32649
32650  ac_header_preproc=no
32651fi
32652
32653rm -f conftest.err conftest.$ac_ext
32654{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32655$as_echo "$ac_header_preproc" >&6; }
32656
32657# So?  What about this header?
32658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32659  yes:no: )
32660    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32661$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32662    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32663$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32664    ac_header_preproc=yes
32665    ;;
32666  no:yes:* )
32667    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32668$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32669    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32670$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32671    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32672$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32673    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32674$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32675    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32676$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32677    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32678$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32679    ( cat <<\_ASBOX
32680## ---------------------------------------- ##
32681## Report this to samba-technical@samba.org ##
32682## ---------------------------------------- ##
32683_ASBOX
32684     ) | sed "s/^/$as_me: WARNING:     /" >&2
32685    ;;
32686esac
32687{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32688$as_echo_n "checking for $ac_header... " >&6; }
32689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32690  $as_echo_n "(cached) " >&6
32691else
32692  eval "$as_ac_Header=\$ac_header_preproc"
32693fi
32694ac_res=`eval 'as_val=${'$as_ac_Header'}
32695		 $as_echo "$as_val"'`
32696	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32697$as_echo "$ac_res" >&6; }
32698
32699fi
32700as_val=`eval 'as_val=${'$as_ac_Header'}
32701		 $as_echo "$as_val"'`
32702   if test "x$as_val" = x""yes; then
32703  cat >>confdefs.h <<_ACEOF
32704#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32705_ACEOF
32706
32707fi
32708
32709done
32710
32711fi
32712
32713done
32714
32715CPPFLAGS="$old_CPPFLAGS"
32716
32717# In valgrind 1.0.x, it's just valgrind.h.  In 1.9.x+ there's a
32718# subdirectory of headers.
32719
32720
32721
32722for ac_header in valgrind.h valgrind/valgrind.h valgrind/memcheck.h
32723do
32724as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32726  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32727$as_echo_n "checking for $ac_header... " >&6; }
32728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32729  $as_echo_n "(cached) " >&6
32730fi
32731ac_res=`eval 'as_val=${'$as_ac_Header'}
32732		 $as_echo "$as_val"'`
32733	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32734$as_echo "$ac_res" >&6; }
32735else
32736  # Is the header compilable?
32737{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32738$as_echo_n "checking $ac_header usability... " >&6; }
32739cat >conftest.$ac_ext <<_ACEOF
32740/* confdefs.h.  */
32741_ACEOF
32742cat confdefs.h >>conftest.$ac_ext
32743cat >>conftest.$ac_ext <<_ACEOF
32744/* end confdefs.h.  */
32745$ac_includes_default
32746#include <$ac_header>
32747_ACEOF
32748rm -f conftest.$ac_objext
32749if { (ac_try="$ac_compile"
32750case "(($ac_try" in
32751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32752  *) ac_try_echo=$ac_try;;
32753esac
32754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32755$as_echo "$ac_try_echo") >&5
32756  (eval "$ac_compile") 2>conftest.er1
32757  ac_status=$?
32758  grep -v '^ *+' conftest.er1 >conftest.err
32759  rm -f conftest.er1
32760  cat conftest.err >&5
32761  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32762  (exit $ac_status); } && {
32763	 test -z "$ac_c_werror_flag" ||
32764	 test ! -s conftest.err
32765       } && test -s conftest.$ac_objext; then
32766  ac_header_compiler=yes
32767else
32768  $as_echo "$as_me: failed program was:" >&5
32769sed 's/^/| /' conftest.$ac_ext >&5
32770
32771	ac_header_compiler=no
32772fi
32773
32774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32775{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32776$as_echo "$ac_header_compiler" >&6; }
32777
32778# Is the header present?
32779{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32780$as_echo_n "checking $ac_header presence... " >&6; }
32781cat >conftest.$ac_ext <<_ACEOF
32782/* confdefs.h.  */
32783_ACEOF
32784cat confdefs.h >>conftest.$ac_ext
32785cat >>conftest.$ac_ext <<_ACEOF
32786/* end confdefs.h.  */
32787#include <$ac_header>
32788_ACEOF
32789if { (ac_try="$ac_cpp conftest.$ac_ext"
32790case "(($ac_try" in
32791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792  *) ac_try_echo=$ac_try;;
32793esac
32794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32795$as_echo "$ac_try_echo") >&5
32796  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32797  ac_status=$?
32798  grep -v '^ *+' conftest.er1 >conftest.err
32799  rm -f conftest.er1
32800  cat conftest.err >&5
32801  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802  (exit $ac_status); } >/dev/null && {
32803	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32804	 test ! -s conftest.err
32805       }; then
32806  ac_header_preproc=yes
32807else
32808  $as_echo "$as_me: failed program was:" >&5
32809sed 's/^/| /' conftest.$ac_ext >&5
32810
32811  ac_header_preproc=no
32812fi
32813
32814rm -f conftest.err conftest.$ac_ext
32815{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32816$as_echo "$ac_header_preproc" >&6; }
32817
32818# So?  What about this header?
32819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32820  yes:no: )
32821    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32822$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32823    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32824$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32825    ac_header_preproc=yes
32826    ;;
32827  no:yes:* )
32828    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32829$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32830    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32831$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32832    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32833$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32834    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32835$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32836    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32837$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32838    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32839$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32840    ( cat <<\_ASBOX
32841## ---------------------------------------- ##
32842## Report this to samba-technical@samba.org ##
32843## ---------------------------------------- ##
32844_ASBOX
32845     ) | sed "s/^/$as_me: WARNING:     /" >&2
32846    ;;
32847esac
32848{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32849$as_echo_n "checking for $ac_header... " >&6; }
32850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32851  $as_echo_n "(cached) " >&6
32852else
32853  eval "$as_ac_Header=\$ac_header_preproc"
32854fi
32855ac_res=`eval 'as_val=${'$as_ac_Header'}
32856		 $as_echo "$as_val"'`
32857	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32858$as_echo "$ac_res" >&6; }
32859
32860fi
32861as_val=`eval 'as_val=${'$as_ac_Header'}
32862		 $as_echo "$as_val"'`
32863   if test "x$as_val" = x""yes; then
32864  cat >>confdefs.h <<_ACEOF
32865#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32866_ACEOF
32867
32868fi
32869
32870done
32871
32872
32873#
32874# HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
32875# This causes configure to fail to detect it. Check for shadow separately on HPUX.
32876#
32877case "$host_os" in
32878    *hpux*)
32879		cat >conftest.$ac_ext <<_ACEOF
32880/* confdefs.h.  */
32881_ACEOF
32882cat confdefs.h >>conftest.$ac_ext
32883cat >>conftest.$ac_ext <<_ACEOF
32884/* end confdefs.h.  */
32885#include <shadow.h>
32886int
32887main ()
32888{
32889struct spwd testme
32890  ;
32891  return 0;
32892}
32893_ACEOF
32894rm -f conftest.$ac_objext
32895if { (ac_try="$ac_compile"
32896case "(($ac_try" in
32897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32898  *) ac_try_echo=$ac_try;;
32899esac
32900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32901$as_echo "$ac_try_echo") >&5
32902  (eval "$ac_compile") 2>conftest.er1
32903  ac_status=$?
32904  grep -v '^ *+' conftest.er1 >conftest.err
32905  rm -f conftest.er1
32906  cat conftest.err >&5
32907  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908  (exit $ac_status); } && {
32909	 test -z "$ac_c_werror_flag" ||
32910	 test ! -s conftest.err
32911       } && test -s conftest.$ac_objext; then
32912  ac_cv_header_shadow_h=yes
32913else
32914  $as_echo "$as_me: failed program was:" >&5
32915sed 's/^/| /' conftest.$ac_ext >&5
32916
32917	ac_cv_header_shadow_h=no
32918fi
32919
32920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32921		if test x"$ac_cv_header_shadow_h" = x"yes"; then
32922
32923cat >>confdefs.h <<\_ACEOF
32924#define HAVE_SHADOW_H 1
32925_ACEOF
32926
32927		fi
32928	;;
32929esac
32930
32931for ac_header in shadow.h
32932do
32933as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32934if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32935  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32936$as_echo_n "checking for $ac_header... " >&6; }
32937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32938  $as_echo_n "(cached) " >&6
32939fi
32940ac_res=`eval 'as_val=${'$as_ac_Header'}
32941		 $as_echo "$as_val"'`
32942	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32943$as_echo "$ac_res" >&6; }
32944else
32945  # Is the header compilable?
32946{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32947$as_echo_n "checking $ac_header usability... " >&6; }
32948cat >conftest.$ac_ext <<_ACEOF
32949/* confdefs.h.  */
32950_ACEOF
32951cat confdefs.h >>conftest.$ac_ext
32952cat >>conftest.$ac_ext <<_ACEOF
32953/* end confdefs.h.  */
32954$ac_includes_default
32955#include <$ac_header>
32956_ACEOF
32957rm -f conftest.$ac_objext
32958if { (ac_try="$ac_compile"
32959case "(($ac_try" in
32960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961  *) ac_try_echo=$ac_try;;
32962esac
32963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32964$as_echo "$ac_try_echo") >&5
32965  (eval "$ac_compile") 2>conftest.er1
32966  ac_status=$?
32967  grep -v '^ *+' conftest.er1 >conftest.err
32968  rm -f conftest.er1
32969  cat conftest.err >&5
32970  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32971  (exit $ac_status); } && {
32972	 test -z "$ac_c_werror_flag" ||
32973	 test ! -s conftest.err
32974       } && test -s conftest.$ac_objext; then
32975  ac_header_compiler=yes
32976else
32977  $as_echo "$as_me: failed program was:" >&5
32978sed 's/^/| /' conftest.$ac_ext >&5
32979
32980	ac_header_compiler=no
32981fi
32982
32983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32984{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32985$as_echo "$ac_header_compiler" >&6; }
32986
32987# Is the header present?
32988{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32989$as_echo_n "checking $ac_header presence... " >&6; }
32990cat >conftest.$ac_ext <<_ACEOF
32991/* confdefs.h.  */
32992_ACEOF
32993cat confdefs.h >>conftest.$ac_ext
32994cat >>conftest.$ac_ext <<_ACEOF
32995/* end confdefs.h.  */
32996#include <$ac_header>
32997_ACEOF
32998if { (ac_try="$ac_cpp conftest.$ac_ext"
32999case "(($ac_try" in
33000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001  *) ac_try_echo=$ac_try;;
33002esac
33003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33004$as_echo "$ac_try_echo") >&5
33005  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33006  ac_status=$?
33007  grep -v '^ *+' conftest.er1 >conftest.err
33008  rm -f conftest.er1
33009  cat conftest.err >&5
33010  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011  (exit $ac_status); } >/dev/null && {
33012	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33013	 test ! -s conftest.err
33014       }; then
33015  ac_header_preproc=yes
33016else
33017  $as_echo "$as_me: failed program was:" >&5
33018sed 's/^/| /' conftest.$ac_ext >&5
33019
33020  ac_header_preproc=no
33021fi
33022
33023rm -f conftest.err conftest.$ac_ext
33024{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33025$as_echo "$ac_header_preproc" >&6; }
33026
33027# So?  What about this header?
33028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33029  yes:no: )
33030    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33031$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33032    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33033$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33034    ac_header_preproc=yes
33035    ;;
33036  no:yes:* )
33037    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33038$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33039    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33040$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33041    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33042$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33043    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33044$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33045    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33046$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33047    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33048$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33049    ( cat <<\_ASBOX
33050## ---------------------------------------- ##
33051## Report this to samba-technical@samba.org ##
33052## ---------------------------------------- ##
33053_ASBOX
33054     ) | sed "s/^/$as_me: WARNING:     /" >&2
33055    ;;
33056esac
33057{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33058$as_echo_n "checking for $ac_header... " >&6; }
33059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33060  $as_echo_n "(cached) " >&6
33061else
33062  eval "$as_ac_Header=\$ac_header_preproc"
33063fi
33064ac_res=`eval 'as_val=${'$as_ac_Header'}
33065		 $as_echo "$as_val"'`
33066	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33067$as_echo "$ac_res" >&6; }
33068
33069fi
33070as_val=`eval 'as_val=${'$as_ac_Header'}
33071		 $as_echo "$as_val"'`
33072   if test "x$as_val" = x""yes; then
33073  cat >>confdefs.h <<_ACEOF
33074#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33075_ACEOF
33076
33077fi
33078
33079done
33080
33081
33082
33083
33084
33085
33086for ac_header in nss.h nss_common.h nsswitch.h ns_api.h sys/security.h
33087do
33088as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33090  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33091$as_echo_n "checking for $ac_header... " >&6; }
33092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33093  $as_echo_n "(cached) " >&6
33094fi
33095ac_res=`eval 'as_val=${'$as_ac_Header'}
33096		 $as_echo "$as_val"'`
33097	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33098$as_echo "$ac_res" >&6; }
33099else
33100  # Is the header compilable?
33101{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33102$as_echo_n "checking $ac_header usability... " >&6; }
33103cat >conftest.$ac_ext <<_ACEOF
33104/* confdefs.h.  */
33105_ACEOF
33106cat confdefs.h >>conftest.$ac_ext
33107cat >>conftest.$ac_ext <<_ACEOF
33108/* end confdefs.h.  */
33109$ac_includes_default
33110#include <$ac_header>
33111_ACEOF
33112rm -f conftest.$ac_objext
33113if { (ac_try="$ac_compile"
33114case "(($ac_try" in
33115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33116  *) ac_try_echo=$ac_try;;
33117esac
33118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33119$as_echo "$ac_try_echo") >&5
33120  (eval "$ac_compile") 2>conftest.er1
33121  ac_status=$?
33122  grep -v '^ *+' conftest.er1 >conftest.err
33123  rm -f conftest.er1
33124  cat conftest.err >&5
33125  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33126  (exit $ac_status); } && {
33127	 test -z "$ac_c_werror_flag" ||
33128	 test ! -s conftest.err
33129       } && test -s conftest.$ac_objext; then
33130  ac_header_compiler=yes
33131else
33132  $as_echo "$as_me: failed program was:" >&5
33133sed 's/^/| /' conftest.$ac_ext >&5
33134
33135	ac_header_compiler=no
33136fi
33137
33138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33139{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33140$as_echo "$ac_header_compiler" >&6; }
33141
33142# Is the header present?
33143{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33144$as_echo_n "checking $ac_header presence... " >&6; }
33145cat >conftest.$ac_ext <<_ACEOF
33146/* confdefs.h.  */
33147_ACEOF
33148cat confdefs.h >>conftest.$ac_ext
33149cat >>conftest.$ac_ext <<_ACEOF
33150/* end confdefs.h.  */
33151#include <$ac_header>
33152_ACEOF
33153if { (ac_try="$ac_cpp conftest.$ac_ext"
33154case "(($ac_try" in
33155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33156  *) ac_try_echo=$ac_try;;
33157esac
33158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33159$as_echo "$ac_try_echo") >&5
33160  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33161  ac_status=$?
33162  grep -v '^ *+' conftest.er1 >conftest.err
33163  rm -f conftest.er1
33164  cat conftest.err >&5
33165  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166  (exit $ac_status); } >/dev/null && {
33167	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33168	 test ! -s conftest.err
33169       }; then
33170  ac_header_preproc=yes
33171else
33172  $as_echo "$as_me: failed program was:" >&5
33173sed 's/^/| /' conftest.$ac_ext >&5
33174
33175  ac_header_preproc=no
33176fi
33177
33178rm -f conftest.err conftest.$ac_ext
33179{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33180$as_echo "$ac_header_preproc" >&6; }
33181
33182# So?  What about this header?
33183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33184  yes:no: )
33185    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33186$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33187    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33188$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33189    ac_header_preproc=yes
33190    ;;
33191  no:yes:* )
33192    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33193$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33194    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33195$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33196    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33197$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33198    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33199$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33200    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33201$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33202    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33203$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33204    ( cat <<\_ASBOX
33205## ---------------------------------------- ##
33206## Report this to samba-technical@samba.org ##
33207## ---------------------------------------- ##
33208_ASBOX
33209     ) | sed "s/^/$as_me: WARNING:     /" >&2
33210    ;;
33211esac
33212{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33213$as_echo_n "checking for $ac_header... " >&6; }
33214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33215  $as_echo_n "(cached) " >&6
33216else
33217  eval "$as_ac_Header=\$ac_header_preproc"
33218fi
33219ac_res=`eval 'as_val=${'$as_ac_Header'}
33220		 $as_echo "$as_val"'`
33221	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33222$as_echo "$ac_res" >&6; }
33223
33224fi
33225as_val=`eval 'as_val=${'$as_ac_Header'}
33226		 $as_echo "$as_val"'`
33227   if test "x$as_val" = x""yes; then
33228  cat >>confdefs.h <<_ACEOF
33229#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33230_ACEOF
33231
33232fi
33233
33234done
33235
33236
33237
33238for ac_header in syscall.h sys/syscall.h
33239do
33240as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33242  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33243$as_echo_n "checking for $ac_header... " >&6; }
33244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33245  $as_echo_n "(cached) " >&6
33246fi
33247ac_res=`eval 'as_val=${'$as_ac_Header'}
33248		 $as_echo "$as_val"'`
33249	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33250$as_echo "$ac_res" >&6; }
33251else
33252  # Is the header compilable?
33253{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33254$as_echo_n "checking $ac_header usability... " >&6; }
33255cat >conftest.$ac_ext <<_ACEOF
33256/* confdefs.h.  */
33257_ACEOF
33258cat confdefs.h >>conftest.$ac_ext
33259cat >>conftest.$ac_ext <<_ACEOF
33260/* end confdefs.h.  */
33261$ac_includes_default
33262#include <$ac_header>
33263_ACEOF
33264rm -f conftest.$ac_objext
33265if { (ac_try="$ac_compile"
33266case "(($ac_try" in
33267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268  *) ac_try_echo=$ac_try;;
33269esac
33270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33271$as_echo "$ac_try_echo") >&5
33272  (eval "$ac_compile") 2>conftest.er1
33273  ac_status=$?
33274  grep -v '^ *+' conftest.er1 >conftest.err
33275  rm -f conftest.er1
33276  cat conftest.err >&5
33277  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278  (exit $ac_status); } && {
33279	 test -z "$ac_c_werror_flag" ||
33280	 test ! -s conftest.err
33281       } && test -s conftest.$ac_objext; then
33282  ac_header_compiler=yes
33283else
33284  $as_echo "$as_me: failed program was:" >&5
33285sed 's/^/| /' conftest.$ac_ext >&5
33286
33287	ac_header_compiler=no
33288fi
33289
33290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33291{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33292$as_echo "$ac_header_compiler" >&6; }
33293
33294# Is the header present?
33295{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33296$as_echo_n "checking $ac_header presence... " >&6; }
33297cat >conftest.$ac_ext <<_ACEOF
33298/* confdefs.h.  */
33299_ACEOF
33300cat confdefs.h >>conftest.$ac_ext
33301cat >>conftest.$ac_ext <<_ACEOF
33302/* end confdefs.h.  */
33303#include <$ac_header>
33304_ACEOF
33305if { (ac_try="$ac_cpp conftest.$ac_ext"
33306case "(($ac_try" in
33307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33308  *) ac_try_echo=$ac_try;;
33309esac
33310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33311$as_echo "$ac_try_echo") >&5
33312  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33313  ac_status=$?
33314  grep -v '^ *+' conftest.er1 >conftest.err
33315  rm -f conftest.er1
33316  cat conftest.err >&5
33317  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318  (exit $ac_status); } >/dev/null && {
33319	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33320	 test ! -s conftest.err
33321       }; then
33322  ac_header_preproc=yes
33323else
33324  $as_echo "$as_me: failed program was:" >&5
33325sed 's/^/| /' conftest.$ac_ext >&5
33326
33327  ac_header_preproc=no
33328fi
33329
33330rm -f conftest.err conftest.$ac_ext
33331{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33332$as_echo "$ac_header_preproc" >&6; }
33333
33334# So?  What about this header?
33335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33336  yes:no: )
33337    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33338$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33339    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33340$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33341    ac_header_preproc=yes
33342    ;;
33343  no:yes:* )
33344    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33345$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33346    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33347$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33348    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33349$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33350    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33351$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33352    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33353$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33354    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33355$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33356    ( cat <<\_ASBOX
33357## ---------------------------------------- ##
33358## Report this to samba-technical@samba.org ##
33359## ---------------------------------------- ##
33360_ASBOX
33361     ) | sed "s/^/$as_me: WARNING:     /" >&2
33362    ;;
33363esac
33364{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33365$as_echo_n "checking for $ac_header... " >&6; }
33366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33367  $as_echo_n "(cached) " >&6
33368else
33369  eval "$as_ac_Header=\$ac_header_preproc"
33370fi
33371ac_res=`eval 'as_val=${'$as_ac_Header'}
33372		 $as_echo "$as_val"'`
33373	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33374$as_echo "$ac_res" >&6; }
33375
33376fi
33377as_val=`eval 'as_val=${'$as_ac_Header'}
33378		 $as_echo "$as_val"'`
33379   if test "x$as_val" = x""yes; then
33380  cat >>confdefs.h <<_ACEOF
33381#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33382_ACEOF
33383
33384fi
33385
33386done
33387
33388
33389
33390
33391
33392
33393
33394for ac_header in sys/attributes.h attr/xattr.h sys/xattr.h sys/extattr.h sys/uio.h
33395do
33396as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33398  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33399$as_echo_n "checking for $ac_header... " >&6; }
33400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33401  $as_echo_n "(cached) " >&6
33402fi
33403ac_res=`eval 'as_val=${'$as_ac_Header'}
33404		 $as_echo "$as_val"'`
33405	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33406$as_echo "$ac_res" >&6; }
33407else
33408  # Is the header compilable?
33409{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33410$as_echo_n "checking $ac_header usability... " >&6; }
33411cat >conftest.$ac_ext <<_ACEOF
33412/* confdefs.h.  */
33413_ACEOF
33414cat confdefs.h >>conftest.$ac_ext
33415cat >>conftest.$ac_ext <<_ACEOF
33416/* end confdefs.h.  */
33417$ac_includes_default
33418#include <$ac_header>
33419_ACEOF
33420rm -f conftest.$ac_objext
33421if { (ac_try="$ac_compile"
33422case "(($ac_try" in
33423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33424  *) ac_try_echo=$ac_try;;
33425esac
33426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33427$as_echo "$ac_try_echo") >&5
33428  (eval "$ac_compile") 2>conftest.er1
33429  ac_status=$?
33430  grep -v '^ *+' conftest.er1 >conftest.err
33431  rm -f conftest.er1
33432  cat conftest.err >&5
33433  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434  (exit $ac_status); } && {
33435	 test -z "$ac_c_werror_flag" ||
33436	 test ! -s conftest.err
33437       } && test -s conftest.$ac_objext; then
33438  ac_header_compiler=yes
33439else
33440  $as_echo "$as_me: failed program was:" >&5
33441sed 's/^/| /' conftest.$ac_ext >&5
33442
33443	ac_header_compiler=no
33444fi
33445
33446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33447{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33448$as_echo "$ac_header_compiler" >&6; }
33449
33450# Is the header present?
33451{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33452$as_echo_n "checking $ac_header presence... " >&6; }
33453cat >conftest.$ac_ext <<_ACEOF
33454/* confdefs.h.  */
33455_ACEOF
33456cat confdefs.h >>conftest.$ac_ext
33457cat >>conftest.$ac_ext <<_ACEOF
33458/* end confdefs.h.  */
33459#include <$ac_header>
33460_ACEOF
33461if { (ac_try="$ac_cpp conftest.$ac_ext"
33462case "(($ac_try" in
33463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464  *) ac_try_echo=$ac_try;;
33465esac
33466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33467$as_echo "$ac_try_echo") >&5
33468  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33469  ac_status=$?
33470  grep -v '^ *+' conftest.er1 >conftest.err
33471  rm -f conftest.er1
33472  cat conftest.err >&5
33473  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474  (exit $ac_status); } >/dev/null && {
33475	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33476	 test ! -s conftest.err
33477       }; then
33478  ac_header_preproc=yes
33479else
33480  $as_echo "$as_me: failed program was:" >&5
33481sed 's/^/| /' conftest.$ac_ext >&5
33482
33483  ac_header_preproc=no
33484fi
33485
33486rm -f conftest.err conftest.$ac_ext
33487{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33488$as_echo "$ac_header_preproc" >&6; }
33489
33490# So?  What about this header?
33491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33492  yes:no: )
33493    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33494$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33495    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33496$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33497    ac_header_preproc=yes
33498    ;;
33499  no:yes:* )
33500    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33501$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33502    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33503$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33504    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33505$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33506    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33507$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33508    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33509$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33510    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33511$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33512    ( cat <<\_ASBOX
33513## ---------------------------------------- ##
33514## Report this to samba-technical@samba.org ##
33515## ---------------------------------------- ##
33516_ASBOX
33517     ) | sed "s/^/$as_me: WARNING:     /" >&2
33518    ;;
33519esac
33520{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33521$as_echo_n "checking for $ac_header... " >&6; }
33522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33523  $as_echo_n "(cached) " >&6
33524else
33525  eval "$as_ac_Header=\$ac_header_preproc"
33526fi
33527ac_res=`eval 'as_val=${'$as_ac_Header'}
33528		 $as_echo "$as_val"'`
33529	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33530$as_echo "$ac_res" >&6; }
33531
33532fi
33533as_val=`eval 'as_val=${'$as_ac_Header'}
33534		 $as_echo "$as_val"'`
33535   if test "x$as_val" = x""yes; then
33536  cat >>confdefs.h <<_ACEOF
33537#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33538_ACEOF
33539
33540fi
33541
33542done
33543
33544
33545
33546for ac_header in sys/ea.h sys/proplist.h
33547do
33548as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33550  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33551$as_echo_n "checking for $ac_header... " >&6; }
33552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33553  $as_echo_n "(cached) " >&6
33554fi
33555ac_res=`eval 'as_val=${'$as_ac_Header'}
33556		 $as_echo "$as_val"'`
33557	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33558$as_echo "$ac_res" >&6; }
33559else
33560  # Is the header compilable?
33561{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33562$as_echo_n "checking $ac_header usability... " >&6; }
33563cat >conftest.$ac_ext <<_ACEOF
33564/* confdefs.h.  */
33565_ACEOF
33566cat confdefs.h >>conftest.$ac_ext
33567cat >>conftest.$ac_ext <<_ACEOF
33568/* end confdefs.h.  */
33569$ac_includes_default
33570#include <$ac_header>
33571_ACEOF
33572rm -f conftest.$ac_objext
33573if { (ac_try="$ac_compile"
33574case "(($ac_try" in
33575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33576  *) ac_try_echo=$ac_try;;
33577esac
33578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33579$as_echo "$ac_try_echo") >&5
33580  (eval "$ac_compile") 2>conftest.er1
33581  ac_status=$?
33582  grep -v '^ *+' conftest.er1 >conftest.err
33583  rm -f conftest.er1
33584  cat conftest.err >&5
33585  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33586  (exit $ac_status); } && {
33587	 test -z "$ac_c_werror_flag" ||
33588	 test ! -s conftest.err
33589       } && test -s conftest.$ac_objext; then
33590  ac_header_compiler=yes
33591else
33592  $as_echo "$as_me: failed program was:" >&5
33593sed 's/^/| /' conftest.$ac_ext >&5
33594
33595	ac_header_compiler=no
33596fi
33597
33598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33599{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33600$as_echo "$ac_header_compiler" >&6; }
33601
33602# Is the header present?
33603{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33604$as_echo_n "checking $ac_header presence... " >&6; }
33605cat >conftest.$ac_ext <<_ACEOF
33606/* confdefs.h.  */
33607_ACEOF
33608cat confdefs.h >>conftest.$ac_ext
33609cat >>conftest.$ac_ext <<_ACEOF
33610/* end confdefs.h.  */
33611#include <$ac_header>
33612_ACEOF
33613if { (ac_try="$ac_cpp conftest.$ac_ext"
33614case "(($ac_try" in
33615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33616  *) ac_try_echo=$ac_try;;
33617esac
33618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33619$as_echo "$ac_try_echo") >&5
33620  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33621  ac_status=$?
33622  grep -v '^ *+' conftest.er1 >conftest.err
33623  rm -f conftest.er1
33624  cat conftest.err >&5
33625  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33626  (exit $ac_status); } >/dev/null && {
33627	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33628	 test ! -s conftest.err
33629       }; then
33630  ac_header_preproc=yes
33631else
33632  $as_echo "$as_me: failed program was:" >&5
33633sed 's/^/| /' conftest.$ac_ext >&5
33634
33635  ac_header_preproc=no
33636fi
33637
33638rm -f conftest.err conftest.$ac_ext
33639{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33640$as_echo "$ac_header_preproc" >&6; }
33641
33642# So?  What about this header?
33643case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33644  yes:no: )
33645    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33646$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33647    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33648$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33649    ac_header_preproc=yes
33650    ;;
33651  no:yes:* )
33652    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33653$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33654    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33655$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33656    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33657$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33658    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33659$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33660    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33661$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33662    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33663$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33664    ( cat <<\_ASBOX
33665## ---------------------------------------- ##
33666## Report this to samba-technical@samba.org ##
33667## ---------------------------------------- ##
33668_ASBOX
33669     ) | sed "s/^/$as_me: WARNING:     /" >&2
33670    ;;
33671esac
33672{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33673$as_echo_n "checking for $ac_header... " >&6; }
33674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33675  $as_echo_n "(cached) " >&6
33676else
33677  eval "$as_ac_Header=\$ac_header_preproc"
33678fi
33679ac_res=`eval 'as_val=${'$as_ac_Header'}
33680		 $as_echo "$as_val"'`
33681	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33682$as_echo "$ac_res" >&6; }
33683
33684fi
33685as_val=`eval 'as_val=${'$as_ac_Header'}
33686		 $as_echo "$as_val"'`
33687   if test "x$as_val" = x""yes; then
33688  cat >>confdefs.h <<_ACEOF
33689#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33690_ACEOF
33691
33692fi
33693
33694done
33695
33696
33697
33698
33699for ac_header in sys/cdefs.h glob.h
33700do
33701as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33703  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33704$as_echo_n "checking for $ac_header... " >&6; }
33705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33706  $as_echo_n "(cached) " >&6
33707fi
33708ac_res=`eval 'as_val=${'$as_ac_Header'}
33709		 $as_echo "$as_val"'`
33710	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33711$as_echo "$ac_res" >&6; }
33712else
33713  # Is the header compilable?
33714{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33715$as_echo_n "checking $ac_header usability... " >&6; }
33716cat >conftest.$ac_ext <<_ACEOF
33717/* confdefs.h.  */
33718_ACEOF
33719cat confdefs.h >>conftest.$ac_ext
33720cat >>conftest.$ac_ext <<_ACEOF
33721/* end confdefs.h.  */
33722$ac_includes_default
33723#include <$ac_header>
33724_ACEOF
33725rm -f conftest.$ac_objext
33726if { (ac_try="$ac_compile"
33727case "(($ac_try" in
33728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33729  *) ac_try_echo=$ac_try;;
33730esac
33731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33732$as_echo "$ac_try_echo") >&5
33733  (eval "$ac_compile") 2>conftest.er1
33734  ac_status=$?
33735  grep -v '^ *+' conftest.er1 >conftest.err
33736  rm -f conftest.er1
33737  cat conftest.err >&5
33738  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739  (exit $ac_status); } && {
33740	 test -z "$ac_c_werror_flag" ||
33741	 test ! -s conftest.err
33742       } && test -s conftest.$ac_objext; then
33743  ac_header_compiler=yes
33744else
33745  $as_echo "$as_me: failed program was:" >&5
33746sed 's/^/| /' conftest.$ac_ext >&5
33747
33748	ac_header_compiler=no
33749fi
33750
33751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33752{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33753$as_echo "$ac_header_compiler" >&6; }
33754
33755# Is the header present?
33756{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33757$as_echo_n "checking $ac_header presence... " >&6; }
33758cat >conftest.$ac_ext <<_ACEOF
33759/* confdefs.h.  */
33760_ACEOF
33761cat confdefs.h >>conftest.$ac_ext
33762cat >>conftest.$ac_ext <<_ACEOF
33763/* end confdefs.h.  */
33764#include <$ac_header>
33765_ACEOF
33766if { (ac_try="$ac_cpp conftest.$ac_ext"
33767case "(($ac_try" in
33768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33769  *) ac_try_echo=$ac_try;;
33770esac
33771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33772$as_echo "$ac_try_echo") >&5
33773  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33774  ac_status=$?
33775  grep -v '^ *+' conftest.er1 >conftest.err
33776  rm -f conftest.er1
33777  cat conftest.err >&5
33778  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33779  (exit $ac_status); } >/dev/null && {
33780	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33781	 test ! -s conftest.err
33782       }; then
33783  ac_header_preproc=yes
33784else
33785  $as_echo "$as_me: failed program was:" >&5
33786sed 's/^/| /' conftest.$ac_ext >&5
33787
33788  ac_header_preproc=no
33789fi
33790
33791rm -f conftest.err conftest.$ac_ext
33792{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33793$as_echo "$ac_header_preproc" >&6; }
33794
33795# So?  What about this header?
33796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33797  yes:no: )
33798    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33799$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33800    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33801$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33802    ac_header_preproc=yes
33803    ;;
33804  no:yes:* )
33805    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33806$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33807    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33808$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33809    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33810$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33811    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33812$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33813    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33814$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33815    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33816$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33817    ( cat <<\_ASBOX
33818## ---------------------------------------- ##
33819## Report this to samba-technical@samba.org ##
33820## ---------------------------------------- ##
33821_ASBOX
33822     ) | sed "s/^/$as_me: WARNING:     /" >&2
33823    ;;
33824esac
33825{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33826$as_echo_n "checking for $ac_header... " >&6; }
33827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33828  $as_echo_n "(cached) " >&6
33829else
33830  eval "$as_ac_Header=\$ac_header_preproc"
33831fi
33832ac_res=`eval 'as_val=${'$as_ac_Header'}
33833		 $as_echo "$as_val"'`
33834	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33835$as_echo "$ac_res" >&6; }
33836
33837fi
33838as_val=`eval 'as_val=${'$as_ac_Header'}
33839		 $as_echo "$as_val"'`
33840   if test "x$as_val" = x""yes; then
33841  cat >>confdefs.h <<_ACEOF
33842#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33843_ACEOF
33844
33845fi
33846
33847done
33848
33849
33850# For experimental utmp support (lastlog on some BSD-like systems)
33851
33852
33853
33854for ac_header in utmp.h utmpx.h lastlog.h
33855do
33856as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33858  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33859$as_echo_n "checking for $ac_header... " >&6; }
33860if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33861  $as_echo_n "(cached) " >&6
33862fi
33863ac_res=`eval 'as_val=${'$as_ac_Header'}
33864		 $as_echo "$as_val"'`
33865	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33866$as_echo "$ac_res" >&6; }
33867else
33868  # Is the header compilable?
33869{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33870$as_echo_n "checking $ac_header usability... " >&6; }
33871cat >conftest.$ac_ext <<_ACEOF
33872/* confdefs.h.  */
33873_ACEOF
33874cat confdefs.h >>conftest.$ac_ext
33875cat >>conftest.$ac_ext <<_ACEOF
33876/* end confdefs.h.  */
33877$ac_includes_default
33878#include <$ac_header>
33879_ACEOF
33880rm -f conftest.$ac_objext
33881if { (ac_try="$ac_compile"
33882case "(($ac_try" in
33883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33884  *) ac_try_echo=$ac_try;;
33885esac
33886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33887$as_echo "$ac_try_echo") >&5
33888  (eval "$ac_compile") 2>conftest.er1
33889  ac_status=$?
33890  grep -v '^ *+' conftest.er1 >conftest.err
33891  rm -f conftest.er1
33892  cat conftest.err >&5
33893  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894  (exit $ac_status); } && {
33895	 test -z "$ac_c_werror_flag" ||
33896	 test ! -s conftest.err
33897       } && test -s conftest.$ac_objext; then
33898  ac_header_compiler=yes
33899else
33900  $as_echo "$as_me: failed program was:" >&5
33901sed 's/^/| /' conftest.$ac_ext >&5
33902
33903	ac_header_compiler=no
33904fi
33905
33906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33907{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33908$as_echo "$ac_header_compiler" >&6; }
33909
33910# Is the header present?
33911{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33912$as_echo_n "checking $ac_header presence... " >&6; }
33913cat >conftest.$ac_ext <<_ACEOF
33914/* confdefs.h.  */
33915_ACEOF
33916cat confdefs.h >>conftest.$ac_ext
33917cat >>conftest.$ac_ext <<_ACEOF
33918/* end confdefs.h.  */
33919#include <$ac_header>
33920_ACEOF
33921if { (ac_try="$ac_cpp conftest.$ac_ext"
33922case "(($ac_try" in
33923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33924  *) ac_try_echo=$ac_try;;
33925esac
33926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33927$as_echo "$ac_try_echo") >&5
33928  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33929  ac_status=$?
33930  grep -v '^ *+' conftest.er1 >conftest.err
33931  rm -f conftest.er1
33932  cat conftest.err >&5
33933  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934  (exit $ac_status); } >/dev/null && {
33935	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33936	 test ! -s conftest.err
33937       }; then
33938  ac_header_preproc=yes
33939else
33940  $as_echo "$as_me: failed program was:" >&5
33941sed 's/^/| /' conftest.$ac_ext >&5
33942
33943  ac_header_preproc=no
33944fi
33945
33946rm -f conftest.err conftest.$ac_ext
33947{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33948$as_echo "$ac_header_preproc" >&6; }
33949
33950# So?  What about this header?
33951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33952  yes:no: )
33953    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33954$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33955    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33956$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33957    ac_header_preproc=yes
33958    ;;
33959  no:yes:* )
33960    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33961$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33962    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33963$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33964    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33965$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33966    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33967$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33968    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33969$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33970    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33971$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33972    ( cat <<\_ASBOX
33973## ---------------------------------------- ##
33974## Report this to samba-technical@samba.org ##
33975## ---------------------------------------- ##
33976_ASBOX
33977     ) | sed "s/^/$as_me: WARNING:     /" >&2
33978    ;;
33979esac
33980{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33981$as_echo_n "checking for $ac_header... " >&6; }
33982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33983  $as_echo_n "(cached) " >&6
33984else
33985  eval "$as_ac_Header=\$ac_header_preproc"
33986fi
33987ac_res=`eval 'as_val=${'$as_ac_Header'}
33988		 $as_echo "$as_val"'`
33989	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33990$as_echo "$ac_res" >&6; }
33991
33992fi
33993as_val=`eval 'as_val=${'$as_ac_Header'}
33994		 $as_echo "$as_val"'`
33995   if test "x$as_val" = x""yes; then
33996  cat >>confdefs.h <<_ACEOF
33997#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33998_ACEOF
33999
34000fi
34001
34002done
34003
34004
34005# The cast to long int works around a bug in the HP C Compiler
34006# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34007# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34008# This bug is HP SR number 8606223364.
34009{ $as_echo "$as_me:$LINENO: checking size of int" >&5
34010$as_echo_n "checking size of int... " >&6; }
34011if test "${ac_cv_sizeof_int+set}" = set; then
34012  $as_echo_n "(cached) " >&6
34013else
34014  if test "$cross_compiling" = yes; then
34015  # Depending upon the size, compute the lo and hi bounds.
34016cat >conftest.$ac_ext <<_ACEOF
34017/* confdefs.h.  */
34018_ACEOF
34019cat confdefs.h >>conftest.$ac_ext
34020cat >>conftest.$ac_ext <<_ACEOF
34021/* end confdefs.h.  */
34022$ac_includes_default
34023int
34024main ()
34025{
34026static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
34027test_array [0] = 0
34028
34029  ;
34030  return 0;
34031}
34032_ACEOF
34033rm -f conftest.$ac_objext
34034if { (ac_try="$ac_compile"
34035case "(($ac_try" in
34036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34037  *) ac_try_echo=$ac_try;;
34038esac
34039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34040$as_echo "$ac_try_echo") >&5
34041  (eval "$ac_compile") 2>conftest.er1
34042  ac_status=$?
34043  grep -v '^ *+' conftest.er1 >conftest.err
34044  rm -f conftest.er1
34045  cat conftest.err >&5
34046  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047  (exit $ac_status); } && {
34048	 test -z "$ac_c_werror_flag" ||
34049	 test ! -s conftest.err
34050       } && test -s conftest.$ac_objext; then
34051  ac_lo=0 ac_mid=0
34052  while :; do
34053    cat >conftest.$ac_ext <<_ACEOF
34054/* confdefs.h.  */
34055_ACEOF
34056cat confdefs.h >>conftest.$ac_ext
34057cat >>conftest.$ac_ext <<_ACEOF
34058/* end confdefs.h.  */
34059$ac_includes_default
34060int
34061main ()
34062{
34063static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
34064test_array [0] = 0
34065
34066  ;
34067  return 0;
34068}
34069_ACEOF
34070rm -f conftest.$ac_objext
34071if { (ac_try="$ac_compile"
34072case "(($ac_try" in
34073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34074  *) ac_try_echo=$ac_try;;
34075esac
34076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34077$as_echo "$ac_try_echo") >&5
34078  (eval "$ac_compile") 2>conftest.er1
34079  ac_status=$?
34080  grep -v '^ *+' conftest.er1 >conftest.err
34081  rm -f conftest.er1
34082  cat conftest.err >&5
34083  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34084  (exit $ac_status); } && {
34085	 test -z "$ac_c_werror_flag" ||
34086	 test ! -s conftest.err
34087       } && test -s conftest.$ac_objext; then
34088  ac_hi=$ac_mid; break
34089else
34090  $as_echo "$as_me: failed program was:" >&5
34091sed 's/^/| /' conftest.$ac_ext >&5
34092
34093	ac_lo=`expr $ac_mid + 1`
34094			if test $ac_lo -le $ac_mid; then
34095			  ac_lo= ac_hi=
34096			  break
34097			fi
34098			ac_mid=`expr 2 '*' $ac_mid + 1`
34099fi
34100
34101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34102  done
34103else
34104  $as_echo "$as_me: failed program was:" >&5
34105sed 's/^/| /' conftest.$ac_ext >&5
34106
34107	cat >conftest.$ac_ext <<_ACEOF
34108/* confdefs.h.  */
34109_ACEOF
34110cat confdefs.h >>conftest.$ac_ext
34111cat >>conftest.$ac_ext <<_ACEOF
34112/* end confdefs.h.  */
34113$ac_includes_default
34114int
34115main ()
34116{
34117static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
34118test_array [0] = 0
34119
34120  ;
34121  return 0;
34122}
34123_ACEOF
34124rm -f conftest.$ac_objext
34125if { (ac_try="$ac_compile"
34126case "(($ac_try" in
34127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34128  *) ac_try_echo=$ac_try;;
34129esac
34130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34131$as_echo "$ac_try_echo") >&5
34132  (eval "$ac_compile") 2>conftest.er1
34133  ac_status=$?
34134  grep -v '^ *+' conftest.er1 >conftest.err
34135  rm -f conftest.er1
34136  cat conftest.err >&5
34137  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34138  (exit $ac_status); } && {
34139	 test -z "$ac_c_werror_flag" ||
34140	 test ! -s conftest.err
34141       } && test -s conftest.$ac_objext; then
34142  ac_hi=-1 ac_mid=-1
34143  while :; do
34144    cat >conftest.$ac_ext <<_ACEOF
34145/* confdefs.h.  */
34146_ACEOF
34147cat confdefs.h >>conftest.$ac_ext
34148cat >>conftest.$ac_ext <<_ACEOF
34149/* end confdefs.h.  */
34150$ac_includes_default
34151int
34152main ()
34153{
34154static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
34155test_array [0] = 0
34156
34157  ;
34158  return 0;
34159}
34160_ACEOF
34161rm -f conftest.$ac_objext
34162if { (ac_try="$ac_compile"
34163case "(($ac_try" in
34164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34165  *) ac_try_echo=$ac_try;;
34166esac
34167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34168$as_echo "$ac_try_echo") >&5
34169  (eval "$ac_compile") 2>conftest.er1
34170  ac_status=$?
34171  grep -v '^ *+' conftest.er1 >conftest.err
34172  rm -f conftest.er1
34173  cat conftest.err >&5
34174  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34175  (exit $ac_status); } && {
34176	 test -z "$ac_c_werror_flag" ||
34177	 test ! -s conftest.err
34178       } && test -s conftest.$ac_objext; then
34179  ac_lo=$ac_mid; break
34180else
34181  $as_echo "$as_me: failed program was:" >&5
34182sed 's/^/| /' conftest.$ac_ext >&5
34183
34184	ac_hi=`expr '(' $ac_mid ')' - 1`
34185			if test $ac_mid -le $ac_hi; then
34186			  ac_lo= ac_hi=
34187			  break
34188			fi
34189			ac_mid=`expr 2 '*' $ac_mid`
34190fi
34191
34192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34193  done
34194else
34195  $as_echo "$as_me: failed program was:" >&5
34196sed 's/^/| /' conftest.$ac_ext >&5
34197
34198	ac_lo= ac_hi=
34199fi
34200
34201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34202fi
34203
34204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34205# Binary search between lo and hi bounds.
34206while test "x$ac_lo" != "x$ac_hi"; do
34207  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34208  cat >conftest.$ac_ext <<_ACEOF
34209/* confdefs.h.  */
34210_ACEOF
34211cat confdefs.h >>conftest.$ac_ext
34212cat >>conftest.$ac_ext <<_ACEOF
34213/* end confdefs.h.  */
34214$ac_includes_default
34215int
34216main ()
34217{
34218static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
34219test_array [0] = 0
34220
34221  ;
34222  return 0;
34223}
34224_ACEOF
34225rm -f conftest.$ac_objext
34226if { (ac_try="$ac_compile"
34227case "(($ac_try" in
34228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34229  *) ac_try_echo=$ac_try;;
34230esac
34231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34232$as_echo "$ac_try_echo") >&5
34233  (eval "$ac_compile") 2>conftest.er1
34234  ac_status=$?
34235  grep -v '^ *+' conftest.er1 >conftest.err
34236  rm -f conftest.er1
34237  cat conftest.err >&5
34238  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34239  (exit $ac_status); } && {
34240	 test -z "$ac_c_werror_flag" ||
34241	 test ! -s conftest.err
34242       } && test -s conftest.$ac_objext; then
34243  ac_hi=$ac_mid
34244else
34245  $as_echo "$as_me: failed program was:" >&5
34246sed 's/^/| /' conftest.$ac_ext >&5
34247
34248	ac_lo=`expr '(' $ac_mid ')' + 1`
34249fi
34250
34251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34252done
34253case $ac_lo in
34254?*) ac_cv_sizeof_int=$ac_lo;;
34255'') if test "$ac_cv_type_int" = yes; then
34256     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
34257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34258{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34259See \`config.log' for more details." >&5
34260$as_echo "$as_me: error: cannot compute sizeof (int)
34261See \`config.log' for more details." >&2;}
34262   { (exit 77); exit 77; }; }; }
34263   else
34264     ac_cv_sizeof_int=0
34265   fi ;;
34266esac
34267else
34268  cat >conftest.$ac_ext <<_ACEOF
34269/* confdefs.h.  */
34270_ACEOF
34271cat confdefs.h >>conftest.$ac_ext
34272cat >>conftest.$ac_ext <<_ACEOF
34273/* end confdefs.h.  */
34274$ac_includes_default
34275static long int longval () { return (long int) (sizeof (int)); }
34276static unsigned long int ulongval () { return (long int) (sizeof (int)); }
34277#include <stdio.h>
34278#include <stdlib.h>
34279int
34280main ()
34281{
34282
34283  FILE *f = fopen ("conftest.val", "w");
34284  if (! f)
34285    return 1;
34286  if (((long int) (sizeof (int))) < 0)
34287    {
34288      long int i = longval ();
34289      if (i != ((long int) (sizeof (int))))
34290	return 1;
34291      fprintf (f, "%ld", i);
34292    }
34293  else
34294    {
34295      unsigned long int i = ulongval ();
34296      if (i != ((long int) (sizeof (int))))
34297	return 1;
34298      fprintf (f, "%lu", i);
34299    }
34300  /* Do not output a trailing newline, as this causes \r\n confusion
34301     on some platforms.  */
34302  return ferror (f) || fclose (f) != 0;
34303
34304  ;
34305  return 0;
34306}
34307_ACEOF
34308rm -f conftest$ac_exeext
34309if { (ac_try="$ac_link"
34310case "(($ac_try" in
34311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34312  *) ac_try_echo=$ac_try;;
34313esac
34314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34315$as_echo "$ac_try_echo") >&5
34316  (eval "$ac_link") 2>&5
34317  ac_status=$?
34318  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34319  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34320  { (case "(($ac_try" in
34321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34322  *) ac_try_echo=$ac_try;;
34323esac
34324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34325$as_echo "$ac_try_echo") >&5
34326  (eval "$ac_try") 2>&5
34327  ac_status=$?
34328  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329  (exit $ac_status); }; }; then
34330  ac_cv_sizeof_int=`cat conftest.val`
34331else
34332  $as_echo "$as_me: program exited with status $ac_status" >&5
34333$as_echo "$as_me: failed program was:" >&5
34334sed 's/^/| /' conftest.$ac_ext >&5
34335
34336( exit $ac_status )
34337if test "$ac_cv_type_int" = yes; then
34338     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
34339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34340{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34341See \`config.log' for more details." >&5
34342$as_echo "$as_me: error: cannot compute sizeof (int)
34343See \`config.log' for more details." >&2;}
34344   { (exit 77); exit 77; }; }; }
34345   else
34346     ac_cv_sizeof_int=0
34347   fi
34348fi
34349rm -rf conftest.dSYM
34350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34351fi
34352rm -f conftest.val
34353fi
34354{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34355$as_echo "$ac_cv_sizeof_int" >&6; }
34356
34357
34358
34359cat >>confdefs.h <<_ACEOF
34360#define SIZEOF_INT $ac_cv_sizeof_int
34361_ACEOF
34362
34363
34364# The cast to long int works around a bug in the HP C Compiler
34365# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34366# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34367# This bug is HP SR number 8606223364.
34368{ $as_echo "$as_me:$LINENO: checking size of long" >&5
34369$as_echo_n "checking size of long... " >&6; }
34370if test "${ac_cv_sizeof_long+set}" = set; then
34371  $as_echo_n "(cached) " >&6
34372else
34373  if test "$cross_compiling" = yes; then
34374  # Depending upon the size, compute the lo and hi bounds.
34375cat >conftest.$ac_ext <<_ACEOF
34376/* confdefs.h.  */
34377_ACEOF
34378cat confdefs.h >>conftest.$ac_ext
34379cat >>conftest.$ac_ext <<_ACEOF
34380/* end confdefs.h.  */
34381$ac_includes_default
34382int
34383main ()
34384{
34385static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
34386test_array [0] = 0
34387
34388  ;
34389  return 0;
34390}
34391_ACEOF
34392rm -f conftest.$ac_objext
34393if { (ac_try="$ac_compile"
34394case "(($ac_try" in
34395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34396  *) ac_try_echo=$ac_try;;
34397esac
34398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34399$as_echo "$ac_try_echo") >&5
34400  (eval "$ac_compile") 2>conftest.er1
34401  ac_status=$?
34402  grep -v '^ *+' conftest.er1 >conftest.err
34403  rm -f conftest.er1
34404  cat conftest.err >&5
34405  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34406  (exit $ac_status); } && {
34407	 test -z "$ac_c_werror_flag" ||
34408	 test ! -s conftest.err
34409       } && test -s conftest.$ac_objext; then
34410  ac_lo=0 ac_mid=0
34411  while :; do
34412    cat >conftest.$ac_ext <<_ACEOF
34413/* confdefs.h.  */
34414_ACEOF
34415cat confdefs.h >>conftest.$ac_ext
34416cat >>conftest.$ac_ext <<_ACEOF
34417/* end confdefs.h.  */
34418$ac_includes_default
34419int
34420main ()
34421{
34422static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
34423test_array [0] = 0
34424
34425  ;
34426  return 0;
34427}
34428_ACEOF
34429rm -f conftest.$ac_objext
34430if { (ac_try="$ac_compile"
34431case "(($ac_try" in
34432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34433  *) ac_try_echo=$ac_try;;
34434esac
34435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34436$as_echo "$ac_try_echo") >&5
34437  (eval "$ac_compile") 2>conftest.er1
34438  ac_status=$?
34439  grep -v '^ *+' conftest.er1 >conftest.err
34440  rm -f conftest.er1
34441  cat conftest.err >&5
34442  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34443  (exit $ac_status); } && {
34444	 test -z "$ac_c_werror_flag" ||
34445	 test ! -s conftest.err
34446       } && test -s conftest.$ac_objext; then
34447  ac_hi=$ac_mid; break
34448else
34449  $as_echo "$as_me: failed program was:" >&5
34450sed 's/^/| /' conftest.$ac_ext >&5
34451
34452	ac_lo=`expr $ac_mid + 1`
34453			if test $ac_lo -le $ac_mid; then
34454			  ac_lo= ac_hi=
34455			  break
34456			fi
34457			ac_mid=`expr 2 '*' $ac_mid + 1`
34458fi
34459
34460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34461  done
34462else
34463  $as_echo "$as_me: failed program was:" >&5
34464sed 's/^/| /' conftest.$ac_ext >&5
34465
34466	cat >conftest.$ac_ext <<_ACEOF
34467/* confdefs.h.  */
34468_ACEOF
34469cat confdefs.h >>conftest.$ac_ext
34470cat >>conftest.$ac_ext <<_ACEOF
34471/* end confdefs.h.  */
34472$ac_includes_default
34473int
34474main ()
34475{
34476static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
34477test_array [0] = 0
34478
34479  ;
34480  return 0;
34481}
34482_ACEOF
34483rm -f conftest.$ac_objext
34484if { (ac_try="$ac_compile"
34485case "(($ac_try" in
34486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34487  *) ac_try_echo=$ac_try;;
34488esac
34489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34490$as_echo "$ac_try_echo") >&5
34491  (eval "$ac_compile") 2>conftest.er1
34492  ac_status=$?
34493  grep -v '^ *+' conftest.er1 >conftest.err
34494  rm -f conftest.er1
34495  cat conftest.err >&5
34496  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34497  (exit $ac_status); } && {
34498	 test -z "$ac_c_werror_flag" ||
34499	 test ! -s conftest.err
34500       } && test -s conftest.$ac_objext; then
34501  ac_hi=-1 ac_mid=-1
34502  while :; do
34503    cat >conftest.$ac_ext <<_ACEOF
34504/* confdefs.h.  */
34505_ACEOF
34506cat confdefs.h >>conftest.$ac_ext
34507cat >>conftest.$ac_ext <<_ACEOF
34508/* end confdefs.h.  */
34509$ac_includes_default
34510int
34511main ()
34512{
34513static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
34514test_array [0] = 0
34515
34516  ;
34517  return 0;
34518}
34519_ACEOF
34520rm -f conftest.$ac_objext
34521if { (ac_try="$ac_compile"
34522case "(($ac_try" in
34523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34524  *) ac_try_echo=$ac_try;;
34525esac
34526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34527$as_echo "$ac_try_echo") >&5
34528  (eval "$ac_compile") 2>conftest.er1
34529  ac_status=$?
34530  grep -v '^ *+' conftest.er1 >conftest.err
34531  rm -f conftest.er1
34532  cat conftest.err >&5
34533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34534  (exit $ac_status); } && {
34535	 test -z "$ac_c_werror_flag" ||
34536	 test ! -s conftest.err
34537       } && test -s conftest.$ac_objext; then
34538  ac_lo=$ac_mid; break
34539else
34540  $as_echo "$as_me: failed program was:" >&5
34541sed 's/^/| /' conftest.$ac_ext >&5
34542
34543	ac_hi=`expr '(' $ac_mid ')' - 1`
34544			if test $ac_mid -le $ac_hi; then
34545			  ac_lo= ac_hi=
34546			  break
34547			fi
34548			ac_mid=`expr 2 '*' $ac_mid`
34549fi
34550
34551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34552  done
34553else
34554  $as_echo "$as_me: failed program was:" >&5
34555sed 's/^/| /' conftest.$ac_ext >&5
34556
34557	ac_lo= ac_hi=
34558fi
34559
34560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34561fi
34562
34563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34564# Binary search between lo and hi bounds.
34565while test "x$ac_lo" != "x$ac_hi"; do
34566  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34567  cat >conftest.$ac_ext <<_ACEOF
34568/* confdefs.h.  */
34569_ACEOF
34570cat confdefs.h >>conftest.$ac_ext
34571cat >>conftest.$ac_ext <<_ACEOF
34572/* end confdefs.h.  */
34573$ac_includes_default
34574int
34575main ()
34576{
34577static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
34578test_array [0] = 0
34579
34580  ;
34581  return 0;
34582}
34583_ACEOF
34584rm -f conftest.$ac_objext
34585if { (ac_try="$ac_compile"
34586case "(($ac_try" in
34587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34588  *) ac_try_echo=$ac_try;;
34589esac
34590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34591$as_echo "$ac_try_echo") >&5
34592  (eval "$ac_compile") 2>conftest.er1
34593  ac_status=$?
34594  grep -v '^ *+' conftest.er1 >conftest.err
34595  rm -f conftest.er1
34596  cat conftest.err >&5
34597  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598  (exit $ac_status); } && {
34599	 test -z "$ac_c_werror_flag" ||
34600	 test ! -s conftest.err
34601       } && test -s conftest.$ac_objext; then
34602  ac_hi=$ac_mid
34603else
34604  $as_echo "$as_me: failed program was:" >&5
34605sed 's/^/| /' conftest.$ac_ext >&5
34606
34607	ac_lo=`expr '(' $ac_mid ')' + 1`
34608fi
34609
34610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34611done
34612case $ac_lo in
34613?*) ac_cv_sizeof_long=$ac_lo;;
34614'') if test "$ac_cv_type_long" = yes; then
34615     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
34616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34617{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34618See \`config.log' for more details." >&5
34619$as_echo "$as_me: error: cannot compute sizeof (long)
34620See \`config.log' for more details." >&2;}
34621   { (exit 77); exit 77; }; }; }
34622   else
34623     ac_cv_sizeof_long=0
34624   fi ;;
34625esac
34626else
34627  cat >conftest.$ac_ext <<_ACEOF
34628/* confdefs.h.  */
34629_ACEOF
34630cat confdefs.h >>conftest.$ac_ext
34631cat >>conftest.$ac_ext <<_ACEOF
34632/* end confdefs.h.  */
34633$ac_includes_default
34634static long int longval () { return (long int) (sizeof (long)); }
34635static unsigned long int ulongval () { return (long int) (sizeof (long)); }
34636#include <stdio.h>
34637#include <stdlib.h>
34638int
34639main ()
34640{
34641
34642  FILE *f = fopen ("conftest.val", "w");
34643  if (! f)
34644    return 1;
34645  if (((long int) (sizeof (long))) < 0)
34646    {
34647      long int i = longval ();
34648      if (i != ((long int) (sizeof (long))))
34649	return 1;
34650      fprintf (f, "%ld", i);
34651    }
34652  else
34653    {
34654      unsigned long int i = ulongval ();
34655      if (i != ((long int) (sizeof (long))))
34656	return 1;
34657      fprintf (f, "%lu", i);
34658    }
34659  /* Do not output a trailing newline, as this causes \r\n confusion
34660     on some platforms.  */
34661  return ferror (f) || fclose (f) != 0;
34662
34663  ;
34664  return 0;
34665}
34666_ACEOF
34667rm -f conftest$ac_exeext
34668if { (ac_try="$ac_link"
34669case "(($ac_try" in
34670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34671  *) ac_try_echo=$ac_try;;
34672esac
34673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34674$as_echo "$ac_try_echo") >&5
34675  (eval "$ac_link") 2>&5
34676  ac_status=$?
34677  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34678  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34679  { (case "(($ac_try" in
34680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34681  *) ac_try_echo=$ac_try;;
34682esac
34683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34684$as_echo "$ac_try_echo") >&5
34685  (eval "$ac_try") 2>&5
34686  ac_status=$?
34687  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688  (exit $ac_status); }; }; then
34689  ac_cv_sizeof_long=`cat conftest.val`
34690else
34691  $as_echo "$as_me: program exited with status $ac_status" >&5
34692$as_echo "$as_me: failed program was:" >&5
34693sed 's/^/| /' conftest.$ac_ext >&5
34694
34695( exit $ac_status )
34696if test "$ac_cv_type_long" = yes; then
34697     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
34698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34699{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34700See \`config.log' for more details." >&5
34701$as_echo "$as_me: error: cannot compute sizeof (long)
34702See \`config.log' for more details." >&2;}
34703   { (exit 77); exit 77; }; }; }
34704   else
34705     ac_cv_sizeof_long=0
34706   fi
34707fi
34708rm -rf conftest.dSYM
34709rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34710fi
34711rm -f conftest.val
34712fi
34713{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34714$as_echo "$ac_cv_sizeof_long" >&6; }
34715
34716
34717
34718cat >>confdefs.h <<_ACEOF
34719#define SIZEOF_LONG $ac_cv_sizeof_long
34720_ACEOF
34721
34722
34723# The cast to long int works around a bug in the HP C Compiler
34724# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34725# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34726# This bug is HP SR number 8606223364.
34727{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
34728$as_echo_n "checking size of long long... " >&6; }
34729if test "${ac_cv_sizeof_long_long+set}" = set; then
34730  $as_echo_n "(cached) " >&6
34731else
34732  if test "$cross_compiling" = yes; then
34733  # Depending upon the size, compute the lo and hi bounds.
34734cat >conftest.$ac_ext <<_ACEOF
34735/* confdefs.h.  */
34736_ACEOF
34737cat confdefs.h >>conftest.$ac_ext
34738cat >>conftest.$ac_ext <<_ACEOF
34739/* end confdefs.h.  */
34740$ac_includes_default
34741int
34742main ()
34743{
34744static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
34745test_array [0] = 0
34746
34747  ;
34748  return 0;
34749}
34750_ACEOF
34751rm -f conftest.$ac_objext
34752if { (ac_try="$ac_compile"
34753case "(($ac_try" in
34754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34755  *) ac_try_echo=$ac_try;;
34756esac
34757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34758$as_echo "$ac_try_echo") >&5
34759  (eval "$ac_compile") 2>conftest.er1
34760  ac_status=$?
34761  grep -v '^ *+' conftest.er1 >conftest.err
34762  rm -f conftest.er1
34763  cat conftest.err >&5
34764  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765  (exit $ac_status); } && {
34766	 test -z "$ac_c_werror_flag" ||
34767	 test ! -s conftest.err
34768       } && test -s conftest.$ac_objext; then
34769  ac_lo=0 ac_mid=0
34770  while :; do
34771    cat >conftest.$ac_ext <<_ACEOF
34772/* confdefs.h.  */
34773_ACEOF
34774cat confdefs.h >>conftest.$ac_ext
34775cat >>conftest.$ac_ext <<_ACEOF
34776/* end confdefs.h.  */
34777$ac_includes_default
34778int
34779main ()
34780{
34781static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
34782test_array [0] = 0
34783
34784  ;
34785  return 0;
34786}
34787_ACEOF
34788rm -f conftest.$ac_objext
34789if { (ac_try="$ac_compile"
34790case "(($ac_try" in
34791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34792  *) ac_try_echo=$ac_try;;
34793esac
34794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34795$as_echo "$ac_try_echo") >&5
34796  (eval "$ac_compile") 2>conftest.er1
34797  ac_status=$?
34798  grep -v '^ *+' conftest.er1 >conftest.err
34799  rm -f conftest.er1
34800  cat conftest.err >&5
34801  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34802  (exit $ac_status); } && {
34803	 test -z "$ac_c_werror_flag" ||
34804	 test ! -s conftest.err
34805       } && test -s conftest.$ac_objext; then
34806  ac_hi=$ac_mid; break
34807else
34808  $as_echo "$as_me: failed program was:" >&5
34809sed 's/^/| /' conftest.$ac_ext >&5
34810
34811	ac_lo=`expr $ac_mid + 1`
34812			if test $ac_lo -le $ac_mid; then
34813			  ac_lo= ac_hi=
34814			  break
34815			fi
34816			ac_mid=`expr 2 '*' $ac_mid + 1`
34817fi
34818
34819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34820  done
34821else
34822  $as_echo "$as_me: failed program was:" >&5
34823sed 's/^/| /' conftest.$ac_ext >&5
34824
34825	cat >conftest.$ac_ext <<_ACEOF
34826/* confdefs.h.  */
34827_ACEOF
34828cat confdefs.h >>conftest.$ac_ext
34829cat >>conftest.$ac_ext <<_ACEOF
34830/* end confdefs.h.  */
34831$ac_includes_default
34832int
34833main ()
34834{
34835static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
34836test_array [0] = 0
34837
34838  ;
34839  return 0;
34840}
34841_ACEOF
34842rm -f conftest.$ac_objext
34843if { (ac_try="$ac_compile"
34844case "(($ac_try" in
34845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34846  *) ac_try_echo=$ac_try;;
34847esac
34848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34849$as_echo "$ac_try_echo") >&5
34850  (eval "$ac_compile") 2>conftest.er1
34851  ac_status=$?
34852  grep -v '^ *+' conftest.er1 >conftest.err
34853  rm -f conftest.er1
34854  cat conftest.err >&5
34855  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34856  (exit $ac_status); } && {
34857	 test -z "$ac_c_werror_flag" ||
34858	 test ! -s conftest.err
34859       } && test -s conftest.$ac_objext; then
34860  ac_hi=-1 ac_mid=-1
34861  while :; do
34862    cat >conftest.$ac_ext <<_ACEOF
34863/* confdefs.h.  */
34864_ACEOF
34865cat confdefs.h >>conftest.$ac_ext
34866cat >>conftest.$ac_ext <<_ACEOF
34867/* end confdefs.h.  */
34868$ac_includes_default
34869int
34870main ()
34871{
34872static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
34873test_array [0] = 0
34874
34875  ;
34876  return 0;
34877}
34878_ACEOF
34879rm -f conftest.$ac_objext
34880if { (ac_try="$ac_compile"
34881case "(($ac_try" in
34882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34883  *) ac_try_echo=$ac_try;;
34884esac
34885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34886$as_echo "$ac_try_echo") >&5
34887  (eval "$ac_compile") 2>conftest.er1
34888  ac_status=$?
34889  grep -v '^ *+' conftest.er1 >conftest.err
34890  rm -f conftest.er1
34891  cat conftest.err >&5
34892  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34893  (exit $ac_status); } && {
34894	 test -z "$ac_c_werror_flag" ||
34895	 test ! -s conftest.err
34896       } && test -s conftest.$ac_objext; then
34897  ac_lo=$ac_mid; break
34898else
34899  $as_echo "$as_me: failed program was:" >&5
34900sed 's/^/| /' conftest.$ac_ext >&5
34901
34902	ac_hi=`expr '(' $ac_mid ')' - 1`
34903			if test $ac_mid -le $ac_hi; then
34904			  ac_lo= ac_hi=
34905			  break
34906			fi
34907			ac_mid=`expr 2 '*' $ac_mid`
34908fi
34909
34910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34911  done
34912else
34913  $as_echo "$as_me: failed program was:" >&5
34914sed 's/^/| /' conftest.$ac_ext >&5
34915
34916	ac_lo= ac_hi=
34917fi
34918
34919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34920fi
34921
34922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34923# Binary search between lo and hi bounds.
34924while test "x$ac_lo" != "x$ac_hi"; do
34925  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34926  cat >conftest.$ac_ext <<_ACEOF
34927/* confdefs.h.  */
34928_ACEOF
34929cat confdefs.h >>conftest.$ac_ext
34930cat >>conftest.$ac_ext <<_ACEOF
34931/* end confdefs.h.  */
34932$ac_includes_default
34933int
34934main ()
34935{
34936static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
34937test_array [0] = 0
34938
34939  ;
34940  return 0;
34941}
34942_ACEOF
34943rm -f conftest.$ac_objext
34944if { (ac_try="$ac_compile"
34945case "(($ac_try" in
34946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34947  *) ac_try_echo=$ac_try;;
34948esac
34949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34950$as_echo "$ac_try_echo") >&5
34951  (eval "$ac_compile") 2>conftest.er1
34952  ac_status=$?
34953  grep -v '^ *+' conftest.er1 >conftest.err
34954  rm -f conftest.er1
34955  cat conftest.err >&5
34956  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957  (exit $ac_status); } && {
34958	 test -z "$ac_c_werror_flag" ||
34959	 test ! -s conftest.err
34960       } && test -s conftest.$ac_objext; then
34961  ac_hi=$ac_mid
34962else
34963  $as_echo "$as_me: failed program was:" >&5
34964sed 's/^/| /' conftest.$ac_ext >&5
34965
34966	ac_lo=`expr '(' $ac_mid ')' + 1`
34967fi
34968
34969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34970done
34971case $ac_lo in
34972?*) ac_cv_sizeof_long_long=$ac_lo;;
34973'') if test "$ac_cv_type_long_long" = yes; then
34974     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
34975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34976{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34977See \`config.log' for more details." >&5
34978$as_echo "$as_me: error: cannot compute sizeof (long long)
34979See \`config.log' for more details." >&2;}
34980   { (exit 77); exit 77; }; }; }
34981   else
34982     ac_cv_sizeof_long_long=0
34983   fi ;;
34984esac
34985else
34986  cat >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$ac_includes_default
34993static long int longval () { return (long int) (sizeof (long long)); }
34994static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
34995#include <stdio.h>
34996#include <stdlib.h>
34997int
34998main ()
34999{
35000
35001  FILE *f = fopen ("conftest.val", "w");
35002  if (! f)
35003    return 1;
35004  if (((long int) (sizeof (long long))) < 0)
35005    {
35006      long int i = longval ();
35007      if (i != ((long int) (sizeof (long long))))
35008	return 1;
35009      fprintf (f, "%ld", i);
35010    }
35011  else
35012    {
35013      unsigned long int i = ulongval ();
35014      if (i != ((long int) (sizeof (long long))))
35015	return 1;
35016      fprintf (f, "%lu", i);
35017    }
35018  /* Do not output a trailing newline, as this causes \r\n confusion
35019     on some platforms.  */
35020  return ferror (f) || fclose (f) != 0;
35021
35022  ;
35023  return 0;
35024}
35025_ACEOF
35026rm -f conftest$ac_exeext
35027if { (ac_try="$ac_link"
35028case "(($ac_try" in
35029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35030  *) ac_try_echo=$ac_try;;
35031esac
35032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35033$as_echo "$ac_try_echo") >&5
35034  (eval "$ac_link") 2>&5
35035  ac_status=$?
35036  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35037  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35038  { (case "(($ac_try" in
35039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35040  *) ac_try_echo=$ac_try;;
35041esac
35042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35043$as_echo "$ac_try_echo") >&5
35044  (eval "$ac_try") 2>&5
35045  ac_status=$?
35046  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35047  (exit $ac_status); }; }; then
35048  ac_cv_sizeof_long_long=`cat conftest.val`
35049else
35050  $as_echo "$as_me: program exited with status $ac_status" >&5
35051$as_echo "$as_me: failed program was:" >&5
35052sed 's/^/| /' conftest.$ac_ext >&5
35053
35054( exit $ac_status )
35055if test "$ac_cv_type_long_long" = yes; then
35056     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35058{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35059See \`config.log' for more details." >&5
35060$as_echo "$as_me: error: cannot compute sizeof (long long)
35061See \`config.log' for more details." >&2;}
35062   { (exit 77); exit 77; }; }; }
35063   else
35064     ac_cv_sizeof_long_long=0
35065   fi
35066fi
35067rm -rf conftest.dSYM
35068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35069fi
35070rm -f conftest.val
35071fi
35072{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35073$as_echo "$ac_cv_sizeof_long_long" >&6; }
35074
35075
35076
35077cat >>confdefs.h <<_ACEOF
35078#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35079_ACEOF
35080
35081
35082# The cast to long int works around a bug in the HP C Compiler
35083# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35084# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35085# This bug is HP SR number 8606223364.
35086{ $as_echo "$as_me:$LINENO: checking size of short" >&5
35087$as_echo_n "checking size of short... " >&6; }
35088if test "${ac_cv_sizeof_short+set}" = set; then
35089  $as_echo_n "(cached) " >&6
35090else
35091  if test "$cross_compiling" = yes; then
35092  # Depending upon the size, compute the lo and hi bounds.
35093cat >conftest.$ac_ext <<_ACEOF
35094/* confdefs.h.  */
35095_ACEOF
35096cat confdefs.h >>conftest.$ac_ext
35097cat >>conftest.$ac_ext <<_ACEOF
35098/* end confdefs.h.  */
35099$ac_includes_default
35100int
35101main ()
35102{
35103static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
35104test_array [0] = 0
35105
35106  ;
35107  return 0;
35108}
35109_ACEOF
35110rm -f conftest.$ac_objext
35111if { (ac_try="$ac_compile"
35112case "(($ac_try" in
35113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35114  *) ac_try_echo=$ac_try;;
35115esac
35116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35117$as_echo "$ac_try_echo") >&5
35118  (eval "$ac_compile") 2>conftest.er1
35119  ac_status=$?
35120  grep -v '^ *+' conftest.er1 >conftest.err
35121  rm -f conftest.er1
35122  cat conftest.err >&5
35123  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124  (exit $ac_status); } && {
35125	 test -z "$ac_c_werror_flag" ||
35126	 test ! -s conftest.err
35127       } && test -s conftest.$ac_objext; then
35128  ac_lo=0 ac_mid=0
35129  while :; do
35130    cat >conftest.$ac_ext <<_ACEOF
35131/* confdefs.h.  */
35132_ACEOF
35133cat confdefs.h >>conftest.$ac_ext
35134cat >>conftest.$ac_ext <<_ACEOF
35135/* end confdefs.h.  */
35136$ac_includes_default
35137int
35138main ()
35139{
35140static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
35141test_array [0] = 0
35142
35143  ;
35144  return 0;
35145}
35146_ACEOF
35147rm -f conftest.$ac_objext
35148if { (ac_try="$ac_compile"
35149case "(($ac_try" in
35150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35151  *) ac_try_echo=$ac_try;;
35152esac
35153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35154$as_echo "$ac_try_echo") >&5
35155  (eval "$ac_compile") 2>conftest.er1
35156  ac_status=$?
35157  grep -v '^ *+' conftest.er1 >conftest.err
35158  rm -f conftest.er1
35159  cat conftest.err >&5
35160  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161  (exit $ac_status); } && {
35162	 test -z "$ac_c_werror_flag" ||
35163	 test ! -s conftest.err
35164       } && test -s conftest.$ac_objext; then
35165  ac_hi=$ac_mid; break
35166else
35167  $as_echo "$as_me: failed program was:" >&5
35168sed 's/^/| /' conftest.$ac_ext >&5
35169
35170	ac_lo=`expr $ac_mid + 1`
35171			if test $ac_lo -le $ac_mid; then
35172			  ac_lo= ac_hi=
35173			  break
35174			fi
35175			ac_mid=`expr 2 '*' $ac_mid + 1`
35176fi
35177
35178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35179  done
35180else
35181  $as_echo "$as_me: failed program was:" >&5
35182sed 's/^/| /' conftest.$ac_ext >&5
35183
35184	cat >conftest.$ac_ext <<_ACEOF
35185/* confdefs.h.  */
35186_ACEOF
35187cat confdefs.h >>conftest.$ac_ext
35188cat >>conftest.$ac_ext <<_ACEOF
35189/* end confdefs.h.  */
35190$ac_includes_default
35191int
35192main ()
35193{
35194static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
35195test_array [0] = 0
35196
35197  ;
35198  return 0;
35199}
35200_ACEOF
35201rm -f conftest.$ac_objext
35202if { (ac_try="$ac_compile"
35203case "(($ac_try" in
35204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35205  *) ac_try_echo=$ac_try;;
35206esac
35207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35208$as_echo "$ac_try_echo") >&5
35209  (eval "$ac_compile") 2>conftest.er1
35210  ac_status=$?
35211  grep -v '^ *+' conftest.er1 >conftest.err
35212  rm -f conftest.er1
35213  cat conftest.err >&5
35214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35215  (exit $ac_status); } && {
35216	 test -z "$ac_c_werror_flag" ||
35217	 test ! -s conftest.err
35218       } && test -s conftest.$ac_objext; then
35219  ac_hi=-1 ac_mid=-1
35220  while :; do
35221    cat >conftest.$ac_ext <<_ACEOF
35222/* confdefs.h.  */
35223_ACEOF
35224cat confdefs.h >>conftest.$ac_ext
35225cat >>conftest.$ac_ext <<_ACEOF
35226/* end confdefs.h.  */
35227$ac_includes_default
35228int
35229main ()
35230{
35231static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
35232test_array [0] = 0
35233
35234  ;
35235  return 0;
35236}
35237_ACEOF
35238rm -f conftest.$ac_objext
35239if { (ac_try="$ac_compile"
35240case "(($ac_try" in
35241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35242  *) ac_try_echo=$ac_try;;
35243esac
35244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35245$as_echo "$ac_try_echo") >&5
35246  (eval "$ac_compile") 2>conftest.er1
35247  ac_status=$?
35248  grep -v '^ *+' conftest.er1 >conftest.err
35249  rm -f conftest.er1
35250  cat conftest.err >&5
35251  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252  (exit $ac_status); } && {
35253	 test -z "$ac_c_werror_flag" ||
35254	 test ! -s conftest.err
35255       } && test -s conftest.$ac_objext; then
35256  ac_lo=$ac_mid; break
35257else
35258  $as_echo "$as_me: failed program was:" >&5
35259sed 's/^/| /' conftest.$ac_ext >&5
35260
35261	ac_hi=`expr '(' $ac_mid ')' - 1`
35262			if test $ac_mid -le $ac_hi; then
35263			  ac_lo= ac_hi=
35264			  break
35265			fi
35266			ac_mid=`expr 2 '*' $ac_mid`
35267fi
35268
35269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35270  done
35271else
35272  $as_echo "$as_me: failed program was:" >&5
35273sed 's/^/| /' conftest.$ac_ext >&5
35274
35275	ac_lo= ac_hi=
35276fi
35277
35278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35279fi
35280
35281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35282# Binary search between lo and hi bounds.
35283while test "x$ac_lo" != "x$ac_hi"; do
35284  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35285  cat >conftest.$ac_ext <<_ACEOF
35286/* confdefs.h.  */
35287_ACEOF
35288cat confdefs.h >>conftest.$ac_ext
35289cat >>conftest.$ac_ext <<_ACEOF
35290/* end confdefs.h.  */
35291$ac_includes_default
35292int
35293main ()
35294{
35295static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
35296test_array [0] = 0
35297
35298  ;
35299  return 0;
35300}
35301_ACEOF
35302rm -f conftest.$ac_objext
35303if { (ac_try="$ac_compile"
35304case "(($ac_try" in
35305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35306  *) ac_try_echo=$ac_try;;
35307esac
35308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35309$as_echo "$ac_try_echo") >&5
35310  (eval "$ac_compile") 2>conftest.er1
35311  ac_status=$?
35312  grep -v '^ *+' conftest.er1 >conftest.err
35313  rm -f conftest.er1
35314  cat conftest.err >&5
35315  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35316  (exit $ac_status); } && {
35317	 test -z "$ac_c_werror_flag" ||
35318	 test ! -s conftest.err
35319       } && test -s conftest.$ac_objext; then
35320  ac_hi=$ac_mid
35321else
35322  $as_echo "$as_me: failed program was:" >&5
35323sed 's/^/| /' conftest.$ac_ext >&5
35324
35325	ac_lo=`expr '(' $ac_mid ')' + 1`
35326fi
35327
35328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35329done
35330case $ac_lo in
35331?*) ac_cv_sizeof_short=$ac_lo;;
35332'') if test "$ac_cv_type_short" = yes; then
35333     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35335{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
35336See \`config.log' for more details." >&5
35337$as_echo "$as_me: error: cannot compute sizeof (short)
35338See \`config.log' for more details." >&2;}
35339   { (exit 77); exit 77; }; }; }
35340   else
35341     ac_cv_sizeof_short=0
35342   fi ;;
35343esac
35344else
35345  cat >conftest.$ac_ext <<_ACEOF
35346/* confdefs.h.  */
35347_ACEOF
35348cat confdefs.h >>conftest.$ac_ext
35349cat >>conftest.$ac_ext <<_ACEOF
35350/* end confdefs.h.  */
35351$ac_includes_default
35352static long int longval () { return (long int) (sizeof (short)); }
35353static unsigned long int ulongval () { return (long int) (sizeof (short)); }
35354#include <stdio.h>
35355#include <stdlib.h>
35356int
35357main ()
35358{
35359
35360  FILE *f = fopen ("conftest.val", "w");
35361  if (! f)
35362    return 1;
35363  if (((long int) (sizeof (short))) < 0)
35364    {
35365      long int i = longval ();
35366      if (i != ((long int) (sizeof (short))))
35367	return 1;
35368      fprintf (f, "%ld", i);
35369    }
35370  else
35371    {
35372      unsigned long int i = ulongval ();
35373      if (i != ((long int) (sizeof (short))))
35374	return 1;
35375      fprintf (f, "%lu", i);
35376    }
35377  /* Do not output a trailing newline, as this causes \r\n confusion
35378     on some platforms.  */
35379  return ferror (f) || fclose (f) != 0;
35380
35381  ;
35382  return 0;
35383}
35384_ACEOF
35385rm -f 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35392$as_echo "$ac_try_echo") >&5
35393  (eval "$ac_link") 2>&5
35394  ac_status=$?
35395  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35397  { (case "(($ac_try" in
35398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35399  *) ac_try_echo=$ac_try;;
35400esac
35401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35402$as_echo "$ac_try_echo") >&5
35403  (eval "$ac_try") 2>&5
35404  ac_status=$?
35405  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35406  (exit $ac_status); }; }; then
35407  ac_cv_sizeof_short=`cat conftest.val`
35408else
35409  $as_echo "$as_me: program exited with status $ac_status" >&5
35410$as_echo "$as_me: failed program was:" >&5
35411sed 's/^/| /' conftest.$ac_ext >&5
35412
35413( exit $ac_status )
35414if test "$ac_cv_type_short" = yes; then
35415     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35417{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
35418See \`config.log' for more details." >&5
35419$as_echo "$as_me: error: cannot compute sizeof (short)
35420See \`config.log' for more details." >&2;}
35421   { (exit 77); exit 77; }; }; }
35422   else
35423     ac_cv_sizeof_short=0
35424   fi
35425fi
35426rm -rf conftest.dSYM
35427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35428fi
35429rm -f conftest.val
35430fi
35431{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35432$as_echo "$ac_cv_sizeof_short" >&6; }
35433
35434
35435
35436cat >>confdefs.h <<_ACEOF
35437#define SIZEOF_SHORT $ac_cv_sizeof_short
35438_ACEOF
35439
35440
35441
35442{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
35443$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
35444if test "${ac_cv_c_const+set}" = set; then
35445  $as_echo_n "(cached) " >&6
35446else
35447  cat >conftest.$ac_ext <<_ACEOF
35448/* confdefs.h.  */
35449_ACEOF
35450cat confdefs.h >>conftest.$ac_ext
35451cat >>conftest.$ac_ext <<_ACEOF
35452/* end confdefs.h.  */
35453
35454int
35455main ()
35456{
35457/* FIXME: Include the comments suggested by Paul. */
35458#ifndef __cplusplus
35459  /* Ultrix mips cc rejects this.  */
35460  typedef int charset[2];
35461  const charset cs;
35462  /* SunOS 4.1.1 cc rejects this.  */
35463  char const *const *pcpcc;
35464  char **ppc;
35465  /* NEC SVR4.0.2 mips cc rejects this.  */
35466  struct point {int x, y;};
35467  static struct point const zero = {0,0};
35468  /* AIX XL C 1.02.0.0 rejects this.
35469     It does not let you subtract one const X* pointer from another in
35470     an arm of an if-expression whose if-part is not a constant
35471     expression */
35472  const char *g = "string";
35473  pcpcc = &g + (g ? g-g : 0);
35474  /* HPUX 7.0 cc rejects these. */
35475  ++pcpcc;
35476  ppc = (char**) pcpcc;
35477  pcpcc = (char const *const *) ppc;
35478  { /* SCO 3.2v4 cc rejects this.  */
35479    char *t;
35480    char const *s = 0 ? (char *) 0 : (char const *) 0;
35481
35482    *t++ = 0;
35483    if (s) return 0;
35484  }
35485  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
35486    int x[] = {25, 17};
35487    const int *foo = &x[0];
35488    ++foo;
35489  }
35490  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
35491    typedef const int *iptr;
35492    iptr p = 0;
35493    ++p;
35494  }
35495  { /* AIX XL C 1.02.0.0 rejects this saying
35496       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35497    struct s { int j; const int *ap[3]; };
35498    struct s *b; b->j = 5;
35499  }
35500  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35501    const int foo = 10;
35502    if (!foo) return 0;
35503  }
35504  return !cs[0] && !zero.x;
35505#endif
35506
35507  ;
35508  return 0;
35509}
35510_ACEOF
35511rm -f conftest.$ac_objext
35512if { (ac_try="$ac_compile"
35513case "(($ac_try" in
35514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35515  *) ac_try_echo=$ac_try;;
35516esac
35517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35518$as_echo "$ac_try_echo") >&5
35519  (eval "$ac_compile") 2>conftest.er1
35520  ac_status=$?
35521  grep -v '^ *+' conftest.er1 >conftest.err
35522  rm -f conftest.er1
35523  cat conftest.err >&5
35524  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35525  (exit $ac_status); } && {
35526	 test -z "$ac_c_werror_flag" ||
35527	 test ! -s conftest.err
35528       } && test -s conftest.$ac_objext; then
35529  ac_cv_c_const=yes
35530else
35531  $as_echo "$as_me: failed program was:" >&5
35532sed 's/^/| /' conftest.$ac_ext >&5
35533
35534	ac_cv_c_const=no
35535fi
35536
35537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35538fi
35539{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35540$as_echo "$ac_cv_c_const" >&6; }
35541if test $ac_cv_c_const = no; then
35542
35543cat >>confdefs.h <<\_ACEOF
35544#define const /**/
35545_ACEOF
35546
35547fi
35548
35549{ $as_echo "$as_me:$LINENO: checking for inline" >&5
35550$as_echo_n "checking for inline... " >&6; }
35551if test "${ac_cv_c_inline+set}" = set; then
35552  $as_echo_n "(cached) " >&6
35553else
35554  ac_cv_c_inline=no
35555for ac_kw in inline __inline__ __inline; do
35556  cat >conftest.$ac_ext <<_ACEOF
35557/* confdefs.h.  */
35558_ACEOF
35559cat confdefs.h >>conftest.$ac_ext
35560cat >>conftest.$ac_ext <<_ACEOF
35561/* end confdefs.h.  */
35562#ifndef __cplusplus
35563typedef int foo_t;
35564static $ac_kw foo_t static_foo () {return 0; }
35565$ac_kw foo_t foo () {return 0; }
35566#endif
35567
35568_ACEOF
35569rm -f conftest.$ac_objext
35570if { (ac_try="$ac_compile"
35571case "(($ac_try" in
35572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35573  *) ac_try_echo=$ac_try;;
35574esac
35575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35576$as_echo "$ac_try_echo") >&5
35577  (eval "$ac_compile") 2>conftest.er1
35578  ac_status=$?
35579  grep -v '^ *+' conftest.er1 >conftest.err
35580  rm -f conftest.er1
35581  cat conftest.err >&5
35582  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35583  (exit $ac_status); } && {
35584	 test -z "$ac_c_werror_flag" ||
35585	 test ! -s conftest.err
35586       } && test -s conftest.$ac_objext; then
35587  ac_cv_c_inline=$ac_kw
35588else
35589  $as_echo "$as_me: failed program was:" >&5
35590sed 's/^/| /' conftest.$ac_ext >&5
35591
35592
35593fi
35594
35595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35596  test "$ac_cv_c_inline" != no && break
35597done
35598
35599fi
35600{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
35601$as_echo "$ac_cv_c_inline" >&6; }
35602
35603
35604case $ac_cv_c_inline in
35605  inline | yes) ;;
35606  *)
35607    case $ac_cv_c_inline in
35608      no) ac_val=;;
35609      *) ac_val=$ac_cv_c_inline;;
35610    esac
35611    cat >>confdefs.h <<_ACEOF
35612#ifndef __cplusplus
35613#define inline $ac_val
35614#endif
35615_ACEOF
35616    ;;
35617esac
35618
35619
35620 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
35621$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
35622if test "${ac_cv_c_bigendian+set}" = set; then
35623  $as_echo_n "(cached) " >&6
35624else
35625  ac_cv_c_bigendian=unknown
35626    # See if we're dealing with a universal compiler.
35627    cat >conftest.$ac_ext <<_ACEOF
35628/* confdefs.h.  */
35629_ACEOF
35630cat confdefs.h >>conftest.$ac_ext
35631cat >>conftest.$ac_ext <<_ACEOF
35632/* end confdefs.h.  */
35633#ifndef __APPLE_CC__
35634	       not a universal capable compiler
35635	     #endif
35636	     typedef int dummy;
35637
35638_ACEOF
35639rm -f conftest.$ac_objext
35640if { (ac_try="$ac_compile"
35641case "(($ac_try" in
35642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35643  *) ac_try_echo=$ac_try;;
35644esac
35645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35646$as_echo "$ac_try_echo") >&5
35647  (eval "$ac_compile") 2>conftest.er1
35648  ac_status=$?
35649  grep -v '^ *+' conftest.er1 >conftest.err
35650  rm -f conftest.er1
35651  cat conftest.err >&5
35652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35653  (exit $ac_status); } && {
35654	 test -z "$ac_c_werror_flag" ||
35655	 test ! -s conftest.err
35656       } && test -s conftest.$ac_objext; then
35657
35658	# Check for potential -arch flags.  It is not universal unless
35659	# there are some -arch flags.  Note that *ppc* also matches
35660	# ppc64.  This check is also rather less than ideal.
35661	case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
35662	  *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
35663	esac
35664else
35665  $as_echo "$as_me: failed program was:" >&5
35666sed 's/^/| /' conftest.$ac_ext >&5
35667
35668
35669fi
35670
35671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35672    if test $ac_cv_c_bigendian = unknown; then
35673      # See if sys/param.h defines the BYTE_ORDER macro.
35674      cat >conftest.$ac_ext <<_ACEOF
35675/* confdefs.h.  */
35676_ACEOF
35677cat confdefs.h >>conftest.$ac_ext
35678cat >>conftest.$ac_ext <<_ACEOF
35679/* end confdefs.h.  */
35680#include <sys/types.h>
35681	     #include <sys/param.h>
35682
35683int
35684main ()
35685{
35686#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
35687		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
35688		     && LITTLE_ENDIAN)
35689	      bogus endian macros
35690	     #endif
35691
35692  ;
35693  return 0;
35694}
35695_ACEOF
35696rm -f conftest.$ac_objext
35697if { (ac_try="$ac_compile"
35698case "(($ac_try" in
35699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35700  *) ac_try_echo=$ac_try;;
35701esac
35702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35703$as_echo "$ac_try_echo") >&5
35704  (eval "$ac_compile") 2>conftest.er1
35705  ac_status=$?
35706  grep -v '^ *+' conftest.er1 >conftest.err
35707  rm -f conftest.er1
35708  cat conftest.err >&5
35709  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35710  (exit $ac_status); } && {
35711	 test -z "$ac_c_werror_flag" ||
35712	 test ! -s conftest.err
35713       } && test -s conftest.$ac_objext; then
35714  # It does; now see whether it defined to BIG_ENDIAN or not.
35715	 cat >conftest.$ac_ext <<_ACEOF
35716/* confdefs.h.  */
35717_ACEOF
35718cat confdefs.h >>conftest.$ac_ext
35719cat >>conftest.$ac_ext <<_ACEOF
35720/* end confdefs.h.  */
35721#include <sys/types.h>
35722		#include <sys/param.h>
35723
35724int
35725main ()
35726{
35727#if BYTE_ORDER != BIG_ENDIAN
35728		 not big endian
35729		#endif
35730
35731  ;
35732  return 0;
35733}
35734_ACEOF
35735rm -f conftest.$ac_objext
35736if { (ac_try="$ac_compile"
35737case "(($ac_try" in
35738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35739  *) ac_try_echo=$ac_try;;
35740esac
35741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35742$as_echo "$ac_try_echo") >&5
35743  (eval "$ac_compile") 2>conftest.er1
35744  ac_status=$?
35745  grep -v '^ *+' conftest.er1 >conftest.err
35746  rm -f conftest.er1
35747  cat conftest.err >&5
35748  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35749  (exit $ac_status); } && {
35750	 test -z "$ac_c_werror_flag" ||
35751	 test ! -s conftest.err
35752       } && test -s conftest.$ac_objext; then
35753  ac_cv_c_bigendian=yes
35754else
35755  $as_echo "$as_me: failed program was:" >&5
35756sed 's/^/| /' conftest.$ac_ext >&5
35757
35758	ac_cv_c_bigendian=no
35759fi
35760
35761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35762else
35763  $as_echo "$as_me: failed program was:" >&5
35764sed 's/^/| /' conftest.$ac_ext >&5
35765
35766
35767fi
35768
35769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35770    fi
35771    if test $ac_cv_c_bigendian = unknown; then
35772      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
35773      cat >conftest.$ac_ext <<_ACEOF
35774/* confdefs.h.  */
35775_ACEOF
35776cat confdefs.h >>conftest.$ac_ext
35777cat >>conftest.$ac_ext <<_ACEOF
35778/* end confdefs.h.  */
35779#include <limits.h>
35780
35781int
35782main ()
35783{
35784#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
35785	      bogus endian macros
35786	     #endif
35787
35788  ;
35789  return 0;
35790}
35791_ACEOF
35792rm -f conftest.$ac_objext
35793if { (ac_try="$ac_compile"
35794case "(($ac_try" in
35795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35796  *) ac_try_echo=$ac_try;;
35797esac
35798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35799$as_echo "$ac_try_echo") >&5
35800  (eval "$ac_compile") 2>conftest.er1
35801  ac_status=$?
35802  grep -v '^ *+' conftest.er1 >conftest.err
35803  rm -f conftest.er1
35804  cat conftest.err >&5
35805  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35806  (exit $ac_status); } && {
35807	 test -z "$ac_c_werror_flag" ||
35808	 test ! -s conftest.err
35809       } && test -s conftest.$ac_objext; then
35810  # It does; now see whether it defined to _BIG_ENDIAN or not.
35811	 cat >conftest.$ac_ext <<_ACEOF
35812/* confdefs.h.  */
35813_ACEOF
35814cat confdefs.h >>conftest.$ac_ext
35815cat >>conftest.$ac_ext <<_ACEOF
35816/* end confdefs.h.  */
35817#include <limits.h>
35818
35819int
35820main ()
35821{
35822#ifndef _BIG_ENDIAN
35823		 not big endian
35824		#endif
35825
35826  ;
35827  return 0;
35828}
35829_ACEOF
35830rm -f conftest.$ac_objext
35831if { (ac_try="$ac_compile"
35832case "(($ac_try" in
35833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35834  *) ac_try_echo=$ac_try;;
35835esac
35836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35837$as_echo "$ac_try_echo") >&5
35838  (eval "$ac_compile") 2>conftest.er1
35839  ac_status=$?
35840  grep -v '^ *+' conftest.er1 >conftest.err
35841  rm -f conftest.er1
35842  cat conftest.err >&5
35843  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35844  (exit $ac_status); } && {
35845	 test -z "$ac_c_werror_flag" ||
35846	 test ! -s conftest.err
35847       } && test -s conftest.$ac_objext; then
35848  ac_cv_c_bigendian=yes
35849else
35850  $as_echo "$as_me: failed program was:" >&5
35851sed 's/^/| /' conftest.$ac_ext >&5
35852
35853	ac_cv_c_bigendian=no
35854fi
35855
35856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35857else
35858  $as_echo "$as_me: failed program was:" >&5
35859sed 's/^/| /' conftest.$ac_ext >&5
35860
35861
35862fi
35863
35864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35865    fi
35866    if test $ac_cv_c_bigendian = unknown; then
35867      # Compile a test program.
35868      if test "$cross_compiling" = yes; then
35869  # Try to guess by grepping values from an object file.
35870	 cat >conftest.$ac_ext <<_ACEOF
35871/* confdefs.h.  */
35872_ACEOF
35873cat confdefs.h >>conftest.$ac_ext
35874cat >>conftest.$ac_ext <<_ACEOF
35875/* end confdefs.h.  */
35876short int ascii_mm[] =
35877		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35878		short int ascii_ii[] =
35879		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35880		int use_ascii (int i) {
35881		  return ascii_mm[i] + ascii_ii[i];
35882		}
35883		short int ebcdic_ii[] =
35884		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35885		short int ebcdic_mm[] =
35886		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35887		int use_ebcdic (int i) {
35888		  return ebcdic_mm[i] + ebcdic_ii[i];
35889		}
35890		extern int foo;
35891
35892int
35893main ()
35894{
35895return use_ascii (foo) == use_ebcdic (foo);
35896  ;
35897  return 0;
35898}
35899_ACEOF
35900rm -f conftest.$ac_objext
35901if { (ac_try="$ac_compile"
35902case "(($ac_try" in
35903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35904  *) ac_try_echo=$ac_try;;
35905esac
35906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35907$as_echo "$ac_try_echo") >&5
35908  (eval "$ac_compile") 2>conftest.er1
35909  ac_status=$?
35910  grep -v '^ *+' conftest.er1 >conftest.err
35911  rm -f conftest.er1
35912  cat conftest.err >&5
35913  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35914  (exit $ac_status); } && {
35915	 test -z "$ac_c_werror_flag" ||
35916	 test ! -s conftest.err
35917       } && test -s conftest.$ac_objext; then
35918  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
35919	      ac_cv_c_bigendian=yes
35920	    fi
35921	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35922	      if test "$ac_cv_c_bigendian" = unknown; then
35923		ac_cv_c_bigendian=no
35924	      else
35925		# finding both strings is unlikely to happen, but who knows?
35926		ac_cv_c_bigendian=unknown
35927	      fi
35928	    fi
35929else
35930  $as_echo "$as_me: failed program was:" >&5
35931sed 's/^/| /' conftest.$ac_ext >&5
35932
35933
35934fi
35935
35936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35937else
35938  cat >conftest.$ac_ext <<_ACEOF
35939/* confdefs.h.  */
35940_ACEOF
35941cat confdefs.h >>conftest.$ac_ext
35942cat >>conftest.$ac_ext <<_ACEOF
35943/* end confdefs.h.  */
35944$ac_includes_default
35945int
35946main ()
35947{
35948
35949	     /* Are we little or big endian?  From Harbison&Steele.  */
35950	     union
35951	     {
35952	       long int l;
35953	       char c[sizeof (long int)];
35954	     } u;
35955	     u.l = 1;
35956	     return u.c[sizeof (long int) - 1] == 1;
35957
35958  ;
35959  return 0;
35960}
35961_ACEOF
35962rm -f conftest$ac_exeext
35963if { (ac_try="$ac_link"
35964case "(($ac_try" in
35965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35966  *) ac_try_echo=$ac_try;;
35967esac
35968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35969$as_echo "$ac_try_echo") >&5
35970  (eval "$ac_link") 2>&5
35971  ac_status=$?
35972  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35973  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35974  { (case "(($ac_try" in
35975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35976  *) ac_try_echo=$ac_try;;
35977esac
35978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35979$as_echo "$ac_try_echo") >&5
35980  (eval "$ac_try") 2>&5
35981  ac_status=$?
35982  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35983  (exit $ac_status); }; }; then
35984  ac_cv_c_bigendian=no
35985else
35986  $as_echo "$as_me: program exited with status $ac_status" >&5
35987$as_echo "$as_me: failed program was:" >&5
35988sed 's/^/| /' conftest.$ac_ext >&5
35989
35990( exit $ac_status )
35991ac_cv_c_bigendian=yes
35992fi
35993rm -rf conftest.dSYM
35994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35995fi
35996
35997
35998    fi
35999fi
36000{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
36001$as_echo "$ac_cv_c_bigendian" >&6; }
36002 case $ac_cv_c_bigendian in #(
36003   yes)
36004     cat >>confdefs.h <<\_ACEOF
36005#define WORDS_BIGENDIAN 1
36006_ACEOF
36007;; #(
36008   no)
36009      ;; #(
36010   universal)
36011
36012cat >>confdefs.h <<\_ACEOF
36013#define AC_APPLE_UNIVERSAL_BUILD 1
36014_ACEOF
36015
36016     ;; #(
36017   *)
36018     { { $as_echo "$as_me:$LINENO: error: unknown endianness
36019 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
36020$as_echo "$as_me: error: unknown endianness
36021 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
36022   { (exit 1); exit 1; }; } ;;
36023 esac
36024
36025
36026{ $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
36027$as_echo_n "checking whether char is unsigned... " >&6; }
36028if test "${ac_cv_c_char_unsigned+set}" = set; then
36029  $as_echo_n "(cached) " >&6
36030else
36031  cat >conftest.$ac_ext <<_ACEOF
36032/* confdefs.h.  */
36033_ACEOF
36034cat confdefs.h >>conftest.$ac_ext
36035cat >>conftest.$ac_ext <<_ACEOF
36036/* end confdefs.h.  */
36037$ac_includes_default
36038int
36039main ()
36040{
36041static int test_array [1 - 2 * !(((char) -1) < 0)];
36042test_array [0] = 0
36043
36044  ;
36045  return 0;
36046}
36047_ACEOF
36048rm -f conftest.$ac_objext
36049if { (ac_try="$ac_compile"
36050case "(($ac_try" in
36051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36052  *) ac_try_echo=$ac_try;;
36053esac
36054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36055$as_echo "$ac_try_echo") >&5
36056  (eval "$ac_compile") 2>conftest.er1
36057  ac_status=$?
36058  grep -v '^ *+' conftest.er1 >conftest.err
36059  rm -f conftest.er1
36060  cat conftest.err >&5
36061  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36062  (exit $ac_status); } && {
36063	 test -z "$ac_c_werror_flag" ||
36064	 test ! -s conftest.err
36065       } && test -s conftest.$ac_objext; then
36066  ac_cv_c_char_unsigned=no
36067else
36068  $as_echo "$as_me: failed program was:" >&5
36069sed 's/^/| /' conftest.$ac_ext >&5
36070
36071	ac_cv_c_char_unsigned=yes
36072fi
36073
36074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36075fi
36076{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
36077$as_echo "$ac_cv_c_char_unsigned" >&6; }
36078if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
36079  cat >>confdefs.h <<\_ACEOF
36080#define __CHAR_UNSIGNED__ 1
36081_ACEOF
36082
36083fi
36084
36085
36086{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
36087$as_echo_n "checking return type of signal handlers... " >&6; }
36088if test "${ac_cv_type_signal+set}" = set; then
36089  $as_echo_n "(cached) " >&6
36090else
36091  cat >conftest.$ac_ext <<_ACEOF
36092/* confdefs.h.  */
36093_ACEOF
36094cat confdefs.h >>conftest.$ac_ext
36095cat >>conftest.$ac_ext <<_ACEOF
36096/* end confdefs.h.  */
36097#include <sys/types.h>
36098#include <signal.h>
36099
36100int
36101main ()
36102{
36103return *(signal (0, 0)) (0) == 1;
36104  ;
36105  return 0;
36106}
36107_ACEOF
36108rm -f conftest.$ac_objext
36109if { (ac_try="$ac_compile"
36110case "(($ac_try" in
36111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36112  *) ac_try_echo=$ac_try;;
36113esac
36114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36115$as_echo "$ac_try_echo") >&5
36116  (eval "$ac_compile") 2>conftest.er1
36117  ac_status=$?
36118  grep -v '^ *+' conftest.er1 >conftest.err
36119  rm -f conftest.er1
36120  cat conftest.err >&5
36121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36122  (exit $ac_status); } && {
36123	 test -z "$ac_c_werror_flag" ||
36124	 test ! -s conftest.err
36125       } && test -s conftest.$ac_objext; then
36126  ac_cv_type_signal=int
36127else
36128  $as_echo "$as_me: failed program was:" >&5
36129sed 's/^/| /' conftest.$ac_ext >&5
36130
36131	ac_cv_type_signal=void
36132fi
36133
36134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36135fi
36136{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
36137$as_echo "$ac_cv_type_signal" >&6; }
36138
36139cat >>confdefs.h <<_ACEOF
36140#define RETSIGTYPE $ac_cv_type_signal
36141_ACEOF
36142
36143
36144{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
36145$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
36146if test "${ac_cv_type_uid_t+set}" = set; then
36147  $as_echo_n "(cached) " >&6
36148else
36149  cat >conftest.$ac_ext <<_ACEOF
36150/* confdefs.h.  */
36151_ACEOF
36152cat confdefs.h >>conftest.$ac_ext
36153cat >>conftest.$ac_ext <<_ACEOF
36154/* end confdefs.h.  */
36155#include <sys/types.h>
36156
36157_ACEOF
36158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36159  $EGREP "uid_t" >/dev/null 2>&1; then
36160  ac_cv_type_uid_t=yes
36161else
36162  ac_cv_type_uid_t=no
36163fi
36164rm -f conftest*
36165
36166fi
36167{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
36168$as_echo "$ac_cv_type_uid_t" >&6; }
36169if test $ac_cv_type_uid_t = no; then
36170
36171cat >>confdefs.h <<\_ACEOF
36172#define uid_t int
36173_ACEOF
36174
36175
36176cat >>confdefs.h <<\_ACEOF
36177#define gid_t int
36178_ACEOF
36179
36180fi
36181
36182{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
36183$as_echo_n "checking for mode_t... " >&6; }
36184if test "${ac_cv_type_mode_t+set}" = set; then
36185  $as_echo_n "(cached) " >&6
36186else
36187  ac_cv_type_mode_t=no
36188cat >conftest.$ac_ext <<_ACEOF
36189/* confdefs.h.  */
36190_ACEOF
36191cat confdefs.h >>conftest.$ac_ext
36192cat >>conftest.$ac_ext <<_ACEOF
36193/* end confdefs.h.  */
36194$ac_includes_default
36195int
36196main ()
36197{
36198if (sizeof (mode_t))
36199       return 0;
36200  ;
36201  return 0;
36202}
36203_ACEOF
36204rm -f conftest.$ac_objext
36205if { (ac_try="$ac_compile"
36206case "(($ac_try" in
36207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36208  *) ac_try_echo=$ac_try;;
36209esac
36210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36211$as_echo "$ac_try_echo") >&5
36212  (eval "$ac_compile") 2>conftest.er1
36213  ac_status=$?
36214  grep -v '^ *+' conftest.er1 >conftest.err
36215  rm -f conftest.er1
36216  cat conftest.err >&5
36217  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218  (exit $ac_status); } && {
36219	 test -z "$ac_c_werror_flag" ||
36220	 test ! -s conftest.err
36221       } && test -s conftest.$ac_objext; then
36222  cat >conftest.$ac_ext <<_ACEOF
36223/* confdefs.h.  */
36224_ACEOF
36225cat confdefs.h >>conftest.$ac_ext
36226cat >>conftest.$ac_ext <<_ACEOF
36227/* end confdefs.h.  */
36228$ac_includes_default
36229int
36230main ()
36231{
36232if (sizeof ((mode_t)))
36233	  return 0;
36234  ;
36235  return 0;
36236}
36237_ACEOF
36238rm -f conftest.$ac_objext
36239if { (ac_try="$ac_compile"
36240case "(($ac_try" in
36241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36242  *) ac_try_echo=$ac_try;;
36243esac
36244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36245$as_echo "$ac_try_echo") >&5
36246  (eval "$ac_compile") 2>conftest.er1
36247  ac_status=$?
36248  grep -v '^ *+' conftest.er1 >conftest.err
36249  rm -f conftest.er1
36250  cat conftest.err >&5
36251  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36252  (exit $ac_status); } && {
36253	 test -z "$ac_c_werror_flag" ||
36254	 test ! -s conftest.err
36255       } && test -s conftest.$ac_objext; then
36256  :
36257else
36258  $as_echo "$as_me: failed program was:" >&5
36259sed 's/^/| /' conftest.$ac_ext >&5
36260
36261	ac_cv_type_mode_t=yes
36262fi
36263
36264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36265else
36266  $as_echo "$as_me: failed program was:" >&5
36267sed 's/^/| /' conftest.$ac_ext >&5
36268
36269
36270fi
36271
36272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36273fi
36274{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36275$as_echo "$ac_cv_type_mode_t" >&6; }
36276if test "x$ac_cv_type_mode_t" = x""yes; then
36277  :
36278else
36279
36280cat >>confdefs.h <<_ACEOF
36281#define mode_t int
36282_ACEOF
36283
36284fi
36285
36286{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
36287$as_echo_n "checking for off_t... " >&6; }
36288if test "${ac_cv_type_off_t+set}" = set; then
36289  $as_echo_n "(cached) " >&6
36290else
36291  ac_cv_type_off_t=no
36292cat >conftest.$ac_ext <<_ACEOF
36293/* confdefs.h.  */
36294_ACEOF
36295cat confdefs.h >>conftest.$ac_ext
36296cat >>conftest.$ac_ext <<_ACEOF
36297/* end confdefs.h.  */
36298$ac_includes_default
36299int
36300main ()
36301{
36302if (sizeof (off_t))
36303       return 0;
36304  ;
36305  return 0;
36306}
36307_ACEOF
36308rm -f conftest.$ac_objext
36309if { (ac_try="$ac_compile"
36310case "(($ac_try" in
36311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36312  *) ac_try_echo=$ac_try;;
36313esac
36314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36315$as_echo "$ac_try_echo") >&5
36316  (eval "$ac_compile") 2>conftest.er1
36317  ac_status=$?
36318  grep -v '^ *+' conftest.er1 >conftest.err
36319  rm -f conftest.er1
36320  cat conftest.err >&5
36321  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322  (exit $ac_status); } && {
36323	 test -z "$ac_c_werror_flag" ||
36324	 test ! -s conftest.err
36325       } && test -s conftest.$ac_objext; then
36326  cat >conftest.$ac_ext <<_ACEOF
36327/* confdefs.h.  */
36328_ACEOF
36329cat confdefs.h >>conftest.$ac_ext
36330cat >>conftest.$ac_ext <<_ACEOF
36331/* end confdefs.h.  */
36332$ac_includes_default
36333int
36334main ()
36335{
36336if (sizeof ((off_t)))
36337	  return 0;
36338  ;
36339  return 0;
36340}
36341_ACEOF
36342rm -f conftest.$ac_objext
36343if { (ac_try="$ac_compile"
36344case "(($ac_try" in
36345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36346  *) ac_try_echo=$ac_try;;
36347esac
36348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36349$as_echo "$ac_try_echo") >&5
36350  (eval "$ac_compile") 2>conftest.er1
36351  ac_status=$?
36352  grep -v '^ *+' conftest.er1 >conftest.err
36353  rm -f conftest.er1
36354  cat conftest.err >&5
36355  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36356  (exit $ac_status); } && {
36357	 test -z "$ac_c_werror_flag" ||
36358	 test ! -s conftest.err
36359       } && test -s conftest.$ac_objext; then
36360  :
36361else
36362  $as_echo "$as_me: failed program was:" >&5
36363sed 's/^/| /' conftest.$ac_ext >&5
36364
36365	ac_cv_type_off_t=yes
36366fi
36367
36368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36369else
36370  $as_echo "$as_me: failed program was:" >&5
36371sed 's/^/| /' conftest.$ac_ext >&5
36372
36373
36374fi
36375
36376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36377fi
36378{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
36379$as_echo "$ac_cv_type_off_t" >&6; }
36380if test "x$ac_cv_type_off_t" = x""yes; then
36381  :
36382else
36383
36384cat >>confdefs.h <<_ACEOF
36385#define off_t long int
36386_ACEOF
36387
36388fi
36389
36390{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
36391$as_echo_n "checking for size_t... " >&6; }
36392if test "${ac_cv_type_size_t+set}" = set; then
36393  $as_echo_n "(cached) " >&6
36394else
36395  ac_cv_type_size_t=no
36396cat >conftest.$ac_ext <<_ACEOF
36397/* confdefs.h.  */
36398_ACEOF
36399cat confdefs.h >>conftest.$ac_ext
36400cat >>conftest.$ac_ext <<_ACEOF
36401/* end confdefs.h.  */
36402$ac_includes_default
36403int
36404main ()
36405{
36406if (sizeof (size_t))
36407       return 0;
36408  ;
36409  return 0;
36410}
36411_ACEOF
36412rm -f conftest.$ac_objext
36413if { (ac_try="$ac_compile"
36414case "(($ac_try" in
36415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36416  *) ac_try_echo=$ac_try;;
36417esac
36418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36419$as_echo "$ac_try_echo") >&5
36420  (eval "$ac_compile") 2>conftest.er1
36421  ac_status=$?
36422  grep -v '^ *+' conftest.er1 >conftest.err
36423  rm -f conftest.er1
36424  cat conftest.err >&5
36425  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426  (exit $ac_status); } && {
36427	 test -z "$ac_c_werror_flag" ||
36428	 test ! -s conftest.err
36429       } && test -s conftest.$ac_objext; then
36430  cat >conftest.$ac_ext <<_ACEOF
36431/* confdefs.h.  */
36432_ACEOF
36433cat confdefs.h >>conftest.$ac_ext
36434cat >>conftest.$ac_ext <<_ACEOF
36435/* end confdefs.h.  */
36436$ac_includes_default
36437int
36438main ()
36439{
36440if (sizeof ((size_t)))
36441	  return 0;
36442  ;
36443  return 0;
36444}
36445_ACEOF
36446rm -f conftest.$ac_objext
36447if { (ac_try="$ac_compile"
36448case "(($ac_try" in
36449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36450  *) ac_try_echo=$ac_try;;
36451esac
36452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36453$as_echo "$ac_try_echo") >&5
36454  (eval "$ac_compile") 2>conftest.er1
36455  ac_status=$?
36456  grep -v '^ *+' conftest.er1 >conftest.err
36457  rm -f conftest.er1
36458  cat conftest.err >&5
36459  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36460  (exit $ac_status); } && {
36461	 test -z "$ac_c_werror_flag" ||
36462	 test ! -s conftest.err
36463       } && test -s conftest.$ac_objext; then
36464  :
36465else
36466  $as_echo "$as_me: failed program was:" >&5
36467sed 's/^/| /' conftest.$ac_ext >&5
36468
36469	ac_cv_type_size_t=yes
36470fi
36471
36472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36473else
36474  $as_echo "$as_me: failed program was:" >&5
36475sed 's/^/| /' conftest.$ac_ext >&5
36476
36477
36478fi
36479
36480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36481fi
36482{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
36483$as_echo "$ac_cv_type_size_t" >&6; }
36484if test "x$ac_cv_type_size_t" = x""yes; then
36485  :
36486else
36487
36488cat >>confdefs.h <<_ACEOF
36489#define size_t unsigned int
36490_ACEOF
36491
36492fi
36493
36494{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
36495$as_echo_n "checking for pid_t... " >&6; }
36496if test "${ac_cv_type_pid_t+set}" = set; then
36497  $as_echo_n "(cached) " >&6
36498else
36499  ac_cv_type_pid_t=no
36500cat >conftest.$ac_ext <<_ACEOF
36501/* confdefs.h.  */
36502_ACEOF
36503cat confdefs.h >>conftest.$ac_ext
36504cat >>conftest.$ac_ext <<_ACEOF
36505/* end confdefs.h.  */
36506$ac_includes_default
36507int
36508main ()
36509{
36510if (sizeof (pid_t))
36511       return 0;
36512  ;
36513  return 0;
36514}
36515_ACEOF
36516rm -f conftest.$ac_objext
36517if { (ac_try="$ac_compile"
36518case "(($ac_try" in
36519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36520  *) ac_try_echo=$ac_try;;
36521esac
36522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36523$as_echo "$ac_try_echo") >&5
36524  (eval "$ac_compile") 2>conftest.er1
36525  ac_status=$?
36526  grep -v '^ *+' conftest.er1 >conftest.err
36527  rm -f conftest.er1
36528  cat conftest.err >&5
36529  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36530  (exit $ac_status); } && {
36531	 test -z "$ac_c_werror_flag" ||
36532	 test ! -s conftest.err
36533       } && test -s conftest.$ac_objext; then
36534  cat >conftest.$ac_ext <<_ACEOF
36535/* confdefs.h.  */
36536_ACEOF
36537cat confdefs.h >>conftest.$ac_ext
36538cat >>conftest.$ac_ext <<_ACEOF
36539/* end confdefs.h.  */
36540$ac_includes_default
36541int
36542main ()
36543{
36544if (sizeof ((pid_t)))
36545	  return 0;
36546  ;
36547  return 0;
36548}
36549_ACEOF
36550rm -f conftest.$ac_objext
36551if { (ac_try="$ac_compile"
36552case "(($ac_try" in
36553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36554  *) ac_try_echo=$ac_try;;
36555esac
36556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36557$as_echo "$ac_try_echo") >&5
36558  (eval "$ac_compile") 2>conftest.er1
36559  ac_status=$?
36560  grep -v '^ *+' conftest.er1 >conftest.err
36561  rm -f conftest.er1
36562  cat conftest.err >&5
36563  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36564  (exit $ac_status); } && {
36565	 test -z "$ac_c_werror_flag" ||
36566	 test ! -s conftest.err
36567       } && test -s conftest.$ac_objext; then
36568  :
36569else
36570  $as_echo "$as_me: failed program was:" >&5
36571sed 's/^/| /' conftest.$ac_ext >&5
36572
36573	ac_cv_type_pid_t=yes
36574fi
36575
36576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36577else
36578  $as_echo "$as_me: failed program was:" >&5
36579sed 's/^/| /' conftest.$ac_ext >&5
36580
36581
36582fi
36583
36584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36585fi
36586{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
36587$as_echo "$ac_cv_type_pid_t" >&6; }
36588if test "x$ac_cv_type_pid_t" = x""yes; then
36589  :
36590else
36591
36592cat >>confdefs.h <<_ACEOF
36593#define pid_t int
36594_ACEOF
36595
36596fi
36597
36598{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
36599$as_echo_n "checking for struct stat.st_rdev... " >&6; }
36600if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
36601  $as_echo_n "(cached) " >&6
36602else
36603  cat >conftest.$ac_ext <<_ACEOF
36604/* confdefs.h.  */
36605_ACEOF
36606cat confdefs.h >>conftest.$ac_ext
36607cat >>conftest.$ac_ext <<_ACEOF
36608/* end confdefs.h.  */
36609$ac_includes_default
36610int
36611main ()
36612{
36613static struct stat ac_aggr;
36614if (ac_aggr.st_rdev)
36615return 0;
36616  ;
36617  return 0;
36618}
36619_ACEOF
36620rm -f conftest.$ac_objext
36621if { (ac_try="$ac_compile"
36622case "(($ac_try" in
36623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36624  *) ac_try_echo=$ac_try;;
36625esac
36626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36627$as_echo "$ac_try_echo") >&5
36628  (eval "$ac_compile") 2>conftest.er1
36629  ac_status=$?
36630  grep -v '^ *+' conftest.er1 >conftest.err
36631  rm -f conftest.er1
36632  cat conftest.err >&5
36633  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36634  (exit $ac_status); } && {
36635	 test -z "$ac_c_werror_flag" ||
36636	 test ! -s conftest.err
36637       } && test -s conftest.$ac_objext; then
36638  ac_cv_member_struct_stat_st_rdev=yes
36639else
36640  $as_echo "$as_me: failed program was:" >&5
36641sed 's/^/| /' conftest.$ac_ext >&5
36642
36643	cat >conftest.$ac_ext <<_ACEOF
36644/* confdefs.h.  */
36645_ACEOF
36646cat confdefs.h >>conftest.$ac_ext
36647cat >>conftest.$ac_ext <<_ACEOF
36648/* end confdefs.h.  */
36649$ac_includes_default
36650int
36651main ()
36652{
36653static struct stat ac_aggr;
36654if (sizeof ac_aggr.st_rdev)
36655return 0;
36656  ;
36657  return 0;
36658}
36659_ACEOF
36660rm -f conftest.$ac_objext
36661if { (ac_try="$ac_compile"
36662case "(($ac_try" in
36663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36664  *) ac_try_echo=$ac_try;;
36665esac
36666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36667$as_echo "$ac_try_echo") >&5
36668  (eval "$ac_compile") 2>conftest.er1
36669  ac_status=$?
36670  grep -v '^ *+' conftest.er1 >conftest.err
36671  rm -f conftest.er1
36672  cat conftest.err >&5
36673  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36674  (exit $ac_status); } && {
36675	 test -z "$ac_c_werror_flag" ||
36676	 test ! -s conftest.err
36677       } && test -s conftest.$ac_objext; then
36678  ac_cv_member_struct_stat_st_rdev=yes
36679else
36680  $as_echo "$as_me: failed program was:" >&5
36681sed 's/^/| /' conftest.$ac_ext >&5
36682
36683	ac_cv_member_struct_stat_st_rdev=no
36684fi
36685
36686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36687fi
36688
36689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36690fi
36691{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
36692$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
36693if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
36694
36695cat >>confdefs.h <<_ACEOF
36696#define HAVE_STRUCT_STAT_ST_RDEV 1
36697_ACEOF
36698
36699
36700cat >>confdefs.h <<\_ACEOF
36701#define HAVE_ST_RDEV 1
36702_ACEOF
36703
36704fi
36705
36706
36707{ $as_echo "$as_me:$LINENO: checking for d_off in dirent" >&5
36708$as_echo_n "checking for d_off in dirent... " >&6; }
36709if test "${ac_cv_dirent_d_off+set}" = set; then
36710  $as_echo_n "(cached) " >&6
36711else
36712  cat >conftest.$ac_ext <<_ACEOF
36713/* confdefs.h.  */
36714_ACEOF
36715cat confdefs.h >>conftest.$ac_ext
36716cat >>conftest.$ac_ext <<_ACEOF
36717/* end confdefs.h.  */
36718
36719#include <unistd.h>
36720#include <sys/types.h>
36721#include <dirent.h>
36722int
36723main ()
36724{
36725struct dirent d; d.d_off;
36726  ;
36727  return 0;
36728}
36729_ACEOF
36730rm -f conftest.$ac_objext
36731if { (ac_try="$ac_compile"
36732case "(($ac_try" in
36733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36734  *) ac_try_echo=$ac_try;;
36735esac
36736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36737$as_echo "$ac_try_echo") >&5
36738  (eval "$ac_compile") 2>conftest.er1
36739  ac_status=$?
36740  grep -v '^ *+' conftest.er1 >conftest.err
36741  rm -f conftest.er1
36742  cat conftest.err >&5
36743  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36744  (exit $ac_status); } && {
36745	 test -z "$ac_c_werror_flag" ||
36746	 test ! -s conftest.err
36747       } && test -s conftest.$ac_objext; then
36748  ac_cv_dirent_d_off=yes
36749else
36750  $as_echo "$as_me: failed program was:" >&5
36751sed 's/^/| /' conftest.$ac_ext >&5
36752
36753	ac_cv_dirent_d_off=no
36754fi
36755
36756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36757fi
36758{ $as_echo "$as_me:$LINENO: result: $ac_cv_dirent_d_off" >&5
36759$as_echo "$ac_cv_dirent_d_off" >&6; }
36760if test $ac_cv_dirent_d_off = yes; then
36761
36762cat >>confdefs.h <<\_ACEOF
36763#define HAVE_DIRENT_D_OFF 1
36764_ACEOF
36765
36766fi
36767
36768{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
36769$as_echo_n "checking for ssize_t... " >&6; }
36770if test "${ac_cv_type_ssize_t+set}" = set; then
36771  $as_echo_n "(cached) " >&6
36772else
36773  ac_cv_type_ssize_t=no
36774cat >conftest.$ac_ext <<_ACEOF
36775/* confdefs.h.  */
36776_ACEOF
36777cat confdefs.h >>conftest.$ac_ext
36778cat >>conftest.$ac_ext <<_ACEOF
36779/* end confdefs.h.  */
36780$ac_includes_default
36781int
36782main ()
36783{
36784if (sizeof (ssize_t))
36785       return 0;
36786  ;
36787  return 0;
36788}
36789_ACEOF
36790rm -f conftest.$ac_objext
36791if { (ac_try="$ac_compile"
36792case "(($ac_try" in
36793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36794  *) ac_try_echo=$ac_try;;
36795esac
36796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36797$as_echo "$ac_try_echo") >&5
36798  (eval "$ac_compile") 2>conftest.er1
36799  ac_status=$?
36800  grep -v '^ *+' conftest.er1 >conftest.err
36801  rm -f conftest.er1
36802  cat conftest.err >&5
36803  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36804  (exit $ac_status); } && {
36805	 test -z "$ac_c_werror_flag" ||
36806	 test ! -s conftest.err
36807       } && test -s conftest.$ac_objext; then
36808  cat >conftest.$ac_ext <<_ACEOF
36809/* confdefs.h.  */
36810_ACEOF
36811cat confdefs.h >>conftest.$ac_ext
36812cat >>conftest.$ac_ext <<_ACEOF
36813/* end confdefs.h.  */
36814$ac_includes_default
36815int
36816main ()
36817{
36818if (sizeof ((ssize_t)))
36819	  return 0;
36820  ;
36821  return 0;
36822}
36823_ACEOF
36824rm -f conftest.$ac_objext
36825if { (ac_try="$ac_compile"
36826case "(($ac_try" in
36827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36828  *) ac_try_echo=$ac_try;;
36829esac
36830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36831$as_echo "$ac_try_echo") >&5
36832  (eval "$ac_compile") 2>conftest.er1
36833  ac_status=$?
36834  grep -v '^ *+' conftest.er1 >conftest.err
36835  rm -f conftest.er1
36836  cat conftest.err >&5
36837  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36838  (exit $ac_status); } && {
36839	 test -z "$ac_c_werror_flag" ||
36840	 test ! -s conftest.err
36841       } && test -s conftest.$ac_objext; then
36842  :
36843else
36844  $as_echo "$as_me: failed program was:" >&5
36845sed 's/^/| /' conftest.$ac_ext >&5
36846
36847	ac_cv_type_ssize_t=yes
36848fi
36849
36850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36851else
36852  $as_echo "$as_me: failed program was:" >&5
36853sed 's/^/| /' conftest.$ac_ext >&5
36854
36855
36856fi
36857
36858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36859fi
36860{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
36861$as_echo "$ac_cv_type_ssize_t" >&6; }
36862if test "x$ac_cv_type_ssize_t" = x""yes; then
36863  :
36864else
36865
36866cat >>confdefs.h <<_ACEOF
36867#define ssize_t int
36868_ACEOF
36869
36870fi
36871
36872{ $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
36873$as_echo_n "checking for wchar_t... " >&6; }
36874if test "${ac_cv_type_wchar_t+set}" = set; then
36875  $as_echo_n "(cached) " >&6
36876else
36877  ac_cv_type_wchar_t=no
36878cat >conftest.$ac_ext <<_ACEOF
36879/* confdefs.h.  */
36880_ACEOF
36881cat confdefs.h >>conftest.$ac_ext
36882cat >>conftest.$ac_ext <<_ACEOF
36883/* end confdefs.h.  */
36884$ac_includes_default
36885int
36886main ()
36887{
36888if (sizeof (wchar_t))
36889       return 0;
36890  ;
36891  return 0;
36892}
36893_ACEOF
36894rm -f conftest.$ac_objext
36895if { (ac_try="$ac_compile"
36896case "(($ac_try" in
36897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36898  *) ac_try_echo=$ac_try;;
36899esac
36900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36901$as_echo "$ac_try_echo") >&5
36902  (eval "$ac_compile") 2>conftest.er1
36903  ac_status=$?
36904  grep -v '^ *+' conftest.er1 >conftest.err
36905  rm -f conftest.er1
36906  cat conftest.err >&5
36907  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36908  (exit $ac_status); } && {
36909	 test -z "$ac_c_werror_flag" ||
36910	 test ! -s conftest.err
36911       } && test -s conftest.$ac_objext; then
36912  cat >conftest.$ac_ext <<_ACEOF
36913/* confdefs.h.  */
36914_ACEOF
36915cat confdefs.h >>conftest.$ac_ext
36916cat >>conftest.$ac_ext <<_ACEOF
36917/* end confdefs.h.  */
36918$ac_includes_default
36919int
36920main ()
36921{
36922if (sizeof ((wchar_t)))
36923	  return 0;
36924  ;
36925  return 0;
36926}
36927_ACEOF
36928rm -f conftest.$ac_objext
36929if { (ac_try="$ac_compile"
36930case "(($ac_try" in
36931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36932  *) ac_try_echo=$ac_try;;
36933esac
36934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36935$as_echo "$ac_try_echo") >&5
36936  (eval "$ac_compile") 2>conftest.er1
36937  ac_status=$?
36938  grep -v '^ *+' conftest.er1 >conftest.err
36939  rm -f conftest.er1
36940  cat conftest.err >&5
36941  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36942  (exit $ac_status); } && {
36943	 test -z "$ac_c_werror_flag" ||
36944	 test ! -s conftest.err
36945       } && test -s conftest.$ac_objext; then
36946  :
36947else
36948  $as_echo "$as_me: failed program was:" >&5
36949sed 's/^/| /' conftest.$ac_ext >&5
36950
36951	ac_cv_type_wchar_t=yes
36952fi
36953
36954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36955else
36956  $as_echo "$as_me: failed program was:" >&5
36957sed 's/^/| /' conftest.$ac_ext >&5
36958
36959
36960fi
36961
36962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36963fi
36964{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
36965$as_echo "$ac_cv_type_wchar_t" >&6; }
36966if test "x$ac_cv_type_wchar_t" = x""yes; then
36967  :
36968else
36969
36970cat >>confdefs.h <<_ACEOF
36971#define wchar_t unsigned short
36972_ACEOF
36973
36974fi
36975
36976
36977############################################
36978# for cups support we need libcups, and a handful of header files
36979
36980# Check whether --enable-cups was given.
36981if test "${enable_cups+set}" = set; then
36982  enableval=$enable_cups;
36983fi
36984
36985
36986if test x$enable_cups != xno; then
36987	# Extract the first word of "cups-config", so it can be a program name with args.
36988set dummy cups-config; ac_word=$2
36989{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36990$as_echo_n "checking for $ac_word... " >&6; }
36991if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then
36992  $as_echo_n "(cached) " >&6
36993else
36994  case $CUPS_CONFIG in
36995  [\\/]* | ?:[\\/]*)
36996  ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
36997  ;;
36998  *)
36999  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37000for as_dir in $PATH
37001do
37002  IFS=$as_save_IFS
37003  test -z "$as_dir" && as_dir=.
37004  for ac_exec_ext in '' $ac_executable_extensions; do
37005  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37006    ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37007    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37008    break 2
37009  fi
37010done
37011done
37012IFS=$as_save_IFS
37013
37014  ;;
37015esac
37016fi
37017CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
37018if test -n "$CUPS_CONFIG"; then
37019  { $as_echo "$as_me:$LINENO: result: $CUPS_CONFIG" >&5
37020$as_echo "$CUPS_CONFIG" >&6; }
37021else
37022  { $as_echo "$as_me:$LINENO: result: no" >&5
37023$as_echo "no" >&6; }
37024fi
37025
37026
37027
37028        if test "x$CUPS_CONFIG" != x; then
37029
37030		ac_save_LDFLAGS=$LDFLAGS
37031		ac_save_PRINT_LIBS=$PRINT_LIBS
37032
37033
37034for ac_header in cups/cups.h cups/language.h
37035do
37036as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37037if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37038  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
37039$as_echo_n "checking for $ac_header... " >&6; }
37040if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37041  $as_echo_n "(cached) " >&6
37042fi
37043ac_res=`eval 'as_val=${'$as_ac_Header'}
37044		 $as_echo "$as_val"'`
37045	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37046$as_echo "$ac_res" >&6; }
37047else
37048  # Is the header compilable?
37049{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
37050$as_echo_n "checking $ac_header usability... " >&6; }
37051cat >conftest.$ac_ext <<_ACEOF
37052/* confdefs.h.  */
37053_ACEOF
37054cat confdefs.h >>conftest.$ac_ext
37055cat >>conftest.$ac_ext <<_ACEOF
37056/* end confdefs.h.  */
37057$ac_includes_default
37058#include <$ac_header>
37059_ACEOF
37060rm -f conftest.$ac_objext
37061if { (ac_try="$ac_compile"
37062case "(($ac_try" in
37063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37064  *) ac_try_echo=$ac_try;;
37065esac
37066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37067$as_echo "$ac_try_echo") >&5
37068  (eval "$ac_compile") 2>conftest.er1
37069  ac_status=$?
37070  grep -v '^ *+' conftest.er1 >conftest.err
37071  rm -f conftest.er1
37072  cat conftest.err >&5
37073  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074  (exit $ac_status); } && {
37075	 test -z "$ac_c_werror_flag" ||
37076	 test ! -s conftest.err
37077       } && test -s conftest.$ac_objext; then
37078  ac_header_compiler=yes
37079else
37080  $as_echo "$as_me: failed program was:" >&5
37081sed 's/^/| /' conftest.$ac_ext >&5
37082
37083	ac_header_compiler=no
37084fi
37085
37086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37087{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37088$as_echo "$ac_header_compiler" >&6; }
37089
37090# Is the header present?
37091{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
37092$as_echo_n "checking $ac_header presence... " >&6; }
37093cat >conftest.$ac_ext <<_ACEOF
37094/* confdefs.h.  */
37095_ACEOF
37096cat confdefs.h >>conftest.$ac_ext
37097cat >>conftest.$ac_ext <<_ACEOF
37098/* end confdefs.h.  */
37099#include <$ac_header>
37100_ACEOF
37101if { (ac_try="$ac_cpp conftest.$ac_ext"
37102case "(($ac_try" in
37103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37104  *) ac_try_echo=$ac_try;;
37105esac
37106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37107$as_echo "$ac_try_echo") >&5
37108  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37109  ac_status=$?
37110  grep -v '^ *+' conftest.er1 >conftest.err
37111  rm -f conftest.er1
37112  cat conftest.err >&5
37113  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37114  (exit $ac_status); } >/dev/null && {
37115	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37116	 test ! -s conftest.err
37117       }; then
37118  ac_header_preproc=yes
37119else
37120  $as_echo "$as_me: failed program was:" >&5
37121sed 's/^/| /' conftest.$ac_ext >&5
37122
37123  ac_header_preproc=no
37124fi
37125
37126rm -f conftest.err conftest.$ac_ext
37127{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37128$as_echo "$ac_header_preproc" >&6; }
37129
37130# So?  What about this header?
37131case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37132  yes:no: )
37133    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37134$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37135    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37136$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37137    ac_header_preproc=yes
37138    ;;
37139  no:yes:* )
37140    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37141$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37142    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37143$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37144    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37145$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37146    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37147$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37148    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37149$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37150    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37151$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37152    ( cat <<\_ASBOX
37153## ---------------------------------------- ##
37154## Report this to samba-technical@samba.org ##
37155## ---------------------------------------- ##
37156_ASBOX
37157     ) | sed "s/^/$as_me: WARNING:     /" >&2
37158    ;;
37159esac
37160{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
37161$as_echo_n "checking for $ac_header... " >&6; }
37162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37163  $as_echo_n "(cached) " >&6
37164else
37165  eval "$as_ac_Header=\$ac_header_preproc"
37166fi
37167ac_res=`eval 'as_val=${'$as_ac_Header'}
37168		 $as_echo "$as_val"'`
37169	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37170$as_echo "$ac_res" >&6; }
37171
37172fi
37173as_val=`eval 'as_val=${'$as_ac_Header'}
37174		 $as_echo "$as_val"'`
37175   if test "x$as_val" = x""yes; then
37176  cat >>confdefs.h <<_ACEOF
37177#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37178_ACEOF
37179
37180fi
37181
37182done
37183
37184
37185		if test x"$ac_cv_header_cups_cups_h" = xyes -a \
37186		        x"$ac_cv_header_cups_language_h" = xyes; then
37187			# try linking with -lcups alone first. That should work unless libcups is
37188			# underlinked. With cups-config --libs we pull in unwanted and unneeded
37189			# dendencies including thread libraries - use cups-config only if really
37190			# required.
37191
37192
37193
37194ac_check_lib_ext_save_LIBS=$LIBS
37195LIBS="-lcups $ac_save_PRINT_LIBS   $LIBS"
37196
37197
37198
37199
37200        { $as_echo "$as_me:$LINENO: checking for httpConnect in -lcups" >&5
37201$as_echo_n "checking for httpConnect in -lcups... " >&6; }
37202if test "${ac_cv_lib_ext_cups_httpConnect+set}" = set; then
37203  $as_echo_n "(cached) " >&6
37204else
37205  cat >conftest.$ac_ext <<_ACEOF
37206/* confdefs.h.  */
37207_ACEOF
37208cat confdefs.h >>conftest.$ac_ext
37209cat >>conftest.$ac_ext <<_ACEOF
37210/* end confdefs.h.  */
37211
37212/* Override any GCC internal prototype to avoid an error.
37213   Use char because int might match the return type of a GCC
37214   builtin and then its argument prototype would still apply.  */
37215#ifdef __cplusplus
37216extern "C"
37217#endif
37218char httpConnect ();
37219int
37220main ()
37221{
37222return httpConnect ();
37223  ;
37224  return 0;
37225}
37226_ACEOF
37227rm -f conftest.$ac_objext conftest$ac_exeext
37228if { (ac_try="$ac_link"
37229case "(($ac_try" in
37230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37231  *) ac_try_echo=$ac_try;;
37232esac
37233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37234$as_echo "$ac_try_echo") >&5
37235  (eval "$ac_link") 2>conftest.er1
37236  ac_status=$?
37237  grep -v '^ *+' conftest.er1 >conftest.err
37238  rm -f conftest.er1
37239  cat conftest.err >&5
37240  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241  (exit $ac_status); } && {
37242	 test -z "$ac_c_werror_flag" ||
37243	 test ! -s conftest.err
37244       } && test -s conftest$ac_exeext && {
37245	 test "$cross_compiling" = yes ||
37246	 $as_test_x conftest$ac_exeext
37247       }; then
37248  ac_cv_lib_ext_cups_httpConnect=yes;
37249		  ac_cv_lib_ext_cups=yes
37250else
37251  $as_echo "$as_me: failed program was:" >&5
37252sed 's/^/| /' conftest.$ac_ext >&5
37253
37254	ac_cv_lib_ext_cups_httpConnect=no;
37255		  ac_cv_lib_ext_cups=no
37256fi
37257
37258rm -rf conftest.dSYM
37259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37260      conftest$ac_exeext conftest.$ac_ext
37261
37262fi
37263{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_cups_httpConnect" >&5
37264$as_echo "$ac_cv_lib_ext_cups_httpConnect" >&6; }
37265    if test $ac_cv_lib_ext_cups_httpConnect = yes; then
37266  cat >>confdefs.h <<_ACEOF
37267#define HAVE_HTTPCONNECT 1
37268_ACEOF
37269
37270fi
37271
37272LIBS=$ac_check_lib_ext_save_LIBS
37273
37274if test $ac_cv_lib_ext_cups = yes; then
37275  PRINT_LIBS"$ac_save_PRINT_LIBS -lcups"
37276
37277
37278else
37279  { $as_echo "$as_me:$LINENO: WARNING: your cups library doesn't link with -lcups alone, it might be underlinked." >&5
37280$as_echo "$as_me: WARNING: your cups library doesn't link with -lcups alone, it might be underlinked." >&2;} ;
37281				 PRINT_LIBS="$ac_save_PRINT_LIBS `$CUPS_CONFIG --libs`"
37282fi
37283
37284
37285
37286cat >>confdefs.h <<\_ACEOF
37287#define HAVE_CUPS 1
37288_ACEOF
37289
37290			samba_cv_HAVE_CUPS=yes
37291
37292
37293
37294ac_check_lib_ext_save_LIBS=$LIBS
37295LIBS="-lcups $PRINT_LIBS  $LIBS"
37296
37297
37298
37299
37300        { $as_echo "$as_me:$LINENO: checking for httpConnectEncrypt in -lcups" >&5
37301$as_echo_n "checking for httpConnectEncrypt in -lcups... " >&6; }
37302if test "${ac_cv_lib_ext_cups_httpConnectEncrypt+set}" = set; then
37303  $as_echo_n "(cached) " >&6
37304else
37305  cat >conftest.$ac_ext <<_ACEOF
37306/* confdefs.h.  */
37307_ACEOF
37308cat confdefs.h >>conftest.$ac_ext
37309cat >>conftest.$ac_ext <<_ACEOF
37310/* end confdefs.h.  */
37311
37312/* Override any GCC internal prototype to avoid an error.
37313   Use char because int might match the return type of a GCC
37314   builtin and then its argument prototype would still apply.  */
37315#ifdef __cplusplus
37316extern "C"
37317#endif
37318char httpConnectEncrypt ();
37319int
37320main ()
37321{
37322return httpConnectEncrypt ();
37323  ;
37324  return 0;
37325}
37326_ACEOF
37327rm -f conftest.$ac_objext conftest$ac_exeext
37328if { (ac_try="$ac_link"
37329case "(($ac_try" in
37330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37331  *) ac_try_echo=$ac_try;;
37332esac
37333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37334$as_echo "$ac_try_echo") >&5
37335  (eval "$ac_link") 2>conftest.er1
37336  ac_status=$?
37337  grep -v '^ *+' conftest.er1 >conftest.err
37338  rm -f conftest.er1
37339  cat conftest.err >&5
37340  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37341  (exit $ac_status); } && {
37342	 test -z "$ac_c_werror_flag" ||
37343	 test ! -s conftest.err
37344       } && test -s conftest$ac_exeext && {
37345	 test "$cross_compiling" = yes ||
37346	 $as_test_x conftest$ac_exeext
37347       }; then
37348  ac_cv_lib_ext_cups_httpConnectEncrypt=yes;
37349		  ac_cv_lib_ext_cups=yes
37350else
37351  $as_echo "$as_me: failed program was:" >&5
37352sed 's/^/| /' conftest.$ac_ext >&5
37353
37354	ac_cv_lib_ext_cups_httpConnectEncrypt=no;
37355		  ac_cv_lib_ext_cups=no
37356fi
37357
37358rm -rf conftest.dSYM
37359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37360      conftest$ac_exeext conftest.$ac_ext
37361
37362fi
37363{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_cups_httpConnectEncrypt" >&5
37364$as_echo "$ac_cv_lib_ext_cups_httpConnectEncrypt" >&6; }
37365    if test $ac_cv_lib_ext_cups_httpConnectEncrypt = yes; then
37366  cat >>confdefs.h <<_ACEOF
37367#define HAVE_HTTPCONNECTENCRYPT 1
37368_ACEOF
37369
37370fi
37371
37372LIBS=$ac_check_lib_ext_save_LIBS
37373
37374if test $ac_cv_lib_ext_cups = yes; then
37375  cat >>confdefs.h <<_ACEOF
37376#define HAVE_LIBCUPS 1
37377_ACEOF
37378
37379		case "$PRINT_LIBS" in
37380		    *-lcups*)
37381			;;
37382		    *)
37383			PRINT_LIBS="-lcups $PRINT_LIBS"
37384			;;
37385		esac
37386
37387
37388fi
37389
37390		else
37391			{ $as_echo "$as_me:$LINENO: WARNING: cups-config around but cups-devel not installed" >&5
37392$as_echo "$as_me: WARNING: cups-config around but cups-devel not installed" >&2;}
37393			CFLAGS=$ac_save_CFLAGS
37394			LDFLAGS=$ac_save_LDFLAGS
37395			PRINT_LIBS=$ac_save_PRINT_LIBS
37396		fi
37397
37398	elif test x"$enable_cups" = x"yes"; then
37399		{ { $as_echo "$as_me:$LINENO: error: Cups support required but cups-config not located.  Make sure cups-devel related files are installed." >&5
37400$as_echo "$as_me: error: Cups support required but cups-config not located.  Make sure cups-devel related files are installed." >&2;}
37401   { (exit 1); exit 1; }; }
37402        fi
37403fi
37404
37405# Check whether --enable-iprint was given.
37406if test "${enable_iprint+set}" = set; then
37407  enableval=$enable_iprint;
37408fi
37409
37410
37411if test x$enable_iprint != xno; then
37412	if test x"$samba_cv_HAVE_CUPS" = xyes; then
37413
37414cat >>confdefs.h <<\_ACEOF
37415#define HAVE_IPRINT 1
37416_ACEOF
37417
37418	elif test x"$enable_iprint" = x"yes"; then
37419		{ { $as_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
37420$as_echo "$as_me: error: iPrint support required but cups not enabled.  Make sure cups-devel related files are installed and that cups is enabled." >&2;}
37421   { (exit 1); exit 1; }; }
37422        fi
37423fi
37424
37425############################################
37426# check if the compiler will optimize out function calls
37427{ $as_echo "$as_me:$LINENO: checking if the compiler will optimize out function calls" >&5
37428$as_echo_n "checking if the compiler will optimize out function calls... " >&6; }
37429if test "${samba_cv_optimize_out_funcation_calls+set}" = set; then
37430  $as_echo_n "(cached) " >&6
37431else
37432
37433    cat >conftest.$ac_ext <<_ACEOF
37434/* confdefs.h.  */
37435_ACEOF
37436cat confdefs.h >>conftest.$ac_ext
37437cat >>conftest.$ac_ext <<_ACEOF
37438/* end confdefs.h.  */
37439
37440#include <stdio.h>
37441int
37442main ()
37443{
37444
37445		if (0) {
37446		   this_function_does_not_exist();
37447		} else {
37448		  return 1;
37449		}
37450
37451
37452  ;
37453  return 0;
37454}
37455_ACEOF
37456rm -f conftest.$ac_objext conftest$ac_exeext
37457if { (ac_try="$ac_link"
37458case "(($ac_try" in
37459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37460  *) ac_try_echo=$ac_try;;
37461esac
37462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37463$as_echo "$ac_try_echo") >&5
37464  (eval "$ac_link") 2>conftest.er1
37465  ac_status=$?
37466  grep -v '^ *+' conftest.er1 >conftest.err
37467  rm -f conftest.er1
37468  cat conftest.err >&5
37469  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37470  (exit $ac_status); } && {
37471	 test -z "$ac_c_werror_flag" ||
37472	 test ! -s conftest.err
37473       } && test -s conftest$ac_exeext && {
37474	 test "$cross_compiling" = yes ||
37475	 $as_test_x conftest$ac_exeext
37476       }; then
37477  samba_cv_optimize_out_funcation_calls=yes
37478else
37479  $as_echo "$as_me: failed program was:" >&5
37480sed 's/^/| /' conftest.$ac_ext >&5
37481
37482	samba_cv_optimize_out_funcation_calls=no
37483fi
37484
37485rm -rf conftest.dSYM
37486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37487      conftest$ac_exeext conftest.$ac_ext
37488fi
37489{ $as_echo "$as_me:$LINENO: result: $samba_cv_optimize_out_funcation_calls" >&5
37490$as_echo "$samba_cv_optimize_out_funcation_calls" >&6; }
37491if test x"$samba_cv_optimize_out_funcation_calls" = x"yes"; then
37492
37493cat >>confdefs.h <<\_ACEOF
37494#define HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS 1
37495_ACEOF
37496
37497fi
37498
37499#############################################
37500# check for fd passing struct via msg_control
37501{ $as_echo "$as_me:$LINENO: checking for fd passing via msg_control" >&5
37502$as_echo_n "checking for fd passing via msg_control... " >&6; }
37503if test "${samba_cv_msghdr_msg_control+set}" = set; then
37504  $as_echo_n "(cached) " >&6
37505else
37506
37507    cat >conftest.$ac_ext <<_ACEOF
37508/* confdefs.h.  */
37509_ACEOF
37510cat confdefs.h >>conftest.$ac_ext
37511cat >>conftest.$ac_ext <<_ACEOF
37512/* end confdefs.h.  */
37513
37514#include <sys/types.h>
37515#include <stdlib.h>
37516#include <stddef.h>
37517#include <sys/socket.h>
37518#include <sys/un.h>
37519int
37520main ()
37521{
37522
37523	struct msghdr msg;
37524	union {
37525	      struct cmsghdr cm;
37526	      char control[CMSG_SPACE(sizeof(int))];
37527	} control_un;
37528	msg.msg_control = control_un.control;
37529	msg.msg_controllen = sizeof(control_un.control);
37530
37531  ;
37532  return 0;
37533}
37534_ACEOF
37535rm -f conftest.$ac_objext
37536if { (ac_try="$ac_compile"
37537case "(($ac_try" in
37538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37539  *) ac_try_echo=$ac_try;;
37540esac
37541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37542$as_echo "$ac_try_echo") >&5
37543  (eval "$ac_compile") 2>conftest.er1
37544  ac_status=$?
37545  grep -v '^ *+' conftest.er1 >conftest.err
37546  rm -f conftest.er1
37547  cat conftest.err >&5
37548  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37549  (exit $ac_status); } && {
37550	 test -z "$ac_c_werror_flag" ||
37551	 test ! -s conftest.err
37552       } && test -s conftest.$ac_objext; then
37553  samba_cv_msghdr_msg_control=yes
37554else
37555  $as_echo "$as_me: failed program was:" >&5
37556sed 's/^/| /' conftest.$ac_ext >&5
37557
37558	samba_cv_msghdr_msg_control=no
37559fi
37560
37561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37562fi
37563{ $as_echo "$as_me:$LINENO: result: $samba_cv_msghdr_msg_control" >&5
37564$as_echo "$samba_cv_msghdr_msg_control" >&6; }
37565if test x"$samba_cv_msghdr_msg_control" = x"yes"; then
37566
37567cat >>confdefs.h <<\_ACEOF
37568#define HAVE_MSGHDR_MSG_CONTROL 1
37569_ACEOF
37570
37571fi
37572
37573#############################################
37574# check for fd passing struct via msg_acctrights
37575{ $as_echo "$as_me:$LINENO: checking for fd passing via msg_acctrights" >&5
37576$as_echo_n "checking for fd passing via msg_acctrights... " >&6; }
37577if test "${samba_cv_msghdr_msg_acctrights+set}" = set; then
37578  $as_echo_n "(cached) " >&6
37579else
37580
37581    cat >conftest.$ac_ext <<_ACEOF
37582/* confdefs.h.  */
37583_ACEOF
37584cat confdefs.h >>conftest.$ac_ext
37585cat >>conftest.$ac_ext <<_ACEOF
37586/* end confdefs.h.  */
37587
37588#include <sys/types.h>
37589#include <stdlib.h>
37590#include <stddef.h>
37591#include <sys/socket.h>
37592#include <sys/un.h>
37593int
37594main ()
37595{
37596
37597	struct msghdr msg;
37598	int fd;
37599	msg.msg_acctrights = (caddr_t) &fd;
37600	msg.msg_acctrightslen = sizeof(fd);
37601
37602  ;
37603  return 0;
37604}
37605_ACEOF
37606rm -f conftest.$ac_objext
37607if { (ac_try="$ac_compile"
37608case "(($ac_try" in
37609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37610  *) ac_try_echo=$ac_try;;
37611esac
37612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37613$as_echo "$ac_try_echo") >&5
37614  (eval "$ac_compile") 2>conftest.er1
37615  ac_status=$?
37616  grep -v '^ *+' conftest.er1 >conftest.err
37617  rm -f conftest.er1
37618  cat conftest.err >&5
37619  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37620  (exit $ac_status); } && {
37621	 test -z "$ac_c_werror_flag" ||
37622	 test ! -s conftest.err
37623       } && test -s conftest.$ac_objext; then
37624  samba_cv_msghdr_msg_acctrights=yes
37625else
37626  $as_echo "$as_me: failed program was:" >&5
37627sed 's/^/| /' conftest.$ac_ext >&5
37628
37629	samba_cv_msghdr_msg_acctrights=no
37630fi
37631
37632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37633fi
37634{ $as_echo "$as_me:$LINENO: result: $samba_cv_msghdr_msg_acctrights" >&5
37635$as_echo "$samba_cv_msghdr_msg_acctrights" >&6; }
37636if test x"$samba_cv_msghdr_msg_acctrights" = x"yes"; then
37637
37638cat >>confdefs.h <<\_ACEOF
37639#define HAVE_MSGHDR_MSG_ACCTRIGHTS 1
37640_ACEOF
37641
37642fi
37643
37644
37645for ac_func in dirfd
37646do
37647as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37648{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37649$as_echo_n "checking for $ac_func... " >&6; }
37650if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37651  $as_echo_n "(cached) " >&6
37652else
37653  cat >conftest.$ac_ext <<_ACEOF
37654/* confdefs.h.  */
37655_ACEOF
37656cat confdefs.h >>conftest.$ac_ext
37657cat >>conftest.$ac_ext <<_ACEOF
37658/* end confdefs.h.  */
37659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37660   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37661#define $ac_func innocuous_$ac_func
37662
37663/* System header to define __stub macros and hopefully few prototypes,
37664    which can conflict with char $ac_func (); below.
37665    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37666    <limits.h> exists even on freestanding compilers.  */
37667
37668#ifdef __STDC__
37669# include <limits.h>
37670#else
37671# include <assert.h>
37672#endif
37673
37674#undef $ac_func
37675
37676/* Override any GCC internal prototype to avoid an error.
37677   Use char because int might match the return type of a GCC
37678   builtin and then its argument prototype would still apply.  */
37679#ifdef __cplusplus
37680extern "C"
37681#endif
37682char $ac_func ();
37683/* The GNU C library defines this for functions which it implements
37684    to always fail with ENOSYS.  Some functions are actually named
37685    something starting with __ and the normal name is an alias.  */
37686#if defined __stub_$ac_func || defined __stub___$ac_func
37687choke me
37688#endif
37689
37690int
37691main ()
37692{
37693return $ac_func ();
37694  ;
37695  return 0;
37696}
37697_ACEOF
37698rm -f conftest.$ac_objext conftest$ac_exeext
37699if { (ac_try="$ac_link"
37700case "(($ac_try" in
37701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37702  *) ac_try_echo=$ac_try;;
37703esac
37704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37705$as_echo "$ac_try_echo") >&5
37706  (eval "$ac_link") 2>conftest.er1
37707  ac_status=$?
37708  grep -v '^ *+' conftest.er1 >conftest.err
37709  rm -f conftest.er1
37710  cat conftest.err >&5
37711  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37712  (exit $ac_status); } && {
37713	 test -z "$ac_c_werror_flag" ||
37714	 test ! -s conftest.err
37715       } && test -s conftest$ac_exeext && {
37716	 test "$cross_compiling" = yes ||
37717	 $as_test_x conftest$ac_exeext
37718       }; then
37719  eval "$as_ac_var=yes"
37720else
37721  $as_echo "$as_me: failed program was:" >&5
37722sed 's/^/| /' conftest.$ac_ext >&5
37723
37724	eval "$as_ac_var=no"
37725fi
37726
37727rm -rf conftest.dSYM
37728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37729      conftest$ac_exeext conftest.$ac_ext
37730fi
37731ac_res=`eval 'as_val=${'$as_ac_var'}
37732		 $as_echo "$as_val"'`
37733	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37734$as_echo "$ac_res" >&6; }
37735as_val=`eval 'as_val=${'$as_ac_var'}
37736		 $as_echo "$as_val"'`
37737   if test "x$as_val" = x""yes; then
37738  cat >>confdefs.h <<_ACEOF
37739#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37740_ACEOF
37741
37742fi
37743done
37744
37745if test x"$ac_cv_func_dirfd" = x"yes"; then
37746	default_shared_modules="$default_shared_modules vfs_syncops vfs_dirsort"
37747fi
37748
37749{ $as_echo "$as_me:$LINENO: checking for struct sigevent type" >&5
37750$as_echo_n "checking for struct sigevent type... " >&6; }
37751if test "${samba_cv_struct_sigevent+set}" = set; then
37752  $as_echo_n "(cached) " >&6
37753else
37754
37755    cat >conftest.$ac_ext <<_ACEOF
37756/* confdefs.h.  */
37757_ACEOF
37758cat confdefs.h >>conftest.$ac_ext
37759cat >>conftest.$ac_ext <<_ACEOF
37760/* end confdefs.h.  */
37761
37762#include <sys/types.h>
37763#if STDC_HEADERS
37764#include <stdlib.h>
37765#include <stddef.h>
37766#endif
37767#include <signal.h>
37768int
37769main ()
37770{
37771struct sigevent s;
37772  ;
37773  return 0;
37774}
37775_ACEOF
37776rm -f conftest.$ac_objext
37777if { (ac_try="$ac_compile"
37778case "(($ac_try" in
37779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37780  *) ac_try_echo=$ac_try;;
37781esac
37782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37783$as_echo "$ac_try_echo") >&5
37784  (eval "$ac_compile") 2>conftest.er1
37785  ac_status=$?
37786  grep -v '^ *+' conftest.er1 >conftest.err
37787  rm -f conftest.er1
37788  cat conftest.err >&5
37789  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37790  (exit $ac_status); } && {
37791	 test -z "$ac_c_werror_flag" ||
37792	 test ! -s conftest.err
37793       } && test -s conftest.$ac_objext; then
37794  samba_cv_struct_sigevent=yes
37795else
37796  $as_echo "$as_me: failed program was:" >&5
37797sed 's/^/| /' conftest.$ac_ext >&5
37798
37799	samba_cv_struct_sigevent=no
37800fi
37801
37802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37803fi
37804{ $as_echo "$as_me:$LINENO: result: $samba_cv_struct_sigevent" >&5
37805$as_echo "$samba_cv_struct_sigevent" >&6; }
37806if test x"$samba_cv_struct_sigevent" = x"yes"; then
37807
37808cat >>confdefs.h <<\_ACEOF
37809#define HAVE_STRUCT_SIGEVENT 1
37810_ACEOF
37811
37812   { $as_echo "$as_me:$LINENO: checking for struct sigevent.sigev_value.sival_ptr" >&5
37813$as_echo_n "checking for struct sigevent.sigev_value.sival_ptr... " >&6; }
37814if test "${ac_cv_member_struct_sigevent_sigev_value_sival_ptr+set}" = set; then
37815  $as_echo_n "(cached) " >&6
37816else
37817  cat >conftest.$ac_ext <<_ACEOF
37818/* confdefs.h.  */
37819_ACEOF
37820cat confdefs.h >>conftest.$ac_ext
37821cat >>conftest.$ac_ext <<_ACEOF
37822/* end confdefs.h.  */
37823#include <signal.h>
37824
37825int
37826main ()
37827{
37828static struct sigevent ac_aggr;
37829if (ac_aggr.sigev_value.sival_ptr)
37830return 0;
37831  ;
37832  return 0;
37833}
37834_ACEOF
37835rm -f conftest.$ac_objext
37836if { (ac_try="$ac_compile"
37837case "(($ac_try" in
37838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37839  *) ac_try_echo=$ac_try;;
37840esac
37841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37842$as_echo "$ac_try_echo") >&5
37843  (eval "$ac_compile") 2>conftest.er1
37844  ac_status=$?
37845  grep -v '^ *+' conftest.er1 >conftest.err
37846  rm -f conftest.er1
37847  cat conftest.err >&5
37848  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37849  (exit $ac_status); } && {
37850	 test -z "$ac_c_werror_flag" ||
37851	 test ! -s conftest.err
37852       } && test -s conftest.$ac_objext; then
37853  ac_cv_member_struct_sigevent_sigev_value_sival_ptr=yes
37854else
37855  $as_echo "$as_me: failed program was:" >&5
37856sed 's/^/| /' conftest.$ac_ext >&5
37857
37858	cat >conftest.$ac_ext <<_ACEOF
37859/* confdefs.h.  */
37860_ACEOF
37861cat confdefs.h >>conftest.$ac_ext
37862cat >>conftest.$ac_ext <<_ACEOF
37863/* end confdefs.h.  */
37864#include <signal.h>
37865
37866int
37867main ()
37868{
37869static struct sigevent ac_aggr;
37870if (sizeof ac_aggr.sigev_value.sival_ptr)
37871return 0;
37872  ;
37873  return 0;
37874}
37875_ACEOF
37876rm -f conftest.$ac_objext
37877if { (ac_try="$ac_compile"
37878case "(($ac_try" in
37879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37880  *) ac_try_echo=$ac_try;;
37881esac
37882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37883$as_echo "$ac_try_echo") >&5
37884  (eval "$ac_compile") 2>conftest.er1
37885  ac_status=$?
37886  grep -v '^ *+' conftest.er1 >conftest.err
37887  rm -f conftest.er1
37888  cat conftest.err >&5
37889  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37890  (exit $ac_status); } && {
37891	 test -z "$ac_c_werror_flag" ||
37892	 test ! -s conftest.err
37893       } && test -s conftest.$ac_objext; then
37894  ac_cv_member_struct_sigevent_sigev_value_sival_ptr=yes
37895else
37896  $as_echo "$as_me: failed program was:" >&5
37897sed 's/^/| /' conftest.$ac_ext >&5
37898
37899	ac_cv_member_struct_sigevent_sigev_value_sival_ptr=no
37900fi
37901
37902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37903fi
37904
37905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37906fi
37907{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sigevent_sigev_value_sival_ptr" >&5
37908$as_echo "$ac_cv_member_struct_sigevent_sigev_value_sival_ptr" >&6; }
37909if test "x$ac_cv_member_struct_sigevent_sigev_value_sival_ptr" = x""yes; then
37910
37911cat >>confdefs.h <<_ACEOF
37912#define HAVE_STRUCT_SIGEVENT_SIGEV_VALUE_SIVAL_PTR 1
37913_ACEOF
37914
37915
37916fi
37917{ $as_echo "$as_me:$LINENO: checking for struct sigevent.sigev_value.sigval_ptr" >&5
37918$as_echo_n "checking for struct sigevent.sigev_value.sigval_ptr... " >&6; }
37919if test "${ac_cv_member_struct_sigevent_sigev_value_sigval_ptr+set}" = set; then
37920  $as_echo_n "(cached) " >&6
37921else
37922  cat >conftest.$ac_ext <<_ACEOF
37923/* confdefs.h.  */
37924_ACEOF
37925cat confdefs.h >>conftest.$ac_ext
37926cat >>conftest.$ac_ext <<_ACEOF
37927/* end confdefs.h.  */
37928#include <signal.h>
37929
37930int
37931main ()
37932{
37933static struct sigevent ac_aggr;
37934if (ac_aggr.sigev_value.sigval_ptr)
37935return 0;
37936  ;
37937  return 0;
37938}
37939_ACEOF
37940rm -f conftest.$ac_objext
37941if { (ac_try="$ac_compile"
37942case "(($ac_try" in
37943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37944  *) ac_try_echo=$ac_try;;
37945esac
37946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37947$as_echo "$ac_try_echo") >&5
37948  (eval "$ac_compile") 2>conftest.er1
37949  ac_status=$?
37950  grep -v '^ *+' conftest.er1 >conftest.err
37951  rm -f conftest.er1
37952  cat conftest.err >&5
37953  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37954  (exit $ac_status); } && {
37955	 test -z "$ac_c_werror_flag" ||
37956	 test ! -s conftest.err
37957       } && test -s conftest.$ac_objext; then
37958  ac_cv_member_struct_sigevent_sigev_value_sigval_ptr=yes
37959else
37960  $as_echo "$as_me: failed program was:" >&5
37961sed 's/^/| /' conftest.$ac_ext >&5
37962
37963	cat >conftest.$ac_ext <<_ACEOF
37964/* confdefs.h.  */
37965_ACEOF
37966cat confdefs.h >>conftest.$ac_ext
37967cat >>conftest.$ac_ext <<_ACEOF
37968/* end confdefs.h.  */
37969#include <signal.h>
37970
37971int
37972main ()
37973{
37974static struct sigevent ac_aggr;
37975if (sizeof ac_aggr.sigev_value.sigval_ptr)
37976return 0;
37977  ;
37978  return 0;
37979}
37980_ACEOF
37981rm -f conftest.$ac_objext
37982if { (ac_try="$ac_compile"
37983case "(($ac_try" in
37984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37985  *) ac_try_echo=$ac_try;;
37986esac
37987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37988$as_echo "$ac_try_echo") >&5
37989  (eval "$ac_compile") 2>conftest.er1
37990  ac_status=$?
37991  grep -v '^ *+' conftest.er1 >conftest.err
37992  rm -f conftest.er1
37993  cat conftest.err >&5
37994  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995  (exit $ac_status); } && {
37996	 test -z "$ac_c_werror_flag" ||
37997	 test ! -s conftest.err
37998       } && test -s conftest.$ac_objext; then
37999  ac_cv_member_struct_sigevent_sigev_value_sigval_ptr=yes
38000else
38001  $as_echo "$as_me: failed program was:" >&5
38002sed 's/^/| /' conftest.$ac_ext >&5
38003
38004	ac_cv_member_struct_sigevent_sigev_value_sigval_ptr=no
38005fi
38006
38007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38008fi
38009
38010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38011fi
38012{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sigevent_sigev_value_sigval_ptr" >&5
38013$as_echo "$ac_cv_member_struct_sigevent_sigev_value_sigval_ptr" >&6; }
38014if test "x$ac_cv_member_struct_sigevent_sigev_value_sigval_ptr" = x""yes; then
38015
38016cat >>confdefs.h <<_ACEOF
38017#define HAVE_STRUCT_SIGEVENT_SIGEV_VALUE_SIGVAL_PTR 1
38018_ACEOF
38019
38020
38021fi
38022
38023fi
38024
38025{ $as_echo "$as_me:$LINENO: checking for struct timespec type" >&5
38026$as_echo_n "checking for struct timespec type... " >&6; }
38027if test "${samba_cv_struct_timespec+set}" = set; then
38028  $as_echo_n "(cached) " >&6
38029else
38030
38031    cat >conftest.$ac_ext <<_ACEOF
38032/* confdefs.h.  */
38033_ACEOF
38034cat confdefs.h >>conftest.$ac_ext
38035cat >>conftest.$ac_ext <<_ACEOF
38036/* end confdefs.h.  */
38037
38038#include <sys/types.h>
38039#if STDC_HEADERS
38040#include <stdlib.h>
38041#include <stddef.h>
38042#endif
38043#if TIME_WITH_SYS_TIME
38044# include <sys/time.h>
38045# include <time.h>
38046#else
38047# if HAVE_SYS_TIME_H
38048#  include <sys/time.h>
38049# else
38050#  include <time.h>
38051# endif
38052#endif
38053
38054int
38055main ()
38056{
38057struct timespec ts;
38058  ;
38059  return 0;
38060}
38061_ACEOF
38062rm -f conftest.$ac_objext
38063if { (ac_try="$ac_compile"
38064case "(($ac_try" in
38065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38066  *) ac_try_echo=$ac_try;;
38067esac
38068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38069$as_echo "$ac_try_echo") >&5
38070  (eval "$ac_compile") 2>conftest.er1
38071  ac_status=$?
38072  grep -v '^ *+' conftest.er1 >conftest.err
38073  rm -f conftest.er1
38074  cat conftest.err >&5
38075  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38076  (exit $ac_status); } && {
38077	 test -z "$ac_c_werror_flag" ||
38078	 test ! -s conftest.err
38079       } && test -s conftest.$ac_objext; then
38080  samba_cv_struct_timespec=yes
38081else
38082  $as_echo "$as_me: failed program was:" >&5
38083sed 's/^/| /' conftest.$ac_ext >&5
38084
38085	samba_cv_struct_timespec=no
38086fi
38087
38088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38089fi
38090{ $as_echo "$as_me:$LINENO: result: $samba_cv_struct_timespec" >&5
38091$as_echo "$samba_cv_struct_timespec" >&6; }
38092if test x"$samba_cv_struct_timespec" = x"yes"; then
38093
38094cat >>confdefs.h <<\_ACEOF
38095#define HAVE_STRUCT_TIMESPEC 1
38096_ACEOF
38097
38098fi
38099
38100# and glibc has setresuid under linux but the function does
38101# nothing until kernel 2.1.44! very dumb.
38102{ $as_echo "$as_me:$LINENO: checking for real setresuid" >&5
38103$as_echo_n "checking for real setresuid... " >&6; }
38104if test "${samba_cv_have_setresuid+set}" = set; then
38105  $as_echo_n "(cached) " >&6
38106else
38107
38108    if test "$cross_compiling" = yes; then
38109  samba_cv_have_setresuid=cross
38110else
38111  cat >conftest.$ac_ext <<_ACEOF
38112/* confdefs.h.  */
38113_ACEOF
38114cat confdefs.h >>conftest.$ac_ext
38115cat >>conftest.$ac_ext <<_ACEOF
38116/* end confdefs.h.  */
38117#include <errno.h>
38118main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
38119_ACEOF
38120rm -f conftest$ac_exeext
38121if { (ac_try="$ac_link"
38122case "(($ac_try" in
38123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38124  *) ac_try_echo=$ac_try;;
38125esac
38126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38127$as_echo "$ac_try_echo") >&5
38128  (eval "$ac_link") 2>&5
38129  ac_status=$?
38130  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38131  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38132  { (case "(($ac_try" in
38133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38134  *) ac_try_echo=$ac_try;;
38135esac
38136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38137$as_echo "$ac_try_echo") >&5
38138  (eval "$ac_try") 2>&5
38139  ac_status=$?
38140  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141  (exit $ac_status); }; }; then
38142  samba_cv_have_setresuid=yes
38143else
38144  $as_echo "$as_me: program exited with status $ac_status" >&5
38145$as_echo "$as_me: failed program was:" >&5
38146sed 's/^/| /' conftest.$ac_ext >&5
38147
38148( exit $ac_status )
38149samba_cv_have_setresuid=no
38150fi
38151rm -rf conftest.dSYM
38152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38153fi
38154
38155
38156fi
38157{ $as_echo "$as_me:$LINENO: result: $samba_cv_have_setresuid" >&5
38158$as_echo "$samba_cv_have_setresuid" >&6; }
38159if test x"$samba_cv_have_setresuid" = x"yes"; then
38160
38161cat >>confdefs.h <<\_ACEOF
38162#define HAVE_SETRESUID 1
38163_ACEOF
38164
38165fi
38166
38167# Do the same check for setresguid...
38168#
38169{ $as_echo "$as_me:$LINENO: checking for real setresgid" >&5
38170$as_echo_n "checking for real setresgid... " >&6; }
38171if test "${samba_cv_have_setresgid+set}" = set; then
38172  $as_echo_n "(cached) " >&6
38173else
38174
38175    if test "$cross_compiling" = yes; then
38176  samba_cv_have_setresgid=cross
38177else
38178  cat >conftest.$ac_ext <<_ACEOF
38179/* confdefs.h.  */
38180_ACEOF
38181cat confdefs.h >>conftest.$ac_ext
38182cat >>conftest.$ac_ext <<_ACEOF
38183/* end confdefs.h.  */
38184#include <unistd.h>
38185#include <errno.h>
38186main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
38187_ACEOF
38188rm -f conftest$ac_exeext
38189if { (ac_try="$ac_link"
38190case "(($ac_try" in
38191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38192  *) ac_try_echo=$ac_try;;
38193esac
38194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38195$as_echo "$ac_try_echo") >&5
38196  (eval "$ac_link") 2>&5
38197  ac_status=$?
38198  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38199  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38200  { (case "(($ac_try" in
38201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38202  *) ac_try_echo=$ac_try;;
38203esac
38204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38205$as_echo "$ac_try_echo") >&5
38206  (eval "$ac_try") 2>&5
38207  ac_status=$?
38208  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38209  (exit $ac_status); }; }; then
38210  samba_cv_have_setresgid=yes
38211else
38212  $as_echo "$as_me: program exited with status $ac_status" >&5
38213$as_echo "$as_me: failed program was:" >&5
38214sed 's/^/| /' conftest.$ac_ext >&5
38215
38216( exit $ac_status )
38217samba_cv_have_setresgid=no
38218fi
38219rm -rf conftest.dSYM
38220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38221fi
38222
38223
38224fi
38225{ $as_echo "$as_me:$LINENO: result: $samba_cv_have_setresgid" >&5
38226$as_echo "$samba_cv_have_setresgid" >&6; }
38227if test x"$samba_cv_have_setresgid" = x"yes"; then
38228
38229cat >>confdefs.h <<\_ACEOF
38230#define HAVE_SETRESGID 1
38231_ACEOF
38232
38233fi
38234
38235{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
38236$as_echo_n "checking for working memcmp... " >&6; }
38237if test "${ac_cv_func_memcmp_working+set}" = set; then
38238  $as_echo_n "(cached) " >&6
38239else
38240  if test "$cross_compiling" = yes; then
38241  ac_cv_func_memcmp_working=no
38242else
38243  cat >conftest.$ac_ext <<_ACEOF
38244/* confdefs.h.  */
38245_ACEOF
38246cat confdefs.h >>conftest.$ac_ext
38247cat >>conftest.$ac_ext <<_ACEOF
38248/* end confdefs.h.  */
38249$ac_includes_default
38250int
38251main ()
38252{
38253
38254  /* Some versions of memcmp are not 8-bit clean.  */
38255  char c0 = '\100', c1 = '\200', c2 = '\201';
38256  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
38257    return 1;
38258
38259  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
38260     or more and with at least one buffer not starting on a 4-byte boundary.
38261     William Lewis provided this test program.   */
38262  {
38263    char foo[21];
38264    char bar[21];
38265    int i;
38266    for (i = 0; i < 4; i++)
38267      {
38268	char *a = foo + i;
38269	char *b = bar + i;
38270	strcpy (a, "--------01111111");
38271	strcpy (b, "--------10000000");
38272	if (memcmp (a, b, 16) >= 0)
38273	  return 1;
38274      }
38275    return 0;
38276  }
38277
38278  ;
38279  return 0;
38280}
38281_ACEOF
38282rm -f conftest$ac_exeext
38283if { (ac_try="$ac_link"
38284case "(($ac_try" in
38285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38286  *) ac_try_echo=$ac_try;;
38287esac
38288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38289$as_echo "$ac_try_echo") >&5
38290  (eval "$ac_link") 2>&5
38291  ac_status=$?
38292  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38293  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38294  { (case "(($ac_try" in
38295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38296  *) ac_try_echo=$ac_try;;
38297esac
38298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38299$as_echo "$ac_try_echo") >&5
38300  (eval "$ac_try") 2>&5
38301  ac_status=$?
38302  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38303  (exit $ac_status); }; }; then
38304  ac_cv_func_memcmp_working=yes
38305else
38306  $as_echo "$as_me: program exited with status $ac_status" >&5
38307$as_echo "$as_me: failed program was:" >&5
38308sed 's/^/| /' conftest.$ac_ext >&5
38309
38310( exit $ac_status )
38311ac_cv_func_memcmp_working=no
38312fi
38313rm -rf conftest.dSYM
38314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38315fi
38316
38317
38318fi
38319{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
38320$as_echo "$ac_cv_func_memcmp_working" >&6; }
38321test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
38322  *" memcmp.$ac_objext "* ) ;;
38323  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
38324 ;;
38325esac
38326
38327
38328
38329###############################################
38330# Readline included by default unless explicitly asked not to
38331test "${with_readline+set}" != "set" && with_readline=yes
38332
38333# test for where we get readline() from
38334{ $as_echo "$as_me:$LINENO: checking whether to use readline" >&5
38335$as_echo_n "checking whether to use readline... " >&6; }
38336
38337# Check whether --with-readline was given.
38338if test "${with_readline+set}" = set; then
38339  withval=$with_readline;   case "$with_readline" in
38340  yes)
38341    { $as_echo "$as_me:$LINENO: result: yes" >&5
38342$as_echo "yes" >&6; }
38343
38344
38345
38346
38347for ac_header in readline.h history.h readline/readline.h
38348do
38349as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38351  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
38352$as_echo_n "checking for $ac_header... " >&6; }
38353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38354  $as_echo_n "(cached) " >&6
38355fi
38356ac_res=`eval 'as_val=${'$as_ac_Header'}
38357		 $as_echo "$as_val"'`
38358	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38359$as_echo "$ac_res" >&6; }
38360else
38361  # Is the header compilable?
38362{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
38363$as_echo_n "checking $ac_header usability... " >&6; }
38364cat >conftest.$ac_ext <<_ACEOF
38365/* confdefs.h.  */
38366_ACEOF
38367cat confdefs.h >>conftest.$ac_ext
38368cat >>conftest.$ac_ext <<_ACEOF
38369/* end confdefs.h.  */
38370$ac_includes_default
38371#include <$ac_header>
38372_ACEOF
38373rm -f conftest.$ac_objext
38374if { (ac_try="$ac_compile"
38375case "(($ac_try" in
38376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38377  *) ac_try_echo=$ac_try;;
38378esac
38379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38380$as_echo "$ac_try_echo") >&5
38381  (eval "$ac_compile") 2>conftest.er1
38382  ac_status=$?
38383  grep -v '^ *+' conftest.er1 >conftest.err
38384  rm -f conftest.er1
38385  cat conftest.err >&5
38386  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38387  (exit $ac_status); } && {
38388	 test -z "$ac_c_werror_flag" ||
38389	 test ! -s conftest.err
38390       } && test -s conftest.$ac_objext; then
38391  ac_header_compiler=yes
38392else
38393  $as_echo "$as_me: failed program was:" >&5
38394sed 's/^/| /' conftest.$ac_ext >&5
38395
38396	ac_header_compiler=no
38397fi
38398
38399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38400{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38401$as_echo "$ac_header_compiler" >&6; }
38402
38403# Is the header present?
38404{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
38405$as_echo_n "checking $ac_header presence... " >&6; }
38406cat >conftest.$ac_ext <<_ACEOF
38407/* confdefs.h.  */
38408_ACEOF
38409cat confdefs.h >>conftest.$ac_ext
38410cat >>conftest.$ac_ext <<_ACEOF
38411/* end confdefs.h.  */
38412#include <$ac_header>
38413_ACEOF
38414if { (ac_try="$ac_cpp conftest.$ac_ext"
38415case "(($ac_try" in
38416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38417  *) ac_try_echo=$ac_try;;
38418esac
38419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38420$as_echo "$ac_try_echo") >&5
38421  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38422  ac_status=$?
38423  grep -v '^ *+' conftest.er1 >conftest.err
38424  rm -f conftest.er1
38425  cat conftest.err >&5
38426  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38427  (exit $ac_status); } >/dev/null && {
38428	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38429	 test ! -s conftest.err
38430       }; then
38431  ac_header_preproc=yes
38432else
38433  $as_echo "$as_me: failed program was:" >&5
38434sed 's/^/| /' conftest.$ac_ext >&5
38435
38436  ac_header_preproc=no
38437fi
38438
38439rm -f conftest.err conftest.$ac_ext
38440{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38441$as_echo "$ac_header_preproc" >&6; }
38442
38443# So?  What about this header?
38444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38445  yes:no: )
38446    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38447$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38448    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38449$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38450    ac_header_preproc=yes
38451    ;;
38452  no:yes:* )
38453    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38454$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38455    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38456$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38457    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38458$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38459    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38460$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38461    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38462$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38463    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38464$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38465    ( cat <<\_ASBOX
38466## ---------------------------------------- ##
38467## Report this to samba-technical@samba.org ##
38468## ---------------------------------------- ##
38469_ASBOX
38470     ) | sed "s/^/$as_me: WARNING:     /" >&2
38471    ;;
38472esac
38473{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
38474$as_echo_n "checking for $ac_header... " >&6; }
38475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38476  $as_echo_n "(cached) " >&6
38477else
38478  eval "$as_ac_Header=\$ac_header_preproc"
38479fi
38480ac_res=`eval 'as_val=${'$as_ac_Header'}
38481		 $as_echo "$as_val"'`
38482	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38483$as_echo "$ac_res" >&6; }
38484
38485fi
38486as_val=`eval 'as_val=${'$as_ac_Header'}
38487		 $as_echo "$as_val"'`
38488   if test "x$as_val" = x""yes; then
38489  cat >>confdefs.h <<_ACEOF
38490#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38491_ACEOF
38492
38493fi
38494
38495done
38496
38497
38498for ac_header in readline/history.h
38499do
38500as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38502  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
38503$as_echo_n "checking for $ac_header... " >&6; }
38504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38505  $as_echo_n "(cached) " >&6
38506fi
38507ac_res=`eval 'as_val=${'$as_ac_Header'}
38508		 $as_echo "$as_val"'`
38509	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38510$as_echo "$ac_res" >&6; }
38511else
38512  # Is the header compilable?
38513{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
38514$as_echo_n "checking $ac_header usability... " >&6; }
38515cat >conftest.$ac_ext <<_ACEOF
38516/* confdefs.h.  */
38517_ACEOF
38518cat confdefs.h >>conftest.$ac_ext
38519cat >>conftest.$ac_ext <<_ACEOF
38520/* end confdefs.h.  */
38521$ac_includes_default
38522#include <$ac_header>
38523_ACEOF
38524rm -f conftest.$ac_objext
38525if { (ac_try="$ac_compile"
38526case "(($ac_try" in
38527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38528  *) ac_try_echo=$ac_try;;
38529esac
38530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38531$as_echo "$ac_try_echo") >&5
38532  (eval "$ac_compile") 2>conftest.er1
38533  ac_status=$?
38534  grep -v '^ *+' conftest.er1 >conftest.err
38535  rm -f conftest.er1
38536  cat conftest.err >&5
38537  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38538  (exit $ac_status); } && {
38539	 test -z "$ac_c_werror_flag" ||
38540	 test ! -s conftest.err
38541       } && test -s conftest.$ac_objext; then
38542  ac_header_compiler=yes
38543else
38544  $as_echo "$as_me: failed program was:" >&5
38545sed 's/^/| /' conftest.$ac_ext >&5
38546
38547	ac_header_compiler=no
38548fi
38549
38550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38551{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38552$as_echo "$ac_header_compiler" >&6; }
38553
38554# Is the header present?
38555{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
38556$as_echo_n "checking $ac_header presence... " >&6; }
38557cat >conftest.$ac_ext <<_ACEOF
38558/* confdefs.h.  */
38559_ACEOF
38560cat confdefs.h >>conftest.$ac_ext
38561cat >>conftest.$ac_ext <<_ACEOF
38562/* end confdefs.h.  */
38563#include <$ac_header>
38564_ACEOF
38565if { (ac_try="$ac_cpp conftest.$ac_ext"
38566case "(($ac_try" in
38567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38568  *) ac_try_echo=$ac_try;;
38569esac
38570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38571$as_echo "$ac_try_echo") >&5
38572  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38573  ac_status=$?
38574  grep -v '^ *+' conftest.er1 >conftest.err
38575  rm -f conftest.er1
38576  cat conftest.err >&5
38577  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38578  (exit $ac_status); } >/dev/null && {
38579	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38580	 test ! -s conftest.err
38581       }; then
38582  ac_header_preproc=yes
38583else
38584  $as_echo "$as_me: failed program was:" >&5
38585sed 's/^/| /' conftest.$ac_ext >&5
38586
38587  ac_header_preproc=no
38588fi
38589
38590rm -f conftest.err conftest.$ac_ext
38591{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38592$as_echo "$ac_header_preproc" >&6; }
38593
38594# So?  What about this header?
38595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38596  yes:no: )
38597    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38598$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38599    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38600$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38601    ac_header_preproc=yes
38602    ;;
38603  no:yes:* )
38604    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38605$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38606    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38607$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38608    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38609$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38610    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38611$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38612    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38613$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38614    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38615$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38616    ( cat <<\_ASBOX
38617## ---------------------------------------- ##
38618## Report this to samba-technical@samba.org ##
38619## ---------------------------------------- ##
38620_ASBOX
38621     ) | sed "s/^/$as_me: WARNING:     /" >&2
38622    ;;
38623esac
38624{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
38625$as_echo_n "checking for $ac_header... " >&6; }
38626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38627  $as_echo_n "(cached) " >&6
38628else
38629  eval "$as_ac_Header=\$ac_header_preproc"
38630fi
38631ac_res=`eval 'as_val=${'$as_ac_Header'}
38632		 $as_echo "$as_val"'`
38633	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38634$as_echo "$ac_res" >&6; }
38635
38636fi
38637as_val=`eval 'as_val=${'$as_ac_Header'}
38638		 $as_echo "$as_val"'`
38639   if test "x$as_val" = x""yes; then
38640  cat >>confdefs.h <<_ACEOF
38641#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38642_ACEOF
38643
38644fi
38645
38646done
38647
38648
38649
38650
38651for ac_header in readline.h readline/readline.h
38652do
38653as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38655  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
38656$as_echo_n "checking for $ac_header... " >&6; }
38657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38658  $as_echo_n "(cached) " >&6
38659fi
38660ac_res=`eval 'as_val=${'$as_ac_Header'}
38661		 $as_echo "$as_val"'`
38662	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38663$as_echo "$ac_res" >&6; }
38664else
38665  # Is the header compilable?
38666{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
38667$as_echo_n "checking $ac_header usability... " >&6; }
38668cat >conftest.$ac_ext <<_ACEOF
38669/* confdefs.h.  */
38670_ACEOF
38671cat confdefs.h >>conftest.$ac_ext
38672cat >>conftest.$ac_ext <<_ACEOF
38673/* end confdefs.h.  */
38674$ac_includes_default
38675#include <$ac_header>
38676_ACEOF
38677rm -f conftest.$ac_objext
38678if { (ac_try="$ac_compile"
38679case "(($ac_try" in
38680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38681  *) ac_try_echo=$ac_try;;
38682esac
38683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38684$as_echo "$ac_try_echo") >&5
38685  (eval "$ac_compile") 2>conftest.er1
38686  ac_status=$?
38687  grep -v '^ *+' conftest.er1 >conftest.err
38688  rm -f conftest.er1
38689  cat conftest.err >&5
38690  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38691  (exit $ac_status); } && {
38692	 test -z "$ac_c_werror_flag" ||
38693	 test ! -s conftest.err
38694       } && test -s conftest.$ac_objext; then
38695  ac_header_compiler=yes
38696else
38697  $as_echo "$as_me: failed program was:" >&5
38698sed 's/^/| /' conftest.$ac_ext >&5
38699
38700	ac_header_compiler=no
38701fi
38702
38703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38704{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38705$as_echo "$ac_header_compiler" >&6; }
38706
38707# Is the header present?
38708{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
38709$as_echo_n "checking $ac_header presence... " >&6; }
38710cat >conftest.$ac_ext <<_ACEOF
38711/* confdefs.h.  */
38712_ACEOF
38713cat confdefs.h >>conftest.$ac_ext
38714cat >>conftest.$ac_ext <<_ACEOF
38715/* end confdefs.h.  */
38716#include <$ac_header>
38717_ACEOF
38718if { (ac_try="$ac_cpp conftest.$ac_ext"
38719case "(($ac_try" in
38720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38721  *) ac_try_echo=$ac_try;;
38722esac
38723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38724$as_echo "$ac_try_echo") >&5
38725  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38726  ac_status=$?
38727  grep -v '^ *+' conftest.er1 >conftest.err
38728  rm -f conftest.er1
38729  cat conftest.err >&5
38730  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38731  (exit $ac_status); } >/dev/null && {
38732	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38733	 test ! -s conftest.err
38734       }; then
38735  ac_header_preproc=yes
38736else
38737  $as_echo "$as_me: failed program was:" >&5
38738sed 's/^/| /' conftest.$ac_ext >&5
38739
38740  ac_header_preproc=no
38741fi
38742
38743rm -f conftest.err conftest.$ac_ext
38744{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38745$as_echo "$ac_header_preproc" >&6; }
38746
38747# So?  What about this header?
38748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38749  yes:no: )
38750    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38751$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38752    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38753$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38754    ac_header_preproc=yes
38755    ;;
38756  no:yes:* )
38757    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38758$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38759    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38760$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38761    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38762$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38763    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38764$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38765    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38766$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38767    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38768$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38769    ( cat <<\_ASBOX
38770## ---------------------------------------- ##
38771## Report this to samba-technical@samba.org ##
38772## ---------------------------------------- ##
38773_ASBOX
38774     ) | sed "s/^/$as_me: WARNING:     /" >&2
38775    ;;
38776esac
38777{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
38778$as_echo_n "checking for $ac_header... " >&6; }
38779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38780  $as_echo_n "(cached) " >&6
38781else
38782  eval "$as_ac_Header=\$ac_header_preproc"
38783fi
38784ac_res=`eval 'as_val=${'$as_ac_Header'}
38785		 $as_echo "$as_val"'`
38786	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38787$as_echo "$ac_res" >&6; }
38788
38789fi
38790as_val=`eval 'as_val=${'$as_ac_Header'}
38791		 $as_echo "$as_val"'`
38792   if test "x$as_val" = x""yes; then
38793  cat >>confdefs.h <<_ACEOF
38794#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38795_ACEOF
38796
38797      for termlib in ncurses curses termcap terminfo termlib tinfo; do
38798       as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
38799{ $as_echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
38800$as_echo_n "checking for tgetent in -l${termlib}... " >&6; }
38801if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38802  $as_echo_n "(cached) " >&6
38803else
38804  ac_check_lib_save_LIBS=$LIBS
38805LIBS="-l${termlib}  $LIBS"
38806cat >conftest.$ac_ext <<_ACEOF
38807/* confdefs.h.  */
38808_ACEOF
38809cat confdefs.h >>conftest.$ac_ext
38810cat >>conftest.$ac_ext <<_ACEOF
38811/* end confdefs.h.  */
38812
38813/* Override any GCC internal prototype to avoid an error.
38814   Use char because int might match the return type of a GCC
38815   builtin and then its argument prototype would still apply.  */
38816#ifdef __cplusplus
38817extern "C"
38818#endif
38819char tgetent ();
38820int
38821main ()
38822{
38823return tgetent ();
38824  ;
38825  return 0;
38826}
38827_ACEOF
38828rm -f conftest.$ac_objext conftest$ac_exeext
38829if { (ac_try="$ac_link"
38830case "(($ac_try" in
38831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38832  *) ac_try_echo=$ac_try;;
38833esac
38834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38835$as_echo "$ac_try_echo") >&5
38836  (eval "$ac_link") 2>conftest.er1
38837  ac_status=$?
38838  grep -v '^ *+' conftest.er1 >conftest.err
38839  rm -f conftest.er1
38840  cat conftest.err >&5
38841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842  (exit $ac_status); } && {
38843	 test -z "$ac_c_werror_flag" ||
38844	 test ! -s conftest.err
38845       } && test -s conftest$ac_exeext && {
38846	 test "$cross_compiling" = yes ||
38847	 $as_test_x conftest$ac_exeext
38848       }; then
38849  eval "$as_ac_Lib=yes"
38850else
38851  $as_echo "$as_me: failed program was:" >&5
38852sed 's/^/| /' conftest.$ac_ext >&5
38853
38854	eval "$as_ac_Lib=no"
38855fi
38856
38857rm -rf conftest.dSYM
38858rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38859      conftest$ac_exeext conftest.$ac_ext
38860LIBS=$ac_check_lib_save_LIBS
38861fi
38862ac_res=`eval 'as_val=${'$as_ac_Lib'}
38863		 $as_echo "$as_val"'`
38864	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38865$as_echo "$ac_res" >&6; }
38866as_val=`eval 'as_val=${'$as_ac_Lib'}
38867		 $as_echo "$as_val"'`
38868   if test "x$as_val" = x""yes; then
38869  TERMLIBS="-l${termlib}"; break
38870fi
38871
38872      done
38873      { $as_echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
38874$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
38875if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
38876  $as_echo_n "(cached) " >&6
38877else
38878  ac_check_lib_save_LIBS=$LIBS
38879LIBS="-lreadline $TERMLIBS $LIBS"
38880cat >conftest.$ac_ext <<_ACEOF
38881/* confdefs.h.  */
38882_ACEOF
38883cat confdefs.h >>conftest.$ac_ext
38884cat >>conftest.$ac_ext <<_ACEOF
38885/* end confdefs.h.  */
38886
38887/* Override any GCC internal prototype to avoid an error.
38888   Use char because int might match the return type of a GCC
38889   builtin and then its argument prototype would still apply.  */
38890#ifdef __cplusplus
38891extern "C"
38892#endif
38893char rl_callback_handler_install ();
38894int
38895main ()
38896{
38897return rl_callback_handler_install ();
38898  ;
38899  return 0;
38900}
38901_ACEOF
38902rm -f conftest.$ac_objext conftest$ac_exeext
38903if { (ac_try="$ac_link"
38904case "(($ac_try" in
38905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38906  *) ac_try_echo=$ac_try;;
38907esac
38908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38909$as_echo "$ac_try_echo") >&5
38910  (eval "$ac_link") 2>conftest.er1
38911  ac_status=$?
38912  grep -v '^ *+' conftest.er1 >conftest.err
38913  rm -f conftest.er1
38914  cat conftest.err >&5
38915  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38916  (exit $ac_status); } && {
38917	 test -z "$ac_c_werror_flag" ||
38918	 test ! -s conftest.err
38919       } && test -s conftest$ac_exeext && {
38920	 test "$cross_compiling" = yes ||
38921	 $as_test_x conftest$ac_exeext
38922       }; then
38923  ac_cv_lib_readline_rl_callback_handler_install=yes
38924else
38925  $as_echo "$as_me: failed program was:" >&5
38926sed 's/^/| /' conftest.$ac_ext >&5
38927
38928	ac_cv_lib_readline_rl_callback_handler_install=no
38929fi
38930
38931rm -rf conftest.dSYM
38932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38933      conftest$ac_exeext conftest.$ac_ext
38934LIBS=$ac_check_lib_save_LIBS
38935fi
38936{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
38937$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
38938if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then
38939  TERMLIBS="-lreadline $TERMLIBS"
38940
38941cat >>confdefs.h <<\_ACEOF
38942#define HAVE_LIBREADLINE 1
38943_ACEOF
38944
38945       break
38946else
38947  TERMLIBS=
38948fi
38949
38950fi
38951
38952done
38953
38954    ;;
38955  no)
38956    { $as_echo "$as_me:$LINENO: result: no" >&5
38957$as_echo "no" >&6; }
38958    ;;
38959  *)
38960    { $as_echo "$as_me:$LINENO: result: yes" >&5
38961$as_echo "yes" >&6; }
38962
38963    # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
38964    # alternate readline path
38965    _ldflags=${LDFLAGS}
38966    _cppflags=${CPPFLAGS}
38967
38968    # Add additional search path
38969    LDFLAGS="-L$with_readline/lib $LDFLAGS"
38970    CPPFLAGS="-I$with_readline/include $CPPFLAGS"
38971
38972
38973
38974
38975for ac_header in readline.h history.h readline/readline.h
38976do
38977as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38979  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
38980$as_echo_n "checking for $ac_header... " >&6; }
38981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38982  $as_echo_n "(cached) " >&6
38983fi
38984ac_res=`eval 'as_val=${'$as_ac_Header'}
38985		 $as_echo "$as_val"'`
38986	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38987$as_echo "$ac_res" >&6; }
38988else
38989  # Is the header compilable?
38990{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
38991$as_echo_n "checking $ac_header usability... " >&6; }
38992cat >conftest.$ac_ext <<_ACEOF
38993/* confdefs.h.  */
38994_ACEOF
38995cat confdefs.h >>conftest.$ac_ext
38996cat >>conftest.$ac_ext <<_ACEOF
38997/* end confdefs.h.  */
38998$ac_includes_default
38999#include <$ac_header>
39000_ACEOF
39001rm -f conftest.$ac_objext
39002if { (ac_try="$ac_compile"
39003case "(($ac_try" in
39004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39005  *) ac_try_echo=$ac_try;;
39006esac
39007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39008$as_echo "$ac_try_echo") >&5
39009  (eval "$ac_compile") 2>conftest.er1
39010  ac_status=$?
39011  grep -v '^ *+' conftest.er1 >conftest.err
39012  rm -f conftest.er1
39013  cat conftest.err >&5
39014  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015  (exit $ac_status); } && {
39016	 test -z "$ac_c_werror_flag" ||
39017	 test ! -s conftest.err
39018       } && test -s conftest.$ac_objext; then
39019  ac_header_compiler=yes
39020else
39021  $as_echo "$as_me: failed program was:" >&5
39022sed 's/^/| /' conftest.$ac_ext >&5
39023
39024	ac_header_compiler=no
39025fi
39026
39027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39028{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39029$as_echo "$ac_header_compiler" >&6; }
39030
39031# Is the header present?
39032{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
39033$as_echo_n "checking $ac_header presence... " >&6; }
39034cat >conftest.$ac_ext <<_ACEOF
39035/* confdefs.h.  */
39036_ACEOF
39037cat confdefs.h >>conftest.$ac_ext
39038cat >>conftest.$ac_ext <<_ACEOF
39039/* end confdefs.h.  */
39040#include <$ac_header>
39041_ACEOF
39042if { (ac_try="$ac_cpp conftest.$ac_ext"
39043case "(($ac_try" in
39044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39045  *) ac_try_echo=$ac_try;;
39046esac
39047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39048$as_echo "$ac_try_echo") >&5
39049  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39050  ac_status=$?
39051  grep -v '^ *+' conftest.er1 >conftest.err
39052  rm -f conftest.er1
39053  cat conftest.err >&5
39054  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39055  (exit $ac_status); } >/dev/null && {
39056	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39057	 test ! -s conftest.err
39058       }; then
39059  ac_header_preproc=yes
39060else
39061  $as_echo "$as_me: failed program was:" >&5
39062sed 's/^/| /' conftest.$ac_ext >&5
39063
39064  ac_header_preproc=no
39065fi
39066
39067rm -f conftest.err conftest.$ac_ext
39068{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39069$as_echo "$ac_header_preproc" >&6; }
39070
39071# So?  What about this header?
39072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39073  yes:no: )
39074    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39075$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39076    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39077$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39078    ac_header_preproc=yes
39079    ;;
39080  no:yes:* )
39081    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39082$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39083    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39084$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39085    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39086$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39087    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39088$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39089    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39090$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39091    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39092$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39093    ( cat <<\_ASBOX
39094## ---------------------------------------- ##
39095## Report this to samba-technical@samba.org ##
39096## ---------------------------------------- ##
39097_ASBOX
39098     ) | sed "s/^/$as_me: WARNING:     /" >&2
39099    ;;
39100esac
39101{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39102$as_echo_n "checking for $ac_header... " >&6; }
39103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39104  $as_echo_n "(cached) " >&6
39105else
39106  eval "$as_ac_Header=\$ac_header_preproc"
39107fi
39108ac_res=`eval 'as_val=${'$as_ac_Header'}
39109		 $as_echo "$as_val"'`
39110	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39111$as_echo "$ac_res" >&6; }
39112
39113fi
39114as_val=`eval 'as_val=${'$as_ac_Header'}
39115		 $as_echo "$as_val"'`
39116   if test "x$as_val" = x""yes; then
39117  cat >>confdefs.h <<_ACEOF
39118#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39119_ACEOF
39120
39121fi
39122
39123done
39124
39125
39126for ac_header in readline/history.h
39127do
39128as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39130  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39131$as_echo_n "checking for $ac_header... " >&6; }
39132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39133  $as_echo_n "(cached) " >&6
39134fi
39135ac_res=`eval 'as_val=${'$as_ac_Header'}
39136		 $as_echo "$as_val"'`
39137	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39138$as_echo "$ac_res" >&6; }
39139else
39140  # Is the header compilable?
39141{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
39142$as_echo_n "checking $ac_header usability... " >&6; }
39143cat >conftest.$ac_ext <<_ACEOF
39144/* confdefs.h.  */
39145_ACEOF
39146cat confdefs.h >>conftest.$ac_ext
39147cat >>conftest.$ac_ext <<_ACEOF
39148/* end confdefs.h.  */
39149$ac_includes_default
39150#include <$ac_header>
39151_ACEOF
39152rm -f conftest.$ac_objext
39153if { (ac_try="$ac_compile"
39154case "(($ac_try" in
39155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39156  *) ac_try_echo=$ac_try;;
39157esac
39158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39159$as_echo "$ac_try_echo") >&5
39160  (eval "$ac_compile") 2>conftest.er1
39161  ac_status=$?
39162  grep -v '^ *+' conftest.er1 >conftest.err
39163  rm -f conftest.er1
39164  cat conftest.err >&5
39165  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39166  (exit $ac_status); } && {
39167	 test -z "$ac_c_werror_flag" ||
39168	 test ! -s conftest.err
39169       } && test -s conftest.$ac_objext; then
39170  ac_header_compiler=yes
39171else
39172  $as_echo "$as_me: failed program was:" >&5
39173sed 's/^/| /' conftest.$ac_ext >&5
39174
39175	ac_header_compiler=no
39176fi
39177
39178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39179{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39180$as_echo "$ac_header_compiler" >&6; }
39181
39182# Is the header present?
39183{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
39184$as_echo_n "checking $ac_header presence... " >&6; }
39185cat >conftest.$ac_ext <<_ACEOF
39186/* confdefs.h.  */
39187_ACEOF
39188cat confdefs.h >>conftest.$ac_ext
39189cat >>conftest.$ac_ext <<_ACEOF
39190/* end confdefs.h.  */
39191#include <$ac_header>
39192_ACEOF
39193if { (ac_try="$ac_cpp conftest.$ac_ext"
39194case "(($ac_try" in
39195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39196  *) ac_try_echo=$ac_try;;
39197esac
39198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39199$as_echo "$ac_try_echo") >&5
39200  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39201  ac_status=$?
39202  grep -v '^ *+' conftest.er1 >conftest.err
39203  rm -f conftest.er1
39204  cat conftest.err >&5
39205  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39206  (exit $ac_status); } >/dev/null && {
39207	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39208	 test ! -s conftest.err
39209       }; then
39210  ac_header_preproc=yes
39211else
39212  $as_echo "$as_me: failed program was:" >&5
39213sed 's/^/| /' conftest.$ac_ext >&5
39214
39215  ac_header_preproc=no
39216fi
39217
39218rm -f conftest.err conftest.$ac_ext
39219{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39220$as_echo "$ac_header_preproc" >&6; }
39221
39222# So?  What about this header?
39223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39224  yes:no: )
39225    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39226$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39227    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39228$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39229    ac_header_preproc=yes
39230    ;;
39231  no:yes:* )
39232    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39233$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39234    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39235$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39236    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39237$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39238    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39239$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39240    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39241$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39242    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39243$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39244    ( cat <<\_ASBOX
39245## ---------------------------------------- ##
39246## Report this to samba-technical@samba.org ##
39247## ---------------------------------------- ##
39248_ASBOX
39249     ) | sed "s/^/$as_me: WARNING:     /" >&2
39250    ;;
39251esac
39252{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39253$as_echo_n "checking for $ac_header... " >&6; }
39254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39255  $as_echo_n "(cached) " >&6
39256else
39257  eval "$as_ac_Header=\$ac_header_preproc"
39258fi
39259ac_res=`eval 'as_val=${'$as_ac_Header'}
39260		 $as_echo "$as_val"'`
39261	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39262$as_echo "$ac_res" >&6; }
39263
39264fi
39265as_val=`eval 'as_val=${'$as_ac_Header'}
39266		 $as_echo "$as_val"'`
39267   if test "x$as_val" = x""yes; then
39268  cat >>confdefs.h <<_ACEOF
39269#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39270_ACEOF
39271
39272fi
39273
39274done
39275
39276
39277
39278
39279for ac_header in readline.h readline/readline.h
39280do
39281as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39283  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39284$as_echo_n "checking for $ac_header... " >&6; }
39285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39286  $as_echo_n "(cached) " >&6
39287fi
39288ac_res=`eval 'as_val=${'$as_ac_Header'}
39289		 $as_echo "$as_val"'`
39290	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39291$as_echo "$ac_res" >&6; }
39292else
39293  # Is the header compilable?
39294{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
39295$as_echo_n "checking $ac_header usability... " >&6; }
39296cat >conftest.$ac_ext <<_ACEOF
39297/* confdefs.h.  */
39298_ACEOF
39299cat confdefs.h >>conftest.$ac_ext
39300cat >>conftest.$ac_ext <<_ACEOF
39301/* end confdefs.h.  */
39302$ac_includes_default
39303#include <$ac_header>
39304_ACEOF
39305rm -f conftest.$ac_objext
39306if { (ac_try="$ac_compile"
39307case "(($ac_try" in
39308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39309  *) ac_try_echo=$ac_try;;
39310esac
39311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39312$as_echo "$ac_try_echo") >&5
39313  (eval "$ac_compile") 2>conftest.er1
39314  ac_status=$?
39315  grep -v '^ *+' conftest.er1 >conftest.err
39316  rm -f conftest.er1
39317  cat conftest.err >&5
39318  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39319  (exit $ac_status); } && {
39320	 test -z "$ac_c_werror_flag" ||
39321	 test ! -s conftest.err
39322       } && test -s conftest.$ac_objext; then
39323  ac_header_compiler=yes
39324else
39325  $as_echo "$as_me: failed program was:" >&5
39326sed 's/^/| /' conftest.$ac_ext >&5
39327
39328	ac_header_compiler=no
39329fi
39330
39331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39332{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39333$as_echo "$ac_header_compiler" >&6; }
39334
39335# Is the header present?
39336{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
39337$as_echo_n "checking $ac_header presence... " >&6; }
39338cat >conftest.$ac_ext <<_ACEOF
39339/* confdefs.h.  */
39340_ACEOF
39341cat confdefs.h >>conftest.$ac_ext
39342cat >>conftest.$ac_ext <<_ACEOF
39343/* end confdefs.h.  */
39344#include <$ac_header>
39345_ACEOF
39346if { (ac_try="$ac_cpp conftest.$ac_ext"
39347case "(($ac_try" in
39348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39349  *) ac_try_echo=$ac_try;;
39350esac
39351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39352$as_echo "$ac_try_echo") >&5
39353  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39354  ac_status=$?
39355  grep -v '^ *+' conftest.er1 >conftest.err
39356  rm -f conftest.er1
39357  cat conftest.err >&5
39358  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39359  (exit $ac_status); } >/dev/null && {
39360	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39361	 test ! -s conftest.err
39362       }; then
39363  ac_header_preproc=yes
39364else
39365  $as_echo "$as_me: failed program was:" >&5
39366sed 's/^/| /' conftest.$ac_ext >&5
39367
39368  ac_header_preproc=no
39369fi
39370
39371rm -f conftest.err conftest.$ac_ext
39372{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39373$as_echo "$ac_header_preproc" >&6; }
39374
39375# So?  What about this header?
39376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39377  yes:no: )
39378    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39379$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39380    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39381$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39382    ac_header_preproc=yes
39383    ;;
39384  no:yes:* )
39385    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39386$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39387    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39388$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39389    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39390$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39391    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39392$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39393    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39394$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39395    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39396$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39397    ( cat <<\_ASBOX
39398## ---------------------------------------- ##
39399## Report this to samba-technical@samba.org ##
39400## ---------------------------------------- ##
39401_ASBOX
39402     ) | sed "s/^/$as_me: WARNING:     /" >&2
39403    ;;
39404esac
39405{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39406$as_echo_n "checking for $ac_header... " >&6; }
39407if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39408  $as_echo_n "(cached) " >&6
39409else
39410  eval "$as_ac_Header=\$ac_header_preproc"
39411fi
39412ac_res=`eval 'as_val=${'$as_ac_Header'}
39413		 $as_echo "$as_val"'`
39414	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39415$as_echo "$ac_res" >&6; }
39416
39417fi
39418as_val=`eval 'as_val=${'$as_ac_Header'}
39419		 $as_echo "$as_val"'`
39420   if test "x$as_val" = x""yes; then
39421  cat >>confdefs.h <<_ACEOF
39422#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39423_ACEOF
39424
39425      for termlib in ncurses curses termcap terminfo termlib; do
39426       as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
39427{ $as_echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
39428$as_echo_n "checking for tgetent in -l${termlib}... " >&6; }
39429if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
39430  $as_echo_n "(cached) " >&6
39431else
39432  ac_check_lib_save_LIBS=$LIBS
39433LIBS="-l${termlib}  $LIBS"
39434cat >conftest.$ac_ext <<_ACEOF
39435/* confdefs.h.  */
39436_ACEOF
39437cat confdefs.h >>conftest.$ac_ext
39438cat >>conftest.$ac_ext <<_ACEOF
39439/* end confdefs.h.  */
39440
39441/* Override any GCC internal prototype to avoid an error.
39442   Use char because int might match the return type of a GCC
39443   builtin and then its argument prototype would still apply.  */
39444#ifdef __cplusplus
39445extern "C"
39446#endif
39447char tgetent ();
39448int
39449main ()
39450{
39451return tgetent ();
39452  ;
39453  return 0;
39454}
39455_ACEOF
39456rm -f conftest.$ac_objext conftest$ac_exeext
39457if { (ac_try="$ac_link"
39458case "(($ac_try" in
39459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39460  *) ac_try_echo=$ac_try;;
39461esac
39462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39463$as_echo "$ac_try_echo") >&5
39464  (eval "$ac_link") 2>conftest.er1
39465  ac_status=$?
39466  grep -v '^ *+' conftest.er1 >conftest.err
39467  rm -f conftest.er1
39468  cat conftest.err >&5
39469  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39470  (exit $ac_status); } && {
39471	 test -z "$ac_c_werror_flag" ||
39472	 test ! -s conftest.err
39473       } && test -s conftest$ac_exeext && {
39474	 test "$cross_compiling" = yes ||
39475	 $as_test_x conftest$ac_exeext
39476       }; then
39477  eval "$as_ac_Lib=yes"
39478else
39479  $as_echo "$as_me: failed program was:" >&5
39480sed 's/^/| /' conftest.$ac_ext >&5
39481
39482	eval "$as_ac_Lib=no"
39483fi
39484
39485rm -rf conftest.dSYM
39486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39487      conftest$ac_exeext conftest.$ac_ext
39488LIBS=$ac_check_lib_save_LIBS
39489fi
39490ac_res=`eval 'as_val=${'$as_ac_Lib'}
39491		 $as_echo "$as_val"'`
39492	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39493$as_echo "$ac_res" >&6; }
39494as_val=`eval 'as_val=${'$as_ac_Lib'}
39495		 $as_echo "$as_val"'`
39496   if test "x$as_val" = x""yes; then
39497  TERMLIBS="-l${termlib}"; break
39498fi
39499
39500      done
39501      { $as_echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
39502$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
39503if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
39504  $as_echo_n "(cached) " >&6
39505else
39506  ac_check_lib_save_LIBS=$LIBS
39507LIBS="-lreadline $TERMLIBS $LIBS"
39508cat >conftest.$ac_ext <<_ACEOF
39509/* confdefs.h.  */
39510_ACEOF
39511cat confdefs.h >>conftest.$ac_ext
39512cat >>conftest.$ac_ext <<_ACEOF
39513/* end confdefs.h.  */
39514
39515/* Override any GCC internal prototype to avoid an error.
39516   Use char because int might match the return type of a GCC
39517   builtin and then its argument prototype would still apply.  */
39518#ifdef __cplusplus
39519extern "C"
39520#endif
39521char rl_callback_handler_install ();
39522int
39523main ()
39524{
39525return rl_callback_handler_install ();
39526  ;
39527  return 0;
39528}
39529_ACEOF
39530rm -f conftest.$ac_objext conftest$ac_exeext
39531if { (ac_try="$ac_link"
39532case "(($ac_try" in
39533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39534  *) ac_try_echo=$ac_try;;
39535esac
39536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39537$as_echo "$ac_try_echo") >&5
39538  (eval "$ac_link") 2>conftest.er1
39539  ac_status=$?
39540  grep -v '^ *+' conftest.er1 >conftest.err
39541  rm -f conftest.er1
39542  cat conftest.err >&5
39543  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39544  (exit $ac_status); } && {
39545	 test -z "$ac_c_werror_flag" ||
39546	 test ! -s conftest.err
39547       } && test -s conftest$ac_exeext && {
39548	 test "$cross_compiling" = yes ||
39549	 $as_test_x conftest$ac_exeext
39550       }; then
39551  ac_cv_lib_readline_rl_callback_handler_install=yes
39552else
39553  $as_echo "$as_me: failed program was:" >&5
39554sed 's/^/| /' conftest.$ac_ext >&5
39555
39556	ac_cv_lib_readline_rl_callback_handler_install=no
39557fi
39558
39559rm -rf conftest.dSYM
39560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39561      conftest$ac_exeext conftest.$ac_ext
39562LIBS=$ac_check_lib_save_LIBS
39563fi
39564{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
39565$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
39566if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then
39567  TERMLDFLAGS="-L$with_readline/lib"
39568       TERMCPPFLAGS="-I$with_readline/include"
39569       CPPFLAGS="-I$with_readline/include $CPPFLAGS"
39570       TERMLIBS="-lreadline $TERMLIBS"
39571
39572cat >>confdefs.h <<\_ACEOF
39573#define HAVE_LIBREADLINE 1
39574_ACEOF
39575
39576       break
39577else
39578  TERMLIBS= CPPFLAGS=$_cppflags
39579fi
39580
39581fi
39582
39583done
39584
39585
39586    LDFLAGS=$_ldflags
39587    ;;
39588  esac
39589else
39590  { $as_echo "$as_me:$LINENO: result: no" >&5
39591$as_echo "no" >&6; }
39592
39593fi
39594
39595
39596
39597
39598# The readline API changed slightly from readline3 to readline4, so
39599# code will generate warnings on one of them unless we have a few
39600# special cases.
39601{ $as_echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
39602$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
39603if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
39604  $as_echo_n "(cached) " >&6
39605else
39606  ac_check_lib_save_LIBS=$LIBS
39607LIBS="-lreadline $TERMLIBS $LIBS"
39608cat >conftest.$ac_ext <<_ACEOF
39609/* confdefs.h.  */
39610_ACEOF
39611cat confdefs.h >>conftest.$ac_ext
39612cat >>conftest.$ac_ext <<_ACEOF
39613/* end confdefs.h.  */
39614
39615/* Override any GCC internal prototype to avoid an error.
39616   Use char because int might match the return type of a GCC
39617   builtin and then its argument prototype would still apply.  */
39618#ifdef __cplusplus
39619extern "C"
39620#endif
39621char rl_completion_matches ();
39622int
39623main ()
39624{
39625return rl_completion_matches ();
39626  ;
39627  return 0;
39628}
39629_ACEOF
39630rm -f conftest.$ac_objext conftest$ac_exeext
39631if { (ac_try="$ac_link"
39632case "(($ac_try" in
39633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39634  *) ac_try_echo=$ac_try;;
39635esac
39636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39637$as_echo "$ac_try_echo") >&5
39638  (eval "$ac_link") 2>conftest.er1
39639  ac_status=$?
39640  grep -v '^ *+' conftest.er1 >conftest.err
39641  rm -f conftest.er1
39642  cat conftest.err >&5
39643  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39644  (exit $ac_status); } && {
39645	 test -z "$ac_c_werror_flag" ||
39646	 test ! -s conftest.err
39647       } && test -s conftest$ac_exeext && {
39648	 test "$cross_compiling" = yes ||
39649	 $as_test_x conftest$ac_exeext
39650       }; then
39651  ac_cv_lib_readline_rl_completion_matches=yes
39652else
39653  $as_echo "$as_me: failed program was:" >&5
39654sed 's/^/| /' conftest.$ac_ext >&5
39655
39656	ac_cv_lib_readline_rl_completion_matches=no
39657fi
39658
39659rm -rf conftest.dSYM
39660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39661      conftest$ac_exeext conftest.$ac_ext
39662LIBS=$ac_check_lib_save_LIBS
39663fi
39664{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
39665$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
39666if test "x$ac_cv_lib_readline_rl_completion_matches" = x""yes; then
39667
39668cat >>confdefs.h <<\_ACEOF
39669#define HAVE_NEW_LIBREADLINE 1
39670_ACEOF
39671
39672fi
39673
39674
39675# not all readline libs have rl_event_hook or history_list
39676{ $as_echo "$as_me:$LINENO: checking whether rl_event_hook is declared" >&5
39677$as_echo_n "checking whether rl_event_hook is declared... " >&6; }
39678if test "${ac_cv_have_decl_rl_event_hook+set}" = set; then
39679  $as_echo_n "(cached) " >&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#include <readline/readline.h>
39688
39689int
39690main ()
39691{
39692#ifndef rl_event_hook
39693  (void) rl_event_hook;
39694#endif
39695
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39707$as_echo "$ac_try_echo") >&5
39708  (eval "$ac_compile") 2>conftest.er1
39709  ac_status=$?
39710  grep -v '^ *+' conftest.er1 >conftest.err
39711  rm -f conftest.er1
39712  cat conftest.err >&5
39713  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39714  (exit $ac_status); } && {
39715	 test -z "$ac_c_werror_flag" ||
39716	 test ! -s conftest.err
39717       } && test -s conftest.$ac_objext; then
39718  ac_cv_have_decl_rl_event_hook=yes
39719else
39720  $as_echo "$as_me: failed program was:" >&5
39721sed 's/^/| /' conftest.$ac_ext >&5
39722
39723	ac_cv_have_decl_rl_event_hook=no
39724fi
39725
39726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39727fi
39728{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_event_hook" >&5
39729$as_echo "$ac_cv_have_decl_rl_event_hook" >&6; }
39730if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then
39731
39732cat >>confdefs.h <<_ACEOF
39733#define HAVE_DECL_RL_EVENT_HOOK 1
39734_ACEOF
39735
39736
39737else
39738  cat >>confdefs.h <<_ACEOF
39739#define HAVE_DECL_RL_EVENT_HOOK 0
39740_ACEOF
39741
39742
39743fi
39744
39745
39746{ $as_echo "$as_me:$LINENO: checking for history_list in -lreadline" >&5
39747$as_echo_n "checking for history_list in -lreadline... " >&6; }
39748if test "${ac_cv_lib_readline_history_list+set}" = set; then
39749  $as_echo_n "(cached) " >&6
39750else
39751  ac_check_lib_save_LIBS=$LIBS
39752LIBS="-lreadline $TERMLIBS $LIBS"
39753cat >conftest.$ac_ext <<_ACEOF
39754/* confdefs.h.  */
39755_ACEOF
39756cat confdefs.h >>conftest.$ac_ext
39757cat >>conftest.$ac_ext <<_ACEOF
39758/* end confdefs.h.  */
39759
39760/* Override any GCC internal prototype to avoid an error.
39761   Use char because int might match the return type of a GCC
39762   builtin and then its argument prototype would still apply.  */
39763#ifdef __cplusplus
39764extern "C"
39765#endif
39766char history_list ();
39767int
39768main ()
39769{
39770return history_list ();
39771  ;
39772  return 0;
39773}
39774_ACEOF
39775rm -f conftest.$ac_objext conftest$ac_exeext
39776if { (ac_try="$ac_link"
39777case "(($ac_try" in
39778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39779  *) ac_try_echo=$ac_try;;
39780esac
39781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39782$as_echo "$ac_try_echo") >&5
39783  (eval "$ac_link") 2>conftest.er1
39784  ac_status=$?
39785  grep -v '^ *+' conftest.er1 >conftest.err
39786  rm -f conftest.er1
39787  cat conftest.err >&5
39788  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39789  (exit $ac_status); } && {
39790	 test -z "$ac_c_werror_flag" ||
39791	 test ! -s conftest.err
39792       } && test -s conftest$ac_exeext && {
39793	 test "$cross_compiling" = yes ||
39794	 $as_test_x conftest$ac_exeext
39795       }; then
39796  ac_cv_lib_readline_history_list=yes
39797else
39798  $as_echo "$as_me: failed program was:" >&5
39799sed 's/^/| /' conftest.$ac_ext >&5
39800
39801	ac_cv_lib_readline_history_list=no
39802fi
39803
39804rm -rf conftest.dSYM
39805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39806      conftest$ac_exeext conftest.$ac_ext
39807LIBS=$ac_check_lib_save_LIBS
39808fi
39809{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history_list" >&5
39810$as_echo "$ac_cv_lib_readline_history_list" >&6; }
39811if test "x$ac_cv_lib_readline_history_list" = x""yes; then
39812
39813cat >>confdefs.h <<\_ACEOF
39814#define HAVE_HISTORY_LIST 1
39815_ACEOF
39816
39817fi
39818
39819
39820###############################################
39821# test for where we get yp_get_default_domain() from
39822{ $as_echo "$as_me:$LINENO: checking for library containing yp_get_default_domain" >&5
39823$as_echo_n "checking for library containing yp_get_default_domain... " >&6; }
39824if test "${ac_cv_search_yp_get_default_domain+set}" = set; then
39825  $as_echo_n "(cached) " >&6
39826else
39827  ac_func_search_save_LIBS=$LIBS
39828cat >conftest.$ac_ext <<_ACEOF
39829/* confdefs.h.  */
39830_ACEOF
39831cat confdefs.h >>conftest.$ac_ext
39832cat >>conftest.$ac_ext <<_ACEOF
39833/* end confdefs.h.  */
39834
39835/* Override any GCC internal prototype to avoid an error.
39836   Use char because int might match the return type of a GCC
39837   builtin and then its argument prototype would still apply.  */
39838#ifdef __cplusplus
39839extern "C"
39840#endif
39841char yp_get_default_domain ();
39842int
39843main ()
39844{
39845return yp_get_default_domain ();
39846  ;
39847  return 0;
39848}
39849_ACEOF
39850for ac_lib in '' nsl; do
39851  if test -z "$ac_lib"; then
39852    ac_res="none required"
39853  else
39854    ac_res=-l$ac_lib
39855    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39856  fi
39857  rm -f conftest.$ac_objext conftest$ac_exeext
39858if { (ac_try="$ac_link"
39859case "(($ac_try" in
39860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39861  *) ac_try_echo=$ac_try;;
39862esac
39863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39864$as_echo "$ac_try_echo") >&5
39865  (eval "$ac_link") 2>conftest.er1
39866  ac_status=$?
39867  grep -v '^ *+' conftest.er1 >conftest.err
39868  rm -f conftest.er1
39869  cat conftest.err >&5
39870  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39871  (exit $ac_status); } && {
39872	 test -z "$ac_c_werror_flag" ||
39873	 test ! -s conftest.err
39874       } && test -s conftest$ac_exeext && {
39875	 test "$cross_compiling" = yes ||
39876	 $as_test_x conftest$ac_exeext
39877       }; then
39878  ac_cv_search_yp_get_default_domain=$ac_res
39879else
39880  $as_echo "$as_me: failed program was:" >&5
39881sed 's/^/| /' conftest.$ac_ext >&5
39882
39883
39884fi
39885
39886rm -rf conftest.dSYM
39887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39888      conftest$ac_exeext
39889  if test "${ac_cv_search_yp_get_default_domain+set}" = set; then
39890  break
39891fi
39892done
39893if test "${ac_cv_search_yp_get_default_domain+set}" = set; then
39894  :
39895else
39896  ac_cv_search_yp_get_default_domain=no
39897fi
39898rm conftest.$ac_ext
39899LIBS=$ac_func_search_save_LIBS
39900fi
39901{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_yp_get_default_domain" >&5
39902$as_echo "$ac_cv_search_yp_get_default_domain" >&6; }
39903ac_res=$ac_cv_search_yp_get_default_domain
39904if test "$ac_res" != no; then
39905  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39906
39907fi
39908
39909
39910for ac_func in yp_get_default_domain
39911do
39912as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39913{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
39914$as_echo_n "checking for $ac_func... " >&6; }
39915if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39916  $as_echo_n "(cached) " >&6
39917else
39918  cat >conftest.$ac_ext <<_ACEOF
39919/* confdefs.h.  */
39920_ACEOF
39921cat confdefs.h >>conftest.$ac_ext
39922cat >>conftest.$ac_ext <<_ACEOF
39923/* end confdefs.h.  */
39924/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39925   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39926#define $ac_func innocuous_$ac_func
39927
39928/* System header to define __stub macros and hopefully few prototypes,
39929    which can conflict with char $ac_func (); below.
39930    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39931    <limits.h> exists even on freestanding compilers.  */
39932
39933#ifdef __STDC__
39934# include <limits.h>
39935#else
39936# include <assert.h>
39937#endif
39938
39939#undef $ac_func
39940
39941/* Override any GCC internal prototype to avoid an error.
39942   Use char because int might match the return type of a GCC
39943   builtin and then its argument prototype would still apply.  */
39944#ifdef __cplusplus
39945extern "C"
39946#endif
39947char $ac_func ();
39948/* The GNU C library defines this for functions which it implements
39949    to always fail with ENOSYS.  Some functions are actually named
39950    something starting with __ and the normal name is an alias.  */
39951#if defined __stub_$ac_func || defined __stub___$ac_func
39952choke me
39953#endif
39954
39955int
39956main ()
39957{
39958return $ac_func ();
39959  ;
39960  return 0;
39961}
39962_ACEOF
39963rm -f conftest.$ac_objext conftest$ac_exeext
39964if { (ac_try="$ac_link"
39965case "(($ac_try" in
39966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39967  *) ac_try_echo=$ac_try;;
39968esac
39969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39970$as_echo "$ac_try_echo") >&5
39971  (eval "$ac_link") 2>conftest.er1
39972  ac_status=$?
39973  grep -v '^ *+' conftest.er1 >conftest.err
39974  rm -f conftest.er1
39975  cat conftest.err >&5
39976  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39977  (exit $ac_status); } && {
39978	 test -z "$ac_c_werror_flag" ||
39979	 test ! -s conftest.err
39980       } && test -s conftest$ac_exeext && {
39981	 test "$cross_compiling" = yes ||
39982	 $as_test_x conftest$ac_exeext
39983       }; then
39984  eval "$as_ac_var=yes"
39985else
39986  $as_echo "$as_me: failed program was:" >&5
39987sed 's/^/| /' conftest.$ac_ext >&5
39988
39989	eval "$as_ac_var=no"
39990fi
39991
39992rm -rf conftest.dSYM
39993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39994      conftest$ac_exeext conftest.$ac_ext
39995fi
39996ac_res=`eval 'as_val=${'$as_ac_var'}
39997		 $as_echo "$as_val"'`
39998	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39999$as_echo "$ac_res" >&6; }
40000as_val=`eval 'as_val=${'$as_ac_var'}
40001		 $as_echo "$as_val"'`
40002   if test "x$as_val" = x""yes; then
40003  cat >>confdefs.h <<_ACEOF
40004#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40005_ACEOF
40006
40007fi
40008done
40009
40010
40011# Check if we have execl, if not we need to compile smbrun.
40012
40013for ac_func in execl
40014do
40015as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40016{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40017$as_echo_n "checking for $ac_func... " >&6; }
40018if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40019  $as_echo_n "(cached) " >&6
40020else
40021  cat >conftest.$ac_ext <<_ACEOF
40022/* confdefs.h.  */
40023_ACEOF
40024cat confdefs.h >>conftest.$ac_ext
40025cat >>conftest.$ac_ext <<_ACEOF
40026/* end confdefs.h.  */
40027/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40028   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40029#define $ac_func innocuous_$ac_func
40030
40031/* System header to define __stub macros and hopefully few prototypes,
40032    which can conflict with char $ac_func (); below.
40033    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40034    <limits.h> exists even on freestanding compilers.  */
40035
40036#ifdef __STDC__
40037# include <limits.h>
40038#else
40039# include <assert.h>
40040#endif
40041
40042#undef $ac_func
40043
40044/* Override any GCC internal prototype to avoid an error.
40045   Use char because int might match the return type of a GCC
40046   builtin and then its argument prototype would still apply.  */
40047#ifdef __cplusplus
40048extern "C"
40049#endif
40050char $ac_func ();
40051/* The GNU C library defines this for functions which it implements
40052    to always fail with ENOSYS.  Some functions are actually named
40053    something starting with __ and the normal name is an alias.  */
40054#if defined __stub_$ac_func || defined __stub___$ac_func
40055choke me
40056#endif
40057
40058int
40059main ()
40060{
40061return $ac_func ();
40062  ;
40063  return 0;
40064}
40065_ACEOF
40066rm -f conftest.$ac_objext conftest$ac_exeext
40067if { (ac_try="$ac_link"
40068case "(($ac_try" in
40069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40070  *) ac_try_echo=$ac_try;;
40071esac
40072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40073$as_echo "$ac_try_echo") >&5
40074  (eval "$ac_link") 2>conftest.er1
40075  ac_status=$?
40076  grep -v '^ *+' conftest.er1 >conftest.err
40077  rm -f conftest.er1
40078  cat conftest.err >&5
40079  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080  (exit $ac_status); } && {
40081	 test -z "$ac_c_werror_flag" ||
40082	 test ! -s conftest.err
40083       } && test -s conftest$ac_exeext && {
40084	 test "$cross_compiling" = yes ||
40085	 $as_test_x conftest$ac_exeext
40086       }; then
40087  eval "$as_ac_var=yes"
40088else
40089  $as_echo "$as_me: failed program was:" >&5
40090sed 's/^/| /' conftest.$ac_ext >&5
40091
40092	eval "$as_ac_var=no"
40093fi
40094
40095rm -rf conftest.dSYM
40096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40097      conftest$ac_exeext conftest.$ac_ext
40098fi
40099ac_res=`eval 'as_val=${'$as_ac_var'}
40100		 $as_echo "$as_val"'`
40101	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40102$as_echo "$ac_res" >&6; }
40103as_val=`eval 'as_val=${'$as_ac_var'}
40104		 $as_echo "$as_val"'`
40105   if test "x$as_val" = x""yes; then
40106  cat >>confdefs.h <<_ACEOF
40107#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40108_ACEOF
40109
40110fi
40111done
40112
40113if test x"$ac_cv_func_execl" = x"no"; then
40114    EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
40115fi
40116
40117
40118
40119
40120
40121
40122
40123for ac_func in getcwd fchown chmod fchmod mknod mknod64
40124do
40125as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40126{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40127$as_echo_n "checking for $ac_func... " >&6; }
40128if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40129  $as_echo_n "(cached) " >&6
40130else
40131  cat >conftest.$ac_ext <<_ACEOF
40132/* confdefs.h.  */
40133_ACEOF
40134cat confdefs.h >>conftest.$ac_ext
40135cat >>conftest.$ac_ext <<_ACEOF
40136/* end confdefs.h.  */
40137/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40138   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40139#define $ac_func innocuous_$ac_func
40140
40141/* System header to define __stub macros and hopefully few prototypes,
40142    which can conflict with char $ac_func (); below.
40143    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40144    <limits.h> exists even on freestanding compilers.  */
40145
40146#ifdef __STDC__
40147# include <limits.h>
40148#else
40149# include <assert.h>
40150#endif
40151
40152#undef $ac_func
40153
40154/* Override any GCC internal prototype to avoid an error.
40155   Use char because int might match the return type of a GCC
40156   builtin and then its argument prototype would still apply.  */
40157#ifdef __cplusplus
40158extern "C"
40159#endif
40160char $ac_func ();
40161/* The GNU C library defines this for functions which it implements
40162    to always fail with ENOSYS.  Some functions are actually named
40163    something starting with __ and the normal name is an alias.  */
40164#if defined __stub_$ac_func || defined __stub___$ac_func
40165choke me
40166#endif
40167
40168int
40169main ()
40170{
40171return $ac_func ();
40172  ;
40173  return 0;
40174}
40175_ACEOF
40176rm -f conftest.$ac_objext conftest$ac_exeext
40177if { (ac_try="$ac_link"
40178case "(($ac_try" in
40179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40180  *) ac_try_echo=$ac_try;;
40181esac
40182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40183$as_echo "$ac_try_echo") >&5
40184  (eval "$ac_link") 2>conftest.er1
40185  ac_status=$?
40186  grep -v '^ *+' conftest.er1 >conftest.err
40187  rm -f conftest.er1
40188  cat conftest.err >&5
40189  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40190  (exit $ac_status); } && {
40191	 test -z "$ac_c_werror_flag" ||
40192	 test ! -s conftest.err
40193       } && test -s conftest$ac_exeext && {
40194	 test "$cross_compiling" = yes ||
40195	 $as_test_x conftest$ac_exeext
40196       }; then
40197  eval "$as_ac_var=yes"
40198else
40199  $as_echo "$as_me: failed program was:" >&5
40200sed 's/^/| /' conftest.$ac_ext >&5
40201
40202	eval "$as_ac_var=no"
40203fi
40204
40205rm -rf conftest.dSYM
40206rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40207      conftest$ac_exeext conftest.$ac_ext
40208fi
40209ac_res=`eval 'as_val=${'$as_ac_var'}
40210		 $as_echo "$as_val"'`
40211	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40212$as_echo "$ac_res" >&6; }
40213as_val=`eval 'as_val=${'$as_ac_var'}
40214		 $as_echo "$as_val"'`
40215   if test "x$as_val" = x""yes; then
40216  cat >>confdefs.h <<_ACEOF
40217#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40218_ACEOF
40219
40220fi
40221done
40222
40223
40224for ac_func in strtol
40225do
40226as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40227{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40228$as_echo_n "checking for $ac_func... " >&6; }
40229if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40230  $as_echo_n "(cached) " >&6
40231else
40232  cat >conftest.$ac_ext <<_ACEOF
40233/* confdefs.h.  */
40234_ACEOF
40235cat confdefs.h >>conftest.$ac_ext
40236cat >>conftest.$ac_ext <<_ACEOF
40237/* end confdefs.h.  */
40238/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40239   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40240#define $ac_func innocuous_$ac_func
40241
40242/* System header to define __stub macros and hopefully few prototypes,
40243    which can conflict with char $ac_func (); below.
40244    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40245    <limits.h> exists even on freestanding compilers.  */
40246
40247#ifdef __STDC__
40248# include <limits.h>
40249#else
40250# include <assert.h>
40251#endif
40252
40253#undef $ac_func
40254
40255/* Override any GCC internal prototype to avoid an error.
40256   Use char because int might match the return type of a GCC
40257   builtin and then its argument prototype would still apply.  */
40258#ifdef __cplusplus
40259extern "C"
40260#endif
40261char $ac_func ();
40262/* The GNU C library defines this for functions which it implements
40263    to always fail with ENOSYS.  Some functions are actually named
40264    something starting with __ and the normal name is an alias.  */
40265#if defined __stub_$ac_func || defined __stub___$ac_func
40266choke me
40267#endif
40268
40269int
40270main ()
40271{
40272return $ac_func ();
40273  ;
40274  return 0;
40275}
40276_ACEOF
40277rm -f conftest.$ac_objext conftest$ac_exeext
40278if { (ac_try="$ac_link"
40279case "(($ac_try" in
40280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40281  *) ac_try_echo=$ac_try;;
40282esac
40283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40284$as_echo "$ac_try_echo") >&5
40285  (eval "$ac_link") 2>conftest.er1
40286  ac_status=$?
40287  grep -v '^ *+' conftest.er1 >conftest.err
40288  rm -f conftest.er1
40289  cat conftest.err >&5
40290  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40291  (exit $ac_status); } && {
40292	 test -z "$ac_c_werror_flag" ||
40293	 test ! -s conftest.err
40294       } && test -s conftest$ac_exeext && {
40295	 test "$cross_compiling" = yes ||
40296	 $as_test_x conftest$ac_exeext
40297       }; then
40298  eval "$as_ac_var=yes"
40299else
40300  $as_echo "$as_me: failed program was:" >&5
40301sed 's/^/| /' conftest.$ac_ext >&5
40302
40303	eval "$as_ac_var=no"
40304fi
40305
40306rm -rf conftest.dSYM
40307rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40308      conftest$ac_exeext conftest.$ac_ext
40309fi
40310ac_res=`eval 'as_val=${'$as_ac_var'}
40311		 $as_echo "$as_val"'`
40312	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40313$as_echo "$ac_res" >&6; }
40314as_val=`eval 'as_val=${'$as_ac_var'}
40315		 $as_echo "$as_val"'`
40316   if test "x$as_val" = x""yes; then
40317  cat >>confdefs.h <<_ACEOF
40318#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40319_ACEOF
40320
40321fi
40322done
40323
40324
40325
40326for ac_func in strchr chflags
40327do
40328as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40329{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40330$as_echo_n "checking for $ac_func... " >&6; }
40331if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40332  $as_echo_n "(cached) " >&6
40333else
40334  cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40341   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40342#define $ac_func innocuous_$ac_func
40343
40344/* System header to define __stub macros and hopefully few prototypes,
40345    which can conflict with char $ac_func (); below.
40346    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40347    <limits.h> exists even on freestanding compilers.  */
40348
40349#ifdef __STDC__
40350# include <limits.h>
40351#else
40352# include <assert.h>
40353#endif
40354
40355#undef $ac_func
40356
40357/* Override any GCC internal prototype to avoid an error.
40358   Use char because int might match the return type of a GCC
40359   builtin and then its argument prototype would still apply.  */
40360#ifdef __cplusplus
40361extern "C"
40362#endif
40363char $ac_func ();
40364/* The GNU C library defines this for functions which it implements
40365    to always fail with ENOSYS.  Some functions are actually named
40366    something starting with __ and the normal name is an alias.  */
40367#if defined __stub_$ac_func || defined __stub___$ac_func
40368choke me
40369#endif
40370
40371int
40372main ()
40373{
40374return $ac_func ();
40375  ;
40376  return 0;
40377}
40378_ACEOF
40379rm -f conftest.$ac_objext conftest$ac_exeext
40380if { (ac_try="$ac_link"
40381case "(($ac_try" in
40382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40383  *) ac_try_echo=$ac_try;;
40384esac
40385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40386$as_echo "$ac_try_echo") >&5
40387  (eval "$ac_link") 2>conftest.er1
40388  ac_status=$?
40389  grep -v '^ *+' conftest.er1 >conftest.err
40390  rm -f conftest.er1
40391  cat conftest.err >&5
40392  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40393  (exit $ac_status); } && {
40394	 test -z "$ac_c_werror_flag" ||
40395	 test ! -s conftest.err
40396       } && test -s conftest$ac_exeext && {
40397	 test "$cross_compiling" = yes ||
40398	 $as_test_x conftest$ac_exeext
40399       }; then
40400  eval "$as_ac_var=yes"
40401else
40402  $as_echo "$as_me: failed program was:" >&5
40403sed 's/^/| /' conftest.$ac_ext >&5
40404
40405	eval "$as_ac_var=no"
40406fi
40407
40408rm -rf conftest.dSYM
40409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40410      conftest$ac_exeext conftest.$ac_ext
40411fi
40412ac_res=`eval 'as_val=${'$as_ac_var'}
40413		 $as_echo "$as_val"'`
40414	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40415$as_echo "$ac_res" >&6; }
40416as_val=`eval 'as_val=${'$as_ac_var'}
40417		 $as_echo "$as_val"'`
40418   if test "x$as_val" = x""yes; then
40419  cat >>confdefs.h <<_ACEOF
40420#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40421_ACEOF
40422
40423fi
40424done
40425
40426
40427
40428
40429
40430for ac_func in getrlimit fsync fdatasync setpgid
40431do
40432as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40433{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40434$as_echo_n "checking for $ac_func... " >&6; }
40435if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40436  $as_echo_n "(cached) " >&6
40437else
40438  cat >conftest.$ac_ext <<_ACEOF
40439/* confdefs.h.  */
40440_ACEOF
40441cat confdefs.h >>conftest.$ac_ext
40442cat >>conftest.$ac_ext <<_ACEOF
40443/* end confdefs.h.  */
40444/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40445   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40446#define $ac_func innocuous_$ac_func
40447
40448/* System header to define __stub macros and hopefully few prototypes,
40449    which can conflict with char $ac_func (); below.
40450    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40451    <limits.h> exists even on freestanding compilers.  */
40452
40453#ifdef __STDC__
40454# include <limits.h>
40455#else
40456# include <assert.h>
40457#endif
40458
40459#undef $ac_func
40460
40461/* Override any GCC internal prototype to avoid an error.
40462   Use char because int might match the return type of a GCC
40463   builtin and then its argument prototype would still apply.  */
40464#ifdef __cplusplus
40465extern "C"
40466#endif
40467char $ac_func ();
40468/* The GNU C library defines this for functions which it implements
40469    to always fail with ENOSYS.  Some functions are actually named
40470    something starting with __ and the normal name is an alias.  */
40471#if defined __stub_$ac_func || defined __stub___$ac_func
40472choke me
40473#endif
40474
40475int
40476main ()
40477{
40478return $ac_func ();
40479  ;
40480  return 0;
40481}
40482_ACEOF
40483rm -f conftest.$ac_objext conftest$ac_exeext
40484if { (ac_try="$ac_link"
40485case "(($ac_try" in
40486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40487  *) ac_try_echo=$ac_try;;
40488esac
40489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40490$as_echo "$ac_try_echo") >&5
40491  (eval "$ac_link") 2>conftest.er1
40492  ac_status=$?
40493  grep -v '^ *+' conftest.er1 >conftest.err
40494  rm -f conftest.er1
40495  cat conftest.err >&5
40496  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40497  (exit $ac_status); } && {
40498	 test -z "$ac_c_werror_flag" ||
40499	 test ! -s conftest.err
40500       } && test -s conftest$ac_exeext && {
40501	 test "$cross_compiling" = yes ||
40502	 $as_test_x conftest$ac_exeext
40503       }; then
40504  eval "$as_ac_var=yes"
40505else
40506  $as_echo "$as_me: failed program was:" >&5
40507sed 's/^/| /' conftest.$ac_ext >&5
40508
40509	eval "$as_ac_var=no"
40510fi
40511
40512rm -rf conftest.dSYM
40513rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40514      conftest$ac_exeext conftest.$ac_ext
40515fi
40516ac_res=`eval 'as_val=${'$as_ac_var'}
40517		 $as_echo "$as_val"'`
40518	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40519$as_echo "$ac_res" >&6; }
40520as_val=`eval 'as_val=${'$as_ac_var'}
40521		 $as_echo "$as_val"'`
40522   if test "x$as_val" = x""yes; then
40523  cat >>confdefs.h <<_ACEOF
40524#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40525_ACEOF
40526
40527fi
40528done
40529
40530
40531
40532
40533
40534
40535for ac_func in setsid glob strpbrk crypt16 getauthuid
40536do
40537as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40538{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40539$as_echo_n "checking for $ac_func... " >&6; }
40540if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40541  $as_echo_n "(cached) " >&6
40542else
40543  cat >conftest.$ac_ext <<_ACEOF
40544/* confdefs.h.  */
40545_ACEOF
40546cat confdefs.h >>conftest.$ac_ext
40547cat >>conftest.$ac_ext <<_ACEOF
40548/* end confdefs.h.  */
40549/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40550   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40551#define $ac_func innocuous_$ac_func
40552
40553/* System header to define __stub macros and hopefully few prototypes,
40554    which can conflict with char $ac_func (); below.
40555    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40556    <limits.h> exists even on freestanding compilers.  */
40557
40558#ifdef __STDC__
40559# include <limits.h>
40560#else
40561# include <assert.h>
40562#endif
40563
40564#undef $ac_func
40565
40566/* Override any GCC internal prototype to avoid an error.
40567   Use char because int might match the return type of a GCC
40568   builtin and then its argument prototype would still apply.  */
40569#ifdef __cplusplus
40570extern "C"
40571#endif
40572char $ac_func ();
40573/* The GNU C library defines this for functions which it implements
40574    to always fail with ENOSYS.  Some functions are actually named
40575    something starting with __ and the normal name is an alias.  */
40576#if defined __stub_$ac_func || defined __stub___$ac_func
40577choke me
40578#endif
40579
40580int
40581main ()
40582{
40583return $ac_func ();
40584  ;
40585  return 0;
40586}
40587_ACEOF
40588rm -f conftest.$ac_objext conftest$ac_exeext
40589if { (ac_try="$ac_link"
40590case "(($ac_try" in
40591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40592  *) ac_try_echo=$ac_try;;
40593esac
40594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40595$as_echo "$ac_try_echo") >&5
40596  (eval "$ac_link") 2>conftest.er1
40597  ac_status=$?
40598  grep -v '^ *+' conftest.er1 >conftest.err
40599  rm -f conftest.er1
40600  cat conftest.err >&5
40601  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40602  (exit $ac_status); } && {
40603	 test -z "$ac_c_werror_flag" ||
40604	 test ! -s conftest.err
40605       } && test -s conftest$ac_exeext && {
40606	 test "$cross_compiling" = yes ||
40607	 $as_test_x conftest$ac_exeext
40608       }; then
40609  eval "$as_ac_var=yes"
40610else
40611  $as_echo "$as_me: failed program was:" >&5
40612sed 's/^/| /' conftest.$ac_ext >&5
40613
40614	eval "$as_ac_var=no"
40615fi
40616
40617rm -rf conftest.dSYM
40618rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40619      conftest$ac_exeext conftest.$ac_ext
40620fi
40621ac_res=`eval 'as_val=${'$as_ac_var'}
40622		 $as_echo "$as_val"'`
40623	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40624$as_echo "$ac_res" >&6; }
40625as_val=`eval 'as_val=${'$as_ac_var'}
40626		 $as_echo "$as_val"'`
40627   if test "x$as_val" = x""yes; then
40628  cat >>confdefs.h <<_ACEOF
40629#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40630_ACEOF
40631
40632fi
40633done
40634
40635
40636
40637
40638
40639
40640
40641
40642
40643for ac_func in sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
40644do
40645as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40646{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40647$as_echo_n "checking for $ac_func... " >&6; }
40648if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40649  $as_echo_n "(cached) " >&6
40650else
40651  cat >conftest.$ac_ext <<_ACEOF
40652/* confdefs.h.  */
40653_ACEOF
40654cat confdefs.h >>conftest.$ac_ext
40655cat >>conftest.$ac_ext <<_ACEOF
40656/* end confdefs.h.  */
40657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40658   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40659#define $ac_func innocuous_$ac_func
40660
40661/* System header to define __stub macros and hopefully few prototypes,
40662    which can conflict with char $ac_func (); below.
40663    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40664    <limits.h> exists even on freestanding compilers.  */
40665
40666#ifdef __STDC__
40667# include <limits.h>
40668#else
40669# include <assert.h>
40670#endif
40671
40672#undef $ac_func
40673
40674/* Override any GCC internal prototype to avoid an error.
40675   Use char because int might match the return type of a GCC
40676   builtin and then its argument prototype would still apply.  */
40677#ifdef __cplusplus
40678extern "C"
40679#endif
40680char $ac_func ();
40681/* The GNU C library defines this for functions which it implements
40682    to always fail with ENOSYS.  Some functions are actually named
40683    something starting with __ and the normal name is an alias.  */
40684#if defined __stub_$ac_func || defined __stub___$ac_func
40685choke me
40686#endif
40687
40688int
40689main ()
40690{
40691return $ac_func ();
40692  ;
40693  return 0;
40694}
40695_ACEOF
40696rm -f conftest.$ac_objext conftest$ac_exeext
40697if { (ac_try="$ac_link"
40698case "(($ac_try" in
40699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40700  *) ac_try_echo=$ac_try;;
40701esac
40702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40703$as_echo "$ac_try_echo") >&5
40704  (eval "$ac_link") 2>conftest.er1
40705  ac_status=$?
40706  grep -v '^ *+' conftest.er1 >conftest.err
40707  rm -f conftest.er1
40708  cat conftest.err >&5
40709  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40710  (exit $ac_status); } && {
40711	 test -z "$ac_c_werror_flag" ||
40712	 test ! -s conftest.err
40713       } && test -s conftest$ac_exeext && {
40714	 test "$cross_compiling" = yes ||
40715	 $as_test_x conftest$ac_exeext
40716       }; then
40717  eval "$as_ac_var=yes"
40718else
40719  $as_echo "$as_me: failed program was:" >&5
40720sed 's/^/| /' conftest.$ac_ext >&5
40721
40722	eval "$as_ac_var=no"
40723fi
40724
40725rm -rf conftest.dSYM
40726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40727      conftest$ac_exeext conftest.$ac_ext
40728fi
40729ac_res=`eval 'as_val=${'$as_ac_var'}
40730		 $as_echo "$as_val"'`
40731	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40732$as_echo "$ac_res" >&6; }
40733as_val=`eval 'as_val=${'$as_ac_var'}
40734		 $as_echo "$as_val"'`
40735   if test "x$as_val" = x""yes; then
40736  cat >>confdefs.h <<_ACEOF
40737#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40738_ACEOF
40739
40740fi
40741done
40742
40743
40744
40745
40746
40747
40748
40749
40750for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
40751do
40752as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40753{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40754$as_echo_n "checking for $ac_func... " >&6; }
40755if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40756  $as_echo_n "(cached) " >&6
40757else
40758  cat >conftest.$ac_ext <<_ACEOF
40759/* confdefs.h.  */
40760_ACEOF
40761cat confdefs.h >>conftest.$ac_ext
40762cat >>conftest.$ac_ext <<_ACEOF
40763/* end confdefs.h.  */
40764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40765   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40766#define $ac_func innocuous_$ac_func
40767
40768/* System header to define __stub macros and hopefully few prototypes,
40769    which can conflict with char $ac_func (); below.
40770    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40771    <limits.h> exists even on freestanding compilers.  */
40772
40773#ifdef __STDC__
40774# include <limits.h>
40775#else
40776# include <assert.h>
40777#endif
40778
40779#undef $ac_func
40780
40781/* Override any GCC internal prototype to avoid an error.
40782   Use char because int might match the return type of a GCC
40783   builtin and then its argument prototype would still apply.  */
40784#ifdef __cplusplus
40785extern "C"
40786#endif
40787char $ac_func ();
40788/* The GNU C library defines this for functions which it implements
40789    to always fail with ENOSYS.  Some functions are actually named
40790    something starting with __ and the normal name is an alias.  */
40791#if defined __stub_$ac_func || defined __stub___$ac_func
40792choke me
40793#endif
40794
40795int
40796main ()
40797{
40798return $ac_func ();
40799  ;
40800  return 0;
40801}
40802_ACEOF
40803rm -f conftest.$ac_objext conftest$ac_exeext
40804if { (ac_try="$ac_link"
40805case "(($ac_try" in
40806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40807  *) ac_try_echo=$ac_try;;
40808esac
40809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40810$as_echo "$ac_try_echo") >&5
40811  (eval "$ac_link") 2>conftest.er1
40812  ac_status=$?
40813  grep -v '^ *+' conftest.er1 >conftest.err
40814  rm -f conftest.er1
40815  cat conftest.err >&5
40816  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40817  (exit $ac_status); } && {
40818	 test -z "$ac_c_werror_flag" ||
40819	 test ! -s conftest.err
40820       } && test -s conftest$ac_exeext && {
40821	 test "$cross_compiling" = yes ||
40822	 $as_test_x conftest$ac_exeext
40823       }; then
40824  eval "$as_ac_var=yes"
40825else
40826  $as_echo "$as_me: failed program was:" >&5
40827sed 's/^/| /' conftest.$ac_ext >&5
40828
40829	eval "$as_ac_var=no"
40830fi
40831
40832rm -rf conftest.dSYM
40833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40834      conftest$ac_exeext conftest.$ac_ext
40835fi
40836ac_res=`eval 'as_val=${'$as_ac_var'}
40837		 $as_echo "$as_val"'`
40838	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40839$as_echo "$ac_res" >&6; }
40840as_val=`eval 'as_val=${'$as_ac_var'}
40841		 $as_echo "$as_val"'`
40842   if test "x$as_val" = x""yes; then
40843  cat >>confdefs.h <<_ACEOF
40844#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40845_ACEOF
40846
40847fi
40848done
40849
40850
40851
40852
40853
40854
40855
40856
40857for ac_func in setpriv setgidx setuidx setgroups sysconf stat64 fstat64
40858do
40859as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40860{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40861$as_echo_n "checking for $ac_func... " >&6; }
40862if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40863  $as_echo_n "(cached) " >&6
40864else
40865  cat >conftest.$ac_ext <<_ACEOF
40866/* confdefs.h.  */
40867_ACEOF
40868cat confdefs.h >>conftest.$ac_ext
40869cat >>conftest.$ac_ext <<_ACEOF
40870/* end confdefs.h.  */
40871/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40872   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40873#define $ac_func innocuous_$ac_func
40874
40875/* System header to define __stub macros and hopefully few prototypes,
40876    which can conflict with char $ac_func (); below.
40877    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40878    <limits.h> exists even on freestanding compilers.  */
40879
40880#ifdef __STDC__
40881# include <limits.h>
40882#else
40883# include <assert.h>
40884#endif
40885
40886#undef $ac_func
40887
40888/* Override any GCC internal prototype to avoid an error.
40889   Use char because int might match the return type of a GCC
40890   builtin and then its argument prototype would still apply.  */
40891#ifdef __cplusplus
40892extern "C"
40893#endif
40894char $ac_func ();
40895/* The GNU C library defines this for functions which it implements
40896    to always fail with ENOSYS.  Some functions are actually named
40897    something starting with __ and the normal name is an alias.  */
40898#if defined __stub_$ac_func || defined __stub___$ac_func
40899choke me
40900#endif
40901
40902int
40903main ()
40904{
40905return $ac_func ();
40906  ;
40907  return 0;
40908}
40909_ACEOF
40910rm -f conftest.$ac_objext conftest$ac_exeext
40911if { (ac_try="$ac_link"
40912case "(($ac_try" in
40913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40914  *) ac_try_echo=$ac_try;;
40915esac
40916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40917$as_echo "$ac_try_echo") >&5
40918  (eval "$ac_link") 2>conftest.er1
40919  ac_status=$?
40920  grep -v '^ *+' conftest.er1 >conftest.err
40921  rm -f conftest.er1
40922  cat conftest.err >&5
40923  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40924  (exit $ac_status); } && {
40925	 test -z "$ac_c_werror_flag" ||
40926	 test ! -s conftest.err
40927       } && test -s conftest$ac_exeext && {
40928	 test "$cross_compiling" = yes ||
40929	 $as_test_x conftest$ac_exeext
40930       }; then
40931  eval "$as_ac_var=yes"
40932else
40933  $as_echo "$as_me: failed program was:" >&5
40934sed 's/^/| /' conftest.$ac_ext >&5
40935
40936	eval "$as_ac_var=no"
40937fi
40938
40939rm -rf conftest.dSYM
40940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40941      conftest$ac_exeext conftest.$ac_ext
40942fi
40943ac_res=`eval 'as_val=${'$as_ac_var'}
40944		 $as_echo "$as_val"'`
40945	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40946$as_echo "$ac_res" >&6; }
40947as_val=`eval 'as_val=${'$as_ac_var'}
40948		 $as_echo "$as_val"'`
40949   if test "x$as_val" = x""yes; then
40950  cat >>confdefs.h <<_ACEOF
40951#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40952_ACEOF
40953
40954fi
40955done
40956
40957
40958
40959
40960
40961
40962
40963
40964
40965for ac_func in lstat64 fopen64 atexit grantpt lseek64 ftruncate64 posix_fallocate posix_fallocate64
40966do
40967as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40968{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40969$as_echo_n "checking for $ac_func... " >&6; }
40970if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40971  $as_echo_n "(cached) " >&6
40972else
40973  cat >conftest.$ac_ext <<_ACEOF
40974/* confdefs.h.  */
40975_ACEOF
40976cat confdefs.h >>conftest.$ac_ext
40977cat >>conftest.$ac_ext <<_ACEOF
40978/* end confdefs.h.  */
40979/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40980   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40981#define $ac_func innocuous_$ac_func
40982
40983/* System header to define __stub macros and hopefully few prototypes,
40984    which can conflict with char $ac_func (); below.
40985    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40986    <limits.h> exists even on freestanding compilers.  */
40987
40988#ifdef __STDC__
40989# include <limits.h>
40990#else
40991# include <assert.h>
40992#endif
40993
40994#undef $ac_func
40995
40996/* Override any GCC internal prototype to avoid an error.
40997   Use char because int might match the return type of a GCC
40998   builtin and then its argument prototype would still apply.  */
40999#ifdef __cplusplus
41000extern "C"
41001#endif
41002char $ac_func ();
41003/* The GNU C library defines this for functions which it implements
41004    to always fail with ENOSYS.  Some functions are actually named
41005    something starting with __ and the normal name is an alias.  */
41006#if defined __stub_$ac_func || defined __stub___$ac_func
41007choke me
41008#endif
41009
41010int
41011main ()
41012{
41013return $ac_func ();
41014  ;
41015  return 0;
41016}
41017_ACEOF
41018rm -f conftest.$ac_objext conftest$ac_exeext
41019if { (ac_try="$ac_link"
41020case "(($ac_try" in
41021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41022  *) ac_try_echo=$ac_try;;
41023esac
41024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41025$as_echo "$ac_try_echo") >&5
41026  (eval "$ac_link") 2>conftest.er1
41027  ac_status=$?
41028  grep -v '^ *+' conftest.er1 >conftest.err
41029  rm -f conftest.er1
41030  cat conftest.err >&5
41031  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032  (exit $ac_status); } && {
41033	 test -z "$ac_c_werror_flag" ||
41034	 test ! -s conftest.err
41035       } && test -s conftest$ac_exeext && {
41036	 test "$cross_compiling" = yes ||
41037	 $as_test_x conftest$ac_exeext
41038       }; then
41039  eval "$as_ac_var=yes"
41040else
41041  $as_echo "$as_me: failed program was:" >&5
41042sed 's/^/| /' conftest.$ac_ext >&5
41043
41044	eval "$as_ac_var=no"
41045fi
41046
41047rm -rf conftest.dSYM
41048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41049      conftest$ac_exeext conftest.$ac_ext
41050fi
41051ac_res=`eval 'as_val=${'$as_ac_var'}
41052		 $as_echo "$as_val"'`
41053	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41054$as_echo "$ac_res" >&6; }
41055as_val=`eval 'as_val=${'$as_ac_var'}
41056		 $as_echo "$as_val"'`
41057   if test "x$as_val" = x""yes; then
41058  cat >>confdefs.h <<_ACEOF
41059#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41060_ACEOF
41061
41062fi
41063done
41064
41065
41066
41067
41068
41069
41070
41071for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam
41072do
41073as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41074{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41075$as_echo_n "checking for $ac_func... " >&6; }
41076if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41077  $as_echo_n "(cached) " >&6
41078else
41079  cat >conftest.$ac_ext <<_ACEOF
41080/* confdefs.h.  */
41081_ACEOF
41082cat confdefs.h >>conftest.$ac_ext
41083cat >>conftest.$ac_ext <<_ACEOF
41084/* end confdefs.h.  */
41085/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41086   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41087#define $ac_func innocuous_$ac_func
41088
41089/* System header to define __stub macros and hopefully few prototypes,
41090    which can conflict with char $ac_func (); below.
41091    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41092    <limits.h> exists even on freestanding compilers.  */
41093
41094#ifdef __STDC__
41095# include <limits.h>
41096#else
41097# include <assert.h>
41098#endif
41099
41100#undef $ac_func
41101
41102/* Override any GCC internal prototype to avoid an error.
41103   Use char because int might match the return type of a GCC
41104   builtin and then its argument prototype would still apply.  */
41105#ifdef __cplusplus
41106extern "C"
41107#endif
41108char $ac_func ();
41109/* The GNU C library defines this for functions which it implements
41110    to always fail with ENOSYS.  Some functions are actually named
41111    something starting with __ and the normal name is an alias.  */
41112#if defined __stub_$ac_func || defined __stub___$ac_func
41113choke me
41114#endif
41115
41116int
41117main ()
41118{
41119return $ac_func ();
41120  ;
41121  return 0;
41122}
41123_ACEOF
41124rm -f conftest.$ac_objext conftest$ac_exeext
41125if { (ac_try="$ac_link"
41126case "(($ac_try" in
41127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41128  *) ac_try_echo=$ac_try;;
41129esac
41130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41131$as_echo "$ac_try_echo") >&5
41132  (eval "$ac_link") 2>conftest.er1
41133  ac_status=$?
41134  grep -v '^ *+' conftest.er1 >conftest.err
41135  rm -f conftest.er1
41136  cat conftest.err >&5
41137  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41138  (exit $ac_status); } && {
41139	 test -z "$ac_c_werror_flag" ||
41140	 test ! -s conftest.err
41141       } && test -s conftest$ac_exeext && {
41142	 test "$cross_compiling" = yes ||
41143	 $as_test_x conftest$ac_exeext
41144       }; then
41145  eval "$as_ac_var=yes"
41146else
41147  $as_echo "$as_me: failed program was:" >&5
41148sed 's/^/| /' conftest.$ac_ext >&5
41149
41150	eval "$as_ac_var=no"
41151fi
41152
41153rm -rf conftest.dSYM
41154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41155      conftest$ac_exeext conftest.$ac_ext
41156fi
41157ac_res=`eval 'as_val=${'$as_ac_var'}
41158		 $as_echo "$as_val"'`
41159	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41160$as_echo "$ac_res" >&6; }
41161as_val=`eval 'as_val=${'$as_ac_var'}
41162		 $as_echo "$as_val"'`
41163   if test "x$as_val" = x""yes; then
41164  cat >>confdefs.h <<_ACEOF
41165#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41166_ACEOF
41167
41168fi
41169done
41170
41171
41172
41173
41174
41175
41176
41177for ac_func in opendir64 readdir64 seekdir64 telldir64 rewinddir64 closedir64
41178do
41179as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41180{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41181$as_echo_n "checking for $ac_func... " >&6; }
41182if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41183  $as_echo_n "(cached) " >&6
41184else
41185  cat >conftest.$ac_ext <<_ACEOF
41186/* confdefs.h.  */
41187_ACEOF
41188cat confdefs.h >>conftest.$ac_ext
41189cat >>conftest.$ac_ext <<_ACEOF
41190/* end confdefs.h.  */
41191/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41192   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41193#define $ac_func innocuous_$ac_func
41194
41195/* System header to define __stub macros and hopefully few prototypes,
41196    which can conflict with char $ac_func (); below.
41197    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41198    <limits.h> exists even on freestanding compilers.  */
41199
41200#ifdef __STDC__
41201# include <limits.h>
41202#else
41203# include <assert.h>
41204#endif
41205
41206#undef $ac_func
41207
41208/* Override any GCC internal prototype to avoid an error.
41209   Use char because int might match the return type of a GCC
41210   builtin and then its argument prototype would still apply.  */
41211#ifdef __cplusplus
41212extern "C"
41213#endif
41214char $ac_func ();
41215/* The GNU C library defines this for functions which it implements
41216    to always fail with ENOSYS.  Some functions are actually named
41217    something starting with __ and the normal name is an alias.  */
41218#if defined __stub_$ac_func || defined __stub___$ac_func
41219choke me
41220#endif
41221
41222int
41223main ()
41224{
41225return $ac_func ();
41226  ;
41227  return 0;
41228}
41229_ACEOF
41230rm -f conftest.$ac_objext conftest$ac_exeext
41231if { (ac_try="$ac_link"
41232case "(($ac_try" in
41233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41234  *) ac_try_echo=$ac_try;;
41235esac
41236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41237$as_echo "$ac_try_echo") >&5
41238  (eval "$ac_link") 2>conftest.er1
41239  ac_status=$?
41240  grep -v '^ *+' conftest.er1 >conftest.err
41241  rm -f conftest.er1
41242  cat conftest.err >&5
41243  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41244  (exit $ac_status); } && {
41245	 test -z "$ac_c_werror_flag" ||
41246	 test ! -s conftest.err
41247       } && test -s conftest$ac_exeext && {
41248	 test "$cross_compiling" = yes ||
41249	 $as_test_x conftest$ac_exeext
41250       }; then
41251  eval "$as_ac_var=yes"
41252else
41253  $as_echo "$as_me: failed program was:" >&5
41254sed 's/^/| /' conftest.$ac_ext >&5
41255
41256	eval "$as_ac_var=no"
41257fi
41258
41259rm -rf conftest.dSYM
41260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41261      conftest$ac_exeext conftest.$ac_ext
41262fi
41263ac_res=`eval 'as_val=${'$as_ac_var'}
41264		 $as_echo "$as_val"'`
41265	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41266$as_echo "$ac_res" >&6; }
41267as_val=`eval 'as_val=${'$as_ac_var'}
41268		 $as_echo "$as_val"'`
41269   if test "x$as_val" = x""yes; then
41270  cat >>confdefs.h <<_ACEOF
41271#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41272_ACEOF
41273
41274fi
41275done
41276
41277
41278for ac_func in getpwent_r
41279do
41280as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41281{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41282$as_echo_n "checking for $ac_func... " >&6; }
41283if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41284  $as_echo_n "(cached) " >&6
41285else
41286  cat >conftest.$ac_ext <<_ACEOF
41287/* confdefs.h.  */
41288_ACEOF
41289cat confdefs.h >>conftest.$ac_ext
41290cat >>conftest.$ac_ext <<_ACEOF
41291/* end confdefs.h.  */
41292/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41293   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41294#define $ac_func innocuous_$ac_func
41295
41296/* System header to define __stub macros and hopefully few prototypes,
41297    which can conflict with char $ac_func (); below.
41298    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41299    <limits.h> exists even on freestanding compilers.  */
41300
41301#ifdef __STDC__
41302# include <limits.h>
41303#else
41304# include <assert.h>
41305#endif
41306
41307#undef $ac_func
41308
41309/* Override any GCC internal prototype to avoid an error.
41310   Use char because int might match the return type of a GCC
41311   builtin and then its argument prototype would still apply.  */
41312#ifdef __cplusplus
41313extern "C"
41314#endif
41315char $ac_func ();
41316/* The GNU C library defines this for functions which it implements
41317    to always fail with ENOSYS.  Some functions are actually named
41318    something starting with __ and the normal name is an alias.  */
41319#if defined __stub_$ac_func || defined __stub___$ac_func
41320choke me
41321#endif
41322
41323int
41324main ()
41325{
41326return $ac_func ();
41327  ;
41328  return 0;
41329}
41330_ACEOF
41331rm -f conftest.$ac_objext conftest$ac_exeext
41332if { (ac_try="$ac_link"
41333case "(($ac_try" in
41334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41335  *) ac_try_echo=$ac_try;;
41336esac
41337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41338$as_echo "$ac_try_echo") >&5
41339  (eval "$ac_link") 2>conftest.er1
41340  ac_status=$?
41341  grep -v '^ *+' conftest.er1 >conftest.err
41342  rm -f conftest.er1
41343  cat conftest.err >&5
41344  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41345  (exit $ac_status); } && {
41346	 test -z "$ac_c_werror_flag" ||
41347	 test ! -s conftest.err
41348       } && test -s conftest$ac_exeext && {
41349	 test "$cross_compiling" = yes ||
41350	 $as_test_x conftest$ac_exeext
41351       }; then
41352  eval "$as_ac_var=yes"
41353else
41354  $as_echo "$as_me: failed program was:" >&5
41355sed 's/^/| /' conftest.$ac_ext >&5
41356
41357	eval "$as_ac_var=no"
41358fi
41359
41360rm -rf conftest.dSYM
41361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41362      conftest$ac_exeext conftest.$ac_ext
41363fi
41364ac_res=`eval 'as_val=${'$as_ac_var'}
41365		 $as_echo "$as_val"'`
41366	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41367$as_echo "$ac_res" >&6; }
41368as_val=`eval 'as_val=${'$as_ac_var'}
41369		 $as_echo "$as_val"'`
41370   if test "x$as_val" = x""yes; then
41371  cat >>confdefs.h <<_ACEOF
41372#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41373_ACEOF
41374
41375fi
41376done
41377
41378
41379for ac_func in getdents64
41380do
41381as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41382{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41383$as_echo_n "checking for $ac_func... " >&6; }
41384if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41385  $as_echo_n "(cached) " >&6
41386else
41387  cat >conftest.$ac_ext <<_ACEOF
41388/* confdefs.h.  */
41389_ACEOF
41390cat confdefs.h >>conftest.$ac_ext
41391cat >>conftest.$ac_ext <<_ACEOF
41392/* end confdefs.h.  */
41393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41394   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41395#define $ac_func innocuous_$ac_func
41396
41397/* System header to define __stub macros and hopefully few prototypes,
41398    which can conflict with char $ac_func (); below.
41399    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41400    <limits.h> exists even on freestanding compilers.  */
41401
41402#ifdef __STDC__
41403# include <limits.h>
41404#else
41405# include <assert.h>
41406#endif
41407
41408#undef $ac_func
41409
41410/* Override any GCC internal prototype to avoid an error.
41411   Use char because int might match the return type of a GCC
41412   builtin and then its argument prototype would still apply.  */
41413#ifdef __cplusplus
41414extern "C"
41415#endif
41416char $ac_func ();
41417/* The GNU C library defines this for functions which it implements
41418    to always fail with ENOSYS.  Some functions are actually named
41419    something starting with __ and the normal name is an alias.  */
41420#if defined __stub_$ac_func || defined __stub___$ac_func
41421choke me
41422#endif
41423
41424int
41425main ()
41426{
41427return $ac_func ();
41428  ;
41429  return 0;
41430}
41431_ACEOF
41432rm -f conftest.$ac_objext conftest$ac_exeext
41433if { (ac_try="$ac_link"
41434case "(($ac_try" in
41435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41436  *) ac_try_echo=$ac_try;;
41437esac
41438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41439$as_echo "$ac_try_echo") >&5
41440  (eval "$ac_link") 2>conftest.er1
41441  ac_status=$?
41442  grep -v '^ *+' conftest.er1 >conftest.err
41443  rm -f conftest.er1
41444  cat conftest.err >&5
41445  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41446  (exit $ac_status); } && {
41447	 test -z "$ac_c_werror_flag" ||
41448	 test ! -s conftest.err
41449       } && test -s conftest$ac_exeext && {
41450	 test "$cross_compiling" = yes ||
41451	 $as_test_x conftest$ac_exeext
41452       }; then
41453  eval "$as_ac_var=yes"
41454else
41455  $as_echo "$as_me: failed program was:" >&5
41456sed 's/^/| /' conftest.$ac_ext >&5
41457
41458	eval "$as_ac_var=no"
41459fi
41460
41461rm -rf conftest.dSYM
41462rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41463      conftest$ac_exeext conftest.$ac_ext
41464fi
41465ac_res=`eval 'as_val=${'$as_ac_var'}
41466		 $as_echo "$as_val"'`
41467	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41468$as_echo "$ac_res" >&6; }
41469as_val=`eval 'as_val=${'$as_ac_var'}
41470		 $as_echo "$as_val"'`
41471   if test "x$as_val" = x""yes; then
41472  cat >>confdefs.h <<_ACEOF
41473#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41474_ACEOF
41475
41476fi
41477done
41478
41479
41480
41481
41482
41483for ac_func in setenv strcasecmp fcvt fcvtl
41484do
41485as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41486{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41487$as_echo_n "checking for $ac_func... " >&6; }
41488if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41489  $as_echo_n "(cached) " >&6
41490else
41491  cat >conftest.$ac_ext <<_ACEOF
41492/* confdefs.h.  */
41493_ACEOF
41494cat confdefs.h >>conftest.$ac_ext
41495cat >>conftest.$ac_ext <<_ACEOF
41496/* end confdefs.h.  */
41497/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41498   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41499#define $ac_func innocuous_$ac_func
41500
41501/* System header to define __stub macros and hopefully few prototypes,
41502    which can conflict with char $ac_func (); below.
41503    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41504    <limits.h> exists even on freestanding compilers.  */
41505
41506#ifdef __STDC__
41507# include <limits.h>
41508#else
41509# include <assert.h>
41510#endif
41511
41512#undef $ac_func
41513
41514/* Override any GCC internal prototype to avoid an error.
41515   Use char because int might match the return type of a GCC
41516   builtin and then its argument prototype would still apply.  */
41517#ifdef __cplusplus
41518extern "C"
41519#endif
41520char $ac_func ();
41521/* The GNU C library defines this for functions which it implements
41522    to always fail with ENOSYS.  Some functions are actually named
41523    something starting with __ and the normal name is an alias.  */
41524#if defined __stub_$ac_func || defined __stub___$ac_func
41525choke me
41526#endif
41527
41528int
41529main ()
41530{
41531return $ac_func ();
41532  ;
41533  return 0;
41534}
41535_ACEOF
41536rm -f conftest.$ac_objext conftest$ac_exeext
41537if { (ac_try="$ac_link"
41538case "(($ac_try" in
41539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41540  *) ac_try_echo=$ac_try;;
41541esac
41542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41543$as_echo "$ac_try_echo") >&5
41544  (eval "$ac_link") 2>conftest.er1
41545  ac_status=$?
41546  grep -v '^ *+' conftest.er1 >conftest.err
41547  rm -f conftest.er1
41548  cat conftest.err >&5
41549  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41550  (exit $ac_status); } && {
41551	 test -z "$ac_c_werror_flag" ||
41552	 test ! -s conftest.err
41553       } && test -s conftest$ac_exeext && {
41554	 test "$cross_compiling" = yes ||
41555	 $as_test_x conftest$ac_exeext
41556       }; then
41557  eval "$as_ac_var=yes"
41558else
41559  $as_echo "$as_me: failed program was:" >&5
41560sed 's/^/| /' conftest.$ac_ext >&5
41561
41562	eval "$as_ac_var=no"
41563fi
41564
41565rm -rf conftest.dSYM
41566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41567      conftest$ac_exeext conftest.$ac_ext
41568fi
41569ac_res=`eval 'as_val=${'$as_ac_var'}
41570		 $as_echo "$as_val"'`
41571	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41572$as_echo "$ac_res" >&6; }
41573as_val=`eval 'as_val=${'$as_ac_var'}
41574		 $as_echo "$as_val"'`
41575   if test "x$as_val" = x""yes; then
41576  cat >>confdefs.h <<_ACEOF
41577#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41578_ACEOF
41579
41580fi
41581done
41582
41583
41584
41585
41586for ac_func in syslog vsyslog timegm
41587do
41588as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41589{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41590$as_echo_n "checking for $ac_func... " >&6; }
41591if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41592  $as_echo_n "(cached) " >&6
41593else
41594  cat >conftest.$ac_ext <<_ACEOF
41595/* confdefs.h.  */
41596_ACEOF
41597cat confdefs.h >>conftest.$ac_ext
41598cat >>conftest.$ac_ext <<_ACEOF
41599/* end confdefs.h.  */
41600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41601   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41602#define $ac_func innocuous_$ac_func
41603
41604/* System header to define __stub macros and hopefully few prototypes,
41605    which can conflict with char $ac_func (); below.
41606    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41607    <limits.h> exists even on freestanding compilers.  */
41608
41609#ifdef __STDC__
41610# include <limits.h>
41611#else
41612# include <assert.h>
41613#endif
41614
41615#undef $ac_func
41616
41617/* Override any GCC internal prototype to avoid an error.
41618   Use char because int might match the return type of a GCC
41619   builtin and then its argument prototype would still apply.  */
41620#ifdef __cplusplus
41621extern "C"
41622#endif
41623char $ac_func ();
41624/* The GNU C library defines this for functions which it implements
41625    to always fail with ENOSYS.  Some functions are actually named
41626    something starting with __ and the normal name is an alias.  */
41627#if defined __stub_$ac_func || defined __stub___$ac_func
41628choke me
41629#endif
41630
41631int
41632main ()
41633{
41634return $ac_func ();
41635  ;
41636  return 0;
41637}
41638_ACEOF
41639rm -f conftest.$ac_objext conftest$ac_exeext
41640if { (ac_try="$ac_link"
41641case "(($ac_try" in
41642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41643  *) ac_try_echo=$ac_try;;
41644esac
41645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41646$as_echo "$ac_try_echo") >&5
41647  (eval "$ac_link") 2>conftest.er1
41648  ac_status=$?
41649  grep -v '^ *+' conftest.er1 >conftest.err
41650  rm -f conftest.er1
41651  cat conftest.err >&5
41652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41653  (exit $ac_status); } && {
41654	 test -z "$ac_c_werror_flag" ||
41655	 test ! -s conftest.err
41656       } && test -s conftest$ac_exeext && {
41657	 test "$cross_compiling" = yes ||
41658	 $as_test_x conftest$ac_exeext
41659       }; then
41660  eval "$as_ac_var=yes"
41661else
41662  $as_echo "$as_me: failed program was:" >&5
41663sed 's/^/| /' conftest.$ac_ext >&5
41664
41665	eval "$as_ac_var=no"
41666fi
41667
41668rm -rf conftest.dSYM
41669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41670      conftest$ac_exeext conftest.$ac_ext
41671fi
41672ac_res=`eval 'as_val=${'$as_ac_var'}
41673		 $as_echo "$as_val"'`
41674	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41675$as_echo "$ac_res" >&6; }
41676as_val=`eval 'as_val=${'$as_ac_var'}
41677		 $as_echo "$as_val"'`
41678   if test "x$as_val" = x""yes; then
41679  cat >>confdefs.h <<_ACEOF
41680#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41681_ACEOF
41682
41683fi
41684done
41685
41686
41687
41688for ac_func in setlocale nl_langinfo
41689do
41690as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41691{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41692$as_echo_n "checking for $ac_func... " >&6; }
41693if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41694  $as_echo_n "(cached) " >&6
41695else
41696  cat >conftest.$ac_ext <<_ACEOF
41697/* confdefs.h.  */
41698_ACEOF
41699cat confdefs.h >>conftest.$ac_ext
41700cat >>conftest.$ac_ext <<_ACEOF
41701/* end confdefs.h.  */
41702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41703   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41704#define $ac_func innocuous_$ac_func
41705
41706/* System header to define __stub macros and hopefully few prototypes,
41707    which can conflict with char $ac_func (); below.
41708    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41709    <limits.h> exists even on freestanding compilers.  */
41710
41711#ifdef __STDC__
41712# include <limits.h>
41713#else
41714# include <assert.h>
41715#endif
41716
41717#undef $ac_func
41718
41719/* Override any GCC internal prototype to avoid an error.
41720   Use char because int might match the return type of a GCC
41721   builtin and then its argument prototype would still apply.  */
41722#ifdef __cplusplus
41723extern "C"
41724#endif
41725char $ac_func ();
41726/* The GNU C library defines this for functions which it implements
41727    to always fail with ENOSYS.  Some functions are actually named
41728    something starting with __ and the normal name is an alias.  */
41729#if defined __stub_$ac_func || defined __stub___$ac_func
41730choke me
41731#endif
41732
41733int
41734main ()
41735{
41736return $ac_func ();
41737  ;
41738  return 0;
41739}
41740_ACEOF
41741rm -f conftest.$ac_objext conftest$ac_exeext
41742if { (ac_try="$ac_link"
41743case "(($ac_try" in
41744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41745  *) ac_try_echo=$ac_try;;
41746esac
41747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41748$as_echo "$ac_try_echo") >&5
41749  (eval "$ac_link") 2>conftest.er1
41750  ac_status=$?
41751  grep -v '^ *+' conftest.er1 >conftest.err
41752  rm -f conftest.er1
41753  cat conftest.err >&5
41754  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41755  (exit $ac_status); } && {
41756	 test -z "$ac_c_werror_flag" ||
41757	 test ! -s conftest.err
41758       } && test -s conftest$ac_exeext && {
41759	 test "$cross_compiling" = yes ||
41760	 $as_test_x conftest$ac_exeext
41761       }; then
41762  eval "$as_ac_var=yes"
41763else
41764  $as_echo "$as_me: failed program was:" >&5
41765sed 's/^/| /' conftest.$ac_ext >&5
41766
41767	eval "$as_ac_var=no"
41768fi
41769
41770rm -rf conftest.dSYM
41771rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41772      conftest$ac_exeext conftest.$ac_ext
41773fi
41774ac_res=`eval 'as_val=${'$as_ac_var'}
41775		 $as_echo "$as_val"'`
41776	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41777$as_echo "$ac_res" >&6; }
41778as_val=`eval 'as_val=${'$as_ac_var'}
41779		 $as_echo "$as_val"'`
41780   if test "x$as_val" = x""yes; then
41781  cat >>confdefs.h <<_ACEOF
41782#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41783_ACEOF
41784
41785fi
41786done
41787
41788
41789for ac_func in nanosleep
41790do
41791as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41792{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41793$as_echo_n "checking for $ac_func... " >&6; }
41794if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41795  $as_echo_n "(cached) " >&6
41796else
41797  cat >conftest.$ac_ext <<_ACEOF
41798/* confdefs.h.  */
41799_ACEOF
41800cat confdefs.h >>conftest.$ac_ext
41801cat >>conftest.$ac_ext <<_ACEOF
41802/* end confdefs.h.  */
41803/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41804   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41805#define $ac_func innocuous_$ac_func
41806
41807/* System header to define __stub macros and hopefully few prototypes,
41808    which can conflict with char $ac_func (); below.
41809    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41810    <limits.h> exists even on freestanding compilers.  */
41811
41812#ifdef __STDC__
41813# include <limits.h>
41814#else
41815# include <assert.h>
41816#endif
41817
41818#undef $ac_func
41819
41820/* Override any GCC internal prototype to avoid an error.
41821   Use char because int might match the return type of a GCC
41822   builtin and then its argument prototype would still apply.  */
41823#ifdef __cplusplus
41824extern "C"
41825#endif
41826char $ac_func ();
41827/* The GNU C library defines this for functions which it implements
41828    to always fail with ENOSYS.  Some functions are actually named
41829    something starting with __ and the normal name is an alias.  */
41830#if defined __stub_$ac_func || defined __stub___$ac_func
41831choke me
41832#endif
41833
41834int
41835main ()
41836{
41837return $ac_func ();
41838  ;
41839  return 0;
41840}
41841_ACEOF
41842rm -f conftest.$ac_objext conftest$ac_exeext
41843if { (ac_try="$ac_link"
41844case "(($ac_try" in
41845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41846  *) ac_try_echo=$ac_try;;
41847esac
41848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41849$as_echo "$ac_try_echo") >&5
41850  (eval "$ac_link") 2>conftest.er1
41851  ac_status=$?
41852  grep -v '^ *+' conftest.er1 >conftest.err
41853  rm -f conftest.er1
41854  cat conftest.err >&5
41855  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41856  (exit $ac_status); } && {
41857	 test -z "$ac_c_werror_flag" ||
41858	 test ! -s conftest.err
41859       } && test -s conftest$ac_exeext && {
41860	 test "$cross_compiling" = yes ||
41861	 $as_test_x conftest$ac_exeext
41862       }; then
41863  eval "$as_ac_var=yes"
41864else
41865  $as_echo "$as_me: failed program was:" >&5
41866sed 's/^/| /' conftest.$ac_ext >&5
41867
41868	eval "$as_ac_var=no"
41869fi
41870
41871rm -rf conftest.dSYM
41872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41873      conftest$ac_exeext conftest.$ac_ext
41874fi
41875ac_res=`eval 'as_val=${'$as_ac_var'}
41876		 $as_echo "$as_val"'`
41877	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41878$as_echo "$ac_res" >&6; }
41879as_val=`eval 'as_val=${'$as_ac_var'}
41880		 $as_echo "$as_val"'`
41881   if test "x$as_val" = x""yes; then
41882  cat >>confdefs.h <<_ACEOF
41883#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41884_ACEOF
41885
41886else
41887
41888
41889
41890ac_check_lib_ext_save_LIBS=$LIBS
41891LIBS="-lrt $LIBS  $LIBS"
41892
41893
41894
41895
41896        { $as_echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
41897$as_echo_n "checking for nanosleep in -lrt... " >&6; }
41898if test "${ac_cv_lib_ext_rt_nanosleep+set}" = set; then
41899  $as_echo_n "(cached) " >&6
41900else
41901  cat >conftest.$ac_ext <<_ACEOF
41902/* confdefs.h.  */
41903_ACEOF
41904cat confdefs.h >>conftest.$ac_ext
41905cat >>conftest.$ac_ext <<_ACEOF
41906/* end confdefs.h.  */
41907
41908/* Override any GCC internal prototype to avoid an error.
41909   Use char because int might match the return type of a GCC
41910   builtin and then its argument prototype would still apply.  */
41911#ifdef __cplusplus
41912extern "C"
41913#endif
41914char nanosleep ();
41915int
41916main ()
41917{
41918return nanosleep ();
41919  ;
41920  return 0;
41921}
41922_ACEOF
41923rm -f conftest.$ac_objext conftest$ac_exeext
41924if { (ac_try="$ac_link"
41925case "(($ac_try" in
41926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41927  *) ac_try_echo=$ac_try;;
41928esac
41929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41930$as_echo "$ac_try_echo") >&5
41931  (eval "$ac_link") 2>conftest.er1
41932  ac_status=$?
41933  grep -v '^ *+' conftest.er1 >conftest.err
41934  rm -f conftest.er1
41935  cat conftest.err >&5
41936  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41937  (exit $ac_status); } && {
41938	 test -z "$ac_c_werror_flag" ||
41939	 test ! -s conftest.err
41940       } && test -s conftest$ac_exeext && {
41941	 test "$cross_compiling" = yes ||
41942	 $as_test_x conftest$ac_exeext
41943       }; then
41944  ac_cv_lib_ext_rt_nanosleep=yes;
41945		  ac_cv_lib_ext_rt=yes
41946else
41947  $as_echo "$as_me: failed program was:" >&5
41948sed 's/^/| /' conftest.$ac_ext >&5
41949
41950	ac_cv_lib_ext_rt_nanosleep=no;
41951		  ac_cv_lib_ext_rt=no
41952fi
41953
41954rm -rf conftest.dSYM
41955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41956      conftest$ac_exeext conftest.$ac_ext
41957
41958fi
41959{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_rt_nanosleep" >&5
41960$as_echo "$ac_cv_lib_ext_rt_nanosleep" >&6; }
41961    if test $ac_cv_lib_ext_rt_nanosleep = yes; then
41962  cat >>confdefs.h <<_ACEOF
41963#define HAVE_NANOSLEEP 1
41964_ACEOF
41965
41966fi
41967
41968LIBS=$ac_check_lib_ext_save_LIBS
41969
41970if test $ac_cv_lib_ext_rt = yes; then
41971  cat >>confdefs.h <<_ACEOF
41972#define HAVE_LIBRT 1
41973_ACEOF
41974
41975		case "$LIBS" in
41976		    *-lrt*)
41977			;;
41978		    *)
41979			LIBS="-lrt $LIBS"
41980			;;
41981		esac
41982
41983
41984fi
41985
41986fi
41987done
41988
41989
41990for ac_func in utimensat
41991do
41992as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41993{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41994$as_echo_n "checking for $ac_func... " >&6; }
41995if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41996  $as_echo_n "(cached) " >&6
41997else
41998  cat >conftest.$ac_ext <<_ACEOF
41999/* confdefs.h.  */
42000_ACEOF
42001cat confdefs.h >>conftest.$ac_ext
42002cat >>conftest.$ac_ext <<_ACEOF
42003/* end confdefs.h.  */
42004/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42005   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42006#define $ac_func innocuous_$ac_func
42007
42008/* System header to define __stub macros and hopefully few prototypes,
42009    which can conflict with char $ac_func (); below.
42010    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42011    <limits.h> exists even on freestanding compilers.  */
42012
42013#ifdef __STDC__
42014# include <limits.h>
42015#else
42016# include <assert.h>
42017#endif
42018
42019#undef $ac_func
42020
42021/* Override any GCC internal prototype to avoid an error.
42022   Use char because int might match the return type of a GCC
42023   builtin and then its argument prototype would still apply.  */
42024#ifdef __cplusplus
42025extern "C"
42026#endif
42027char $ac_func ();
42028/* The GNU C library defines this for functions which it implements
42029    to always fail with ENOSYS.  Some functions are actually named
42030    something starting with __ and the normal name is an alias.  */
42031#if defined __stub_$ac_func || defined __stub___$ac_func
42032choke me
42033#endif
42034
42035int
42036main ()
42037{
42038return $ac_func ();
42039  ;
42040  return 0;
42041}
42042_ACEOF
42043rm -f conftest.$ac_objext conftest$ac_exeext
42044if { (ac_try="$ac_link"
42045case "(($ac_try" in
42046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42047  *) ac_try_echo=$ac_try;;
42048esac
42049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42050$as_echo "$ac_try_echo") >&5
42051  (eval "$ac_link") 2>conftest.er1
42052  ac_status=$?
42053  grep -v '^ *+' conftest.er1 >conftest.err
42054  rm -f conftest.er1
42055  cat conftest.err >&5
42056  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42057  (exit $ac_status); } && {
42058	 test -z "$ac_c_werror_flag" ||
42059	 test ! -s conftest.err
42060       } && test -s conftest$ac_exeext && {
42061	 test "$cross_compiling" = yes ||
42062	 $as_test_x conftest$ac_exeext
42063       }; then
42064  eval "$as_ac_var=yes"
42065else
42066  $as_echo "$as_me: failed program was:" >&5
42067sed 's/^/| /' conftest.$ac_ext >&5
42068
42069	eval "$as_ac_var=no"
42070fi
42071
42072rm -rf conftest.dSYM
42073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42074      conftest$ac_exeext conftest.$ac_ext
42075fi
42076ac_res=`eval 'as_val=${'$as_ac_var'}
42077		 $as_echo "$as_val"'`
42078	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42079$as_echo "$ac_res" >&6; }
42080as_val=`eval 'as_val=${'$as_ac_var'}
42081		 $as_echo "$as_val"'`
42082   if test "x$as_val" = x""yes; then
42083  cat >>confdefs.h <<_ACEOF
42084#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42085_ACEOF
42086
42087fi
42088done
42089
42090
42091
42092
42093
42094for ac_func in mlock munlock mlockall munlockall
42095do
42096as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42097{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42098$as_echo_n "checking for $ac_func... " >&6; }
42099if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42100  $as_echo_n "(cached) " >&6
42101else
42102  cat >conftest.$ac_ext <<_ACEOF
42103/* confdefs.h.  */
42104_ACEOF
42105cat confdefs.h >>conftest.$ac_ext
42106cat >>conftest.$ac_ext <<_ACEOF
42107/* end confdefs.h.  */
42108/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42109   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42110#define $ac_func innocuous_$ac_func
42111
42112/* System header to define __stub macros and hopefully few prototypes,
42113    which can conflict with char $ac_func (); below.
42114    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42115    <limits.h> exists even on freestanding compilers.  */
42116
42117#ifdef __STDC__
42118# include <limits.h>
42119#else
42120# include <assert.h>
42121#endif
42122
42123#undef $ac_func
42124
42125/* Override any GCC internal prototype to avoid an error.
42126   Use char because int might match the return type of a GCC
42127   builtin and then its argument prototype would still apply.  */
42128#ifdef __cplusplus
42129extern "C"
42130#endif
42131char $ac_func ();
42132/* The GNU C library defines this for functions which it implements
42133    to always fail with ENOSYS.  Some functions are actually named
42134    something starting with __ and the normal name is an alias.  */
42135#if defined __stub_$ac_func || defined __stub___$ac_func
42136choke me
42137#endif
42138
42139int
42140main ()
42141{
42142return $ac_func ();
42143  ;
42144  return 0;
42145}
42146_ACEOF
42147rm -f conftest.$ac_objext conftest$ac_exeext
42148if { (ac_try="$ac_link"
42149case "(($ac_try" in
42150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42151  *) ac_try_echo=$ac_try;;
42152esac
42153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42154$as_echo "$ac_try_echo") >&5
42155  (eval "$ac_link") 2>conftest.er1
42156  ac_status=$?
42157  grep -v '^ *+' conftest.er1 >conftest.err
42158  rm -f conftest.er1
42159  cat conftest.err >&5
42160  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42161  (exit $ac_status); } && {
42162	 test -z "$ac_c_werror_flag" ||
42163	 test ! -s conftest.err
42164       } && test -s conftest$ac_exeext && {
42165	 test "$cross_compiling" = yes ||
42166	 $as_test_x conftest$ac_exeext
42167       }; then
42168  eval "$as_ac_var=yes"
42169else
42170  $as_echo "$as_me: failed program was:" >&5
42171sed 's/^/| /' conftest.$ac_ext >&5
42172
42173	eval "$as_ac_var=no"
42174fi
42175
42176rm -rf conftest.dSYM
42177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42178      conftest$ac_exeext conftest.$ac_ext
42179fi
42180ac_res=`eval 'as_val=${'$as_ac_var'}
42181		 $as_echo "$as_val"'`
42182	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42183$as_echo "$ac_res" >&6; }
42184as_val=`eval 'as_val=${'$as_ac_var'}
42185		 $as_echo "$as_val"'`
42186   if test "x$as_val" = x""yes; then
42187  cat >>confdefs.h <<_ACEOF
42188#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42189_ACEOF
42190
42191fi
42192done
42193
42194
42195
42196
42197for ac_func in memalign posix_memalign hstrerror
42198do
42199as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42200{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42201$as_echo_n "checking for $ac_func... " >&6; }
42202if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42203  $as_echo_n "(cached) " >&6
42204else
42205  cat >conftest.$ac_ext <<_ACEOF
42206/* confdefs.h.  */
42207_ACEOF
42208cat confdefs.h >>conftest.$ac_ext
42209cat >>conftest.$ac_ext <<_ACEOF
42210/* end confdefs.h.  */
42211/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42212   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42213#define $ac_func innocuous_$ac_func
42214
42215/* System header to define __stub macros and hopefully few prototypes,
42216    which can conflict with char $ac_func (); below.
42217    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42218    <limits.h> exists even on freestanding compilers.  */
42219
42220#ifdef __STDC__
42221# include <limits.h>
42222#else
42223# include <assert.h>
42224#endif
42225
42226#undef $ac_func
42227
42228/* Override any GCC internal prototype to avoid an error.
42229   Use char because int might match the return type of a GCC
42230   builtin and then its argument prototype would still apply.  */
42231#ifdef __cplusplus
42232extern "C"
42233#endif
42234char $ac_func ();
42235/* The GNU C library defines this for functions which it implements
42236    to always fail with ENOSYS.  Some functions are actually named
42237    something starting with __ and the normal name is an alias.  */
42238#if defined __stub_$ac_func || defined __stub___$ac_func
42239choke me
42240#endif
42241
42242int
42243main ()
42244{
42245return $ac_func ();
42246  ;
42247  return 0;
42248}
42249_ACEOF
42250rm -f conftest.$ac_objext conftest$ac_exeext
42251if { (ac_try="$ac_link"
42252case "(($ac_try" in
42253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42254  *) ac_try_echo=$ac_try;;
42255esac
42256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42257$as_echo "$ac_try_echo") >&5
42258  (eval "$ac_link") 2>conftest.er1
42259  ac_status=$?
42260  grep -v '^ *+' conftest.er1 >conftest.err
42261  rm -f conftest.er1
42262  cat conftest.err >&5
42263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42264  (exit $ac_status); } && {
42265	 test -z "$ac_c_werror_flag" ||
42266	 test ! -s conftest.err
42267       } && test -s conftest$ac_exeext && {
42268	 test "$cross_compiling" = yes ||
42269	 $as_test_x conftest$ac_exeext
42270       }; then
42271  eval "$as_ac_var=yes"
42272else
42273  $as_echo "$as_me: failed program was:" >&5
42274sed 's/^/| /' conftest.$ac_ext >&5
42275
42276	eval "$as_ac_var=no"
42277fi
42278
42279rm -rf conftest.dSYM
42280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42281      conftest$ac_exeext conftest.$ac_ext
42282fi
42283ac_res=`eval 'as_val=${'$as_ac_var'}
42284		 $as_echo "$as_val"'`
42285	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42286$as_echo "$ac_res" >&6; }
42287as_val=`eval 'as_val=${'$as_ac_var'}
42288		 $as_echo "$as_val"'`
42289   if test "x$as_val" = x""yes; then
42290  cat >>confdefs.h <<_ACEOF
42291#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42292_ACEOF
42293
42294fi
42295done
42296
42297
42298for ac_header in sys/mman.h
42299do
42300as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42302  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42303$as_echo_n "checking for $ac_header... " >&6; }
42304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42305  $as_echo_n "(cached) " >&6
42306fi
42307ac_res=`eval 'as_val=${'$as_ac_Header'}
42308		 $as_echo "$as_val"'`
42309	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42310$as_echo "$ac_res" >&6; }
42311else
42312  # Is the header compilable?
42313{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42314$as_echo_n "checking $ac_header usability... " >&6; }
42315cat >conftest.$ac_ext <<_ACEOF
42316/* confdefs.h.  */
42317_ACEOF
42318cat confdefs.h >>conftest.$ac_ext
42319cat >>conftest.$ac_ext <<_ACEOF
42320/* end confdefs.h.  */
42321$ac_includes_default
42322#include <$ac_header>
42323_ACEOF
42324rm -f conftest.$ac_objext
42325if { (ac_try="$ac_compile"
42326case "(($ac_try" in
42327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42328  *) ac_try_echo=$ac_try;;
42329esac
42330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42331$as_echo "$ac_try_echo") >&5
42332  (eval "$ac_compile") 2>conftest.er1
42333  ac_status=$?
42334  grep -v '^ *+' conftest.er1 >conftest.err
42335  rm -f conftest.er1
42336  cat conftest.err >&5
42337  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42338  (exit $ac_status); } && {
42339	 test -z "$ac_c_werror_flag" ||
42340	 test ! -s conftest.err
42341       } && test -s conftest.$ac_objext; then
42342  ac_header_compiler=yes
42343else
42344  $as_echo "$as_me: failed program was:" >&5
42345sed 's/^/| /' conftest.$ac_ext >&5
42346
42347	ac_header_compiler=no
42348fi
42349
42350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42351{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42352$as_echo "$ac_header_compiler" >&6; }
42353
42354# Is the header present?
42355{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42356$as_echo_n "checking $ac_header presence... " >&6; }
42357cat >conftest.$ac_ext <<_ACEOF
42358/* confdefs.h.  */
42359_ACEOF
42360cat confdefs.h >>conftest.$ac_ext
42361cat >>conftest.$ac_ext <<_ACEOF
42362/* end confdefs.h.  */
42363#include <$ac_header>
42364_ACEOF
42365if { (ac_try="$ac_cpp conftest.$ac_ext"
42366case "(($ac_try" in
42367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42368  *) ac_try_echo=$ac_try;;
42369esac
42370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42371$as_echo "$ac_try_echo") >&5
42372  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42373  ac_status=$?
42374  grep -v '^ *+' conftest.er1 >conftest.err
42375  rm -f conftest.er1
42376  cat conftest.err >&5
42377  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42378  (exit $ac_status); } >/dev/null && {
42379	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42380	 test ! -s conftest.err
42381       }; then
42382  ac_header_preproc=yes
42383else
42384  $as_echo "$as_me: failed program was:" >&5
42385sed 's/^/| /' conftest.$ac_ext >&5
42386
42387  ac_header_preproc=no
42388fi
42389
42390rm -f conftest.err conftest.$ac_ext
42391{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42392$as_echo "$ac_header_preproc" >&6; }
42393
42394# So?  What about this header?
42395case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42396  yes:no: )
42397    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42398$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42399    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42400$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42401    ac_header_preproc=yes
42402    ;;
42403  no:yes:* )
42404    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42405$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42406    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42407$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42408    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42409$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42410    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42411$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42412    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42413$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42414    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42415$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42416    ( cat <<\_ASBOX
42417## ---------------------------------------- ##
42418## Report this to samba-technical@samba.org ##
42419## ---------------------------------------- ##
42420_ASBOX
42421     ) | sed "s/^/$as_me: WARNING:     /" >&2
42422    ;;
42423esac
42424{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42425$as_echo_n "checking for $ac_header... " >&6; }
42426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42427  $as_echo_n "(cached) " >&6
42428else
42429  eval "$as_ac_Header=\$ac_header_preproc"
42430fi
42431ac_res=`eval 'as_val=${'$as_ac_Header'}
42432		 $as_echo "$as_val"'`
42433	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42434$as_echo "$ac_res" >&6; }
42435
42436fi
42437as_val=`eval 'as_val=${'$as_ac_Header'}
42438		 $as_echo "$as_val"'`
42439   if test "x$as_val" = x""yes; then
42440  cat >>confdefs.h <<_ACEOF
42441#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42442_ACEOF
42443
42444fi
42445
42446done
42447
42448# setbuffer, shmget, shm_open are needed for smbtorture
42449
42450
42451for ac_func in shmget shm_open
42452do
42453as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42454{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42455$as_echo_n "checking for $ac_func... " >&6; }
42456if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42457  $as_echo_n "(cached) " >&6
42458else
42459  cat >conftest.$ac_ext <<_ACEOF
42460/* confdefs.h.  */
42461_ACEOF
42462cat confdefs.h >>conftest.$ac_ext
42463cat >>conftest.$ac_ext <<_ACEOF
42464/* end confdefs.h.  */
42465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42466   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42467#define $ac_func innocuous_$ac_func
42468
42469/* System header to define __stub macros and hopefully few prototypes,
42470    which can conflict with char $ac_func (); below.
42471    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42472    <limits.h> exists even on freestanding compilers.  */
42473
42474#ifdef __STDC__
42475# include <limits.h>
42476#else
42477# include <assert.h>
42478#endif
42479
42480#undef $ac_func
42481
42482/* Override any GCC internal prototype to avoid an error.
42483   Use char because int might match the return type of a GCC
42484   builtin and then its argument prototype would still apply.  */
42485#ifdef __cplusplus
42486extern "C"
42487#endif
42488char $ac_func ();
42489/* The GNU C library defines this for functions which it implements
42490    to always fail with ENOSYS.  Some functions are actually named
42491    something starting with __ and the normal name is an alias.  */
42492#if defined __stub_$ac_func || defined __stub___$ac_func
42493choke me
42494#endif
42495
42496int
42497main ()
42498{
42499return $ac_func ();
42500  ;
42501  return 0;
42502}
42503_ACEOF
42504rm -f conftest.$ac_objext conftest$ac_exeext
42505if { (ac_try="$ac_link"
42506case "(($ac_try" in
42507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42508  *) ac_try_echo=$ac_try;;
42509esac
42510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42511$as_echo "$ac_try_echo") >&5
42512  (eval "$ac_link") 2>conftest.er1
42513  ac_status=$?
42514  grep -v '^ *+' conftest.er1 >conftest.err
42515  rm -f conftest.er1
42516  cat conftest.err >&5
42517  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42518  (exit $ac_status); } && {
42519	 test -z "$ac_c_werror_flag" ||
42520	 test ! -s conftest.err
42521       } && test -s conftest$ac_exeext && {
42522	 test "$cross_compiling" = yes ||
42523	 $as_test_x conftest$ac_exeext
42524       }; then
42525  eval "$as_ac_var=yes"
42526else
42527  $as_echo "$as_me: failed program was:" >&5
42528sed 's/^/| /' conftest.$ac_ext >&5
42529
42530	eval "$as_ac_var=no"
42531fi
42532
42533rm -rf conftest.dSYM
42534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42535      conftest$ac_exeext conftest.$ac_ext
42536fi
42537ac_res=`eval 'as_val=${'$as_ac_var'}
42538		 $as_echo "$as_val"'`
42539	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42540$as_echo "$ac_res" >&6; }
42541as_val=`eval 'as_val=${'$as_ac_var'}
42542		 $as_echo "$as_val"'`
42543   if test "x$as_val" = x""yes; then
42544  cat >>confdefs.h <<_ACEOF
42545#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42546_ACEOF
42547
42548fi
42549done
42550
42551
42552
42553for ac_func in gettext dgettext
42554do
42555as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42556{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42557$as_echo_n "checking for $ac_func... " >&6; }
42558if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42559  $as_echo_n "(cached) " >&6
42560else
42561  cat >conftest.$ac_ext <<_ACEOF
42562/* confdefs.h.  */
42563_ACEOF
42564cat confdefs.h >>conftest.$ac_ext
42565cat >>conftest.$ac_ext <<_ACEOF
42566/* end confdefs.h.  */
42567/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42568   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42569#define $ac_func innocuous_$ac_func
42570
42571/* System header to define __stub macros and hopefully few prototypes,
42572    which can conflict with char $ac_func (); below.
42573    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42574    <limits.h> exists even on freestanding compilers.  */
42575
42576#ifdef __STDC__
42577# include <limits.h>
42578#else
42579# include <assert.h>
42580#endif
42581
42582#undef $ac_func
42583
42584/* Override any GCC internal prototype to avoid an error.
42585   Use char because int might match the return type of a GCC
42586   builtin and then its argument prototype would still apply.  */
42587#ifdef __cplusplus
42588extern "C"
42589#endif
42590char $ac_func ();
42591/* The GNU C library defines this for functions which it implements
42592    to always fail with ENOSYS.  Some functions are actually named
42593    something starting with __ and the normal name is an alias.  */
42594#if defined __stub_$ac_func || defined __stub___$ac_func
42595choke me
42596#endif
42597
42598int
42599main ()
42600{
42601return $ac_func ();
42602  ;
42603  return 0;
42604}
42605_ACEOF
42606rm -f conftest.$ac_objext conftest$ac_exeext
42607if { (ac_try="$ac_link"
42608case "(($ac_try" in
42609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42610  *) ac_try_echo=$ac_try;;
42611esac
42612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42613$as_echo "$ac_try_echo") >&5
42614  (eval "$ac_link") 2>conftest.er1
42615  ac_status=$?
42616  grep -v '^ *+' conftest.er1 >conftest.err
42617  rm -f conftest.er1
42618  cat conftest.err >&5
42619  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42620  (exit $ac_status); } && {
42621	 test -z "$ac_c_werror_flag" ||
42622	 test ! -s conftest.err
42623       } && test -s conftest$ac_exeext && {
42624	 test "$cross_compiling" = yes ||
42625	 $as_test_x conftest$ac_exeext
42626       }; then
42627  eval "$as_ac_var=yes"
42628else
42629  $as_echo "$as_me: failed program was:" >&5
42630sed 's/^/| /' conftest.$ac_ext >&5
42631
42632	eval "$as_ac_var=no"
42633fi
42634
42635rm -rf conftest.dSYM
42636rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42637      conftest$ac_exeext conftest.$ac_ext
42638fi
42639ac_res=`eval 'as_val=${'$as_ac_var'}
42640		 $as_echo "$as_val"'`
42641	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42642$as_echo "$ac_res" >&6; }
42643as_val=`eval 'as_val=${'$as_ac_var'}
42644		 $as_echo "$as_val"'`
42645   if test "x$as_val" = x""yes; then
42646  cat >>confdefs.h <<_ACEOF
42647#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42648_ACEOF
42649
42650fi
42651done
42652
42653
42654
42655for ac_func in bindtextdomain textdomain
42656do
42657as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42658{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42659$as_echo_n "checking for $ac_func... " >&6; }
42660if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42661  $as_echo_n "(cached) " >&6
42662else
42663  cat >conftest.$ac_ext <<_ACEOF
42664/* confdefs.h.  */
42665_ACEOF
42666cat confdefs.h >>conftest.$ac_ext
42667cat >>conftest.$ac_ext <<_ACEOF
42668/* end confdefs.h.  */
42669/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42670   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42671#define $ac_func innocuous_$ac_func
42672
42673/* System header to define __stub macros and hopefully few prototypes,
42674    which can conflict with char $ac_func (); below.
42675    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42676    <limits.h> exists even on freestanding compilers.  */
42677
42678#ifdef __STDC__
42679# include <limits.h>
42680#else
42681# include <assert.h>
42682#endif
42683
42684#undef $ac_func
42685
42686/* Override any GCC internal prototype to avoid an error.
42687   Use char because int might match the return type of a GCC
42688   builtin and then its argument prototype would still apply.  */
42689#ifdef __cplusplus
42690extern "C"
42691#endif
42692char $ac_func ();
42693/* The GNU C library defines this for functions which it implements
42694    to always fail with ENOSYS.  Some functions are actually named
42695    something starting with __ and the normal name is an alias.  */
42696#if defined __stub_$ac_func || defined __stub___$ac_func
42697choke me
42698#endif
42699
42700int
42701main ()
42702{
42703return $ac_func ();
42704  ;
42705  return 0;
42706}
42707_ACEOF
42708rm -f conftest.$ac_objext conftest$ac_exeext
42709if { (ac_try="$ac_link"
42710case "(($ac_try" in
42711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42712  *) ac_try_echo=$ac_try;;
42713esac
42714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42715$as_echo "$ac_try_echo") >&5
42716  (eval "$ac_link") 2>conftest.er1
42717  ac_status=$?
42718  grep -v '^ *+' conftest.er1 >conftest.err
42719  rm -f conftest.er1
42720  cat conftest.err >&5
42721  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42722  (exit $ac_status); } && {
42723	 test -z "$ac_c_werror_flag" ||
42724	 test ! -s conftest.err
42725       } && test -s conftest$ac_exeext && {
42726	 test "$cross_compiling" = yes ||
42727	 $as_test_x conftest$ac_exeext
42728       }; then
42729  eval "$as_ac_var=yes"
42730else
42731  $as_echo "$as_me: failed program was:" >&5
42732sed 's/^/| /' conftest.$ac_ext >&5
42733
42734	eval "$as_ac_var=no"
42735fi
42736
42737rm -rf conftest.dSYM
42738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42739      conftest$ac_exeext conftest.$ac_ext
42740fi
42741ac_res=`eval 'as_val=${'$as_ac_var'}
42742		 $as_echo "$as_val"'`
42743	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42744$as_echo "$ac_res" >&6; }
42745as_val=`eval 'as_val=${'$as_ac_var'}
42746		 $as_echo "$as_val"'`
42747   if test "x$as_val" = x""yes; then
42748  cat >>confdefs.h <<_ACEOF
42749#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42750_ACEOF
42751
42752fi
42753done
42754
42755
42756for ac_func in strupr
42757do
42758as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42759{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42760$as_echo_n "checking for $ac_func... " >&6; }
42761if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42762  $as_echo_n "(cached) " >&6
42763else
42764  cat >conftest.$ac_ext <<_ACEOF
42765/* confdefs.h.  */
42766_ACEOF
42767cat confdefs.h >>conftest.$ac_ext
42768cat >>conftest.$ac_ext <<_ACEOF
42769/* end confdefs.h.  */
42770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42771   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42772#define $ac_func innocuous_$ac_func
42773
42774/* System header to define __stub macros and hopefully few prototypes,
42775    which can conflict with char $ac_func (); below.
42776    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42777    <limits.h> exists even on freestanding compilers.  */
42778
42779#ifdef __STDC__
42780# include <limits.h>
42781#else
42782# include <assert.h>
42783#endif
42784
42785#undef $ac_func
42786
42787/* Override any GCC internal prototype to avoid an error.
42788   Use char because int might match the return type of a GCC
42789   builtin and then its argument prototype would still apply.  */
42790#ifdef __cplusplus
42791extern "C"
42792#endif
42793char $ac_func ();
42794/* The GNU C library defines this for functions which it implements
42795    to always fail with ENOSYS.  Some functions are actually named
42796    something starting with __ and the normal name is an alias.  */
42797#if defined __stub_$ac_func || defined __stub___$ac_func
42798choke me
42799#endif
42800
42801int
42802main ()
42803{
42804return $ac_func ();
42805  ;
42806  return 0;
42807}
42808_ACEOF
42809rm -f conftest.$ac_objext conftest$ac_exeext
42810if { (ac_try="$ac_link"
42811case "(($ac_try" in
42812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42813  *) ac_try_echo=$ac_try;;
42814esac
42815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42816$as_echo "$ac_try_echo") >&5
42817  (eval "$ac_link") 2>conftest.er1
42818  ac_status=$?
42819  grep -v '^ *+' conftest.er1 >conftest.err
42820  rm -f conftest.er1
42821  cat conftest.err >&5
42822  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42823  (exit $ac_status); } && {
42824	 test -z "$ac_c_werror_flag" ||
42825	 test ! -s conftest.err
42826       } && test -s conftest$ac_exeext && {
42827	 test "$cross_compiling" = yes ||
42828	 $as_test_x conftest$ac_exeext
42829       }; then
42830  eval "$as_ac_var=yes"
42831else
42832  $as_echo "$as_me: failed program was:" >&5
42833sed 's/^/| /' conftest.$ac_ext >&5
42834
42835	eval "$as_ac_var=no"
42836fi
42837
42838rm -rf conftest.dSYM
42839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42840      conftest$ac_exeext conftest.$ac_ext
42841fi
42842ac_res=`eval 'as_val=${'$as_ac_var'}
42843		 $as_echo "$as_val"'`
42844	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42845$as_echo "$ac_res" >&6; }
42846as_val=`eval 'as_val=${'$as_ac_var'}
42847		 $as_echo "$as_val"'`
42848   if test "x$as_val" = x""yes; then
42849  cat >>confdefs.h <<_ACEOF
42850#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42851_ACEOF
42852
42853fi
42854done
42855
42856
42857# Find a method of generating a stack trace
42858
42859
42860
42861for ac_header in execinfo.h libexc.h libunwind.h
42862do
42863as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42864if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42865  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42866$as_echo_n "checking for $ac_header... " >&6; }
42867if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42868  $as_echo_n "(cached) " >&6
42869fi
42870ac_res=`eval 'as_val=${'$as_ac_Header'}
42871		 $as_echo "$as_val"'`
42872	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42873$as_echo "$ac_res" >&6; }
42874else
42875  # Is the header compilable?
42876{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42877$as_echo_n "checking $ac_header usability... " >&6; }
42878cat >conftest.$ac_ext <<_ACEOF
42879/* confdefs.h.  */
42880_ACEOF
42881cat confdefs.h >>conftest.$ac_ext
42882cat >>conftest.$ac_ext <<_ACEOF
42883/* end confdefs.h.  */
42884$ac_includes_default
42885#include <$ac_header>
42886_ACEOF
42887rm -f conftest.$ac_objext
42888if { (ac_try="$ac_compile"
42889case "(($ac_try" in
42890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42891  *) ac_try_echo=$ac_try;;
42892esac
42893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42894$as_echo "$ac_try_echo") >&5
42895  (eval "$ac_compile") 2>conftest.er1
42896  ac_status=$?
42897  grep -v '^ *+' conftest.er1 >conftest.err
42898  rm -f conftest.er1
42899  cat conftest.err >&5
42900  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42901  (exit $ac_status); } && {
42902	 test -z "$ac_c_werror_flag" ||
42903	 test ! -s conftest.err
42904       } && test -s conftest.$ac_objext; then
42905  ac_header_compiler=yes
42906else
42907  $as_echo "$as_me: failed program was:" >&5
42908sed 's/^/| /' conftest.$ac_ext >&5
42909
42910	ac_header_compiler=no
42911fi
42912
42913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42914{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42915$as_echo "$ac_header_compiler" >&6; }
42916
42917# Is the header present?
42918{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42919$as_echo_n "checking $ac_header presence... " >&6; }
42920cat >conftest.$ac_ext <<_ACEOF
42921/* confdefs.h.  */
42922_ACEOF
42923cat confdefs.h >>conftest.$ac_ext
42924cat >>conftest.$ac_ext <<_ACEOF
42925/* end confdefs.h.  */
42926#include <$ac_header>
42927_ACEOF
42928if { (ac_try="$ac_cpp conftest.$ac_ext"
42929case "(($ac_try" in
42930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42931  *) ac_try_echo=$ac_try;;
42932esac
42933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42934$as_echo "$ac_try_echo") >&5
42935  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42936  ac_status=$?
42937  grep -v '^ *+' conftest.er1 >conftest.err
42938  rm -f conftest.er1
42939  cat conftest.err >&5
42940  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42941  (exit $ac_status); } >/dev/null && {
42942	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42943	 test ! -s conftest.err
42944       }; then
42945  ac_header_preproc=yes
42946else
42947  $as_echo "$as_me: failed program was:" >&5
42948sed 's/^/| /' conftest.$ac_ext >&5
42949
42950  ac_header_preproc=no
42951fi
42952
42953rm -f conftest.err conftest.$ac_ext
42954{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42955$as_echo "$ac_header_preproc" >&6; }
42956
42957# So?  What about this header?
42958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42959  yes:no: )
42960    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42961$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42962    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42963$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42964    ac_header_preproc=yes
42965    ;;
42966  no:yes:* )
42967    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42968$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42969    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42970$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42971    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42972$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42973    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42974$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42975    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42976$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42977    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42978$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42979    ( cat <<\_ASBOX
42980## ---------------------------------------- ##
42981## Report this to samba-technical@samba.org ##
42982## ---------------------------------------- ##
42983_ASBOX
42984     ) | sed "s/^/$as_me: WARNING:     /" >&2
42985    ;;
42986esac
42987{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42988$as_echo_n "checking for $ac_header... " >&6; }
42989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42990  $as_echo_n "(cached) " >&6
42991else
42992  eval "$as_ac_Header=\$ac_header_preproc"
42993fi
42994ac_res=`eval 'as_val=${'$as_ac_Header'}
42995		 $as_echo "$as_val"'`
42996	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42997$as_echo "$ac_res" >&6; }
42998
42999fi
43000as_val=`eval 'as_val=${'$as_ac_Header'}
43001		 $as_echo "$as_val"'`
43002   if test "x$as_val" = x""yes; then
43003  cat >>confdefs.h <<_ACEOF
43004#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43005_ACEOF
43006
43007fi
43008
43009done
43010
43011# libexecinfo provides backtrace_symbols on FreeBSD
43012{ $as_echo "$as_me:$LINENO: checking for library containing backtrace_symbols" >&5
43013$as_echo_n "checking for library containing backtrace_symbols... " >&6; }
43014if test "${ac_cv_search_backtrace_symbols+set}" = set; then
43015  $as_echo_n "(cached) " >&6
43016else
43017  ac_func_search_save_LIBS=$LIBS
43018cat >conftest.$ac_ext <<_ACEOF
43019/* confdefs.h.  */
43020_ACEOF
43021cat confdefs.h >>conftest.$ac_ext
43022cat >>conftest.$ac_ext <<_ACEOF
43023/* end confdefs.h.  */
43024
43025/* Override any GCC internal prototype to avoid an error.
43026   Use char because int might match the return type of a GCC
43027   builtin and then its argument prototype would still apply.  */
43028#ifdef __cplusplus
43029extern "C"
43030#endif
43031char backtrace_symbols ();
43032int
43033main ()
43034{
43035return backtrace_symbols ();
43036  ;
43037  return 0;
43038}
43039_ACEOF
43040for ac_lib in '' execinfo; do
43041  if test -z "$ac_lib"; then
43042    ac_res="none required"
43043  else
43044    ac_res=-l$ac_lib
43045    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
43046  fi
43047  rm -f conftest.$ac_objext conftest$ac_exeext
43048if { (ac_try="$ac_link"
43049case "(($ac_try" in
43050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43051  *) ac_try_echo=$ac_try;;
43052esac
43053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43054$as_echo "$ac_try_echo") >&5
43055  (eval "$ac_link") 2>conftest.er1
43056  ac_status=$?
43057  grep -v '^ *+' conftest.er1 >conftest.err
43058  rm -f conftest.er1
43059  cat conftest.err >&5
43060  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43061  (exit $ac_status); } && {
43062	 test -z "$ac_c_werror_flag" ||
43063	 test ! -s conftest.err
43064       } && test -s conftest$ac_exeext && {
43065	 test "$cross_compiling" = yes ||
43066	 $as_test_x conftest$ac_exeext
43067       }; then
43068  ac_cv_search_backtrace_symbols=$ac_res
43069else
43070  $as_echo "$as_me: failed program was:" >&5
43071sed 's/^/| /' conftest.$ac_ext >&5
43072
43073
43074fi
43075
43076rm -rf conftest.dSYM
43077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43078      conftest$ac_exeext
43079  if test "${ac_cv_search_backtrace_symbols+set}" = set; then
43080  break
43081fi
43082done
43083if test "${ac_cv_search_backtrace_symbols+set}" = set; then
43084  :
43085else
43086  ac_cv_search_backtrace_symbols=no
43087fi
43088rm conftest.$ac_ext
43089LIBS=$ac_func_search_save_LIBS
43090fi
43091{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_backtrace_symbols" >&5
43092$as_echo "$ac_cv_search_backtrace_symbols" >&6; }
43093ac_res=$ac_cv_search_backtrace_symbols
43094if test "$ac_res" != no; then
43095  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
43096
43097fi
43098
43099
43100for ac_func in backtrace_symbols
43101do
43102as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43103{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43104$as_echo_n "checking for $ac_func... " >&6; }
43105if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43106  $as_echo_n "(cached) " >&6
43107else
43108  cat >conftest.$ac_ext <<_ACEOF
43109/* confdefs.h.  */
43110_ACEOF
43111cat confdefs.h >>conftest.$ac_ext
43112cat >>conftest.$ac_ext <<_ACEOF
43113/* end confdefs.h.  */
43114/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43115   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43116#define $ac_func innocuous_$ac_func
43117
43118/* System header to define __stub macros and hopefully few prototypes,
43119    which can conflict with char $ac_func (); below.
43120    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43121    <limits.h> exists even on freestanding compilers.  */
43122
43123#ifdef __STDC__
43124# include <limits.h>
43125#else
43126# include <assert.h>
43127#endif
43128
43129#undef $ac_func
43130
43131/* Override any GCC internal prototype to avoid an error.
43132   Use char because int might match the return type of a GCC
43133   builtin and then its argument prototype would still apply.  */
43134#ifdef __cplusplus
43135extern "C"
43136#endif
43137char $ac_func ();
43138/* The GNU C library defines this for functions which it implements
43139    to always fail with ENOSYS.  Some functions are actually named
43140    something starting with __ and the normal name is an alias.  */
43141#if defined __stub_$ac_func || defined __stub___$ac_func
43142choke me
43143#endif
43144
43145int
43146main ()
43147{
43148return $ac_func ();
43149  ;
43150  return 0;
43151}
43152_ACEOF
43153rm -f conftest.$ac_objext conftest$ac_exeext
43154if { (ac_try="$ac_link"
43155case "(($ac_try" in
43156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43157  *) ac_try_echo=$ac_try;;
43158esac
43159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43160$as_echo "$ac_try_echo") >&5
43161  (eval "$ac_link") 2>conftest.er1
43162  ac_status=$?
43163  grep -v '^ *+' conftest.er1 >conftest.err
43164  rm -f conftest.er1
43165  cat conftest.err >&5
43166  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43167  (exit $ac_status); } && {
43168	 test -z "$ac_c_werror_flag" ||
43169	 test ! -s conftest.err
43170       } && test -s conftest$ac_exeext && {
43171	 test "$cross_compiling" = yes ||
43172	 $as_test_x conftest$ac_exeext
43173       }; then
43174  eval "$as_ac_var=yes"
43175else
43176  $as_echo "$as_me: failed program was:" >&5
43177sed 's/^/| /' conftest.$ac_ext >&5
43178
43179	eval "$as_ac_var=no"
43180fi
43181
43182rm -rf conftest.dSYM
43183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43184      conftest$ac_exeext conftest.$ac_ext
43185fi
43186ac_res=`eval 'as_val=${'$as_ac_var'}
43187		 $as_echo "$as_val"'`
43188	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43189$as_echo "$ac_res" >&6; }
43190as_val=`eval 'as_val=${'$as_ac_var'}
43191		 $as_echo "$as_val"'`
43192   if test "x$as_val" = x""yes; then
43193  cat >>confdefs.h <<_ACEOF
43194#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43195_ACEOF
43196
43197fi
43198done
43199
43200
43201{ $as_echo "$as_me:$LINENO: checking for trace_back_stack in -lexc" >&5
43202$as_echo_n "checking for trace_back_stack in -lexc... " >&6; }
43203if test "${ac_cv_lib_exc_trace_back_stack+set}" = set; then
43204  $as_echo_n "(cached) " >&6
43205else
43206  ac_check_lib_save_LIBS=$LIBS
43207LIBS="-lexc  $LIBS"
43208cat >conftest.$ac_ext <<_ACEOF
43209/* confdefs.h.  */
43210_ACEOF
43211cat confdefs.h >>conftest.$ac_ext
43212cat >>conftest.$ac_ext <<_ACEOF
43213/* end confdefs.h.  */
43214
43215/* Override any GCC internal prototype to avoid an error.
43216   Use char because int might match the return type of a GCC
43217   builtin and then its argument prototype would still apply.  */
43218#ifdef __cplusplus
43219extern "C"
43220#endif
43221char trace_back_stack ();
43222int
43223main ()
43224{
43225return trace_back_stack ();
43226  ;
43227  return 0;
43228}
43229_ACEOF
43230rm -f conftest.$ac_objext conftest$ac_exeext
43231if { (ac_try="$ac_link"
43232case "(($ac_try" in
43233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43234  *) ac_try_echo=$ac_try;;
43235esac
43236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43237$as_echo "$ac_try_echo") >&5
43238  (eval "$ac_link") 2>conftest.er1
43239  ac_status=$?
43240  grep -v '^ *+' conftest.er1 >conftest.err
43241  rm -f conftest.er1
43242  cat conftest.err >&5
43243  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43244  (exit $ac_status); } && {
43245	 test -z "$ac_c_werror_flag" ||
43246	 test ! -s conftest.err
43247       } && test -s conftest$ac_exeext && {
43248	 test "$cross_compiling" = yes ||
43249	 $as_test_x conftest$ac_exeext
43250       }; then
43251  ac_cv_lib_exc_trace_back_stack=yes
43252else
43253  $as_echo "$as_me: failed program was:" >&5
43254sed 's/^/| /' conftest.$ac_ext >&5
43255
43256	ac_cv_lib_exc_trace_back_stack=no
43257fi
43258
43259rm -rf conftest.dSYM
43260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43261      conftest$ac_exeext conftest.$ac_ext
43262LIBS=$ac_check_lib_save_LIBS
43263fi
43264{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_exc_trace_back_stack" >&5
43265$as_echo "$ac_cv_lib_exc_trace_back_stack" >&6; }
43266if test "x$ac_cv_lib_exc_trace_back_stack" = x""yes; then
43267  cat >>confdefs.h <<_ACEOF
43268#define HAVE_LIBEXC 1
43269_ACEOF
43270
43271  LIBS="-lexc $LIBS"
43272
43273fi
43274
43275
43276# check for sysctlbyname for BSD systems
43277
43278for ac_func in sysctlbyname
43279do
43280as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43281{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43282$as_echo_n "checking for $ac_func... " >&6; }
43283if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43284  $as_echo_n "(cached) " >&6
43285else
43286  cat >conftest.$ac_ext <<_ACEOF
43287/* confdefs.h.  */
43288_ACEOF
43289cat confdefs.h >>conftest.$ac_ext
43290cat >>conftest.$ac_ext <<_ACEOF
43291/* end confdefs.h.  */
43292/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43293   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43294#define $ac_func innocuous_$ac_func
43295
43296/* System header to define __stub macros and hopefully few prototypes,
43297    which can conflict with char $ac_func (); below.
43298    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43299    <limits.h> exists even on freestanding compilers.  */
43300
43301#ifdef __STDC__
43302# include <limits.h>
43303#else
43304# include <assert.h>
43305#endif
43306
43307#undef $ac_func
43308
43309/* Override any GCC internal prototype to avoid an error.
43310   Use char because int might match the return type of a GCC
43311   builtin and then its argument prototype would still apply.  */
43312#ifdef __cplusplus
43313extern "C"
43314#endif
43315char $ac_func ();
43316/* The GNU C library defines this for functions which it implements
43317    to always fail with ENOSYS.  Some functions are actually named
43318    something starting with __ and the normal name is an alias.  */
43319#if defined __stub_$ac_func || defined __stub___$ac_func
43320choke me
43321#endif
43322
43323int
43324main ()
43325{
43326return $ac_func ();
43327  ;
43328  return 0;
43329}
43330_ACEOF
43331rm -f conftest.$ac_objext conftest$ac_exeext
43332if { (ac_try="$ac_link"
43333case "(($ac_try" in
43334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43335  *) ac_try_echo=$ac_try;;
43336esac
43337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43338$as_echo "$ac_try_echo") >&5
43339  (eval "$ac_link") 2>conftest.er1
43340  ac_status=$?
43341  grep -v '^ *+' conftest.er1 >conftest.err
43342  rm -f conftest.er1
43343  cat conftest.err >&5
43344  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43345  (exit $ac_status); } && {
43346	 test -z "$ac_c_werror_flag" ||
43347	 test ! -s conftest.err
43348       } && test -s conftest$ac_exeext && {
43349	 test "$cross_compiling" = yes ||
43350	 $as_test_x conftest$ac_exeext
43351       }; then
43352  eval "$as_ac_var=yes"
43353else
43354  $as_echo "$as_me: failed program was:" >&5
43355sed 's/^/| /' conftest.$ac_ext >&5
43356
43357	eval "$as_ac_var=no"
43358fi
43359
43360rm -rf conftest.dSYM
43361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43362      conftest$ac_exeext conftest.$ac_ext
43363fi
43364ac_res=`eval 'as_val=${'$as_ac_var'}
43365		 $as_echo "$as_val"'`
43366	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43367$as_echo "$ac_res" >&6; }
43368as_val=`eval 'as_val=${'$as_ac_var'}
43369		 $as_echo "$as_val"'`
43370   if test "x$as_val" = x""yes; then
43371  cat >>confdefs.h <<_ACEOF
43372#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43373_ACEOF
43374
43375fi
43376done
43377
43378
43379#############################
43380# check if building with gpfs
43381
43382for ac_header in gpfs_gpl.h
43383do
43384as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43386  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43387$as_echo_n "checking for $ac_header... " >&6; }
43388if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43389  $as_echo_n "(cached) " >&6
43390fi
43391ac_res=`eval 'as_val=${'$as_ac_Header'}
43392		 $as_echo "$as_val"'`
43393	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43394$as_echo "$ac_res" >&6; }
43395else
43396  # Is the header compilable?
43397{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
43398$as_echo_n "checking $ac_header usability... " >&6; }
43399cat >conftest.$ac_ext <<_ACEOF
43400/* confdefs.h.  */
43401_ACEOF
43402cat confdefs.h >>conftest.$ac_ext
43403cat >>conftest.$ac_ext <<_ACEOF
43404/* end confdefs.h.  */
43405$ac_includes_default
43406#include <$ac_header>
43407_ACEOF
43408rm -f conftest.$ac_objext
43409if { (ac_try="$ac_compile"
43410case "(($ac_try" in
43411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43412  *) ac_try_echo=$ac_try;;
43413esac
43414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43415$as_echo "$ac_try_echo") >&5
43416  (eval "$ac_compile") 2>conftest.er1
43417  ac_status=$?
43418  grep -v '^ *+' conftest.er1 >conftest.err
43419  rm -f conftest.er1
43420  cat conftest.err >&5
43421  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43422  (exit $ac_status); } && {
43423	 test -z "$ac_c_werror_flag" ||
43424	 test ! -s conftest.err
43425       } && test -s conftest.$ac_objext; then
43426  ac_header_compiler=yes
43427else
43428  $as_echo "$as_me: failed program was:" >&5
43429sed 's/^/| /' conftest.$ac_ext >&5
43430
43431	ac_header_compiler=no
43432fi
43433
43434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43435{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43436$as_echo "$ac_header_compiler" >&6; }
43437
43438# Is the header present?
43439{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
43440$as_echo_n "checking $ac_header presence... " >&6; }
43441cat >conftest.$ac_ext <<_ACEOF
43442/* confdefs.h.  */
43443_ACEOF
43444cat confdefs.h >>conftest.$ac_ext
43445cat >>conftest.$ac_ext <<_ACEOF
43446/* end confdefs.h.  */
43447#include <$ac_header>
43448_ACEOF
43449if { (ac_try="$ac_cpp conftest.$ac_ext"
43450case "(($ac_try" in
43451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43452  *) ac_try_echo=$ac_try;;
43453esac
43454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43455$as_echo "$ac_try_echo") >&5
43456  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43457  ac_status=$?
43458  grep -v '^ *+' conftest.er1 >conftest.err
43459  rm -f conftest.er1
43460  cat conftest.err >&5
43461  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43462  (exit $ac_status); } >/dev/null && {
43463	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43464	 test ! -s conftest.err
43465       }; then
43466  ac_header_preproc=yes
43467else
43468  $as_echo "$as_me: failed program was:" >&5
43469sed 's/^/| /' conftest.$ac_ext >&5
43470
43471  ac_header_preproc=no
43472fi
43473
43474rm -f conftest.err conftest.$ac_ext
43475{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43476$as_echo "$ac_header_preproc" >&6; }
43477
43478# So?  What about this header?
43479case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43480  yes:no: )
43481    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43482$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43483    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43484$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43485    ac_header_preproc=yes
43486    ;;
43487  no:yes:* )
43488    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43489$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43490    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43491$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43492    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43493$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43494    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43495$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43496    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43497$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43498    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43499$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43500    ( cat <<\_ASBOX
43501## ---------------------------------------- ##
43502## Report this to samba-technical@samba.org ##
43503## ---------------------------------------- ##
43504_ASBOX
43505     ) | sed "s/^/$as_me: WARNING:     /" >&2
43506    ;;
43507esac
43508{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43509$as_echo_n "checking for $ac_header... " >&6; }
43510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43511  $as_echo_n "(cached) " >&6
43512else
43513  eval "$as_ac_Header=\$ac_header_preproc"
43514fi
43515ac_res=`eval 'as_val=${'$as_ac_Header'}
43516		 $as_echo "$as_val"'`
43517	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43518$as_echo "$ac_res" >&6; }
43519
43520fi
43521as_val=`eval 'as_val=${'$as_ac_Header'}
43522		 $as_echo "$as_val"'`
43523   if test "x$as_val" = x""yes; then
43524  cat >>confdefs.h <<_ACEOF
43525#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43526_ACEOF
43527
43528fi
43529
43530done
43531
43532if test x"$ac_cv_header_gpfs_gpl_h" = x"yes"; then
43533
43534cat >>confdefs.h <<\_ACEOF
43535#define HAVE_GPFS 1
43536_ACEOF
43537
43538    default_shared_modules="$default_shared_modules vfs_gpfs"
43539fi
43540
43541#############################################
43542# check if building on Isilon OneFS
43543printf "%s" "checking for Isilon OneFS... "
43544save_LIBS="$LIBS"
43545LIBS="$LIBS -lisi_version"
43546cat >conftest.$ac_ext <<_ACEOF
43547/* confdefs.h.  */
43548_ACEOF
43549cat confdefs.h >>conftest.$ac_ext
43550cat >>conftest.$ac_ext <<_ACEOF
43551/* end confdefs.h.  */
43552#include <isi_version/isi_version.h>
43553int
43554main ()
43555{
43556get_isilon_copyright()
43557  ;
43558  return 0;
43559}
43560_ACEOF
43561rm -f conftest.$ac_objext conftest$ac_exeext
43562if { (ac_try="$ac_link"
43563case "(($ac_try" in
43564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43565  *) ac_try_echo=$ac_try;;
43566esac
43567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43568$as_echo "$ac_try_echo") >&5
43569  (eval "$ac_link") 2>conftest.er1
43570  ac_status=$?
43571  grep -v '^ *+' conftest.er1 >conftest.err
43572  rm -f conftest.er1
43573  cat conftest.err >&5
43574  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43575  (exit $ac_status); } && {
43576	 test -z "$ac_c_werror_flag" ||
43577	 test ! -s conftest.err
43578       } && test -s conftest$ac_exeext && {
43579	 test "$cross_compiling" = yes ||
43580	 $as_test_x conftest$ac_exeext
43581       }; then
43582  samba_cv_HAVE_ONEFS=yes
43583else
43584  $as_echo "$as_me: failed program was:" >&5
43585sed 's/^/| /' conftest.$ac_ext >&5
43586
43587	samba_cv_HAVE_ONEFS=no
43588fi
43589
43590rm -rf conftest.dSYM
43591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43592      conftest$ac_exeext conftest.$ac_ext
43593echo $samba_cv_HAVE_ONEFS
43594if test x"$samba_cv_HAVE_ONEFS" = x"yes"; then
43595
43596cat >>confdefs.h <<\_ACEOF
43597#define HAVE_ONEFS 1
43598_ACEOF
43599
43600    default_shared_modules="$default_shared_modules vfs_onefs vfs_onefs_shadow_copy perfcount_onefs"
43601    default_static_modules="$default_static_modules"
43602    ONEFS_LIBS="-lisi_acl -lisi_ecs -lisi_event -lisi_util"
43603    # Need to also add general libs for oplocks support
43604    save_LIBS="$save_LIBS -lisi_ecs -lisi_event -lisi_util -ldevstat"
43605fi
43606
43607LIBS="$save_LIBS"
43608
43609# Note that all the libunwind symbols in the API are defined to internal
43610# platform-specific version, so we must include libunwind.h before checking
43611# any of them.
43612{ $as_echo "$as_me:$LINENO: checking for libunwind" >&5
43613$as_echo_n "checking for libunwind... " >&6; }
43614save_LIBS=$LIBS
43615
43616UNWIND_ARCH="unknown"
43617if test x"$UNAME_I" != x"unknown"; then
43618	UNWIND_ARCH="$UNAME_I"
43619elif test x"$UNAME_M" != x"unknown"; then
43620	UNWIND_ARCH="$UNAME_M"
43621elif test x"$UNAME_P" != x"unknown"; then
43622	UNWIND_ARCH="$UNAME_P"
43623fi
43624
43625case "$UNWIND_ARCH" in
43626	unknown)
43627		# This probably won't link without
43628		# the platform-specific libunwind.
43629		LIBS="$LIBS -lunwind"
43630		;;
43631	i386|i586|i686)
43632		# Add the platform-specific libunwind module.
43633		LIBS="$LIBS -lunwind -lunwind-x86"
43634		;;
43635	*)
43636		# Add the platform-specific libunwind module.
43637		# based on uname -i, uname -m or uname -p
43638		LIBS="$LIBS -lunwind -lunwind-$UNWIND_ARCH"
43639		;;
43640esac
43641
43642cat >conftest.$ac_ext <<_ACEOF
43643/* confdefs.h.  */
43644_ACEOF
43645cat confdefs.h >>conftest.$ac_ext
43646cat >>conftest.$ac_ext <<_ACEOF
43647/* end confdefs.h.  */
43648
43649#ifdef HAVE_LIBUNWIND_H
43650#include <libunwind.h>
43651#endif
43652
43653int
43654main ()
43655{
43656
43657	unw_context_t ctx; unw_cursor_t cur;
43658	char buf[256]; unw_word_t off;
43659	unw_getcontext(&ctx); unw_init_local(&cur, &ctx);
43660	unw_get_proc_name(&cur, buf, sizeof(buf), &off);
43661
43662  ;
43663  return 0;
43664}
43665_ACEOF
43666rm -f conftest.$ac_objext conftest$ac_exeext
43667if { (ac_try="$ac_link"
43668case "(($ac_try" in
43669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43670  *) ac_try_echo=$ac_try;;
43671esac
43672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43673$as_echo "$ac_try_echo") >&5
43674  (eval "$ac_link") 2>conftest.er1
43675  ac_status=$?
43676  grep -v '^ *+' conftest.er1 >conftest.err
43677  rm -f conftest.er1
43678  cat conftest.err >&5
43679  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43680  (exit $ac_status); } && {
43681	 test -z "$ac_c_werror_flag" ||
43682	 test ! -s conftest.err
43683       } && test -s conftest$ac_exeext && {
43684	 test "$cross_compiling" = yes ||
43685	 $as_test_x conftest$ac_exeext
43686       }; then
43687
43688	{ $as_echo "$as_me:$LINENO: result: yes" >&5
43689$as_echo "yes" >&6; }
43690
43691cat >>confdefs.h <<\_ACEOF
43692#define HAVE_LIBUNWIND 1
43693_ACEOF
43694
43695
43696	# If we have libunwind, test whether we also have libunwind-ptrace
43697	# which would let us unwind arbitrary processes.
43698	save_LIBS=$LIBS
43699
43700for ac_header in libunwind-ptrace.h
43701do
43702as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43704  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43705$as_echo_n "checking for $ac_header... " >&6; }
43706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43707  $as_echo_n "(cached) " >&6
43708fi
43709ac_res=`eval 'as_val=${'$as_ac_Header'}
43710		 $as_echo "$as_val"'`
43711	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43712$as_echo "$ac_res" >&6; }
43713else
43714  # Is the header compilable?
43715{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
43716$as_echo_n "checking $ac_header usability... " >&6; }
43717cat >conftest.$ac_ext <<_ACEOF
43718/* confdefs.h.  */
43719_ACEOF
43720cat confdefs.h >>conftest.$ac_ext
43721cat >>conftest.$ac_ext <<_ACEOF
43722/* end confdefs.h.  */
43723$ac_includes_default
43724#include <$ac_header>
43725_ACEOF
43726rm -f conftest.$ac_objext
43727if { (ac_try="$ac_compile"
43728case "(($ac_try" in
43729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43730  *) ac_try_echo=$ac_try;;
43731esac
43732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43733$as_echo "$ac_try_echo") >&5
43734  (eval "$ac_compile") 2>conftest.er1
43735  ac_status=$?
43736  grep -v '^ *+' conftest.er1 >conftest.err
43737  rm -f conftest.er1
43738  cat conftest.err >&5
43739  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43740  (exit $ac_status); } && {
43741	 test -z "$ac_c_werror_flag" ||
43742	 test ! -s conftest.err
43743       } && test -s conftest.$ac_objext; then
43744  ac_header_compiler=yes
43745else
43746  $as_echo "$as_me: failed program was:" >&5
43747sed 's/^/| /' conftest.$ac_ext >&5
43748
43749	ac_header_compiler=no
43750fi
43751
43752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43753{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43754$as_echo "$ac_header_compiler" >&6; }
43755
43756# Is the header present?
43757{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
43758$as_echo_n "checking $ac_header presence... " >&6; }
43759cat >conftest.$ac_ext <<_ACEOF
43760/* confdefs.h.  */
43761_ACEOF
43762cat confdefs.h >>conftest.$ac_ext
43763cat >>conftest.$ac_ext <<_ACEOF
43764/* end confdefs.h.  */
43765#include <$ac_header>
43766_ACEOF
43767if { (ac_try="$ac_cpp conftest.$ac_ext"
43768case "(($ac_try" in
43769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43770  *) ac_try_echo=$ac_try;;
43771esac
43772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43773$as_echo "$ac_try_echo") >&5
43774  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43775  ac_status=$?
43776  grep -v '^ *+' conftest.er1 >conftest.err
43777  rm -f conftest.er1
43778  cat conftest.err >&5
43779  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43780  (exit $ac_status); } >/dev/null && {
43781	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43782	 test ! -s conftest.err
43783       }; then
43784  ac_header_preproc=yes
43785else
43786  $as_echo "$as_me: failed program was:" >&5
43787sed 's/^/| /' conftest.$ac_ext >&5
43788
43789  ac_header_preproc=no
43790fi
43791
43792rm -f conftest.err conftest.$ac_ext
43793{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43794$as_echo "$ac_header_preproc" >&6; }
43795
43796# So?  What about this header?
43797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43798  yes:no: )
43799    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43800$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43801    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43802$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43803    ac_header_preproc=yes
43804    ;;
43805  no:yes:* )
43806    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43807$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43808    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43809$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43810    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43811$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43812    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43813$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43814    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43815$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43816    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43817$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43818    ( cat <<\_ASBOX
43819## ---------------------------------------- ##
43820## Report this to samba-technical@samba.org ##
43821## ---------------------------------------- ##
43822_ASBOX
43823     ) | sed "s/^/$as_me: WARNING:     /" >&2
43824    ;;
43825esac
43826{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43827$as_echo_n "checking for $ac_header... " >&6; }
43828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43829  $as_echo_n "(cached) " >&6
43830else
43831  eval "$as_ac_Header=\$ac_header_preproc"
43832fi
43833ac_res=`eval 'as_val=${'$as_ac_Header'}
43834		 $as_echo "$as_val"'`
43835	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43836$as_echo "$ac_res" >&6; }
43837
43838fi
43839as_val=`eval 'as_val=${'$as_ac_Header'}
43840		 $as_echo "$as_val"'`
43841   if test "x$as_val" = x""yes; then
43842  cat >>confdefs.h <<_ACEOF
43843#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43844_ACEOF
43845
43846fi
43847
43848done
43849
43850	{ $as_echo "$as_me:$LINENO: checking for _UPT_create in -lunwind-ptrace" >&5
43851$as_echo_n "checking for _UPT_create in -lunwind-ptrace... " >&6; }
43852if test "${ac_cv_lib_unwind_ptrace__UPT_create+set}" = set; then
43853  $as_echo_n "(cached) " >&6
43854else
43855  ac_check_lib_save_LIBS=$LIBS
43856LIBS="-lunwind-ptrace  $LIBS"
43857cat >conftest.$ac_ext <<_ACEOF
43858/* confdefs.h.  */
43859_ACEOF
43860cat confdefs.h >>conftest.$ac_ext
43861cat >>conftest.$ac_ext <<_ACEOF
43862/* end confdefs.h.  */
43863
43864/* Override any GCC internal prototype to avoid an error.
43865   Use char because int might match the return type of a GCC
43866   builtin and then its argument prototype would still apply.  */
43867#ifdef __cplusplus
43868extern "C"
43869#endif
43870char _UPT_create ();
43871int
43872main ()
43873{
43874return _UPT_create ();
43875  ;
43876  return 0;
43877}
43878_ACEOF
43879rm -f conftest.$ac_objext conftest$ac_exeext
43880if { (ac_try="$ac_link"
43881case "(($ac_try" in
43882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43883  *) ac_try_echo=$ac_try;;
43884esac
43885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43886$as_echo "$ac_try_echo") >&5
43887  (eval "$ac_link") 2>conftest.er1
43888  ac_status=$?
43889  grep -v '^ *+' conftest.er1 >conftest.err
43890  rm -f conftest.er1
43891  cat conftest.err >&5
43892  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43893  (exit $ac_status); } && {
43894	 test -z "$ac_c_werror_flag" ||
43895	 test ! -s conftest.err
43896       } && test -s conftest$ac_exeext && {
43897	 test "$cross_compiling" = yes ||
43898	 $as_test_x conftest$ac_exeext
43899       }; then
43900  ac_cv_lib_unwind_ptrace__UPT_create=yes
43901else
43902  $as_echo "$as_me: failed program was:" >&5
43903sed 's/^/| /' conftest.$ac_ext >&5
43904
43905	ac_cv_lib_unwind_ptrace__UPT_create=no
43906fi
43907
43908rm -rf conftest.dSYM
43909rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43910      conftest$ac_exeext conftest.$ac_ext
43911LIBS=$ac_check_lib_save_LIBS
43912fi
43913{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_ptrace__UPT_create" >&5
43914$as_echo "$ac_cv_lib_unwind_ptrace__UPT_create" >&6; }
43915if test "x$ac_cv_lib_unwind_ptrace__UPT_create" = x""yes; then
43916
43917		LIBUNWIND_PTRACE="-lunwind-ptrace";
43918
43919cat >>confdefs.h <<\_ACEOF
43920#define HAVE_LIBUNWIND_PTRACE 1
43921_ACEOF
43922
43923
43924else
43925   LIBUNWIND_PTRACE=""
43926fi
43927
43928
43929	LIBS=$save_LIBS
43930
43931else
43932  $as_echo "$as_me: failed program was:" >&5
43933sed 's/^/| /' conftest.$ac_ext >&5
43934
43935
43936	{ $as_echo "$as_me:$LINENO: result: no" >&5
43937$as_echo "no" >&6; }
43938	LIBS=$save_LIBS
43939
43940fi
43941
43942rm -rf conftest.dSYM
43943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43944      conftest$ac_exeext conftest.$ac_ext
43945
43946# To use libunwind-ptrace, we also need to make some ptrace system calls.
43947if test x"$LIBUNWIND_PTRACE" != x"" ; then
43948
43949for ac_header in sys/ptrace.h
43950do
43951as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43953  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43954$as_echo_n "checking for $ac_header... " >&6; }
43955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43956  $as_echo_n "(cached) " >&6
43957fi
43958ac_res=`eval 'as_val=${'$as_ac_Header'}
43959		 $as_echo "$as_val"'`
43960	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43961$as_echo "$ac_res" >&6; }
43962else
43963  # Is the header compilable?
43964{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
43965$as_echo_n "checking $ac_header usability... " >&6; }
43966cat >conftest.$ac_ext <<_ACEOF
43967/* confdefs.h.  */
43968_ACEOF
43969cat confdefs.h >>conftest.$ac_ext
43970cat >>conftest.$ac_ext <<_ACEOF
43971/* end confdefs.h.  */
43972$ac_includes_default
43973#include <$ac_header>
43974_ACEOF
43975rm -f conftest.$ac_objext
43976if { (ac_try="$ac_compile"
43977case "(($ac_try" in
43978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43979  *) ac_try_echo=$ac_try;;
43980esac
43981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43982$as_echo "$ac_try_echo") >&5
43983  (eval "$ac_compile") 2>conftest.er1
43984  ac_status=$?
43985  grep -v '^ *+' conftest.er1 >conftest.err
43986  rm -f conftest.er1
43987  cat conftest.err >&5
43988  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43989  (exit $ac_status); } && {
43990	 test -z "$ac_c_werror_flag" ||
43991	 test ! -s conftest.err
43992       } && test -s conftest.$ac_objext; then
43993  ac_header_compiler=yes
43994else
43995  $as_echo "$as_me: failed program was:" >&5
43996sed 's/^/| /' conftest.$ac_ext >&5
43997
43998	ac_header_compiler=no
43999fi
44000
44001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44002{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44003$as_echo "$ac_header_compiler" >&6; }
44004
44005# Is the header present?
44006{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
44007$as_echo_n "checking $ac_header presence... " >&6; }
44008cat >conftest.$ac_ext <<_ACEOF
44009/* confdefs.h.  */
44010_ACEOF
44011cat confdefs.h >>conftest.$ac_ext
44012cat >>conftest.$ac_ext <<_ACEOF
44013/* end confdefs.h.  */
44014#include <$ac_header>
44015_ACEOF
44016if { (ac_try="$ac_cpp conftest.$ac_ext"
44017case "(($ac_try" in
44018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44019  *) ac_try_echo=$ac_try;;
44020esac
44021eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44022$as_echo "$ac_try_echo") >&5
44023  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44024  ac_status=$?
44025  grep -v '^ *+' conftest.er1 >conftest.err
44026  rm -f conftest.er1
44027  cat conftest.err >&5
44028  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44029  (exit $ac_status); } >/dev/null && {
44030	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
44031	 test ! -s conftest.err
44032       }; then
44033  ac_header_preproc=yes
44034else
44035  $as_echo "$as_me: failed program was:" >&5
44036sed 's/^/| /' conftest.$ac_ext >&5
44037
44038  ac_header_preproc=no
44039fi
44040
44041rm -f conftest.err conftest.$ac_ext
44042{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44043$as_echo "$ac_header_preproc" >&6; }
44044
44045# So?  What about this header?
44046case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44047  yes:no: )
44048    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44049$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44050    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44051$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44052    ac_header_preproc=yes
44053    ;;
44054  no:yes:* )
44055    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44056$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44057    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44058$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44059    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44060$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44061    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44062$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44063    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44064$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44065    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44066$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44067    ( cat <<\_ASBOX
44068## ---------------------------------------- ##
44069## Report this to samba-technical@samba.org ##
44070## ---------------------------------------- ##
44071_ASBOX
44072     ) | sed "s/^/$as_me: WARNING:     /" >&2
44073    ;;
44074esac
44075{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
44076$as_echo_n "checking for $ac_header... " >&6; }
44077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44078  $as_echo_n "(cached) " >&6
44079else
44080  eval "$as_ac_Header=\$ac_header_preproc"
44081fi
44082ac_res=`eval 'as_val=${'$as_ac_Header'}
44083		 $as_echo "$as_val"'`
44084	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44085$as_echo "$ac_res" >&6; }
44086
44087fi
44088as_val=`eval 'as_val=${'$as_ac_Header'}
44089		 $as_echo "$as_val"'`
44090   if test "x$as_val" = x""yes; then
44091  cat >>confdefs.h <<_ACEOF
44092#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44093_ACEOF
44094
44095fi
44096
44097done
44098
44099    { $as_echo "$as_me:$LINENO: checking for the Linux ptrace(2) interface" >&5
44100$as_echo_n "checking for the Linux ptrace(2) interface... " >&6; }
44101    cat >conftest.$ac_ext <<_ACEOF
44102/* confdefs.h.  */
44103_ACEOF
44104cat confdefs.h >>conftest.$ac_ext
44105cat >>conftest.$ac_ext <<_ACEOF
44106/* end confdefs.h.  */
44107
44108#if HAVE_SYS_TYPES_H
44109#include <sys/types.h>
44110#endif
44111#if HAVE_SYS_PTRACE_H
44112#include <sys/ptrace.h>
44113#endif
44114
44115int
44116main ()
44117{
44118
44119		pid_t me = (pid_t)-1;
44120		ptrace(PTRACE_ATTACH, me, 0, 0);
44121		ptrace(PTRACE_DETACH, me, 0, 0);
44122		return 0;
44123
44124  ;
44125  return 0;
44126}
44127_ACEOF
44128rm -f conftest.$ac_objext conftest$ac_exeext
44129if { (ac_try="$ac_link"
44130case "(($ac_try" in
44131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44132  *) ac_try_echo=$ac_try;;
44133esac
44134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44135$as_echo "$ac_try_echo") >&5
44136  (eval "$ac_link") 2>conftest.er1
44137  ac_status=$?
44138  grep -v '^ *+' conftest.er1 >conftest.err
44139  rm -f conftest.er1
44140  cat conftest.err >&5
44141  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44142  (exit $ac_status); } && {
44143	 test -z "$ac_c_werror_flag" ||
44144	 test ! -s conftest.err
44145       } && test -s conftest$ac_exeext && {
44146	 test "$cross_compiling" = yes ||
44147	 $as_test_x conftest$ac_exeext
44148       }; then
44149
44150		{ $as_echo "$as_me:$LINENO: result: yes" >&5
44151$as_echo "yes" >&6; }
44152
44153cat >>confdefs.h <<\_ACEOF
44154#define HAVE_LINUX_PTRACE 1
44155_ACEOF
44156
44157
44158else
44159  $as_echo "$as_me: failed program was:" >&5
44160sed 's/^/| /' conftest.$ac_ext >&5
44161
44162
44163		{ $as_echo "$as_me:$LINENO: result: no" >&5
44164$as_echo "no" >&6; }
44165		LIBUNWIND_PTRACE=""
44166
44167fi
44168
44169rm -rf conftest.dSYM
44170rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44171      conftest$ac_exeext conftest.$ac_ext
44172fi
44173
44174
44175
44176
44177
44178
44179
44180
44181
44182
44183for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
44184do
44185as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44186{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44187$as_echo_n "checking for $ac_func... " >&6; }
44188if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44189  $as_echo_n "(cached) " >&6
44190else
44191  cat >conftest.$ac_ext <<_ACEOF
44192/* confdefs.h.  */
44193_ACEOF
44194cat confdefs.h >>conftest.$ac_ext
44195cat >>conftest.$ac_ext <<_ACEOF
44196/* end confdefs.h.  */
44197/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44198   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44199#define $ac_func innocuous_$ac_func
44200
44201/* System header to define __stub macros and hopefully few prototypes,
44202    which can conflict with char $ac_func (); below.
44203    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44204    <limits.h> exists even on freestanding compilers.  */
44205
44206#ifdef __STDC__
44207# include <limits.h>
44208#else
44209# include <assert.h>
44210#endif
44211
44212#undef $ac_func
44213
44214/* Override any GCC internal prototype to avoid an error.
44215   Use char because int might match the return type of a GCC
44216   builtin and then its argument prototype would still apply.  */
44217#ifdef __cplusplus
44218extern "C"
44219#endif
44220char $ac_func ();
44221/* The GNU C library defines this for functions which it implements
44222    to always fail with ENOSYS.  Some functions are actually named
44223    something starting with __ and the normal name is an alias.  */
44224#if defined __stub_$ac_func || defined __stub___$ac_func
44225choke me
44226#endif
44227
44228int
44229main ()
44230{
44231return $ac_func ();
44232  ;
44233  return 0;
44234}
44235_ACEOF
44236rm -f conftest.$ac_objext conftest$ac_exeext
44237if { (ac_try="$ac_link"
44238case "(($ac_try" in
44239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44240  *) ac_try_echo=$ac_try;;
44241esac
44242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44243$as_echo "$ac_try_echo") >&5
44244  (eval "$ac_link") 2>conftest.er1
44245  ac_status=$?
44246  grep -v '^ *+' conftest.er1 >conftest.err
44247  rm -f conftest.er1
44248  cat conftest.err >&5
44249  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44250  (exit $ac_status); } && {
44251	 test -z "$ac_c_werror_flag" ||
44252	 test ! -s conftest.err
44253       } && test -s conftest$ac_exeext && {
44254	 test "$cross_compiling" = yes ||
44255	 $as_test_x conftest$ac_exeext
44256       }; then
44257  eval "$as_ac_var=yes"
44258else
44259  $as_echo "$as_me: failed program was:" >&5
44260sed 's/^/| /' conftest.$ac_ext >&5
44261
44262	eval "$as_ac_var=no"
44263fi
44264
44265rm -rf conftest.dSYM
44266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44267      conftest$ac_exeext conftest.$ac_ext
44268fi
44269ac_res=`eval 'as_val=${'$as_ac_var'}
44270		 $as_echo "$as_val"'`
44271	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44272$as_echo "$ac_res" >&6; }
44273as_val=`eval 'as_val=${'$as_ac_var'}
44274		 $as_echo "$as_val"'`
44275   if test "x$as_val" = x""yes; then
44276  cat >>confdefs.h <<_ACEOF
44277#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44278_ACEOF
44279
44280fi
44281done
44282
44283
44284
44285
44286
44287
44288
44289
44290for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
44291do
44292as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44293{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44294$as_echo_n "checking for $ac_func... " >&6; }
44295if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44296  $as_echo_n "(cached) " >&6
44297else
44298  cat >conftest.$ac_ext <<_ACEOF
44299/* confdefs.h.  */
44300_ACEOF
44301cat confdefs.h >>conftest.$ac_ext
44302cat >>conftest.$ac_ext <<_ACEOF
44303/* end confdefs.h.  */
44304/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44305   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44306#define $ac_func innocuous_$ac_func
44307
44308/* System header to define __stub macros and hopefully few prototypes,
44309    which can conflict with char $ac_func (); below.
44310    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44311    <limits.h> exists even on freestanding compilers.  */
44312
44313#ifdef __STDC__
44314# include <limits.h>
44315#else
44316# include <assert.h>
44317#endif
44318
44319#undef $ac_func
44320
44321/* Override any GCC internal prototype to avoid an error.
44322   Use char because int might match the return type of a GCC
44323   builtin and then its argument prototype would still apply.  */
44324#ifdef __cplusplus
44325extern "C"
44326#endif
44327char $ac_func ();
44328/* The GNU C library defines this for functions which it implements
44329    to always fail with ENOSYS.  Some functions are actually named
44330    something starting with __ and the normal name is an alias.  */
44331#if defined __stub_$ac_func || defined __stub___$ac_func
44332choke me
44333#endif
44334
44335int
44336main ()
44337{
44338return $ac_func ();
44339  ;
44340  return 0;
44341}
44342_ACEOF
44343rm -f conftest.$ac_objext conftest$ac_exeext
44344if { (ac_try="$ac_link"
44345case "(($ac_try" in
44346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44347  *) ac_try_echo=$ac_try;;
44348esac
44349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44350$as_echo "$ac_try_echo") >&5
44351  (eval "$ac_link") 2>conftest.er1
44352  ac_status=$?
44353  grep -v '^ *+' conftest.er1 >conftest.err
44354  rm -f conftest.er1
44355  cat conftest.err >&5
44356  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44357  (exit $ac_status); } && {
44358	 test -z "$ac_c_werror_flag" ||
44359	 test ! -s conftest.err
44360       } && test -s conftest$ac_exeext && {
44361	 test "$cross_compiling" = yes ||
44362	 $as_test_x conftest$ac_exeext
44363       }; then
44364  eval "$as_ac_var=yes"
44365else
44366  $as_echo "$as_me: failed program was:" >&5
44367sed 's/^/| /' conftest.$ac_ext >&5
44368
44369	eval "$as_ac_var=no"
44370fi
44371
44372rm -rf conftest.dSYM
44373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44374      conftest$ac_exeext conftest.$ac_ext
44375fi
44376ac_res=`eval 'as_val=${'$as_ac_var'}
44377		 $as_echo "$as_val"'`
44378	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44379$as_echo "$ac_res" >&6; }
44380as_val=`eval 'as_val=${'$as_ac_var'}
44381		 $as_echo "$as_val"'`
44382   if test "x$as_val" = x""yes; then
44383  cat >>confdefs.h <<_ACEOF
44384#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44385_ACEOF
44386
44387fi
44388done
44389
44390
44391
44392for ac_func in __getcwd _getcwd
44393do
44394as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44395{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44396$as_echo_n "checking for $ac_func... " >&6; }
44397if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44398  $as_echo_n "(cached) " >&6
44399else
44400  cat >conftest.$ac_ext <<_ACEOF
44401/* confdefs.h.  */
44402_ACEOF
44403cat confdefs.h >>conftest.$ac_ext
44404cat >>conftest.$ac_ext <<_ACEOF
44405/* end confdefs.h.  */
44406/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44407   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44408#define $ac_func innocuous_$ac_func
44409
44410/* System header to define __stub macros and hopefully few prototypes,
44411    which can conflict with char $ac_func (); below.
44412    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44413    <limits.h> exists even on freestanding compilers.  */
44414
44415#ifdef __STDC__
44416# include <limits.h>
44417#else
44418# include <assert.h>
44419#endif
44420
44421#undef $ac_func
44422
44423/* Override any GCC internal prototype to avoid an error.
44424   Use char because int might match the return type of a GCC
44425   builtin and then its argument prototype would still apply.  */
44426#ifdef __cplusplus
44427extern "C"
44428#endif
44429char $ac_func ();
44430/* The GNU C library defines this for functions which it implements
44431    to always fail with ENOSYS.  Some functions are actually named
44432    something starting with __ and the normal name is an alias.  */
44433#if defined __stub_$ac_func || defined __stub___$ac_func
44434choke me
44435#endif
44436
44437int
44438main ()
44439{
44440return $ac_func ();
44441  ;
44442  return 0;
44443}
44444_ACEOF
44445rm -f conftest.$ac_objext conftest$ac_exeext
44446if { (ac_try="$ac_link"
44447case "(($ac_try" in
44448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44449  *) ac_try_echo=$ac_try;;
44450esac
44451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44452$as_echo "$ac_try_echo") >&5
44453  (eval "$ac_link") 2>conftest.er1
44454  ac_status=$?
44455  grep -v '^ *+' conftest.er1 >conftest.err
44456  rm -f conftest.er1
44457  cat conftest.err >&5
44458  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44459  (exit $ac_status); } && {
44460	 test -z "$ac_c_werror_flag" ||
44461	 test ! -s conftest.err
44462       } && test -s conftest$ac_exeext && {
44463	 test "$cross_compiling" = yes ||
44464	 $as_test_x conftest$ac_exeext
44465       }; then
44466  eval "$as_ac_var=yes"
44467else
44468  $as_echo "$as_me: failed program was:" >&5
44469sed 's/^/| /' conftest.$ac_ext >&5
44470
44471	eval "$as_ac_var=no"
44472fi
44473
44474rm -rf conftest.dSYM
44475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44476      conftest$ac_exeext conftest.$ac_ext
44477fi
44478ac_res=`eval 'as_val=${'$as_ac_var'}
44479		 $as_echo "$as_val"'`
44480	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44481$as_echo "$ac_res" >&6; }
44482as_val=`eval 'as_val=${'$as_ac_var'}
44483		 $as_echo "$as_val"'`
44484   if test "x$as_val" = x""yes; then
44485  cat >>confdefs.h <<_ACEOF
44486#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44487_ACEOF
44488
44489fi
44490done
44491
44492
44493
44494
44495for ac_func in __xstat __fxstat __lxstat
44496do
44497as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44498{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44499$as_echo_n "checking for $ac_func... " >&6; }
44500if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44501  $as_echo_n "(cached) " >&6
44502else
44503  cat >conftest.$ac_ext <<_ACEOF
44504/* confdefs.h.  */
44505_ACEOF
44506cat confdefs.h >>conftest.$ac_ext
44507cat >>conftest.$ac_ext <<_ACEOF
44508/* end confdefs.h.  */
44509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44510   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44511#define $ac_func innocuous_$ac_func
44512
44513/* System header to define __stub macros and hopefully few prototypes,
44514    which can conflict with char $ac_func (); below.
44515    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44516    <limits.h> exists even on freestanding compilers.  */
44517
44518#ifdef __STDC__
44519# include <limits.h>
44520#else
44521# include <assert.h>
44522#endif
44523
44524#undef $ac_func
44525
44526/* Override any GCC internal prototype to avoid an error.
44527   Use char because int might match the return type of a GCC
44528   builtin and then its argument prototype would still apply.  */
44529#ifdef __cplusplus
44530extern "C"
44531#endif
44532char $ac_func ();
44533/* The GNU C library defines this for functions which it implements
44534    to always fail with ENOSYS.  Some functions are actually named
44535    something starting with __ and the normal name is an alias.  */
44536#if defined __stub_$ac_func || defined __stub___$ac_func
44537choke me
44538#endif
44539
44540int
44541main ()
44542{
44543return $ac_func ();
44544  ;
44545  return 0;
44546}
44547_ACEOF
44548rm -f conftest.$ac_objext conftest$ac_exeext
44549if { (ac_try="$ac_link"
44550case "(($ac_try" in
44551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44552  *) ac_try_echo=$ac_try;;
44553esac
44554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44555$as_echo "$ac_try_echo") >&5
44556  (eval "$ac_link") 2>conftest.er1
44557  ac_status=$?
44558  grep -v '^ *+' conftest.er1 >conftest.err
44559  rm -f conftest.er1
44560  cat conftest.err >&5
44561  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44562  (exit $ac_status); } && {
44563	 test -z "$ac_c_werror_flag" ||
44564	 test ! -s conftest.err
44565       } && test -s conftest$ac_exeext && {
44566	 test "$cross_compiling" = yes ||
44567	 $as_test_x conftest$ac_exeext
44568       }; then
44569  eval "$as_ac_var=yes"
44570else
44571  $as_echo "$as_me: failed program was:" >&5
44572sed 's/^/| /' conftest.$ac_ext >&5
44573
44574	eval "$as_ac_var=no"
44575fi
44576
44577rm -rf conftest.dSYM
44578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44579      conftest$ac_exeext conftest.$ac_ext
44580fi
44581ac_res=`eval 'as_val=${'$as_ac_var'}
44582		 $as_echo "$as_val"'`
44583	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44584$as_echo "$ac_res" >&6; }
44585as_val=`eval 'as_val=${'$as_ac_var'}
44586		 $as_echo "$as_val"'`
44587   if test "x$as_val" = x""yes; then
44588  cat >>confdefs.h <<_ACEOF
44589#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44590_ACEOF
44591
44592fi
44593done
44594
44595
44596
44597
44598
44599
44600
44601for ac_func in _stat _lstat _fstat __stat __lstat __fstat
44602do
44603as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44604{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44605$as_echo_n "checking for $ac_func... " >&6; }
44606if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44607  $as_echo_n "(cached) " >&6
44608else
44609  cat >conftest.$ac_ext <<_ACEOF
44610/* confdefs.h.  */
44611_ACEOF
44612cat confdefs.h >>conftest.$ac_ext
44613cat >>conftest.$ac_ext <<_ACEOF
44614/* end confdefs.h.  */
44615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44616   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44617#define $ac_func innocuous_$ac_func
44618
44619/* System header to define __stub macros and hopefully few prototypes,
44620    which can conflict with char $ac_func (); below.
44621    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44622    <limits.h> exists even on freestanding compilers.  */
44623
44624#ifdef __STDC__
44625# include <limits.h>
44626#else
44627# include <assert.h>
44628#endif
44629
44630#undef $ac_func
44631
44632/* Override any GCC internal prototype to avoid an error.
44633   Use char because int might match the return type of a GCC
44634   builtin and then its argument prototype would still apply.  */
44635#ifdef __cplusplus
44636extern "C"
44637#endif
44638char $ac_func ();
44639/* The GNU C library defines this for functions which it implements
44640    to always fail with ENOSYS.  Some functions are actually named
44641    something starting with __ and the normal name is an alias.  */
44642#if defined __stub_$ac_func || defined __stub___$ac_func
44643choke me
44644#endif
44645
44646int
44647main ()
44648{
44649return $ac_func ();
44650  ;
44651  return 0;
44652}
44653_ACEOF
44654rm -f conftest.$ac_objext conftest$ac_exeext
44655if { (ac_try="$ac_link"
44656case "(($ac_try" in
44657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44658  *) ac_try_echo=$ac_try;;
44659esac
44660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44661$as_echo "$ac_try_echo") >&5
44662  (eval "$ac_link") 2>conftest.er1
44663  ac_status=$?
44664  grep -v '^ *+' conftest.er1 >conftest.err
44665  rm -f conftest.er1
44666  cat conftest.err >&5
44667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44668  (exit $ac_status); } && {
44669	 test -z "$ac_c_werror_flag" ||
44670	 test ! -s conftest.err
44671       } && test -s conftest$ac_exeext && {
44672	 test "$cross_compiling" = yes ||
44673	 $as_test_x conftest$ac_exeext
44674       }; then
44675  eval "$as_ac_var=yes"
44676else
44677  $as_echo "$as_me: failed program was:" >&5
44678sed 's/^/| /' conftest.$ac_ext >&5
44679
44680	eval "$as_ac_var=no"
44681fi
44682
44683rm -rf conftest.dSYM
44684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44685      conftest$ac_exeext conftest.$ac_ext
44686fi
44687ac_res=`eval 'as_val=${'$as_ac_var'}
44688		 $as_echo "$as_val"'`
44689	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44690$as_echo "$ac_res" >&6; }
44691as_val=`eval 'as_val=${'$as_ac_var'}
44692		 $as_echo "$as_val"'`
44693   if test "x$as_val" = x""yes; then
44694  cat >>confdefs.h <<_ACEOF
44695#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44696_ACEOF
44697
44698fi
44699done
44700
44701
44702
44703
44704
44705
44706
44707
44708
44709for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
44710do
44711as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44712{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44713$as_echo_n "checking for $ac_func... " >&6; }
44714if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44715  $as_echo_n "(cached) " >&6
44716else
44717  cat >conftest.$ac_ext <<_ACEOF
44718/* confdefs.h.  */
44719_ACEOF
44720cat confdefs.h >>conftest.$ac_ext
44721cat >>conftest.$ac_ext <<_ACEOF
44722/* end confdefs.h.  */
44723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44724   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44725#define $ac_func innocuous_$ac_func
44726
44727/* System header to define __stub macros and hopefully few prototypes,
44728    which can conflict with char $ac_func (); below.
44729    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44730    <limits.h> exists even on freestanding compilers.  */
44731
44732#ifdef __STDC__
44733# include <limits.h>
44734#else
44735# include <assert.h>
44736#endif
44737
44738#undef $ac_func
44739
44740/* Override any GCC internal prototype to avoid an error.
44741   Use char because int might match the return type of a GCC
44742   builtin and then its argument prototype would still apply.  */
44743#ifdef __cplusplus
44744extern "C"
44745#endif
44746char $ac_func ();
44747/* The GNU C library defines this for functions which it implements
44748    to always fail with ENOSYS.  Some functions are actually named
44749    something starting with __ and the normal name is an alias.  */
44750#if defined __stub_$ac_func || defined __stub___$ac_func
44751choke me
44752#endif
44753
44754int
44755main ()
44756{
44757return $ac_func ();
44758  ;
44759  return 0;
44760}
44761_ACEOF
44762rm -f conftest.$ac_objext conftest$ac_exeext
44763if { (ac_try="$ac_link"
44764case "(($ac_try" in
44765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44766  *) ac_try_echo=$ac_try;;
44767esac
44768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44769$as_echo "$ac_try_echo") >&5
44770  (eval "$ac_link") 2>conftest.er1
44771  ac_status=$?
44772  grep -v '^ *+' conftest.er1 >conftest.err
44773  rm -f conftest.er1
44774  cat conftest.err >&5
44775  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44776  (exit $ac_status); } && {
44777	 test -z "$ac_c_werror_flag" ||
44778	 test ! -s conftest.err
44779       } && test -s conftest$ac_exeext && {
44780	 test "$cross_compiling" = yes ||
44781	 $as_test_x conftest$ac_exeext
44782       }; then
44783  eval "$as_ac_var=yes"
44784else
44785  $as_echo "$as_me: failed program was:" >&5
44786sed 's/^/| /' conftest.$ac_ext >&5
44787
44788	eval "$as_ac_var=no"
44789fi
44790
44791rm -rf conftest.dSYM
44792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44793      conftest$ac_exeext conftest.$ac_ext
44794fi
44795ac_res=`eval 'as_val=${'$as_ac_var'}
44796		 $as_echo "$as_val"'`
44797	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44798$as_echo "$ac_res" >&6; }
44799as_val=`eval 'as_val=${'$as_ac_var'}
44800		 $as_echo "$as_val"'`
44801   if test "x$as_val" = x""yes; then
44802  cat >>confdefs.h <<_ACEOF
44803#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44804_ACEOF
44805
44806fi
44807done
44808
44809
44810
44811
44812
44813
44814
44815for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
44816do
44817as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44818{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44819$as_echo_n "checking for $ac_func... " >&6; }
44820if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44821  $as_echo_n "(cached) " >&6
44822else
44823  cat >conftest.$ac_ext <<_ACEOF
44824/* confdefs.h.  */
44825_ACEOF
44826cat confdefs.h >>conftest.$ac_ext
44827cat >>conftest.$ac_ext <<_ACEOF
44828/* end confdefs.h.  */
44829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44830   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44831#define $ac_func innocuous_$ac_func
44832
44833/* System header to define __stub macros and hopefully few prototypes,
44834    which can conflict with char $ac_func (); below.
44835    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44836    <limits.h> exists even on freestanding compilers.  */
44837
44838#ifdef __STDC__
44839# include <limits.h>
44840#else
44841# include <assert.h>
44842#endif
44843
44844#undef $ac_func
44845
44846/* Override any GCC internal prototype to avoid an error.
44847   Use char because int might match the return type of a GCC
44848   builtin and then its argument prototype would still apply.  */
44849#ifdef __cplusplus
44850extern "C"
44851#endif
44852char $ac_func ();
44853/* The GNU C library defines this for functions which it implements
44854    to always fail with ENOSYS.  Some functions are actually named
44855    something starting with __ and the normal name is an alias.  */
44856#if defined __stub_$ac_func || defined __stub___$ac_func
44857choke me
44858#endif
44859
44860int
44861main ()
44862{
44863return $ac_func ();
44864  ;
44865  return 0;
44866}
44867_ACEOF
44868rm -f conftest.$ac_objext conftest$ac_exeext
44869if { (ac_try="$ac_link"
44870case "(($ac_try" in
44871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44872  *) ac_try_echo=$ac_try;;
44873esac
44874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44875$as_echo "$ac_try_echo") >&5
44876  (eval "$ac_link") 2>conftest.er1
44877  ac_status=$?
44878  grep -v '^ *+' conftest.er1 >conftest.err
44879  rm -f conftest.er1
44880  cat conftest.err >&5
44881  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44882  (exit $ac_status); } && {
44883	 test -z "$ac_c_werror_flag" ||
44884	 test ! -s conftest.err
44885       } && test -s conftest$ac_exeext && {
44886	 test "$cross_compiling" = yes ||
44887	 $as_test_x conftest$ac_exeext
44888       }; then
44889  eval "$as_ac_var=yes"
44890else
44891  $as_echo "$as_me: failed program was:" >&5
44892sed 's/^/| /' conftest.$ac_ext >&5
44893
44894	eval "$as_ac_var=no"
44895fi
44896
44897rm -rf conftest.dSYM
44898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44899      conftest$ac_exeext conftest.$ac_ext
44900fi
44901ac_res=`eval 'as_val=${'$as_ac_var'}
44902		 $as_echo "$as_val"'`
44903	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44904$as_echo "$ac_res" >&6; }
44905as_val=`eval 'as_val=${'$as_ac_var'}
44906		 $as_echo "$as_val"'`
44907   if test "x$as_val" = x""yes; then
44908  cat >>confdefs.h <<_ACEOF
44909#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44910_ACEOF
44911
44912fi
44913done
44914
44915
44916
44917
44918
44919
44920
44921for ac_func in getdents __getdents _lseek __lseek _read __read
44922do
44923as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44924{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44925$as_echo_n "checking for $ac_func... " >&6; }
44926if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44927  $as_echo_n "(cached) " >&6
44928else
44929  cat >conftest.$ac_ext <<_ACEOF
44930/* confdefs.h.  */
44931_ACEOF
44932cat confdefs.h >>conftest.$ac_ext
44933cat >>conftest.$ac_ext <<_ACEOF
44934/* end confdefs.h.  */
44935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44936   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44937#define $ac_func innocuous_$ac_func
44938
44939/* System header to define __stub macros and hopefully few prototypes,
44940    which can conflict with char $ac_func (); below.
44941    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44942    <limits.h> exists even on freestanding compilers.  */
44943
44944#ifdef __STDC__
44945# include <limits.h>
44946#else
44947# include <assert.h>
44948#endif
44949
44950#undef $ac_func
44951
44952/* Override any GCC internal prototype to avoid an error.
44953   Use char because int might match the return type of a GCC
44954   builtin and then its argument prototype would still apply.  */
44955#ifdef __cplusplus
44956extern "C"
44957#endif
44958char $ac_func ();
44959/* The GNU C library defines this for functions which it implements
44960    to always fail with ENOSYS.  Some functions are actually named
44961    something starting with __ and the normal name is an alias.  */
44962#if defined __stub_$ac_func || defined __stub___$ac_func
44963choke me
44964#endif
44965
44966int
44967main ()
44968{
44969return $ac_func ();
44970  ;
44971  return 0;
44972}
44973_ACEOF
44974rm -f conftest.$ac_objext conftest$ac_exeext
44975if { (ac_try="$ac_link"
44976case "(($ac_try" in
44977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44978  *) ac_try_echo=$ac_try;;
44979esac
44980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44981$as_echo "$ac_try_echo") >&5
44982  (eval "$ac_link") 2>conftest.er1
44983  ac_status=$?
44984  grep -v '^ *+' conftest.er1 >conftest.err
44985  rm -f conftest.er1
44986  cat conftest.err >&5
44987  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44988  (exit $ac_status); } && {
44989	 test -z "$ac_c_werror_flag" ||
44990	 test ! -s conftest.err
44991       } && test -s conftest$ac_exeext && {
44992	 test "$cross_compiling" = yes ||
44993	 $as_test_x conftest$ac_exeext
44994       }; then
44995  eval "$as_ac_var=yes"
44996else
44997  $as_echo "$as_me: failed program was:" >&5
44998sed 's/^/| /' conftest.$ac_ext >&5
44999
45000	eval "$as_ac_var=no"
45001fi
45002
45003rm -rf conftest.dSYM
45004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45005      conftest$ac_exeext conftest.$ac_ext
45006fi
45007ac_res=`eval 'as_val=${'$as_ac_var'}
45008		 $as_echo "$as_val"'`
45009	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45010$as_echo "$ac_res" >&6; }
45011as_val=`eval 'as_val=${'$as_ac_var'}
45012		 $as_echo "$as_val"'`
45013   if test "x$as_val" = x""yes; then
45014  cat >>confdefs.h <<_ACEOF
45015#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45016_ACEOF
45017
45018fi
45019done
45020
45021
45022
45023
45024
45025
45026for ac_func in getdirentries _write __write _fork __fork
45027do
45028as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45029{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45030$as_echo_n "checking for $ac_func... " >&6; }
45031if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45032  $as_echo_n "(cached) " >&6
45033else
45034  cat >conftest.$ac_ext <<_ACEOF
45035/* confdefs.h.  */
45036_ACEOF
45037cat confdefs.h >>conftest.$ac_ext
45038cat >>conftest.$ac_ext <<_ACEOF
45039/* end confdefs.h.  */
45040/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45041   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45042#define $ac_func innocuous_$ac_func
45043
45044/* System header to define __stub macros and hopefully few prototypes,
45045    which can conflict with char $ac_func (); below.
45046    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45047    <limits.h> exists even on freestanding compilers.  */
45048
45049#ifdef __STDC__
45050# include <limits.h>
45051#else
45052# include <assert.h>
45053#endif
45054
45055#undef $ac_func
45056
45057/* Override any GCC internal prototype to avoid an error.
45058   Use char because int might match the return type of a GCC
45059   builtin and then its argument prototype would still apply.  */
45060#ifdef __cplusplus
45061extern "C"
45062#endif
45063char $ac_func ();
45064/* The GNU C library defines this for functions which it implements
45065    to always fail with ENOSYS.  Some functions are actually named
45066    something starting with __ and the normal name is an alias.  */
45067#if defined __stub_$ac_func || defined __stub___$ac_func
45068choke me
45069#endif
45070
45071int
45072main ()
45073{
45074return $ac_func ();
45075  ;
45076  return 0;
45077}
45078_ACEOF
45079rm -f conftest.$ac_objext conftest$ac_exeext
45080if { (ac_try="$ac_link"
45081case "(($ac_try" in
45082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45083  *) ac_try_echo=$ac_try;;
45084esac
45085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45086$as_echo "$ac_try_echo") >&5
45087  (eval "$ac_link") 2>conftest.er1
45088  ac_status=$?
45089  grep -v '^ *+' conftest.er1 >conftest.err
45090  rm -f conftest.er1
45091  cat conftest.err >&5
45092  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45093  (exit $ac_status); } && {
45094	 test -z "$ac_c_werror_flag" ||
45095	 test ! -s conftest.err
45096       } && test -s conftest$ac_exeext && {
45097	 test "$cross_compiling" = yes ||
45098	 $as_test_x conftest$ac_exeext
45099       }; then
45100  eval "$as_ac_var=yes"
45101else
45102  $as_echo "$as_me: failed program was:" >&5
45103sed 's/^/| /' conftest.$ac_ext >&5
45104
45105	eval "$as_ac_var=no"
45106fi
45107
45108rm -rf conftest.dSYM
45109rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45110      conftest$ac_exeext conftest.$ac_ext
45111fi
45112ac_res=`eval 'as_val=${'$as_ac_var'}
45113		 $as_echo "$as_val"'`
45114	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45115$as_echo "$ac_res" >&6; }
45116as_val=`eval 'as_val=${'$as_ac_var'}
45117		 $as_echo "$as_val"'`
45118   if test "x$as_val" = x""yes; then
45119  cat >>confdefs.h <<_ACEOF
45120#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45121_ACEOF
45122
45123fi
45124done
45125
45126
45127
45128
45129
45130
45131
45132for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
45133do
45134as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45135{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45136$as_echo_n "checking for $ac_func... " >&6; }
45137if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45138  $as_echo_n "(cached) " >&6
45139else
45140  cat >conftest.$ac_ext <<_ACEOF
45141/* confdefs.h.  */
45142_ACEOF
45143cat confdefs.h >>conftest.$ac_ext
45144cat >>conftest.$ac_ext <<_ACEOF
45145/* end confdefs.h.  */
45146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45147   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45148#define $ac_func innocuous_$ac_func
45149
45150/* System header to define __stub macros and hopefully few prototypes,
45151    which can conflict with char $ac_func (); below.
45152    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45153    <limits.h> exists even on freestanding compilers.  */
45154
45155#ifdef __STDC__
45156# include <limits.h>
45157#else
45158# include <assert.h>
45159#endif
45160
45161#undef $ac_func
45162
45163/* Override any GCC internal prototype to avoid an error.
45164   Use char because int might match the return type of a GCC
45165   builtin and then its argument prototype would still apply.  */
45166#ifdef __cplusplus
45167extern "C"
45168#endif
45169char $ac_func ();
45170/* The GNU C library defines this for functions which it implements
45171    to always fail with ENOSYS.  Some functions are actually named
45172    something starting with __ and the normal name is an alias.  */
45173#if defined __stub_$ac_func || defined __stub___$ac_func
45174choke me
45175#endif
45176
45177int
45178main ()
45179{
45180return $ac_func ();
45181  ;
45182  return 0;
45183}
45184_ACEOF
45185rm -f conftest.$ac_objext conftest$ac_exeext
45186if { (ac_try="$ac_link"
45187case "(($ac_try" in
45188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45189  *) ac_try_echo=$ac_try;;
45190esac
45191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45192$as_echo "$ac_try_echo") >&5
45193  (eval "$ac_link") 2>conftest.er1
45194  ac_status=$?
45195  grep -v '^ *+' conftest.er1 >conftest.err
45196  rm -f conftest.er1
45197  cat conftest.err >&5
45198  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45199  (exit $ac_status); } && {
45200	 test -z "$ac_c_werror_flag" ||
45201	 test ! -s conftest.err
45202       } && test -s conftest$ac_exeext && {
45203	 test "$cross_compiling" = yes ||
45204	 $as_test_x conftest$ac_exeext
45205       }; then
45206  eval "$as_ac_var=yes"
45207else
45208  $as_echo "$as_me: failed program was:" >&5
45209sed 's/^/| /' conftest.$ac_ext >&5
45210
45211	eval "$as_ac_var=no"
45212fi
45213
45214rm -rf conftest.dSYM
45215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45216      conftest$ac_exeext conftest.$ac_ext
45217fi
45218ac_res=`eval 'as_val=${'$as_ac_var'}
45219		 $as_echo "$as_val"'`
45220	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45221$as_echo "$ac_res" >&6; }
45222as_val=`eval 'as_val=${'$as_ac_var'}
45223		 $as_echo "$as_val"'`
45224   if test "x$as_val" = x""yes; then
45225  cat >>confdefs.h <<_ACEOF
45226#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45227_ACEOF
45228
45229fi
45230done
45231
45232
45233
45234
45235
45236
45237
45238
45239for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
45240do
45241as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45242{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45243$as_echo_n "checking for $ac_func... " >&6; }
45244if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45245  $as_echo_n "(cached) " >&6
45246else
45247  cat >conftest.$ac_ext <<_ACEOF
45248/* confdefs.h.  */
45249_ACEOF
45250cat confdefs.h >>conftest.$ac_ext
45251cat >>conftest.$ac_ext <<_ACEOF
45252/* end confdefs.h.  */
45253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45254   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45255#define $ac_func innocuous_$ac_func
45256
45257/* System header to define __stub macros and hopefully few prototypes,
45258    which can conflict with char $ac_func (); below.
45259    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45260    <limits.h> exists even on freestanding compilers.  */
45261
45262#ifdef __STDC__
45263# include <limits.h>
45264#else
45265# include <assert.h>
45266#endif
45267
45268#undef $ac_func
45269
45270/* Override any GCC internal prototype to avoid an error.
45271   Use char because int might match the return type of a GCC
45272   builtin and then its argument prototype would still apply.  */
45273#ifdef __cplusplus
45274extern "C"
45275#endif
45276char $ac_func ();
45277/* The GNU C library defines this for functions which it implements
45278    to always fail with ENOSYS.  Some functions are actually named
45279    something starting with __ and the normal name is an alias.  */
45280#if defined __stub_$ac_func || defined __stub___$ac_func
45281choke me
45282#endif
45283
45284int
45285main ()
45286{
45287return $ac_func ();
45288  ;
45289  return 0;
45290}
45291_ACEOF
45292rm -f conftest.$ac_objext conftest$ac_exeext
45293if { (ac_try="$ac_link"
45294case "(($ac_try" in
45295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45296  *) ac_try_echo=$ac_try;;
45297esac
45298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45299$as_echo "$ac_try_echo") >&5
45300  (eval "$ac_link") 2>conftest.er1
45301  ac_status=$?
45302  grep -v '^ *+' conftest.er1 >conftest.err
45303  rm -f conftest.er1
45304  cat conftest.err >&5
45305  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45306  (exit $ac_status); } && {
45307	 test -z "$ac_c_werror_flag" ||
45308	 test ! -s conftest.err
45309       } && test -s conftest$ac_exeext && {
45310	 test "$cross_compiling" = yes ||
45311	 $as_test_x conftest$ac_exeext
45312       }; then
45313  eval "$as_ac_var=yes"
45314else
45315  $as_echo "$as_me: failed program was:" >&5
45316sed 's/^/| /' conftest.$ac_ext >&5
45317
45318	eval "$as_ac_var=no"
45319fi
45320
45321rm -rf conftest.dSYM
45322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45323      conftest$ac_exeext conftest.$ac_ext
45324fi
45325ac_res=`eval 'as_val=${'$as_ac_var'}
45326		 $as_echo "$as_val"'`
45327	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45328$as_echo "$ac_res" >&6; }
45329as_val=`eval 'as_val=${'$as_ac_var'}
45330		 $as_echo "$as_val"'`
45331   if test "x$as_val" = x""yes; then
45332  cat >>confdefs.h <<_ACEOF
45333#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45334_ACEOF
45335
45336fi
45337done
45338
45339
45340
45341
45342
45343
45344
45345for ac_func in pread _pread __pread pread64 _pread64 __pread64
45346do
45347as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45348{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45349$as_echo_n "checking for $ac_func... " >&6; }
45350if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45351  $as_echo_n "(cached) " >&6
45352else
45353  cat >conftest.$ac_ext <<_ACEOF
45354/* confdefs.h.  */
45355_ACEOF
45356cat confdefs.h >>conftest.$ac_ext
45357cat >>conftest.$ac_ext <<_ACEOF
45358/* end confdefs.h.  */
45359/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45360   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45361#define $ac_func innocuous_$ac_func
45362
45363/* System header to define __stub macros and hopefully few prototypes,
45364    which can conflict with char $ac_func (); below.
45365    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45366    <limits.h> exists even on freestanding compilers.  */
45367
45368#ifdef __STDC__
45369# include <limits.h>
45370#else
45371# include <assert.h>
45372#endif
45373
45374#undef $ac_func
45375
45376/* Override any GCC internal prototype to avoid an error.
45377   Use char because int might match the return type of a GCC
45378   builtin and then its argument prototype would still apply.  */
45379#ifdef __cplusplus
45380extern "C"
45381#endif
45382char $ac_func ();
45383/* The GNU C library defines this for functions which it implements
45384    to always fail with ENOSYS.  Some functions are actually named
45385    something starting with __ and the normal name is an alias.  */
45386#if defined __stub_$ac_func || defined __stub___$ac_func
45387choke me
45388#endif
45389
45390int
45391main ()
45392{
45393return $ac_func ();
45394  ;
45395  return 0;
45396}
45397_ACEOF
45398rm -f conftest.$ac_objext conftest$ac_exeext
45399if { (ac_try="$ac_link"
45400case "(($ac_try" in
45401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45402  *) ac_try_echo=$ac_try;;
45403esac
45404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45405$as_echo "$ac_try_echo") >&5
45406  (eval "$ac_link") 2>conftest.er1
45407  ac_status=$?
45408  grep -v '^ *+' conftest.er1 >conftest.err
45409  rm -f conftest.er1
45410  cat conftest.err >&5
45411  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45412  (exit $ac_status); } && {
45413	 test -z "$ac_c_werror_flag" ||
45414	 test ! -s conftest.err
45415       } && test -s conftest$ac_exeext && {
45416	 test "$cross_compiling" = yes ||
45417	 $as_test_x conftest$ac_exeext
45418       }; then
45419  eval "$as_ac_var=yes"
45420else
45421  $as_echo "$as_me: failed program was:" >&5
45422sed 's/^/| /' conftest.$ac_ext >&5
45423
45424	eval "$as_ac_var=no"
45425fi
45426
45427rm -rf conftest.dSYM
45428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45429      conftest$ac_exeext conftest.$ac_ext
45430fi
45431ac_res=`eval 'as_val=${'$as_ac_var'}
45432		 $as_echo "$as_val"'`
45433	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45434$as_echo "$ac_res" >&6; }
45435as_val=`eval 'as_val=${'$as_ac_var'}
45436		 $as_echo "$as_val"'`
45437   if test "x$as_val" = x""yes; then
45438  cat >>confdefs.h <<_ACEOF
45439#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45440_ACEOF
45441
45442fi
45443done
45444
45445
45446
45447
45448
45449
45450
45451for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
45452do
45453as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45454{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45455$as_echo_n "checking for $ac_func... " >&6; }
45456if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45457  $as_echo_n "(cached) " >&6
45458else
45459  cat >conftest.$ac_ext <<_ACEOF
45460/* confdefs.h.  */
45461_ACEOF
45462cat confdefs.h >>conftest.$ac_ext
45463cat >>conftest.$ac_ext <<_ACEOF
45464/* end confdefs.h.  */
45465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45466   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45467#define $ac_func innocuous_$ac_func
45468
45469/* System header to define __stub macros and hopefully few prototypes,
45470    which can conflict with char $ac_func (); below.
45471    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45472    <limits.h> exists even on freestanding compilers.  */
45473
45474#ifdef __STDC__
45475# include <limits.h>
45476#else
45477# include <assert.h>
45478#endif
45479
45480#undef $ac_func
45481
45482/* Override any GCC internal prototype to avoid an error.
45483   Use char because int might match the return type of a GCC
45484   builtin and then its argument prototype would still apply.  */
45485#ifdef __cplusplus
45486extern "C"
45487#endif
45488char $ac_func ();
45489/* The GNU C library defines this for functions which it implements
45490    to always fail with ENOSYS.  Some functions are actually named
45491    something starting with __ and the normal name is an alias.  */
45492#if defined __stub_$ac_func || defined __stub___$ac_func
45493choke me
45494#endif
45495
45496int
45497main ()
45498{
45499return $ac_func ();
45500  ;
45501  return 0;
45502}
45503_ACEOF
45504rm -f conftest.$ac_objext conftest$ac_exeext
45505if { (ac_try="$ac_link"
45506case "(($ac_try" in
45507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45508  *) ac_try_echo=$ac_try;;
45509esac
45510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45511$as_echo "$ac_try_echo") >&5
45512  (eval "$ac_link") 2>conftest.er1
45513  ac_status=$?
45514  grep -v '^ *+' conftest.er1 >conftest.err
45515  rm -f conftest.er1
45516  cat conftest.err >&5
45517  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45518  (exit $ac_status); } && {
45519	 test -z "$ac_c_werror_flag" ||
45520	 test ! -s conftest.err
45521       } && test -s conftest$ac_exeext && {
45522	 test "$cross_compiling" = yes ||
45523	 $as_test_x conftest$ac_exeext
45524       }; then
45525  eval "$as_ac_var=yes"
45526else
45527  $as_echo "$as_me: failed program was:" >&5
45528sed 's/^/| /' conftest.$ac_ext >&5
45529
45530	eval "$as_ac_var=no"
45531fi
45532
45533rm -rf conftest.dSYM
45534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45535      conftest$ac_exeext conftest.$ac_ext
45536fi
45537ac_res=`eval 'as_val=${'$as_ac_var'}
45538		 $as_echo "$as_val"'`
45539	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45540$as_echo "$ac_res" >&6; }
45541as_val=`eval 'as_val=${'$as_ac_var'}
45542		 $as_echo "$as_val"'`
45543   if test "x$as_val" = x""yes; then
45544  cat >>confdefs.h <<_ACEOF
45545#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45546_ACEOF
45547
45548fi
45549done
45550
45551
45552
45553
45554
45555for ac_func in open64 _open64 __open64 creat64
45556do
45557as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45558{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45559$as_echo_n "checking for $ac_func... " >&6; }
45560if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45561  $as_echo_n "(cached) " >&6
45562else
45563  cat >conftest.$ac_ext <<_ACEOF
45564/* confdefs.h.  */
45565_ACEOF
45566cat confdefs.h >>conftest.$ac_ext
45567cat >>conftest.$ac_ext <<_ACEOF
45568/* end confdefs.h.  */
45569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45570   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45571#define $ac_func innocuous_$ac_func
45572
45573/* System header to define __stub macros and hopefully few prototypes,
45574    which can conflict with char $ac_func (); below.
45575    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45576    <limits.h> exists even on freestanding compilers.  */
45577
45578#ifdef __STDC__
45579# include <limits.h>
45580#else
45581# include <assert.h>
45582#endif
45583
45584#undef $ac_func
45585
45586/* Override any GCC internal prototype to avoid an error.
45587   Use char because int might match the return type of a GCC
45588   builtin and then its argument prototype would still apply.  */
45589#ifdef __cplusplus
45590extern "C"
45591#endif
45592char $ac_func ();
45593/* The GNU C library defines this for functions which it implements
45594    to always fail with ENOSYS.  Some functions are actually named
45595    something starting with __ and the normal name is an alias.  */
45596#if defined __stub_$ac_func || defined __stub___$ac_func
45597choke me
45598#endif
45599
45600int
45601main ()
45602{
45603return $ac_func ();
45604  ;
45605  return 0;
45606}
45607_ACEOF
45608rm -f conftest.$ac_objext conftest$ac_exeext
45609if { (ac_try="$ac_link"
45610case "(($ac_try" in
45611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45612  *) ac_try_echo=$ac_try;;
45613esac
45614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45615$as_echo "$ac_try_echo") >&5
45616  (eval "$ac_link") 2>conftest.er1
45617  ac_status=$?
45618  grep -v '^ *+' conftest.er1 >conftest.err
45619  rm -f conftest.er1
45620  cat conftest.err >&5
45621  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45622  (exit $ac_status); } && {
45623	 test -z "$ac_c_werror_flag" ||
45624	 test ! -s conftest.err
45625       } && test -s conftest$ac_exeext && {
45626	 test "$cross_compiling" = yes ||
45627	 $as_test_x conftest$ac_exeext
45628       }; then
45629  eval "$as_ac_var=yes"
45630else
45631  $as_echo "$as_me: failed program was:" >&5
45632sed 's/^/| /' conftest.$ac_ext >&5
45633
45634	eval "$as_ac_var=no"
45635fi
45636
45637rm -rf conftest.dSYM
45638rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45639      conftest$ac_exeext conftest.$ac_ext
45640fi
45641ac_res=`eval 'as_val=${'$as_ac_var'}
45642		 $as_echo "$as_val"'`
45643	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45644$as_echo "$ac_res" >&6; }
45645as_val=`eval 'as_val=${'$as_ac_var'}
45646		 $as_echo "$as_val"'`
45647   if test "x$as_val" = x""yes; then
45648  cat >>confdefs.h <<_ACEOF
45649#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45650_ACEOF
45651
45652fi
45653done
45654
45655
45656for ac_func in prctl
45657do
45658as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45659{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45660$as_echo_n "checking for $ac_func... " >&6; }
45661if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45662  $as_echo_n "(cached) " >&6
45663else
45664  cat >conftest.$ac_ext <<_ACEOF
45665/* confdefs.h.  */
45666_ACEOF
45667cat confdefs.h >>conftest.$ac_ext
45668cat >>conftest.$ac_ext <<_ACEOF
45669/* end confdefs.h.  */
45670/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45671   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45672#define $ac_func innocuous_$ac_func
45673
45674/* System header to define __stub macros and hopefully few prototypes,
45675    which can conflict with char $ac_func (); below.
45676    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45677    <limits.h> exists even on freestanding compilers.  */
45678
45679#ifdef __STDC__
45680# include <limits.h>
45681#else
45682# include <assert.h>
45683#endif
45684
45685#undef $ac_func
45686
45687/* Override any GCC internal prototype to avoid an error.
45688   Use char because int might match the return type of a GCC
45689   builtin and then its argument prototype would still apply.  */
45690#ifdef __cplusplus
45691extern "C"
45692#endif
45693char $ac_func ();
45694/* The GNU C library defines this for functions which it implements
45695    to always fail with ENOSYS.  Some functions are actually named
45696    something starting with __ and the normal name is an alias.  */
45697#if defined __stub_$ac_func || defined __stub___$ac_func
45698choke me
45699#endif
45700
45701int
45702main ()
45703{
45704return $ac_func ();
45705  ;
45706  return 0;
45707}
45708_ACEOF
45709rm -f conftest.$ac_objext conftest$ac_exeext
45710if { (ac_try="$ac_link"
45711case "(($ac_try" in
45712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45713  *) ac_try_echo=$ac_try;;
45714esac
45715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45716$as_echo "$ac_try_echo") >&5
45717  (eval "$ac_link") 2>conftest.er1
45718  ac_status=$?
45719  grep -v '^ *+' conftest.er1 >conftest.err
45720  rm -f conftest.er1
45721  cat conftest.err >&5
45722  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45723  (exit $ac_status); } && {
45724	 test -z "$ac_c_werror_flag" ||
45725	 test ! -s conftest.err
45726       } && test -s conftest$ac_exeext && {
45727	 test "$cross_compiling" = yes ||
45728	 $as_test_x conftest$ac_exeext
45729       }; then
45730  eval "$as_ac_var=yes"
45731else
45732  $as_echo "$as_me: failed program was:" >&5
45733sed 's/^/| /' conftest.$ac_ext >&5
45734
45735	eval "$as_ac_var=no"
45736fi
45737
45738rm -rf conftest.dSYM
45739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45740      conftest$ac_exeext conftest.$ac_ext
45741fi
45742ac_res=`eval 'as_val=${'$as_ac_var'}
45743		 $as_echo "$as_val"'`
45744	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45745$as_echo "$ac_res" >&6; }
45746as_val=`eval 'as_val=${'$as_ac_var'}
45747		 $as_echo "$as_val"'`
45748   if test "x$as_val" = x""yes; then
45749  cat >>confdefs.h <<_ACEOF
45750#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45751_ACEOF
45752
45753fi
45754done
45755
45756
45757cat >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
45764#ifdef HAVE_SYS_PRCTL_H
45765#include <sys/prctl.h>
45766#endif
45767
45768int
45769main ()
45770{
45771int i; i = prtcl(0);
45772  ;
45773  return 0;
45774}
45775_ACEOF
45776rm -f conftest.$ac_objext
45777if { (ac_try="$ac_compile"
45778case "(($ac_try" in
45779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45780  *) ac_try_echo=$ac_try;;
45781esac
45782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45783$as_echo "$ac_try_echo") >&5
45784  (eval "$ac_compile") 2>conftest.er1
45785  ac_status=$?
45786  grep -v '^ *+' conftest.er1 >conftest.err
45787  rm -f conftest.er1
45788  cat conftest.err >&5
45789  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45790  (exit $ac_status); } && {
45791	 test -z "$ac_c_werror_flag" ||
45792	 test ! -s conftest.err
45793       } && test -s conftest.$ac_objext; then
45794
45795cat >>confdefs.h <<\_ACEOF
45796#define HAVE_PRCTL 1
45797_ACEOF
45798
45799else
45800  $as_echo "$as_me: failed program was:" >&5
45801sed 's/^/| /' conftest.$ac_ext >&5
45802
45803
45804fi
45805
45806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45807
45808#
45809#
45810#
45811case "$host_os" in
45812    *linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu)
45813       # glibc <= 2.3.2 has a broken getgrouplist
45814       { $as_echo "$as_me:$LINENO: checking for good getgrouplist" >&5
45815$as_echo_n "checking for good getgrouplist... " >&6; }
45816if test "${samba_cv_linux_getgrouplist_ok+set}" = set; then
45817  $as_echo_n "(cached) " >&6
45818else
45819  if test "$cross_compiling" = yes; then
45820  samba_cv_linux_getgrouplist_ok=cross
45821else
45822  cat >conftest.$ac_ext <<_ACEOF
45823/* confdefs.h.  */
45824_ACEOF
45825cat confdefs.h >>conftest.$ac_ext
45826cat >>conftest.$ac_ext <<_ACEOF
45827/* end confdefs.h.  */
45828
45829#include <unistd.h>
45830#include <sys/utsname.h>
45831main() {
45832       /* glibc up to 2.3 has a broken getgrouplist */
45833#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
45834       int libc_major = __GLIBC__;
45835       int libc_minor = __GLIBC_MINOR__;
45836
45837       if (libc_major < 2)
45838              exit(1);
45839       if ((libc_major == 2) && (libc_minor <= 3))
45840              exit(1);
45841#endif
45842       exit(0);
45843}
45844
45845_ACEOF
45846rm -f conftest$ac_exeext
45847if { (ac_try="$ac_link"
45848case "(($ac_try" in
45849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45850  *) ac_try_echo=$ac_try;;
45851esac
45852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45853$as_echo "$ac_try_echo") >&5
45854  (eval "$ac_link") 2>&5
45855  ac_status=$?
45856  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45857  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45858  { (case "(($ac_try" in
45859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45860  *) ac_try_echo=$ac_try;;
45861esac
45862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45863$as_echo "$ac_try_echo") >&5
45864  (eval "$ac_try") 2>&5
45865  ac_status=$?
45866  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45867  (exit $ac_status); }; }; then
45868  samba_cv_linux_getgrouplist_ok=yes
45869else
45870  $as_echo "$as_me: program exited with status $ac_status" >&5
45871$as_echo "$as_me: failed program was:" >&5
45872sed 's/^/| /' conftest.$ac_ext >&5
45873
45874( exit $ac_status )
45875samba_cv_linux_getgrouplist_ok=no
45876fi
45877rm -rf conftest.dSYM
45878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45879fi
45880
45881
45882fi
45883{ $as_echo "$as_me:$LINENO: result: $samba_cv_linux_getgrouplist_ok" >&5
45884$as_echo "$samba_cv_linux_getgrouplist_ok" >&6; }
45885       if test x"$samba_cv_linux_getgrouplist_ok" = x"yes"; then
45886
45887cat >>confdefs.h <<\_ACEOF
45888#define HAVE_GETGROUPLIST 1
45889_ACEOF
45890
45891       fi
45892       ;;
45893    *)
45894
45895for ac_func in getgrouplist
45896do
45897as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45898{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45899$as_echo_n "checking for $ac_func... " >&6; }
45900if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45901  $as_echo_n "(cached) " >&6
45902else
45903  cat >conftest.$ac_ext <<_ACEOF
45904/* confdefs.h.  */
45905_ACEOF
45906cat confdefs.h >>conftest.$ac_ext
45907cat >>conftest.$ac_ext <<_ACEOF
45908/* end confdefs.h.  */
45909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45910   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45911#define $ac_func innocuous_$ac_func
45912
45913/* System header to define __stub macros and hopefully few prototypes,
45914    which can conflict with char $ac_func (); below.
45915    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45916    <limits.h> exists even on freestanding compilers.  */
45917
45918#ifdef __STDC__
45919# include <limits.h>
45920#else
45921# include <assert.h>
45922#endif
45923
45924#undef $ac_func
45925
45926/* Override any GCC internal prototype to avoid an error.
45927   Use char because int might match the return type of a GCC
45928   builtin and then its argument prototype would still apply.  */
45929#ifdef __cplusplus
45930extern "C"
45931#endif
45932char $ac_func ();
45933/* The GNU C library defines this for functions which it implements
45934    to always fail with ENOSYS.  Some functions are actually named
45935    something starting with __ and the normal name is an alias.  */
45936#if defined __stub_$ac_func || defined __stub___$ac_func
45937choke me
45938#endif
45939
45940int
45941main ()
45942{
45943return $ac_func ();
45944  ;
45945  return 0;
45946}
45947_ACEOF
45948rm -f conftest.$ac_objext conftest$ac_exeext
45949if { (ac_try="$ac_link"
45950case "(($ac_try" in
45951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45952  *) ac_try_echo=$ac_try;;
45953esac
45954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45955$as_echo "$ac_try_echo") >&5
45956  (eval "$ac_link") 2>conftest.er1
45957  ac_status=$?
45958  grep -v '^ *+' conftest.er1 >conftest.err
45959  rm -f conftest.er1
45960  cat conftest.err >&5
45961  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45962  (exit $ac_status); } && {
45963	 test -z "$ac_c_werror_flag" ||
45964	 test ! -s conftest.err
45965       } && test -s conftest$ac_exeext && {
45966	 test "$cross_compiling" = yes ||
45967	 $as_test_x conftest$ac_exeext
45968       }; then
45969  eval "$as_ac_var=yes"
45970else
45971  $as_echo "$as_me: failed program was:" >&5
45972sed 's/^/| /' conftest.$ac_ext >&5
45973
45974	eval "$as_ac_var=no"
45975fi
45976
45977rm -rf conftest.dSYM
45978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45979      conftest$ac_exeext conftest.$ac_ext
45980fi
45981ac_res=`eval 'as_val=${'$as_ac_var'}
45982		 $as_echo "$as_val"'`
45983	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45984$as_echo "$ac_res" >&6; }
45985as_val=`eval 'as_val=${'$as_ac_var'}
45986		 $as_echo "$as_val"'`
45987   if test "x$as_val" = x""yes; then
45988  cat >>confdefs.h <<_ACEOF
45989#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45990_ACEOF
45991
45992fi
45993done
45994
45995       ;;
45996esac
45997
45998#
45999# stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
46000#
46001
46002if test x$ac_cv_func_stat64 = xno ; then
46003  { $as_echo "$as_me:$LINENO: checking for stat64 in <sys/stat.h>" >&5
46004$as_echo_n "checking for stat64 in <sys/stat.h>... " >&6; }
46005  cat >conftest.$ac_ext <<_ACEOF
46006/* confdefs.h.  */
46007_ACEOF
46008cat confdefs.h >>conftest.$ac_ext
46009cat >>conftest.$ac_ext <<_ACEOF
46010/* end confdefs.h.  */
46011
46012#if defined(HAVE_UNISTD_H)
46013#include <unistd.h>
46014#endif
46015#include <sys/stat.h>
46016
46017int
46018main ()
46019{
46020struct stat64 st64; exit(stat64(".",&st64));
46021  ;
46022  return 0;
46023}
46024_ACEOF
46025rm -f conftest.$ac_objext conftest$ac_exeext
46026if { (ac_try="$ac_link"
46027case "(($ac_try" in
46028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46029  *) ac_try_echo=$ac_try;;
46030esac
46031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46032$as_echo "$ac_try_echo") >&5
46033  (eval "$ac_link") 2>conftest.er1
46034  ac_status=$?
46035  grep -v '^ *+' conftest.er1 >conftest.err
46036  rm -f conftest.er1
46037  cat conftest.err >&5
46038  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46039  (exit $ac_status); } && {
46040	 test -z "$ac_c_werror_flag" ||
46041	 test ! -s conftest.err
46042       } && test -s conftest$ac_exeext && {
46043	 test "$cross_compiling" = yes ||
46044	 $as_test_x conftest$ac_exeext
46045       }; then
46046  ac_cv_func_stat64=yes
46047else
46048  $as_echo "$as_me: failed program was:" >&5
46049sed 's/^/| /' conftest.$ac_ext >&5
46050
46051
46052fi
46053
46054rm -rf conftest.dSYM
46055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46056      conftest$ac_exeext conftest.$ac_ext
46057  { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat64" >&5
46058$as_echo "$ac_cv_func_stat64" >&6; }
46059  if test x$ac_cv_func_stat64 = xyes ; then
46060
46061cat >>confdefs.h <<\_ACEOF
46062#define HAVE_STAT64 1
46063_ACEOF
46064
46065  fi
46066fi
46067
46068if test x$ac_cv_func_lstat64 = xno ; then
46069  { $as_echo "$as_me:$LINENO: checking for lstat64 in <sys/stat.h>" >&5
46070$as_echo_n "checking for lstat64 in <sys/stat.h>... " >&6; }
46071  cat >conftest.$ac_ext <<_ACEOF
46072/* confdefs.h.  */
46073_ACEOF
46074cat confdefs.h >>conftest.$ac_ext
46075cat >>conftest.$ac_ext <<_ACEOF
46076/* end confdefs.h.  */
46077
46078#if defined(HAVE_UNISTD_H)
46079#include <unistd.h>
46080#endif
46081#include <sys/stat.h>
46082
46083int
46084main ()
46085{
46086struct stat64 st64; exit(lstat64(".",&st64));
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46098$as_echo "$ac_try_echo") >&5
46099  (eval "$ac_link") 2>conftest.er1
46100  ac_status=$?
46101  grep -v '^ *+' conftest.er1 >conftest.err
46102  rm -f conftest.er1
46103  cat conftest.err >&5
46104  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46105  (exit $ac_status); } && {
46106	 test -z "$ac_c_werror_flag" ||
46107	 test ! -s conftest.err
46108       } && test -s conftest$ac_exeext && {
46109	 test "$cross_compiling" = yes ||
46110	 $as_test_x conftest$ac_exeext
46111       }; then
46112  ac_cv_func_lstat64=yes
46113else
46114  $as_echo "$as_me: failed program was:" >&5
46115sed 's/^/| /' conftest.$ac_ext >&5
46116
46117
46118fi
46119
46120rm -rf conftest.dSYM
46121rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46122      conftest$ac_exeext conftest.$ac_ext
46123  { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat64" >&5
46124$as_echo "$ac_cv_func_lstat64" >&6; }
46125  if test x$ac_cv_func_lstat64 = xyes ; then
46126    cat >>confdefs.h <<\_ACEOF
46127#define HAVE_LSTAT64 Whether lstat64() is available
46128_ACEOF
46129
46130  fi
46131fi
46132
46133if test x$ac_cv_func_fstat64 = xno ; then
46134  { $as_echo "$as_me:$LINENO: checking for fstat64 in <sys/stat.h>" >&5
46135$as_echo_n "checking for fstat64 in <sys/stat.h>... " >&6; }
46136  cat >conftest.$ac_ext <<_ACEOF
46137/* confdefs.h.  */
46138_ACEOF
46139cat confdefs.h >>conftest.$ac_ext
46140cat >>conftest.$ac_ext <<_ACEOF
46141/* end confdefs.h.  */
46142
46143#if defined(HAVE_UNISTD_H)
46144#include <unistd.h>
46145#endif
46146#include <sys/stat.h>
46147
46148int
46149main ()
46150{
46151struct stat64 st64; exit(fstat64(0,&st64));
46152  ;
46153  return 0;
46154}
46155_ACEOF
46156rm -f conftest.$ac_objext conftest$ac_exeext
46157if { (ac_try="$ac_link"
46158case "(($ac_try" in
46159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46160  *) ac_try_echo=$ac_try;;
46161esac
46162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46163$as_echo "$ac_try_echo") >&5
46164  (eval "$ac_link") 2>conftest.er1
46165  ac_status=$?
46166  grep -v '^ *+' conftest.er1 >conftest.err
46167  rm -f conftest.er1
46168  cat conftest.err >&5
46169  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46170  (exit $ac_status); } && {
46171	 test -z "$ac_c_werror_flag" ||
46172	 test ! -s conftest.err
46173       } && test -s conftest$ac_exeext && {
46174	 test "$cross_compiling" = yes ||
46175	 $as_test_x conftest$ac_exeext
46176       }; then
46177  ac_cv_func_fstat64=yes
46178else
46179  $as_echo "$as_me: failed program was:" >&5
46180sed 's/^/| /' conftest.$ac_ext >&5
46181
46182
46183fi
46184
46185rm -rf conftest.dSYM
46186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46187      conftest$ac_exeext conftest.$ac_ext
46188  { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fstat64" >&5
46189$as_echo "$ac_cv_func_fstat64" >&6; }
46190  if test x$ac_cv_func_fstat64 = xyes ; then
46191
46192cat >>confdefs.h <<\_ACEOF
46193#define HAVE_FSTAT64 1
46194_ACEOF
46195
46196  fi
46197fi
46198
46199#################################################
46200# Check whether struct stat has timestamps with sub-second resolution.
46201#
46202
46203samba_cv_stat_hires=no
46204{ $as_echo "$as_me:$LINENO: checking for struct stat.st_mtim.tv_nsec" >&5
46205$as_echo_n "checking for struct stat.st_mtim.tv_nsec... " >&6; }
46206if test "${ac_cv_member_struct_stat_st_mtim_tv_nsec+set}" = set; then
46207  $as_echo_n "(cached) " >&6
46208else
46209  cat >conftest.$ac_ext <<_ACEOF
46210/* confdefs.h.  */
46211_ACEOF
46212cat confdefs.h >>conftest.$ac_ext
46213cat >>conftest.$ac_ext <<_ACEOF
46214/* end confdefs.h.  */
46215$ac_includes_default
46216int
46217main ()
46218{
46219static struct stat ac_aggr;
46220if (ac_aggr.st_mtim.tv_nsec)
46221return 0;
46222  ;
46223  return 0;
46224}
46225_ACEOF
46226rm -f conftest.$ac_objext
46227if { (ac_try="$ac_compile"
46228case "(($ac_try" in
46229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46230  *) ac_try_echo=$ac_try;;
46231esac
46232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46233$as_echo "$ac_try_echo") >&5
46234  (eval "$ac_compile") 2>conftest.er1
46235  ac_status=$?
46236  grep -v '^ *+' conftest.er1 >conftest.err
46237  rm -f conftest.er1
46238  cat conftest.err >&5
46239  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46240  (exit $ac_status); } && {
46241	 test -z "$ac_c_werror_flag" ||
46242	 test ! -s conftest.err
46243       } && test -s conftest.$ac_objext; then
46244  ac_cv_member_struct_stat_st_mtim_tv_nsec=yes
46245else
46246  $as_echo "$as_me: failed program was:" >&5
46247sed 's/^/| /' conftest.$ac_ext >&5
46248
46249	cat >conftest.$ac_ext <<_ACEOF
46250/* confdefs.h.  */
46251_ACEOF
46252cat confdefs.h >>conftest.$ac_ext
46253cat >>conftest.$ac_ext <<_ACEOF
46254/* end confdefs.h.  */
46255$ac_includes_default
46256int
46257main ()
46258{
46259static struct stat ac_aggr;
46260if (sizeof ac_aggr.st_mtim.tv_nsec)
46261return 0;
46262  ;
46263  return 0;
46264}
46265_ACEOF
46266rm -f conftest.$ac_objext
46267if { (ac_try="$ac_compile"
46268case "(($ac_try" in
46269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46270  *) ac_try_echo=$ac_try;;
46271esac
46272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46273$as_echo "$ac_try_echo") >&5
46274  (eval "$ac_compile") 2>conftest.er1
46275  ac_status=$?
46276  grep -v '^ *+' conftest.er1 >conftest.err
46277  rm -f conftest.er1
46278  cat conftest.err >&5
46279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46280  (exit $ac_status); } && {
46281	 test -z "$ac_c_werror_flag" ||
46282	 test ! -s conftest.err
46283       } && test -s conftest.$ac_objext; then
46284  ac_cv_member_struct_stat_st_mtim_tv_nsec=yes
46285else
46286  $as_echo "$as_me: failed program was:" >&5
46287sed 's/^/| /' conftest.$ac_ext >&5
46288
46289	ac_cv_member_struct_stat_st_mtim_tv_nsec=no
46290fi
46291
46292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46293fi
46294
46295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46296fi
46297{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_tv_nsec" >&5
46298$as_echo "$ac_cv_member_struct_stat_st_mtim_tv_nsec" >&6; }
46299if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = x""yes; then
46300
46301cat >>confdefs.h <<_ACEOF
46302#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
46303_ACEOF
46304
46305# Linux, Solaris
46306	samba_cv_stat_hires=yes
46307fi
46308
46309{ $as_echo "$as_me:$LINENO: checking for struct stat.st_mtimensec" >&5
46310$as_echo_n "checking for struct stat.st_mtimensec... " >&6; }
46311if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then
46312  $as_echo_n "(cached) " >&6
46313else
46314  cat >conftest.$ac_ext <<_ACEOF
46315/* confdefs.h.  */
46316_ACEOF
46317cat confdefs.h >>conftest.$ac_ext
46318cat >>conftest.$ac_ext <<_ACEOF
46319/* end confdefs.h.  */
46320$ac_includes_default
46321int
46322main ()
46323{
46324static struct stat ac_aggr;
46325if (ac_aggr.st_mtimensec)
46326return 0;
46327  ;
46328  return 0;
46329}
46330_ACEOF
46331rm -f conftest.$ac_objext
46332if { (ac_try="$ac_compile"
46333case "(($ac_try" in
46334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46335  *) ac_try_echo=$ac_try;;
46336esac
46337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46338$as_echo "$ac_try_echo") >&5
46339  (eval "$ac_compile") 2>conftest.er1
46340  ac_status=$?
46341  grep -v '^ *+' conftest.er1 >conftest.err
46342  rm -f conftest.er1
46343  cat conftest.err >&5
46344  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46345  (exit $ac_status); } && {
46346	 test -z "$ac_c_werror_flag" ||
46347	 test ! -s conftest.err
46348       } && test -s conftest.$ac_objext; then
46349  ac_cv_member_struct_stat_st_mtimensec=yes
46350else
46351  $as_echo "$as_me: failed program was:" >&5
46352sed 's/^/| /' conftest.$ac_ext >&5
46353
46354	cat >conftest.$ac_ext <<_ACEOF
46355/* confdefs.h.  */
46356_ACEOF
46357cat confdefs.h >>conftest.$ac_ext
46358cat >>conftest.$ac_ext <<_ACEOF
46359/* end confdefs.h.  */
46360$ac_includes_default
46361int
46362main ()
46363{
46364static struct stat ac_aggr;
46365if (sizeof ac_aggr.st_mtimensec)
46366return 0;
46367  ;
46368  return 0;
46369}
46370_ACEOF
46371rm -f conftest.$ac_objext
46372if { (ac_try="$ac_compile"
46373case "(($ac_try" in
46374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46375  *) ac_try_echo=$ac_try;;
46376esac
46377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46378$as_echo "$ac_try_echo") >&5
46379  (eval "$ac_compile") 2>conftest.er1
46380  ac_status=$?
46381  grep -v '^ *+' conftest.er1 >conftest.err
46382  rm -f conftest.er1
46383  cat conftest.err >&5
46384  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46385  (exit $ac_status); } && {
46386	 test -z "$ac_c_werror_flag" ||
46387	 test ! -s conftest.err
46388       } && test -s conftest.$ac_objext; then
46389  ac_cv_member_struct_stat_st_mtimensec=yes
46390else
46391  $as_echo "$as_me: failed program was:" >&5
46392sed 's/^/| /' conftest.$ac_ext >&5
46393
46394	ac_cv_member_struct_stat_st_mtimensec=no
46395fi
46396
46397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46398fi
46399
46400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46401fi
46402{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimensec" >&5
46403$as_echo "$ac_cv_member_struct_stat_st_mtimensec" >&6; }
46404if test "x$ac_cv_member_struct_stat_st_mtimensec" = x""yes; then
46405
46406cat >>confdefs.h <<_ACEOF
46407#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
46408_ACEOF
46409
46410# BSD, if defined _POSIX_SOURCE
46411	samba_cv_stat_hires=yes
46412fi
46413
46414{ $as_echo "$as_me:$LINENO: checking for struct stat.st_mtimespec.tv_nsec" >&5
46415$as_echo_n "checking for struct stat.st_mtimespec.tv_nsec... " >&6; }
46416if test "${ac_cv_member_struct_stat_st_mtimespec_tv_nsec+set}" = set; then
46417  $as_echo_n "(cached) " >&6
46418else
46419  cat >conftest.$ac_ext <<_ACEOF
46420/* confdefs.h.  */
46421_ACEOF
46422cat confdefs.h >>conftest.$ac_ext
46423cat >>conftest.$ac_ext <<_ACEOF
46424/* end confdefs.h.  */
46425$ac_includes_default
46426int
46427main ()
46428{
46429static struct stat ac_aggr;
46430if (ac_aggr.st_mtimespec.tv_nsec)
46431return 0;
46432  ;
46433  return 0;
46434}
46435_ACEOF
46436rm -f conftest.$ac_objext
46437if { (ac_try="$ac_compile"
46438case "(($ac_try" in
46439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46440  *) ac_try_echo=$ac_try;;
46441esac
46442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46443$as_echo "$ac_try_echo") >&5
46444  (eval "$ac_compile") 2>conftest.er1
46445  ac_status=$?
46446  grep -v '^ *+' conftest.er1 >conftest.err
46447  rm -f conftest.er1
46448  cat conftest.err >&5
46449  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46450  (exit $ac_status); } && {
46451	 test -z "$ac_c_werror_flag" ||
46452	 test ! -s conftest.err
46453       } && test -s conftest.$ac_objext; then
46454  ac_cv_member_struct_stat_st_mtimespec_tv_nsec=yes
46455else
46456  $as_echo "$as_me: failed program was:" >&5
46457sed 's/^/| /' conftest.$ac_ext >&5
46458
46459	cat >conftest.$ac_ext <<_ACEOF
46460/* confdefs.h.  */
46461_ACEOF
46462cat confdefs.h >>conftest.$ac_ext
46463cat >>conftest.$ac_ext <<_ACEOF
46464/* end confdefs.h.  */
46465$ac_includes_default
46466int
46467main ()
46468{
46469static struct stat ac_aggr;
46470if (sizeof ac_aggr.st_mtimespec.tv_nsec)
46471return 0;
46472  ;
46473  return 0;
46474}
46475_ACEOF
46476rm -f conftest.$ac_objext
46477if { (ac_try="$ac_compile"
46478case "(($ac_try" in
46479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46480  *) ac_try_echo=$ac_try;;
46481esac
46482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46483$as_echo "$ac_try_echo") >&5
46484  (eval "$ac_compile") 2>conftest.er1
46485  ac_status=$?
46486  grep -v '^ *+' conftest.er1 >conftest.err
46487  rm -f conftest.er1
46488  cat conftest.err >&5
46489  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46490  (exit $ac_status); } && {
46491	 test -z "$ac_c_werror_flag" ||
46492	 test ! -s conftest.err
46493       } && test -s conftest.$ac_objext; then
46494  ac_cv_member_struct_stat_st_mtimespec_tv_nsec=yes
46495else
46496  $as_echo "$as_me: failed program was:" >&5
46497sed 's/^/| /' conftest.$ac_ext >&5
46498
46499	ac_cv_member_struct_stat_st_mtimespec_tv_nsec=no
46500fi
46501
46502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46503fi
46504
46505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46506fi
46507{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec_tv_nsec" >&5
46508$as_echo "$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" >&6; }
46509if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = x""yes; then
46510
46511cat >>confdefs.h <<_ACEOF
46512#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1
46513_ACEOF
46514
46515# BSD, if not defined _POSIX_SOURCE
46516	samba_cv_stat_hires=yes
46517fi
46518
46519{ $as_echo "$as_me:$LINENO: checking for struct stat.st_mtime_n" >&5
46520$as_echo_n "checking for struct stat.st_mtime_n... " >&6; }
46521if test "${ac_cv_member_struct_stat_st_mtime_n+set}" = set; then
46522  $as_echo_n "(cached) " >&6
46523else
46524  cat >conftest.$ac_ext <<_ACEOF
46525/* confdefs.h.  */
46526_ACEOF
46527cat confdefs.h >>conftest.$ac_ext
46528cat >>conftest.$ac_ext <<_ACEOF
46529/* end confdefs.h.  */
46530$ac_includes_default
46531int
46532main ()
46533{
46534static struct stat ac_aggr;
46535if (ac_aggr.st_mtime_n)
46536return 0;
46537  ;
46538  return 0;
46539}
46540_ACEOF
46541rm -f conftest.$ac_objext
46542if { (ac_try="$ac_compile"
46543case "(($ac_try" in
46544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46545  *) ac_try_echo=$ac_try;;
46546esac
46547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46548$as_echo "$ac_try_echo") >&5
46549  (eval "$ac_compile") 2>conftest.er1
46550  ac_status=$?
46551  grep -v '^ *+' conftest.er1 >conftest.err
46552  rm -f conftest.er1
46553  cat conftest.err >&5
46554  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46555  (exit $ac_status); } && {
46556	 test -z "$ac_c_werror_flag" ||
46557	 test ! -s conftest.err
46558       } && test -s conftest.$ac_objext; then
46559  ac_cv_member_struct_stat_st_mtime_n=yes
46560else
46561  $as_echo "$as_me: failed program was:" >&5
46562sed 's/^/| /' conftest.$ac_ext >&5
46563
46564	cat >conftest.$ac_ext <<_ACEOF
46565/* confdefs.h.  */
46566_ACEOF
46567cat confdefs.h >>conftest.$ac_ext
46568cat >>conftest.$ac_ext <<_ACEOF
46569/* end confdefs.h.  */
46570$ac_includes_default
46571int
46572main ()
46573{
46574static struct stat ac_aggr;
46575if (sizeof ac_aggr.st_mtime_n)
46576return 0;
46577  ;
46578  return 0;
46579}
46580_ACEOF
46581rm -f conftest.$ac_objext
46582if { (ac_try="$ac_compile"
46583case "(($ac_try" in
46584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46585  *) ac_try_echo=$ac_try;;
46586esac
46587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46588$as_echo "$ac_try_echo") >&5
46589  (eval "$ac_compile") 2>conftest.er1
46590  ac_status=$?
46591  grep -v '^ *+' conftest.er1 >conftest.err
46592  rm -f conftest.er1
46593  cat conftest.err >&5
46594  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46595  (exit $ac_status); } && {
46596	 test -z "$ac_c_werror_flag" ||
46597	 test ! -s conftest.err
46598       } && test -s conftest.$ac_objext; then
46599  ac_cv_member_struct_stat_st_mtime_n=yes
46600else
46601  $as_echo "$as_me: failed program was:" >&5
46602sed 's/^/| /' conftest.$ac_ext >&5
46603
46604	ac_cv_member_struct_stat_st_mtime_n=no
46605fi
46606
46607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46608fi
46609
46610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46611fi
46612{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtime_n" >&5
46613$as_echo "$ac_cv_member_struct_stat_st_mtime_n" >&6; }
46614if test "x$ac_cv_member_struct_stat_st_mtime_n" = x""yes; then
46615
46616cat >>confdefs.h <<_ACEOF
46617#define HAVE_STRUCT_STAT_ST_MTIME_N 1
46618_ACEOF
46619
46620# AIX
46621	samba_cv_stat_hires=yes
46622fi
46623
46624{ $as_echo "$as_me:$LINENO: checking for struct stat.st_umtime" >&5
46625$as_echo_n "checking for struct stat.st_umtime... " >&6; }
46626if test "${ac_cv_member_struct_stat_st_umtime+set}" = set; then
46627  $as_echo_n "(cached) " >&6
46628else
46629  cat >conftest.$ac_ext <<_ACEOF
46630/* confdefs.h.  */
46631_ACEOF
46632cat confdefs.h >>conftest.$ac_ext
46633cat >>conftest.$ac_ext <<_ACEOF
46634/* end confdefs.h.  */
46635$ac_includes_default
46636int
46637main ()
46638{
46639static struct stat ac_aggr;
46640if (ac_aggr.st_umtime)
46641return 0;
46642  ;
46643  return 0;
46644}
46645_ACEOF
46646rm -f conftest.$ac_objext
46647if { (ac_try="$ac_compile"
46648case "(($ac_try" in
46649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46650  *) ac_try_echo=$ac_try;;
46651esac
46652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46653$as_echo "$ac_try_echo") >&5
46654  (eval "$ac_compile") 2>conftest.er1
46655  ac_status=$?
46656  grep -v '^ *+' conftest.er1 >conftest.err
46657  rm -f conftest.er1
46658  cat conftest.err >&5
46659  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46660  (exit $ac_status); } && {
46661	 test -z "$ac_c_werror_flag" ||
46662	 test ! -s conftest.err
46663       } && test -s conftest.$ac_objext; then
46664  ac_cv_member_struct_stat_st_umtime=yes
46665else
46666  $as_echo "$as_me: failed program was:" >&5
46667sed 's/^/| /' conftest.$ac_ext >&5
46668
46669	cat >conftest.$ac_ext <<_ACEOF
46670/* confdefs.h.  */
46671_ACEOF
46672cat confdefs.h >>conftest.$ac_ext
46673cat >>conftest.$ac_ext <<_ACEOF
46674/* end confdefs.h.  */
46675$ac_includes_default
46676int
46677main ()
46678{
46679static struct stat ac_aggr;
46680if (sizeof ac_aggr.st_umtime)
46681return 0;
46682  ;
46683  return 0;
46684}
46685_ACEOF
46686rm -f conftest.$ac_objext
46687if { (ac_try="$ac_compile"
46688case "(($ac_try" in
46689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46690  *) ac_try_echo=$ac_try;;
46691esac
46692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46693$as_echo "$ac_try_echo") >&5
46694  (eval "$ac_compile") 2>conftest.er1
46695  ac_status=$?
46696  grep -v '^ *+' conftest.er1 >conftest.err
46697  rm -f conftest.er1
46698  cat conftest.err >&5
46699  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46700  (exit $ac_status); } && {
46701	 test -z "$ac_c_werror_flag" ||
46702	 test ! -s conftest.err
46703       } && test -s conftest.$ac_objext; then
46704  ac_cv_member_struct_stat_st_umtime=yes
46705else
46706  $as_echo "$as_me: failed program was:" >&5
46707sed 's/^/| /' conftest.$ac_ext >&5
46708
46709	ac_cv_member_struct_stat_st_umtime=no
46710fi
46711
46712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46713fi
46714
46715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46716fi
46717{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_umtime" >&5
46718$as_echo "$ac_cv_member_struct_stat_st_umtime" >&6; }
46719if test "x$ac_cv_member_struct_stat_st_umtime" = x""yes; then
46720
46721cat >>confdefs.h <<_ACEOF
46722#define HAVE_STRUCT_STAT_ST_UMTIME 1
46723_ACEOF
46724
46725# Tru64
46726	samba_cv_stat_hires=yes
46727fi
46728
46729
46730if test x"$samba_cv_stat_hires" = x"yes" ; then
46731
46732cat >>confdefs.h <<\_ACEOF
46733#define HAVE_STAT_HIRES_TIMESTAMPS 1
46734_ACEOF
46735
46736fi
46737
46738# recent FreeBSD, NetBSD have creation timestamps called birthtime:
46739{ $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5
46740$as_echo_n "checking for struct stat.st_birthtimespec.tv_nsec... " >&6; }
46741if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then
46742  $as_echo_n "(cached) " >&6
46743else
46744  cat >conftest.$ac_ext <<_ACEOF
46745/* confdefs.h.  */
46746_ACEOF
46747cat confdefs.h >>conftest.$ac_ext
46748cat >>conftest.$ac_ext <<_ACEOF
46749/* end confdefs.h.  */
46750$ac_includes_default
46751int
46752main ()
46753{
46754static struct stat ac_aggr;
46755if (ac_aggr.st_birthtimespec.tv_nsec)
46756return 0;
46757  ;
46758  return 0;
46759}
46760_ACEOF
46761rm -f conftest.$ac_objext
46762if { (ac_try="$ac_compile"
46763case "(($ac_try" in
46764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46765  *) ac_try_echo=$ac_try;;
46766esac
46767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46768$as_echo "$ac_try_echo") >&5
46769  (eval "$ac_compile") 2>conftest.er1
46770  ac_status=$?
46771  grep -v '^ *+' conftest.er1 >conftest.err
46772  rm -f conftest.er1
46773  cat conftest.err >&5
46774  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46775  (exit $ac_status); } && {
46776	 test -z "$ac_c_werror_flag" ||
46777	 test ! -s conftest.err
46778       } && test -s conftest.$ac_objext; then
46779  ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
46780else
46781  $as_echo "$as_me: failed program was:" >&5
46782sed 's/^/| /' conftest.$ac_ext >&5
46783
46784	cat >conftest.$ac_ext <<_ACEOF
46785/* confdefs.h.  */
46786_ACEOF
46787cat confdefs.h >>conftest.$ac_ext
46788cat >>conftest.$ac_ext <<_ACEOF
46789/* end confdefs.h.  */
46790$ac_includes_default
46791int
46792main ()
46793{
46794static struct stat ac_aggr;
46795if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
46796return 0;
46797  ;
46798  return 0;
46799}
46800_ACEOF
46801rm -f conftest.$ac_objext
46802if { (ac_try="$ac_compile"
46803case "(($ac_try" in
46804  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46805  *) ac_try_echo=$ac_try;;
46806esac
46807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46808$as_echo "$ac_try_echo") >&5
46809  (eval "$ac_compile") 2>conftest.er1
46810  ac_status=$?
46811  grep -v '^ *+' conftest.er1 >conftest.err
46812  rm -f conftest.er1
46813  cat conftest.err >&5
46814  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46815  (exit $ac_status); } && {
46816	 test -z "$ac_c_werror_flag" ||
46817	 test ! -s conftest.err
46818       } && test -s conftest.$ac_objext; then
46819  ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
46820else
46821  $as_echo "$as_me: failed program was:" >&5
46822sed 's/^/| /' conftest.$ac_ext >&5
46823
46824	ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
46825fi
46826
46827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46828fi
46829
46830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46831fi
46832{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5
46833$as_echo "$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; }
46834if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then
46835
46836cat >>confdefs.h <<_ACEOF
46837#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
46838_ACEOF
46839
46840
46841fi
46842
46843{ $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
46844$as_echo_n "checking for struct stat.st_birthtime... " >&6; }
46845if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
46846  $as_echo_n "(cached) " >&6
46847else
46848  cat >conftest.$ac_ext <<_ACEOF
46849/* confdefs.h.  */
46850_ACEOF
46851cat confdefs.h >>conftest.$ac_ext
46852cat >>conftest.$ac_ext <<_ACEOF
46853/* end confdefs.h.  */
46854$ac_includes_default
46855int
46856main ()
46857{
46858static struct stat ac_aggr;
46859if (ac_aggr.st_birthtime)
46860return 0;
46861  ;
46862  return 0;
46863}
46864_ACEOF
46865rm -f conftest.$ac_objext
46866if { (ac_try="$ac_compile"
46867case "(($ac_try" in
46868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46869  *) ac_try_echo=$ac_try;;
46870esac
46871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46872$as_echo "$ac_try_echo") >&5
46873  (eval "$ac_compile") 2>conftest.er1
46874  ac_status=$?
46875  grep -v '^ *+' conftest.er1 >conftest.err
46876  rm -f conftest.er1
46877  cat conftest.err >&5
46878  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46879  (exit $ac_status); } && {
46880	 test -z "$ac_c_werror_flag" ||
46881	 test ! -s conftest.err
46882       } && test -s conftest.$ac_objext; then
46883  ac_cv_member_struct_stat_st_birthtime=yes
46884else
46885  $as_echo "$as_me: failed program was:" >&5
46886sed 's/^/| /' conftest.$ac_ext >&5
46887
46888	cat >conftest.$ac_ext <<_ACEOF
46889/* confdefs.h.  */
46890_ACEOF
46891cat confdefs.h >>conftest.$ac_ext
46892cat >>conftest.$ac_ext <<_ACEOF
46893/* end confdefs.h.  */
46894$ac_includes_default
46895int
46896main ()
46897{
46898static struct stat ac_aggr;
46899if (sizeof ac_aggr.st_birthtime)
46900return 0;
46901  ;
46902  return 0;
46903}
46904_ACEOF
46905rm -f conftest.$ac_objext
46906if { (ac_try="$ac_compile"
46907case "(($ac_try" in
46908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46909  *) ac_try_echo=$ac_try;;
46910esac
46911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46912$as_echo "$ac_try_echo") >&5
46913  (eval "$ac_compile") 2>conftest.er1
46914  ac_status=$?
46915  grep -v '^ *+' conftest.er1 >conftest.err
46916  rm -f conftest.er1
46917  cat conftest.err >&5
46918  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46919  (exit $ac_status); } && {
46920	 test -z "$ac_c_werror_flag" ||
46921	 test ! -s conftest.err
46922       } && test -s conftest.$ac_objext; then
46923  ac_cv_member_struct_stat_st_birthtime=yes
46924else
46925  $as_echo "$as_me: failed program was:" >&5
46926sed 's/^/| /' conftest.$ac_ext >&5
46927
46928	ac_cv_member_struct_stat_st_birthtime=no
46929fi
46930
46931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46932fi
46933
46934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46935fi
46936{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
46937$as_echo "$ac_cv_member_struct_stat_st_birthtime" >&6; }
46938if test "x$ac_cv_member_struct_stat_st_birthtime" = x""yes; then
46939
46940cat >>confdefs.h <<_ACEOF
46941#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
46942_ACEOF
46943
46944{ $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
46945$as_echo_n "checking for struct stat.st_birthtimensec... " >&6; }
46946if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
46947  $as_echo_n "(cached) " >&6
46948else
46949  cat >conftest.$ac_ext <<_ACEOF
46950/* confdefs.h.  */
46951_ACEOF
46952cat confdefs.h >>conftest.$ac_ext
46953cat >>conftest.$ac_ext <<_ACEOF
46954/* end confdefs.h.  */
46955$ac_includes_default
46956int
46957main ()
46958{
46959static struct stat ac_aggr;
46960if (ac_aggr.st_birthtimensec)
46961return 0;
46962  ;
46963  return 0;
46964}
46965_ACEOF
46966rm -f conftest.$ac_objext
46967if { (ac_try="$ac_compile"
46968case "(($ac_try" in
46969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46970  *) ac_try_echo=$ac_try;;
46971esac
46972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46973$as_echo "$ac_try_echo") >&5
46974  (eval "$ac_compile") 2>conftest.er1
46975  ac_status=$?
46976  grep -v '^ *+' conftest.er1 >conftest.err
46977  rm -f conftest.er1
46978  cat conftest.err >&5
46979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46980  (exit $ac_status); } && {
46981	 test -z "$ac_c_werror_flag" ||
46982	 test ! -s conftest.err
46983       } && test -s conftest.$ac_objext; then
46984  ac_cv_member_struct_stat_st_birthtimensec=yes
46985else
46986  $as_echo "$as_me: failed program was:" >&5
46987sed 's/^/| /' conftest.$ac_ext >&5
46988
46989	cat >conftest.$ac_ext <<_ACEOF
46990/* confdefs.h.  */
46991_ACEOF
46992cat confdefs.h >>conftest.$ac_ext
46993cat >>conftest.$ac_ext <<_ACEOF
46994/* end confdefs.h.  */
46995$ac_includes_default
46996int
46997main ()
46998{
46999static struct stat ac_aggr;
47000if (sizeof ac_aggr.st_birthtimensec)
47001return 0;
47002  ;
47003  return 0;
47004}
47005_ACEOF
47006rm -f conftest.$ac_objext
47007if { (ac_try="$ac_compile"
47008case "(($ac_try" in
47009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47010  *) ac_try_echo=$ac_try;;
47011esac
47012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47013$as_echo "$ac_try_echo") >&5
47014  (eval "$ac_compile") 2>conftest.er1
47015  ac_status=$?
47016  grep -v '^ *+' conftest.er1 >conftest.err
47017  rm -f conftest.er1
47018  cat conftest.err >&5
47019  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47020  (exit $ac_status); } && {
47021	 test -z "$ac_c_werror_flag" ||
47022	 test ! -s conftest.err
47023       } && test -s conftest.$ac_objext; then
47024  ac_cv_member_struct_stat_st_birthtimensec=yes
47025else
47026  $as_echo "$as_me: failed program was:" >&5
47027sed 's/^/| /' conftest.$ac_ext >&5
47028
47029	ac_cv_member_struct_stat_st_birthtimensec=no
47030fi
47031
47032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47033fi
47034
47035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47036fi
47037{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
47038$as_echo "$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
47039if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then
47040
47041cat >>confdefs.h <<_ACEOF
47042#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
47043_ACEOF
47044
47045
47046fi
47047
47048fi
47049
47050
47051
47052{ $as_echo "$as_me:$LINENO: checking whether there is DOS flags support in the stat struct" >&5
47053$as_echo_n "checking whether there is DOS flags support in the stat struct... " >&6; }
47054if test "${samba_cv_stat_dos_flags+set}" = set; then
47055  $as_echo_n "(cached) " >&6
47056else
47057
47058	cat >conftest.$ac_ext <<_ACEOF
47059/* confdefs.h.  */
47060_ACEOF
47061cat confdefs.h >>conftest.$ac_ext
47062cat >>conftest.$ac_ext <<_ACEOF
47063/* end confdefs.h.  */
47064#include <sys/stat.h>
47065int
47066main ()
47067{
47068
47069		int a = UF_DOS_ARCHIVE;
47070		int h = UF_DOS_HIDDEN;
47071		int r = UF_DOS_RO;
47072		int s = UF_DOS_SYSTEM;
47073		int i = UF_DOS_NOINDEX;
47074		int f = UF_DOS_FLAGS;
47075
47076  ;
47077  return 0;
47078}
47079_ACEOF
47080rm -f conftest.$ac_objext
47081if { (ac_try="$ac_compile"
47082case "(($ac_try" in
47083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47084  *) ac_try_echo=$ac_try;;
47085esac
47086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47087$as_echo "$ac_try_echo") >&5
47088  (eval "$ac_compile") 2>conftest.er1
47089  ac_status=$?
47090  grep -v '^ *+' conftest.er1 >conftest.err
47091  rm -f conftest.er1
47092  cat conftest.err >&5
47093  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47094  (exit $ac_status); } && {
47095	 test -z "$ac_c_werror_flag" ||
47096	 test ! -s conftest.err
47097       } && test -s conftest.$ac_objext; then
47098  samba_cv_stat_dos_flags=yes
47099else
47100  $as_echo "$as_me: failed program was:" >&5
47101sed 's/^/| /' conftest.$ac_ext >&5
47102
47103	samba_cv_stat_dos_flags=no
47104fi
47105
47106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47107
47108fi
47109{ $as_echo "$as_me:$LINENO: result: $samba_cv_stat_dos_flags" >&5
47110$as_echo "$samba_cv_stat_dos_flags" >&6; }
47111
47112if test x"$samba_cv_stat_dos_flags" = x"yes" ; then
47113
47114cat >>confdefs.h <<\_ACEOF
47115#define HAVE_STAT_DOS_FLAGS 1
47116_ACEOF
47117
47118fi
47119
47120#####################################
47121# needed for SRV lookups
47122
47123{ $as_echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
47124$as_echo_n "checking for dn_expand in -lresolv... " >&6; }
47125if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
47126  $as_echo_n "(cached) " >&6
47127else
47128  ac_check_lib_save_LIBS=$LIBS
47129LIBS="-lresolv  $LIBS"
47130cat >conftest.$ac_ext <<_ACEOF
47131/* confdefs.h.  */
47132_ACEOF
47133cat confdefs.h >>conftest.$ac_ext
47134cat >>conftest.$ac_ext <<_ACEOF
47135/* end confdefs.h.  */
47136
47137/* Override any GCC internal prototype to avoid an error.
47138   Use char because int might match the return type of a GCC
47139   builtin and then its argument prototype would still apply.  */
47140#ifdef __cplusplus
47141extern "C"
47142#endif
47143char dn_expand ();
47144int
47145main ()
47146{
47147return dn_expand ();
47148  ;
47149  return 0;
47150}
47151_ACEOF
47152rm -f conftest.$ac_objext conftest$ac_exeext
47153if { (ac_try="$ac_link"
47154case "(($ac_try" in
47155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47156  *) ac_try_echo=$ac_try;;
47157esac
47158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47159$as_echo "$ac_try_echo") >&5
47160  (eval "$ac_link") 2>conftest.er1
47161  ac_status=$?
47162  grep -v '^ *+' conftest.er1 >conftest.err
47163  rm -f conftest.er1
47164  cat conftest.err >&5
47165  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47166  (exit $ac_status); } && {
47167	 test -z "$ac_c_werror_flag" ||
47168	 test ! -s conftest.err
47169       } && test -s conftest$ac_exeext && {
47170	 test "$cross_compiling" = yes ||
47171	 $as_test_x conftest$ac_exeext
47172       }; then
47173  ac_cv_lib_resolv_dn_expand=yes
47174else
47175  $as_echo "$as_me: failed program was:" >&5
47176sed 's/^/| /' conftest.$ac_ext >&5
47177
47178	ac_cv_lib_resolv_dn_expand=no
47179fi
47180
47181rm -rf conftest.dSYM
47182rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47183      conftest$ac_exeext conftest.$ac_ext
47184LIBS=$ac_check_lib_save_LIBS
47185fi
47186{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
47187$as_echo "$ac_cv_lib_resolv_dn_expand" >&6; }
47188if test "x$ac_cv_lib_resolv_dn_expand" = x""yes; then
47189  cat >>confdefs.h <<_ACEOF
47190#define HAVE_LIBRESOLV 1
47191_ACEOF
47192
47193  LIBS="-lresolv $LIBS"
47194
47195fi
47196
47197
47198{ $as_echo "$as_me:$LINENO: checking for _dn_expand in -lresolv" >&5
47199$as_echo_n "checking for _dn_expand in -lresolv... " >&6; }
47200if test "${ac_cv_lib_resolv__dn_expand+set}" = set; then
47201  $as_echo_n "(cached) " >&6
47202else
47203  ac_check_lib_save_LIBS=$LIBS
47204LIBS="-lresolv  $LIBS"
47205cat >conftest.$ac_ext <<_ACEOF
47206/* confdefs.h.  */
47207_ACEOF
47208cat confdefs.h >>conftest.$ac_ext
47209cat >>conftest.$ac_ext <<_ACEOF
47210/* end confdefs.h.  */
47211
47212/* Override any GCC internal prototype to avoid an error.
47213   Use char because int might match the return type of a GCC
47214   builtin and then its argument prototype would still apply.  */
47215#ifdef __cplusplus
47216extern "C"
47217#endif
47218char _dn_expand ();
47219int
47220main ()
47221{
47222return _dn_expand ();
47223  ;
47224  return 0;
47225}
47226_ACEOF
47227rm -f conftest.$ac_objext conftest$ac_exeext
47228if { (ac_try="$ac_link"
47229case "(($ac_try" in
47230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47231  *) ac_try_echo=$ac_try;;
47232esac
47233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47234$as_echo "$ac_try_echo") >&5
47235  (eval "$ac_link") 2>conftest.er1
47236  ac_status=$?
47237  grep -v '^ *+' conftest.er1 >conftest.err
47238  rm -f conftest.er1
47239  cat conftest.err >&5
47240  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47241  (exit $ac_status); } && {
47242	 test -z "$ac_c_werror_flag" ||
47243	 test ! -s conftest.err
47244       } && test -s conftest$ac_exeext && {
47245	 test "$cross_compiling" = yes ||
47246	 $as_test_x conftest$ac_exeext
47247       }; then
47248  ac_cv_lib_resolv__dn_expand=yes
47249else
47250  $as_echo "$as_me: failed program was:" >&5
47251sed 's/^/| /' conftest.$ac_ext >&5
47252
47253	ac_cv_lib_resolv__dn_expand=no
47254fi
47255
47256rm -rf conftest.dSYM
47257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47258      conftest$ac_exeext conftest.$ac_ext
47259LIBS=$ac_check_lib_save_LIBS
47260fi
47261{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv__dn_expand" >&5
47262$as_echo "$ac_cv_lib_resolv__dn_expand" >&6; }
47263if test "x$ac_cv_lib_resolv__dn_expand" = x""yes; then
47264  cat >>confdefs.h <<_ACEOF
47265#define HAVE_LIBRESOLV 1
47266_ACEOF
47267
47268  LIBS="-lresolv $LIBS"
47269
47270fi
47271
47272
47273{ $as_echo "$as_me:$LINENO: checking for __dn_expand in -lresolv" >&5
47274$as_echo_n "checking for __dn_expand in -lresolv... " >&6; }
47275if test "${ac_cv_lib_resolv___dn_expand+set}" = set; then
47276  $as_echo_n "(cached) " >&6
47277else
47278  ac_check_lib_save_LIBS=$LIBS
47279LIBS="-lresolv  $LIBS"
47280cat >conftest.$ac_ext <<_ACEOF
47281/* confdefs.h.  */
47282_ACEOF
47283cat confdefs.h >>conftest.$ac_ext
47284cat >>conftest.$ac_ext <<_ACEOF
47285/* end confdefs.h.  */
47286
47287/* Override any GCC internal prototype to avoid an error.
47288   Use char because int might match the return type of a GCC
47289   builtin and then its argument prototype would still apply.  */
47290#ifdef __cplusplus
47291extern "C"
47292#endif
47293char __dn_expand ();
47294int
47295main ()
47296{
47297return __dn_expand ();
47298  ;
47299  return 0;
47300}
47301_ACEOF
47302rm -f conftest.$ac_objext conftest$ac_exeext
47303if { (ac_try="$ac_link"
47304case "(($ac_try" in
47305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47306  *) ac_try_echo=$ac_try;;
47307esac
47308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47309$as_echo "$ac_try_echo") >&5
47310  (eval "$ac_link") 2>conftest.er1
47311  ac_status=$?
47312  grep -v '^ *+' conftest.er1 >conftest.err
47313  rm -f conftest.er1
47314  cat conftest.err >&5
47315  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47316  (exit $ac_status); } && {
47317	 test -z "$ac_c_werror_flag" ||
47318	 test ! -s conftest.err
47319       } && test -s conftest$ac_exeext && {
47320	 test "$cross_compiling" = yes ||
47321	 $as_test_x conftest$ac_exeext
47322       }; then
47323  ac_cv_lib_resolv___dn_expand=yes
47324else
47325  $as_echo "$as_me: failed program was:" >&5
47326sed 's/^/| /' conftest.$ac_ext >&5
47327
47328	ac_cv_lib_resolv___dn_expand=no
47329fi
47330
47331rm -rf conftest.dSYM
47332rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47333      conftest$ac_exeext conftest.$ac_ext
47334LIBS=$ac_check_lib_save_LIBS
47335fi
47336{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___dn_expand" >&5
47337$as_echo "$ac_cv_lib_resolv___dn_expand" >&6; }
47338if test "x$ac_cv_lib_resolv___dn_expand" = x""yes; then
47339  cat >>confdefs.h <<_ACEOF
47340#define HAVE_LIBRESOLV 1
47341_ACEOF
47342
47343  LIBS="-lresolv $LIBS"
47344
47345fi
47346
47347
47348#
47349# Check for the functions putprpwnam, set_auth_parameters,
47350# getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
47351# Needed for OSF1 and HPUX.
47352#
47353
47354
47355
47356for ac_func in putprpwnam
47357do
47358as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47359{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47360$as_echo_n "checking for $ac_func... " >&6; }
47361if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47362  $as_echo_n "(cached) " >&6
47363else
47364  cat >conftest.$ac_ext <<_ACEOF
47365/* confdefs.h.  */
47366_ACEOF
47367cat confdefs.h >>conftest.$ac_ext
47368cat >>conftest.$ac_ext <<_ACEOF
47369/* end confdefs.h.  */
47370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47371   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47372#define $ac_func innocuous_$ac_func
47373
47374/* System header to define __stub macros and hopefully few prototypes,
47375    which can conflict with char $ac_func (); below.
47376    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47377    <limits.h> exists even on freestanding compilers.  */
47378
47379#ifdef __STDC__
47380# include <limits.h>
47381#else
47382# include <assert.h>
47383#endif
47384
47385#undef $ac_func
47386
47387/* Override any GCC internal prototype to avoid an error.
47388   Use char because int might match the return type of a GCC
47389   builtin and then its argument prototype would still apply.  */
47390#ifdef __cplusplus
47391extern "C"
47392#endif
47393char $ac_func ();
47394/* The GNU C library defines this for functions which it implements
47395    to always fail with ENOSYS.  Some functions are actually named
47396    something starting with __ and the normal name is an alias.  */
47397#if defined __stub_$ac_func || defined __stub___$ac_func
47398choke me
47399#endif
47400
47401int
47402main ()
47403{
47404return $ac_func ();
47405  ;
47406  return 0;
47407}
47408_ACEOF
47409rm -f conftest.$ac_objext conftest$ac_exeext
47410if { (ac_try="$ac_link"
47411case "(($ac_try" in
47412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47413  *) ac_try_echo=$ac_try;;
47414esac
47415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47416$as_echo "$ac_try_echo") >&5
47417  (eval "$ac_link") 2>conftest.er1
47418  ac_status=$?
47419  grep -v '^ *+' conftest.er1 >conftest.err
47420  rm -f conftest.er1
47421  cat conftest.err >&5
47422  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47423  (exit $ac_status); } && {
47424	 test -z "$ac_c_werror_flag" ||
47425	 test ! -s conftest.err
47426       } && test -s conftest$ac_exeext && {
47427	 test "$cross_compiling" = yes ||
47428	 $as_test_x conftest$ac_exeext
47429       }; then
47430  eval "$as_ac_var=yes"
47431else
47432  $as_echo "$as_me: failed program was:" >&5
47433sed 's/^/| /' conftest.$ac_ext >&5
47434
47435	eval "$as_ac_var=no"
47436fi
47437
47438rm -rf conftest.dSYM
47439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47440      conftest$ac_exeext conftest.$ac_ext
47441fi
47442ac_res=`eval 'as_val=${'$as_ac_var'}
47443		 $as_echo "$as_val"'`
47444	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47445$as_echo "$ac_res" >&6; }
47446as_val=`eval 'as_val=${'$as_ac_var'}
47447		 $as_echo "$as_val"'`
47448   if test "x$as_val" = x""yes; then
47449  cat >>confdefs.h <<_ACEOF
47450#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47451_ACEOF
47452
47453        # putprpwnam was found in libc or existing $LIBS
47454
47455
47456cat >>confdefs.h <<\_ACEOF
47457#define HAVE_PUTPRPWNAM 1
47458_ACEOF
47459
47460
47461
47462else
47463
47464        # putprpwnam was not found, try adding libsecurity
47465	case " $LIBS " in
47466          *\ -lsecurity\ *)
47467
47468		    # putprpwnam was not found and we already had libsecurity
47469		    # nothing to do here by default
47470		    true
47471
47472	    ;;
47473          *)
47474	    # putprpwnam was not found, try adding libsecurity
47475	    { $as_echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
47476$as_echo_n "checking for putprpwnam in -lsecurity... " >&6; }
47477if test "${ac_cv_lib_security_putprpwnam+set}" = set; then
47478  $as_echo_n "(cached) " >&6
47479else
47480  ac_check_lib_save_LIBS=$LIBS
47481LIBS="-lsecurity  $LIBS"
47482cat >conftest.$ac_ext <<_ACEOF
47483/* confdefs.h.  */
47484_ACEOF
47485cat confdefs.h >>conftest.$ac_ext
47486cat >>conftest.$ac_ext <<_ACEOF
47487/* end confdefs.h.  */
47488
47489/* Override any GCC internal prototype to avoid an error.
47490   Use char because int might match the return type of a GCC
47491   builtin and then its argument prototype would still apply.  */
47492#ifdef __cplusplus
47493extern "C"
47494#endif
47495char putprpwnam ();
47496int
47497main ()
47498{
47499return putprpwnam ();
47500  ;
47501  return 0;
47502}
47503_ACEOF
47504rm -f conftest.$ac_objext conftest$ac_exeext
47505if { (ac_try="$ac_link"
47506case "(($ac_try" in
47507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47508  *) ac_try_echo=$ac_try;;
47509esac
47510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47511$as_echo "$ac_try_echo") >&5
47512  (eval "$ac_link") 2>conftest.er1
47513  ac_status=$?
47514  grep -v '^ *+' conftest.er1 >conftest.err
47515  rm -f conftest.er1
47516  cat conftest.err >&5
47517  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47518  (exit $ac_status); } && {
47519	 test -z "$ac_c_werror_flag" ||
47520	 test ! -s conftest.err
47521       } && test -s conftest$ac_exeext && {
47522	 test "$cross_compiling" = yes ||
47523	 $as_test_x conftest$ac_exeext
47524       }; then
47525  ac_cv_lib_security_putprpwnam=yes
47526else
47527  $as_echo "$as_me: failed program was:" >&5
47528sed 's/^/| /' conftest.$ac_ext >&5
47529
47530	ac_cv_lib_security_putprpwnam=no
47531fi
47532
47533rm -rf conftest.dSYM
47534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47535      conftest$ac_exeext conftest.$ac_ext
47536LIBS=$ac_check_lib_save_LIBS
47537fi
47538{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_security_putprpwnam" >&5
47539$as_echo "$ac_cv_lib_security_putprpwnam" >&6; }
47540if test "x$ac_cv_lib_security_putprpwnam" = x""yes; then
47541
47542		LIBS="-lsecurity $LIBS"
47543
47544
47545cat >>confdefs.h <<\_ACEOF
47546#define HAVE_PUTPRPWNAM 1
47547_ACEOF
47548
47549
47550
47551else
47552
47553
47554			# putprpwnam was not found in libsecurity
47555			# nothing to do here by default
47556			true
47557
47558
47559fi
47560
47561	  ;;
47562        esac
47563
47564fi
47565done
47566
47567
47568
47569
47570for ac_func in putprpwnam
47571do
47572as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47573{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47574$as_echo_n "checking for $ac_func... " >&6; }
47575if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47576  $as_echo_n "(cached) " >&6
47577else
47578  cat >conftest.$ac_ext <<_ACEOF
47579/* confdefs.h.  */
47580_ACEOF
47581cat confdefs.h >>conftest.$ac_ext
47582cat >>conftest.$ac_ext <<_ACEOF
47583/* end confdefs.h.  */
47584/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47585   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47586#define $ac_func innocuous_$ac_func
47587
47588/* System header to define __stub macros and hopefully few prototypes,
47589    which can conflict with char $ac_func (); below.
47590    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47591    <limits.h> exists even on freestanding compilers.  */
47592
47593#ifdef __STDC__
47594# include <limits.h>
47595#else
47596# include <assert.h>
47597#endif
47598
47599#undef $ac_func
47600
47601/* Override any GCC internal prototype to avoid an error.
47602   Use char because int might match the return type of a GCC
47603   builtin and then its argument prototype would still apply.  */
47604#ifdef __cplusplus
47605extern "C"
47606#endif
47607char $ac_func ();
47608/* The GNU C library defines this for functions which it implements
47609    to always fail with ENOSYS.  Some functions are actually named
47610    something starting with __ and the normal name is an alias.  */
47611#if defined __stub_$ac_func || defined __stub___$ac_func
47612choke me
47613#endif
47614
47615int
47616main ()
47617{
47618return $ac_func ();
47619  ;
47620  return 0;
47621}
47622_ACEOF
47623rm -f conftest.$ac_objext conftest$ac_exeext
47624if { (ac_try="$ac_link"
47625case "(($ac_try" in
47626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47627  *) ac_try_echo=$ac_try;;
47628esac
47629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47630$as_echo "$ac_try_echo") >&5
47631  (eval "$ac_link") 2>conftest.er1
47632  ac_status=$?
47633  grep -v '^ *+' conftest.er1 >conftest.err
47634  rm -f conftest.er1
47635  cat conftest.err >&5
47636  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47637  (exit $ac_status); } && {
47638	 test -z "$ac_c_werror_flag" ||
47639	 test ! -s conftest.err
47640       } && test -s conftest$ac_exeext && {
47641	 test "$cross_compiling" = yes ||
47642	 $as_test_x conftest$ac_exeext
47643       }; then
47644  eval "$as_ac_var=yes"
47645else
47646  $as_echo "$as_me: failed program was:" >&5
47647sed 's/^/| /' conftest.$ac_ext >&5
47648
47649	eval "$as_ac_var=no"
47650fi
47651
47652rm -rf conftest.dSYM
47653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47654      conftest$ac_exeext conftest.$ac_ext
47655fi
47656ac_res=`eval 'as_val=${'$as_ac_var'}
47657		 $as_echo "$as_val"'`
47658	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47659$as_echo "$ac_res" >&6; }
47660as_val=`eval 'as_val=${'$as_ac_var'}
47661		 $as_echo "$as_val"'`
47662   if test "x$as_val" = x""yes; then
47663  cat >>confdefs.h <<_ACEOF
47664#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47665_ACEOF
47666
47667        # putprpwnam was found in libc or existing $LIBS
47668
47669
47670cat >>confdefs.h <<\_ACEOF
47671#define HAVE_PUTPRPWNAM 1
47672_ACEOF
47673
47674
47675
47676else
47677
47678        # putprpwnam was not found, try adding libsec
47679	case " $LIBS " in
47680          *\ -lsec\ *)
47681
47682		    # putprpwnam was not found and we already had libsec
47683		    # nothing to do here by default
47684		    true
47685
47686	    ;;
47687          *)
47688	    # putprpwnam was not found, try adding libsec
47689	    { $as_echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
47690$as_echo_n "checking for putprpwnam in -lsec... " >&6; }
47691if test "${ac_cv_lib_sec_putprpwnam+set}" = set; then
47692  $as_echo_n "(cached) " >&6
47693else
47694  ac_check_lib_save_LIBS=$LIBS
47695LIBS="-lsec  $LIBS"
47696cat >conftest.$ac_ext <<_ACEOF
47697/* confdefs.h.  */
47698_ACEOF
47699cat confdefs.h >>conftest.$ac_ext
47700cat >>conftest.$ac_ext <<_ACEOF
47701/* end confdefs.h.  */
47702
47703/* Override any GCC internal prototype to avoid an error.
47704   Use char because int might match the return type of a GCC
47705   builtin and then its argument prototype would still apply.  */
47706#ifdef __cplusplus
47707extern "C"
47708#endif
47709char putprpwnam ();
47710int
47711main ()
47712{
47713return putprpwnam ();
47714  ;
47715  return 0;
47716}
47717_ACEOF
47718rm -f conftest.$ac_objext conftest$ac_exeext
47719if { (ac_try="$ac_link"
47720case "(($ac_try" in
47721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47722  *) ac_try_echo=$ac_try;;
47723esac
47724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47725$as_echo "$ac_try_echo") >&5
47726  (eval "$ac_link") 2>conftest.er1
47727  ac_status=$?
47728  grep -v '^ *+' conftest.er1 >conftest.err
47729  rm -f conftest.er1
47730  cat conftest.err >&5
47731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47732  (exit $ac_status); } && {
47733	 test -z "$ac_c_werror_flag" ||
47734	 test ! -s conftest.err
47735       } && test -s conftest$ac_exeext && {
47736	 test "$cross_compiling" = yes ||
47737	 $as_test_x conftest$ac_exeext
47738       }; then
47739  ac_cv_lib_sec_putprpwnam=yes
47740else
47741  $as_echo "$as_me: failed program was:" >&5
47742sed 's/^/| /' conftest.$ac_ext >&5
47743
47744	ac_cv_lib_sec_putprpwnam=no
47745fi
47746
47747rm -rf conftest.dSYM
47748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47749      conftest$ac_exeext conftest.$ac_ext
47750LIBS=$ac_check_lib_save_LIBS
47751fi
47752{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_putprpwnam" >&5
47753$as_echo "$ac_cv_lib_sec_putprpwnam" >&6; }
47754if test "x$ac_cv_lib_sec_putprpwnam" = x""yes; then
47755
47756		LIBS="-lsec $LIBS"
47757
47758
47759cat >>confdefs.h <<\_ACEOF
47760#define HAVE_PUTPRPWNAM 1
47761_ACEOF
47762
47763
47764
47765else
47766
47767
47768			# putprpwnam was not found in libsec
47769			# nothing to do here by default
47770			true
47771
47772
47773fi
47774
47775	  ;;
47776        esac
47777
47778fi
47779done
47780
47781
47782
47783
47784
47785for ac_func in set_auth_parameters
47786do
47787as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47788{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47789$as_echo_n "checking for $ac_func... " >&6; }
47790if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47791  $as_echo_n "(cached) " >&6
47792else
47793  cat >conftest.$ac_ext <<_ACEOF
47794/* confdefs.h.  */
47795_ACEOF
47796cat confdefs.h >>conftest.$ac_ext
47797cat >>conftest.$ac_ext <<_ACEOF
47798/* end confdefs.h.  */
47799/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47800   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47801#define $ac_func innocuous_$ac_func
47802
47803/* System header to define __stub macros and hopefully few prototypes,
47804    which can conflict with char $ac_func (); below.
47805    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47806    <limits.h> exists even on freestanding compilers.  */
47807
47808#ifdef __STDC__
47809# include <limits.h>
47810#else
47811# include <assert.h>
47812#endif
47813
47814#undef $ac_func
47815
47816/* Override any GCC internal prototype to avoid an error.
47817   Use char because int might match the return type of a GCC
47818   builtin and then its argument prototype would still apply.  */
47819#ifdef __cplusplus
47820extern "C"
47821#endif
47822char $ac_func ();
47823/* The GNU C library defines this for functions which it implements
47824    to always fail with ENOSYS.  Some functions are actually named
47825    something starting with __ and the normal name is an alias.  */
47826#if defined __stub_$ac_func || defined __stub___$ac_func
47827choke me
47828#endif
47829
47830int
47831main ()
47832{
47833return $ac_func ();
47834  ;
47835  return 0;
47836}
47837_ACEOF
47838rm -f conftest.$ac_objext conftest$ac_exeext
47839if { (ac_try="$ac_link"
47840case "(($ac_try" in
47841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47842  *) ac_try_echo=$ac_try;;
47843esac
47844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47845$as_echo "$ac_try_echo") >&5
47846  (eval "$ac_link") 2>conftest.er1
47847  ac_status=$?
47848  grep -v '^ *+' conftest.er1 >conftest.err
47849  rm -f conftest.er1
47850  cat conftest.err >&5
47851  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47852  (exit $ac_status); } && {
47853	 test -z "$ac_c_werror_flag" ||
47854	 test ! -s conftest.err
47855       } && test -s conftest$ac_exeext && {
47856	 test "$cross_compiling" = yes ||
47857	 $as_test_x conftest$ac_exeext
47858       }; then
47859  eval "$as_ac_var=yes"
47860else
47861  $as_echo "$as_me: failed program was:" >&5
47862sed 's/^/| /' conftest.$ac_ext >&5
47863
47864	eval "$as_ac_var=no"
47865fi
47866
47867rm -rf conftest.dSYM
47868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47869      conftest$ac_exeext conftest.$ac_ext
47870fi
47871ac_res=`eval 'as_val=${'$as_ac_var'}
47872		 $as_echo "$as_val"'`
47873	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47874$as_echo "$ac_res" >&6; }
47875as_val=`eval 'as_val=${'$as_ac_var'}
47876		 $as_echo "$as_val"'`
47877   if test "x$as_val" = x""yes; then
47878  cat >>confdefs.h <<_ACEOF
47879#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47880_ACEOF
47881
47882        # set_auth_parameters was found in libc or existing $LIBS
47883
47884
47885cat >>confdefs.h <<\_ACEOF
47886#define HAVE_SET_AUTH_PARAMETERS 1
47887_ACEOF
47888
47889
47890
47891else
47892
47893        # set_auth_parameters was not found, try adding libsecurity
47894	case " $LIBS " in
47895          *\ -lsecurity\ *)
47896
47897		    # set_auth_parameters was not found and we already had libsecurity
47898		    # nothing to do here by default
47899		    true
47900
47901	    ;;
47902          *)
47903	    # set_auth_parameters was not found, try adding libsecurity
47904	    { $as_echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
47905$as_echo_n "checking for set_auth_parameters in -lsecurity... " >&6; }
47906if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
47907  $as_echo_n "(cached) " >&6
47908else
47909  ac_check_lib_save_LIBS=$LIBS
47910LIBS="-lsecurity  $LIBS"
47911cat >conftest.$ac_ext <<_ACEOF
47912/* confdefs.h.  */
47913_ACEOF
47914cat confdefs.h >>conftest.$ac_ext
47915cat >>conftest.$ac_ext <<_ACEOF
47916/* end confdefs.h.  */
47917
47918/* Override any GCC internal prototype to avoid an error.
47919   Use char because int might match the return type of a GCC
47920   builtin and then its argument prototype would still apply.  */
47921#ifdef __cplusplus
47922extern "C"
47923#endif
47924char set_auth_parameters ();
47925int
47926main ()
47927{
47928return set_auth_parameters ();
47929  ;
47930  return 0;
47931}
47932_ACEOF
47933rm -f conftest.$ac_objext conftest$ac_exeext
47934if { (ac_try="$ac_link"
47935case "(($ac_try" in
47936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47937  *) ac_try_echo=$ac_try;;
47938esac
47939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47940$as_echo "$ac_try_echo") >&5
47941  (eval "$ac_link") 2>conftest.er1
47942  ac_status=$?
47943  grep -v '^ *+' conftest.er1 >conftest.err
47944  rm -f conftest.er1
47945  cat conftest.err >&5
47946  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47947  (exit $ac_status); } && {
47948	 test -z "$ac_c_werror_flag" ||
47949	 test ! -s conftest.err
47950       } && test -s conftest$ac_exeext && {
47951	 test "$cross_compiling" = yes ||
47952	 $as_test_x conftest$ac_exeext
47953       }; then
47954  ac_cv_lib_security_set_auth_parameters=yes
47955else
47956  $as_echo "$as_me: failed program was:" >&5
47957sed 's/^/| /' conftest.$ac_ext >&5
47958
47959	ac_cv_lib_security_set_auth_parameters=no
47960fi
47961
47962rm -rf conftest.dSYM
47963rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47964      conftest$ac_exeext conftest.$ac_ext
47965LIBS=$ac_check_lib_save_LIBS
47966fi
47967{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
47968$as_echo "$ac_cv_lib_security_set_auth_parameters" >&6; }
47969if test "x$ac_cv_lib_security_set_auth_parameters" = x""yes; then
47970
47971		LIBS="-lsecurity $LIBS"
47972
47973
47974cat >>confdefs.h <<\_ACEOF
47975#define HAVE_SET_AUTH_PARAMETERS 1
47976_ACEOF
47977
47978
47979
47980else
47981
47982
47983			# set_auth_parameters was not found in libsecurity
47984			# nothing to do here by default
47985			true
47986
47987
47988fi
47989
47990	  ;;
47991        esac
47992
47993fi
47994done
47995
47996
47997
47998
47999for ac_func in set_auth_parameters
48000do
48001as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48002{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
48003$as_echo_n "checking for $ac_func... " >&6; }
48004if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48005  $as_echo_n "(cached) " >&6
48006else
48007  cat >conftest.$ac_ext <<_ACEOF
48008/* confdefs.h.  */
48009_ACEOF
48010cat confdefs.h >>conftest.$ac_ext
48011cat >>conftest.$ac_ext <<_ACEOF
48012/* end confdefs.h.  */
48013/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48014   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48015#define $ac_func innocuous_$ac_func
48016
48017/* System header to define __stub macros and hopefully few prototypes,
48018    which can conflict with char $ac_func (); below.
48019    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48020    <limits.h> exists even on freestanding compilers.  */
48021
48022#ifdef __STDC__
48023# include <limits.h>
48024#else
48025# include <assert.h>
48026#endif
48027
48028#undef $ac_func
48029
48030/* Override any GCC internal prototype to avoid an error.
48031   Use char because int might match the return type of a GCC
48032   builtin and then its argument prototype would still apply.  */
48033#ifdef __cplusplus
48034extern "C"
48035#endif
48036char $ac_func ();
48037/* The GNU C library defines this for functions which it implements
48038    to always fail with ENOSYS.  Some functions are actually named
48039    something starting with __ and the normal name is an alias.  */
48040#if defined __stub_$ac_func || defined __stub___$ac_func
48041choke me
48042#endif
48043
48044int
48045main ()
48046{
48047return $ac_func ();
48048  ;
48049  return 0;
48050}
48051_ACEOF
48052rm -f conftest.$ac_objext conftest$ac_exeext
48053if { (ac_try="$ac_link"
48054case "(($ac_try" in
48055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48056  *) ac_try_echo=$ac_try;;
48057esac
48058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48059$as_echo "$ac_try_echo") >&5
48060  (eval "$ac_link") 2>conftest.er1
48061  ac_status=$?
48062  grep -v '^ *+' conftest.er1 >conftest.err
48063  rm -f conftest.er1
48064  cat conftest.err >&5
48065  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48066  (exit $ac_status); } && {
48067	 test -z "$ac_c_werror_flag" ||
48068	 test ! -s conftest.err
48069       } && test -s conftest$ac_exeext && {
48070	 test "$cross_compiling" = yes ||
48071	 $as_test_x conftest$ac_exeext
48072       }; then
48073  eval "$as_ac_var=yes"
48074else
48075  $as_echo "$as_me: failed program was:" >&5
48076sed 's/^/| /' conftest.$ac_ext >&5
48077
48078	eval "$as_ac_var=no"
48079fi
48080
48081rm -rf conftest.dSYM
48082rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48083      conftest$ac_exeext conftest.$ac_ext
48084fi
48085ac_res=`eval 'as_val=${'$as_ac_var'}
48086		 $as_echo "$as_val"'`
48087	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48088$as_echo "$ac_res" >&6; }
48089as_val=`eval 'as_val=${'$as_ac_var'}
48090		 $as_echo "$as_val"'`
48091   if test "x$as_val" = x""yes; then
48092  cat >>confdefs.h <<_ACEOF
48093#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48094_ACEOF
48095
48096        # set_auth_parameters was found in libc or existing $LIBS
48097
48098
48099cat >>confdefs.h <<\_ACEOF
48100#define HAVE_SET_AUTH_PARAMETERS 1
48101_ACEOF
48102
48103
48104
48105else
48106
48107        # set_auth_parameters was not found, try adding libsec
48108	case " $LIBS " in
48109          *\ -lsec\ *)
48110
48111		    # set_auth_parameters was not found and we already had libsec
48112		    # nothing to do here by default
48113		    true
48114
48115	    ;;
48116          *)
48117	    # set_auth_parameters was not found, try adding libsec
48118	    { $as_echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
48119$as_echo_n "checking for set_auth_parameters in -lsec... " >&6; }
48120if test "${ac_cv_lib_sec_set_auth_parameters+set}" = set; then
48121  $as_echo_n "(cached) " >&6
48122else
48123  ac_check_lib_save_LIBS=$LIBS
48124LIBS="-lsec  $LIBS"
48125cat >conftest.$ac_ext <<_ACEOF
48126/* confdefs.h.  */
48127_ACEOF
48128cat confdefs.h >>conftest.$ac_ext
48129cat >>conftest.$ac_ext <<_ACEOF
48130/* end confdefs.h.  */
48131
48132/* Override any GCC internal prototype to avoid an error.
48133   Use char because int might match the return type of a GCC
48134   builtin and then its argument prototype would still apply.  */
48135#ifdef __cplusplus
48136extern "C"
48137#endif
48138char set_auth_parameters ();
48139int
48140main ()
48141{
48142return set_auth_parameters ();
48143  ;
48144  return 0;
48145}
48146_ACEOF
48147rm -f conftest.$ac_objext conftest$ac_exeext
48148if { (ac_try="$ac_link"
48149case "(($ac_try" in
48150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48151  *) ac_try_echo=$ac_try;;
48152esac
48153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48154$as_echo "$ac_try_echo") >&5
48155  (eval "$ac_link") 2>conftest.er1
48156  ac_status=$?
48157  grep -v '^ *+' conftest.er1 >conftest.err
48158  rm -f conftest.er1
48159  cat conftest.err >&5
48160  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48161  (exit $ac_status); } && {
48162	 test -z "$ac_c_werror_flag" ||
48163	 test ! -s conftest.err
48164       } && test -s conftest$ac_exeext && {
48165	 test "$cross_compiling" = yes ||
48166	 $as_test_x conftest$ac_exeext
48167       }; then
48168  ac_cv_lib_sec_set_auth_parameters=yes
48169else
48170  $as_echo "$as_me: failed program was:" >&5
48171sed 's/^/| /' conftest.$ac_ext >&5
48172
48173	ac_cv_lib_sec_set_auth_parameters=no
48174fi
48175
48176rm -rf conftest.dSYM
48177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48178      conftest$ac_exeext conftest.$ac_ext
48179LIBS=$ac_check_lib_save_LIBS
48180fi
48181{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_set_auth_parameters" >&5
48182$as_echo "$ac_cv_lib_sec_set_auth_parameters" >&6; }
48183if test "x$ac_cv_lib_sec_set_auth_parameters" = x""yes; then
48184
48185		LIBS="-lsec $LIBS"
48186
48187
48188cat >>confdefs.h <<\_ACEOF
48189#define HAVE_SET_AUTH_PARAMETERS 1
48190_ACEOF
48191
48192
48193
48194else
48195
48196
48197			# set_auth_parameters was not found in libsec
48198			# nothing to do here by default
48199			true
48200
48201
48202fi
48203
48204	  ;;
48205        esac
48206
48207fi
48208done
48209
48210
48211
48212# UnixWare 7.x has its getspnam in -lgen
48213
48214
48215for ac_func in getspnam
48216do
48217as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48218{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
48219$as_echo_n "checking for $ac_func... " >&6; }
48220if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48221  $as_echo_n "(cached) " >&6
48222else
48223  cat >conftest.$ac_ext <<_ACEOF
48224/* confdefs.h.  */
48225_ACEOF
48226cat confdefs.h >>conftest.$ac_ext
48227cat >>conftest.$ac_ext <<_ACEOF
48228/* end confdefs.h.  */
48229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48230   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48231#define $ac_func innocuous_$ac_func
48232
48233/* System header to define __stub macros and hopefully few prototypes,
48234    which can conflict with char $ac_func (); below.
48235    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48236    <limits.h> exists even on freestanding compilers.  */
48237
48238#ifdef __STDC__
48239# include <limits.h>
48240#else
48241# include <assert.h>
48242#endif
48243
48244#undef $ac_func
48245
48246/* Override any GCC internal prototype to avoid an error.
48247   Use char because int might match the return type of a GCC
48248   builtin and then its argument prototype would still apply.  */
48249#ifdef __cplusplus
48250extern "C"
48251#endif
48252char $ac_func ();
48253/* The GNU C library defines this for functions which it implements
48254    to always fail with ENOSYS.  Some functions are actually named
48255    something starting with __ and the normal name is an alias.  */
48256#if defined __stub_$ac_func || defined __stub___$ac_func
48257choke me
48258#endif
48259
48260int
48261main ()
48262{
48263return $ac_func ();
48264  ;
48265  return 0;
48266}
48267_ACEOF
48268rm -f conftest.$ac_objext conftest$ac_exeext
48269if { (ac_try="$ac_link"
48270case "(($ac_try" in
48271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48272  *) ac_try_echo=$ac_try;;
48273esac
48274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48275$as_echo "$ac_try_echo") >&5
48276  (eval "$ac_link") 2>conftest.er1
48277  ac_status=$?
48278  grep -v '^ *+' conftest.er1 >conftest.err
48279  rm -f conftest.er1
48280  cat conftest.err >&5
48281  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48282  (exit $ac_status); } && {
48283	 test -z "$ac_c_werror_flag" ||
48284	 test ! -s conftest.err
48285       } && test -s conftest$ac_exeext && {
48286	 test "$cross_compiling" = yes ||
48287	 $as_test_x conftest$ac_exeext
48288       }; then
48289  eval "$as_ac_var=yes"
48290else
48291  $as_echo "$as_me: failed program was:" >&5
48292sed 's/^/| /' conftest.$ac_ext >&5
48293
48294	eval "$as_ac_var=no"
48295fi
48296
48297rm -rf conftest.dSYM
48298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48299      conftest$ac_exeext conftest.$ac_ext
48300fi
48301ac_res=`eval 'as_val=${'$as_ac_var'}
48302		 $as_echo "$as_val"'`
48303	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48304$as_echo "$ac_res" >&6; }
48305as_val=`eval 'as_val=${'$as_ac_var'}
48306		 $as_echo "$as_val"'`
48307   if test "x$as_val" = x""yes; then
48308  cat >>confdefs.h <<_ACEOF
48309#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48310_ACEOF
48311
48312        # getspnam was found in libc or existing $LIBS
48313
48314
48315cat >>confdefs.h <<\_ACEOF
48316#define HAVE_GETSPNAM 1
48317_ACEOF
48318
48319
48320
48321else
48322
48323        # getspnam was not found, try adding libgen
48324	case " $LIBS " in
48325          *\ -lgen\ *)
48326
48327		    # getspnam was not found and we already had libgen
48328		    # nothing to do here by default
48329		    true
48330
48331	    ;;
48332          *)
48333	    # getspnam was not found, try adding libgen
48334	    { $as_echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
48335$as_echo_n "checking for getspnam in -lgen... " >&6; }
48336if test "${ac_cv_lib_gen_getspnam+set}" = set; then
48337  $as_echo_n "(cached) " >&6
48338else
48339  ac_check_lib_save_LIBS=$LIBS
48340LIBS="-lgen  $LIBS"
48341cat >conftest.$ac_ext <<_ACEOF
48342/* confdefs.h.  */
48343_ACEOF
48344cat confdefs.h >>conftest.$ac_ext
48345cat >>conftest.$ac_ext <<_ACEOF
48346/* end confdefs.h.  */
48347
48348/* Override any GCC internal prototype to avoid an error.
48349   Use char because int might match the return type of a GCC
48350   builtin and then its argument prototype would still apply.  */
48351#ifdef __cplusplus
48352extern "C"
48353#endif
48354char getspnam ();
48355int
48356main ()
48357{
48358return getspnam ();
48359  ;
48360  return 0;
48361}
48362_ACEOF
48363rm -f conftest.$ac_objext conftest$ac_exeext
48364if { (ac_try="$ac_link"
48365case "(($ac_try" in
48366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48367  *) ac_try_echo=$ac_try;;
48368esac
48369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48370$as_echo "$ac_try_echo") >&5
48371  (eval "$ac_link") 2>conftest.er1
48372  ac_status=$?
48373  grep -v '^ *+' conftest.er1 >conftest.err
48374  rm -f conftest.er1
48375  cat conftest.err >&5
48376  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48377  (exit $ac_status); } && {
48378	 test -z "$ac_c_werror_flag" ||
48379	 test ! -s conftest.err
48380       } && test -s conftest$ac_exeext && {
48381	 test "$cross_compiling" = yes ||
48382	 $as_test_x conftest$ac_exeext
48383       }; then
48384  ac_cv_lib_gen_getspnam=yes
48385else
48386  $as_echo "$as_me: failed program was:" >&5
48387sed 's/^/| /' conftest.$ac_ext >&5
48388
48389	ac_cv_lib_gen_getspnam=no
48390fi
48391
48392rm -rf conftest.dSYM
48393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48394      conftest$ac_exeext conftest.$ac_ext
48395LIBS=$ac_check_lib_save_LIBS
48396fi
48397{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
48398$as_echo "$ac_cv_lib_gen_getspnam" >&6; }
48399if test "x$ac_cv_lib_gen_getspnam" = x""yes; then
48400
48401		LIBS="-lgen $LIBS"
48402
48403
48404cat >>confdefs.h <<\_ACEOF
48405#define HAVE_GETSPNAM 1
48406_ACEOF
48407
48408
48409
48410else
48411
48412
48413			# getspnam was not found in libgen
48414			# nothing to do here by default
48415			true
48416
48417
48418fi
48419
48420	  ;;
48421        esac
48422
48423fi
48424done
48425
48426
48427
48428
48429
48430for ac_func in getspnam
48431do
48432as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48433{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
48434$as_echo_n "checking for $ac_func... " >&6; }
48435if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48436  $as_echo_n "(cached) " >&6
48437else
48438  cat >conftest.$ac_ext <<_ACEOF
48439/* confdefs.h.  */
48440_ACEOF
48441cat confdefs.h >>conftest.$ac_ext
48442cat >>conftest.$ac_ext <<_ACEOF
48443/* end confdefs.h.  */
48444/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48445   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48446#define $ac_func innocuous_$ac_func
48447
48448/* System header to define __stub macros and hopefully few prototypes,
48449    which can conflict with char $ac_func (); below.
48450    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48451    <limits.h> exists even on freestanding compilers.  */
48452
48453#ifdef __STDC__
48454# include <limits.h>
48455#else
48456# include <assert.h>
48457#endif
48458
48459#undef $ac_func
48460
48461/* Override any GCC internal prototype to avoid an error.
48462   Use char because int might match the return type of a GCC
48463   builtin and then its argument prototype would still apply.  */
48464#ifdef __cplusplus
48465extern "C"
48466#endif
48467char $ac_func ();
48468/* The GNU C library defines this for functions which it implements
48469    to always fail with ENOSYS.  Some functions are actually named
48470    something starting with __ and the normal name is an alias.  */
48471#if defined __stub_$ac_func || defined __stub___$ac_func
48472choke me
48473#endif
48474
48475int
48476main ()
48477{
48478return $ac_func ();
48479  ;
48480  return 0;
48481}
48482_ACEOF
48483rm -f conftest.$ac_objext conftest$ac_exeext
48484if { (ac_try="$ac_link"
48485case "(($ac_try" in
48486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48487  *) ac_try_echo=$ac_try;;
48488esac
48489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48490$as_echo "$ac_try_echo") >&5
48491  (eval "$ac_link") 2>conftest.er1
48492  ac_status=$?
48493  grep -v '^ *+' conftest.er1 >conftest.err
48494  rm -f conftest.er1
48495  cat conftest.err >&5
48496  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48497  (exit $ac_status); } && {
48498	 test -z "$ac_c_werror_flag" ||
48499	 test ! -s conftest.err
48500       } && test -s conftest$ac_exeext && {
48501	 test "$cross_compiling" = yes ||
48502	 $as_test_x conftest$ac_exeext
48503       }; then
48504  eval "$as_ac_var=yes"
48505else
48506  $as_echo "$as_me: failed program was:" >&5
48507sed 's/^/| /' conftest.$ac_ext >&5
48508
48509	eval "$as_ac_var=no"
48510fi
48511
48512rm -rf conftest.dSYM
48513rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48514      conftest$ac_exeext conftest.$ac_ext
48515fi
48516ac_res=`eval 'as_val=${'$as_ac_var'}
48517		 $as_echo "$as_val"'`
48518	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48519$as_echo "$ac_res" >&6; }
48520as_val=`eval 'as_val=${'$as_ac_var'}
48521		 $as_echo "$as_val"'`
48522   if test "x$as_val" = x""yes; then
48523  cat >>confdefs.h <<_ACEOF
48524#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48525_ACEOF
48526
48527        # getspnam was found in libc or existing $LIBS
48528
48529
48530cat >>confdefs.h <<\_ACEOF
48531#define HAVE_GETSPNAM 1
48532_ACEOF
48533
48534
48535
48536else
48537
48538        # getspnam was not found, try adding libsecurity
48539	case " $LIBS " in
48540          *\ -lsecurity\ *)
48541
48542		    # getspnam was not found and we already had libsecurity
48543		    # nothing to do here by default
48544		    true
48545
48546	    ;;
48547          *)
48548	    # getspnam was not found, try adding libsecurity
48549	    { $as_echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
48550$as_echo_n "checking for getspnam in -lsecurity... " >&6; }
48551if test "${ac_cv_lib_security_getspnam+set}" = set; then
48552  $as_echo_n "(cached) " >&6
48553else
48554  ac_check_lib_save_LIBS=$LIBS
48555LIBS="-lsecurity  $LIBS"
48556cat >conftest.$ac_ext <<_ACEOF
48557/* confdefs.h.  */
48558_ACEOF
48559cat confdefs.h >>conftest.$ac_ext
48560cat >>conftest.$ac_ext <<_ACEOF
48561/* end confdefs.h.  */
48562
48563/* Override any GCC internal prototype to avoid an error.
48564   Use char because int might match the return type of a GCC
48565   builtin and then its argument prototype would still apply.  */
48566#ifdef __cplusplus
48567extern "C"
48568#endif
48569char getspnam ();
48570int
48571main ()
48572{
48573return getspnam ();
48574  ;
48575  return 0;
48576}
48577_ACEOF
48578rm -f conftest.$ac_objext conftest$ac_exeext
48579if { (ac_try="$ac_link"
48580case "(($ac_try" in
48581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48582  *) ac_try_echo=$ac_try;;
48583esac
48584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48585$as_echo "$ac_try_echo") >&5
48586  (eval "$ac_link") 2>conftest.er1
48587  ac_status=$?
48588  grep -v '^ *+' conftest.er1 >conftest.err
48589  rm -f conftest.er1
48590  cat conftest.err >&5
48591  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48592  (exit $ac_status); } && {
48593	 test -z "$ac_c_werror_flag" ||
48594	 test ! -s conftest.err
48595       } && test -s conftest$ac_exeext && {
48596	 test "$cross_compiling" = yes ||
48597	 $as_test_x conftest$ac_exeext
48598       }; then
48599  ac_cv_lib_security_getspnam=yes
48600else
48601  $as_echo "$as_me: failed program was:" >&5
48602sed 's/^/| /' conftest.$ac_ext >&5
48603
48604	ac_cv_lib_security_getspnam=no
48605fi
48606
48607rm -rf conftest.dSYM
48608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48609      conftest$ac_exeext conftest.$ac_ext
48610LIBS=$ac_check_lib_save_LIBS
48611fi
48612{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_security_getspnam" >&5
48613$as_echo "$ac_cv_lib_security_getspnam" >&6; }
48614if test "x$ac_cv_lib_security_getspnam" = x""yes; then
48615
48616		LIBS="-lsecurity $LIBS"
48617
48618
48619cat >>confdefs.h <<\_ACEOF
48620#define HAVE_GETSPNAM 1
48621_ACEOF
48622
48623
48624
48625else
48626
48627
48628			# getspnam was not found in libsecurity
48629			# nothing to do here by default
48630			true
48631
48632
48633fi
48634
48635	  ;;
48636        esac
48637
48638fi
48639done
48640
48641
48642
48643
48644for ac_func in getspnam
48645do
48646as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48647{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
48648$as_echo_n "checking for $ac_func... " >&6; }
48649if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48650  $as_echo_n "(cached) " >&6
48651else
48652  cat >conftest.$ac_ext <<_ACEOF
48653/* confdefs.h.  */
48654_ACEOF
48655cat confdefs.h >>conftest.$ac_ext
48656cat >>conftest.$ac_ext <<_ACEOF
48657/* end confdefs.h.  */
48658/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48659   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48660#define $ac_func innocuous_$ac_func
48661
48662/* System header to define __stub macros and hopefully few prototypes,
48663    which can conflict with char $ac_func (); below.
48664    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48665    <limits.h> exists even on freestanding compilers.  */
48666
48667#ifdef __STDC__
48668# include <limits.h>
48669#else
48670# include <assert.h>
48671#endif
48672
48673#undef $ac_func
48674
48675/* Override any GCC internal prototype to avoid an error.
48676   Use char because int might match the return type of a GCC
48677   builtin and then its argument prototype would still apply.  */
48678#ifdef __cplusplus
48679extern "C"
48680#endif
48681char $ac_func ();
48682/* The GNU C library defines this for functions which it implements
48683    to always fail with ENOSYS.  Some functions are actually named
48684    something starting with __ and the normal name is an alias.  */
48685#if defined __stub_$ac_func || defined __stub___$ac_func
48686choke me
48687#endif
48688
48689int
48690main ()
48691{
48692return $ac_func ();
48693  ;
48694  return 0;
48695}
48696_ACEOF
48697rm -f conftest.$ac_objext conftest$ac_exeext
48698if { (ac_try="$ac_link"
48699case "(($ac_try" in
48700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48701  *) ac_try_echo=$ac_try;;
48702esac
48703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48704$as_echo "$ac_try_echo") >&5
48705  (eval "$ac_link") 2>conftest.er1
48706  ac_status=$?
48707  grep -v '^ *+' conftest.er1 >conftest.err
48708  rm -f conftest.er1
48709  cat conftest.err >&5
48710  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48711  (exit $ac_status); } && {
48712	 test -z "$ac_c_werror_flag" ||
48713	 test ! -s conftest.err
48714       } && test -s conftest$ac_exeext && {
48715	 test "$cross_compiling" = yes ||
48716	 $as_test_x conftest$ac_exeext
48717       }; then
48718  eval "$as_ac_var=yes"
48719else
48720  $as_echo "$as_me: failed program was:" >&5
48721sed 's/^/| /' conftest.$ac_ext >&5
48722
48723	eval "$as_ac_var=no"
48724fi
48725
48726rm -rf conftest.dSYM
48727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48728      conftest$ac_exeext conftest.$ac_ext
48729fi
48730ac_res=`eval 'as_val=${'$as_ac_var'}
48731		 $as_echo "$as_val"'`
48732	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48733$as_echo "$ac_res" >&6; }
48734as_val=`eval 'as_val=${'$as_ac_var'}
48735		 $as_echo "$as_val"'`
48736   if test "x$as_val" = x""yes; then
48737  cat >>confdefs.h <<_ACEOF
48738#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48739_ACEOF
48740
48741        # getspnam was found in libc or existing $LIBS
48742
48743
48744cat >>confdefs.h <<\_ACEOF
48745#define HAVE_GETSPNAM 1
48746_ACEOF
48747
48748
48749
48750else
48751
48752        # getspnam was not found, try adding libsec
48753	case " $LIBS " in
48754          *\ -lsec\ *)
48755
48756		    # getspnam was not found and we already had libsec
48757		    # nothing to do here by default
48758		    true
48759
48760	    ;;
48761          *)
48762	    # getspnam was not found, try adding libsec
48763	    { $as_echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
48764$as_echo_n "checking for getspnam in -lsec... " >&6; }
48765if test "${ac_cv_lib_sec_getspnam+set}" = set; then
48766  $as_echo_n "(cached) " >&6
48767else
48768  ac_check_lib_save_LIBS=$LIBS
48769LIBS="-lsec  $LIBS"
48770cat >conftest.$ac_ext <<_ACEOF
48771/* confdefs.h.  */
48772_ACEOF
48773cat confdefs.h >>conftest.$ac_ext
48774cat >>conftest.$ac_ext <<_ACEOF
48775/* end confdefs.h.  */
48776
48777/* Override any GCC internal prototype to avoid an error.
48778   Use char because int might match the return type of a GCC
48779   builtin and then its argument prototype would still apply.  */
48780#ifdef __cplusplus
48781extern "C"
48782#endif
48783char getspnam ();
48784int
48785main ()
48786{
48787return getspnam ();
48788  ;
48789  return 0;
48790}
48791_ACEOF
48792rm -f conftest.$ac_objext conftest$ac_exeext
48793if { (ac_try="$ac_link"
48794case "(($ac_try" in
48795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48796  *) ac_try_echo=$ac_try;;
48797esac
48798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48799$as_echo "$ac_try_echo") >&5
48800  (eval "$ac_link") 2>conftest.er1
48801  ac_status=$?
48802  grep -v '^ *+' conftest.er1 >conftest.err
48803  rm -f conftest.er1
48804  cat conftest.err >&5
48805  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48806  (exit $ac_status); } && {
48807	 test -z "$ac_c_werror_flag" ||
48808	 test ! -s conftest.err
48809       } && test -s conftest$ac_exeext && {
48810	 test "$cross_compiling" = yes ||
48811	 $as_test_x conftest$ac_exeext
48812       }; then
48813  ac_cv_lib_sec_getspnam=yes
48814else
48815  $as_echo "$as_me: failed program was:" >&5
48816sed 's/^/| /' conftest.$ac_ext >&5
48817
48818	ac_cv_lib_sec_getspnam=no
48819fi
48820
48821rm -rf conftest.dSYM
48822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48823      conftest$ac_exeext conftest.$ac_ext
48824LIBS=$ac_check_lib_save_LIBS
48825fi
48826{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
48827$as_echo "$ac_cv_lib_sec_getspnam" >&6; }
48828if test "x$ac_cv_lib_sec_getspnam" = x""yes; then
48829
48830		LIBS="-lsec $LIBS"
48831
48832
48833cat >>confdefs.h <<\_ACEOF
48834#define HAVE_GETSPNAM 1
48835_ACEOF
48836
48837
48838
48839else
48840
48841
48842			# getspnam was not found in libsec
48843			# nothing to do here by default
48844			true
48845
48846
48847fi
48848
48849	  ;;
48850        esac
48851
48852fi
48853done
48854
48855
48856
48857
48858
48859for ac_func in bigcrypt
48860do
48861as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48862{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
48863$as_echo_n "checking for $ac_func... " >&6; }
48864if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48865  $as_echo_n "(cached) " >&6
48866else
48867  cat >conftest.$ac_ext <<_ACEOF
48868/* confdefs.h.  */
48869_ACEOF
48870cat confdefs.h >>conftest.$ac_ext
48871cat >>conftest.$ac_ext <<_ACEOF
48872/* end confdefs.h.  */
48873/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48874   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48875#define $ac_func innocuous_$ac_func
48876
48877/* System header to define __stub macros and hopefully few prototypes,
48878    which can conflict with char $ac_func (); below.
48879    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48880    <limits.h> exists even on freestanding compilers.  */
48881
48882#ifdef __STDC__
48883# include <limits.h>
48884#else
48885# include <assert.h>
48886#endif
48887
48888#undef $ac_func
48889
48890/* Override any GCC internal prototype to avoid an error.
48891   Use char because int might match the return type of a GCC
48892   builtin and then its argument prototype would still apply.  */
48893#ifdef __cplusplus
48894extern "C"
48895#endif
48896char $ac_func ();
48897/* The GNU C library defines this for functions which it implements
48898    to always fail with ENOSYS.  Some functions are actually named
48899    something starting with __ and the normal name is an alias.  */
48900#if defined __stub_$ac_func || defined __stub___$ac_func
48901choke me
48902#endif
48903
48904int
48905main ()
48906{
48907return $ac_func ();
48908  ;
48909  return 0;
48910}
48911_ACEOF
48912rm -f conftest.$ac_objext conftest$ac_exeext
48913if { (ac_try="$ac_link"
48914case "(($ac_try" in
48915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48916  *) ac_try_echo=$ac_try;;
48917esac
48918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48919$as_echo "$ac_try_echo") >&5
48920  (eval "$ac_link") 2>conftest.er1
48921  ac_status=$?
48922  grep -v '^ *+' conftest.er1 >conftest.err
48923  rm -f conftest.er1
48924  cat conftest.err >&5
48925  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48926  (exit $ac_status); } && {
48927	 test -z "$ac_c_werror_flag" ||
48928	 test ! -s conftest.err
48929       } && test -s conftest$ac_exeext && {
48930	 test "$cross_compiling" = yes ||
48931	 $as_test_x conftest$ac_exeext
48932       }; then
48933  eval "$as_ac_var=yes"
48934else
48935  $as_echo "$as_me: failed program was:" >&5
48936sed 's/^/| /' conftest.$ac_ext >&5
48937
48938	eval "$as_ac_var=no"
48939fi
48940
48941rm -rf conftest.dSYM
48942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48943      conftest$ac_exeext conftest.$ac_ext
48944fi
48945ac_res=`eval 'as_val=${'$as_ac_var'}
48946		 $as_echo "$as_val"'`
48947	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48948$as_echo "$ac_res" >&6; }
48949as_val=`eval 'as_val=${'$as_ac_var'}
48950		 $as_echo "$as_val"'`
48951   if test "x$as_val" = x""yes; then
48952  cat >>confdefs.h <<_ACEOF
48953#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48954_ACEOF
48955
48956        # bigcrypt was found in libc or existing $LIBS
48957
48958
48959cat >>confdefs.h <<\_ACEOF
48960#define HAVE_BIGCRYPT 1
48961_ACEOF
48962
48963
48964
48965else
48966
48967        # bigcrypt was not found, try adding libsecurity
48968	case " $LIBS " in
48969          *\ -lsecurity\ *)
48970
48971		    # bigcrypt was not found and we already had libsecurity
48972		    # nothing to do here by default
48973		    true
48974
48975	    ;;
48976          *)
48977	    # bigcrypt was not found, try adding libsecurity
48978	    { $as_echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
48979$as_echo_n "checking for bigcrypt in -lsecurity... " >&6; }
48980if test "${ac_cv_lib_security_bigcrypt+set}" = set; then
48981  $as_echo_n "(cached) " >&6
48982else
48983  ac_check_lib_save_LIBS=$LIBS
48984LIBS="-lsecurity  $LIBS"
48985cat >conftest.$ac_ext <<_ACEOF
48986/* confdefs.h.  */
48987_ACEOF
48988cat confdefs.h >>conftest.$ac_ext
48989cat >>conftest.$ac_ext <<_ACEOF
48990/* end confdefs.h.  */
48991
48992/* Override any GCC internal prototype to avoid an error.
48993   Use char because int might match the return type of a GCC
48994   builtin and then its argument prototype would still apply.  */
48995#ifdef __cplusplus
48996extern "C"
48997#endif
48998char bigcrypt ();
48999int
49000main ()
49001{
49002return bigcrypt ();
49003  ;
49004  return 0;
49005}
49006_ACEOF
49007rm -f conftest.$ac_objext conftest$ac_exeext
49008if { (ac_try="$ac_link"
49009case "(($ac_try" in
49010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49011  *) ac_try_echo=$ac_try;;
49012esac
49013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49014$as_echo "$ac_try_echo") >&5
49015  (eval "$ac_link") 2>conftest.er1
49016  ac_status=$?
49017  grep -v '^ *+' conftest.er1 >conftest.err
49018  rm -f conftest.er1
49019  cat conftest.err >&5
49020  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49021  (exit $ac_status); } && {
49022	 test -z "$ac_c_werror_flag" ||
49023	 test ! -s conftest.err
49024       } && test -s conftest$ac_exeext && {
49025	 test "$cross_compiling" = yes ||
49026	 $as_test_x conftest$ac_exeext
49027       }; then
49028  ac_cv_lib_security_bigcrypt=yes
49029else
49030  $as_echo "$as_me: failed program was:" >&5
49031sed 's/^/| /' conftest.$ac_ext >&5
49032
49033	ac_cv_lib_security_bigcrypt=no
49034fi
49035
49036rm -rf conftest.dSYM
49037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49038      conftest$ac_exeext conftest.$ac_ext
49039LIBS=$ac_check_lib_save_LIBS
49040fi
49041{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_security_bigcrypt" >&5
49042$as_echo "$ac_cv_lib_security_bigcrypt" >&6; }
49043if test "x$ac_cv_lib_security_bigcrypt" = x""yes; then
49044
49045		LIBS="-lsecurity $LIBS"
49046
49047
49048cat >>confdefs.h <<\_ACEOF
49049#define HAVE_BIGCRYPT 1
49050_ACEOF
49051
49052
49053
49054else
49055
49056
49057			# bigcrypt was not found in libsecurity
49058			# nothing to do here by default
49059			true
49060
49061
49062fi
49063
49064	  ;;
49065        esac
49066
49067fi
49068done
49069
49070
49071
49072
49073for ac_func in bigcrypt
49074do
49075as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49076{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49077$as_echo_n "checking for $ac_func... " >&6; }
49078if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49079  $as_echo_n "(cached) " >&6
49080else
49081  cat >conftest.$ac_ext <<_ACEOF
49082/* confdefs.h.  */
49083_ACEOF
49084cat confdefs.h >>conftest.$ac_ext
49085cat >>conftest.$ac_ext <<_ACEOF
49086/* end confdefs.h.  */
49087/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49088   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49089#define $ac_func innocuous_$ac_func
49090
49091/* System header to define __stub macros and hopefully few prototypes,
49092    which can conflict with char $ac_func (); below.
49093    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49094    <limits.h> exists even on freestanding compilers.  */
49095
49096#ifdef __STDC__
49097# include <limits.h>
49098#else
49099# include <assert.h>
49100#endif
49101
49102#undef $ac_func
49103
49104/* Override any GCC internal prototype to avoid an error.
49105   Use char because int might match the return type of a GCC
49106   builtin and then its argument prototype would still apply.  */
49107#ifdef __cplusplus
49108extern "C"
49109#endif
49110char $ac_func ();
49111/* The GNU C library defines this for functions which it implements
49112    to always fail with ENOSYS.  Some functions are actually named
49113    something starting with __ and the normal name is an alias.  */
49114#if defined __stub_$ac_func || defined __stub___$ac_func
49115choke me
49116#endif
49117
49118int
49119main ()
49120{
49121return $ac_func ();
49122  ;
49123  return 0;
49124}
49125_ACEOF
49126rm -f conftest.$ac_objext conftest$ac_exeext
49127if { (ac_try="$ac_link"
49128case "(($ac_try" in
49129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49130  *) ac_try_echo=$ac_try;;
49131esac
49132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49133$as_echo "$ac_try_echo") >&5
49134  (eval "$ac_link") 2>conftest.er1
49135  ac_status=$?
49136  grep -v '^ *+' conftest.er1 >conftest.err
49137  rm -f conftest.er1
49138  cat conftest.err >&5
49139  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49140  (exit $ac_status); } && {
49141	 test -z "$ac_c_werror_flag" ||
49142	 test ! -s conftest.err
49143       } && test -s conftest$ac_exeext && {
49144	 test "$cross_compiling" = yes ||
49145	 $as_test_x conftest$ac_exeext
49146       }; then
49147  eval "$as_ac_var=yes"
49148else
49149  $as_echo "$as_me: failed program was:" >&5
49150sed 's/^/| /' conftest.$ac_ext >&5
49151
49152	eval "$as_ac_var=no"
49153fi
49154
49155rm -rf conftest.dSYM
49156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49157      conftest$ac_exeext conftest.$ac_ext
49158fi
49159ac_res=`eval 'as_val=${'$as_ac_var'}
49160		 $as_echo "$as_val"'`
49161	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49162$as_echo "$ac_res" >&6; }
49163as_val=`eval 'as_val=${'$as_ac_var'}
49164		 $as_echo "$as_val"'`
49165   if test "x$as_val" = x""yes; then
49166  cat >>confdefs.h <<_ACEOF
49167#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49168_ACEOF
49169
49170        # bigcrypt was found in libc or existing $LIBS
49171
49172
49173cat >>confdefs.h <<\_ACEOF
49174#define HAVE_BIGCRYPT 1
49175_ACEOF
49176
49177
49178
49179else
49180
49181        # bigcrypt was not found, try adding libsec
49182	case " $LIBS " in
49183          *\ -lsec\ *)
49184
49185		    # bigcrypt was not found and we already had libsec
49186		    # nothing to do here by default
49187		    true
49188
49189	    ;;
49190          *)
49191	    # bigcrypt was not found, try adding libsec
49192	    { $as_echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
49193$as_echo_n "checking for bigcrypt in -lsec... " >&6; }
49194if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
49195  $as_echo_n "(cached) " >&6
49196else
49197  ac_check_lib_save_LIBS=$LIBS
49198LIBS="-lsec  $LIBS"
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
49206/* Override any GCC internal prototype to avoid an error.
49207   Use char because int might match the return type of a GCC
49208   builtin and then its argument prototype would still apply.  */
49209#ifdef __cplusplus
49210extern "C"
49211#endif
49212char bigcrypt ();
49213int
49214main ()
49215{
49216return bigcrypt ();
49217  ;
49218  return 0;
49219}
49220_ACEOF
49221rm -f conftest.$ac_objext conftest$ac_exeext
49222if { (ac_try="$ac_link"
49223case "(($ac_try" in
49224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49225  *) ac_try_echo=$ac_try;;
49226esac
49227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49228$as_echo "$ac_try_echo") >&5
49229  (eval "$ac_link") 2>conftest.er1
49230  ac_status=$?
49231  grep -v '^ *+' conftest.er1 >conftest.err
49232  rm -f conftest.er1
49233  cat conftest.err >&5
49234  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49235  (exit $ac_status); } && {
49236	 test -z "$ac_c_werror_flag" ||
49237	 test ! -s conftest.err
49238       } && test -s conftest$ac_exeext && {
49239	 test "$cross_compiling" = yes ||
49240	 $as_test_x conftest$ac_exeext
49241       }; then
49242  ac_cv_lib_sec_bigcrypt=yes
49243else
49244  $as_echo "$as_me: failed program was:" >&5
49245sed 's/^/| /' conftest.$ac_ext >&5
49246
49247	ac_cv_lib_sec_bigcrypt=no
49248fi
49249
49250rm -rf conftest.dSYM
49251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49252      conftest$ac_exeext conftest.$ac_ext
49253LIBS=$ac_check_lib_save_LIBS
49254fi
49255{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
49256$as_echo "$ac_cv_lib_sec_bigcrypt" >&6; }
49257if test "x$ac_cv_lib_sec_bigcrypt" = x""yes; then
49258
49259		LIBS="-lsec $LIBS"
49260
49261
49262cat >>confdefs.h <<\_ACEOF
49263#define HAVE_BIGCRYPT 1
49264_ACEOF
49265
49266
49267
49268else
49269
49270
49271			# bigcrypt was not found in libsec
49272			# nothing to do here by default
49273			true
49274
49275
49276fi
49277
49278	  ;;
49279        esac
49280
49281fi
49282done
49283
49284
49285
49286
49287
49288for ac_func in getprpwnam
49289do
49290as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49291{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49292$as_echo_n "checking for $ac_func... " >&6; }
49293if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49294  $as_echo_n "(cached) " >&6
49295else
49296  cat >conftest.$ac_ext <<_ACEOF
49297/* confdefs.h.  */
49298_ACEOF
49299cat confdefs.h >>conftest.$ac_ext
49300cat >>conftest.$ac_ext <<_ACEOF
49301/* end confdefs.h.  */
49302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49303   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49304#define $ac_func innocuous_$ac_func
49305
49306/* System header to define __stub macros and hopefully few prototypes,
49307    which can conflict with char $ac_func (); below.
49308    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49309    <limits.h> exists even on freestanding compilers.  */
49310
49311#ifdef __STDC__
49312# include <limits.h>
49313#else
49314# include <assert.h>
49315#endif
49316
49317#undef $ac_func
49318
49319/* Override any GCC internal prototype to avoid an error.
49320   Use char because int might match the return type of a GCC
49321   builtin and then its argument prototype would still apply.  */
49322#ifdef __cplusplus
49323extern "C"
49324#endif
49325char $ac_func ();
49326/* The GNU C library defines this for functions which it implements
49327    to always fail with ENOSYS.  Some functions are actually named
49328    something starting with __ and the normal name is an alias.  */
49329#if defined __stub_$ac_func || defined __stub___$ac_func
49330choke me
49331#endif
49332
49333int
49334main ()
49335{
49336return $ac_func ();
49337  ;
49338  return 0;
49339}
49340_ACEOF
49341rm -f conftest.$ac_objext conftest$ac_exeext
49342if { (ac_try="$ac_link"
49343case "(($ac_try" in
49344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49345  *) ac_try_echo=$ac_try;;
49346esac
49347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49348$as_echo "$ac_try_echo") >&5
49349  (eval "$ac_link") 2>conftest.er1
49350  ac_status=$?
49351  grep -v '^ *+' conftest.er1 >conftest.err
49352  rm -f conftest.er1
49353  cat conftest.err >&5
49354  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49355  (exit $ac_status); } && {
49356	 test -z "$ac_c_werror_flag" ||
49357	 test ! -s conftest.err
49358       } && test -s conftest$ac_exeext && {
49359	 test "$cross_compiling" = yes ||
49360	 $as_test_x conftest$ac_exeext
49361       }; then
49362  eval "$as_ac_var=yes"
49363else
49364  $as_echo "$as_me: failed program was:" >&5
49365sed 's/^/| /' conftest.$ac_ext >&5
49366
49367	eval "$as_ac_var=no"
49368fi
49369
49370rm -rf conftest.dSYM
49371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49372      conftest$ac_exeext conftest.$ac_ext
49373fi
49374ac_res=`eval 'as_val=${'$as_ac_var'}
49375		 $as_echo "$as_val"'`
49376	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49377$as_echo "$ac_res" >&6; }
49378as_val=`eval 'as_val=${'$as_ac_var'}
49379		 $as_echo "$as_val"'`
49380   if test "x$as_val" = x""yes; then
49381  cat >>confdefs.h <<_ACEOF
49382#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49383_ACEOF
49384
49385        # getprpwnam was found in libc or existing $LIBS
49386
49387
49388cat >>confdefs.h <<\_ACEOF
49389#define HAVE_GETPRPWNAM 1
49390_ACEOF
49391
49392
49393
49394else
49395
49396        # getprpwnam was not found, try adding libsecurity
49397	case " $LIBS " in
49398          *\ -lsecurity\ *)
49399
49400		    # getprpwnam was not found and we already had libsecurity
49401		    # nothing to do here by default
49402		    true
49403
49404	    ;;
49405          *)
49406	    # getprpwnam was not found, try adding libsecurity
49407	    { $as_echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
49408$as_echo_n "checking for getprpwnam in -lsecurity... " >&6; }
49409if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
49410  $as_echo_n "(cached) " >&6
49411else
49412  ac_check_lib_save_LIBS=$LIBS
49413LIBS="-lsecurity  $LIBS"
49414cat >conftest.$ac_ext <<_ACEOF
49415/* confdefs.h.  */
49416_ACEOF
49417cat confdefs.h >>conftest.$ac_ext
49418cat >>conftest.$ac_ext <<_ACEOF
49419/* end confdefs.h.  */
49420
49421/* Override any GCC internal prototype to avoid an error.
49422   Use char because int might match the return type of a GCC
49423   builtin and then its argument prototype would still apply.  */
49424#ifdef __cplusplus
49425extern "C"
49426#endif
49427char getprpwnam ();
49428int
49429main ()
49430{
49431return getprpwnam ();
49432  ;
49433  return 0;
49434}
49435_ACEOF
49436rm -f conftest.$ac_objext conftest$ac_exeext
49437if { (ac_try="$ac_link"
49438case "(($ac_try" in
49439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49440  *) ac_try_echo=$ac_try;;
49441esac
49442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49443$as_echo "$ac_try_echo") >&5
49444  (eval "$ac_link") 2>conftest.er1
49445  ac_status=$?
49446  grep -v '^ *+' conftest.er1 >conftest.err
49447  rm -f conftest.er1
49448  cat conftest.err >&5
49449  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49450  (exit $ac_status); } && {
49451	 test -z "$ac_c_werror_flag" ||
49452	 test ! -s conftest.err
49453       } && test -s conftest$ac_exeext && {
49454	 test "$cross_compiling" = yes ||
49455	 $as_test_x conftest$ac_exeext
49456       }; then
49457  ac_cv_lib_security_getprpwnam=yes
49458else
49459  $as_echo "$as_me: failed program was:" >&5
49460sed 's/^/| /' conftest.$ac_ext >&5
49461
49462	ac_cv_lib_security_getprpwnam=no
49463fi
49464
49465rm -rf conftest.dSYM
49466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49467      conftest$ac_exeext conftest.$ac_ext
49468LIBS=$ac_check_lib_save_LIBS
49469fi
49470{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
49471$as_echo "$ac_cv_lib_security_getprpwnam" >&6; }
49472if test "x$ac_cv_lib_security_getprpwnam" = x""yes; then
49473
49474		LIBS="-lsecurity $LIBS"
49475
49476
49477cat >>confdefs.h <<\_ACEOF
49478#define HAVE_GETPRPWNAM 1
49479_ACEOF
49480
49481
49482
49483else
49484
49485
49486			# getprpwnam was not found in libsecurity
49487			# nothing to do here by default
49488			true
49489
49490
49491fi
49492
49493	  ;;
49494        esac
49495
49496fi
49497done
49498
49499
49500
49501
49502for ac_func in getprpwnam
49503do
49504as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49505{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49506$as_echo_n "checking for $ac_func... " >&6; }
49507if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49508  $as_echo_n "(cached) " >&6
49509else
49510  cat >conftest.$ac_ext <<_ACEOF
49511/* confdefs.h.  */
49512_ACEOF
49513cat confdefs.h >>conftest.$ac_ext
49514cat >>conftest.$ac_ext <<_ACEOF
49515/* end confdefs.h.  */
49516/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49517   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49518#define $ac_func innocuous_$ac_func
49519
49520/* System header to define __stub macros and hopefully few prototypes,
49521    which can conflict with char $ac_func (); below.
49522    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49523    <limits.h> exists even on freestanding compilers.  */
49524
49525#ifdef __STDC__
49526# include <limits.h>
49527#else
49528# include <assert.h>
49529#endif
49530
49531#undef $ac_func
49532
49533/* Override any GCC internal prototype to avoid an error.
49534   Use char because int might match the return type of a GCC
49535   builtin and then its argument prototype would still apply.  */
49536#ifdef __cplusplus
49537extern "C"
49538#endif
49539char $ac_func ();
49540/* The GNU C library defines this for functions which it implements
49541    to always fail with ENOSYS.  Some functions are actually named
49542    something starting with __ and the normal name is an alias.  */
49543#if defined __stub_$ac_func || defined __stub___$ac_func
49544choke me
49545#endif
49546
49547int
49548main ()
49549{
49550return $ac_func ();
49551  ;
49552  return 0;
49553}
49554_ACEOF
49555rm -f conftest.$ac_objext conftest$ac_exeext
49556if { (ac_try="$ac_link"
49557case "(($ac_try" in
49558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49559  *) ac_try_echo=$ac_try;;
49560esac
49561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49562$as_echo "$ac_try_echo") >&5
49563  (eval "$ac_link") 2>conftest.er1
49564  ac_status=$?
49565  grep -v '^ *+' conftest.er1 >conftest.err
49566  rm -f conftest.er1
49567  cat conftest.err >&5
49568  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49569  (exit $ac_status); } && {
49570	 test -z "$ac_c_werror_flag" ||
49571	 test ! -s conftest.err
49572       } && test -s conftest$ac_exeext && {
49573	 test "$cross_compiling" = yes ||
49574	 $as_test_x conftest$ac_exeext
49575       }; then
49576  eval "$as_ac_var=yes"
49577else
49578  $as_echo "$as_me: failed program was:" >&5
49579sed 's/^/| /' conftest.$ac_ext >&5
49580
49581	eval "$as_ac_var=no"
49582fi
49583
49584rm -rf conftest.dSYM
49585rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49586      conftest$ac_exeext conftest.$ac_ext
49587fi
49588ac_res=`eval 'as_val=${'$as_ac_var'}
49589		 $as_echo "$as_val"'`
49590	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49591$as_echo "$ac_res" >&6; }
49592as_val=`eval 'as_val=${'$as_ac_var'}
49593		 $as_echo "$as_val"'`
49594   if test "x$as_val" = x""yes; then
49595  cat >>confdefs.h <<_ACEOF
49596#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49597_ACEOF
49598
49599        # getprpwnam was found in libc or existing $LIBS
49600
49601
49602cat >>confdefs.h <<\_ACEOF
49603#define HAVE_GETPRPWNAM 1
49604_ACEOF
49605
49606
49607
49608else
49609
49610        # getprpwnam was not found, try adding libsec
49611	case " $LIBS " in
49612          *\ -lsec\ *)
49613
49614		    # getprpwnam was not found and we already had libsec
49615		    # nothing to do here by default
49616		    true
49617
49618	    ;;
49619          *)
49620	    # getprpwnam was not found, try adding libsec
49621	    { $as_echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
49622$as_echo_n "checking for getprpwnam in -lsec... " >&6; }
49623if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
49624  $as_echo_n "(cached) " >&6
49625else
49626  ac_check_lib_save_LIBS=$LIBS
49627LIBS="-lsec  $LIBS"
49628cat >conftest.$ac_ext <<_ACEOF
49629/* confdefs.h.  */
49630_ACEOF
49631cat confdefs.h >>conftest.$ac_ext
49632cat >>conftest.$ac_ext <<_ACEOF
49633/* end confdefs.h.  */
49634
49635/* Override any GCC internal prototype to avoid an error.
49636   Use char because int might match the return type of a GCC
49637   builtin and then its argument prototype would still apply.  */
49638#ifdef __cplusplus
49639extern "C"
49640#endif
49641char getprpwnam ();
49642int
49643main ()
49644{
49645return getprpwnam ();
49646  ;
49647  return 0;
49648}
49649_ACEOF
49650rm -f conftest.$ac_objext conftest$ac_exeext
49651if { (ac_try="$ac_link"
49652case "(($ac_try" in
49653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49654  *) ac_try_echo=$ac_try;;
49655esac
49656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49657$as_echo "$ac_try_echo") >&5
49658  (eval "$ac_link") 2>conftest.er1
49659  ac_status=$?
49660  grep -v '^ *+' conftest.er1 >conftest.err
49661  rm -f conftest.er1
49662  cat conftest.err >&5
49663  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49664  (exit $ac_status); } && {
49665	 test -z "$ac_c_werror_flag" ||
49666	 test ! -s conftest.err
49667       } && test -s conftest$ac_exeext && {
49668	 test "$cross_compiling" = yes ||
49669	 $as_test_x conftest$ac_exeext
49670       }; then
49671  ac_cv_lib_sec_getprpwnam=yes
49672else
49673  $as_echo "$as_me: failed program was:" >&5
49674sed 's/^/| /' conftest.$ac_ext >&5
49675
49676	ac_cv_lib_sec_getprpwnam=no
49677fi
49678
49679rm -rf conftest.dSYM
49680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49681      conftest$ac_exeext conftest.$ac_ext
49682LIBS=$ac_check_lib_save_LIBS
49683fi
49684{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
49685$as_echo "$ac_cv_lib_sec_getprpwnam" >&6; }
49686if test "x$ac_cv_lib_sec_getprpwnam" = x""yes; then
49687
49688		LIBS="-lsec $LIBS"
49689
49690
49691cat >>confdefs.h <<\_ACEOF
49692#define HAVE_GETPRPWNAM 1
49693_ACEOF
49694
49695
49696
49697else
49698
49699
49700			# getprpwnam was not found in libsec
49701			# nothing to do here by default
49702			true
49703
49704
49705fi
49706
49707	  ;;
49708        esac
49709
49710fi
49711done
49712
49713
49714
49715
49716for ac_func in strsignal
49717do
49718as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49719{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49720$as_echo_n "checking for $ac_func... " >&6; }
49721if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49722  $as_echo_n "(cached) " >&6
49723else
49724  cat >conftest.$ac_ext <<_ACEOF
49725/* confdefs.h.  */
49726_ACEOF
49727cat confdefs.h >>conftest.$ac_ext
49728cat >>conftest.$ac_ext <<_ACEOF
49729/* end confdefs.h.  */
49730/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49731   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49732#define $ac_func innocuous_$ac_func
49733
49734/* System header to define __stub macros and hopefully few prototypes,
49735    which can conflict with char $ac_func (); below.
49736    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49737    <limits.h> exists even on freestanding compilers.  */
49738
49739#ifdef __STDC__
49740# include <limits.h>
49741#else
49742# include <assert.h>
49743#endif
49744
49745#undef $ac_func
49746
49747/* Override any GCC internal prototype to avoid an error.
49748   Use char because int might match the return type of a GCC
49749   builtin and then its argument prototype would still apply.  */
49750#ifdef __cplusplus
49751extern "C"
49752#endif
49753char $ac_func ();
49754/* The GNU C library defines this for functions which it implements
49755    to always fail with ENOSYS.  Some functions are actually named
49756    something starting with __ and the normal name is an alias.  */
49757#if defined __stub_$ac_func || defined __stub___$ac_func
49758choke me
49759#endif
49760
49761int
49762main ()
49763{
49764return $ac_func ();
49765  ;
49766  return 0;
49767}
49768_ACEOF
49769rm -f conftest.$ac_objext conftest$ac_exeext
49770if { (ac_try="$ac_link"
49771case "(($ac_try" in
49772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49773  *) ac_try_echo=$ac_try;;
49774esac
49775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49776$as_echo "$ac_try_echo") >&5
49777  (eval "$ac_link") 2>conftest.er1
49778  ac_status=$?
49779  grep -v '^ *+' conftest.er1 >conftest.err
49780  rm -f conftest.er1
49781  cat conftest.err >&5
49782  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49783  (exit $ac_status); } && {
49784	 test -z "$ac_c_werror_flag" ||
49785	 test ! -s conftest.err
49786       } && test -s conftest$ac_exeext && {
49787	 test "$cross_compiling" = yes ||
49788	 $as_test_x conftest$ac_exeext
49789       }; then
49790  eval "$as_ac_var=yes"
49791else
49792  $as_echo "$as_me: failed program was:" >&5
49793sed 's/^/| /' conftest.$ac_ext >&5
49794
49795	eval "$as_ac_var=no"
49796fi
49797
49798rm -rf conftest.dSYM
49799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49800      conftest$ac_exeext conftest.$ac_ext
49801fi
49802ac_res=`eval 'as_val=${'$as_ac_var'}
49803		 $as_echo "$as_val"'`
49804	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49805$as_echo "$ac_res" >&6; }
49806as_val=`eval 'as_val=${'$as_ac_var'}
49807		 $as_echo "$as_val"'`
49808   if test "x$as_val" = x""yes; then
49809  cat >>confdefs.h <<_ACEOF
49810#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49811_ACEOF
49812
49813fi
49814done
49815
49816
49817############################################
49818# Check if we have libattr
49819case "$host_os" in
49820  *osf*)
49821	{ $as_echo "$as_me:$LINENO: checking for library containing getproplist" >&5
49822$as_echo_n "checking for library containing getproplist... " >&6; }
49823if test "${ac_cv_search_getproplist+set}" = set; then
49824  $as_echo_n "(cached) " >&6
49825else
49826  ac_func_search_save_LIBS=$LIBS
49827cat >conftest.$ac_ext <<_ACEOF
49828/* confdefs.h.  */
49829_ACEOF
49830cat confdefs.h >>conftest.$ac_ext
49831cat >>conftest.$ac_ext <<_ACEOF
49832/* end confdefs.h.  */
49833
49834/* Override any GCC internal prototype to avoid an error.
49835   Use char because int might match the return type of a GCC
49836   builtin and then its argument prototype would still apply.  */
49837#ifdef __cplusplus
49838extern "C"
49839#endif
49840char getproplist ();
49841int
49842main ()
49843{
49844return getproplist ();
49845  ;
49846  return 0;
49847}
49848_ACEOF
49849for ac_lib in '' proplist; do
49850  if test -z "$ac_lib"; then
49851    ac_res="none required"
49852  else
49853    ac_res=-l$ac_lib
49854    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
49855  fi
49856  rm -f conftest.$ac_objext conftest$ac_exeext
49857if { (ac_try="$ac_link"
49858case "(($ac_try" in
49859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49860  *) ac_try_echo=$ac_try;;
49861esac
49862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49863$as_echo "$ac_try_echo") >&5
49864  (eval "$ac_link") 2>conftest.er1
49865  ac_status=$?
49866  grep -v '^ *+' conftest.er1 >conftest.err
49867  rm -f conftest.er1
49868  cat conftest.err >&5
49869  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49870  (exit $ac_status); } && {
49871	 test -z "$ac_c_werror_flag" ||
49872	 test ! -s conftest.err
49873       } && test -s conftest$ac_exeext && {
49874	 test "$cross_compiling" = yes ||
49875	 $as_test_x conftest$ac_exeext
49876       }; then
49877  ac_cv_search_getproplist=$ac_res
49878else
49879  $as_echo "$as_me: failed program was:" >&5
49880sed 's/^/| /' conftest.$ac_ext >&5
49881
49882
49883fi
49884
49885rm -rf conftest.dSYM
49886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49887      conftest$ac_exeext
49888  if test "${ac_cv_search_getproplist+set}" = set; then
49889  break
49890fi
49891done
49892if test "${ac_cv_search_getproplist+set}" = set; then
49893  :
49894else
49895  ac_cv_search_getproplist=no
49896fi
49897rm conftest.$ac_ext
49898LIBS=$ac_func_search_save_LIBS
49899fi
49900{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getproplist" >&5
49901$as_echo "$ac_cv_search_getproplist" >&6; }
49902ac_res=$ac_cv_search_getproplist
49903if test "$ac_res" != no; then
49904  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
49905
49906fi
49907
49908
49909
49910
49911
49912for ac_func in getproplist fgetproplist setproplist fsetproplist
49913do
49914as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49915{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49916$as_echo_n "checking for $ac_func... " >&6; }
49917if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49918  $as_echo_n "(cached) " >&6
49919else
49920  cat >conftest.$ac_ext <<_ACEOF
49921/* confdefs.h.  */
49922_ACEOF
49923cat confdefs.h >>conftest.$ac_ext
49924cat >>conftest.$ac_ext <<_ACEOF
49925/* end confdefs.h.  */
49926/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49927   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49928#define $ac_func innocuous_$ac_func
49929
49930/* System header to define __stub macros and hopefully few prototypes,
49931    which can conflict with char $ac_func (); below.
49932    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49933    <limits.h> exists even on freestanding compilers.  */
49934
49935#ifdef __STDC__
49936# include <limits.h>
49937#else
49938# include <assert.h>
49939#endif
49940
49941#undef $ac_func
49942
49943/* Override any GCC internal prototype to avoid an error.
49944   Use char because int might match the return type of a GCC
49945   builtin and then its argument prototype would still apply.  */
49946#ifdef __cplusplus
49947extern "C"
49948#endif
49949char $ac_func ();
49950/* The GNU C library defines this for functions which it implements
49951    to always fail with ENOSYS.  Some functions are actually named
49952    something starting with __ and the normal name is an alias.  */
49953#if defined __stub_$ac_func || defined __stub___$ac_func
49954choke me
49955#endif
49956
49957int
49958main ()
49959{
49960return $ac_func ();
49961  ;
49962  return 0;
49963}
49964_ACEOF
49965rm -f conftest.$ac_objext conftest$ac_exeext
49966if { (ac_try="$ac_link"
49967case "(($ac_try" in
49968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49969  *) ac_try_echo=$ac_try;;
49970esac
49971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49972$as_echo "$ac_try_echo") >&5
49973  (eval "$ac_link") 2>conftest.er1
49974  ac_status=$?
49975  grep -v '^ *+' conftest.er1 >conftest.err
49976  rm -f conftest.er1
49977  cat conftest.err >&5
49978  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49979  (exit $ac_status); } && {
49980	 test -z "$ac_c_werror_flag" ||
49981	 test ! -s conftest.err
49982       } && test -s conftest$ac_exeext && {
49983	 test "$cross_compiling" = yes ||
49984	 $as_test_x conftest$ac_exeext
49985       }; then
49986  eval "$as_ac_var=yes"
49987else
49988  $as_echo "$as_me: failed program was:" >&5
49989sed 's/^/| /' conftest.$ac_ext >&5
49990
49991	eval "$as_ac_var=no"
49992fi
49993
49994rm -rf conftest.dSYM
49995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49996      conftest$ac_exeext conftest.$ac_ext
49997fi
49998ac_res=`eval 'as_val=${'$as_ac_var'}
49999		 $as_echo "$as_val"'`
50000	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50001$as_echo "$ac_res" >&6; }
50002as_val=`eval 'as_val=${'$as_ac_var'}
50003		 $as_echo "$as_val"'`
50004   if test "x$as_val" = x""yes; then
50005  cat >>confdefs.h <<_ACEOF
50006#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50007_ACEOF
50008
50009fi
50010done
50011
50012
50013
50014
50015
50016for ac_func in delproplist fdelproplist add_proplist_entry get_proplist_entry
50017do
50018as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50019{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50020$as_echo_n "checking for $ac_func... " >&6; }
50021if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50022  $as_echo_n "(cached) " >&6
50023else
50024  cat >conftest.$ac_ext <<_ACEOF
50025/* confdefs.h.  */
50026_ACEOF
50027cat confdefs.h >>conftest.$ac_ext
50028cat >>conftest.$ac_ext <<_ACEOF
50029/* end confdefs.h.  */
50030/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50031   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50032#define $ac_func innocuous_$ac_func
50033
50034/* System header to define __stub macros and hopefully few prototypes,
50035    which can conflict with char $ac_func (); below.
50036    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50037    <limits.h> exists even on freestanding compilers.  */
50038
50039#ifdef __STDC__
50040# include <limits.h>
50041#else
50042# include <assert.h>
50043#endif
50044
50045#undef $ac_func
50046
50047/* Override any GCC internal prototype to avoid an error.
50048   Use char because int might match the return type of a GCC
50049   builtin and then its argument prototype would still apply.  */
50050#ifdef __cplusplus
50051extern "C"
50052#endif
50053char $ac_func ();
50054/* The GNU C library defines this for functions which it implements
50055    to always fail with ENOSYS.  Some functions are actually named
50056    something starting with __ and the normal name is an alias.  */
50057#if defined __stub_$ac_func || defined __stub___$ac_func
50058choke me
50059#endif
50060
50061int
50062main ()
50063{
50064return $ac_func ();
50065  ;
50066  return 0;
50067}
50068_ACEOF
50069rm -f conftest.$ac_objext conftest$ac_exeext
50070if { (ac_try="$ac_link"
50071case "(($ac_try" in
50072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50073  *) ac_try_echo=$ac_try;;
50074esac
50075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50076$as_echo "$ac_try_echo") >&5
50077  (eval "$ac_link") 2>conftest.er1
50078  ac_status=$?
50079  grep -v '^ *+' conftest.er1 >conftest.err
50080  rm -f conftest.er1
50081  cat conftest.err >&5
50082  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50083  (exit $ac_status); } && {
50084	 test -z "$ac_c_werror_flag" ||
50085	 test ! -s conftest.err
50086       } && test -s conftest$ac_exeext && {
50087	 test "$cross_compiling" = yes ||
50088	 $as_test_x conftest$ac_exeext
50089       }; then
50090  eval "$as_ac_var=yes"
50091else
50092  $as_echo "$as_me: failed program was:" >&5
50093sed 's/^/| /' conftest.$ac_ext >&5
50094
50095	eval "$as_ac_var=no"
50096fi
50097
50098rm -rf conftest.dSYM
50099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50100      conftest$ac_exeext conftest.$ac_ext
50101fi
50102ac_res=`eval 'as_val=${'$as_ac_var'}
50103		 $as_echo "$as_val"'`
50104	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50105$as_echo "$ac_res" >&6; }
50106as_val=`eval 'as_val=${'$as_ac_var'}
50107		 $as_echo "$as_val"'`
50108   if test "x$as_val" = x""yes; then
50109  cat >>confdefs.h <<_ACEOF
50110#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50111_ACEOF
50112
50113fi
50114done
50115
50116
50117for ac_func in sizeof_proplist_entry
50118do
50119as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50120{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50121$as_echo_n "checking for $ac_func... " >&6; }
50122if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50123  $as_echo_n "(cached) " >&6
50124else
50125  cat >conftest.$ac_ext <<_ACEOF
50126/* confdefs.h.  */
50127_ACEOF
50128cat confdefs.h >>conftest.$ac_ext
50129cat >>conftest.$ac_ext <<_ACEOF
50130/* end confdefs.h.  */
50131/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50132   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50133#define $ac_func innocuous_$ac_func
50134
50135/* System header to define __stub macros and hopefully few prototypes,
50136    which can conflict with char $ac_func (); below.
50137    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50138    <limits.h> exists even on freestanding compilers.  */
50139
50140#ifdef __STDC__
50141# include <limits.h>
50142#else
50143# include <assert.h>
50144#endif
50145
50146#undef $ac_func
50147
50148/* Override any GCC internal prototype to avoid an error.
50149   Use char because int might match the return type of a GCC
50150   builtin and then its argument prototype would still apply.  */
50151#ifdef __cplusplus
50152extern "C"
50153#endif
50154char $ac_func ();
50155/* The GNU C library defines this for functions which it implements
50156    to always fail with ENOSYS.  Some functions are actually named
50157    something starting with __ and the normal name is an alias.  */
50158#if defined __stub_$ac_func || defined __stub___$ac_func
50159choke me
50160#endif
50161
50162int
50163main ()
50164{
50165return $ac_func ();
50166  ;
50167  return 0;
50168}
50169_ACEOF
50170rm -f conftest.$ac_objext conftest$ac_exeext
50171if { (ac_try="$ac_link"
50172case "(($ac_try" in
50173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50174  *) ac_try_echo=$ac_try;;
50175esac
50176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50177$as_echo "$ac_try_echo") >&5
50178  (eval "$ac_link") 2>conftest.er1
50179  ac_status=$?
50180  grep -v '^ *+' conftest.er1 >conftest.err
50181  rm -f conftest.er1
50182  cat conftest.err >&5
50183  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50184  (exit $ac_status); } && {
50185	 test -z "$ac_c_werror_flag" ||
50186	 test ! -s conftest.err
50187       } && test -s conftest$ac_exeext && {
50188	 test "$cross_compiling" = yes ||
50189	 $as_test_x conftest$ac_exeext
50190       }; then
50191  eval "$as_ac_var=yes"
50192else
50193  $as_echo "$as_me: failed program was:" >&5
50194sed 's/^/| /' conftest.$ac_ext >&5
50195
50196	eval "$as_ac_var=no"
50197fi
50198
50199rm -rf conftest.dSYM
50200rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50201      conftest$ac_exeext conftest.$ac_ext
50202fi
50203ac_res=`eval 'as_val=${'$as_ac_var'}
50204		 $as_echo "$as_val"'`
50205	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50206$as_echo "$ac_res" >&6; }
50207as_val=`eval 'as_val=${'$as_ac_var'}
50208		 $as_echo "$as_val"'`
50209   if test "x$as_val" = x""yes; then
50210  cat >>confdefs.h <<_ACEOF
50211#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50212_ACEOF
50213
50214fi
50215done
50216
50217  ;;
50218  *)
50219	{ $as_echo "$as_me:$LINENO: checking for library containing getxattr" >&5
50220$as_echo_n "checking for library containing getxattr... " >&6; }
50221if test "${ac_cv_search_getxattr+set}" = set; then
50222  $as_echo_n "(cached) " >&6
50223else
50224  ac_func_search_save_LIBS=$LIBS
50225cat >conftest.$ac_ext <<_ACEOF
50226/* confdefs.h.  */
50227_ACEOF
50228cat confdefs.h >>conftest.$ac_ext
50229cat >>conftest.$ac_ext <<_ACEOF
50230/* end confdefs.h.  */
50231
50232/* Override any GCC internal prototype to avoid an error.
50233   Use char because int might match the return type of a GCC
50234   builtin and then its argument prototype would still apply.  */
50235#ifdef __cplusplus
50236extern "C"
50237#endif
50238char getxattr ();
50239int
50240main ()
50241{
50242return getxattr ();
50243  ;
50244  return 0;
50245}
50246_ACEOF
50247for ac_lib in '' attr; do
50248  if test -z "$ac_lib"; then
50249    ac_res="none required"
50250  else
50251    ac_res=-l$ac_lib
50252    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
50253  fi
50254  rm -f conftest.$ac_objext conftest$ac_exeext
50255if { (ac_try="$ac_link"
50256case "(($ac_try" in
50257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50258  *) ac_try_echo=$ac_try;;
50259esac
50260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50261$as_echo "$ac_try_echo") >&5
50262  (eval "$ac_link") 2>conftest.er1
50263  ac_status=$?
50264  grep -v '^ *+' conftest.er1 >conftest.err
50265  rm -f conftest.er1
50266  cat conftest.err >&5
50267  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50268  (exit $ac_status); } && {
50269	 test -z "$ac_c_werror_flag" ||
50270	 test ! -s conftest.err
50271       } && test -s conftest$ac_exeext && {
50272	 test "$cross_compiling" = yes ||
50273	 $as_test_x conftest$ac_exeext
50274       }; then
50275  ac_cv_search_getxattr=$ac_res
50276else
50277  $as_echo "$as_me: failed program was:" >&5
50278sed 's/^/| /' conftest.$ac_ext >&5
50279
50280
50281fi
50282
50283rm -rf conftest.dSYM
50284rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50285      conftest$ac_exeext
50286  if test "${ac_cv_search_getxattr+set}" = set; then
50287  break
50288fi
50289done
50290if test "${ac_cv_search_getxattr+set}" = set; then
50291  :
50292else
50293  ac_cv_search_getxattr=no
50294fi
50295rm conftest.$ac_ext
50296LIBS=$ac_func_search_save_LIBS
50297fi
50298{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getxattr" >&5
50299$as_echo "$ac_cv_search_getxattr" >&6; }
50300ac_res=$ac_cv_search_getxattr
50301if test "$ac_res" != no; then
50302  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
50303
50304fi
50305
50306
50307
50308
50309
50310
50311for ac_func in getxattr lgetxattr fgetxattr listxattr llistxattr
50312do
50313as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50314{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50315$as_echo_n "checking for $ac_func... " >&6; }
50316if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50317  $as_echo_n "(cached) " >&6
50318else
50319  cat >conftest.$ac_ext <<_ACEOF
50320/* confdefs.h.  */
50321_ACEOF
50322cat confdefs.h >>conftest.$ac_ext
50323cat >>conftest.$ac_ext <<_ACEOF
50324/* end confdefs.h.  */
50325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50326   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50327#define $ac_func innocuous_$ac_func
50328
50329/* System header to define __stub macros and hopefully few prototypes,
50330    which can conflict with char $ac_func (); below.
50331    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50332    <limits.h> exists even on freestanding compilers.  */
50333
50334#ifdef __STDC__
50335# include <limits.h>
50336#else
50337# include <assert.h>
50338#endif
50339
50340#undef $ac_func
50341
50342/* Override any GCC internal prototype to avoid an error.
50343   Use char because int might match the return type of a GCC
50344   builtin and then its argument prototype would still apply.  */
50345#ifdef __cplusplus
50346extern "C"
50347#endif
50348char $ac_func ();
50349/* The GNU C library defines this for functions which it implements
50350    to always fail with ENOSYS.  Some functions are actually named
50351    something starting with __ and the normal name is an alias.  */
50352#if defined __stub_$ac_func || defined __stub___$ac_func
50353choke me
50354#endif
50355
50356int
50357main ()
50358{
50359return $ac_func ();
50360  ;
50361  return 0;
50362}
50363_ACEOF
50364rm -f conftest.$ac_objext conftest$ac_exeext
50365if { (ac_try="$ac_link"
50366case "(($ac_try" in
50367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50368  *) ac_try_echo=$ac_try;;
50369esac
50370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50371$as_echo "$ac_try_echo") >&5
50372  (eval "$ac_link") 2>conftest.er1
50373  ac_status=$?
50374  grep -v '^ *+' conftest.er1 >conftest.err
50375  rm -f conftest.er1
50376  cat conftest.err >&5
50377  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50378  (exit $ac_status); } && {
50379	 test -z "$ac_c_werror_flag" ||
50380	 test ! -s conftest.err
50381       } && test -s conftest$ac_exeext && {
50382	 test "$cross_compiling" = yes ||
50383	 $as_test_x conftest$ac_exeext
50384       }; then
50385  eval "$as_ac_var=yes"
50386else
50387  $as_echo "$as_me: failed program was:" >&5
50388sed 's/^/| /' conftest.$ac_ext >&5
50389
50390	eval "$as_ac_var=no"
50391fi
50392
50393rm -rf conftest.dSYM
50394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50395      conftest$ac_exeext conftest.$ac_ext
50396fi
50397ac_res=`eval 'as_val=${'$as_ac_var'}
50398		 $as_echo "$as_val"'`
50399	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50400$as_echo "$ac_res" >&6; }
50401as_val=`eval 'as_val=${'$as_ac_var'}
50402		 $as_echo "$as_val"'`
50403   if test "x$as_val" = x""yes; then
50404  cat >>confdefs.h <<_ACEOF
50405#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50406_ACEOF
50407
50408fi
50409done
50410
50411
50412
50413
50414
50415
50416
50417for ac_func in getea fgetea lgetea listea flistea llistea
50418do
50419as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50420{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50421$as_echo_n "checking for $ac_func... " >&6; }
50422if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50423  $as_echo_n "(cached) " >&6
50424else
50425  cat >conftest.$ac_ext <<_ACEOF
50426/* confdefs.h.  */
50427_ACEOF
50428cat confdefs.h >>conftest.$ac_ext
50429cat >>conftest.$ac_ext <<_ACEOF
50430/* end confdefs.h.  */
50431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50432   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50433#define $ac_func innocuous_$ac_func
50434
50435/* System header to define __stub macros and hopefully few prototypes,
50436    which can conflict with char $ac_func (); below.
50437    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50438    <limits.h> exists even on freestanding compilers.  */
50439
50440#ifdef __STDC__
50441# include <limits.h>
50442#else
50443# include <assert.h>
50444#endif
50445
50446#undef $ac_func
50447
50448/* Override any GCC internal prototype to avoid an error.
50449   Use char because int might match the return type of a GCC
50450   builtin and then its argument prototype would still apply.  */
50451#ifdef __cplusplus
50452extern "C"
50453#endif
50454char $ac_func ();
50455/* The GNU C library defines this for functions which it implements
50456    to always fail with ENOSYS.  Some functions are actually named
50457    something starting with __ and the normal name is an alias.  */
50458#if defined __stub_$ac_func || defined __stub___$ac_func
50459choke me
50460#endif
50461
50462int
50463main ()
50464{
50465return $ac_func ();
50466  ;
50467  return 0;
50468}
50469_ACEOF
50470rm -f conftest.$ac_objext conftest$ac_exeext
50471if { (ac_try="$ac_link"
50472case "(($ac_try" in
50473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50474  *) ac_try_echo=$ac_try;;
50475esac
50476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50477$as_echo "$ac_try_echo") >&5
50478  (eval "$ac_link") 2>conftest.er1
50479  ac_status=$?
50480  grep -v '^ *+' conftest.er1 >conftest.err
50481  rm -f conftest.er1
50482  cat conftest.err >&5
50483  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50484  (exit $ac_status); } && {
50485	 test -z "$ac_c_werror_flag" ||
50486	 test ! -s conftest.err
50487       } && test -s conftest$ac_exeext && {
50488	 test "$cross_compiling" = yes ||
50489	 $as_test_x conftest$ac_exeext
50490       }; then
50491  eval "$as_ac_var=yes"
50492else
50493  $as_echo "$as_me: failed program was:" >&5
50494sed 's/^/| /' conftest.$ac_ext >&5
50495
50496	eval "$as_ac_var=no"
50497fi
50498
50499rm -rf conftest.dSYM
50500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50501      conftest$ac_exeext conftest.$ac_ext
50502fi
50503ac_res=`eval 'as_val=${'$as_ac_var'}
50504		 $as_echo "$as_val"'`
50505	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50506$as_echo "$ac_res" >&6; }
50507as_val=`eval 'as_val=${'$as_ac_var'}
50508		 $as_echo "$as_val"'`
50509   if test "x$as_val" = x""yes; then
50510  cat >>confdefs.h <<_ACEOF
50511#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50512_ACEOF
50513
50514fi
50515done
50516
50517
50518
50519
50520
50521
50522
50523for ac_func in removeea fremoveea lremoveea setea fsetea lsetea
50524do
50525as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50526{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50527$as_echo_n "checking for $ac_func... " >&6; }
50528if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50529  $as_echo_n "(cached) " >&6
50530else
50531  cat >conftest.$ac_ext <<_ACEOF
50532/* confdefs.h.  */
50533_ACEOF
50534cat confdefs.h >>conftest.$ac_ext
50535cat >>conftest.$ac_ext <<_ACEOF
50536/* end confdefs.h.  */
50537/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50538   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50539#define $ac_func innocuous_$ac_func
50540
50541/* System header to define __stub macros and hopefully few prototypes,
50542    which can conflict with char $ac_func (); below.
50543    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50544    <limits.h> exists even on freestanding compilers.  */
50545
50546#ifdef __STDC__
50547# include <limits.h>
50548#else
50549# include <assert.h>
50550#endif
50551
50552#undef $ac_func
50553
50554/* Override any GCC internal prototype to avoid an error.
50555   Use char because int might match the return type of a GCC
50556   builtin and then its argument prototype would still apply.  */
50557#ifdef __cplusplus
50558extern "C"
50559#endif
50560char $ac_func ();
50561/* The GNU C library defines this for functions which it implements
50562    to always fail with ENOSYS.  Some functions are actually named
50563    something starting with __ and the normal name is an alias.  */
50564#if defined __stub_$ac_func || defined __stub___$ac_func
50565choke me
50566#endif
50567
50568int
50569main ()
50570{
50571return $ac_func ();
50572  ;
50573  return 0;
50574}
50575_ACEOF
50576rm -f conftest.$ac_objext conftest$ac_exeext
50577if { (ac_try="$ac_link"
50578case "(($ac_try" in
50579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50580  *) ac_try_echo=$ac_try;;
50581esac
50582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50583$as_echo "$ac_try_echo") >&5
50584  (eval "$ac_link") 2>conftest.er1
50585  ac_status=$?
50586  grep -v '^ *+' conftest.er1 >conftest.err
50587  rm -f conftest.er1
50588  cat conftest.err >&5
50589  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50590  (exit $ac_status); } && {
50591	 test -z "$ac_c_werror_flag" ||
50592	 test ! -s conftest.err
50593       } && test -s conftest$ac_exeext && {
50594	 test "$cross_compiling" = yes ||
50595	 $as_test_x conftest$ac_exeext
50596       }; then
50597  eval "$as_ac_var=yes"
50598else
50599  $as_echo "$as_me: failed program was:" >&5
50600sed 's/^/| /' conftest.$ac_ext >&5
50601
50602	eval "$as_ac_var=no"
50603fi
50604
50605rm -rf conftest.dSYM
50606rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50607      conftest$ac_exeext conftest.$ac_ext
50608fi
50609ac_res=`eval 'as_val=${'$as_ac_var'}
50610		 $as_echo "$as_val"'`
50611	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50612$as_echo "$ac_res" >&6; }
50613as_val=`eval 'as_val=${'$as_ac_var'}
50614		 $as_echo "$as_val"'`
50615   if test "x$as_val" = x""yes; then
50616  cat >>confdefs.h <<_ACEOF
50617#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50618_ACEOF
50619
50620fi
50621done
50622
50623
50624
50625
50626
50627for ac_func in flistxattr removexattr lremovexattr fremovexattr
50628do
50629as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50630{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50631$as_echo_n "checking for $ac_func... " >&6; }
50632if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50633  $as_echo_n "(cached) " >&6
50634else
50635  cat >conftest.$ac_ext <<_ACEOF
50636/* confdefs.h.  */
50637_ACEOF
50638cat confdefs.h >>conftest.$ac_ext
50639cat >>conftest.$ac_ext <<_ACEOF
50640/* end confdefs.h.  */
50641/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50642   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50643#define $ac_func innocuous_$ac_func
50644
50645/* System header to define __stub macros and hopefully few prototypes,
50646    which can conflict with char $ac_func (); below.
50647    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50648    <limits.h> exists even on freestanding compilers.  */
50649
50650#ifdef __STDC__
50651# include <limits.h>
50652#else
50653# include <assert.h>
50654#endif
50655
50656#undef $ac_func
50657
50658/* Override any GCC internal prototype to avoid an error.
50659   Use char because int might match the return type of a GCC
50660   builtin and then its argument prototype would still apply.  */
50661#ifdef __cplusplus
50662extern "C"
50663#endif
50664char $ac_func ();
50665/* The GNU C library defines this for functions which it implements
50666    to always fail with ENOSYS.  Some functions are actually named
50667    something starting with __ and the normal name is an alias.  */
50668#if defined __stub_$ac_func || defined __stub___$ac_func
50669choke me
50670#endif
50671
50672int
50673main ()
50674{
50675return $ac_func ();
50676  ;
50677  return 0;
50678}
50679_ACEOF
50680rm -f conftest.$ac_objext conftest$ac_exeext
50681if { (ac_try="$ac_link"
50682case "(($ac_try" in
50683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50684  *) ac_try_echo=$ac_try;;
50685esac
50686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50687$as_echo "$ac_try_echo") >&5
50688  (eval "$ac_link") 2>conftest.er1
50689  ac_status=$?
50690  grep -v '^ *+' conftest.er1 >conftest.err
50691  rm -f conftest.er1
50692  cat conftest.err >&5
50693  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50694  (exit $ac_status); } && {
50695	 test -z "$ac_c_werror_flag" ||
50696	 test ! -s conftest.err
50697       } && test -s conftest$ac_exeext && {
50698	 test "$cross_compiling" = yes ||
50699	 $as_test_x conftest$ac_exeext
50700       }; then
50701  eval "$as_ac_var=yes"
50702else
50703  $as_echo "$as_me: failed program was:" >&5
50704sed 's/^/| /' conftest.$ac_ext >&5
50705
50706	eval "$as_ac_var=no"
50707fi
50708
50709rm -rf conftest.dSYM
50710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50711      conftest$ac_exeext conftest.$ac_ext
50712fi
50713ac_res=`eval 'as_val=${'$as_ac_var'}
50714		 $as_echo "$as_val"'`
50715	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50716$as_echo "$ac_res" >&6; }
50717as_val=`eval 'as_val=${'$as_ac_var'}
50718		 $as_echo "$as_val"'`
50719   if test "x$as_val" = x""yes; then
50720  cat >>confdefs.h <<_ACEOF
50721#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50722_ACEOF
50723
50724fi
50725done
50726
50727
50728
50729
50730for ac_func in setxattr lsetxattr fsetxattr
50731do
50732as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50733{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50734$as_echo_n "checking for $ac_func... " >&6; }
50735if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50736  $as_echo_n "(cached) " >&6
50737else
50738  cat >conftest.$ac_ext <<_ACEOF
50739/* confdefs.h.  */
50740_ACEOF
50741cat confdefs.h >>conftest.$ac_ext
50742cat >>conftest.$ac_ext <<_ACEOF
50743/* end confdefs.h.  */
50744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50745   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50746#define $ac_func innocuous_$ac_func
50747
50748/* System header to define __stub macros and hopefully few prototypes,
50749    which can conflict with char $ac_func (); below.
50750    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50751    <limits.h> exists even on freestanding compilers.  */
50752
50753#ifdef __STDC__
50754# include <limits.h>
50755#else
50756# include <assert.h>
50757#endif
50758
50759#undef $ac_func
50760
50761/* Override any GCC internal prototype to avoid an error.
50762   Use char because int might match the return type of a GCC
50763   builtin and then its argument prototype would still apply.  */
50764#ifdef __cplusplus
50765extern "C"
50766#endif
50767char $ac_func ();
50768/* The GNU C library defines this for functions which it implements
50769    to always fail with ENOSYS.  Some functions are actually named
50770    something starting with __ and the normal name is an alias.  */
50771#if defined __stub_$ac_func || defined __stub___$ac_func
50772choke me
50773#endif
50774
50775int
50776main ()
50777{
50778return $ac_func ();
50779  ;
50780  return 0;
50781}
50782_ACEOF
50783rm -f conftest.$ac_objext conftest$ac_exeext
50784if { (ac_try="$ac_link"
50785case "(($ac_try" in
50786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50787  *) ac_try_echo=$ac_try;;
50788esac
50789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50790$as_echo "$ac_try_echo") >&5
50791  (eval "$ac_link") 2>conftest.er1
50792  ac_status=$?
50793  grep -v '^ *+' conftest.er1 >conftest.err
50794  rm -f conftest.er1
50795  cat conftest.err >&5
50796  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50797  (exit $ac_status); } && {
50798	 test -z "$ac_c_werror_flag" ||
50799	 test ! -s conftest.err
50800       } && test -s conftest$ac_exeext && {
50801	 test "$cross_compiling" = yes ||
50802	 $as_test_x conftest$ac_exeext
50803       }; then
50804  eval "$as_ac_var=yes"
50805else
50806  $as_echo "$as_me: failed program was:" >&5
50807sed 's/^/| /' conftest.$ac_ext >&5
50808
50809	eval "$as_ac_var=no"
50810fi
50811
50812rm -rf conftest.dSYM
50813rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50814      conftest$ac_exeext conftest.$ac_ext
50815fi
50816ac_res=`eval 'as_val=${'$as_ac_var'}
50817		 $as_echo "$as_val"'`
50818	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50819$as_echo "$ac_res" >&6; }
50820as_val=`eval 'as_val=${'$as_ac_var'}
50821		 $as_echo "$as_val"'`
50822   if test "x$as_val" = x""yes; then
50823  cat >>confdefs.h <<_ACEOF
50824#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50825_ACEOF
50826
50827fi
50828done
50829
50830
50831
50832
50833
50834for ac_func in attr_get attr_list attr_set attr_remove
50835do
50836as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50837{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50838$as_echo_n "checking for $ac_func... " >&6; }
50839if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50840  $as_echo_n "(cached) " >&6
50841else
50842  cat >conftest.$ac_ext <<_ACEOF
50843/* confdefs.h.  */
50844_ACEOF
50845cat confdefs.h >>conftest.$ac_ext
50846cat >>conftest.$ac_ext <<_ACEOF
50847/* end confdefs.h.  */
50848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50849   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50850#define $ac_func innocuous_$ac_func
50851
50852/* System header to define __stub macros and hopefully few prototypes,
50853    which can conflict with char $ac_func (); below.
50854    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50855    <limits.h> exists even on freestanding compilers.  */
50856
50857#ifdef __STDC__
50858# include <limits.h>
50859#else
50860# include <assert.h>
50861#endif
50862
50863#undef $ac_func
50864
50865/* Override any GCC internal prototype to avoid an error.
50866   Use char because int might match the return type of a GCC
50867   builtin and then its argument prototype would still apply.  */
50868#ifdef __cplusplus
50869extern "C"
50870#endif
50871char $ac_func ();
50872/* The GNU C library defines this for functions which it implements
50873    to always fail with ENOSYS.  Some functions are actually named
50874    something starting with __ and the normal name is an alias.  */
50875#if defined __stub_$ac_func || defined __stub___$ac_func
50876choke me
50877#endif
50878
50879int
50880main ()
50881{
50882return $ac_func ();
50883  ;
50884  return 0;
50885}
50886_ACEOF
50887rm -f conftest.$ac_objext conftest$ac_exeext
50888if { (ac_try="$ac_link"
50889case "(($ac_try" in
50890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50891  *) ac_try_echo=$ac_try;;
50892esac
50893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50894$as_echo "$ac_try_echo") >&5
50895  (eval "$ac_link") 2>conftest.er1
50896  ac_status=$?
50897  grep -v '^ *+' conftest.er1 >conftest.err
50898  rm -f conftest.er1
50899  cat conftest.err >&5
50900  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50901  (exit $ac_status); } && {
50902	 test -z "$ac_c_werror_flag" ||
50903	 test ! -s conftest.err
50904       } && test -s conftest$ac_exeext && {
50905	 test "$cross_compiling" = yes ||
50906	 $as_test_x conftest$ac_exeext
50907       }; then
50908  eval "$as_ac_var=yes"
50909else
50910  $as_echo "$as_me: failed program was:" >&5
50911sed 's/^/| /' conftest.$ac_ext >&5
50912
50913	eval "$as_ac_var=no"
50914fi
50915
50916rm -rf conftest.dSYM
50917rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50918      conftest$ac_exeext conftest.$ac_ext
50919fi
50920ac_res=`eval 'as_val=${'$as_ac_var'}
50921		 $as_echo "$as_val"'`
50922	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50923$as_echo "$ac_res" >&6; }
50924as_val=`eval 'as_val=${'$as_ac_var'}
50925		 $as_echo "$as_val"'`
50926   if test "x$as_val" = x""yes; then
50927  cat >>confdefs.h <<_ACEOF
50928#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50929_ACEOF
50930
50931fi
50932done
50933
50934
50935
50936
50937
50938for ac_func in attr_getf attr_listf attr_setf attr_removef
50939do
50940as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50941{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50942$as_echo_n "checking for $ac_func... " >&6; }
50943if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50944  $as_echo_n "(cached) " >&6
50945else
50946  cat >conftest.$ac_ext <<_ACEOF
50947/* confdefs.h.  */
50948_ACEOF
50949cat confdefs.h >>conftest.$ac_ext
50950cat >>conftest.$ac_ext <<_ACEOF
50951/* end confdefs.h.  */
50952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50953   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50954#define $ac_func innocuous_$ac_func
50955
50956/* System header to define __stub macros and hopefully few prototypes,
50957    which can conflict with char $ac_func (); below.
50958    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50959    <limits.h> exists even on freestanding compilers.  */
50960
50961#ifdef __STDC__
50962# include <limits.h>
50963#else
50964# include <assert.h>
50965#endif
50966
50967#undef $ac_func
50968
50969/* Override any GCC internal prototype to avoid an error.
50970   Use char because int might match the return type of a GCC
50971   builtin and then its argument prototype would still apply.  */
50972#ifdef __cplusplus
50973extern "C"
50974#endif
50975char $ac_func ();
50976/* The GNU C library defines this for functions which it implements
50977    to always fail with ENOSYS.  Some functions are actually named
50978    something starting with __ and the normal name is an alias.  */
50979#if defined __stub_$ac_func || defined __stub___$ac_func
50980choke me
50981#endif
50982
50983int
50984main ()
50985{
50986return $ac_func ();
50987  ;
50988  return 0;
50989}
50990_ACEOF
50991rm -f conftest.$ac_objext conftest$ac_exeext
50992if { (ac_try="$ac_link"
50993case "(($ac_try" in
50994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50995  *) ac_try_echo=$ac_try;;
50996esac
50997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50998$as_echo "$ac_try_echo") >&5
50999  (eval "$ac_link") 2>conftest.er1
51000  ac_status=$?
51001  grep -v '^ *+' conftest.er1 >conftest.err
51002  rm -f conftest.er1
51003  cat conftest.err >&5
51004  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51005  (exit $ac_status); } && {
51006	 test -z "$ac_c_werror_flag" ||
51007	 test ! -s conftest.err
51008       } && test -s conftest$ac_exeext && {
51009	 test "$cross_compiling" = yes ||
51010	 $as_test_x conftest$ac_exeext
51011       }; then
51012  eval "$as_ac_var=yes"
51013else
51014  $as_echo "$as_me: failed program was:" >&5
51015sed 's/^/| /' conftest.$ac_ext >&5
51016
51017	eval "$as_ac_var=no"
51018fi
51019
51020rm -rf conftest.dSYM
51021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51022      conftest$ac_exeext conftest.$ac_ext
51023fi
51024ac_res=`eval 'as_val=${'$as_ac_var'}
51025		 $as_echo "$as_val"'`
51026	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51027$as_echo "$ac_res" >&6; }
51028as_val=`eval 'as_val=${'$as_ac_var'}
51029		 $as_echo "$as_val"'`
51030   if test "x$as_val" = x""yes; then
51031  cat >>confdefs.h <<_ACEOF
51032#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
51033_ACEOF
51034
51035fi
51036done
51037
51038  ;;
51039esac
51040
51041########################################################
51042# Check if attropen() is present if this is Solaris
51043case "$host_os" in
51044  *solaris*)
51045
51046for ac_func in attropen
51047do
51048as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
51049{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
51050$as_echo_n "checking for $ac_func... " >&6; }
51051if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51052  $as_echo_n "(cached) " >&6
51053else
51054  cat >conftest.$ac_ext <<_ACEOF
51055/* confdefs.h.  */
51056_ACEOF
51057cat confdefs.h >>conftest.$ac_ext
51058cat >>conftest.$ac_ext <<_ACEOF
51059/* end confdefs.h.  */
51060/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51061   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51062#define $ac_func innocuous_$ac_func
51063
51064/* System header to define __stub macros and hopefully few prototypes,
51065    which can conflict with char $ac_func (); below.
51066    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51067    <limits.h> exists even on freestanding compilers.  */
51068
51069#ifdef __STDC__
51070# include <limits.h>
51071#else
51072# include <assert.h>
51073#endif
51074
51075#undef $ac_func
51076
51077/* Override any GCC internal prototype to avoid an error.
51078   Use char because int might match the return type of a GCC
51079   builtin and then its argument prototype would still apply.  */
51080#ifdef __cplusplus
51081extern "C"
51082#endif
51083char $ac_func ();
51084/* The GNU C library defines this for functions which it implements
51085    to always fail with ENOSYS.  Some functions are actually named
51086    something starting with __ and the normal name is an alias.  */
51087#if defined __stub_$ac_func || defined __stub___$ac_func
51088choke me
51089#endif
51090
51091int
51092main ()
51093{
51094return $ac_func ();
51095  ;
51096  return 0;
51097}
51098_ACEOF
51099rm -f conftest.$ac_objext conftest$ac_exeext
51100if { (ac_try="$ac_link"
51101case "(($ac_try" in
51102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51103  *) ac_try_echo=$ac_try;;
51104esac
51105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51106$as_echo "$ac_try_echo") >&5
51107  (eval "$ac_link") 2>conftest.er1
51108  ac_status=$?
51109  grep -v '^ *+' conftest.er1 >conftest.err
51110  rm -f conftest.er1
51111  cat conftest.err >&5
51112  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51113  (exit $ac_status); } && {
51114	 test -z "$ac_c_werror_flag" ||
51115	 test ! -s conftest.err
51116       } && test -s conftest$ac_exeext && {
51117	 test "$cross_compiling" = yes ||
51118	 $as_test_x conftest$ac_exeext
51119       }; then
51120  eval "$as_ac_var=yes"
51121else
51122  $as_echo "$as_me: failed program was:" >&5
51123sed 's/^/| /' conftest.$ac_ext >&5
51124
51125	eval "$as_ac_var=no"
51126fi
51127
51128rm -rf conftest.dSYM
51129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51130      conftest$ac_exeext conftest.$ac_ext
51131fi
51132ac_res=`eval 'as_val=${'$as_ac_var'}
51133		 $as_echo "$as_val"'`
51134	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51135$as_echo "$ac_res" >&6; }
51136as_val=`eval 'as_val=${'$as_ac_var'}
51137		 $as_echo "$as_val"'`
51138   if test "x$as_val" = x""yes; then
51139  cat >>confdefs.h <<_ACEOF
51140#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
51141_ACEOF
51142
51143fi
51144done
51145
51146  ;;
51147esac
51148
51149########################################################
51150# Do xattr functions take additional options like on Darwin?
51151if test x"$ac_cv_func_getxattr" = x"yes" ; then
51152	{ $as_echo "$as_me:$LINENO: checking whether xattr interface takes additional options" >&5
51153$as_echo_n "checking whether xattr interface takes additional options... " >&6; }
51154if test "${smb_attr_cv_xattr_add_opt+set}" = set; then
51155  $as_echo_n "(cached) " >&6
51156else
51157
51158		old_LIBS=$LIBS
51159		LIBS="$LIBS $ACL_LIBS"
51160		cat >conftest.$ac_ext <<_ACEOF
51161/* confdefs.h.  */
51162_ACEOF
51163cat confdefs.h >>conftest.$ac_ext
51164cat >>conftest.$ac_ext <<_ACEOF
51165/* end confdefs.h.  */
51166
51167			#include <sys/types.h>
51168			#if HAVE_ATTR_XATTR_H
51169			#include <attr/xattr.h>
51170			#elif HAVE_SYS_XATTR_H
51171			#include <sys/xattr.h>
51172			#endif
51173
51174int
51175main ()
51176{
51177
51178			getxattr(0, 0, 0, 0, 0, 0);
51179
51180  ;
51181  return 0;
51182}
51183_ACEOF
51184rm -f conftest.$ac_objext
51185if { (ac_try="$ac_compile"
51186case "(($ac_try" in
51187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51188  *) ac_try_echo=$ac_try;;
51189esac
51190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51191$as_echo "$ac_try_echo") >&5
51192  (eval "$ac_compile") 2>conftest.er1
51193  ac_status=$?
51194  grep -v '^ *+' conftest.er1 >conftest.err
51195  rm -f conftest.er1
51196  cat conftest.err >&5
51197  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51198  (exit $ac_status); } && {
51199	 test -z "$ac_c_werror_flag" ||
51200	 test ! -s conftest.err
51201       } && test -s conftest.$ac_objext; then
51202  smb_attr_cv_xattr_add_opt=yes
51203else
51204  $as_echo "$as_me: failed program was:" >&5
51205sed 's/^/| /' conftest.$ac_ext >&5
51206
51207	smb_attr_cv_xattr_add_opt=no;LIBS=$old_LIBS
51208fi
51209
51210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51211
51212fi
51213{ $as_echo "$as_me:$LINENO: result: $smb_attr_cv_xattr_add_opt" >&5
51214$as_echo "$smb_attr_cv_xattr_add_opt" >&6; }
51215	if test x"$smb_attr_cv_xattr_add_opt" = x"yes"; then
51216
51217cat >>confdefs.h <<\_ACEOF
51218#define XATTR_ADD_OPT 1
51219_ACEOF
51220
51221	fi
51222fi
51223
51224# Check if we have extattr
51225case "$host_os" in
51226  *freebsd4* | *dragonfly* )
51227
51228cat >>confdefs.h <<\_ACEOF
51229#define BROKEN_EXTATTR 1
51230_ACEOF
51231
51232    ;;
51233  *)
51234
51235
51236
51237for ac_func in extattr_delete_fd extattr_delete_file extattr_delete_link
51238do
51239as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
51240{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
51241$as_echo_n "checking for $ac_func... " >&6; }
51242if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51243  $as_echo_n "(cached) " >&6
51244else
51245  cat >conftest.$ac_ext <<_ACEOF
51246/* confdefs.h.  */
51247_ACEOF
51248cat confdefs.h >>conftest.$ac_ext
51249cat >>conftest.$ac_ext <<_ACEOF
51250/* end confdefs.h.  */
51251/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51252   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51253#define $ac_func innocuous_$ac_func
51254
51255/* System header to define __stub macros and hopefully few prototypes,
51256    which can conflict with char $ac_func (); below.
51257    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51258    <limits.h> exists even on freestanding compilers.  */
51259
51260#ifdef __STDC__
51261# include <limits.h>
51262#else
51263# include <assert.h>
51264#endif
51265
51266#undef $ac_func
51267
51268/* Override any GCC internal prototype to avoid an error.
51269   Use char because int might match the return type of a GCC
51270   builtin and then its argument prototype would still apply.  */
51271#ifdef __cplusplus
51272extern "C"
51273#endif
51274char $ac_func ();
51275/* The GNU C library defines this for functions which it implements
51276    to always fail with ENOSYS.  Some functions are actually named
51277    something starting with __ and the normal name is an alias.  */
51278#if defined __stub_$ac_func || defined __stub___$ac_func
51279choke me
51280#endif
51281
51282int
51283main ()
51284{
51285return $ac_func ();
51286  ;
51287  return 0;
51288}
51289_ACEOF
51290rm -f conftest.$ac_objext conftest$ac_exeext
51291if { (ac_try="$ac_link"
51292case "(($ac_try" in
51293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51294  *) ac_try_echo=$ac_try;;
51295esac
51296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51297$as_echo "$ac_try_echo") >&5
51298  (eval "$ac_link") 2>conftest.er1
51299  ac_status=$?
51300  grep -v '^ *+' conftest.er1 >conftest.err
51301  rm -f conftest.er1
51302  cat conftest.err >&5
51303  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51304  (exit $ac_status); } && {
51305	 test -z "$ac_c_werror_flag" ||
51306	 test ! -s conftest.err
51307       } && test -s conftest$ac_exeext && {
51308	 test "$cross_compiling" = yes ||
51309	 $as_test_x conftest$ac_exeext
51310       }; then
51311  eval "$as_ac_var=yes"
51312else
51313  $as_echo "$as_me: failed program was:" >&5
51314sed 's/^/| /' conftest.$ac_ext >&5
51315
51316	eval "$as_ac_var=no"
51317fi
51318
51319rm -rf conftest.dSYM
51320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51321      conftest$ac_exeext conftest.$ac_ext
51322fi
51323ac_res=`eval 'as_val=${'$as_ac_var'}
51324		 $as_echo "$as_val"'`
51325	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51326$as_echo "$ac_res" >&6; }
51327as_val=`eval 'as_val=${'$as_ac_var'}
51328		 $as_echo "$as_val"'`
51329   if test "x$as_val" = x""yes; then
51330  cat >>confdefs.h <<_ACEOF
51331#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
51332_ACEOF
51333
51334fi
51335done
51336
51337
51338
51339
51340for ac_func in extattr_get_fd extattr_get_file extattr_get_link
51341do
51342as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
51343{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
51344$as_echo_n "checking for $ac_func... " >&6; }
51345if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51346  $as_echo_n "(cached) " >&6
51347else
51348  cat >conftest.$ac_ext <<_ACEOF
51349/* confdefs.h.  */
51350_ACEOF
51351cat confdefs.h >>conftest.$ac_ext
51352cat >>conftest.$ac_ext <<_ACEOF
51353/* end confdefs.h.  */
51354/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51355   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51356#define $ac_func innocuous_$ac_func
51357
51358/* System header to define __stub macros and hopefully few prototypes,
51359    which can conflict with char $ac_func (); below.
51360    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51361    <limits.h> exists even on freestanding compilers.  */
51362
51363#ifdef __STDC__
51364# include <limits.h>
51365#else
51366# include <assert.h>
51367#endif
51368
51369#undef $ac_func
51370
51371/* Override any GCC internal prototype to avoid an error.
51372   Use char because int might match the return type of a GCC
51373   builtin and then its argument prototype would still apply.  */
51374#ifdef __cplusplus
51375extern "C"
51376#endif
51377char $ac_func ();
51378/* The GNU C library defines this for functions which it implements
51379    to always fail with ENOSYS.  Some functions are actually named
51380    something starting with __ and the normal name is an alias.  */
51381#if defined __stub_$ac_func || defined __stub___$ac_func
51382choke me
51383#endif
51384
51385int
51386main ()
51387{
51388return $ac_func ();
51389  ;
51390  return 0;
51391}
51392_ACEOF
51393rm -f conftest.$ac_objext conftest$ac_exeext
51394if { (ac_try="$ac_link"
51395case "(($ac_try" in
51396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51397  *) ac_try_echo=$ac_try;;
51398esac
51399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51400$as_echo "$ac_try_echo") >&5
51401  (eval "$ac_link") 2>conftest.er1
51402  ac_status=$?
51403  grep -v '^ *+' conftest.er1 >conftest.err
51404  rm -f conftest.er1
51405  cat conftest.err >&5
51406  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51407  (exit $ac_status); } && {
51408	 test -z "$ac_c_werror_flag" ||
51409	 test ! -s conftest.err
51410       } && test -s conftest$ac_exeext && {
51411	 test "$cross_compiling" = yes ||
51412	 $as_test_x conftest$ac_exeext
51413       }; then
51414  eval "$as_ac_var=yes"
51415else
51416  $as_echo "$as_me: failed program was:" >&5
51417sed 's/^/| /' conftest.$ac_ext >&5
51418
51419	eval "$as_ac_var=no"
51420fi
51421
51422rm -rf conftest.dSYM
51423rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51424      conftest$ac_exeext conftest.$ac_ext
51425fi
51426ac_res=`eval 'as_val=${'$as_ac_var'}
51427		 $as_echo "$as_val"'`
51428	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51429$as_echo "$ac_res" >&6; }
51430as_val=`eval 'as_val=${'$as_ac_var'}
51431		 $as_echo "$as_val"'`
51432   if test "x$as_val" = x""yes; then
51433  cat >>confdefs.h <<_ACEOF
51434#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
51435_ACEOF
51436
51437fi
51438done
51439
51440
51441
51442
51443for ac_func in extattr_list_fd extattr_list_file extattr_list_link
51444do
51445as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
51446{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
51447$as_echo_n "checking for $ac_func... " >&6; }
51448if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51449  $as_echo_n "(cached) " >&6
51450else
51451  cat >conftest.$ac_ext <<_ACEOF
51452/* confdefs.h.  */
51453_ACEOF
51454cat confdefs.h >>conftest.$ac_ext
51455cat >>conftest.$ac_ext <<_ACEOF
51456/* end confdefs.h.  */
51457/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51458   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51459#define $ac_func innocuous_$ac_func
51460
51461/* System header to define __stub macros and hopefully few prototypes,
51462    which can conflict with char $ac_func (); below.
51463    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51464    <limits.h> exists even on freestanding compilers.  */
51465
51466#ifdef __STDC__
51467# include <limits.h>
51468#else
51469# include <assert.h>
51470#endif
51471
51472#undef $ac_func
51473
51474/* Override any GCC internal prototype to avoid an error.
51475   Use char because int might match the return type of a GCC
51476   builtin and then its argument prototype would still apply.  */
51477#ifdef __cplusplus
51478extern "C"
51479#endif
51480char $ac_func ();
51481/* The GNU C library defines this for functions which it implements
51482    to always fail with ENOSYS.  Some functions are actually named
51483    something starting with __ and the normal name is an alias.  */
51484#if defined __stub_$ac_func || defined __stub___$ac_func
51485choke me
51486#endif
51487
51488int
51489main ()
51490{
51491return $ac_func ();
51492  ;
51493  return 0;
51494}
51495_ACEOF
51496rm -f conftest.$ac_objext conftest$ac_exeext
51497if { (ac_try="$ac_link"
51498case "(($ac_try" in
51499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51500  *) ac_try_echo=$ac_try;;
51501esac
51502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51503$as_echo "$ac_try_echo") >&5
51504  (eval "$ac_link") 2>conftest.er1
51505  ac_status=$?
51506  grep -v '^ *+' conftest.er1 >conftest.err
51507  rm -f conftest.er1
51508  cat conftest.err >&5
51509  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51510  (exit $ac_status); } && {
51511	 test -z "$ac_c_werror_flag" ||
51512	 test ! -s conftest.err
51513       } && test -s conftest$ac_exeext && {
51514	 test "$cross_compiling" = yes ||
51515	 $as_test_x conftest$ac_exeext
51516       }; then
51517  eval "$as_ac_var=yes"
51518else
51519  $as_echo "$as_me: failed program was:" >&5
51520sed 's/^/| /' conftest.$ac_ext >&5
51521
51522	eval "$as_ac_var=no"
51523fi
51524
51525rm -rf conftest.dSYM
51526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51527      conftest$ac_exeext conftest.$ac_ext
51528fi
51529ac_res=`eval 'as_val=${'$as_ac_var'}
51530		 $as_echo "$as_val"'`
51531	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51532$as_echo "$ac_res" >&6; }
51533as_val=`eval 'as_val=${'$as_ac_var'}
51534		 $as_echo "$as_val"'`
51535   if test "x$as_val" = x""yes; then
51536  cat >>confdefs.h <<_ACEOF
51537#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
51538_ACEOF
51539
51540fi
51541done
51542
51543
51544
51545
51546for ac_func in extattr_set_fd extattr_set_file extattr_set_link
51547do
51548as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
51549{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
51550$as_echo_n "checking for $ac_func... " >&6; }
51551if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51552  $as_echo_n "(cached) " >&6
51553else
51554  cat >conftest.$ac_ext <<_ACEOF
51555/* confdefs.h.  */
51556_ACEOF
51557cat confdefs.h >>conftest.$ac_ext
51558cat >>conftest.$ac_ext <<_ACEOF
51559/* end confdefs.h.  */
51560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51561   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51562#define $ac_func innocuous_$ac_func
51563
51564/* System header to define __stub macros and hopefully few prototypes,
51565    which can conflict with char $ac_func (); below.
51566    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51567    <limits.h> exists even on freestanding compilers.  */
51568
51569#ifdef __STDC__
51570# include <limits.h>
51571#else
51572# include <assert.h>
51573#endif
51574
51575#undef $ac_func
51576
51577/* Override any GCC internal prototype to avoid an error.
51578   Use char because int might match the return type of a GCC
51579   builtin and then its argument prototype would still apply.  */
51580#ifdef __cplusplus
51581extern "C"
51582#endif
51583char $ac_func ();
51584/* The GNU C library defines this for functions which it implements
51585    to always fail with ENOSYS.  Some functions are actually named
51586    something starting with __ and the normal name is an alias.  */
51587#if defined __stub_$ac_func || defined __stub___$ac_func
51588choke me
51589#endif
51590
51591int
51592main ()
51593{
51594return $ac_func ();
51595  ;
51596  return 0;
51597}
51598_ACEOF
51599rm -f conftest.$ac_objext conftest$ac_exeext
51600if { (ac_try="$ac_link"
51601case "(($ac_try" in
51602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51603  *) ac_try_echo=$ac_try;;
51604esac
51605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51606$as_echo "$ac_try_echo") >&5
51607  (eval "$ac_link") 2>conftest.er1
51608  ac_status=$?
51609  grep -v '^ *+' conftest.er1 >conftest.err
51610  rm -f conftest.er1
51611  cat conftest.err >&5
51612  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51613  (exit $ac_status); } && {
51614	 test -z "$ac_c_werror_flag" ||
51615	 test ! -s conftest.err
51616       } && test -s conftest$ac_exeext && {
51617	 test "$cross_compiling" = yes ||
51618	 $as_test_x conftest$ac_exeext
51619       }; then
51620  eval "$as_ac_var=yes"
51621else
51622  $as_echo "$as_me: failed program was:" >&5
51623sed 's/^/| /' conftest.$ac_ext >&5
51624
51625	eval "$as_ac_var=no"
51626fi
51627
51628rm -rf conftest.dSYM
51629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51630      conftest$ac_exeext conftest.$ac_ext
51631fi
51632ac_res=`eval 'as_val=${'$as_ac_var'}
51633		 $as_echo "$as_val"'`
51634	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51635$as_echo "$ac_res" >&6; }
51636as_val=`eval 'as_val=${'$as_ac_var'}
51637		 $as_echo "$as_val"'`
51638   if test "x$as_val" = x""yes; then
51639  cat >>confdefs.h <<_ACEOF
51640#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
51641_ACEOF
51642
51643fi
51644done
51645
51646    ;;
51647esac
51648
51649# Check whether --enable-static was given.
51650if test "${enable_static+set}" = set; then
51651  enableval=$enable_static; p=${PACKAGE-default}
51652case $enableval in
51653yes) enable_static=yes ;;
51654no) enable_static=no ;;
51655*)
51656  enable_static=no
51657  # Look at the argument we got.  We use all the common list separators.
51658  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
51659  for pkg in $enableval; do
51660    if test "X$pkg" = "X$p"; then
51661      enable_static=yes
51662    fi
51663  done
51664  IFS="$ac_save_ifs"
51665  ;;
51666esac
51667else
51668  enable_static=no
51669fi
51670
51671# Check whether --enable-shared was given.
51672if test "${enable_shared+set}" = set; then
51673  enableval=$enable_shared; p=${PACKAGE-default}
51674case $enableval in
51675yes) enable_shared=yes ;;
51676no) enable_shared=no ;;
51677*)
51678  enable_shared=no
51679  # Look at the argument we got.  We use all the common list separators.
51680  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
51681  for pkg in $enableval; do
51682    if test "X$pkg" = "X$p"; then
51683      enable_shared=yes
51684    fi
51685
51686  done
51687  IFS="$ac_save_ifs"
51688  ;;
51689esac
51690else
51691  enable_shared=yes
51692fi
51693
51694
51695# Set defaults
51696PIE_CFLAGS=""
51697PIE_LDFLAGS=""
51698# Check whether --enable-pie was given.
51699if test "${enable_pie+set}" = set; then
51700  enableval=$enable_pie;
51701fi
51702
51703
51704if test "x$enable_pie" != xno
51705then
51706	{ $as_echo "$as_me:$LINENO: checking for -pie and -fPIE" >&5
51707$as_echo_n "checking for -pie and -fPIE... " >&6; }
51708if test "${samba_cv_fpie+set}" = set; then
51709  $as_echo_n "(cached) " >&6
51710else
51711
51712		cat > conftest.c <<EOF
51713int foo;
51714int main () { return 0;}
51715EOF
51716		if
51717	{ OUT=`(${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fPIE -o conftest conftest.c) 3>&5 2>&1 1>&3`
51718	RC=$?
51719	echo "\$?=$RC" >&5
51720	if test x"$OUT" != x ; then
51721		echo "stderr:" >&5
51722		echo "$OUT" >&5
51723	fi
51724	test $RC -eq 0 -a x"$OUT" = x ; }
51725
51726		then
51727			samba_cv_fpie=yes
51728		else
51729			samba_cv_fpie=no
51730		fi
51731		rm -f conftest*
51732
51733fi
51734{ $as_echo "$as_me:$LINENO: result: $samba_cv_fpie" >&5
51735$as_echo "$samba_cv_fpie" >&6; }
51736	if test x"${samba_cv_fpie}" = x"yes"
51737	then
51738		PIE_CFLAGS="-fPIE"
51739		PIE_LDFLAGS="-pie"
51740	fi
51741fi
51742
51743# Set defaults
51744RELRO_LDFLAGS=""
51745# Check whether --enable-relro was given.
51746if test "${enable_relro+set}" = set; then
51747  enableval=$enable_relro;
51748fi
51749
51750
51751if test "x$enable_relro" != xno
51752then
51753	{ $as_echo "$as_me:$LINENO: checking for -Wl,-z,relro" >&5
51754$as_echo_n "checking for -Wl,-z,relro... " >&6; }
51755if test "${samba_cv_relro+set}" = set; then
51756  $as_echo_n "(cached) " >&6
51757else
51758
51759		cat > conftest.c <<EOF
51760int foo;
51761main () { return 0;}
51762EOF
51763		if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Wl,-z,relro -o conftest conftest.c 1>&5'
51764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51765  (eval $ac_try) 2>&5
51766  ac_status=$?
51767  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51768  (exit $ac_status); }; }
51769		then
51770			samba_cv_relro=yes
51771		else
51772			samba_cv_relro=no
51773		fi
51774		rm -f conftest*
51775
51776fi
51777{ $as_echo "$as_me:$LINENO: result: $samba_cv_relro" >&5
51778$as_echo "$samba_cv_relro" >&6; }
51779	if test x"${samba_cv_relro}" = x"yes"
51780	then
51781		RELRO_LDFLAGS="-Wl,-z,relro"
51782	fi
51783fi
51784
51785# Set defaults
51786SYMSEXT="syms"
51787
51788
51789# Assume non-shared by default and override below
51790BLDSHARED="false"
51791
51792# these are the defaults, good for lots of systems
51793HOST_OS="$host_os"
51794LDSHFLAGS="-shared"
51795MODULE_EXPORTS=""
51796SONAMEFLAG="#"
51797SHLD="\${CC} \${CFLAGS}"
51798PICFLAG="${PIE_CFLAGS}"
51799SHLIBEXT="so"
51800DSO_EXPORTS=""
51801
51802# this bit needs to be modified for each OS that supports share libs
51803# You need to specify how to create a shared library and
51804  # how to compile C code to produce PIC object files
51805
51806  { $as_echo "$as_me:$LINENO: checking ability to build shared libraries" >&5
51807$as_echo_n "checking ability to build shared libraries... " >&6; }
51808
51809  # and these are for particular systems
51810  case "$host_os" in
51811		*linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu | *qnx*)
51812			case "$host_os" in
51813				*linux*)
51814cat >>confdefs.h <<\_ACEOF
51815#define LINUX 1
51816_ACEOF
51817 ;;
51818				*qnx*)
51819cat >>confdefs.h <<\_ACEOF
51820#define QNX 1
51821_ACEOF
51822 ;;
51823			esac
51824			BLDSHARED="true"
51825			LDSHFLAGS="-shared -Wl,-Bsymbolic"
51826			if test "${ac_cv_gnu_ld_no_default_allow_shlib_undefined}" = "yes"; then
51827				LDSHFLAGS_Z_NODEFS="-Wl,--allow-shlib-undefined"
51828			fi
51829			DYNEXP="-Wl,--export-dynamic"
51830			PICFLAG="-fPIC"
51831			SONAMEFLAG="-Wl,-soname="
51832			cat >>confdefs.h <<\_ACEOF
51833#define STAT_ST_BLOCKSIZE 512
51834_ACEOF
51835
51836			;;
51837		*solaris*)
51838cat >>confdefs.h <<\_ACEOF
51839#define SUNOS5 1
51840_ACEOF
51841
51842			BLDSHARED="true"
51843			if test "${GCC}" = "yes"; then
51844				PICFLAG="-fPIC"
51845				SONAMEFLAG="-Wl,-soname="
51846				if test "${ac_cv_prog_gnu_ld}" = "yes"; then
51847					DYNEXP="-Wl,-E"
51848				fi
51849				LDSHFLAGS="-shared"
51850			else
51851				PICFLAG="-KPIC"
51852				LDSHFLAGS="-G"
51853			fi
51854			if test "$ac_cv_prog_gnu_ld" = "yes"; then
51855				SONAMEFLAG="-Wl,-soname="
51856			else
51857				SONAMEFLAG="-Wl,-h,"
51858			fi
51859
51860cat >>confdefs.h <<\_ACEOF
51861#define STAT_ST_BLOCKSIZE 512
51862_ACEOF
51863
51864
51865cat >>confdefs.h <<\_ACEOF
51866#define BROKEN_GETGRNAM 1
51867_ACEOF
51868
51869			;;
51870		*sunos*)
51871cat >>confdefs.h <<\_ACEOF
51872#define SUNOS4 1
51873_ACEOF
51874
51875			BLDSHARED="true"
51876			LDSHFLAGS="-G"
51877			SONAMEFLAG="-Wl,-h,"
51878			PICFLAG="-KPIC"   # Is this correct for SunOS
51879			cat >>confdefs.h <<\_ACEOF
51880#define STAT_ST_BLOCKSIZE 512
51881_ACEOF
51882
51883
51884cat >>confdefs.h <<\_ACEOF
51885#define BROKEN_GETGRNAM 1
51886_ACEOF
51887
51888			;;
51889		*netbsd* | *freebsd* | *dragonfly* )
51890			BLDSHARED="true"
51891			LDSHFLAGS="-shared"
51892			DYNEXP="-Wl,--export-dynamic"
51893			SONAMEFLAG="-Wl,-soname,"
51894			PICFLAG="-fPIC -DPIC"
51895
51896cat >>confdefs.h <<\_ACEOF
51897#define STAT_ST_BLOCKSIZE 512
51898_ACEOF
51899
51900
51901cat >>confdefs.h <<\_ACEOF
51902#define BROKEN_GETGRNAM 1
51903_ACEOF
51904
51905			;;
51906		*openbsd*)  BLDSHARED="true"
51907			LDSHFLAGS="-shared"
51908			DYNEXP="-Wl,-Bdynamic"
51909			SONAMEFLAG="-Wl,-soname,"
51910			PICFLAG="-fPIC"
51911
51912cat >>confdefs.h <<\_ACEOF
51913#define STAT_ST_BLOCKSIZE 512
51914_ACEOF
51915
51916
51917cat >>confdefs.h <<\_ACEOF
51918#define BROKEN_GETGRNAM 1
51919_ACEOF
51920
51921			;;
51922		*irix*)
51923cat >>confdefs.h <<\_ACEOF
51924#define IRIX 1
51925_ACEOF
51926
51927			case "$host_os" in
51928			*irix6*)
51929cat >>confdefs.h <<\_ACEOF
51930#define IRIX6 1
51931_ACEOF
51932
51933			;;
51934			esac
51935			BLDSHARED="true"
51936			LDSHFLAGS="-Wl,-set_version,sgi1.0 -shared"
51937			SONAMEFLAG="-Wl,-soname,"
51938			if test "${GCC}" = "yes"; then
51939				PICFLAG="-fPIC"
51940			else
51941				PICFLAG="-KPIC"
51942			fi
51943
51944cat >>confdefs.h <<\_ACEOF
51945#define STAT_ST_BLOCKSIZE 512
51946_ACEOF
51947
51948			;;
51949		*aix*)
51950cat >>confdefs.h <<\_ACEOF
51951#define AIX 1
51952_ACEOF
51953
51954			BLDSHARED="true"
51955			# use expfull to export underscored symbols
51956			# add rtl to remove /lib/crt0.o warning
51957			LDSHFLAGS="-Wl,-G,-bexpfull,-bbigtoc,-brtl"
51958			DYNEXP="-Wl,-brtl,-bexpfull,-bbigtoc"
51959			PICFLAG="-O2"
51960			# as AIX code is always position independent...
51961			# .po will just create compile warnings, use po.o:
51962			if test "${GCC}" != "yes"; then
51963				## for funky AIX compiler using strncpy()
51964				CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000 -qhalt=e"
51965			fi
51966
51967
51968cat >>confdefs.h <<\_ACEOF
51969#define STAT_ST_BLOCKSIZE DEV_BSIZE
51970_ACEOF
51971
51972
51973cat >>confdefs.h <<\_ACEOF
51974#define BROKEN_STRNLEN 1
51975_ACEOF
51976
51977
51978cat >>confdefs.h <<\_ACEOF
51979#define BROKEN_STRNDUP 1
51980_ACEOF
51981
51982			;;
51983		*hpux*)
51984cat >>confdefs.h <<\_ACEOF
51985#define HPUX 1
51986_ACEOF
51987
51988			# Use special PIC flags for the native HP-UX compiler.
51989				BLDSHARED="true"
51990				SHLD="cc"
51991				LDSHFLAGS="-b -Wl,-B,symbolic,-b,-z"
51992				SONAMEFLAG="-Wl,+h "
51993				PICFLAG="+z"
51994			if test "${GCC}" = "yes"; then
51995				PICFLAG="-fPIC"
51996			else
51997				PICFLAG="+z +ESnolit"
51998			fi
51999			if test "$host_cpu" = "ia64"; then
52000				SHLIBEXT="so"
52001			      PICFLAG="+z"
52002				DYNEXP="-Wl,-E,+b/usr/local/lib/hpux32:/usr/lib/hpux32"
52003			else
52004				SHLIBEXT="sl"
52005				DYNEXP="-Wl,-E,+b/usr/local/lib:/usr/lib"
52006			fi
52007
52008cat >>confdefs.h <<\_ACEOF
52009#define STAT_ST_BLOCKSIZE 8192
52010_ACEOF
52011
52012
52013cat >>confdefs.h <<\_ACEOF
52014#define POSIX_ACL_NEEDS_MASK 1
52015_ACEOF
52016
52017			;;
52018		*osf*)
52019cat >>confdefs.h <<\_ACEOF
52020#define OSF1 1
52021_ACEOF
52022
52023			BLDSHARED="true"
52024			LDSHFLAGS="-shared"
52025			SONAMEFLAG="-Wl,-soname,"
52026			if test "${GCC}" = "yes"; then
52027				PICFLAG="-fPIC"
52028			fi
52029			cat >>confdefs.h <<\_ACEOF
52030#define STAT_ST_BLOCKSIZE 512
52031_ACEOF
52032
52033
52034cat >>confdefs.h <<\_ACEOF
52035#define BROKEN_GETGRNAM 1
52036_ACEOF
52037
52038			;;
52039		*sco*)
52040cat >>confdefs.h <<\_ACEOF
52041#define SCO 1
52042_ACEOF
52043
52044			cat >>confdefs.h <<\_ACEOF
52045#define STAT_ST_BLOCKSIZE 512
52046_ACEOF
52047
52048			;;
52049		*unixware*)
52050cat >>confdefs.h <<\_ACEOF
52051#define UNIXWARE 1
52052_ACEOF
52053
52054			BLDSHARED="true"
52055			LDSHFLAGS="-shared"
52056			SONAMEFLAG="-Wl,-soname,"
52057			PICFLAG="-KPIC"
52058			cat >>confdefs.h <<\_ACEOF
52059#define STAT_ST_BLOCKSIZE 512
52060_ACEOF
52061
52062			;;
52063		*next2*)
52064cat >>confdefs.h <<\_ACEOF
52065#define NEXT2 1
52066_ACEOF
52067
52068			cat >>confdefs.h <<\_ACEOF
52069#define STAT_ST_BLOCKSIZE 512
52070_ACEOF
52071
52072			;;
52073		*dgux*) # Extract the first word of "groff", so it can be a program name with args.
52074set dummy groff; ac_word=$2
52075{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
52076$as_echo_n "checking for $ac_word... " >&6; }
52077if test "${ac_cv_prog_ROFF+set}" = set; then
52078  $as_echo_n "(cached) " >&6
52079else
52080  if test -n "$ROFF"; then
52081  ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
52082else
52083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52084for as_dir in $PATH
52085do
52086  IFS=$as_save_IFS
52087  test -z "$as_dir" && as_dir=.
52088  for ac_exec_ext in '' $ac_executable_extensions; do
52089  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52090    ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
52091    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52092    break 2
52093  fi
52094done
52095done
52096IFS=$as_save_IFS
52097
52098fi
52099fi
52100ROFF=$ac_cv_prog_ROFF
52101if test -n "$ROFF"; then
52102  { $as_echo "$as_me:$LINENO: result: $ROFF" >&5
52103$as_echo "$ROFF" >&6; }
52104else
52105  { $as_echo "$as_me:$LINENO: result: no" >&5
52106$as_echo "no" >&6; }
52107fi
52108
52109
52110			cat >>confdefs.h <<\_ACEOF
52111#define STAT_ST_BLOCKSIZE 512
52112_ACEOF
52113
52114			;;
52115		*sysv4*)
52116cat >>confdefs.h <<\_ACEOF
52117#define SYSV 1
52118_ACEOF
52119
52120			case "$host" in
52121				*-univel-*)     if  test "$GCC" != yes ; then
52122
52123cat >>confdefs.h <<\_ACEOF
52124#define HAVE_MEMSET 1
52125_ACEOF
52126
52127					fi
52128					LDSHFLAGS="-G"
52129                             		DYNEXP="-Bexport"
52130				;;
52131				*mips-sni-sysv4*)
52132cat >>confdefs.h <<\_ACEOF
52133#define RELIANTUNIX 1
52134_ACEOF
52135;;
52136			esac
52137			cat >>confdefs.h <<\_ACEOF
52138#define STAT_ST_BLOCKSIZE 512
52139_ACEOF
52140
52141			;;
52142
52143		*sysv5*)
52144cat >>confdefs.h <<\_ACEOF
52145#define SYSV 1
52146_ACEOF
52147
52148			if  test "$GCC" != yes ; then
52149
52150cat >>confdefs.h <<\_ACEOF
52151#define HAVE_MEMSET 1
52152_ACEOF
52153
52154			fi
52155			LDSHFLAGS="-G"
52156			cat >>confdefs.h <<\_ACEOF
52157#define STAT_ST_BLOCKSIZE 512
52158_ACEOF
52159
52160			;;
52161		*vos*) cat >>confdefs.h <<\_ACEOF
52162#define STAT_ST_BLOCKSIZE 4096
52163_ACEOF
52164
52165			BLDSHARED="false"
52166			LDSHFLAGS=""
52167			;;
52168
52169		*darwin*)
52170cat >>confdefs.h <<\_ACEOF
52171#define DARWINOS 1
52172_ACEOF
52173
52174			BLDSHARED="true"
52175			LDSHFLAGS="-dynamiclib -flat_namespace -undefined suppress"
52176			CFLAGS="$CFLAGS -fno-common"
52177			SHLD="\${CC}"
52178			SHLIBEXT="dylib"
52179                        MODULE_EXPORTS="-exported_symbols_list \$(srcdir)/exports/modules-darwin.syms"
52180                        SHLIBEXT="dylib"
52181                        # Since gcc doesn't fail on unrecognised options, the
52182                        # PIE test incorrectly succeeds. Darwin gcc does not
52183                        # actually support the PIE stuff.
52184                        PIE_LDFLAGS=
52185                        PIE_CFLAGS=
52186			cat >>confdefs.h <<\_ACEOF
52187#define STAT_ST_BLOCKSIZE 512
52188_ACEOF
52189
52190			;;
52191
52192		*)
52193			cat >>confdefs.h <<\_ACEOF
52194#define STAT_ST_BLOCKSIZE 512
52195_ACEOF
52196
52197			;;
52198  esac
52199
52200if test "$enable_shared" != "yes"; then
52201	BLDSHARED=false
52202fi
52203
52204if test "$enable_shared" = yes -a "${ac_cv_gnu_ld_version_script}" = yes; then
52205	DSO_EXPORTS=\$\(DSO_EXPORTS_CMD\)
52206fi
52207
52208if test x"$BLDSHARED" = x"true" ; then
52209	LDFLAGS="$LDFLAGS -L./bin"
52210fi
52211
52212{ $as_echo "$as_me:$LINENO: result: $BLDSHARED" >&5
52213$as_echo "$BLDSHARED" >&6; }
52214
52215saved_before_as_needed_ldflags="$LDFLAGS"
52216for flags in "-Wl,--as-needed" "-Wl,-z,ignore" "-z ignore" ; do
52217	saved_ldflags="$LDFLAGS"
52218	{ $as_echo "$as_me:$LINENO: checking if $flags works" >&5
52219$as_echo_n "checking if $flags works... " >&6; }
52220	LDFLAGS="$flags $saved_ldflags"
52221	cat >conftest.$ac_ext <<_ACEOF
52222/* confdefs.h.  */
52223_ACEOF
52224cat confdefs.h >>conftest.$ac_ext
52225cat >>conftest.$ac_ext <<_ACEOF
52226/* end confdefs.h.  */
52227
52228int
52229main ()
52230{
52231
52232  ;
52233  return 0;
52234}
52235_ACEOF
52236rm -f conftest.$ac_objext conftest$ac_exeext
52237if { (ac_try="$ac_link"
52238case "(($ac_try" in
52239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52240  *) ac_try_echo=$ac_try;;
52241esac
52242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52243$as_echo "$ac_try_echo") >&5
52244  (eval "$ac_link") 2>conftest.er1
52245  ac_status=$?
52246  grep -v '^ *+' conftest.er1 >conftest.err
52247  rm -f conftest.er1
52248  cat conftest.err >&5
52249  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52250  (exit $ac_status); } && {
52251	 test -z "$ac_c_werror_flag" ||
52252	 test ! -s conftest.err
52253       } && test -s conftest$ac_exeext && {
52254	 test "$cross_compiling" = yes ||
52255	 $as_test_x conftest$ac_exeext
52256       }; then
52257  { $as_echo "$as_me:$LINENO: result: yes" >&5
52258$as_echo "yes" >&6; }
52259		LD_AS_NEEDED_FLAG=$flags
52260		ld_as_needed_flag_found=yes
52261else
52262  $as_echo "$as_me: failed program was:" >&5
52263sed 's/^/| /' conftest.$ac_ext >&5
52264
52265	{ $as_echo "$as_me:$LINENO: result: no" >&5
52266$as_echo "no" >&6; }
52267fi
52268
52269rm -rf conftest.dSYM
52270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52271      conftest$ac_exeext conftest.$ac_ext
52272	LDFLAGS="$LD_AS_NEEDED_FLAG $saved_ldflags"
52273	test x"$ld_as_needed_flag_found" = xyes && break
52274done
52275
52276# check if we have to disable LD_AS_NEEDED_FLAG:
52277# On some systems for a veriety of reasons linking with
52278# -Wl,--as-needed -lreadline -lncurses fails
52279# we have to retest, if these combination is detected before.
52280# Bugzilla #7209
52281
52282if test x$ac_cv_lib_readline_rl_callback_handler_install = xyes ; then
52283	if test x$ld_as_needed_flag_found = xyes ; then
52284		{ $as_echo "$as_me:$LINENO: checking if $LD_AS_NEEDED_FLAG works with readline" >&5
52285$as_echo_n "checking if $LD_AS_NEEDED_FLAG works with readline... " >&6; }
52286		# try if check no fails
52287		save_LIBS=$LIBS
52288		LIBS="$LIBS $TERMLIBS"
52289		cat >conftest.$ac_ext <<_ACEOF
52290/* confdefs.h.  */
52291_ACEOF
52292cat confdefs.h >>conftest.$ac_ext
52293cat >>conftest.$ac_ext <<_ACEOF
52294/* end confdefs.h.  */
52295
52296int
52297main ()
52298{
52299rl_callback_handler_install();
52300  ;
52301  return 0;
52302}
52303_ACEOF
52304rm -f conftest.$ac_objext conftest$ac_exeext
52305if { (ac_try="$ac_link"
52306case "(($ac_try" in
52307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52308  *) ac_try_echo=$ac_try;;
52309esac
52310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52311$as_echo "$ac_try_echo") >&5
52312  (eval "$ac_link") 2>conftest.er1
52313  ac_status=$?
52314  grep -v '^ *+' conftest.er1 >conftest.err
52315  rm -f conftest.er1
52316  cat conftest.err >&5
52317  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52318  (exit $ac_status); } && {
52319	 test -z "$ac_c_werror_flag" ||
52320	 test ! -s conftest.err
52321       } && test -s conftest$ac_exeext && {
52322	 test "$cross_compiling" = yes ||
52323	 $as_test_x conftest$ac_exeext
52324       }; then
52325  { $as_echo "$as_me:$LINENO: result: yes" >&5
52326$as_echo "yes" >&6; }
52327else
52328  $as_echo "$as_me: failed program was:" >&5
52329sed 's/^/| /' conftest.$ac_ext >&5
52330
52331	 { $as_echo "$as_me:$LINENO: result: no" >&5
52332$as_echo "no" >&6; }; LDFLAGS="$saved_before_as_needed_ldflags"
52333fi
52334
52335rm -rf conftest.dSYM
52336rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52337      conftest$ac_exeext conftest.$ac_ext
52338		LIBS="$save_LIBS"
52339        fi
52340fi
52341
52342
52343
52344# for historical reasons almost all linkers don't complain about unresolved
52345# symbols in shared libs. Except for the internal samba modules we want to get
52346# errors when we produce a shared lib with unresolved symbols. On some
52347# platforms unresolved symbols might be intended, so we might have to add
52348# platform specific exceptions here.
52349
52350for flags in "-Wl,-z,defs" "-error_unresolved" "-Wl,-error_unresolved" ; do
52351	saved_ldflags="$LDFLAGS"
52352	{ $as_echo "$as_me:$LINENO: checking if $flags works" >&5
52353$as_echo_n "checking if $flags works... " >&6; }
52354	LDFLAGS="$flags $saved_ldflags"
52355	cat >conftest.$ac_ext <<_ACEOF
52356/* confdefs.h.  */
52357_ACEOF
52358cat confdefs.h >>conftest.$ac_ext
52359cat >>conftest.$ac_ext <<_ACEOF
52360/* end confdefs.h.  */
52361
52362int
52363main ()
52364{
52365
52366  ;
52367  return 0;
52368}
52369_ACEOF
52370rm -f conftest.$ac_objext conftest$ac_exeext
52371if { (ac_try="$ac_link"
52372case "(($ac_try" in
52373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52374  *) ac_try_echo=$ac_try;;
52375esac
52376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52377$as_echo "$ac_try_echo") >&5
52378  (eval "$ac_link") 2>conftest.er1
52379  ac_status=$?
52380  grep -v '^ *+' conftest.er1 >conftest.err
52381  rm -f conftest.er1
52382  cat conftest.err >&5
52383  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52384  (exit $ac_status); } && {
52385	 test -z "$ac_c_werror_flag" ||
52386	 test ! -s conftest.err
52387       } && test -s conftest$ac_exeext && {
52388	 test "$cross_compiling" = yes ||
52389	 $as_test_x conftest$ac_exeext
52390       }; then
52391  { $as_echo "$as_me:$LINENO: result: yes" >&5
52392$as_echo "yes" >&6; }
52393	LDSHFLAGS_Z_DEFS=$flags
52394	ldshflags_z_defs_found=yes
52395else
52396  $as_echo "$as_me: failed program was:" >&5
52397sed 's/^/| /' conftest.$ac_ext >&5
52398
52399	{ $as_echo "$as_me:$LINENO: result: no" >&5
52400$as_echo "no" >&6; }
52401fi
52402
52403rm -rf conftest.dSYM
52404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52405      conftest$ac_exeext conftest.$ac_ext
52406	LDFLAGS=$saved_ldflags
52407	test x"$ldshflags_z_defs_found" = xyes && break
52408done
52409
52410{ $as_echo "$as_me:$LINENO: checking LDSHFLAGS_Z_DEFS" >&5
52411$as_echo_n "checking LDSHFLAGS_Z_DEFS... " >&6; }
52412{ $as_echo "$as_me:$LINENO: result: $LDSHFLAGS_Z_DEFS" >&5
52413$as_echo "$LDSHFLAGS_Z_DEFS" >&6; }
52414{ $as_echo "$as_me:$LINENO: checking LDFLAGS" >&5
52415$as_echo_n "checking LDFLAGS... " >&6; }
52416{ $as_echo "$as_me:$LINENO: result: $LDFLAGS" >&5
52417$as_echo "$LDFLAGS" >&6; }
52418{ $as_echo "$as_me:$LINENO: checking DYNEXP" >&5
52419$as_echo_n "checking DYNEXP... " >&6; }
52420{ $as_echo "$as_me:$LINENO: result: $DYNEXP" >&5
52421$as_echo "$DYNEXP" >&6; }
52422
52423#######################################################
52424# test whether building a shared library actually works
52425if test $BLDSHARED = true; then
52426
52427{ $as_echo "$as_me:$LINENO: checking SHLD" >&5
52428$as_echo_n "checking SHLD... " >&6; }
52429{ $as_echo "$as_me:$LINENO: result: $SHLD" >&5
52430$as_echo "$SHLD" >&6; }
52431{ $as_echo "$as_me:$LINENO: checking LDSHFLAGS" >&5
52432$as_echo_n "checking LDSHFLAGS... " >&6; }
52433{ $as_echo "$as_me:$LINENO: result: $LDSHFLAGS" >&5
52434$as_echo "$LDSHFLAGS" >&6; }
52435
52436{ $as_echo "$as_me:$LINENO: checking SHLIBEXT" >&5
52437$as_echo_n "checking SHLIBEXT... " >&6; }
52438{ $as_echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
52439$as_echo "$SHLIBEXT" >&6; }
52440{ $as_echo "$as_me:$LINENO: checking SONAMEFLAG" >&5
52441$as_echo_n "checking SONAMEFLAG... " >&6; }
52442{ $as_echo "$as_me:$LINENO: result: $SONAMEFLAG" >&5
52443$as_echo "$SONAMEFLAG" >&6; }
52444
52445{ $as_echo "$as_me:$LINENO: checking PICFLAG" >&5
52446$as_echo_n "checking PICFLAG... " >&6; }
52447{ $as_echo "$as_me:$LINENO: result: $PICFLAG" >&5
52448$as_echo "$PICFLAG" >&6; }
52449
52450{ $as_echo "$as_me:$LINENO: checking NSSSONAMEVERSIONSUFFIX" >&5
52451$as_echo_n "checking NSSSONAMEVERSIONSUFFIX... " >&6; }
52452{ $as_echo "$as_me:$LINENO: result: $NSSSONAMEVERSIONSUFFIX" >&5
52453$as_echo "$NSSSONAMEVERSIONSUFFIX" >&6; }
52454
52455{ $as_echo "$as_me:$LINENO: checking whether building shared libraries actually works" >&5
52456$as_echo_n "checking whether building shared libraries actually works... " >&6; }
52457if test "${ac_cv_shlib_works+set}" = set; then
52458  $as_echo_n "(cached) " >&6
52459else
52460
52461   # try building a trivial shared library
52462   ac_cv_shlib_works=no
52463   # The $SHLD and $LDSHFLAGS variables may contain references to other
52464   # variables so they need to be eval'ed.
52465   if { ac_try='$CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.o ${srcdir-.}/../tests/shlib.c 1>&5'
52466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52467  (eval $ac_try) 2>&5
52468  ac_status=$?
52469  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52470  (exit $ac_status); }; }
52471   then
52472     if { ac_try='`eval echo "$SHLD $LDSHFLAGS $PICFLAG"` -o "shlib.$SHLIBEXT" shlib.o 1>&5'
52473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52474  (eval $ac_try) 2>&5
52475  ac_status=$?
52476  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52477  (exit $ac_status); }; }
52478     then
52479       ac_cv_shlib_works=yes
52480     fi
52481   fi
52482   rm -f "shlib.$SHLIBEXT" shlib.o
52483
52484
52485fi
52486{ $as_echo "$as_me:$LINENO: result: $ac_cv_shlib_works" >&5
52487$as_echo "$ac_cv_shlib_works" >&6; }
52488if test $ac_cv_shlib_works = no; then
52489   BLDSHARED=false
52490fi
52491fi
52492
52493if test x"$BLDSHARED" != x"true"; then
52494	LDSHFLAGS="shared-libraries-disabled"
52495	SONAMEFLAG="shared-libraries-disabled"
52496	NSSSONAMEVERSIONSUFFIX="shared-libraries-disabled"
52497	SHLD="shared-libraries-disabled"
52498	PICFLAG="${PIE_CFLAGS}"
52499	SHLIBEXT="shared_libraries_disabled"
52500	merged_build_possible=no
52501fi
52502
52503{ $as_echo "$as_me:$LINENO: checking used PICFLAG" >&5
52504$as_echo_n "checking used PICFLAG... " >&6; }
52505{ $as_echo "$as_me:$LINENO: result: $PICFLAG" >&5
52506$as_echo "$PICFLAG" >&6; }
52507
52508
52509cat >>confdefs.h <<_ACEOF
52510#define SHLIBEXT "$SHLIBEXT"
52511_ACEOF
52512
52513
52514
52515	case "$host_os" in
52516		*linux*|*gnu*)
52517			LIB_PATH_VAR=LD_LIBRARY_PATH
52518		;;
52519		*bsd*)
52520			LIB_PATH_VAR=LD_LIBRARY_PATH
52521		;;
52522		*solaris*)
52523			LIB_PATH_VAR=LD_LIBRARY_PATH
52524		;;
52525		*hpux*)
52526			LIB_PATH_VAR=SHLIB_PATH
52527		;;
52528		*osf*)
52529			LIB_PATH_VAR=LD_LIBRARY_PATH
52530		;;
52531		*aix*)
52532			LIB_PATH_VAR=LIBPATH
52533			;;
52534		*irix*)
52535			LIB_PATH_VAR=LD_LIBRARY_PATH
52536			;;
52537		*darwin*)
52538			LIB_PATH_VAR=DYLD_LIBRARY_PATH
52539			;;
52540		*)
52541			LIB_PATH_VAR=LD_LIBRARY_PATH
52542			;;
52543	esac
52544
52545
52546
52547
52548
52549###########################################################
52550#
52551# Configuration of subsystem / libraries
52552#
52553###########################################################
52554
52555INSTALLLIBCMD_SH=:
52556INSTALLLIBCMD_A=:
52557UNINSTALLLIBCMD_SH=:
52558UNINSTALLLIBCMD_A=:
52559
52560if test $BLDSHARED = true; then
52561	INSTALLLIBCMD_SH="\$(INSTALLCMD)"
52562	UNINSTALLLIBCMD_SH="rm -f"
52563fi
52564if test $enable_static = yes; then
52565	INSTALLLIBCMD_A="\$(INSTALLCMD)"
52566	UNINSTALLLIBCMD_A="rm -f"
52567fi
52568
52569#################################################
52570# --disable-shared-libs
52571# can be used to disable the internal use of shared libs altogether
52572# (this only has an effect when building shared libs is enabled)
52573#
52574USESHARED=false
52575
52576
52577{ $as_echo "$as_me:$LINENO: checking whether to use shared libraries internally" >&5
52578$as_echo_n "checking whether to use shared libraries internally... " >&6; }
52579# Check whether --enable-shared-libs was given.
52580if test "${enable_shared_libs+set}" = set; then
52581  enableval=$enable_shared_libs; enable_shared_libs=$enableval
52582else
52583  enable_shared_libs=yes
52584fi
52585
52586
52587if test x"$enable_shared_libs" != x"no" ; then
52588	USESHARED=$BLDSHARED
52589fi
52590
52591{ $as_echo "$as_me:$LINENO: result: $USESHARED" >&5
52592$as_echo "$USESHARED" >&6; }
52593
52594if test x"$enable_shared_libs" = x"yes" -a x"$BLDSHARED" != x"true" ; then
52595	{ $as_echo "$as_me:$LINENO: WARNING: --enable-shared-libs: no support for shared libraries" >&5
52596$as_echo "$as_me: WARNING: --enable-shared-libs: no support for shared libraries" >&2;}
52597fi
52598
52599#################################################
52600# --with-static-libs=LIBS:
52601#   link (internal) libs dynamically or statically?
52602#
52603# If a subsystem is built as a library then this controls whether they are
52604# linked into Samba targets statically or dynamically:
52605#
52606# * If we build the shared library at all, we link dynamically by default.
52607#
52608# * We only link statically if we don't build shared or if the library
52609#   appears in the --with-static-libs configure option.
52610#
52611# Example:
52612#   --with-static-libs=libtalloc makes use of libtalloc.a instead
52613#   of linking the dynamic variant with -ltalloc.
52614#
52615# NOTE: This option only affects libraries that we do not only build
52616# but that samba also links against as libraries (as opposed to linking
52617# the plain object files. - This has to be configured in Makefile.in.
52618# So in particular it does not harm to give invalid or unknown names here.
52619#
52620
52621
52622# Check whether --with-static-libs was given.
52623if test "${with_static_libs+set}" = set; then
52624  withval=$with_static_libs; if test $withval; then
52625  for lib in `echo $withval | sed -e 's/,/ /g'` ; do
52626			lib=`echo $lib | tr '[a-z]' '[A-Z]'`
52627			eval LINK_$lib=STATIC
52628		done
52629fi
52630
52631fi
52632
52633
52634#
52635# WORKAROUND:
52636#   until we have organized other internal subsystems (as util, registry
52637#   and smbconf) into shared libraries, we CAN NOT link libnetapi
52638#   dynamically to samba programs.
52639#
52640LINK_LIBNETAPI=STATIC
52641
52642LINK_LIBSMBCLIENT=STATIC
52643
52644#
52645#  The library versions are hardcoded here
52646#  and filled into the LIBFOO_SOVER variable.
52647#
52648#  TODO: for talloc and tdb (at least), these should
52649#  be extracted from their respective source directories
52650#
52651# Check whether --enable-external_libtalloc was given.
52652if test "${enable_external_libtalloc+set}" = set; then
52653  enableval=$enable_external_libtalloc;  enable_external_libtalloc=$enableval
52654else
52655   enable_external_libtalloc=auto
52656fi
52657
52658
52659if test "x$enable_external_libtalloc" != xno
52660then
52661
52662
52663if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
52664	if test -n "$ac_tool_prefix"; then
52665  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
52666set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
52667{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
52668$as_echo_n "checking for $ac_word... " >&6; }
52669if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
52670  $as_echo_n "(cached) " >&6
52671else
52672  case $PKG_CONFIG in
52673  [\\/]* | ?:[\\/]*)
52674  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
52675  ;;
52676  *)
52677  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52678for as_dir in $PATH
52679do
52680  IFS=$as_save_IFS
52681  test -z "$as_dir" && as_dir=.
52682  for ac_exec_ext in '' $ac_executable_extensions; do
52683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52684    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
52685    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52686    break 2
52687  fi
52688done
52689done
52690IFS=$as_save_IFS
52691
52692  ;;
52693esac
52694fi
52695PKG_CONFIG=$ac_cv_path_PKG_CONFIG
52696if test -n "$PKG_CONFIG"; then
52697  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
52698$as_echo "$PKG_CONFIG" >&6; }
52699else
52700  { $as_echo "$as_me:$LINENO: result: no" >&5
52701$as_echo "no" >&6; }
52702fi
52703
52704
52705fi
52706if test -z "$ac_cv_path_PKG_CONFIG"; then
52707  ac_pt_PKG_CONFIG=$PKG_CONFIG
52708  # Extract the first word of "pkg-config", so it can be a program name with args.
52709set dummy pkg-config; ac_word=$2
52710{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
52711$as_echo_n "checking for $ac_word... " >&6; }
52712if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
52713  $as_echo_n "(cached) " >&6
52714else
52715  case $ac_pt_PKG_CONFIG in
52716  [\\/]* | ?:[\\/]*)
52717  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
52718  ;;
52719  *)
52720  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52721for as_dir in $PATH
52722do
52723  IFS=$as_save_IFS
52724  test -z "$as_dir" && as_dir=.
52725  for ac_exec_ext in '' $ac_executable_extensions; do
52726  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52727    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
52728    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52729    break 2
52730  fi
52731done
52732done
52733IFS=$as_save_IFS
52734
52735  ;;
52736esac
52737fi
52738ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
52739if test -n "$ac_pt_PKG_CONFIG"; then
52740  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
52741$as_echo "$ac_pt_PKG_CONFIG" >&6; }
52742else
52743  { $as_echo "$as_me:$LINENO: result: no" >&5
52744$as_echo "no" >&6; }
52745fi
52746
52747  if test "x$ac_pt_PKG_CONFIG" = x; then
52748    PKG_CONFIG=""
52749  else
52750    case $cross_compiling:$ac_tool_warned in
52751yes:)
52752{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
52753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
52754ac_tool_warned=yes ;;
52755esac
52756    PKG_CONFIG=$ac_pt_PKG_CONFIG
52757  fi
52758else
52759  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
52760fi
52761
52762fi
52763if test -n "$PKG_CONFIG"; then
52764	_pkg_min_version=0.9.0
52765	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
52766$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
52767	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
52768		{ $as_echo "$as_me:$LINENO: result: yes" >&5
52769$as_echo "yes" >&6; }
52770	else
52771		{ $as_echo "$as_me:$LINENO: result: no" >&5
52772$as_echo "no" >&6; }
52773		PKG_CONFIG=""
52774	fi
52775
52776fi
52777
52778pkg_failed=no
52779{ $as_echo "$as_me:$LINENO: checking for LIBTALLOC" >&5
52780$as_echo_n "checking for LIBTALLOC... " >&6; }
52781
52782if test -n "$PKG_CONFIG"; then
52783    if test -n "$LIBTALLOC_CFLAGS"; then
52784        pkg_cv_LIBTALLOC_CFLAGS="$LIBTALLOC_CFLAGS"
52785    else
52786        if test -n "$PKG_CONFIG" && \
52787    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"talloc >= 2.0.1\"") >&5
52788  ($PKG_CONFIG --exists --print-errors "talloc >= 2.0.1") 2>&5
52789  ac_status=$?
52790  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52791  (exit $ac_status); }; then
52792  pkg_cv_LIBTALLOC_CFLAGS=`$PKG_CONFIG --cflags "talloc >= 2.0.1" 2>/dev/null`
52793else
52794  pkg_failed=yes
52795fi
52796    fi
52797else
52798	pkg_failed=untried
52799fi
52800if test -n "$PKG_CONFIG"; then
52801    if test -n "$LIBTALLOC_LIBS"; then
52802        pkg_cv_LIBTALLOC_LIBS="$LIBTALLOC_LIBS"
52803    else
52804        if test -n "$PKG_CONFIG" && \
52805    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"talloc >= 2.0.1\"") >&5
52806  ($PKG_CONFIG --exists --print-errors "talloc >= 2.0.1") 2>&5
52807  ac_status=$?
52808  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52809  (exit $ac_status); }; then
52810  pkg_cv_LIBTALLOC_LIBS=`$PKG_CONFIG --libs "talloc >= 2.0.1" 2>/dev/null`
52811else
52812  pkg_failed=yes
52813fi
52814    fi
52815else
52816	pkg_failed=untried
52817fi
52818
52819
52820
52821if test $pkg_failed = yes; then
52822
52823if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52824        _pkg_short_errors_supported=yes
52825else
52826        _pkg_short_errors_supported=no
52827fi
52828        if test $_pkg_short_errors_supported = yes; then
52829	        LIBTALLOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "talloc >= 2.0.1"`
52830        else
52831	        LIBTALLOC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "talloc >= 2.0.1"`
52832        fi
52833	# Put the nasty error message in config.log where it belongs
52834	echo "$LIBTALLOC_PKG_ERRORS" >&5
52835
52836	{ $as_echo "$as_me:$LINENO: result: no" >&5
52837$as_echo "no" >&6; }
52838                if test x$enable_external_libtalloc = xyes; then
52839			{ { $as_echo "$as_me:$LINENO: error: Unable to find libtalloc" >&5
52840$as_echo "$as_me: error: Unable to find libtalloc" >&2;}
52841   { (exit 1); exit 1; }; }
52842		  else
52843			enable_external_libtalloc=no
52844		  fi
52845
52846elif test $pkg_failed = untried; then
52847	if test x$enable_external_libtalloc = xyes; then
52848			{ { $as_echo "$as_me:$LINENO: error: Unable to find libtalloc" >&5
52849$as_echo "$as_me: error: Unable to find libtalloc" >&2;}
52850   { (exit 1); exit 1; }; }
52851		  else
52852			enable_external_libtalloc=no
52853		  fi
52854
52855else
52856	LIBTALLOC_CFLAGS=$pkg_cv_LIBTALLOC_CFLAGS
52857	LIBTALLOC_LIBS=$pkg_cv_LIBTALLOC_LIBS
52858        { $as_echo "$as_me:$LINENO: result: yes" >&5
52859$as_echo "yes" >&6; }
52860	 enable_external_libtalloc=yes
52861fi
52862fi
52863
52864if test "x$enable_external_libtalloc" = xno
52865then
52866	tallocdir=""
52867tallocpaths=". lib/talloc talloc ../talloc ../lib/talloc"
52868for d in $tallocpaths; do
52869	if test -f "$srcdir/$d/talloc.c"; then
52870		tallocdir="$d"
52871
52872		break;
52873	fi
52874done
52875if test x"$tallocdir" = "x"; then
52876   { { $as_echo "$as_me:$LINENO: error: cannot find talloc source in $tallocpaths" >&5
52877$as_echo "$as_me: error: cannot find talloc source in $tallocpaths" >&2;}
52878   { (exit 1); exit 1; }; }
52879fi
52880TALLOC_OBJ="talloc.o"
52881
52882
52883TALLOC_CFLAGS="-I$srcdir/$tallocdir"
52884
52885
52886TALLOC_LIBS=""
52887
52888
52889# The cast to long int works around a bug in the HP C Compiler
52890# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52891# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52892# This bug is HP SR number 8606223364.
52893{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
52894$as_echo_n "checking size of size_t... " >&6; }
52895if test "${ac_cv_sizeof_size_t+set}" = set; then
52896  $as_echo_n "(cached) " >&6
52897else
52898  if test "$cross_compiling" = yes; then
52899  # Depending upon the size, compute the lo and hi bounds.
52900cat >conftest.$ac_ext <<_ACEOF
52901/* confdefs.h.  */
52902_ACEOF
52903cat confdefs.h >>conftest.$ac_ext
52904cat >>conftest.$ac_ext <<_ACEOF
52905/* end confdefs.h.  */
52906$ac_includes_default
52907int
52908main ()
52909{
52910static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
52911test_array [0] = 0
52912
52913  ;
52914  return 0;
52915}
52916_ACEOF
52917rm -f conftest.$ac_objext
52918if { (ac_try="$ac_compile"
52919case "(($ac_try" in
52920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52921  *) ac_try_echo=$ac_try;;
52922esac
52923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52924$as_echo "$ac_try_echo") >&5
52925  (eval "$ac_compile") 2>conftest.er1
52926  ac_status=$?
52927  grep -v '^ *+' conftest.er1 >conftest.err
52928  rm -f conftest.er1
52929  cat conftest.err >&5
52930  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52931  (exit $ac_status); } && {
52932	 test -z "$ac_c_werror_flag" ||
52933	 test ! -s conftest.err
52934       } && test -s conftest.$ac_objext; then
52935  ac_lo=0 ac_mid=0
52936  while :; do
52937    cat >conftest.$ac_ext <<_ACEOF
52938/* confdefs.h.  */
52939_ACEOF
52940cat confdefs.h >>conftest.$ac_ext
52941cat >>conftest.$ac_ext <<_ACEOF
52942/* end confdefs.h.  */
52943$ac_includes_default
52944int
52945main ()
52946{
52947static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
52948test_array [0] = 0
52949
52950  ;
52951  return 0;
52952}
52953_ACEOF
52954rm -f conftest.$ac_objext
52955if { (ac_try="$ac_compile"
52956case "(($ac_try" in
52957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52958  *) ac_try_echo=$ac_try;;
52959esac
52960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52961$as_echo "$ac_try_echo") >&5
52962  (eval "$ac_compile") 2>conftest.er1
52963  ac_status=$?
52964  grep -v '^ *+' conftest.er1 >conftest.err
52965  rm -f conftest.er1
52966  cat conftest.err >&5
52967  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52968  (exit $ac_status); } && {
52969	 test -z "$ac_c_werror_flag" ||
52970	 test ! -s conftest.err
52971       } && test -s conftest.$ac_objext; then
52972  ac_hi=$ac_mid; break
52973else
52974  $as_echo "$as_me: failed program was:" >&5
52975sed 's/^/| /' conftest.$ac_ext >&5
52976
52977	ac_lo=`expr $ac_mid + 1`
52978			if test $ac_lo -le $ac_mid; then
52979			  ac_lo= ac_hi=
52980			  break
52981			fi
52982			ac_mid=`expr 2 '*' $ac_mid + 1`
52983fi
52984
52985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52986  done
52987else
52988  $as_echo "$as_me: failed program was:" >&5
52989sed 's/^/| /' conftest.$ac_ext >&5
52990
52991	cat >conftest.$ac_ext <<_ACEOF
52992/* confdefs.h.  */
52993_ACEOF
52994cat confdefs.h >>conftest.$ac_ext
52995cat >>conftest.$ac_ext <<_ACEOF
52996/* end confdefs.h.  */
52997$ac_includes_default
52998int
52999main ()
53000{
53001static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
53002test_array [0] = 0
53003
53004  ;
53005  return 0;
53006}
53007_ACEOF
53008rm -f conftest.$ac_objext
53009if { (ac_try="$ac_compile"
53010case "(($ac_try" in
53011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53012  *) ac_try_echo=$ac_try;;
53013esac
53014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53015$as_echo "$ac_try_echo") >&5
53016  (eval "$ac_compile") 2>conftest.er1
53017  ac_status=$?
53018  grep -v '^ *+' conftest.er1 >conftest.err
53019  rm -f conftest.er1
53020  cat conftest.err >&5
53021  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53022  (exit $ac_status); } && {
53023	 test -z "$ac_c_werror_flag" ||
53024	 test ! -s conftest.err
53025       } && test -s conftest.$ac_objext; then
53026  ac_hi=-1 ac_mid=-1
53027  while :; do
53028    cat >conftest.$ac_ext <<_ACEOF
53029/* confdefs.h.  */
53030_ACEOF
53031cat confdefs.h >>conftest.$ac_ext
53032cat >>conftest.$ac_ext <<_ACEOF
53033/* end confdefs.h.  */
53034$ac_includes_default
53035int
53036main ()
53037{
53038static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
53039test_array [0] = 0
53040
53041  ;
53042  return 0;
53043}
53044_ACEOF
53045rm -f conftest.$ac_objext
53046if { (ac_try="$ac_compile"
53047case "(($ac_try" in
53048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53049  *) ac_try_echo=$ac_try;;
53050esac
53051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53052$as_echo "$ac_try_echo") >&5
53053  (eval "$ac_compile") 2>conftest.er1
53054  ac_status=$?
53055  grep -v '^ *+' conftest.er1 >conftest.err
53056  rm -f conftest.er1
53057  cat conftest.err >&5
53058  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53059  (exit $ac_status); } && {
53060	 test -z "$ac_c_werror_flag" ||
53061	 test ! -s conftest.err
53062       } && test -s conftest.$ac_objext; then
53063  ac_lo=$ac_mid; break
53064else
53065  $as_echo "$as_me: failed program was:" >&5
53066sed 's/^/| /' conftest.$ac_ext >&5
53067
53068	ac_hi=`expr '(' $ac_mid ')' - 1`
53069			if test $ac_mid -le $ac_hi; then
53070			  ac_lo= ac_hi=
53071			  break
53072			fi
53073			ac_mid=`expr 2 '*' $ac_mid`
53074fi
53075
53076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53077  done
53078else
53079  $as_echo "$as_me: failed program was:" >&5
53080sed 's/^/| /' conftest.$ac_ext >&5
53081
53082	ac_lo= ac_hi=
53083fi
53084
53085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53086fi
53087
53088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53089# Binary search between lo and hi bounds.
53090while test "x$ac_lo" != "x$ac_hi"; do
53091  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53092  cat >conftest.$ac_ext <<_ACEOF
53093/* confdefs.h.  */
53094_ACEOF
53095cat confdefs.h >>conftest.$ac_ext
53096cat >>conftest.$ac_ext <<_ACEOF
53097/* end confdefs.h.  */
53098$ac_includes_default
53099int
53100main ()
53101{
53102static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
53103test_array [0] = 0
53104
53105  ;
53106  return 0;
53107}
53108_ACEOF
53109rm -f conftest.$ac_objext
53110if { (ac_try="$ac_compile"
53111case "(($ac_try" in
53112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53113  *) ac_try_echo=$ac_try;;
53114esac
53115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53116$as_echo "$ac_try_echo") >&5
53117  (eval "$ac_compile") 2>conftest.er1
53118  ac_status=$?
53119  grep -v '^ *+' conftest.er1 >conftest.err
53120  rm -f conftest.er1
53121  cat conftest.err >&5
53122  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53123  (exit $ac_status); } && {
53124	 test -z "$ac_c_werror_flag" ||
53125	 test ! -s conftest.err
53126       } && test -s conftest.$ac_objext; then
53127  ac_hi=$ac_mid
53128else
53129  $as_echo "$as_me: failed program was:" >&5
53130sed 's/^/| /' conftest.$ac_ext >&5
53131
53132	ac_lo=`expr '(' $ac_mid ')' + 1`
53133fi
53134
53135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53136done
53137case $ac_lo in
53138?*) ac_cv_sizeof_size_t=$ac_lo;;
53139'') if test "$ac_cv_type_size_t" = yes; then
53140     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53142{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
53143See \`config.log' for more details." >&5
53144$as_echo "$as_me: error: cannot compute sizeof (size_t)
53145See \`config.log' for more details." >&2;}
53146   { (exit 77); exit 77; }; }; }
53147   else
53148     ac_cv_sizeof_size_t=0
53149   fi ;;
53150esac
53151else
53152  cat >conftest.$ac_ext <<_ACEOF
53153/* confdefs.h.  */
53154_ACEOF
53155cat confdefs.h >>conftest.$ac_ext
53156cat >>conftest.$ac_ext <<_ACEOF
53157/* end confdefs.h.  */
53158$ac_includes_default
53159static long int longval () { return (long int) (sizeof (size_t)); }
53160static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
53161#include <stdio.h>
53162#include <stdlib.h>
53163int
53164main ()
53165{
53166
53167  FILE *f = fopen ("conftest.val", "w");
53168  if (! f)
53169    return 1;
53170  if (((long int) (sizeof (size_t))) < 0)
53171    {
53172      long int i = longval ();
53173      if (i != ((long int) (sizeof (size_t))))
53174	return 1;
53175      fprintf (f, "%ld", i);
53176    }
53177  else
53178    {
53179      unsigned long int i = ulongval ();
53180      if (i != ((long int) (sizeof (size_t))))
53181	return 1;
53182      fprintf (f, "%lu", i);
53183    }
53184  /* Do not output a trailing newline, as this causes \r\n confusion
53185     on some platforms.  */
53186  return ferror (f) || fclose (f) != 0;
53187
53188  ;
53189  return 0;
53190}
53191_ACEOF
53192rm -f conftest$ac_exeext
53193if { (ac_try="$ac_link"
53194case "(($ac_try" in
53195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53196  *) ac_try_echo=$ac_try;;
53197esac
53198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53199$as_echo "$ac_try_echo") >&5
53200  (eval "$ac_link") 2>&5
53201  ac_status=$?
53202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53203  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53204  { (case "(($ac_try" in
53205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53206  *) ac_try_echo=$ac_try;;
53207esac
53208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53209$as_echo "$ac_try_echo") >&5
53210  (eval "$ac_try") 2>&5
53211  ac_status=$?
53212  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53213  (exit $ac_status); }; }; then
53214  ac_cv_sizeof_size_t=`cat conftest.val`
53215else
53216  $as_echo "$as_me: program exited with status $ac_status" >&5
53217$as_echo "$as_me: failed program was:" >&5
53218sed 's/^/| /' conftest.$ac_ext >&5
53219
53220( exit $ac_status )
53221if test "$ac_cv_type_size_t" = yes; then
53222     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53224{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
53225See \`config.log' for more details." >&5
53226$as_echo "$as_me: error: cannot compute sizeof (size_t)
53227See \`config.log' for more details." >&2;}
53228   { (exit 77); exit 77; }; }; }
53229   else
53230     ac_cv_sizeof_size_t=0
53231   fi
53232fi
53233rm -rf conftest.dSYM
53234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53235fi
53236rm -f conftest.val
53237fi
53238{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
53239$as_echo "$ac_cv_sizeof_size_t" >&6; }
53240
53241
53242
53243cat >>confdefs.h <<_ACEOF
53244#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
53245_ACEOF
53246
53247
53248# The cast to long int works around a bug in the HP C Compiler
53249# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53250# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53251# This bug is HP SR number 8606223364.
53252{ $as_echo "$as_me:$LINENO: checking size of void *" >&5
53253$as_echo_n "checking size of void *... " >&6; }
53254if test "${ac_cv_sizeof_void_p+set}" = set; then
53255  $as_echo_n "(cached) " >&6
53256else
53257  if test "$cross_compiling" = yes; then
53258  # Depending upon the size, compute the lo and hi bounds.
53259cat >conftest.$ac_ext <<_ACEOF
53260/* confdefs.h.  */
53261_ACEOF
53262cat confdefs.h >>conftest.$ac_ext
53263cat >>conftest.$ac_ext <<_ACEOF
53264/* end confdefs.h.  */
53265$ac_includes_default
53266int
53267main ()
53268{
53269static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
53270test_array [0] = 0
53271
53272  ;
53273  return 0;
53274}
53275_ACEOF
53276rm -f conftest.$ac_objext
53277if { (ac_try="$ac_compile"
53278case "(($ac_try" in
53279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53280  *) ac_try_echo=$ac_try;;
53281esac
53282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53283$as_echo "$ac_try_echo") >&5
53284  (eval "$ac_compile") 2>conftest.er1
53285  ac_status=$?
53286  grep -v '^ *+' conftest.er1 >conftest.err
53287  rm -f conftest.er1
53288  cat conftest.err >&5
53289  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53290  (exit $ac_status); } && {
53291	 test -z "$ac_c_werror_flag" ||
53292	 test ! -s conftest.err
53293       } && test -s conftest.$ac_objext; then
53294  ac_lo=0 ac_mid=0
53295  while :; do
53296    cat >conftest.$ac_ext <<_ACEOF
53297/* confdefs.h.  */
53298_ACEOF
53299cat confdefs.h >>conftest.$ac_ext
53300cat >>conftest.$ac_ext <<_ACEOF
53301/* end confdefs.h.  */
53302$ac_includes_default
53303int
53304main ()
53305{
53306static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
53307test_array [0] = 0
53308
53309  ;
53310  return 0;
53311}
53312_ACEOF
53313rm -f conftest.$ac_objext
53314if { (ac_try="$ac_compile"
53315case "(($ac_try" in
53316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53317  *) ac_try_echo=$ac_try;;
53318esac
53319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53320$as_echo "$ac_try_echo") >&5
53321  (eval "$ac_compile") 2>conftest.er1
53322  ac_status=$?
53323  grep -v '^ *+' conftest.er1 >conftest.err
53324  rm -f conftest.er1
53325  cat conftest.err >&5
53326  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53327  (exit $ac_status); } && {
53328	 test -z "$ac_c_werror_flag" ||
53329	 test ! -s conftest.err
53330       } && test -s conftest.$ac_objext; then
53331  ac_hi=$ac_mid; break
53332else
53333  $as_echo "$as_me: failed program was:" >&5
53334sed 's/^/| /' conftest.$ac_ext >&5
53335
53336	ac_lo=`expr $ac_mid + 1`
53337			if test $ac_lo -le $ac_mid; then
53338			  ac_lo= ac_hi=
53339			  break
53340			fi
53341			ac_mid=`expr 2 '*' $ac_mid + 1`
53342fi
53343
53344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53345  done
53346else
53347  $as_echo "$as_me: failed program was:" >&5
53348sed 's/^/| /' conftest.$ac_ext >&5
53349
53350	cat >conftest.$ac_ext <<_ACEOF
53351/* confdefs.h.  */
53352_ACEOF
53353cat confdefs.h >>conftest.$ac_ext
53354cat >>conftest.$ac_ext <<_ACEOF
53355/* end confdefs.h.  */
53356$ac_includes_default
53357int
53358main ()
53359{
53360static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
53361test_array [0] = 0
53362
53363  ;
53364  return 0;
53365}
53366_ACEOF
53367rm -f conftest.$ac_objext
53368if { (ac_try="$ac_compile"
53369case "(($ac_try" in
53370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53371  *) ac_try_echo=$ac_try;;
53372esac
53373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53374$as_echo "$ac_try_echo") >&5
53375  (eval "$ac_compile") 2>conftest.er1
53376  ac_status=$?
53377  grep -v '^ *+' conftest.er1 >conftest.err
53378  rm -f conftest.er1
53379  cat conftest.err >&5
53380  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53381  (exit $ac_status); } && {
53382	 test -z "$ac_c_werror_flag" ||
53383	 test ! -s conftest.err
53384       } && test -s conftest.$ac_objext; then
53385  ac_hi=-1 ac_mid=-1
53386  while :; do
53387    cat >conftest.$ac_ext <<_ACEOF
53388/* confdefs.h.  */
53389_ACEOF
53390cat confdefs.h >>conftest.$ac_ext
53391cat >>conftest.$ac_ext <<_ACEOF
53392/* end confdefs.h.  */
53393$ac_includes_default
53394int
53395main ()
53396{
53397static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
53398test_array [0] = 0
53399
53400  ;
53401  return 0;
53402}
53403_ACEOF
53404rm -f conftest.$ac_objext
53405if { (ac_try="$ac_compile"
53406case "(($ac_try" in
53407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53408  *) ac_try_echo=$ac_try;;
53409esac
53410eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53411$as_echo "$ac_try_echo") >&5
53412  (eval "$ac_compile") 2>conftest.er1
53413  ac_status=$?
53414  grep -v '^ *+' conftest.er1 >conftest.err
53415  rm -f conftest.er1
53416  cat conftest.err >&5
53417  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53418  (exit $ac_status); } && {
53419	 test -z "$ac_c_werror_flag" ||
53420	 test ! -s conftest.err
53421       } && test -s conftest.$ac_objext; then
53422  ac_lo=$ac_mid; break
53423else
53424  $as_echo "$as_me: failed program was:" >&5
53425sed 's/^/| /' conftest.$ac_ext >&5
53426
53427	ac_hi=`expr '(' $ac_mid ')' - 1`
53428			if test $ac_mid -le $ac_hi; then
53429			  ac_lo= ac_hi=
53430			  break
53431			fi
53432			ac_mid=`expr 2 '*' $ac_mid`
53433fi
53434
53435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53436  done
53437else
53438  $as_echo "$as_me: failed program was:" >&5
53439sed 's/^/| /' conftest.$ac_ext >&5
53440
53441	ac_lo= ac_hi=
53442fi
53443
53444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53445fi
53446
53447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53448# Binary search between lo and hi bounds.
53449while test "x$ac_lo" != "x$ac_hi"; do
53450  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53451  cat >conftest.$ac_ext <<_ACEOF
53452/* confdefs.h.  */
53453_ACEOF
53454cat confdefs.h >>conftest.$ac_ext
53455cat >>conftest.$ac_ext <<_ACEOF
53456/* end confdefs.h.  */
53457$ac_includes_default
53458int
53459main ()
53460{
53461static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
53462test_array [0] = 0
53463
53464  ;
53465  return 0;
53466}
53467_ACEOF
53468rm -f conftest.$ac_objext
53469if { (ac_try="$ac_compile"
53470case "(($ac_try" in
53471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53472  *) ac_try_echo=$ac_try;;
53473esac
53474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53475$as_echo "$ac_try_echo") >&5
53476  (eval "$ac_compile") 2>conftest.er1
53477  ac_status=$?
53478  grep -v '^ *+' conftest.er1 >conftest.err
53479  rm -f conftest.er1
53480  cat conftest.err >&5
53481  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53482  (exit $ac_status); } && {
53483	 test -z "$ac_c_werror_flag" ||
53484	 test ! -s conftest.err
53485       } && test -s conftest.$ac_objext; then
53486  ac_hi=$ac_mid
53487else
53488  $as_echo "$as_me: failed program was:" >&5
53489sed 's/^/| /' conftest.$ac_ext >&5
53490
53491	ac_lo=`expr '(' $ac_mid ')' + 1`
53492fi
53493
53494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53495done
53496case $ac_lo in
53497?*) ac_cv_sizeof_void_p=$ac_lo;;
53498'') if test "$ac_cv_type_void_p" = yes; then
53499     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53501{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
53502See \`config.log' for more details." >&5
53503$as_echo "$as_me: error: cannot compute sizeof (void *)
53504See \`config.log' for more details." >&2;}
53505   { (exit 77); exit 77; }; }; }
53506   else
53507     ac_cv_sizeof_void_p=0
53508   fi ;;
53509esac
53510else
53511  cat >conftest.$ac_ext <<_ACEOF
53512/* confdefs.h.  */
53513_ACEOF
53514cat confdefs.h >>conftest.$ac_ext
53515cat >>conftest.$ac_ext <<_ACEOF
53516/* end confdefs.h.  */
53517$ac_includes_default
53518static long int longval () { return (long int) (sizeof (void *)); }
53519static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
53520#include <stdio.h>
53521#include <stdlib.h>
53522int
53523main ()
53524{
53525
53526  FILE *f = fopen ("conftest.val", "w");
53527  if (! f)
53528    return 1;
53529  if (((long int) (sizeof (void *))) < 0)
53530    {
53531      long int i = longval ();
53532      if (i != ((long int) (sizeof (void *))))
53533	return 1;
53534      fprintf (f, "%ld", i);
53535    }
53536  else
53537    {
53538      unsigned long int i = ulongval ();
53539      if (i != ((long int) (sizeof (void *))))
53540	return 1;
53541      fprintf (f, "%lu", i);
53542    }
53543  /* Do not output a trailing newline, as this causes \r\n confusion
53544     on some platforms.  */
53545  return ferror (f) || fclose (f) != 0;
53546
53547  ;
53548  return 0;
53549}
53550_ACEOF
53551rm -f conftest$ac_exeext
53552if { (ac_try="$ac_link"
53553case "(($ac_try" in
53554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53555  *) ac_try_echo=$ac_try;;
53556esac
53557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53558$as_echo "$ac_try_echo") >&5
53559  (eval "$ac_link") 2>&5
53560  ac_status=$?
53561  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53562  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53563  { (case "(($ac_try" in
53564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53565  *) ac_try_echo=$ac_try;;
53566esac
53567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53568$as_echo "$ac_try_echo") >&5
53569  (eval "$ac_try") 2>&5
53570  ac_status=$?
53571  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53572  (exit $ac_status); }; }; then
53573  ac_cv_sizeof_void_p=`cat conftest.val`
53574else
53575  $as_echo "$as_me: program exited with status $ac_status" >&5
53576$as_echo "$as_me: failed program was:" >&5
53577sed 's/^/| /' conftest.$ac_ext >&5
53578
53579( exit $ac_status )
53580if test "$ac_cv_type_void_p" = yes; then
53581     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53583{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
53584See \`config.log' for more details." >&5
53585$as_echo "$as_me: error: cannot compute sizeof (void *)
53586See \`config.log' for more details." >&2;}
53587   { (exit 77); exit 77; }; }; }
53588   else
53589     ac_cv_sizeof_void_p=0
53590   fi
53591fi
53592rm -rf conftest.dSYM
53593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53594fi
53595rm -f conftest.val
53596fi
53597{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
53598$as_echo "$ac_cv_sizeof_void_p" >&6; }
53599
53600
53601
53602cat >>confdefs.h <<_ACEOF
53603#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
53604_ACEOF
53605
53606
53607
53608if test $ac_cv_sizeof_size_t -lt $ac_cv_sizeof_void_p; then
53609	{ $as_echo "$as_me:$LINENO: WARNING: size_t cannot represent the amount of used memory of a process" >&5
53610$as_echo "$as_me: WARNING: size_t cannot represent the amount of used memory of a process" >&2;}
53611	{ $as_echo "$as_me:$LINENO: WARNING: please report this to <samba-technical@samba.org>" >&5
53612$as_echo "$as_me: WARNING: please report this to <samba-technical@samba.org>" >&2;}
53613	{ $as_echo "$as_me:$LINENO: WARNING: sizeof(size_t) = $ac_cv_sizeof_size_t" >&5
53614$as_echo "$as_me: WARNING: sizeof(size_t) = $ac_cv_sizeof_size_t" >&2;}
53615	{ $as_echo "$as_me:$LINENO: WARNING: sizeof(void *) = $ac_cv_sizeof_void_p" >&5
53616$as_echo "$as_me: WARNING: sizeof(void *) = $ac_cv_sizeof_void_p" >&2;}
53617	{ { $as_echo "$as_me:$LINENO: error: sizeof(size_t) < sizeof(void *)" >&5
53618$as_echo "$as_me: error: sizeof(size_t) < sizeof(void *)" >&2;}
53619   { (exit 1); exit 1; }; }
53620fi
53621
53622if test x"$VERSIONSCRIPT" != "x"; then
53623    EXPORTSFILE=talloc.exports
53624
53625fi
53626
53627	LINK_LIBTALLOC=STATIC
53628
53629
53630
53631
53632
53633LIBTALLOC_SHARED_TARGET=bin/libtalloc.$SHLIBEXT
53634LIBTALLOC_STATIC_TARGET=bin/libtalloc.a
53635LIBTALLOC_SHARED=
53636LIBTALLOC_STATIC=
53637LIBTALLOC_LIBS=-ltalloc
53638LIBTALLOC_TARGET=
53639INSTALL_LIBTALLOC=
53640UNINSTALL_LIBTALLOC=
53641
53642LIBTALLOC_SOVER=2
53643
53644
53645
53646
53647
53648
53649
53650
53651
53652
53653
53654{ $as_echo "$as_me:$LINENO: checking whether to build the libtalloc shared library" >&5
53655$as_echo_n "checking whether to build the libtalloc shared library... " >&6; }
53656
53657
53658# Check whether --with-libtalloc was given.
53659if test "${with_libtalloc+set}" = set; then
53660  withval=$with_libtalloc;
53661case "$withval" in
53662	no)
53663		{ $as_echo "$as_me:$LINENO: result: no" >&5
53664$as_echo "no" >&6; }
53665		build_lib=no
53666		;;
53667	*)
53668		build_lib=yes
53669		;;
53670esac
53671
53672else
53673
53674# if unspecified, default is to build it if possible.
53675build_lib=yes
53676
53677
53678fi
53679
53680
53681
53682if eval test x"$build_lib" = "xyes" ; then
53683	# only set the install targets if the user chose the library
53684	INSTALL_LIBTALLOC=installlibtalloc
53685	UNINSTALL_LIBTALLOC=uninstalllibtalloc
53686	if eval $BLDSHARED = true; then
53687		LIBTALLOC_SHARED=$LIBTALLOC_SHARED_TARGET
53688		LIBTALLOC_TARGET=$LIBTALLOC_SHARED_TARGET
53689		{ $as_echo "$as_me:$LINENO: result: yes" >&5
53690$as_echo "yes" >&6; }
53691		if test x"$USESHARED" != x"true" -o x"$LINK_LIBTALLOC" = "xSTATIC" ; then
53692			enable_static=yes
53693			LIBTALLOC_TARGET=$LIBTALLOC_STATIC_TARGET
53694			LIBTALLOC_LIBS=$LIBTALLOC_STATIC_TARGET
53695		else
53696			LIBTALLOC_LIBS=-ltalloc
53697		fi
53698	else
53699		enable_static=yes
53700		LIBTALLOC_TARGET=$LIBTALLOC_STATIC_TARGET
53701		LIBTALLOC_LIBS=$LIBTALLOC_STATIC_TARGET
53702		{ $as_echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
53703$as_echo "no shared library support -- will supply static library" >&6; }
53704	fi
53705else
53706	enable_static=yes
53707	{ $as_echo "$as_me:$LINENO: result: shared library not selected" >&5
53708$as_echo "shared library not selected" >&6; }
53709fi
53710if test $enable_static = yes; then
53711	LIBTALLOC_STATIC=$LIBTALLOC_STATIC_TARGET
53712fi
53713
53714
53715
53716
53717
53718
53719	LIBTALLOC_OBJ0=""
53720	for obj in ${TALLOC_OBJ}; do
53721		LIBTALLOC_OBJ0="${LIBTALLOC_OBJ0} ${tallocdir}/${obj}"
53722	done
53723	SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} ${TALLOC_CFLAGS}"
53724	SAMBA_CONFIGURE_CPPFLAGS="${SAMBA_CONFIGURE_CPPFLAGS} ${TALLOC_CFLAGS}"
53725
53726
53727	TALLOCTORT="bin/talloctort\$(EXEEXT)"
53728
53729fi
53730
53731
53732# Check whether --enable-external_libtdb was given.
53733if test "${enable_external_libtdb+set}" = set; then
53734  enableval=$enable_external_libtdb;  enable_external_libtalloc=$enableval
53735else
53736   enable_external_libtalloc=auto
53737fi
53738
53739
53740if test "x$enable_external_libtdb" != xno
53741then
53742
53743pkg_failed=no
53744{ $as_echo "$as_me:$LINENO: checking for LIBTDB" >&5
53745$as_echo_n "checking for LIBTDB... " >&6; }
53746
53747if test -n "$PKG_CONFIG"; then
53748    if test -n "$LIBTDB_CFLAGS"; then
53749        pkg_cv_LIBTDB_CFLAGS="$LIBTDB_CFLAGS"
53750    else
53751        if test -n "$PKG_CONFIG" && \
53752    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"tdb >= 1.2.1\"") >&5
53753  ($PKG_CONFIG --exists --print-errors "tdb >= 1.2.1") 2>&5
53754  ac_status=$?
53755  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53756  (exit $ac_status); }; then
53757  pkg_cv_LIBTDB_CFLAGS=`$PKG_CONFIG --cflags "tdb >= 1.2.1" 2>/dev/null`
53758else
53759  pkg_failed=yes
53760fi
53761    fi
53762else
53763	pkg_failed=untried
53764fi
53765if test -n "$PKG_CONFIG"; then
53766    if test -n "$LIBTDB_LIBS"; then
53767        pkg_cv_LIBTDB_LIBS="$LIBTDB_LIBS"
53768    else
53769        if test -n "$PKG_CONFIG" && \
53770    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"tdb >= 1.2.1\"") >&5
53771  ($PKG_CONFIG --exists --print-errors "tdb >= 1.2.1") 2>&5
53772  ac_status=$?
53773  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53774  (exit $ac_status); }; then
53775  pkg_cv_LIBTDB_LIBS=`$PKG_CONFIG --libs "tdb >= 1.2.1" 2>/dev/null`
53776else
53777  pkg_failed=yes
53778fi
53779    fi
53780else
53781	pkg_failed=untried
53782fi
53783
53784
53785
53786if test $pkg_failed = yes; then
53787
53788if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53789        _pkg_short_errors_supported=yes
53790else
53791        _pkg_short_errors_supported=no
53792fi
53793        if test $_pkg_short_errors_supported = yes; then
53794	        LIBTDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "tdb >= 1.2.1"`
53795        else
53796	        LIBTDB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tdb >= 1.2.1"`
53797        fi
53798	# Put the nasty error message in config.log where it belongs
53799	echo "$LIBTDB_PKG_ERRORS" >&5
53800
53801	{ $as_echo "$as_me:$LINENO: result: no" >&5
53802$as_echo "no" >&6; }
53803
53804		if test x$enable_external_libtdb = xyes; then
53805			{ { $as_echo "$as_me:$LINENO: error: Unable to find libtdb" >&5
53806$as_echo "$as_me: error: Unable to find libtdb" >&2;}
53807   { (exit 1); exit 1; }; }
53808		else
53809			enable_external_libtdb=no
53810		fi
53811
53812elif test $pkg_failed = untried; then
53813
53814		if test x$enable_external_libtdb = xyes; then
53815			{ { $as_echo "$as_me:$LINENO: error: Unable to find libtdb" >&5
53816$as_echo "$as_me: error: Unable to find libtdb" >&2;}
53817   { (exit 1); exit 1; }; }
53818		else
53819			enable_external_libtdb=no
53820		fi
53821
53822else
53823	LIBTDB_CFLAGS=$pkg_cv_LIBTDB_CFLAGS
53824	LIBTDB_LIBS=$pkg_cv_LIBTDB_LIBS
53825        { $as_echo "$as_me:$LINENO: result: yes" >&5
53826$as_echo "yes" >&6; }
53827	 enable_external_libtdb=yes
53828fi
53829fi
53830
53831
53832if test "x$enable_external_libtdb" = xno
53833then
53834	tdbdir=""
53835tdbpaths=". lib/tdb tdb ../tdb ../lib/tdb"
53836for d in $tdbpaths; do
53837	if test -f "$srcdir/$d/common/tdb.c"; then
53838		tdbdir="$d"
53839
53840		break;
53841	fi
53842done
53843if test x"$tdbdir" = "x"; then
53844   { { $as_echo "$as_me:$LINENO: error: cannot find tdb source in $tdbpaths" >&5
53845$as_echo "$as_me: error: cannot find tdb source in $tdbpaths" >&2;}
53846   { (exit 1); exit 1; }; }
53847fi
53848TDB_OBJ="common/tdb.o common/dump.o common/transaction.o common/error.o common/traverse.o"
53849TDB_OBJ="$TDB_OBJ common/freelist.o common/freelistcheck.o common/io.o common/lock.o common/open.o common/check.o"
53850
53851
53852
53853TDB_LIBS=""
53854
53855
53856TDB_CFLAGS="-I$tdbdir/include"
53857
53858
53859
53860
53861
53862
53863
53864for ac_func in mmap pread pwrite getpagesize utime
53865do
53866as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
53867{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
53868$as_echo_n "checking for $ac_func... " >&6; }
53869if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
53870  $as_echo_n "(cached) " >&6
53871else
53872  cat >conftest.$ac_ext <<_ACEOF
53873/* confdefs.h.  */
53874_ACEOF
53875cat confdefs.h >>conftest.$ac_ext
53876cat >>conftest.$ac_ext <<_ACEOF
53877/* end confdefs.h.  */
53878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53879   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53880#define $ac_func innocuous_$ac_func
53881
53882/* System header to define __stub macros and hopefully few prototypes,
53883    which can conflict with char $ac_func (); below.
53884    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53885    <limits.h> exists even on freestanding compilers.  */
53886
53887#ifdef __STDC__
53888# include <limits.h>
53889#else
53890# include <assert.h>
53891#endif
53892
53893#undef $ac_func
53894
53895/* Override any GCC internal prototype to avoid an error.
53896   Use char because int might match the return type of a GCC
53897   builtin and then its argument prototype would still apply.  */
53898#ifdef __cplusplus
53899extern "C"
53900#endif
53901char $ac_func ();
53902/* The GNU C library defines this for functions which it implements
53903    to always fail with ENOSYS.  Some functions are actually named
53904    something starting with __ and the normal name is an alias.  */
53905#if defined __stub_$ac_func || defined __stub___$ac_func
53906choke me
53907#endif
53908
53909int
53910main ()
53911{
53912return $ac_func ();
53913  ;
53914  return 0;
53915}
53916_ACEOF
53917rm -f conftest.$ac_objext conftest$ac_exeext
53918if { (ac_try="$ac_link"
53919case "(($ac_try" in
53920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53921  *) ac_try_echo=$ac_try;;
53922esac
53923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53924$as_echo "$ac_try_echo") >&5
53925  (eval "$ac_link") 2>conftest.er1
53926  ac_status=$?
53927  grep -v '^ *+' conftest.er1 >conftest.err
53928  rm -f conftest.er1
53929  cat conftest.err >&5
53930  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53931  (exit $ac_status); } && {
53932	 test -z "$ac_c_werror_flag" ||
53933	 test ! -s conftest.err
53934       } && test -s conftest$ac_exeext && {
53935	 test "$cross_compiling" = yes ||
53936	 $as_test_x conftest$ac_exeext
53937       }; then
53938  eval "$as_ac_var=yes"
53939else
53940  $as_echo "$as_me: failed program was:" >&5
53941sed 's/^/| /' conftest.$ac_ext >&5
53942
53943	eval "$as_ac_var=no"
53944fi
53945
53946rm -rf conftest.dSYM
53947rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53948      conftest$ac_exeext conftest.$ac_ext
53949fi
53950ac_res=`eval 'as_val=${'$as_ac_var'}
53951		 $as_echo "$as_val"'`
53952	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53953$as_echo "$ac_res" >&6; }
53954as_val=`eval 'as_val=${'$as_ac_var'}
53955		 $as_echo "$as_val"'`
53956   if test "x$as_val" = x""yes; then
53957  cat >>confdefs.h <<_ACEOF
53958#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
53959_ACEOF
53960
53961fi
53962done
53963
53964
53965
53966
53967for ac_header in getopt.h sys/select.h sys/time.h
53968do
53969as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
53970if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53971  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
53972$as_echo_n "checking for $ac_header... " >&6; }
53973if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53974  $as_echo_n "(cached) " >&6
53975fi
53976ac_res=`eval 'as_val=${'$as_ac_Header'}
53977		 $as_echo "$as_val"'`
53978	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53979$as_echo "$ac_res" >&6; }
53980else
53981  # Is the header compilable?
53982{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
53983$as_echo_n "checking $ac_header usability... " >&6; }
53984cat >conftest.$ac_ext <<_ACEOF
53985/* confdefs.h.  */
53986_ACEOF
53987cat confdefs.h >>conftest.$ac_ext
53988cat >>conftest.$ac_ext <<_ACEOF
53989/* end confdefs.h.  */
53990$ac_includes_default
53991#include <$ac_header>
53992_ACEOF
53993rm -f conftest.$ac_objext
53994if { (ac_try="$ac_compile"
53995case "(($ac_try" in
53996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53997  *) ac_try_echo=$ac_try;;
53998esac
53999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54000$as_echo "$ac_try_echo") >&5
54001  (eval "$ac_compile") 2>conftest.er1
54002  ac_status=$?
54003  grep -v '^ *+' conftest.er1 >conftest.err
54004  rm -f conftest.er1
54005  cat conftest.err >&5
54006  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54007  (exit $ac_status); } && {
54008	 test -z "$ac_c_werror_flag" ||
54009	 test ! -s conftest.err
54010       } && test -s conftest.$ac_objext; then
54011  ac_header_compiler=yes
54012else
54013  $as_echo "$as_me: failed program was:" >&5
54014sed 's/^/| /' conftest.$ac_ext >&5
54015
54016	ac_header_compiler=no
54017fi
54018
54019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54020{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54021$as_echo "$ac_header_compiler" >&6; }
54022
54023# Is the header present?
54024{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
54025$as_echo_n "checking $ac_header presence... " >&6; }
54026cat >conftest.$ac_ext <<_ACEOF
54027/* confdefs.h.  */
54028_ACEOF
54029cat confdefs.h >>conftest.$ac_ext
54030cat >>conftest.$ac_ext <<_ACEOF
54031/* end confdefs.h.  */
54032#include <$ac_header>
54033_ACEOF
54034if { (ac_try="$ac_cpp conftest.$ac_ext"
54035case "(($ac_try" in
54036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54037  *) ac_try_echo=$ac_try;;
54038esac
54039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54040$as_echo "$ac_try_echo") >&5
54041  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54042  ac_status=$?
54043  grep -v '^ *+' conftest.er1 >conftest.err
54044  rm -f conftest.er1
54045  cat conftest.err >&5
54046  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54047  (exit $ac_status); } >/dev/null && {
54048	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
54049	 test ! -s conftest.err
54050       }; then
54051  ac_header_preproc=yes
54052else
54053  $as_echo "$as_me: failed program was:" >&5
54054sed 's/^/| /' conftest.$ac_ext >&5
54055
54056  ac_header_preproc=no
54057fi
54058
54059rm -f conftest.err conftest.$ac_ext
54060{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54061$as_echo "$ac_header_preproc" >&6; }
54062
54063# So?  What about this header?
54064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54065  yes:no: )
54066    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54067$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54068    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54069$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54070    ac_header_preproc=yes
54071    ;;
54072  no:yes:* )
54073    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54074$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54075    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
54076$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
54077    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54078$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54079    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
54080$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
54081    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54082$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54083    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54084$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54085    ( cat <<\_ASBOX
54086## ---------------------------------------- ##
54087## Report this to samba-technical@samba.org ##
54088## ---------------------------------------- ##
54089_ASBOX
54090     ) | sed "s/^/$as_me: WARNING:     /" >&2
54091    ;;
54092esac
54093{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
54094$as_echo_n "checking for $ac_header... " >&6; }
54095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54096  $as_echo_n "(cached) " >&6
54097else
54098  eval "$as_ac_Header=\$ac_header_preproc"
54099fi
54100ac_res=`eval 'as_val=${'$as_ac_Header'}
54101		 $as_echo "$as_val"'`
54102	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
54103$as_echo "$ac_res" >&6; }
54104
54105fi
54106as_val=`eval 'as_val=${'$as_ac_Header'}
54107		 $as_echo "$as_val"'`
54108   if test "x$as_val" = x""yes; then
54109  cat >>confdefs.h <<_ACEOF
54110#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
54111_ACEOF
54112
54113fi
54114
54115done
54116
54117
54118
54119 { $as_echo "$as_me:$LINENO: checking for pread declaration" >&5
54120$as_echo_n "checking for pread declaration... " >&6; }
54121if test "${ac_cv_have_pread_decl+set}" = set; then
54122  $as_echo_n "(cached) " >&6
54123else
54124
54125    cat >conftest.$ac_ext <<_ACEOF
54126/* confdefs.h.  */
54127_ACEOF
54128cat confdefs.h >>conftest.$ac_ext
54129cat >>conftest.$ac_ext <<_ACEOF
54130/* end confdefs.h.  */
54131#include <unistd.h>
54132int
54133main ()
54134{
54135int i = (int)pread
54136  ;
54137  return 0;
54138}
54139_ACEOF
54140rm -f conftest.$ac_objext
54141if { (ac_try="$ac_compile"
54142case "(($ac_try" in
54143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54144  *) ac_try_echo=$ac_try;;
54145esac
54146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54147$as_echo "$ac_try_echo") >&5
54148  (eval "$ac_compile") 2>conftest.er1
54149  ac_status=$?
54150  grep -v '^ *+' conftest.er1 >conftest.err
54151  rm -f conftest.er1
54152  cat conftest.err >&5
54153  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54154  (exit $ac_status); } && {
54155	 test -z "$ac_c_werror_flag" ||
54156	 test ! -s conftest.err
54157       } && test -s conftest.$ac_objext; then
54158  ac_cv_have_pread_decl=yes
54159else
54160  $as_echo "$as_me: failed program was:" >&5
54161sed 's/^/| /' conftest.$ac_ext >&5
54162
54163	ac_cv_have_pread_decl=no
54164fi
54165
54166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54167fi
54168{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_pread_decl" >&5
54169$as_echo "$ac_cv_have_pread_decl" >&6; }
54170 if test x"$ac_cv_have_pread_decl" = x"yes"; then
54171
54172cat >>confdefs.h <<\_ACEOF
54173#define HAVE_PREAD_DECL 1
54174_ACEOF
54175
54176 fi
54177
54178
54179 { $as_echo "$as_me:$LINENO: checking for pwrite declaration" >&5
54180$as_echo_n "checking for pwrite declaration... " >&6; }
54181if test "${ac_cv_have_pwrite_decl+set}" = set; then
54182  $as_echo_n "(cached) " >&6
54183else
54184
54185    cat >conftest.$ac_ext <<_ACEOF
54186/* confdefs.h.  */
54187_ACEOF
54188cat confdefs.h >>conftest.$ac_ext
54189cat >>conftest.$ac_ext <<_ACEOF
54190/* end confdefs.h.  */
54191#include <unistd.h>
54192int
54193main ()
54194{
54195int i = (int)pwrite
54196  ;
54197  return 0;
54198}
54199_ACEOF
54200rm -f conftest.$ac_objext
54201if { (ac_try="$ac_compile"
54202case "(($ac_try" in
54203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54204  *) ac_try_echo=$ac_try;;
54205esac
54206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54207$as_echo "$ac_try_echo") >&5
54208  (eval "$ac_compile") 2>conftest.er1
54209  ac_status=$?
54210  grep -v '^ *+' conftest.er1 >conftest.err
54211  rm -f conftest.er1
54212  cat conftest.err >&5
54213  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54214  (exit $ac_status); } && {
54215	 test -z "$ac_c_werror_flag" ||
54216	 test ! -s conftest.err
54217       } && test -s conftest.$ac_objext; then
54218  ac_cv_have_pwrite_decl=yes
54219else
54220  $as_echo "$as_me: failed program was:" >&5
54221sed 's/^/| /' conftest.$ac_ext >&5
54222
54223	ac_cv_have_pwrite_decl=no
54224fi
54225
54226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54227fi
54228{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_pwrite_decl" >&5
54229$as_echo "$ac_cv_have_pwrite_decl" >&6; }
54230 if test x"$ac_cv_have_pwrite_decl" = x"yes"; then
54231
54232cat >>confdefs.h <<\_ACEOF
54233#define HAVE_PWRITE_DECL 1
54234_ACEOF
54235
54236 fi
54237
54238
54239if test x"$VERSIONSCRIPT" != "x"; then
54240    EXPORTSFILE=tdb.exports
54241
54242fi
54243
54244	LINK_LIBTDB=STATIC
54245
54246
54247
54248
54249
54250LIBTDB_SHARED_TARGET=bin/libtdb.$SHLIBEXT
54251LIBTDB_STATIC_TARGET=bin/libtdb.a
54252LIBTDB_SHARED=
54253LIBTDB_STATIC=
54254LIBTDB_LIBS=-ltdb
54255LIBTDB_TARGET=
54256INSTALL_LIBTDB=
54257UNINSTALL_LIBTDB=
54258
54259LIBTDB_SOVER=1
54260
54261
54262
54263
54264
54265
54266
54267
54268
54269
54270
54271{ $as_echo "$as_me:$LINENO: checking whether to build the libtdb shared library" >&5
54272$as_echo_n "checking whether to build the libtdb shared library... " >&6; }
54273
54274
54275# Check whether --with-libtdb was given.
54276if test "${with_libtdb+set}" = set; then
54277  withval=$with_libtdb;
54278case "$withval" in
54279	no)
54280		{ $as_echo "$as_me:$LINENO: result: no" >&5
54281$as_echo "no" >&6; }
54282		build_lib=no
54283		;;
54284	*)
54285		build_lib=yes
54286		;;
54287esac
54288
54289else
54290
54291# if unspecified, default is to build it if possible.
54292build_lib=yes
54293
54294
54295fi
54296
54297
54298
54299if eval test x"$build_lib" = "xyes" ; then
54300	# only set the install targets if the user chose the library
54301	INSTALL_LIBTDB=installlibtdb
54302	UNINSTALL_LIBTDB=uninstalllibtdb
54303	if eval $BLDSHARED = true; then
54304		LIBTDB_SHARED=$LIBTDB_SHARED_TARGET
54305		LIBTDB_TARGET=$LIBTDB_SHARED_TARGET
54306		{ $as_echo "$as_me:$LINENO: result: yes" >&5
54307$as_echo "yes" >&6; }
54308		if test x"$USESHARED" != x"true" -o x"$LINK_LIBTDB" = "xSTATIC" ; then
54309			enable_static=yes
54310			LIBTDB_TARGET=$LIBTDB_STATIC_TARGET
54311			LIBTDB_LIBS=$LIBTDB_STATIC_TARGET
54312		else
54313			LIBTDB_LIBS=-ltdb
54314		fi
54315	else
54316		enable_static=yes
54317		LIBTDB_TARGET=$LIBTDB_STATIC_TARGET
54318		LIBTDB_LIBS=$LIBTDB_STATIC_TARGET
54319		{ $as_echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
54320$as_echo "no shared library support -- will supply static library" >&6; }
54321	fi
54322else
54323	enable_static=yes
54324	{ $as_echo "$as_me:$LINENO: result: shared library not selected" >&5
54325$as_echo "shared library not selected" >&6; }
54326fi
54327if test $enable_static = yes; then
54328	LIBTDB_STATIC=$LIBTDB_STATIC_TARGET
54329fi
54330
54331
54332
54333
54334
54335
54336	LIBTDB_OBJ0=""
54337	for obj in ${TDB_OBJ}; do
54338		LIBTDB_OBJ0="${LIBTDB_OBJ0} ${tdbdir}/${obj}"
54339	done
54340
54341	SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} ${TDB_CFLAGS}"
54342	SAMBA_CONFIGURE_CPPFLAGS="${SAMBA_CONFIGURE_CPPFLAGS} ${TDB_CFLAGS}"
54343
54344	TDBBACKUP="bin/tdbbackup\$(EXEEXT)"
54345
54346	TDBDUMP="bin/tdbdump\$(EXEEXT)"
54347
54348	TDBTOOL="bin/tdbtool\$(EXEEXT)"
54349
54350	TDBTORTURE="bin/tdbtorture\$(EXEEXT)"
54351
54352fi
54353
54354
54355
54356
54357
54358
54359LIBNETAPI_SHARED_TARGET=bin/libnetapi.$SHLIBEXT
54360LIBNETAPI_STATIC_TARGET=bin/libnetapi.a
54361LIBNETAPI_SHARED=
54362LIBNETAPI_STATIC=
54363LIBNETAPI_LIBS=-lnetapi
54364LIBNETAPI_TARGET=
54365INSTALL_LIBNETAPI=
54366UNINSTALL_LIBNETAPI=
54367
54368LIBNETAPI_SOVER=0
54369
54370
54371
54372
54373
54374
54375
54376
54377
54378
54379
54380{ $as_echo "$as_me:$LINENO: checking whether to build the libnetapi shared library" >&5
54381$as_echo_n "checking whether to build the libnetapi shared library... " >&6; }
54382
54383
54384# Check whether --with-libnetapi was given.
54385if test "${with_libnetapi+set}" = set; then
54386  withval=$with_libnetapi;
54387case "$withval" in
54388	no)
54389		{ $as_echo "$as_me:$LINENO: result: no" >&5
54390$as_echo "no" >&6; }
54391		build_lib=no
54392		;;
54393	*)
54394		build_lib=yes
54395		;;
54396esac
54397
54398else
54399
54400# if unspecified, default is to build it if possible.
54401build_lib=yes
54402
54403
54404fi
54405
54406
54407
54408if eval test x"$build_lib" = "xyes" ; then
54409	# only set the install targets if the user chose the library
54410	INSTALL_LIBNETAPI=installlibnetapi
54411	UNINSTALL_LIBNETAPI=uninstalllibnetapi
54412	if eval $BLDSHARED = true; then
54413		LIBNETAPI_SHARED=$LIBNETAPI_SHARED_TARGET
54414		LIBNETAPI_TARGET=$LIBNETAPI_SHARED_TARGET
54415		{ $as_echo "$as_me:$LINENO: result: yes" >&5
54416$as_echo "yes" >&6; }
54417		if test x"$USESHARED" != x"true" -o x"$LINK_LIBNETAPI" = "xSTATIC" ; then
54418			enable_static=yes
54419			LIBNETAPI_TARGET=$LIBNETAPI_STATIC_TARGET
54420			LIBNETAPI_LIBS=$LIBNETAPI_STATIC_TARGET
54421		else
54422			LIBNETAPI_LIBS=-lnetapi
54423		fi
54424	else
54425		enable_static=yes
54426		LIBNETAPI_TARGET=$LIBNETAPI_STATIC_TARGET
54427		LIBNETAPI_LIBS=$LIBNETAPI_STATIC_TARGET
54428		{ $as_echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
54429$as_echo "no shared library support -- will supply static library" >&6; }
54430	fi
54431else
54432	enable_static=yes
54433	{ $as_echo "$as_me:$LINENO: result: shared library not selected" >&5
54434$as_echo "shared library not selected" >&6; }
54435fi
54436if test $enable_static = yes; then
54437	LIBNETAPI_STATIC=$LIBNETAPI_STATIC_TARGET
54438fi
54439
54440
54441
54442
54443
54444
54445
54446
54447
54448
54449
54450LIBSMBCLIENT_SHARED_TARGET=bin/libsmbclient.$SHLIBEXT
54451LIBSMBCLIENT_STATIC_TARGET=bin/libsmbclient.a
54452LIBSMBCLIENT_SHARED=
54453LIBSMBCLIENT_STATIC=
54454LIBSMBCLIENT_LIBS=-lsmbclient
54455LIBSMBCLIENT_TARGET=
54456INSTALL_LIBSMBCLIENT=
54457UNINSTALL_LIBSMBCLIENT=
54458
54459LIBSMBCLIENT_SOVER=0
54460
54461
54462
54463
54464
54465
54466
54467
54468
54469
54470
54471{ $as_echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
54472$as_echo_n "checking whether to build the libsmbclient shared library... " >&6; }
54473
54474
54475# Check whether --with-libsmbclient was given.
54476if test "${with_libsmbclient+set}" = set; then
54477  withval=$with_libsmbclient;
54478case "$withval" in
54479	no)
54480		{ $as_echo "$as_me:$LINENO: result: no" >&5
54481$as_echo "no" >&6; }
54482		build_lib=no
54483		;;
54484	*)
54485		build_lib=yes
54486		;;
54487esac
54488
54489else
54490
54491# if unspecified, default is to build it if possible.
54492build_lib=yes
54493
54494
54495fi
54496
54497
54498
54499if eval test x"$build_lib" = "xyes" ; then
54500	# only set the install targets if the user chose the library
54501	INSTALL_LIBSMBCLIENT=installlibsmbclient
54502	UNINSTALL_LIBSMBCLIENT=uninstalllibsmbclient
54503	if eval $BLDSHARED = true; then
54504		LIBSMBCLIENT_SHARED=$LIBSMBCLIENT_SHARED_TARGET
54505		LIBSMBCLIENT_TARGET=$LIBSMBCLIENT_SHARED_TARGET
54506		{ $as_echo "$as_me:$LINENO: result: yes" >&5
54507$as_echo "yes" >&6; }
54508		if test x"$USESHARED" != x"true" -o x"$LINK_LIBSMBCLIENT" = "xSTATIC" ; then
54509			enable_static=yes
54510			LIBSMBCLIENT_TARGET=$LIBSMBCLIENT_STATIC_TARGET
54511			LIBSMBCLIENT_LIBS=$LIBSMBCLIENT_STATIC_TARGET
54512		else
54513			LIBSMBCLIENT_LIBS=-lsmbclient
54514		fi
54515	else
54516		enable_static=yes
54517		LIBSMBCLIENT_TARGET=$LIBSMBCLIENT_STATIC_TARGET
54518		LIBSMBCLIENT_LIBS=$LIBSMBCLIENT_STATIC_TARGET
54519		{ $as_echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
54520$as_echo "no shared library support -- will supply static library" >&6; }
54521	fi
54522else
54523	enable_static=yes
54524	{ $as_echo "$as_me:$LINENO: result: shared library not selected" >&5
54525$as_echo "shared library not selected" >&6; }
54526fi
54527if test $enable_static = yes; then
54528	LIBSMBCLIENT_STATIC=$LIBSMBCLIENT_STATIC_TARGET
54529fi
54530
54531
54532
54533
54534
54535
54536
54537
54538
54539
54540
54541LIBSMBSHAREMODES_SHARED_TARGET=bin/libsmbsharemodes.$SHLIBEXT
54542LIBSMBSHAREMODES_STATIC_TARGET=bin/libsmbsharemodes.a
54543LIBSMBSHAREMODES_SHARED=
54544LIBSMBSHAREMODES_STATIC=
54545LIBSMBSHAREMODES_LIBS=-lsmbsharemodes
54546LIBSMBSHAREMODES_TARGET=
54547INSTALL_LIBSMBSHAREMODES=
54548UNINSTALL_LIBSMBSHAREMODES=
54549
54550LIBSMBSHAREMODES_SOVER=0
54551
54552
54553
54554
54555
54556
54557
54558
54559
54560
54561
54562{ $as_echo "$as_me:$LINENO: checking whether to build the libsmbsharemodes shared library" >&5
54563$as_echo_n "checking whether to build the libsmbsharemodes shared library... " >&6; }
54564
54565
54566# Check whether --with-libsmbsharemodes was given.
54567if test "${with_libsmbsharemodes+set}" = set; then
54568  withval=$with_libsmbsharemodes;
54569case "$withval" in
54570	no)
54571		{ $as_echo "$as_me:$LINENO: result: no" >&5
54572$as_echo "no" >&6; }
54573		build_lib=no
54574		;;
54575	*)
54576		build_lib=yes
54577		;;
54578esac
54579
54580else
54581
54582# if unspecified, default is to build it if possible.
54583build_lib=yes
54584
54585
54586fi
54587
54588
54589
54590if eval test x"$build_lib" = "xyes" ; then
54591	# only set the install targets if the user chose the library
54592	INSTALL_LIBSMBSHAREMODES=installlibsmbsharemodes
54593	UNINSTALL_LIBSMBSHAREMODES=uninstalllibsmbsharemodes
54594	if eval $BLDSHARED = true; then
54595		LIBSMBSHAREMODES_SHARED=$LIBSMBSHAREMODES_SHARED_TARGET
54596		LIBSMBSHAREMODES_TARGET=$LIBSMBSHAREMODES_SHARED_TARGET
54597		{ $as_echo "$as_me:$LINENO: result: yes" >&5
54598$as_echo "yes" >&6; }
54599		if test x"$USESHARED" != x"true" -o x"$LINK_LIBSMBSHAREMODES" = "xSTATIC" ; then
54600			enable_static=yes
54601			LIBSMBSHAREMODES_TARGET=$LIBSMBSHAREMODES_STATIC_TARGET
54602			LIBSMBSHAREMODES_LIBS=$LIBSMBSHAREMODES_STATIC_TARGET
54603		else
54604			LIBSMBSHAREMODES_LIBS=-lsmbsharemodes
54605		fi
54606	else
54607		enable_static=yes
54608		LIBSMBSHAREMODES_TARGET=$LIBSMBSHAREMODES_STATIC_TARGET
54609		LIBSMBSHAREMODES_LIBS=$LIBSMBSHAREMODES_STATIC_TARGET
54610		{ $as_echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
54611$as_echo "no shared library support -- will supply static library" >&6; }
54612	fi
54613else
54614	enable_static=yes
54615	{ $as_echo "$as_me:$LINENO: result: shared library not selected" >&5
54616$as_echo "shared library not selected" >&6; }
54617fi
54618if test $enable_static = yes; then
54619	LIBSMBSHAREMODES_STATIC=$LIBSMBSHAREMODES_STATIC_TARGET
54620fi
54621
54622
54623
54624
54625
54626
54627
54628
54629
54630
54631
54632LIBADDNS_SHARED_TARGET=bin/libaddns.$SHLIBEXT
54633LIBADDNS_STATIC_TARGET=bin/libaddns.a
54634LIBADDNS_SHARED=
54635LIBADDNS_STATIC=
54636LIBADDNS_LIBS=-laddns
54637LIBADDNS_TARGET=
54638INSTALL_LIBADDNS=
54639UNINSTALL_LIBADDNS=
54640
54641LIBADDNS_SOVER=0
54642
54643
54644
54645
54646
54647
54648
54649
54650
54651
54652
54653{ $as_echo "$as_me:$LINENO: checking whether to build the libaddns shared library" >&5
54654$as_echo_n "checking whether to build the libaddns shared library... " >&6; }
54655
54656
54657# Check whether --with-libaddns was given.
54658if test "${with_libaddns+set}" = set; then
54659  withval=$with_libaddns;
54660case "$withval" in
54661	yes)
54662		build_lib=yes
54663		;;
54664	*)
54665		{ $as_echo "$as_me:$LINENO: result: no" >&5
54666$as_echo "no" >&6; }
54667		build_lib=no
54668		;;
54669esac
54670
54671else
54672
54673# if unspecified, default is not to build
54674{ $as_echo "$as_me:$LINENO: result: no" >&5
54675$as_echo "no" >&6; }
54676build_lib=no
54677
54678
54679fi
54680
54681
54682
54683if eval test x"$build_lib" = "xyes" ; then
54684	# only set the install targets if the user chose the library
54685	INSTALL_LIBADDNS=installlibaddns
54686	UNINSTALL_LIBADDNS=uninstalllibaddns
54687	if eval $BLDSHARED = true; then
54688		LIBADDNS_SHARED=$LIBADDNS_SHARED_TARGET
54689		LIBADDNS_TARGET=$LIBADDNS_SHARED_TARGET
54690		{ $as_echo "$as_me:$LINENO: result: yes" >&5
54691$as_echo "yes" >&6; }
54692		if test x"$USESHARED" != x"true" -o x"$LINK_LIBADDNS" = "xSTATIC" ; then
54693			enable_static=yes
54694			LIBADDNS_TARGET=$LIBADDNS_STATIC_TARGET
54695			LIBADDNS_LIBS=$LIBADDNS_STATIC_TARGET
54696		else
54697			LIBADDNS_LIBS=-laddns
54698		fi
54699	else
54700		enable_static=yes
54701		LIBADDNS_TARGET=$LIBADDNS_STATIC_TARGET
54702		LIBADDNS_LIBS=$LIBADDNS_STATIC_TARGET
54703		{ $as_echo "$as_me:$LINENO: result: no shared library support -- will supply static library" >&5
54704$as_echo "no shared library support -- will supply static library" >&6; }
54705	fi
54706else
54707	enable_static=yes
54708	{ $as_echo "$as_me:$LINENO: result: shared library not selected" >&5
54709$as_echo "shared library not selected" >&6; }
54710fi
54711if test $enable_static = yes; then
54712	LIBADDNS_STATIC=$LIBADDNS_STATIC_TARGET
54713fi
54714
54715
54716
54717
54718
54719
54720
54721
54722
54723################
54724
54725{ $as_echo "$as_me:$LINENO: checking for long long" >&5
54726$as_echo_n "checking for long long... " >&6; }
54727if test "${samba_cv_have_longlong+set}" = set; then
54728  $as_echo_n "(cached) " >&6
54729else
54730
54731if test "$cross_compiling" = yes; then
54732  samba_cv_have_longlong=cross
54733else
54734  cat >conftest.$ac_ext <<_ACEOF
54735/* confdefs.h.  */
54736_ACEOF
54737cat confdefs.h >>conftest.$ac_ext
54738cat >>conftest.$ac_ext <<_ACEOF
54739/* end confdefs.h.  */
54740#include <stdio.h>
54741main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
54742_ACEOF
54743rm -f conftest$ac_exeext
54744if { (ac_try="$ac_link"
54745case "(($ac_try" in
54746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54747  *) ac_try_echo=$ac_try;;
54748esac
54749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54750$as_echo "$ac_try_echo") >&5
54751  (eval "$ac_link") 2>&5
54752  ac_status=$?
54753  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54754  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54755  { (case "(($ac_try" in
54756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54757  *) ac_try_echo=$ac_try;;
54758esac
54759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54760$as_echo "$ac_try_echo") >&5
54761  (eval "$ac_try") 2>&5
54762  ac_status=$?
54763  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54764  (exit $ac_status); }; }; then
54765  samba_cv_have_longlong=yes
54766else
54767  $as_echo "$as_me: program exited with status $ac_status" >&5
54768$as_echo "$as_me: failed program was:" >&5
54769sed 's/^/| /' conftest.$ac_ext >&5
54770
54771( exit $ac_status )
54772samba_cv_have_longlong=no
54773fi
54774rm -rf conftest.dSYM
54775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54776fi
54777
54778
54779fi
54780{ $as_echo "$as_me:$LINENO: result: $samba_cv_have_longlong" >&5
54781$as_echo "$samba_cv_have_longlong" >&6; }
54782if test x"$samba_cv_have_longlong" = x"yes"; then
54783
54784cat >>confdefs.h <<\_ACEOF
54785#define HAVE_LONGLONG 1
54786_ACEOF
54787
54788    { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
54789$as_echo_n "checking for intptr_t... " >&6; }
54790if test "${ac_cv_type_intptr_t+set}" = set; then
54791  $as_echo_n "(cached) " >&6
54792else
54793  ac_cv_type_intptr_t=no
54794cat >conftest.$ac_ext <<_ACEOF
54795/* confdefs.h.  */
54796_ACEOF
54797cat confdefs.h >>conftest.$ac_ext
54798cat >>conftest.$ac_ext <<_ACEOF
54799/* end confdefs.h.  */
54800$ac_includes_default
54801int
54802main ()
54803{
54804if (sizeof (intptr_t))
54805       return 0;
54806  ;
54807  return 0;
54808}
54809_ACEOF
54810rm -f conftest.$ac_objext
54811if { (ac_try="$ac_compile"
54812case "(($ac_try" in
54813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54814  *) ac_try_echo=$ac_try;;
54815esac
54816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54817$as_echo "$ac_try_echo") >&5
54818  (eval "$ac_compile") 2>conftest.er1
54819  ac_status=$?
54820  grep -v '^ *+' conftest.er1 >conftest.err
54821  rm -f conftest.er1
54822  cat conftest.err >&5
54823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54824  (exit $ac_status); } && {
54825	 test -z "$ac_c_werror_flag" ||
54826	 test ! -s conftest.err
54827       } && test -s conftest.$ac_objext; then
54828  cat >conftest.$ac_ext <<_ACEOF
54829/* confdefs.h.  */
54830_ACEOF
54831cat confdefs.h >>conftest.$ac_ext
54832cat >>conftest.$ac_ext <<_ACEOF
54833/* end confdefs.h.  */
54834$ac_includes_default
54835int
54836main ()
54837{
54838if (sizeof ((intptr_t)))
54839	  return 0;
54840  ;
54841  return 0;
54842}
54843_ACEOF
54844rm -f conftest.$ac_objext
54845if { (ac_try="$ac_compile"
54846case "(($ac_try" in
54847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54848  *) ac_try_echo=$ac_try;;
54849esac
54850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54851$as_echo "$ac_try_echo") >&5
54852  (eval "$ac_compile") 2>conftest.er1
54853  ac_status=$?
54854  grep -v '^ *+' conftest.er1 >conftest.err
54855  rm -f conftest.er1
54856  cat conftest.err >&5
54857  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54858  (exit $ac_status); } && {
54859	 test -z "$ac_c_werror_flag" ||
54860	 test ! -s conftest.err
54861       } && test -s conftest.$ac_objext; then
54862  :
54863else
54864  $as_echo "$as_me: failed program was:" >&5
54865sed 's/^/| /' conftest.$ac_ext >&5
54866
54867	ac_cv_type_intptr_t=yes
54868fi
54869
54870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54871else
54872  $as_echo "$as_me: failed program was:" >&5
54873sed 's/^/| /' conftest.$ac_ext >&5
54874
54875
54876fi
54877
54878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54879fi
54880{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
54881$as_echo "$ac_cv_type_intptr_t" >&6; }
54882if test "x$ac_cv_type_intptr_t" = x""yes; then
54883  :
54884else
54885
54886cat >>confdefs.h <<_ACEOF
54887#define intptr_t unsigned long long
54888_ACEOF
54889
54890fi
54891
54892else
54893    { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
54894$as_echo_n "checking for intptr_t... " >&6; }
54895if test "${ac_cv_type_intptr_t+set}" = set; then
54896  $as_echo_n "(cached) " >&6
54897else
54898  ac_cv_type_intptr_t=no
54899cat >conftest.$ac_ext <<_ACEOF
54900/* confdefs.h.  */
54901_ACEOF
54902cat confdefs.h >>conftest.$ac_ext
54903cat >>conftest.$ac_ext <<_ACEOF
54904/* end confdefs.h.  */
54905$ac_includes_default
54906int
54907main ()
54908{
54909if (sizeof (intptr_t))
54910       return 0;
54911  ;
54912  return 0;
54913}
54914_ACEOF
54915rm -f conftest.$ac_objext
54916if { (ac_try="$ac_compile"
54917case "(($ac_try" in
54918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54919  *) ac_try_echo=$ac_try;;
54920esac
54921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54922$as_echo "$ac_try_echo") >&5
54923  (eval "$ac_compile") 2>conftest.er1
54924  ac_status=$?
54925  grep -v '^ *+' conftest.er1 >conftest.err
54926  rm -f conftest.er1
54927  cat conftest.err >&5
54928  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54929  (exit $ac_status); } && {
54930	 test -z "$ac_c_werror_flag" ||
54931	 test ! -s conftest.err
54932       } && test -s conftest.$ac_objext; then
54933  cat >conftest.$ac_ext <<_ACEOF
54934/* confdefs.h.  */
54935_ACEOF
54936cat confdefs.h >>conftest.$ac_ext
54937cat >>conftest.$ac_ext <<_ACEOF
54938/* end confdefs.h.  */
54939$ac_includes_default
54940int
54941main ()
54942{
54943if (sizeof ((intptr_t)))
54944	  return 0;
54945  ;
54946  return 0;
54947}
54948_ACEOF
54949rm -f conftest.$ac_objext
54950if { (ac_try="$ac_compile"
54951case "(($ac_try" in
54952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54953  *) ac_try_echo=$ac_try;;
54954esac
54955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54956$as_echo "$ac_try_echo") >&5
54957  (eval "$ac_compile") 2>conftest.er1
54958  ac_status=$?
54959  grep -v '^ *+' conftest.er1 >conftest.err
54960  rm -f conftest.er1
54961  cat conftest.err >&5
54962  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54963  (exit $ac_status); } && {
54964	 test -z "$ac_c_werror_flag" ||
54965	 test ! -s conftest.err
54966       } && test -s conftest.$ac_objext; then
54967  :
54968else
54969  $as_echo "$as_me: failed program was:" >&5
54970sed 's/^/| /' conftest.$ac_ext >&5
54971
54972	ac_cv_type_intptr_t=yes
54973fi
54974
54975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54976else
54977  $as_echo "$as_me: failed program was:" >&5
54978sed 's/^/| /' conftest.$ac_ext >&5
54979
54980
54981fi
54982
54983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54984fi
54985{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
54986$as_echo "$ac_cv_type_intptr_t" >&6; }
54987if test "x$ac_cv_type_intptr_t" = x""yes; then
54988  :
54989else
54990
54991cat >>confdefs.h <<_ACEOF
54992#define intptr_t unsigned long
54993_ACEOF
54994
54995fi
54996
54997fi
54998
54999#
55000# Check if the compiler supports the LL prefix on long long integers.
55001# AIX needs this.
55002
55003{ $as_echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
55004$as_echo_n "checking for LL suffix on long long integers... " >&6; }
55005if test "${samba_cv_compiler_supports_ll+set}" = set; then
55006  $as_echo_n "(cached) " >&6
55007else
55008
55009    cat >conftest.$ac_ext <<_ACEOF
55010/* confdefs.h.  */
55011_ACEOF
55012cat confdefs.h >>conftest.$ac_ext
55013cat >>conftest.$ac_ext <<_ACEOF
55014/* end confdefs.h.  */
55015#include <stdio.h>
55016int
55017main ()
55018{
55019long long i = 0x8000000000LL
55020  ;
55021  return 0;
55022}
55023_ACEOF
55024rm -f conftest.$ac_objext
55025if { (ac_try="$ac_compile"
55026case "(($ac_try" in
55027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55028  *) ac_try_echo=$ac_try;;
55029esac
55030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55031$as_echo "$ac_try_echo") >&5
55032  (eval "$ac_compile") 2>conftest.er1
55033  ac_status=$?
55034  grep -v '^ *+' conftest.er1 >conftest.err
55035  rm -f conftest.er1
55036  cat conftest.err >&5
55037  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55038  (exit $ac_status); } && {
55039	 test -z "$ac_c_werror_flag" ||
55040	 test ! -s conftest.err
55041       } && test -s conftest.$ac_objext; then
55042  samba_cv_compiler_supports_ll=yes
55043else
55044  $as_echo "$as_me: failed program was:" >&5
55045sed 's/^/| /' conftest.$ac_ext >&5
55046
55047	samba_cv_compiler_supports_ll=no
55048fi
55049
55050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55051fi
55052{ $as_echo "$as_me:$LINENO: result: $samba_cv_compiler_supports_ll" >&5
55053$as_echo "$samba_cv_compiler_supports_ll" >&6; }
55054if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
55055
55056cat >>confdefs.h <<\_ACEOF
55057#define COMPILER_SUPPORTS_LL 1
55058_ACEOF
55059
55060fi
55061
55062
55063{ $as_echo "$as_me:$LINENO: checking for 64 bit time_t" >&5
55064$as_echo_n "checking for 64 bit time_t... " >&6; }
55065if test "${samba_cv_SIZEOF_TIME_T+set}" = set; then
55066  $as_echo_n "(cached) " >&6
55067else
55068
55069if test "$cross_compiling" = yes; then
55070  samba_cv_SIZEOF_TIME_T=cross
55071else
55072  cat >conftest.$ac_ext <<_ACEOF
55073/* confdefs.h.  */
55074_ACEOF
55075cat confdefs.h >>conftest.$ac_ext
55076cat >>conftest.$ac_ext <<_ACEOF
55077/* end confdefs.h.  */
55078#include <time.h>
55079main() { exit((sizeof(time_t) == 8) ? 0 : 1); }
55080_ACEOF
55081rm -f conftest$ac_exeext
55082if { (ac_try="$ac_link"
55083case "(($ac_try" in
55084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55085  *) ac_try_echo=$ac_try;;
55086esac
55087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55088$as_echo "$ac_try_echo") >&5
55089  (eval "$ac_link") 2>&5
55090  ac_status=$?
55091  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55092  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55093  { (case "(($ac_try" in
55094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55095  *) ac_try_echo=$ac_try;;
55096esac
55097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55098$as_echo "$ac_try_echo") >&5
55099  (eval "$ac_try") 2>&5
55100  ac_status=$?
55101  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55102  (exit $ac_status); }; }; then
55103  samba_cv_SIZEOF_TIME_T=yes
55104else
55105  $as_echo "$as_me: program exited with status $ac_status" >&5
55106$as_echo "$as_me: failed program was:" >&5
55107sed 's/^/| /' conftest.$ac_ext >&5
55108
55109( exit $ac_status )
55110samba_cv_SIZEOF_TIME_T=no
55111fi
55112rm -rf conftest.dSYM
55113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55114fi
55115
55116
55117fi
55118{ $as_echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_TIME_T" >&5
55119$as_echo "$samba_cv_SIZEOF_TIME_T" >&6; }
55120if test x"$samba_cv_SIZEOF_TIME_T" = x"yes"; then
55121
55122cat >>confdefs.h <<\_ACEOF
55123#define SIZEOF_TIME_T 8
55124_ACEOF
55125
55126fi
55127
55128{ $as_echo "$as_me:$LINENO: checking for TIME_T_MAX" >&5
55129$as_echo_n "checking for TIME_T_MAX... " >&6; }
55130if test "${samba_cv_TIME_T_MAX+set}" = set; then
55131  $as_echo_n "(cached) " >&6
55132else
55133
55134if test "$cross_compiling" = yes; then
55135  samba_cv_TIME_T_MAX=cross
55136else
55137  cat >conftest.$ac_ext <<_ACEOF
55138/* confdefs.h.  */
55139_ACEOF
55140cat confdefs.h >>conftest.$ac_ext
55141cat >>conftest.$ac_ext <<_ACEOF
55142/* end confdefs.h.  */
55143#include <time.h>
55144main() {
55145	struct tm *tm;
55146	if (sizeof(time_t) == 8) {
55147		time_t max_time = 0x7fffffffffffffffll;
55148		tm = gmtime(&max_time);
55149		/* This should fail with 32-bit tm_year. */
55150		if (tm == NULL) {
55151			/* Max time_t that works with 32-bit int tm_year in struct tm. */
55152			max_time = 67768036191676799ll;
55153			tm = gmtime(&max_time);
55154			if (tm) {
55155				exit(0);
55156			}
55157		}
55158	}
55159	exit(1);
55160}
55161_ACEOF
55162rm -f conftest$ac_exeext
55163if { (ac_try="$ac_link"
55164case "(($ac_try" in
55165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55166  *) ac_try_echo=$ac_try;;
55167esac
55168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55169$as_echo "$ac_try_echo") >&5
55170  (eval "$ac_link") 2>&5
55171  ac_status=$?
55172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55173  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55174  { (case "(($ac_try" in
55175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55176  *) ac_try_echo=$ac_try;;
55177esac
55178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55179$as_echo "$ac_try_echo") >&5
55180  (eval "$ac_try") 2>&5
55181  ac_status=$?
55182  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55183  (exit $ac_status); }; }; then
55184  samba_cv_TIME_T_MAX=yes
55185else
55186  $as_echo "$as_me: program exited with status $ac_status" >&5
55187$as_echo "$as_me: failed program was:" >&5
55188sed 's/^/| /' conftest.$ac_ext >&5
55189
55190( exit $ac_status )
55191samba_cv_TIME_T_MAX=no
55192fi
55193rm -rf conftest.dSYM
55194rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55195fi
55196
55197
55198fi
55199{ $as_echo "$as_me:$LINENO: result: $samba_cv_TIME_T_MAX" >&5
55200$as_echo "$samba_cv_TIME_T_MAX" >&6; }
55201if test x"$samba_cv_TIME_T_MAX" = x"yes"; then
55202
55203cat >>confdefs.h <<\_ACEOF
55204#define TIME_T_MAX 67768036191676799ll
55205_ACEOF
55206
55207fi
55208
55209
55210{ $as_echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
55211$as_echo_n "checking for 64 bit off_t... " >&6; }
55212if test "${samba_cv_SIZEOF_OFF_T+set}" = set; then
55213  $as_echo_n "(cached) " >&6
55214else
55215
55216if test "$cross_compiling" = yes; then
55217  samba_cv_SIZEOF_OFF_T=cross
55218else
55219  cat >conftest.$ac_ext <<_ACEOF
55220/* confdefs.h.  */
55221_ACEOF
55222cat confdefs.h >>conftest.$ac_ext
55223cat >>conftest.$ac_ext <<_ACEOF
55224/* end confdefs.h.  */
55225#include <stdio.h>
55226#include <sys/stat.h>
55227main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
55228_ACEOF
55229rm -f conftest$ac_exeext
55230if { (ac_try="$ac_link"
55231case "(($ac_try" in
55232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55233  *) ac_try_echo=$ac_try;;
55234esac
55235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55236$as_echo "$ac_try_echo") >&5
55237  (eval "$ac_link") 2>&5
55238  ac_status=$?
55239  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55240  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55241  { (case "(($ac_try" in
55242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55243  *) ac_try_echo=$ac_try;;
55244esac
55245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55246$as_echo "$ac_try_echo") >&5
55247  (eval "$ac_try") 2>&5
55248  ac_status=$?
55249  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55250  (exit $ac_status); }; }; then
55251  samba_cv_SIZEOF_OFF_T=yes
55252else
55253  $as_echo "$as_me: program exited with status $ac_status" >&5
55254$as_echo "$as_me: failed program was:" >&5
55255sed 's/^/| /' conftest.$ac_ext >&5
55256
55257( exit $ac_status )
55258samba_cv_SIZEOF_OFF_T=no
55259fi
55260rm -rf conftest.dSYM
55261rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55262fi
55263
55264
55265fi
55266{ $as_echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_OFF_T" >&5
55267$as_echo "$samba_cv_SIZEOF_OFF_T" >&6; }
55268if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
55269
55270cat >>confdefs.h <<\_ACEOF
55271#define SIZEOF_OFF_T 8
55272_ACEOF
55273
55274fi
55275
55276{ $as_echo "$as_me:$LINENO: checking for off64_t" >&5
55277$as_echo_n "checking for off64_t... " >&6; }
55278if test "${samba_cv_HAVE_OFF64_T+set}" = set; then
55279  $as_echo_n "(cached) " >&6
55280else
55281
55282if test "$cross_compiling" = yes; then
55283  samba_cv_HAVE_OFF64_T=cross
55284else
55285  cat >conftest.$ac_ext <<_ACEOF
55286/* confdefs.h.  */
55287_ACEOF
55288cat confdefs.h >>conftest.$ac_ext
55289cat >>conftest.$ac_ext <<_ACEOF
55290/* end confdefs.h.  */
55291
55292#if defined(HAVE_UNISTD_H)
55293#include <unistd.h>
55294#endif
55295#include <stdio.h>
55296#include <sys/stat.h>
55297main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
55298_ACEOF
55299rm -f conftest$ac_exeext
55300if { (ac_try="$ac_link"
55301case "(($ac_try" in
55302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55303  *) ac_try_echo=$ac_try;;
55304esac
55305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55306$as_echo "$ac_try_echo") >&5
55307  (eval "$ac_link") 2>&5
55308  ac_status=$?
55309  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55310  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55311  { (case "(($ac_try" in
55312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55313  *) ac_try_echo=$ac_try;;
55314esac
55315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55316$as_echo "$ac_try_echo") >&5
55317  (eval "$ac_try") 2>&5
55318  ac_status=$?
55319  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55320  (exit $ac_status); }; }; then
55321  samba_cv_HAVE_OFF64_T=yes
55322else
55323  $as_echo "$as_me: program exited with status $ac_status" >&5
55324$as_echo "$as_me: failed program was:" >&5
55325sed 's/^/| /' conftest.$ac_ext >&5
55326
55327( exit $ac_status )
55328samba_cv_HAVE_OFF64_T=no
55329fi
55330rm -rf conftest.dSYM
55331rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55332fi
55333
55334
55335fi
55336{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_OFF64_T" >&5
55337$as_echo "$samba_cv_HAVE_OFF64_T" >&6; }
55338if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
55339
55340cat >>confdefs.h <<\_ACEOF
55341#define HAVE_OFF64_T 1
55342_ACEOF
55343
55344fi
55345
55346{ $as_echo "$as_me:$LINENO: checking for 64 bit ino_t" >&5
55347$as_echo_n "checking for 64 bit ino_t... " >&6; }
55348if test "${samba_cv_SIZEOF_INO_T+set}" = set; then
55349  $as_echo_n "(cached) " >&6
55350else
55351
55352if test "$cross_compiling" = yes; then
55353  samba_cv_SIZEOF_INO_T=cross
55354else
55355  cat >conftest.$ac_ext <<_ACEOF
55356/* confdefs.h.  */
55357_ACEOF
55358cat confdefs.h >>conftest.$ac_ext
55359cat >>conftest.$ac_ext <<_ACEOF
55360/* end confdefs.h.  */
55361
55362#if defined(HAVE_UNISTD_H)
55363#include <unistd.h>
55364#endif
55365#include <stdio.h>
55366#include <sys/stat.h>
55367main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
55368_ACEOF
55369rm -f conftest$ac_exeext
55370if { (ac_try="$ac_link"
55371case "(($ac_try" in
55372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55373  *) ac_try_echo=$ac_try;;
55374esac
55375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55376$as_echo "$ac_try_echo") >&5
55377  (eval "$ac_link") 2>&5
55378  ac_status=$?
55379  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55380  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55381  { (case "(($ac_try" in
55382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55383  *) ac_try_echo=$ac_try;;
55384esac
55385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55386$as_echo "$ac_try_echo") >&5
55387  (eval "$ac_try") 2>&5
55388  ac_status=$?
55389  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55390  (exit $ac_status); }; }; then
55391  samba_cv_SIZEOF_INO_T=yes
55392else
55393  $as_echo "$as_me: program exited with status $ac_status" >&5
55394$as_echo "$as_me: failed program was:" >&5
55395sed 's/^/| /' conftest.$ac_ext >&5
55396
55397( exit $ac_status )
55398samba_cv_SIZEOF_INO_T=no
55399fi
55400rm -rf conftest.dSYM
55401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55402fi
55403
55404
55405fi
55406{ $as_echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_INO_T" >&5
55407$as_echo "$samba_cv_SIZEOF_INO_T" >&6; }
55408if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
55409
55410cat >>confdefs.h <<\_ACEOF
55411#define SIZEOF_INO_T 8
55412_ACEOF
55413
55414fi
55415
55416{ $as_echo "$as_me:$LINENO: checking for ino64_t" >&5
55417$as_echo_n "checking for ino64_t... " >&6; }
55418if test "${samba_cv_HAVE_INO64_T+set}" = set; then
55419  $as_echo_n "(cached) " >&6
55420else
55421
55422if test "$cross_compiling" = yes; then
55423  samba_cv_HAVE_INO64_T=cross
55424else
55425  cat >conftest.$ac_ext <<_ACEOF
55426/* confdefs.h.  */
55427_ACEOF
55428cat confdefs.h >>conftest.$ac_ext
55429cat >>conftest.$ac_ext <<_ACEOF
55430/* end confdefs.h.  */
55431
55432#if defined(HAVE_UNISTD_H)
55433#include <unistd.h>
55434#endif
55435#include <stdio.h>
55436#include <sys/stat.h>
55437main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
55438_ACEOF
55439rm -f conftest$ac_exeext
55440if { (ac_try="$ac_link"
55441case "(($ac_try" in
55442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55443  *) ac_try_echo=$ac_try;;
55444esac
55445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55446$as_echo "$ac_try_echo") >&5
55447  (eval "$ac_link") 2>&5
55448  ac_status=$?
55449  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55450  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55451  { (case "(($ac_try" in
55452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55453  *) ac_try_echo=$ac_try;;
55454esac
55455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55456$as_echo "$ac_try_echo") >&5
55457  (eval "$ac_try") 2>&5
55458  ac_status=$?
55459  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55460  (exit $ac_status); }; }; then
55461  samba_cv_HAVE_INO64_T=yes
55462else
55463  $as_echo "$as_me: program exited with status $ac_status" >&5
55464$as_echo "$as_me: failed program was:" >&5
55465sed 's/^/| /' conftest.$ac_ext >&5
55466
55467( exit $ac_status )
55468samba_cv_HAVE_INO64_T=no
55469fi
55470rm -rf conftest.dSYM
55471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55472fi
55473
55474
55475fi
55476{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_INO64_T" >&5
55477$as_echo "$samba_cv_HAVE_INO64_T" >&6; }
55478if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
55479
55480cat >>confdefs.h <<\_ACEOF
55481#define HAVE_INO64_T 1
55482_ACEOF
55483
55484fi
55485
55486{ $as_echo "$as_me:$LINENO: checking for 64 bit dev_t" >&5
55487$as_echo_n "checking for 64 bit dev_t... " >&6; }
55488if test "${samba_cv_SIZEOF_DEV_T+set}" = set; then
55489  $as_echo_n "(cached) " >&6
55490else
55491
55492if test "$cross_compiling" = yes; then
55493  samba_cv_SIZEOF_DEV_T=cross
55494else
55495  cat >conftest.$ac_ext <<_ACEOF
55496/* confdefs.h.  */
55497_ACEOF
55498cat confdefs.h >>conftest.$ac_ext
55499cat >>conftest.$ac_ext <<_ACEOF
55500/* end confdefs.h.  */
55501
55502#if defined(HAVE_UNISTD_H)
55503#include <unistd.h>
55504#endif
55505#include <stdio.h>
55506#include <sys/stat.h>
55507main() { exit((sizeof(dev_t) == 8) ? 0 : 1); }
55508_ACEOF
55509rm -f conftest$ac_exeext
55510if { (ac_try="$ac_link"
55511case "(($ac_try" in
55512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55513  *) ac_try_echo=$ac_try;;
55514esac
55515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55516$as_echo "$ac_try_echo") >&5
55517  (eval "$ac_link") 2>&5
55518  ac_status=$?
55519  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55520  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55521  { (case "(($ac_try" in
55522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55523  *) ac_try_echo=$ac_try;;
55524esac
55525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55526$as_echo "$ac_try_echo") >&5
55527  (eval "$ac_try") 2>&5
55528  ac_status=$?
55529  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55530  (exit $ac_status); }; }; then
55531  samba_cv_SIZEOF_DEV_T=yes
55532else
55533  $as_echo "$as_me: program exited with status $ac_status" >&5
55534$as_echo "$as_me: failed program was:" >&5
55535sed 's/^/| /' conftest.$ac_ext >&5
55536
55537( exit $ac_status )
55538samba_cv_SIZEOF_DEV_T=no
55539fi
55540rm -rf conftest.dSYM
55541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55542fi
55543
55544
55545fi
55546{ $as_echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_DEV_T" >&5
55547$as_echo "$samba_cv_SIZEOF_DEV_T" >&6; }
55548if test x"$samba_cv_SIZEOF_DEV_T" = x"yes"; then
55549
55550cat >>confdefs.h <<\_ACEOF
55551#define SIZEOF_DEV_T 8
55552_ACEOF
55553
55554fi
55555
55556{ $as_echo "$as_me:$LINENO: checking for dev64_t" >&5
55557$as_echo_n "checking for dev64_t... " >&6; }
55558if test "${samba_cv_HAVE_DEV64_T+set}" = set; then
55559  $as_echo_n "(cached) " >&6
55560else
55561
55562if test "$cross_compiling" = yes; then
55563  samba_cv_HAVE_DEV64_T=cross
55564else
55565  cat >conftest.$ac_ext <<_ACEOF
55566/* confdefs.h.  */
55567_ACEOF
55568cat confdefs.h >>conftest.$ac_ext
55569cat >>conftest.$ac_ext <<_ACEOF
55570/* end confdefs.h.  */
55571
55572#if defined(HAVE_UNISTD_H)
55573#include <unistd.h>
55574#endif
55575#include <stdio.h>
55576#include <sys/stat.h>
55577main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
55578_ACEOF
55579rm -f conftest$ac_exeext
55580if { (ac_try="$ac_link"
55581case "(($ac_try" in
55582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55583  *) ac_try_echo=$ac_try;;
55584esac
55585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55586$as_echo "$ac_try_echo") >&5
55587  (eval "$ac_link") 2>&5
55588  ac_status=$?
55589  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55590  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55591  { (case "(($ac_try" in
55592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55593  *) ac_try_echo=$ac_try;;
55594esac
55595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55596$as_echo "$ac_try_echo") >&5
55597  (eval "$ac_try") 2>&5
55598  ac_status=$?
55599  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55600  (exit $ac_status); }; }; then
55601  samba_cv_HAVE_DEV64_T=yes
55602else
55603  $as_echo "$as_me: program exited with status $ac_status" >&5
55604$as_echo "$as_me: failed program was:" >&5
55605sed 's/^/| /' conftest.$ac_ext >&5
55606
55607( exit $ac_status )
55608samba_cv_HAVE_DEV64_T=no
55609fi
55610rm -rf conftest.dSYM
55611rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55612fi
55613
55614
55615fi
55616{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEV64_T" >&5
55617$as_echo "$samba_cv_HAVE_DEV64_T" >&6; }
55618if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
55619
55620cat >>confdefs.h <<\_ACEOF
55621#define HAVE_DEV64_T 1
55622_ACEOF
55623
55624fi
55625
55626{ $as_echo "$as_me:$LINENO: checking for struct dirent64" >&5
55627$as_echo_n "checking for struct dirent64... " >&6; }
55628if test "${samba_cv_HAVE_STRUCT_DIR64+set}" = set; then
55629  $as_echo_n "(cached) " >&6
55630else
55631
55632cat >conftest.$ac_ext <<_ACEOF
55633/* confdefs.h.  */
55634_ACEOF
55635cat confdefs.h >>conftest.$ac_ext
55636cat >>conftest.$ac_ext <<_ACEOF
55637/* end confdefs.h.  */
55638
55639#if defined(HAVE_UNISTD_H)
55640#include <unistd.h>
55641#endif
55642#include <sys/types.h>
55643#include <dirent.h>
55644int
55645main ()
55646{
55647DIR64 de;
55648  ;
55649  return 0;
55650}
55651_ACEOF
55652rm -f conftest.$ac_objext
55653if { (ac_try="$ac_compile"
55654case "(($ac_try" in
55655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55656  *) ac_try_echo=$ac_try;;
55657esac
55658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55659$as_echo "$ac_try_echo") >&5
55660  (eval "$ac_compile") 2>conftest.er1
55661  ac_status=$?
55662  grep -v '^ *+' conftest.er1 >conftest.err
55663  rm -f conftest.er1
55664  cat conftest.err >&5
55665  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55666  (exit $ac_status); } && {
55667	 test -z "$ac_c_werror_flag" ||
55668	 test ! -s conftest.err
55669       } && test -s conftest.$ac_objext; then
55670  samba_cv_HAVE_STRUCT_DIR64=yes
55671else
55672  $as_echo "$as_me: failed program was:" >&5
55673sed 's/^/| /' conftest.$ac_ext >&5
55674
55675	samba_cv_HAVE_STRUCT_DIR64=no
55676fi
55677
55678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55679fi
55680{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIR64" >&5
55681$as_echo "$samba_cv_HAVE_STRUCT_DIR64" >&6; }
55682if test x"$samba_cv_HAVE_STRUCT_DIR64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
55683
55684cat >>confdefs.h <<\_ACEOF
55685#define HAVE_STRUCT_DIR64 1
55686_ACEOF
55687
55688fi
55689
55690{ $as_echo "$as_me:$LINENO: checking for struct dirent64" >&5
55691$as_echo_n "checking for struct dirent64... " >&6; }
55692if test "${samba_cv_HAVE_STRUCT_DIRENT64+set}" = set; then
55693  $as_echo_n "(cached) " >&6
55694else
55695
55696cat >conftest.$ac_ext <<_ACEOF
55697/* confdefs.h.  */
55698_ACEOF
55699cat confdefs.h >>conftest.$ac_ext
55700cat >>conftest.$ac_ext <<_ACEOF
55701/* end confdefs.h.  */
55702
55703#if defined(HAVE_UNISTD_H)
55704#include <unistd.h>
55705#endif
55706#include <sys/types.h>
55707#include <dirent.h>
55708int
55709main ()
55710{
55711struct dirent64 de;
55712  ;
55713  return 0;
55714}
55715_ACEOF
55716rm -f conftest.$ac_objext
55717if { (ac_try="$ac_compile"
55718case "(($ac_try" in
55719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55720  *) ac_try_echo=$ac_try;;
55721esac
55722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55723$as_echo "$ac_try_echo") >&5
55724  (eval "$ac_compile") 2>conftest.er1
55725  ac_status=$?
55726  grep -v '^ *+' conftest.er1 >conftest.err
55727  rm -f conftest.er1
55728  cat conftest.err >&5
55729  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55730  (exit $ac_status); } && {
55731	 test -z "$ac_c_werror_flag" ||
55732	 test ! -s conftest.err
55733       } && test -s conftest.$ac_objext; then
55734  samba_cv_HAVE_STRUCT_DIRENT64=yes
55735else
55736  $as_echo "$as_me: failed program was:" >&5
55737sed 's/^/| /' conftest.$ac_ext >&5
55738
55739	samba_cv_HAVE_STRUCT_DIRENT64=no
55740fi
55741
55742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55743fi
55744{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIRENT64" >&5
55745$as_echo "$samba_cv_HAVE_STRUCT_DIRENT64" >&6; }
55746if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
55747
55748cat >>confdefs.h <<\_ACEOF
55749#define HAVE_STRUCT_DIRENT64 1
55750_ACEOF
55751
55752fi
55753
55754{ $as_echo "$as_me:$LINENO: checking for major macro" >&5
55755$as_echo_n "checking for major macro... " >&6; }
55756if test "${samba_cv_HAVE_DEVICE_MAJOR_FN+set}" = set; then
55757  $as_echo_n "(cached) " >&6
55758else
55759
55760if test "$cross_compiling" = yes; then
55761  samba_cv_HAVE_DEVICE_MAJOR_FN=cross
55762else
55763  cat >conftest.$ac_ext <<_ACEOF
55764/* confdefs.h.  */
55765_ACEOF
55766cat confdefs.h >>conftest.$ac_ext
55767cat >>conftest.$ac_ext <<_ACEOF
55768/* end confdefs.h.  */
55769
55770#if defined(HAVE_UNISTD_H)
55771#include <unistd.h>
55772#endif
55773#include <sys/types.h>
55774main() { dev_t dev; int i = major(dev); return 0; }
55775_ACEOF
55776rm -f conftest$ac_exeext
55777if { (ac_try="$ac_link"
55778case "(($ac_try" in
55779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55780  *) ac_try_echo=$ac_try;;
55781esac
55782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55783$as_echo "$ac_try_echo") >&5
55784  (eval "$ac_link") 2>&5
55785  ac_status=$?
55786  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55787  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55788  { (case "(($ac_try" in
55789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55790  *) ac_try_echo=$ac_try;;
55791esac
55792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55793$as_echo "$ac_try_echo") >&5
55794  (eval "$ac_try") 2>&5
55795  ac_status=$?
55796  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55797  (exit $ac_status); }; }; then
55798  samba_cv_HAVE_DEVICE_MAJOR_FN=yes
55799else
55800  $as_echo "$as_me: program exited with status $ac_status" >&5
55801$as_echo "$as_me: failed program was:" >&5
55802sed 's/^/| /' conftest.$ac_ext >&5
55803
55804( exit $ac_status )
55805samba_cv_HAVE_DEVICE_MAJOR_FN=no
55806fi
55807rm -rf conftest.dSYM
55808rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55809fi
55810
55811
55812fi
55813{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MAJOR_FN" >&5
55814$as_echo "$samba_cv_HAVE_DEVICE_MAJOR_FN" >&6; }
55815if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
55816
55817cat >>confdefs.h <<\_ACEOF
55818#define HAVE_DEVICE_MAJOR_FN 1
55819_ACEOF
55820
55821fi
55822
55823{ $as_echo "$as_me:$LINENO: checking for minor macro" >&5
55824$as_echo_n "checking for minor macro... " >&6; }
55825if test "${samba_cv_HAVE_DEVICE_MINOR_FN+set}" = set; then
55826  $as_echo_n "(cached) " >&6
55827else
55828
55829if test "$cross_compiling" = yes; then
55830  samba_cv_HAVE_DEVICE_MINOR_FN=cross
55831else
55832  cat >conftest.$ac_ext <<_ACEOF
55833/* confdefs.h.  */
55834_ACEOF
55835cat confdefs.h >>conftest.$ac_ext
55836cat >>conftest.$ac_ext <<_ACEOF
55837/* end confdefs.h.  */
55838
55839#if defined(HAVE_UNISTD_H)
55840#include <unistd.h>
55841#endif
55842#include <sys/types.h>
55843main() { dev_t dev; int i = minor(dev); return 0; }
55844_ACEOF
55845rm -f conftest$ac_exeext
55846if { (ac_try="$ac_link"
55847case "(($ac_try" in
55848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55849  *) ac_try_echo=$ac_try;;
55850esac
55851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55852$as_echo "$ac_try_echo") >&5
55853  (eval "$ac_link") 2>&5
55854  ac_status=$?
55855  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55856  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55857  { (case "(($ac_try" in
55858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55859  *) ac_try_echo=$ac_try;;
55860esac
55861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55862$as_echo "$ac_try_echo") >&5
55863  (eval "$ac_try") 2>&5
55864  ac_status=$?
55865  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55866  (exit $ac_status); }; }; then
55867  samba_cv_HAVE_DEVICE_MINOR_FN=yes
55868else
55869  $as_echo "$as_me: program exited with status $ac_status" >&5
55870$as_echo "$as_me: failed program was:" >&5
55871sed 's/^/| /' conftest.$ac_ext >&5
55872
55873( exit $ac_status )
55874samba_cv_HAVE_DEVICE_MINOR_FN=no
55875fi
55876rm -rf conftest.dSYM
55877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55878fi
55879
55880
55881fi
55882{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MINOR_FN" >&5
55883$as_echo "$samba_cv_HAVE_DEVICE_MINOR_FN" >&6; }
55884if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
55885
55886cat >>confdefs.h <<\_ACEOF
55887#define HAVE_DEVICE_MINOR_FN 1
55888_ACEOF
55889
55890fi
55891
55892{ $as_echo "$as_me:$LINENO: checking for makedev macro" >&5
55893$as_echo_n "checking for makedev macro... " >&6; }
55894if test "${samba_cv_HAVE_MAKEDEV+set}" = set; then
55895  $as_echo_n "(cached) " >&6
55896else
55897
55898if test "$cross_compiling" = yes; then
55899  samba_cv_HAVE_MAKEDEV=cross
55900else
55901  cat >conftest.$ac_ext <<_ACEOF
55902/* confdefs.h.  */
55903_ACEOF
55904cat confdefs.h >>conftest.$ac_ext
55905cat >>conftest.$ac_ext <<_ACEOF
55906/* end confdefs.h.  */
55907
55908#if defined(HAVE_UNISTD_H)
55909#include <unistd.h>
55910#endif
55911#include <sys/types.h>
55912main() { dev_t dev = makedev(1,2); return 0; }
55913_ACEOF
55914rm -f conftest$ac_exeext
55915if { (ac_try="$ac_link"
55916case "(($ac_try" in
55917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55918  *) ac_try_echo=$ac_try;;
55919esac
55920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55921$as_echo "$ac_try_echo") >&5
55922  (eval "$ac_link") 2>&5
55923  ac_status=$?
55924  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55925  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55926  { (case "(($ac_try" in
55927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55928  *) ac_try_echo=$ac_try;;
55929esac
55930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55931$as_echo "$ac_try_echo") >&5
55932  (eval "$ac_try") 2>&5
55933  ac_status=$?
55934  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55935  (exit $ac_status); }; }; then
55936  samba_cv_HAVE_MAKEDEV=yes
55937else
55938  $as_echo "$as_me: program exited with status $ac_status" >&5
55939$as_echo "$as_me: failed program was:" >&5
55940sed 's/^/| /' conftest.$ac_ext >&5
55941
55942( exit $ac_status )
55943samba_cv_HAVE_MAKEDEV=no
55944fi
55945rm -rf conftest.dSYM
55946rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55947fi
55948
55949
55950fi
55951{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_MAKEDEV" >&5
55952$as_echo "$samba_cv_HAVE_MAKEDEV" >&6; }
55953if test x"$samba_cv_HAVE_MAKEDEV" = x"yes"; then
55954
55955cat >>confdefs.h <<\_ACEOF
55956#define HAVE_MAKEDEV 1
55957_ACEOF
55958
55959fi
55960
55961{ $as_echo "$as_me:$LINENO: checking for unsigned char" >&5
55962$as_echo_n "checking for unsigned char... " >&6; }
55963if test "${samba_cv_HAVE_UNSIGNED_CHAR+set}" = set; then
55964  $as_echo_n "(cached) " >&6
55965else
55966
55967if test "$cross_compiling" = yes; then
55968  samba_cv_HAVE_UNSIGNED_CHAR=cross
55969else
55970  cat >conftest.$ac_ext <<_ACEOF
55971/* confdefs.h.  */
55972_ACEOF
55973cat confdefs.h >>conftest.$ac_ext
55974cat >>conftest.$ac_ext <<_ACEOF
55975/* end confdefs.h.  */
55976#include <stdio.h>
55977main() { char c; c=250; exit((c > 0)?0:1); }
55978_ACEOF
55979rm -f conftest$ac_exeext
55980if { (ac_try="$ac_link"
55981case "(($ac_try" in
55982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55983  *) ac_try_echo=$ac_try;;
55984esac
55985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55986$as_echo "$ac_try_echo") >&5
55987  (eval "$ac_link") 2>&5
55988  ac_status=$?
55989  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55990  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55991  { (case "(($ac_try" in
55992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55993  *) ac_try_echo=$ac_try;;
55994esac
55995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55996$as_echo "$ac_try_echo") >&5
55997  (eval "$ac_try") 2>&5
55998  ac_status=$?
55999  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56000  (exit $ac_status); }; }; then
56001  samba_cv_HAVE_UNSIGNED_CHAR=yes
56002else
56003  $as_echo "$as_me: program exited with status $ac_status" >&5
56004$as_echo "$as_me: failed program was:" >&5
56005sed 's/^/| /' conftest.$ac_ext >&5
56006
56007( exit $ac_status )
56008samba_cv_HAVE_UNSIGNED_CHAR=no
56009fi
56010rm -rf conftest.dSYM
56011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56012fi
56013
56014
56015fi
56016{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_UNSIGNED_CHAR" >&5
56017$as_echo "$samba_cv_HAVE_UNSIGNED_CHAR" >&6; }
56018if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
56019
56020cat >>confdefs.h <<\_ACEOF
56021#define HAVE_UNSIGNED_CHAR 1
56022_ACEOF
56023
56024fi
56025
56026{ $as_echo "$as_me:$LINENO: checking whether seekdir returns void" >&5
56027$as_echo_n "checking whether seekdir returns void... " >&6; }
56028if test "${samba_cv_SEEKDIR_RETURNS_VOID+set}" = set; then
56029  $as_echo_n "(cached) " >&6
56030else
56031
56032cat >conftest.$ac_ext <<_ACEOF
56033/* confdefs.h.  */
56034_ACEOF
56035cat confdefs.h >>conftest.$ac_ext
56036cat >>conftest.$ac_ext <<_ACEOF
56037/* end confdefs.h.  */
56038#include <sys/types.h>
56039#include <dirent.h>
56040void seekdir(DIR *d, long loc) { return; }
56041int
56042main ()
56043{
56044return 0;
56045  ;
56046  return 0;
56047}
56048_ACEOF
56049rm -f conftest.$ac_objext
56050if { (ac_try="$ac_compile"
56051case "(($ac_try" in
56052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56053  *) ac_try_echo=$ac_try;;
56054esac
56055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56056$as_echo "$ac_try_echo") >&5
56057  (eval "$ac_compile") 2>conftest.er1
56058  ac_status=$?
56059  grep -v '^ *+' conftest.er1 >conftest.err
56060  rm -f conftest.er1
56061  cat conftest.err >&5
56062  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56063  (exit $ac_status); } && {
56064	 test -z "$ac_c_werror_flag" ||
56065	 test ! -s conftest.err
56066       } && test -s conftest.$ac_objext; then
56067  samba_cv_SEEKDIR_RETURNS_VOID=yes
56068else
56069  $as_echo "$as_me: failed program was:" >&5
56070sed 's/^/| /' conftest.$ac_ext >&5
56071
56072	samba_cv_SEEKDIR_RETURNS_VOID=no
56073fi
56074
56075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56076fi
56077{ $as_echo "$as_me:$LINENO: result: $samba_cv_SEEKDIR_RETURNS_VOID" >&5
56078$as_echo "$samba_cv_SEEKDIR_RETURNS_VOID" >&6; }
56079if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
56080
56081cat >>confdefs.h <<\_ACEOF
56082#define SEEKDIR_RETURNS_VOID 1
56083_ACEOF
56084
56085fi
56086
56087{ $as_echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
56088$as_echo_n "checking for __FUNCTION__ macro... " >&6; }
56089if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
56090  $as_echo_n "(cached) " >&6
56091else
56092
56093cat >conftest.$ac_ext <<_ACEOF
56094/* confdefs.h.  */
56095_ACEOF
56096cat confdefs.h >>conftest.$ac_ext
56097cat >>conftest.$ac_ext <<_ACEOF
56098/* end confdefs.h.  */
56099#include <stdio.h>
56100int
56101main ()
56102{
56103printf("%s\n", __FUNCTION__);
56104  ;
56105  return 0;
56106}
56107_ACEOF
56108rm -f conftest.$ac_objext
56109if { (ac_try="$ac_compile"
56110case "(($ac_try" in
56111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56112  *) ac_try_echo=$ac_try;;
56113esac
56114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56115$as_echo "$ac_try_echo") >&5
56116  (eval "$ac_compile") 2>conftest.er1
56117  ac_status=$?
56118  grep -v '^ *+' conftest.er1 >conftest.err
56119  rm -f conftest.er1
56120  cat conftest.err >&5
56121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56122  (exit $ac_status); } && {
56123	 test -z "$ac_c_werror_flag" ||
56124	 test ! -s conftest.err
56125       } && test -s conftest.$ac_objext; then
56126  samba_cv_HAVE_FUNCTION_MACRO=yes
56127else
56128  $as_echo "$as_me: failed program was:" >&5
56129sed 's/^/| /' conftest.$ac_ext >&5
56130
56131	samba_cv_HAVE_FUNCTION_MACRO=no
56132fi
56133
56134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56135fi
56136{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
56137$as_echo "$samba_cv_HAVE_FUNCTION_MACRO" >&6; }
56138if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
56139
56140cat >>confdefs.h <<\_ACEOF
56141#define HAVE_FUNCTION_MACRO 1
56142_ACEOF
56143
56144fi
56145
56146{ $as_echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
56147$as_echo_n "checking if gettimeofday takes tz argument... " >&6; }
56148if test "${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
56149  $as_echo_n "(cached) " >&6
56150else
56151
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
56159#include <sys/time.h>
56160#include <unistd.h>
56161int
56162main ()
56163{
56164struct timeval tv; return gettimeofday(&tv, NULL);
56165  ;
56166  return 0;
56167}
56168_ACEOF
56169rm -f conftest.$ac_objext conftest$ac_exeext
56170if { (ac_try="$ac_link"
56171case "(($ac_try" in
56172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56173  *) ac_try_echo=$ac_try;;
56174esac
56175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56176$as_echo "$ac_try_echo") >&5
56177  (eval "$ac_link") 2>conftest.er1
56178  ac_status=$?
56179  grep -v '^ *+' conftest.er1 >conftest.err
56180  rm -f conftest.er1
56181  cat conftest.err >&5
56182  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56183  (exit $ac_status); } && {
56184	 test -z "$ac_c_werror_flag" ||
56185	 test ! -s conftest.err
56186       } && test -s conftest$ac_exeext && {
56187	 test "$cross_compiling" = yes ||
56188	 $as_test_x conftest$ac_exeext
56189       }; then
56190  samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
56191else
56192  $as_echo "$as_me: failed program was:" >&5
56193sed 's/^/| /' conftest.$ac_ext >&5
56194
56195	samba_cv_HAVE_GETTIMEOFDAY_TZ=no
56196fi
56197
56198rm -rf conftest.dSYM
56199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56200      conftest$ac_exeext conftest.$ac_ext
56201fi
56202{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_GETTIMEOFDAY_TZ" >&5
56203$as_echo "$samba_cv_HAVE_GETTIMEOFDAY_TZ" >&6; }
56204if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
56205
56206cat >>confdefs.h <<\_ACEOF
56207#define HAVE_GETTIMEOFDAY_TZ 1
56208_ACEOF
56209
56210fi
56211
56212if test x"$samba_cv_WITH_PROFILE" = x"yes"; then
56213
56214    # On some systems (eg. Linux) librt can pull in libpthread. We
56215    # don't want this to happen because libpthreads changes signal delivery
56216    # semantics in ways we are not prepared for. This breaks Linux oplocks
56217    # which rely on signals.
56218
56219
56220
56221for ac_func in clock_gettime
56222do
56223as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
56224{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
56225$as_echo_n "checking for $ac_func... " >&6; }
56226if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56227  $as_echo_n "(cached) " >&6
56228else
56229  cat >conftest.$ac_ext <<_ACEOF
56230/* confdefs.h.  */
56231_ACEOF
56232cat confdefs.h >>conftest.$ac_ext
56233cat >>conftest.$ac_ext <<_ACEOF
56234/* end confdefs.h.  */
56235/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56236   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56237#define $ac_func innocuous_$ac_func
56238
56239/* System header to define __stub macros and hopefully few prototypes,
56240    which can conflict with char $ac_func (); below.
56241    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56242    <limits.h> exists even on freestanding compilers.  */
56243
56244#ifdef __STDC__
56245# include <limits.h>
56246#else
56247# include <assert.h>
56248#endif
56249
56250#undef $ac_func
56251
56252/* Override any GCC internal prototype to avoid an error.
56253   Use char because int might match the return type of a GCC
56254   builtin and then its argument prototype would still apply.  */
56255#ifdef __cplusplus
56256extern "C"
56257#endif
56258char $ac_func ();
56259/* The GNU C library defines this for functions which it implements
56260    to always fail with ENOSYS.  Some functions are actually named
56261    something starting with __ and the normal name is an alias.  */
56262#if defined __stub_$ac_func || defined __stub___$ac_func
56263choke me
56264#endif
56265
56266int
56267main ()
56268{
56269return $ac_func ();
56270  ;
56271  return 0;
56272}
56273_ACEOF
56274rm -f conftest.$ac_objext conftest$ac_exeext
56275if { (ac_try="$ac_link"
56276case "(($ac_try" in
56277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56278  *) ac_try_echo=$ac_try;;
56279esac
56280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56281$as_echo "$ac_try_echo") >&5
56282  (eval "$ac_link") 2>conftest.er1
56283  ac_status=$?
56284  grep -v '^ *+' conftest.er1 >conftest.err
56285  rm -f conftest.er1
56286  cat conftest.err >&5
56287  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56288  (exit $ac_status); } && {
56289	 test -z "$ac_c_werror_flag" ||
56290	 test ! -s conftest.err
56291       } && test -s conftest$ac_exeext && {
56292	 test "$cross_compiling" = yes ||
56293	 $as_test_x conftest$ac_exeext
56294       }; then
56295  eval "$as_ac_var=yes"
56296else
56297  $as_echo "$as_me: failed program was:" >&5
56298sed 's/^/| /' conftest.$ac_ext >&5
56299
56300	eval "$as_ac_var=no"
56301fi
56302
56303rm -rf conftest.dSYM
56304rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56305      conftest$ac_exeext conftest.$ac_ext
56306fi
56307ac_res=`eval 'as_val=${'$as_ac_var'}
56308		 $as_echo "$as_val"'`
56309	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
56310$as_echo "$ac_res" >&6; }
56311as_val=`eval 'as_val=${'$as_ac_var'}
56312		 $as_echo "$as_val"'`
56313   if test "x$as_val" = x""yes; then
56314  cat >>confdefs.h <<_ACEOF
56315#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
56316_ACEOF
56317
56318        # clock_gettime was found in libc or existing $LIBS
56319
56320
56321
56322cat >>confdefs.h <<\_ACEOF
56323#define HAVE_CLOCK_GETTIME 1
56324_ACEOF
56325
56326
56327    { $as_echo "$as_me:$LINENO: checking for CLOCK_MONOTONIC" >&5
56328$as_echo_n "checking for CLOCK_MONOTONIC... " >&6; }
56329    cat >conftest.$ac_ext <<_ACEOF
56330/* confdefs.h.  */
56331_ACEOF
56332cat confdefs.h >>conftest.$ac_ext
56333cat >>conftest.$ac_ext <<_ACEOF
56334/* end confdefs.h.  */
56335
56336#if TIME_WITH_SYS_TIME
56337# include <sys/time.h>
56338# include <time.h>
56339#else
56340# if HAVE_SYS_TIME_H
56341#  include <sys/time.h>
56342# else
56343#  include <time.h>
56344# endif
56345#endif
56346
56347int
56348main ()
56349{
56350
56351clockid_t clk = CLOCK_MONOTONIC;
56352
56353  ;
56354  return 0;
56355}
56356_ACEOF
56357rm -f conftest.$ac_objext conftest$ac_exeext
56358if { (ac_try="$ac_link"
56359case "(($ac_try" in
56360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56361  *) ac_try_echo=$ac_try;;
56362esac
56363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56364$as_echo "$ac_try_echo") >&5
56365  (eval "$ac_link") 2>conftest.er1
56366  ac_status=$?
56367  grep -v '^ *+' conftest.er1 >conftest.err
56368  rm -f conftest.er1
56369  cat conftest.err >&5
56370  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56371  (exit $ac_status); } && {
56372	 test -z "$ac_c_werror_flag" ||
56373	 test ! -s conftest.err
56374       } && test -s conftest$ac_exeext && {
56375	 test "$cross_compiling" = yes ||
56376	 $as_test_x conftest$ac_exeext
56377       }; then
56378
56379	{ $as_echo "$as_me:$LINENO: result: yes" >&5
56380$as_echo "yes" >&6; }
56381
56382cat >>confdefs.h <<\_ACEOF
56383#define HAVE_CLOCK_MONOTONIC 1
56384_ACEOF
56385
56386
56387else
56388  $as_echo "$as_me: failed program was:" >&5
56389sed 's/^/| /' conftest.$ac_ext >&5
56390
56391
56392	{ $as_echo "$as_me:$LINENO: result: no" >&5
56393$as_echo "no" >&6; }
56394
56395fi
56396
56397rm -rf conftest.dSYM
56398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56399      conftest$ac_exeext conftest.$ac_ext
56400
56401
56402    { $as_echo "$as_me:$LINENO: checking for CLOCK_PROCESS_CPUTIME_ID" >&5
56403$as_echo_n "checking for CLOCK_PROCESS_CPUTIME_ID... " >&6; }
56404    cat >conftest.$ac_ext <<_ACEOF
56405/* confdefs.h.  */
56406_ACEOF
56407cat confdefs.h >>conftest.$ac_ext
56408cat >>conftest.$ac_ext <<_ACEOF
56409/* end confdefs.h.  */
56410
56411#if TIME_WITH_SYS_TIME
56412# include <sys/time.h>
56413# include <time.h>
56414#else
56415# if HAVE_SYS_TIME_H
56416#  include <sys/time.h>
56417# else
56418#  include <time.h>
56419# endif
56420#endif
56421
56422int
56423main ()
56424{
56425
56426clockid_t clk = CLOCK_PROCESS_CPUTIME_ID;
56427
56428  ;
56429  return 0;
56430}
56431_ACEOF
56432rm -f conftest.$ac_objext conftest$ac_exeext
56433if { (ac_try="$ac_link"
56434case "(($ac_try" in
56435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56436  *) ac_try_echo=$ac_try;;
56437esac
56438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56439$as_echo "$ac_try_echo") >&5
56440  (eval "$ac_link") 2>conftest.er1
56441  ac_status=$?
56442  grep -v '^ *+' conftest.er1 >conftest.err
56443  rm -f conftest.er1
56444  cat conftest.err >&5
56445  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56446  (exit $ac_status); } && {
56447	 test -z "$ac_c_werror_flag" ||
56448	 test ! -s conftest.err
56449       } && test -s conftest$ac_exeext && {
56450	 test "$cross_compiling" = yes ||
56451	 $as_test_x conftest$ac_exeext
56452       }; then
56453
56454	{ $as_echo "$as_me:$LINENO: result: yes" >&5
56455$as_echo "yes" >&6; }
56456
56457cat >>confdefs.h <<\_ACEOF
56458#define HAVE_CLOCK_PROCESS_CPUTIME_ID 1
56459_ACEOF
56460
56461
56462else
56463  $as_echo "$as_me: failed program was:" >&5
56464sed 's/^/| /' conftest.$ac_ext >&5
56465
56466
56467	{ $as_echo "$as_me:$LINENO: result: no" >&5
56468$as_echo "no" >&6; }
56469
56470fi
56471
56472rm -rf conftest.dSYM
56473rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56474      conftest$ac_exeext conftest.$ac_ext
56475
56476
56477    { $as_echo "$as_me:$LINENO: checking for CLOCK_REALTIME" >&5
56478$as_echo_n "checking for CLOCK_REALTIME... " >&6; }
56479    cat >conftest.$ac_ext <<_ACEOF
56480/* confdefs.h.  */
56481_ACEOF
56482cat confdefs.h >>conftest.$ac_ext
56483cat >>conftest.$ac_ext <<_ACEOF
56484/* end confdefs.h.  */
56485
56486#if TIME_WITH_SYS_TIME
56487# include <sys/time.h>
56488# include <time.h>
56489#else
56490# if HAVE_SYS_TIME_H
56491#  include <sys/time.h>
56492# else
56493#  include <time.h>
56494# endif
56495#endif
56496
56497int
56498main ()
56499{
56500
56501clockid_t clk = CLOCK_REALTIME;
56502
56503  ;
56504  return 0;
56505}
56506_ACEOF
56507rm -f conftest.$ac_objext conftest$ac_exeext
56508if { (ac_try="$ac_link"
56509case "(($ac_try" in
56510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56511  *) ac_try_echo=$ac_try;;
56512esac
56513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56514$as_echo "$ac_try_echo") >&5
56515  (eval "$ac_link") 2>conftest.er1
56516  ac_status=$?
56517  grep -v '^ *+' conftest.er1 >conftest.err
56518  rm -f conftest.er1
56519  cat conftest.err >&5
56520  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56521  (exit $ac_status); } && {
56522	 test -z "$ac_c_werror_flag" ||
56523	 test ! -s conftest.err
56524       } && test -s conftest$ac_exeext && {
56525	 test "$cross_compiling" = yes ||
56526	 $as_test_x conftest$ac_exeext
56527       }; then
56528
56529	{ $as_echo "$as_me:$LINENO: result: yes" >&5
56530$as_echo "yes" >&6; }
56531
56532cat >>confdefs.h <<\_ACEOF
56533#define HAVE_CLOCK_REALTIME 1
56534_ACEOF
56535
56536
56537else
56538  $as_echo "$as_me: failed program was:" >&5
56539sed 's/^/| /' conftest.$ac_ext >&5
56540
56541
56542	{ $as_echo "$as_me:$LINENO: result: no" >&5
56543$as_echo "no" >&6; }
56544
56545fi
56546
56547rm -rf conftest.dSYM
56548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56549      conftest$ac_exeext conftest.$ac_ext
56550
56551
56552
56553
56554else
56555
56556        # clock_gettime was not found, try adding librt
56557	case " $LIBS " in
56558          *\ -lrt\ *)
56559
56560		    # clock_gettime was not found and we already had librt
56561		    # nothing to do here by default
56562		    true
56563
56564	    ;;
56565          *)
56566	    # clock_gettime was not found, try adding librt
56567	    { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
56568$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
56569if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
56570  $as_echo_n "(cached) " >&6
56571else
56572  ac_check_lib_save_LIBS=$LIBS
56573LIBS="-lrt  $LIBS"
56574cat >conftest.$ac_ext <<_ACEOF
56575/* confdefs.h.  */
56576_ACEOF
56577cat confdefs.h >>conftest.$ac_ext
56578cat >>conftest.$ac_ext <<_ACEOF
56579/* end confdefs.h.  */
56580
56581/* Override any GCC internal prototype to avoid an error.
56582   Use char because int might match the return type of a GCC
56583   builtin and then its argument prototype would still apply.  */
56584#ifdef __cplusplus
56585extern "C"
56586#endif
56587char clock_gettime ();
56588int
56589main ()
56590{
56591return clock_gettime ();
56592  ;
56593  return 0;
56594}
56595_ACEOF
56596rm -f conftest.$ac_objext conftest$ac_exeext
56597if { (ac_try="$ac_link"
56598case "(($ac_try" in
56599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56600  *) ac_try_echo=$ac_try;;
56601esac
56602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56603$as_echo "$ac_try_echo") >&5
56604  (eval "$ac_link") 2>conftest.er1
56605  ac_status=$?
56606  grep -v '^ *+' conftest.er1 >conftest.err
56607  rm -f conftest.er1
56608  cat conftest.err >&5
56609  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56610  (exit $ac_status); } && {
56611	 test -z "$ac_c_werror_flag" ||
56612	 test ! -s conftest.err
56613       } && test -s conftest$ac_exeext && {
56614	 test "$cross_compiling" = yes ||
56615	 $as_test_x conftest$ac_exeext
56616       }; then
56617  ac_cv_lib_rt_clock_gettime=yes
56618else
56619  $as_echo "$as_me: failed program was:" >&5
56620sed 's/^/| /' conftest.$ac_ext >&5
56621
56622	ac_cv_lib_rt_clock_gettime=no
56623fi
56624
56625rm -rf conftest.dSYM
56626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56627      conftest$ac_exeext conftest.$ac_ext
56628LIBS=$ac_check_lib_save_LIBS
56629fi
56630{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
56631$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
56632if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
56633
56634		LIBS="-lrt $LIBS"
56635
56636
56637
56638cat >>confdefs.h <<\_ACEOF
56639#define HAVE_CLOCK_GETTIME 1
56640_ACEOF
56641
56642
56643    { $as_echo "$as_me:$LINENO: checking for CLOCK_MONOTONIC" >&5
56644$as_echo_n "checking for CLOCK_MONOTONIC... " >&6; }
56645    cat >conftest.$ac_ext <<_ACEOF
56646/* confdefs.h.  */
56647_ACEOF
56648cat confdefs.h >>conftest.$ac_ext
56649cat >>conftest.$ac_ext <<_ACEOF
56650/* end confdefs.h.  */
56651
56652#if TIME_WITH_SYS_TIME
56653# include <sys/time.h>
56654# include <time.h>
56655#else
56656# if HAVE_SYS_TIME_H
56657#  include <sys/time.h>
56658# else
56659#  include <time.h>
56660# endif
56661#endif
56662
56663int
56664main ()
56665{
56666
56667clockid_t clk = CLOCK_MONOTONIC;
56668
56669  ;
56670  return 0;
56671}
56672_ACEOF
56673rm -f conftest.$ac_objext conftest$ac_exeext
56674if { (ac_try="$ac_link"
56675case "(($ac_try" in
56676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56677  *) ac_try_echo=$ac_try;;
56678esac
56679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56680$as_echo "$ac_try_echo") >&5
56681  (eval "$ac_link") 2>conftest.er1
56682  ac_status=$?
56683  grep -v '^ *+' conftest.er1 >conftest.err
56684  rm -f conftest.er1
56685  cat conftest.err >&5
56686  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56687  (exit $ac_status); } && {
56688	 test -z "$ac_c_werror_flag" ||
56689	 test ! -s conftest.err
56690       } && test -s conftest$ac_exeext && {
56691	 test "$cross_compiling" = yes ||
56692	 $as_test_x conftest$ac_exeext
56693       }; then
56694
56695	{ $as_echo "$as_me:$LINENO: result: yes" >&5
56696$as_echo "yes" >&6; }
56697
56698cat >>confdefs.h <<\_ACEOF
56699#define HAVE_CLOCK_MONOTONIC 1
56700_ACEOF
56701
56702
56703else
56704  $as_echo "$as_me: failed program was:" >&5
56705sed 's/^/| /' conftest.$ac_ext >&5
56706
56707
56708	{ $as_echo "$as_me:$LINENO: result: no" >&5
56709$as_echo "no" >&6; }
56710
56711fi
56712
56713rm -rf conftest.dSYM
56714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56715      conftest$ac_exeext conftest.$ac_ext
56716
56717
56718    { $as_echo "$as_me:$LINENO: checking for CLOCK_PROCESS_CPUTIME_ID" >&5
56719$as_echo_n "checking for CLOCK_PROCESS_CPUTIME_ID... " >&6; }
56720    cat >conftest.$ac_ext <<_ACEOF
56721/* confdefs.h.  */
56722_ACEOF
56723cat confdefs.h >>conftest.$ac_ext
56724cat >>conftest.$ac_ext <<_ACEOF
56725/* end confdefs.h.  */
56726
56727#if TIME_WITH_SYS_TIME
56728# include <sys/time.h>
56729# include <time.h>
56730#else
56731# if HAVE_SYS_TIME_H
56732#  include <sys/time.h>
56733# else
56734#  include <time.h>
56735# endif
56736#endif
56737
56738int
56739main ()
56740{
56741
56742clockid_t clk = CLOCK_PROCESS_CPUTIME_ID;
56743
56744  ;
56745  return 0;
56746}
56747_ACEOF
56748rm -f conftest.$ac_objext conftest$ac_exeext
56749if { (ac_try="$ac_link"
56750case "(($ac_try" in
56751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56752  *) ac_try_echo=$ac_try;;
56753esac
56754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56755$as_echo "$ac_try_echo") >&5
56756  (eval "$ac_link") 2>conftest.er1
56757  ac_status=$?
56758  grep -v '^ *+' conftest.er1 >conftest.err
56759  rm -f conftest.er1
56760  cat conftest.err >&5
56761  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56762  (exit $ac_status); } && {
56763	 test -z "$ac_c_werror_flag" ||
56764	 test ! -s conftest.err
56765       } && test -s conftest$ac_exeext && {
56766	 test "$cross_compiling" = yes ||
56767	 $as_test_x conftest$ac_exeext
56768       }; then
56769
56770	{ $as_echo "$as_me:$LINENO: result: yes" >&5
56771$as_echo "yes" >&6; }
56772
56773cat >>confdefs.h <<\_ACEOF
56774#define HAVE_CLOCK_PROCESS_CPUTIME_ID 1
56775_ACEOF
56776
56777
56778else
56779  $as_echo "$as_me: failed program was:" >&5
56780sed 's/^/| /' conftest.$ac_ext >&5
56781
56782
56783	{ $as_echo "$as_me:$LINENO: result: no" >&5
56784$as_echo "no" >&6; }
56785
56786fi
56787
56788rm -rf conftest.dSYM
56789rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56790      conftest$ac_exeext conftest.$ac_ext
56791
56792
56793    { $as_echo "$as_me:$LINENO: checking for CLOCK_REALTIME" >&5
56794$as_echo_n "checking for CLOCK_REALTIME... " >&6; }
56795    cat >conftest.$ac_ext <<_ACEOF
56796/* confdefs.h.  */
56797_ACEOF
56798cat confdefs.h >>conftest.$ac_ext
56799cat >>conftest.$ac_ext <<_ACEOF
56800/* end confdefs.h.  */
56801
56802#if TIME_WITH_SYS_TIME
56803# include <sys/time.h>
56804# include <time.h>
56805#else
56806# if HAVE_SYS_TIME_H
56807#  include <sys/time.h>
56808# else
56809#  include <time.h>
56810# endif
56811#endif
56812
56813int
56814main ()
56815{
56816
56817clockid_t clk = CLOCK_REALTIME;
56818
56819  ;
56820  return 0;
56821}
56822_ACEOF
56823rm -f conftest.$ac_objext conftest$ac_exeext
56824if { (ac_try="$ac_link"
56825case "(($ac_try" in
56826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56827  *) ac_try_echo=$ac_try;;
56828esac
56829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56830$as_echo "$ac_try_echo") >&5
56831  (eval "$ac_link") 2>conftest.er1
56832  ac_status=$?
56833  grep -v '^ *+' conftest.er1 >conftest.err
56834  rm -f conftest.er1
56835  cat conftest.err >&5
56836  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56837  (exit $ac_status); } && {
56838	 test -z "$ac_c_werror_flag" ||
56839	 test ! -s conftest.err
56840       } && test -s conftest$ac_exeext && {
56841	 test "$cross_compiling" = yes ||
56842	 $as_test_x conftest$ac_exeext
56843       }; then
56844
56845	{ $as_echo "$as_me:$LINENO: result: yes" >&5
56846$as_echo "yes" >&6; }
56847
56848cat >>confdefs.h <<\_ACEOF
56849#define HAVE_CLOCK_REALTIME 1
56850_ACEOF
56851
56852
56853else
56854  $as_echo "$as_me: failed program was:" >&5
56855sed 's/^/| /' conftest.$ac_ext >&5
56856
56857
56858	{ $as_echo "$as_me:$LINENO: result: no" >&5
56859$as_echo "no" >&6; }
56860
56861fi
56862
56863rm -rf conftest.dSYM
56864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56865      conftest$ac_exeext conftest.$ac_ext
56866
56867
56868
56869
56870else
56871
56872
56873			# clock_gettime was not found in librt
56874			# nothing to do here by default
56875			true
56876
56877
56878fi
56879
56880	  ;;
56881        esac
56882
56883fi
56884done
56885
56886
56887
56888fi
56889
56890{ $as_echo "$as_me:$LINENO: checking for broken readdir name" >&5
56891$as_echo_n "checking for broken readdir name... " >&6; }
56892if test "${samba_cv_HAVE_BROKEN_READDIR_NAME+set}" = set; then
56893  $as_echo_n "(cached) " >&6
56894else
56895
56896if test "$cross_compiling" = yes; then
56897  samba_cv_HAVE_BROKEN_READDIR_NAME=cross
56898else
56899  cat >conftest.$ac_ext <<_ACEOF
56900/* confdefs.h.  */
56901_ACEOF
56902cat confdefs.h >>conftest.$ac_ext
56903cat >>conftest.$ac_ext <<_ACEOF
56904/* end confdefs.h.  */
56905#include <sys/types.h>
56906#include <dirent.h>
56907main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
56908if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
56909di->d_name[0] == 0) exit(0); exit(1);}
56910_ACEOF
56911rm -f conftest$ac_exeext
56912if { (ac_try="$ac_link"
56913case "(($ac_try" in
56914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56915  *) ac_try_echo=$ac_try;;
56916esac
56917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56918$as_echo "$ac_try_echo") >&5
56919  (eval "$ac_link") 2>&5
56920  ac_status=$?
56921  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56922  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56923  { (case "(($ac_try" in
56924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56925  *) ac_try_echo=$ac_try;;
56926esac
56927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56928$as_echo "$ac_try_echo") >&5
56929  (eval "$ac_try") 2>&5
56930  ac_status=$?
56931  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56932  (exit $ac_status); }; }; then
56933  samba_cv_HAVE_BROKEN_READDIR_NAME=yes
56934else
56935  $as_echo "$as_me: program exited with status $ac_status" >&5
56936$as_echo "$as_me: failed program was:" >&5
56937sed 's/^/| /' conftest.$ac_ext >&5
56938
56939( exit $ac_status )
56940samba_cv_HAVE_BROKEN_READDIR_NAME=no
56941fi
56942rm -rf conftest.dSYM
56943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56944fi
56945
56946
56947fi
56948{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR_NAME" >&5
56949$as_echo "$samba_cv_HAVE_BROKEN_READDIR_NAME" >&6; }
56950if test x"$samba_cv_HAVE_BROKEN_READDIR_NAME" = x"yes"; then
56951
56952cat >>confdefs.h <<\_ACEOF
56953#define HAVE_BROKEN_READDIR_NAME 1
56954_ACEOF
56955
56956fi
56957
56958{ $as_echo "$as_me:$LINENO: checking for utimbuf" >&5
56959$as_echo_n "checking for utimbuf... " >&6; }
56960if test "${samba_cv_HAVE_UTIMBUF+set}" = set; then
56961  $as_echo_n "(cached) " >&6
56962else
56963
56964cat >conftest.$ac_ext <<_ACEOF
56965/* confdefs.h.  */
56966_ACEOF
56967cat confdefs.h >>conftest.$ac_ext
56968cat >>conftest.$ac_ext <<_ACEOF
56969/* end confdefs.h.  */
56970#include <sys/types.h>
56971#include <utime.h>
56972int
56973main ()
56974{
56975struct utimbuf tbuf;  tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
56976  ;
56977  return 0;
56978}
56979_ACEOF
56980rm -f conftest.$ac_objext
56981if { (ac_try="$ac_compile"
56982case "(($ac_try" in
56983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56984  *) ac_try_echo=$ac_try;;
56985esac
56986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56987$as_echo "$ac_try_echo") >&5
56988  (eval "$ac_compile") 2>conftest.er1
56989  ac_status=$?
56990  grep -v '^ *+' conftest.er1 >conftest.err
56991  rm -f conftest.er1
56992  cat conftest.err >&5
56993  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56994  (exit $ac_status); } && {
56995	 test -z "$ac_c_werror_flag" ||
56996	 test ! -s conftest.err
56997       } && test -s conftest.$ac_objext; then
56998  samba_cv_HAVE_UTIMBUF=yes
56999else
57000  $as_echo "$as_me: failed program was:" >&5
57001sed 's/^/| /' conftest.$ac_ext >&5
57002
57003	samba_cv_HAVE_UTIMBUF=no
57004fi
57005
57006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57007fi
57008{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_UTIMBUF" >&5
57009$as_echo "$samba_cv_HAVE_UTIMBUF" >&6; }
57010if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
57011
57012cat >>confdefs.h <<\_ACEOF
57013#define HAVE_UTIMBUF 1
57014_ACEOF
57015
57016fi
57017
57018##############
57019# Check utmp details, but only if our OS offers utmp.h
57020if test x"$ac_cv_header_utmp_h" = x"yes"; then
57021
57022
57023
57024
57025
57026
57027
57028for ac_func in pututline pututxline updwtmp updwtmpx getutmpx getutxent
57029do
57030as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57031{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57032$as_echo_n "checking for $ac_func... " >&6; }
57033if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57034  $as_echo_n "(cached) " >&6
57035else
57036  cat >conftest.$ac_ext <<_ACEOF
57037/* confdefs.h.  */
57038_ACEOF
57039cat confdefs.h >>conftest.$ac_ext
57040cat >>conftest.$ac_ext <<_ACEOF
57041/* end confdefs.h.  */
57042/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57043   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57044#define $ac_func innocuous_$ac_func
57045
57046/* System header to define __stub macros and hopefully few prototypes,
57047    which can conflict with char $ac_func (); below.
57048    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57049    <limits.h> exists even on freestanding compilers.  */
57050
57051#ifdef __STDC__
57052# include <limits.h>
57053#else
57054# include <assert.h>
57055#endif
57056
57057#undef $ac_func
57058
57059/* Override any GCC internal prototype to avoid an error.
57060   Use char because int might match the return type of a GCC
57061   builtin and then its argument prototype would still apply.  */
57062#ifdef __cplusplus
57063extern "C"
57064#endif
57065char $ac_func ();
57066/* The GNU C library defines this for functions which it implements
57067    to always fail with ENOSYS.  Some functions are actually named
57068    something starting with __ and the normal name is an alias.  */
57069#if defined __stub_$ac_func || defined __stub___$ac_func
57070choke me
57071#endif
57072
57073int
57074main ()
57075{
57076return $ac_func ();
57077  ;
57078  return 0;
57079}
57080_ACEOF
57081rm -f conftest.$ac_objext conftest$ac_exeext
57082if { (ac_try="$ac_link"
57083case "(($ac_try" in
57084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57085  *) ac_try_echo=$ac_try;;
57086esac
57087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57088$as_echo "$ac_try_echo") >&5
57089  (eval "$ac_link") 2>conftest.er1
57090  ac_status=$?
57091  grep -v '^ *+' conftest.er1 >conftest.err
57092  rm -f conftest.er1
57093  cat conftest.err >&5
57094  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57095  (exit $ac_status); } && {
57096	 test -z "$ac_c_werror_flag" ||
57097	 test ! -s conftest.err
57098       } && test -s conftest$ac_exeext && {
57099	 test "$cross_compiling" = yes ||
57100	 $as_test_x conftest$ac_exeext
57101       }; then
57102  eval "$as_ac_var=yes"
57103else
57104  $as_echo "$as_me: failed program was:" >&5
57105sed 's/^/| /' conftest.$ac_ext >&5
57106
57107	eval "$as_ac_var=no"
57108fi
57109
57110rm -rf conftest.dSYM
57111rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57112      conftest$ac_exeext conftest.$ac_ext
57113fi
57114ac_res=`eval 'as_val=${'$as_ac_var'}
57115		 $as_echo "$as_val"'`
57116	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57117$as_echo "$ac_res" >&6; }
57118as_val=`eval 'as_val=${'$as_ac_var'}
57119		 $as_echo "$as_val"'`
57120   if test "x$as_val" = x""yes; then
57121  cat >>confdefs.h <<_ACEOF
57122#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57123_ACEOF
57124
57125fi
57126done
57127
57128
57129{ $as_echo "$as_me:$LINENO: checking for ut_name in utmp" >&5
57130$as_echo_n "checking for ut_name in utmp... " >&6; }
57131if test "${samba_cv_HAVE_UT_UT_NAME+set}" = set; then
57132  $as_echo_n "(cached) " >&6
57133else
57134
57135cat >conftest.$ac_ext <<_ACEOF
57136/* confdefs.h.  */
57137_ACEOF
57138cat confdefs.h >>conftest.$ac_ext
57139cat >>conftest.$ac_ext <<_ACEOF
57140/* end confdefs.h.  */
57141#include <sys/types.h>
57142#include <utmp.h>
57143int
57144main ()
57145{
57146struct utmp ut;  ut.ut_name[0] = 'a';
57147  ;
57148  return 0;
57149}
57150_ACEOF
57151rm -f conftest.$ac_objext
57152if { (ac_try="$ac_compile"
57153case "(($ac_try" in
57154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57155  *) ac_try_echo=$ac_try;;
57156esac
57157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57158$as_echo "$ac_try_echo") >&5
57159  (eval "$ac_compile") 2>conftest.er1
57160  ac_status=$?
57161  grep -v '^ *+' conftest.er1 >conftest.err
57162  rm -f conftest.er1
57163  cat conftest.err >&5
57164  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57165  (exit $ac_status); } && {
57166	 test -z "$ac_c_werror_flag" ||
57167	 test ! -s conftest.err
57168       } && test -s conftest.$ac_objext; then
57169  samba_cv_HAVE_UT_UT_NAME=yes
57170else
57171  $as_echo "$as_me: failed program was:" >&5
57172sed 's/^/| /' conftest.$ac_ext >&5
57173
57174	samba_cv_HAVE_UT_UT_NAME=no
57175fi
57176
57177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57178fi
57179{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_NAME" >&5
57180$as_echo "$samba_cv_HAVE_UT_UT_NAME" >&6; }
57181if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
57182
57183cat >>confdefs.h <<\_ACEOF
57184#define HAVE_UT_UT_NAME 1
57185_ACEOF
57186
57187fi
57188
57189{ $as_echo "$as_me:$LINENO: checking for ut_user in utmp" >&5
57190$as_echo_n "checking for ut_user in utmp... " >&6; }
57191if test "${samba_cv_HAVE_UT_UT_USER+set}" = set; then
57192  $as_echo_n "(cached) " >&6
57193else
57194
57195cat >conftest.$ac_ext <<_ACEOF
57196/* confdefs.h.  */
57197_ACEOF
57198cat confdefs.h >>conftest.$ac_ext
57199cat >>conftest.$ac_ext <<_ACEOF
57200/* end confdefs.h.  */
57201#include <sys/types.h>
57202#include <utmp.h>
57203int
57204main ()
57205{
57206struct utmp ut;  ut.ut_user[0] = 'a';
57207  ;
57208  return 0;
57209}
57210_ACEOF
57211rm -f conftest.$ac_objext
57212if { (ac_try="$ac_compile"
57213case "(($ac_try" in
57214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57215  *) ac_try_echo=$ac_try;;
57216esac
57217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57218$as_echo "$ac_try_echo") >&5
57219  (eval "$ac_compile") 2>conftest.er1
57220  ac_status=$?
57221  grep -v '^ *+' conftest.er1 >conftest.err
57222  rm -f conftest.er1
57223  cat conftest.err >&5
57224  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57225  (exit $ac_status); } && {
57226	 test -z "$ac_c_werror_flag" ||
57227	 test ! -s conftest.err
57228       } && test -s conftest.$ac_objext; then
57229  samba_cv_HAVE_UT_UT_USER=yes
57230else
57231  $as_echo "$as_me: failed program was:" >&5
57232sed 's/^/| /' conftest.$ac_ext >&5
57233
57234	samba_cv_HAVE_UT_UT_USER=no
57235fi
57236
57237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57238fi
57239{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_USER" >&5
57240$as_echo "$samba_cv_HAVE_UT_UT_USER" >&6; }
57241if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
57242
57243cat >>confdefs.h <<\_ACEOF
57244#define HAVE_UT_UT_USER 1
57245_ACEOF
57246
57247fi
57248
57249{ $as_echo "$as_me:$LINENO: checking for ut_id in utmp" >&5
57250$as_echo_n "checking for ut_id in utmp... " >&6; }
57251if test "${samba_cv_HAVE_UT_UT_ID+set}" = set; then
57252  $as_echo_n "(cached) " >&6
57253else
57254
57255cat >conftest.$ac_ext <<_ACEOF
57256/* confdefs.h.  */
57257_ACEOF
57258cat confdefs.h >>conftest.$ac_ext
57259cat >>conftest.$ac_ext <<_ACEOF
57260/* end confdefs.h.  */
57261#include <sys/types.h>
57262#include <utmp.h>
57263int
57264main ()
57265{
57266struct utmp ut;  ut.ut_id[0] = 'a';
57267  ;
57268  return 0;
57269}
57270_ACEOF
57271rm -f conftest.$ac_objext
57272if { (ac_try="$ac_compile"
57273case "(($ac_try" in
57274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57275  *) ac_try_echo=$ac_try;;
57276esac
57277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57278$as_echo "$ac_try_echo") >&5
57279  (eval "$ac_compile") 2>conftest.er1
57280  ac_status=$?
57281  grep -v '^ *+' conftest.er1 >conftest.err
57282  rm -f conftest.er1
57283  cat conftest.err >&5
57284  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57285  (exit $ac_status); } && {
57286	 test -z "$ac_c_werror_flag" ||
57287	 test ! -s conftest.err
57288       } && test -s conftest.$ac_objext; then
57289  samba_cv_HAVE_UT_UT_ID=yes
57290else
57291  $as_echo "$as_me: failed program was:" >&5
57292sed 's/^/| /' conftest.$ac_ext >&5
57293
57294	samba_cv_HAVE_UT_UT_ID=no
57295fi
57296
57297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57298fi
57299{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ID" >&5
57300$as_echo "$samba_cv_HAVE_UT_UT_ID" >&6; }
57301if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
57302
57303cat >>confdefs.h <<\_ACEOF
57304#define HAVE_UT_UT_ID 1
57305_ACEOF
57306
57307fi
57308
57309{ $as_echo "$as_me:$LINENO: checking for ut_host in utmp" >&5
57310$as_echo_n "checking for ut_host in utmp... " >&6; }
57311if test "${samba_cv_HAVE_UT_UT_HOST+set}" = set; then
57312  $as_echo_n "(cached) " >&6
57313else
57314
57315cat >conftest.$ac_ext <<_ACEOF
57316/* confdefs.h.  */
57317_ACEOF
57318cat confdefs.h >>conftest.$ac_ext
57319cat >>conftest.$ac_ext <<_ACEOF
57320/* end confdefs.h.  */
57321#include <sys/types.h>
57322#include <utmp.h>
57323int
57324main ()
57325{
57326struct utmp ut;  ut.ut_host[0] = 'a';
57327  ;
57328  return 0;
57329}
57330_ACEOF
57331rm -f conftest.$ac_objext
57332if { (ac_try="$ac_compile"
57333case "(($ac_try" in
57334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57335  *) ac_try_echo=$ac_try;;
57336esac
57337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57338$as_echo "$ac_try_echo") >&5
57339  (eval "$ac_compile") 2>conftest.er1
57340  ac_status=$?
57341  grep -v '^ *+' conftest.er1 >conftest.err
57342  rm -f conftest.er1
57343  cat conftest.err >&5
57344  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57345  (exit $ac_status); } && {
57346	 test -z "$ac_c_werror_flag" ||
57347	 test ! -s conftest.err
57348       } && test -s conftest.$ac_objext; then
57349  samba_cv_HAVE_UT_UT_HOST=yes
57350else
57351  $as_echo "$as_me: failed program was:" >&5
57352sed 's/^/| /' conftest.$ac_ext >&5
57353
57354	samba_cv_HAVE_UT_UT_HOST=no
57355fi
57356
57357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57358fi
57359{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_HOST" >&5
57360$as_echo "$samba_cv_HAVE_UT_UT_HOST" >&6; }
57361if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
57362
57363cat >>confdefs.h <<\_ACEOF
57364#define HAVE_UT_UT_HOST 1
57365_ACEOF
57366
57367fi
57368
57369{ $as_echo "$as_me:$LINENO: checking for ut_time in utmp" >&5
57370$as_echo_n "checking for ut_time in utmp... " >&6; }
57371if test "${samba_cv_HAVE_UT_UT_TIME+set}" = set; then
57372  $as_echo_n "(cached) " >&6
57373else
57374
57375cat >conftest.$ac_ext <<_ACEOF
57376/* confdefs.h.  */
57377_ACEOF
57378cat confdefs.h >>conftest.$ac_ext
57379cat >>conftest.$ac_ext <<_ACEOF
57380/* end confdefs.h.  */
57381#include <sys/types.h>
57382#include <utmp.h>
57383int
57384main ()
57385{
57386struct utmp ut;  time_t t; ut.ut_time = t;
57387  ;
57388  return 0;
57389}
57390_ACEOF
57391rm -f conftest.$ac_objext
57392if { (ac_try="$ac_compile"
57393case "(($ac_try" in
57394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57395  *) ac_try_echo=$ac_try;;
57396esac
57397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57398$as_echo "$ac_try_echo") >&5
57399  (eval "$ac_compile") 2>conftest.er1
57400  ac_status=$?
57401  grep -v '^ *+' conftest.er1 >conftest.err
57402  rm -f conftest.er1
57403  cat conftest.err >&5
57404  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57405  (exit $ac_status); } && {
57406	 test -z "$ac_c_werror_flag" ||
57407	 test ! -s conftest.err
57408       } && test -s conftest.$ac_objext; then
57409  samba_cv_HAVE_UT_UT_TIME=yes
57410else
57411  $as_echo "$as_me: failed program was:" >&5
57412sed 's/^/| /' conftest.$ac_ext >&5
57413
57414	samba_cv_HAVE_UT_UT_TIME=no
57415fi
57416
57417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57418fi
57419{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TIME" >&5
57420$as_echo "$samba_cv_HAVE_UT_UT_TIME" >&6; }
57421if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
57422
57423cat >>confdefs.h <<\_ACEOF
57424#define HAVE_UT_UT_TIME 1
57425_ACEOF
57426
57427fi
57428
57429{ $as_echo "$as_me:$LINENO: checking for ut_tv in utmp" >&5
57430$as_echo_n "checking for ut_tv in utmp... " >&6; }
57431if test "${samba_cv_HAVE_UT_UT_TV+set}" = set; then
57432  $as_echo_n "(cached) " >&6
57433else
57434
57435cat >conftest.$ac_ext <<_ACEOF
57436/* confdefs.h.  */
57437_ACEOF
57438cat confdefs.h >>conftest.$ac_ext
57439cat >>conftest.$ac_ext <<_ACEOF
57440/* end confdefs.h.  */
57441#include <sys/types.h>
57442#include <utmp.h>
57443int
57444main ()
57445{
57446struct utmp ut;  struct timeval tv; ut.ut_tv = tv;
57447  ;
57448  return 0;
57449}
57450_ACEOF
57451rm -f conftest.$ac_objext
57452if { (ac_try="$ac_compile"
57453case "(($ac_try" in
57454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57455  *) ac_try_echo=$ac_try;;
57456esac
57457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57458$as_echo "$ac_try_echo") >&5
57459  (eval "$ac_compile") 2>conftest.er1
57460  ac_status=$?
57461  grep -v '^ *+' conftest.er1 >conftest.err
57462  rm -f conftest.er1
57463  cat conftest.err >&5
57464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57465  (exit $ac_status); } && {
57466	 test -z "$ac_c_werror_flag" ||
57467	 test ! -s conftest.err
57468       } && test -s conftest.$ac_objext; then
57469  samba_cv_HAVE_UT_UT_TV=yes
57470else
57471  $as_echo "$as_me: failed program was:" >&5
57472sed 's/^/| /' conftest.$ac_ext >&5
57473
57474	samba_cv_HAVE_UT_UT_TV=no
57475fi
57476
57477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57478fi
57479{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TV" >&5
57480$as_echo "$samba_cv_HAVE_UT_UT_TV" >&6; }
57481if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
57482
57483cat >>confdefs.h <<\_ACEOF
57484#define HAVE_UT_UT_TV 1
57485_ACEOF
57486
57487fi
57488
57489{ $as_echo "$as_me:$LINENO: checking for ut_type in utmp" >&5
57490$as_echo_n "checking for ut_type in utmp... " >&6; }
57491if test "${samba_cv_HAVE_UT_UT_TYPE+set}" = set; then
57492  $as_echo_n "(cached) " >&6
57493else
57494
57495cat >conftest.$ac_ext <<_ACEOF
57496/* confdefs.h.  */
57497_ACEOF
57498cat confdefs.h >>conftest.$ac_ext
57499cat >>conftest.$ac_ext <<_ACEOF
57500/* end confdefs.h.  */
57501#include <sys/types.h>
57502#include <utmp.h>
57503int
57504main ()
57505{
57506struct utmp ut;  ut.ut_type = 0;
57507  ;
57508  return 0;
57509}
57510_ACEOF
57511rm -f conftest.$ac_objext
57512if { (ac_try="$ac_compile"
57513case "(($ac_try" in
57514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57515  *) ac_try_echo=$ac_try;;
57516esac
57517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57518$as_echo "$ac_try_echo") >&5
57519  (eval "$ac_compile") 2>conftest.er1
57520  ac_status=$?
57521  grep -v '^ *+' conftest.er1 >conftest.err
57522  rm -f conftest.er1
57523  cat conftest.err >&5
57524  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57525  (exit $ac_status); } && {
57526	 test -z "$ac_c_werror_flag" ||
57527	 test ! -s conftest.err
57528       } && test -s conftest.$ac_objext; then
57529  samba_cv_HAVE_UT_UT_TYPE=yes
57530else
57531  $as_echo "$as_me: failed program was:" >&5
57532sed 's/^/| /' conftest.$ac_ext >&5
57533
57534	samba_cv_HAVE_UT_UT_TYPE=no
57535fi
57536
57537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57538fi
57539{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TYPE" >&5
57540$as_echo "$samba_cv_HAVE_UT_UT_TYPE" >&6; }
57541if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
57542
57543cat >>confdefs.h <<\_ACEOF
57544#define HAVE_UT_UT_TYPE 1
57545_ACEOF
57546
57547fi
57548
57549{ $as_echo "$as_me:$LINENO: checking for ut_pid in utmp" >&5
57550$as_echo_n "checking for ut_pid in utmp... " >&6; }
57551if test "${samba_cv_HAVE_UT_UT_PID+set}" = set; then
57552  $as_echo_n "(cached) " >&6
57553else
57554
57555cat >conftest.$ac_ext <<_ACEOF
57556/* confdefs.h.  */
57557_ACEOF
57558cat confdefs.h >>conftest.$ac_ext
57559cat >>conftest.$ac_ext <<_ACEOF
57560/* end confdefs.h.  */
57561#include <sys/types.h>
57562#include <utmp.h>
57563int
57564main ()
57565{
57566struct utmp ut;  ut.ut_pid = 0;
57567  ;
57568  return 0;
57569}
57570_ACEOF
57571rm -f conftest.$ac_objext
57572if { (ac_try="$ac_compile"
57573case "(($ac_try" in
57574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57575  *) ac_try_echo=$ac_try;;
57576esac
57577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57578$as_echo "$ac_try_echo") >&5
57579  (eval "$ac_compile") 2>conftest.er1
57580  ac_status=$?
57581  grep -v '^ *+' conftest.er1 >conftest.err
57582  rm -f conftest.er1
57583  cat conftest.err >&5
57584  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57585  (exit $ac_status); } && {
57586	 test -z "$ac_c_werror_flag" ||
57587	 test ! -s conftest.err
57588       } && test -s conftest.$ac_objext; then
57589  samba_cv_HAVE_UT_UT_PID=yes
57590else
57591  $as_echo "$as_me: failed program was:" >&5
57592sed 's/^/| /' conftest.$ac_ext >&5
57593
57594	samba_cv_HAVE_UT_UT_PID=no
57595fi
57596
57597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57598fi
57599{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_PID" >&5
57600$as_echo "$samba_cv_HAVE_UT_UT_PID" >&6; }
57601if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
57602
57603cat >>confdefs.h <<\_ACEOF
57604#define HAVE_UT_UT_PID 1
57605_ACEOF
57606
57607fi
57608
57609{ $as_echo "$as_me:$LINENO: checking for ut_exit in utmp" >&5
57610$as_echo_n "checking for ut_exit in utmp... " >&6; }
57611if test "${samba_cv_HAVE_UT_UT_EXIT+set}" = set; then
57612  $as_echo_n "(cached) " >&6
57613else
57614
57615cat >conftest.$ac_ext <<_ACEOF
57616/* confdefs.h.  */
57617_ACEOF
57618cat confdefs.h >>conftest.$ac_ext
57619cat >>conftest.$ac_ext <<_ACEOF
57620/* end confdefs.h.  */
57621#include <sys/types.h>
57622#include <utmp.h>
57623int
57624main ()
57625{
57626struct utmp ut;  ut.ut_exit.e_exit = 0;
57627  ;
57628  return 0;
57629}
57630_ACEOF
57631rm -f conftest.$ac_objext
57632if { (ac_try="$ac_compile"
57633case "(($ac_try" in
57634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57635  *) ac_try_echo=$ac_try;;
57636esac
57637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57638$as_echo "$ac_try_echo") >&5
57639  (eval "$ac_compile") 2>conftest.er1
57640  ac_status=$?
57641  grep -v '^ *+' conftest.er1 >conftest.err
57642  rm -f conftest.er1
57643  cat conftest.err >&5
57644  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57645  (exit $ac_status); } && {
57646	 test -z "$ac_c_werror_flag" ||
57647	 test ! -s conftest.err
57648       } && test -s conftest.$ac_objext; then
57649  samba_cv_HAVE_UT_UT_EXIT=yes
57650else
57651  $as_echo "$as_me: failed program was:" >&5
57652sed 's/^/| /' conftest.$ac_ext >&5
57653
57654	samba_cv_HAVE_UT_UT_EXIT=no
57655fi
57656
57657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57658fi
57659{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_EXIT" >&5
57660$as_echo "$samba_cv_HAVE_UT_UT_EXIT" >&6; }
57661if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
57662
57663cat >>confdefs.h <<\_ACEOF
57664#define HAVE_UT_UT_EXIT 1
57665_ACEOF
57666
57667fi
57668
57669{ $as_echo "$as_me:$LINENO: checking for ut_addr_v6 in utmp" >&5
57670$as_echo_n "checking for ut_addr_v6 in utmp... " >&6; }
57671if test "${samba_cv_HAVE_UT_UT_ADDR_V6+set}" = set; then
57672  $as_echo_n "(cached) " >&6
57673else
57674
57675cat >conftest.$ac_ext <<_ACEOF
57676/* confdefs.h.  */
57677_ACEOF
57678cat confdefs.h >>conftest.$ac_ext
57679cat >>conftest.$ac_ext <<_ACEOF
57680/* end confdefs.h.  */
57681#include <sys/types.h>
57682#include <utmp.h>
57683int
57684main ()
57685{
57686struct utmp ut;  ut.ut_addr_v6[0] = 0;
57687  ;
57688  return 0;
57689}
57690_ACEOF
57691rm -f conftest.$ac_objext
57692if { (ac_try="$ac_compile"
57693case "(($ac_try" in
57694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57695  *) ac_try_echo=$ac_try;;
57696esac
57697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57698$as_echo "$ac_try_echo") >&5
57699  (eval "$ac_compile") 2>conftest.er1
57700  ac_status=$?
57701  grep -v '^ *+' conftest.er1 >conftest.err
57702  rm -f conftest.er1
57703  cat conftest.err >&5
57704  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57705  (exit $ac_status); } && {
57706	 test -z "$ac_c_werror_flag" ||
57707	 test ! -s conftest.err
57708       } && test -s conftest.$ac_objext; then
57709  samba_cv_HAVE_UT_UT_ADDR_V6=yes
57710else
57711  $as_echo "$as_me: failed program was:" >&5
57712sed 's/^/| /' conftest.$ac_ext >&5
57713
57714	samba_cv_HAVE_UT_UT_ADDR_V6=no
57715fi
57716
57717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57718fi
57719{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ADDR_V6" >&5
57720$as_echo "$samba_cv_HAVE_UT_UT_ADDR_V6" >&6; }
57721if test x"$samba_cv_HAVE_UT_UT_ADDR_V6" = x"yes"; then
57722
57723cat >>confdefs.h <<\_ACEOF
57724#define HAVE_UT_UT_ADDR_V6 1
57725_ACEOF
57726
57727fi
57728
57729{ $as_echo "$as_me:$LINENO: checking for ut_addr in utmp" >&5
57730$as_echo_n "checking for ut_addr in utmp... " >&6; }
57731if test "${samba_cv_HAVE_UT_UT_ADDR+set}" = set; then
57732  $as_echo_n "(cached) " >&6
57733else
57734
57735cat >conftest.$ac_ext <<_ACEOF
57736/* confdefs.h.  */
57737_ACEOF
57738cat confdefs.h >>conftest.$ac_ext
57739cat >>conftest.$ac_ext <<_ACEOF
57740/* end confdefs.h.  */
57741#include <sys/types.h>
57742#include <utmp.h>
57743int
57744main ()
57745{
57746struct utmp ut;  ut.ut_addr = 0;
57747  ;
57748  return 0;
57749}
57750_ACEOF
57751rm -f conftest.$ac_objext
57752if { (ac_try="$ac_compile"
57753case "(($ac_try" in
57754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57755  *) ac_try_echo=$ac_try;;
57756esac
57757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57758$as_echo "$ac_try_echo") >&5
57759  (eval "$ac_compile") 2>conftest.er1
57760  ac_status=$?
57761  grep -v '^ *+' conftest.er1 >conftest.err
57762  rm -f conftest.er1
57763  cat conftest.err >&5
57764  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57765  (exit $ac_status); } && {
57766	 test -z "$ac_c_werror_flag" ||
57767	 test ! -s conftest.err
57768       } && test -s conftest.$ac_objext; then
57769  samba_cv_HAVE_UT_UT_ADDR=yes
57770else
57771  $as_echo "$as_me: failed program was:" >&5
57772sed 's/^/| /' conftest.$ac_ext >&5
57773
57774	samba_cv_HAVE_UT_UT_ADDR=no
57775fi
57776
57777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57778fi
57779{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ADDR" >&5
57780$as_echo "$samba_cv_HAVE_UT_UT_ADDR" >&6; }
57781if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
57782
57783cat >>confdefs.h <<\_ACEOF
57784#define HAVE_UT_UT_ADDR 1
57785_ACEOF
57786
57787fi
57788
57789if test x$ac_cv_func_pututline = xyes ; then
57790  { $as_echo "$as_me:$LINENO: checking whether pututline returns pointer" >&5
57791$as_echo_n "checking whether pututline returns pointer... " >&6; }
57792if test "${samba_cv_PUTUTLINE_RETURNS_UTMP+set}" = set; then
57793  $as_echo_n "(cached) " >&6
57794else
57795
57796  cat >conftest.$ac_ext <<_ACEOF
57797/* confdefs.h.  */
57798_ACEOF
57799cat confdefs.h >>conftest.$ac_ext
57800cat >>conftest.$ac_ext <<_ACEOF
57801/* end confdefs.h.  */
57802#include <sys/types.h>
57803#include <utmp.h>
57804int
57805main ()
57806{
57807struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
57808  ;
57809  return 0;
57810}
57811_ACEOF
57812rm -f conftest.$ac_objext
57813if { (ac_try="$ac_compile"
57814case "(($ac_try" in
57815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57816  *) ac_try_echo=$ac_try;;
57817esac
57818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57819$as_echo "$ac_try_echo") >&5
57820  (eval "$ac_compile") 2>conftest.er1
57821  ac_status=$?
57822  grep -v '^ *+' conftest.er1 >conftest.err
57823  rm -f conftest.er1
57824  cat conftest.err >&5
57825  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57826  (exit $ac_status); } && {
57827	 test -z "$ac_c_werror_flag" ||
57828	 test ! -s conftest.err
57829       } && test -s conftest.$ac_objext; then
57830  samba_cv_PUTUTLINE_RETURNS_UTMP=yes
57831else
57832  $as_echo "$as_me: failed program was:" >&5
57833sed 's/^/| /' conftest.$ac_ext >&5
57834
57835	samba_cv_PUTUTLINE_RETURNS_UTMP=no
57836fi
57837
57838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57839fi
57840{ $as_echo "$as_me:$LINENO: result: $samba_cv_PUTUTLINE_RETURNS_UTMP" >&5
57841$as_echo "$samba_cv_PUTUTLINE_RETURNS_UTMP" >&6; }
57842  if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
57843
57844cat >>confdefs.h <<\_ACEOF
57845#define PUTUTLINE_RETURNS_UTMP 1
57846_ACEOF
57847
57848  fi
57849fi
57850
57851{ $as_echo "$as_me:$LINENO: checking for ut_syslen in utmpx" >&5
57852$as_echo_n "checking for ut_syslen in utmpx... " >&6; }
57853if test "${samba_cv_HAVE_UX_UT_SYSLEN+set}" = set; then
57854  $as_echo_n "(cached) " >&6
57855else
57856
57857cat >conftest.$ac_ext <<_ACEOF
57858/* confdefs.h.  */
57859_ACEOF
57860cat confdefs.h >>conftest.$ac_ext
57861cat >>conftest.$ac_ext <<_ACEOF
57862/* end confdefs.h.  */
57863#include <sys/types.h>
57864#include <utmpx.h>
57865int
57866main ()
57867{
57868struct utmpx ux;  ux.ut_syslen = 0;
57869  ;
57870  return 0;
57871}
57872_ACEOF
57873rm -f conftest.$ac_objext
57874if { (ac_try="$ac_compile"
57875case "(($ac_try" in
57876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57877  *) ac_try_echo=$ac_try;;
57878esac
57879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57880$as_echo "$ac_try_echo") >&5
57881  (eval "$ac_compile") 2>conftest.er1
57882  ac_status=$?
57883  grep -v '^ *+' conftest.er1 >conftest.err
57884  rm -f conftest.er1
57885  cat conftest.err >&5
57886  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57887  (exit $ac_status); } && {
57888	 test -z "$ac_c_werror_flag" ||
57889	 test ! -s conftest.err
57890       } && test -s conftest.$ac_objext; then
57891  samba_cv_HAVE_UX_UT_SYSLEN=yes
57892else
57893  $as_echo "$as_me: failed program was:" >&5
57894sed 's/^/| /' conftest.$ac_ext >&5
57895
57896	samba_cv_HAVE_UX_UT_SYSLEN=no
57897fi
57898
57899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57900fi
57901{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_UX_UT_SYSLEN" >&5
57902$as_echo "$samba_cv_HAVE_UX_UT_SYSLEN" >&6; }
57903if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
57904
57905cat >>confdefs.h <<\_ACEOF
57906#define HAVE_UX_UT_SYSLEN 1
57907_ACEOF
57908
57909fi
57910
57911fi
57912# end utmp details
57913
57914
57915ICONV_LOOK_DIRS="/usr /usr/local /sw /opt"
57916
57917# Check whether --with-libiconv was given.
57918if test "${with_libiconv+set}" = set; then
57919  withval=$with_libiconv;
57920  if test "$withval" = "no" ; then
57921    { { $as_echo "$as_me:$LINENO: error: argument to --with-libiconv must be a directory" >&5
57922$as_echo "$as_me: error: argument to --with-libiconv must be a directory" >&2;}
57923   { (exit 1); exit 1; }; }
57924  else
57925     if test "$withval" != "yes" ; then
57926	ICONV_PATH_SPEC=yes
57927        ICONV_LOOK_DIRS="$withval"
57928     fi
57929  fi
57930
57931fi
57932
57933
57934for i in $ICONV_LOOK_DIRS ; do
57935
57936    save_LIBS="$LIBS"
57937    save_LDFLAGS="$LDFLAGS"
57938    save_CPPFLAGS="$CPPFLAGS"
57939
57940    iconv_current_LIBS=""
57941    iconv_current_LDFLAGS=""
57942    iconv_current_CPPFLAGS=""
57943
57944    ICONV_FOUND="no"
57945    unset libext
57946
57947    #  This is here to handle -withval stuff for --with-libiconv
57948    #  Perhaps we should always add a -L
57949    CPPFLAGS="$save_CPPFLAGS -I$i/include"
57950
57951    # Check lib and lib32 library variants to cater for IRIX ABI-specific
57952    # installation paths. This gets a little tricky since we might have iconv
57953    # in both libiconv and in libc. In this case the jm_ICONV test will always
57954    # succeed when the header is found. To counter this, make sure the
57955    # library directory is there and check the ABI directory first (which
57956    # should be harmless on other systems, but causes tons of linker warnings on
57957    # 64bit Ubuntu systems).
57958    # As the build farm doesn't seem to have any IRIX machines with iconv.h
57959    # installed, I've decided to fix the linker warnings.
57960    # -- Kai
57961    # For IA64 HPUX systems, the libs are located in lib/hpux32 instead of lib.
57962    for l in "lib" "lib32" "lib/hpux32"; do
57963        if test -d "$i/$l" ; then
57964                LDFLAGS="$save_LDFLAGS -L$i/$l"
57965		LIBS=
57966		export LDFLAGS LIBS CPPFLAGS
57967		# Try to find iconv(3)
57968
57969      { $as_echo "$as_me:$LINENO: checking for iconv in $i/$l" >&5
57970$as_echo_n "checking for iconv in $i/$l... " >&6; }
57971    jm_cv_func_iconv="no"
57972    jm_cv_lib_iconv=""
57973    jm_cv_giconv=no
57974    jm_save_LIBS="$LIBS"
57975
57976    if test "$jm_cv_func_iconv" != yes; then
57977    cat >conftest.$ac_ext <<_ACEOF
57978/* confdefs.h.  */
57979_ACEOF
57980cat confdefs.h >>conftest.$ac_ext
57981cat >>conftest.$ac_ext <<_ACEOF
57982/* end confdefs.h.  */
57983#include <stdlib.h>
57984#include <giconv.h>
57985int
57986main ()
57987{
57988iconv_t cd = iconv_open("","");
57989       iconv(cd,NULL,NULL,NULL,NULL);
57990       iconv_close(cd);
57991  ;
57992  return 0;
57993}
57994_ACEOF
57995rm -f conftest.$ac_objext conftest$ac_exeext
57996if { (ac_try="$ac_link"
57997case "(($ac_try" in
57998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57999  *) ac_try_echo=$ac_try;;
58000esac
58001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58002$as_echo "$ac_try_echo") >&5
58003  (eval "$ac_link") 2>conftest.er1
58004  ac_status=$?
58005  grep -v '^ *+' conftest.er1 >conftest.err
58006  rm -f conftest.er1
58007  cat conftest.err >&5
58008  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58009  (exit $ac_status); } && {
58010	 test -z "$ac_c_werror_flag" ||
58011	 test ! -s conftest.err
58012       } && test -s conftest$ac_exeext && {
58013	 test "$cross_compiling" = yes ||
58014	 $as_test_x conftest$ac_exeext
58015       }; then
58016  jm_cv_func_iconv=yes
58017       jm_cv_include="giconv.h"
58018       jm_cv_giconv="yes"
58019       jm_cv_lib_iconv=""
58020else
58021  $as_echo "$as_me: failed program was:" >&5
58022sed 's/^/| /' conftest.$ac_ext >&5
58023
58024
58025fi
58026
58027rm -rf conftest.dSYM
58028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58029      conftest$ac_exeext conftest.$ac_ext
58030
58031        if test "$jm_cv_func_iconv" != yes; then
58032      cat >conftest.$ac_ext <<_ACEOF
58033/* confdefs.h.  */
58034_ACEOF
58035cat confdefs.h >>conftest.$ac_ext
58036cat >>conftest.$ac_ext <<_ACEOF
58037/* end confdefs.h.  */
58038#include <stdlib.h>
58039#include <iconv.h>
58040int
58041main ()
58042{
58043iconv_t cd = iconv_open("","");
58044         iconv(cd,NULL,NULL,NULL,NULL);
58045         iconv_close(cd);
58046  ;
58047  return 0;
58048}
58049_ACEOF
58050rm -f conftest.$ac_objext conftest$ac_exeext
58051if { (ac_try="$ac_link"
58052case "(($ac_try" in
58053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58054  *) ac_try_echo=$ac_try;;
58055esac
58056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58057$as_echo "$ac_try_echo") >&5
58058  (eval "$ac_link") 2>conftest.er1
58059  ac_status=$?
58060  grep -v '^ *+' conftest.er1 >conftest.err
58061  rm -f conftest.er1
58062  cat conftest.err >&5
58063  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58064  (exit $ac_status); } && {
58065	 test -z "$ac_c_werror_flag" ||
58066	 test ! -s conftest.err
58067       } && test -s conftest$ac_exeext && {
58068	 test "$cross_compiling" = yes ||
58069	 $as_test_x conftest$ac_exeext
58070       }; then
58071  jm_cv_include="iconv.h"
58072         jm_cv_func_iconv=yes
58073         jm_cv_lib_iconv=""
58074	echo "============= VANIC ============="
58075         jm_cv_include=""
58076         jm_cv_func_iconv=no
58077         jm_cv_lib_iconv=""
58078	echo "============= VANIC ============="
58079else
58080  $as_echo "$as_me: failed program was:" >&5
58081sed 's/^/| /' conftest.$ac_ext >&5
58082
58083
58084fi
58085
58086rm -rf conftest.dSYM
58087rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58088      conftest$ac_exeext conftest.$ac_ext
58089
58090            if test "$jm_cv_func_iconv" != yes; then
58091        jm_save_LIBS="$LIBS"
58092        LIBS="$LIBS -lgiconv"
58093        cat >conftest.$ac_ext <<_ACEOF
58094/* confdefs.h.  */
58095_ACEOF
58096cat confdefs.h >>conftest.$ac_ext
58097cat >>conftest.$ac_ext <<_ACEOF
58098/* end confdefs.h.  */
58099#include <stdlib.h>
58100#include <giconv.h>
58101int
58102main ()
58103{
58104iconv_t cd = iconv_open("","");
58105           iconv(cd,NULL,NULL,NULL,NULL);
58106           iconv_close(cd);
58107  ;
58108  return 0;
58109}
58110_ACEOF
58111rm -f conftest.$ac_objext conftest$ac_exeext
58112if { (ac_try="$ac_link"
58113case "(($ac_try" in
58114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58115  *) ac_try_echo=$ac_try;;
58116esac
58117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58118$as_echo "$ac_try_echo") >&5
58119  (eval "$ac_link") 2>conftest.er1
58120  ac_status=$?
58121  grep -v '^ *+' conftest.er1 >conftest.err
58122  rm -f conftest.er1
58123  cat conftest.err >&5
58124  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58125  (exit $ac_status); } && {
58126	 test -z "$ac_c_werror_flag" ||
58127	 test ! -s conftest.err
58128       } && test -s conftest$ac_exeext && {
58129	 test "$cross_compiling" = yes ||
58130	 $as_test_x conftest$ac_exeext
58131       }; then
58132  jm_cv_lib_iconv=yes
58133          jm_cv_func_iconv=yes
58134          jm_cv_include="giconv.h"
58135          jm_cv_giconv=yes
58136          jm_cv_lib_iconv="giconv"
58137else
58138  $as_echo "$as_me: failed program was:" >&5
58139sed 's/^/| /' conftest.$ac_ext >&5
58140
58141
58142fi
58143
58144rm -rf conftest.dSYM
58145rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58146      conftest$ac_exeext conftest.$ac_ext
58147
58148        LIBS="$jm_save_LIBS"
58149
58150                if test "$jm_cv_func_iconv" != yes; then
58151          jm_save_LIBS="$LIBS"
58152          LIBS="$LIBS -liconv"
58153          cat >conftest.$ac_ext <<_ACEOF
58154/* confdefs.h.  */
58155_ACEOF
58156cat confdefs.h >>conftest.$ac_ext
58157cat >>conftest.$ac_ext <<_ACEOF
58158/* end confdefs.h.  */
58159#include <stdlib.h>
58160#include <iconv.h>
58161int
58162main ()
58163{
58164iconv_t cd = iconv_open("","");
58165             iconv(cd,NULL,NULL,NULL,NULL);
58166             iconv_close(cd);
58167  ;
58168  return 0;
58169}
58170_ACEOF
58171rm -f conftest.$ac_objext conftest$ac_exeext
58172if { (ac_try="$ac_link"
58173case "(($ac_try" in
58174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58175  *) ac_try_echo=$ac_try;;
58176esac
58177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58178$as_echo "$ac_try_echo") >&5
58179  (eval "$ac_link") 2>conftest.er1
58180  ac_status=$?
58181  grep -v '^ *+' conftest.er1 >conftest.err
58182  rm -f conftest.er1
58183  cat conftest.err >&5
58184  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58185  (exit $ac_status); } && {
58186	 test -z "$ac_c_werror_flag" ||
58187	 test ! -s conftest.err
58188       } && test -s conftest$ac_exeext && {
58189	 test "$cross_compiling" = yes ||
58190	 $as_test_x conftest$ac_exeext
58191       }; then
58192  jm_cv_include="iconv.h"
58193            jm_cv_func_iconv=yes
58194            jm_cv_lib_iconv="iconv"
58195else
58196  $as_echo "$as_me: failed program was:" >&5
58197sed 's/^/| /' conftest.$ac_ext >&5
58198
58199
58200fi
58201
58202rm -rf conftest.dSYM
58203rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58204      conftest$ac_exeext conftest.$ac_ext
58205          LIBS="$jm_save_LIBS"
58206
58207                    if test "$jm_cv_func_iconv" != yes; then
58208            jm_save_LIBS="$LIBS"
58209            LIBS="$LIBS -lbiconv"
58210            cat >conftest.$ac_ext <<_ACEOF
58211/* confdefs.h.  */
58212_ACEOF
58213cat confdefs.h >>conftest.$ac_ext
58214cat >>conftest.$ac_ext <<_ACEOF
58215/* end confdefs.h.  */
58216#include <stdlib.h>
58217#include <biconv.h>
58218int
58219main ()
58220{
58221iconv_t cd = iconv_open("","");
58222               iconv(cd,NULL,NULL,NULL,NULL);
58223               iconv_close(cd);
58224  ;
58225  return 0;
58226}
58227_ACEOF
58228rm -f conftest.$ac_objext conftest$ac_exeext
58229if { (ac_try="$ac_link"
58230case "(($ac_try" in
58231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58232  *) ac_try_echo=$ac_try;;
58233esac
58234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58235$as_echo "$ac_try_echo") >&5
58236  (eval "$ac_link") 2>conftest.er1
58237  ac_status=$?
58238  grep -v '^ *+' conftest.er1 >conftest.err
58239  rm -f conftest.er1
58240  cat conftest.err >&5
58241  $as_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_exeext && {
58246	 test "$cross_compiling" = yes ||
58247	 $as_test_x conftest$ac_exeext
58248       }; then
58249  jm_cv_lib_iconv=yes
58250              jm_cv_func_iconv=yes
58251              jm_cv_include="biconv.h"
58252              jm_cv_biconv=yes
58253              jm_cv_lib_iconv="biconv"
58254else
58255  $as_echo "$as_me: failed program was:" >&5
58256sed 's/^/| /' conftest.$ac_ext >&5
58257
58258
58259fi
58260
58261rm -rf conftest.dSYM
58262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58263      conftest$ac_exeext conftest.$ac_ext
58264
58265            LIBS="$jm_save_LIBS"
58266          fi
58267        fi
58268      fi
58269    fi
58270  fi
58271  if test "$jm_cv_func_iconv" = yes; then
58272    if test "$jm_cv_giconv" = yes; then
58273
58274cat >>confdefs.h <<\_ACEOF
58275#define HAVE_GICONV 1
58276_ACEOF
58277
58278      { $as_echo "$as_me:$LINENO: result: yes" >&5
58279$as_echo "yes" >&6; }
58280      ICONV_FOUND=yes
58281    else
58282      if test "$jm_cv_biconv" = yes; then
58283
58284cat >>confdefs.h <<\_ACEOF
58285#define HAVE_BICONV 1
58286_ACEOF
58287
58288        { $as_echo "$as_me:$LINENO: result: yes" >&5
58289$as_echo "yes" >&6; }
58290        ICONV_FOUND=yes
58291      else
58292
58293cat >>confdefs.h <<\_ACEOF
58294#define HAVE_ICONV 1
58295_ACEOF
58296
58297        { $as_echo "$as_me:$LINENO: result: yes" >&5
58298$as_echo "yes" >&6; }
58299        ICONV_FOUND=yes
58300      fi
58301    fi
58302  else
58303    { $as_echo "$as_me:$LINENO: result: no" >&5
58304$as_echo "no" >&6; }
58305  fi
58306
58307                if test x"$ICONV_FOUND" = "xyes" ; then
58308		    libext="$l"
58309		    break
58310		fi
58311        fi
58312    done
58313
58314    if test x"$ICONV_FOUND" = "xyes" ; then
58315	iconv_current_LDFLAGS="-L$i/$libext"
58316	iconv_current_CPPFLAGS="-I$i/include"
58317
58318        if test x"$jm_cv_lib_iconv" != x; then
58319	    iconv_current_LIBS="$LIBS -l$jm_cv_lib_iconv"
58320	else
58321	    # We found iconv in libc.
58322	    iconv_current_LIBS=""
58323        fi
58324
58325    fi
58326
58327    if test x"$ICONV_FOUND" = "xyes" ; then
58328
58329        LDFLAGS="$save_LDFLAGS $iconv_current_LDFLAGS"
58330        CPPFLAGS="$save_CPPFLAGS $iconv_current_CPPFLAGS"
58331	LIBS="$save_LIBS $iconv_current_LIBS"
58332        export LDFLAGS LIBS CPPFLAGS
58333
58334	default_dos_charset=no
58335	default_display_charset=no
58336	default_unix_charset=no
58337
58338	# check for default dos charset name
58339	for j in CP850 IBM850 ; do
58340
58341    { $as_echo "$as_me:$LINENO: checking can we convert from $j to UCS2-LE?" >&5
58342$as_echo_n "checking can we convert from $j to UCS2-LE?... " >&6; }
58343  if test "$cross_compiling" = yes; then
58344  ICONV_CHARSET=cross
58345else
58346  cat >conftest.$ac_ext <<_ACEOF
58347/* confdefs.h.  */
58348_ACEOF
58349cat confdefs.h >>conftest.$ac_ext
58350cat >>conftest.$ac_ext <<_ACEOF
58351/* end confdefs.h.  */
58352
58353#include <$jm_cv_include>
58354main(){
58355    iconv_t cd = iconv_open("$j", "UCS-2LE");
58356    if (cd == 0 || cd == (iconv_t)-1) {
58357	return -1;
58358    }
58359    return 0;
58360}
58361
58362_ACEOF
58363rm -f conftest$ac_exeext
58364if { (ac_try="$ac_link"
58365case "(($ac_try" in
58366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58367  *) ac_try_echo=$ac_try;;
58368esac
58369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58370$as_echo "$ac_try_echo") >&5
58371  (eval "$ac_link") 2>&5
58372  ac_status=$?
58373  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58374  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58375  { (case "(($ac_try" in
58376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58377  *) ac_try_echo=$ac_try;;
58378esac
58379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58380$as_echo "$ac_try_echo") >&5
58381  (eval "$ac_try") 2>&5
58382  ac_status=$?
58383  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58384  (exit $ac_status); }; }; then
58385  ICONV_CHARSET=$j
58386else
58387  $as_echo "$as_me: program exited with status $ac_status" >&5
58388$as_echo "$as_me: failed program was:" >&5
58389sed 's/^/| /' conftest.$ac_ext >&5
58390
58391( exit $ac_status )
58392ICONV_CHARSET=no
58393fi
58394rm -rf conftest.dSYM
58395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58396fi
58397
58398
58399  { $as_echo "$as_me:$LINENO: result: $ICONV_CHARSET" >&5
58400$as_echo "$ICONV_CHARSET" >&6; }
58401
58402	    default_dos_charset="$ICONV_CHARSET"
58403	    if test x"$default_dos_charset" = x"$j"; then
58404		break
58405	    fi
58406	done
58407
58408	# check for default display charset name
58409	for j in ASCII 646 ; do
58410
58411    { $as_echo "$as_me:$LINENO: checking can we convert from $j to UCS2-LE?" >&5
58412$as_echo_n "checking can we convert from $j to UCS2-LE?... " >&6; }
58413  if test "$cross_compiling" = yes; then
58414  ICONV_CHARSET=cross
58415else
58416  cat >conftest.$ac_ext <<_ACEOF
58417/* confdefs.h.  */
58418_ACEOF
58419cat confdefs.h >>conftest.$ac_ext
58420cat >>conftest.$ac_ext <<_ACEOF
58421/* end confdefs.h.  */
58422
58423#include <$jm_cv_include>
58424main(){
58425    iconv_t cd = iconv_open("$j", "UCS-2LE");
58426    if (cd == 0 || cd == (iconv_t)-1) {
58427	return -1;
58428    }
58429    return 0;
58430}
58431
58432_ACEOF
58433rm -f conftest$ac_exeext
58434if { (ac_try="$ac_link"
58435case "(($ac_try" in
58436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58437  *) ac_try_echo=$ac_try;;
58438esac
58439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58440$as_echo "$ac_try_echo") >&5
58441  (eval "$ac_link") 2>&5
58442  ac_status=$?
58443  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58444  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58445  { (case "(($ac_try" in
58446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58447  *) ac_try_echo=$ac_try;;
58448esac
58449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58450$as_echo "$ac_try_echo") >&5
58451  (eval "$ac_try") 2>&5
58452  ac_status=$?
58453  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58454  (exit $ac_status); }; }; then
58455  ICONV_CHARSET=$j
58456else
58457  $as_echo "$as_me: program exited with status $ac_status" >&5
58458$as_echo "$as_me: failed program was:" >&5
58459sed 's/^/| /' conftest.$ac_ext >&5
58460
58461( exit $ac_status )
58462ICONV_CHARSET=no
58463fi
58464rm -rf conftest.dSYM
58465rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58466fi
58467
58468
58469  { $as_echo "$as_me:$LINENO: result: $ICONV_CHARSET" >&5
58470$as_echo "$ICONV_CHARSET" >&6; }
58471
58472	    default_display_charset="$ICONV_CHARSET"
58473	    if test x"$default_display_charset" = x"$j"; then
58474		break
58475	    fi
58476	done
58477
58478	# check for default unix charset name
58479	for j in UTF-8 UTF8 ; do
58480
58481    { $as_echo "$as_me:$LINENO: checking can we convert from $j to UCS2-LE?" >&5
58482$as_echo_n "checking can we convert from $j to UCS2-LE?... " >&6; }
58483  if test "$cross_compiling" = yes; then
58484  ICONV_CHARSET=cross
58485else
58486  cat >conftest.$ac_ext <<_ACEOF
58487/* confdefs.h.  */
58488_ACEOF
58489cat confdefs.h >>conftest.$ac_ext
58490cat >>conftest.$ac_ext <<_ACEOF
58491/* end confdefs.h.  */
58492
58493#include <$jm_cv_include>
58494main(){
58495    iconv_t cd = iconv_open("$j", "UCS-2LE");
58496    if (cd == 0 || cd == (iconv_t)-1) {
58497	return -1;
58498    }
58499    return 0;
58500}
58501
58502_ACEOF
58503rm -f conftest$ac_exeext
58504if { (ac_try="$ac_link"
58505case "(($ac_try" in
58506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58507  *) ac_try_echo=$ac_try;;
58508esac
58509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58510$as_echo "$ac_try_echo") >&5
58511  (eval "$ac_link") 2>&5
58512  ac_status=$?
58513  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58514  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58515  { (case "(($ac_try" in
58516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58517  *) ac_try_echo=$ac_try;;
58518esac
58519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58520$as_echo "$ac_try_echo") >&5
58521  (eval "$ac_try") 2>&5
58522  ac_status=$?
58523  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58524  (exit $ac_status); }; }; then
58525  ICONV_CHARSET=$j
58526else
58527  $as_echo "$as_me: program exited with status $ac_status" >&5
58528$as_echo "$as_me: failed program was:" >&5
58529sed 's/^/| /' conftest.$ac_ext >&5
58530
58531( exit $ac_status )
58532ICONV_CHARSET=no
58533fi
58534rm -rf conftest.dSYM
58535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58536fi
58537
58538
58539  { $as_echo "$as_me:$LINENO: result: $ICONV_CHARSET" >&5
58540$as_echo "$ICONV_CHARSET" >&6; }
58541
58542	    default_unix_charset="$ICONV_CHARSET"
58543	    if test x"$default_unix_charset" = x"$j"; then
58544		break
58545	    fi
58546	done
58547
58548	if test "$default_dos_charset" != "no" -a \
58549		"$default_dos_charset" != "cross" -a \
58550		"$default_display_charset" != "no" -a \
58551		"$default_display_charset" != "cross" -a \
58552		"$default_unix_charset" != "no" -a \
58553		"$default_unix_charset" != "cross"
58554	then
58555		samba_cv_HAVE_NATIVE_ICONV=yes
58556	else
58557	    if test "$default_dos_charset" = "cross" -o \
58558		     "$default_display_charset" = "cross" -o \
58559		     "$default_unix_charset" = "cross"
58560	    then
58561		    samba_cv_HAVE_NATIVE_ICONV=cross
58562	    else
58563		    samba_cv_HAVE_NATIVE_ICONV=no
58564	    fi
58565	fi
58566
58567	# At this point, we have a libiconv candidate. We know that
58568	# we have the right headers and libraries, but we don't know
58569	# whether it does the conversions we want. We can't test this
58570	# because we are cross-compiling. This is not necessarily a big
58571	# deal, since we can't guarantee that the results we get now will
58572	# match the results we get at runtime anyway.
58573	if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"cross" ; then
58574	    default_dos_charset="CP850"
58575	    default_display_charset="ASCII"
58576	    default_unix_charset="UTF-8"
58577	    samba_cv_HAVE_NATIVE_ICONV=yes
58578	    { $as_echo "$as_me:$LINENO: WARNING: assuming the libiconv in $iconv_current_LDFLAGS can convert" >&5
58579$as_echo "$as_me: WARNING: assuming the libiconv in $iconv_current_LDFLAGS can convert" >&2;}
58580	    { $as_echo "$as_me:$LINENO: WARNING: $default_dos_charset, $default_display_charset and $default_unix_charset to UCS-16LE" >&5
58581$as_echo "$as_me: WARNING: $default_dos_charset, $default_display_charset and $default_unix_charset to UCS-16LE" >&2;}
58582	fi
58583
58584        if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes" ; then
58585
58586	    CPPFLAGS=$save_CPPFLAGS
58587	    LDFLAGS=$save_LDFLAGS
58588	    LIBS=$save_LIBS
58589
58590	    if test x"$iconv_current_LIBS" != x; then
58591		LIBS="$LIBS $iconv_current_LIBS"
58592	    fi
58593
58594	    # Add the flags we need to CPPFLAGS and LDFLAGS
58595	    CPPFLAGS="$CPPFLAGS $iconv_current_CPPFLAGS"
58596	    LDFLAGS="$LDFLAGS $iconv_current_LDFLAGS"
58597
58598	    # Turn the #defines into string literals
58599	    default_dos_charset="\"$default_dos_charset\""
58600	    default_display_charset="\"$default_display_charset\""
58601	    default_unix_charset="\"$default_unix_charset\""
58602
58603
58604cat >>confdefs.h <<\_ACEOF
58605#define HAVE_NATIVE_ICONV 1
58606_ACEOF
58607
58608
58609cat >>confdefs.h <<_ACEOF
58610#define DEFAULT_DOS_CHARSET $default_dos_charset
58611_ACEOF
58612
58613
58614cat >>confdefs.h <<_ACEOF
58615#define DEFAULT_DISPLAY_CHARSET $default_display_charset
58616_ACEOF
58617
58618
58619cat >>confdefs.h <<_ACEOF
58620#define DEFAULT_UNIX_CHARSET $default_unix_charset
58621_ACEOF
58622
58623
58624           break
58625        fi
58626
58627    # We didn't find a working iconv, so keep going
58628    fi
58629
58630    #  We only need to clean these up here for the next pass through the loop
58631    CPPFLAGS=$save_CPPFLAGS
58632    LDFLAGS=$save_LDFLAGS
58633    LIBS=$save_LIBS
58634    export LDFLAGS LIBS CPPFLAGS
58635done
58636unset libext
58637
58638
58639if test x"$ICONV_FOUND" = x"no" -o x"$samba_cv_HAVE_NATIVE_ICONV" != x"yes" ; then
58640    { $as_echo "$as_me:$LINENO: WARNING: Sufficient support for iconv function was not found.
58641    Install libiconv from http://freshmeat.net/projects/libiconv/ for better charset compatibility!" >&5
58642$as_echo "$as_me: WARNING: Sufficient support for iconv function was not found.
58643    Install libiconv from http://freshmeat.net/projects/libiconv/ for better charset compatibility!" >&2;}
58644
58645cat >>confdefs.h <<_ACEOF
58646#define DEFAULT_DOS_CHARSET "ASCII"
58647_ACEOF
58648
58649
58650cat >>confdefs.h <<_ACEOF
58651#define DEFAULT_DISPLAY_CHARSET "ASCII"
58652_ACEOF
58653
58654
58655cat >>confdefs.h <<_ACEOF
58656#define DEFAULT_UNIX_CHARSET "UTF8"
58657_ACEOF
58658
58659fi
58660
58661
58662{ $as_echo "$as_me:$LINENO: checking for Linux kernel oplocks" >&5
58663$as_echo_n "checking for Linux kernel oplocks... " >&6; }
58664if test "${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX+set}" = set; then
58665  $as_echo_n "(cached) " >&6
58666else
58667
58668if test "$cross_compiling" = yes; then
58669  samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
58670else
58671  cat >conftest.$ac_ext <<_ACEOF
58672/* confdefs.h.  */
58673_ACEOF
58674cat confdefs.h >>conftest.$ac_ext
58675cat >>conftest.$ac_ext <<_ACEOF
58676/* end confdefs.h.  */
58677
58678#include <sys/types.h>
58679#include <fcntl.h>
58680#ifndef F_GETLEASE
58681#define F_GETLEASE	1025
58682#endif
58683main() {
58684       int fd = open("/dev/null", O_RDONLY);
58685       return fcntl(fd, F_GETLEASE, 0) == -1;
58686}
58687
58688_ACEOF
58689rm -f conftest$ac_exeext
58690if { (ac_try="$ac_link"
58691case "(($ac_try" in
58692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58693  *) ac_try_echo=$ac_try;;
58694esac
58695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58696$as_echo "$ac_try_echo") >&5
58697  (eval "$ac_link") 2>&5
58698  ac_status=$?
58699  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58700  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58701  { (case "(($ac_try" in
58702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58703  *) ac_try_echo=$ac_try;;
58704esac
58705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58706$as_echo "$ac_try_echo") >&5
58707  (eval "$ac_try") 2>&5
58708  ac_status=$?
58709  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58710  (exit $ac_status); }; }; then
58711  samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
58712else
58713  $as_echo "$as_me: program exited with status $ac_status" >&5
58714$as_echo "$as_me: failed program was:" >&5
58715sed 's/^/| /' conftest.$ac_ext >&5
58716
58717( exit $ac_status )
58718samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
58719fi
58720rm -rf conftest.dSYM
58721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58722fi
58723
58724
58725fi
58726{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&5
58727$as_echo "$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&6; }
58728if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
58729
58730cat >>confdefs.h <<\_ACEOF
58731#define HAVE_KERNEL_OPLOCKS_LINUX 1
58732_ACEOF
58733
58734fi
58735
58736{ $as_echo "$as_me:$LINENO: checking for kernel change notify support" >&5
58737$as_echo_n "checking for kernel change notify support... " >&6; }
58738if test "${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY+set}" = set; then
58739  $as_echo_n "(cached) " >&6
58740else
58741
58742if test "$cross_compiling" = yes; then
58743  samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
58744else
58745  cat >conftest.$ac_ext <<_ACEOF
58746/* confdefs.h.  */
58747_ACEOF
58748cat confdefs.h >>conftest.$ac_ext
58749cat >>conftest.$ac_ext <<_ACEOF
58750/* end confdefs.h.  */
58751
58752#include <sys/types.h>
58753#include <fcntl.h>
58754#include <signal.h>
58755#ifndef F_NOTIFY
58756#define F_NOTIFY 1026
58757#endif
58758main() {
58759       	exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ?  1 : 0);
58760}
58761
58762_ACEOF
58763rm -f conftest$ac_exeext
58764if { (ac_try="$ac_link"
58765case "(($ac_try" in
58766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58767  *) ac_try_echo=$ac_try;;
58768esac
58769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58770$as_echo "$ac_try_echo") >&5
58771  (eval "$ac_link") 2>&5
58772  ac_status=$?
58773  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58774  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58775  { (case "(($ac_try" in
58776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58777  *) ac_try_echo=$ac_try;;
58778esac
58779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58780$as_echo "$ac_try_echo") >&5
58781  (eval "$ac_try") 2>&5
58782  ac_status=$?
58783  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58784  (exit $ac_status); }; }; then
58785  samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
58786else
58787  $as_echo "$as_me: program exited with status $ac_status" >&5
58788$as_echo "$as_me: failed program was:" >&5
58789sed 's/^/| /' conftest.$ac_ext >&5
58790
58791( exit $ac_status )
58792samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
58793fi
58794rm -rf conftest.dSYM
58795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58796fi
58797
58798
58799fi
58800{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&5
58801$as_echo "$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&6; }
58802if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
58803
58804cat >>confdefs.h <<\_ACEOF
58805#define HAVE_KERNEL_CHANGE_NOTIFY 1
58806_ACEOF
58807
58808fi
58809
58810{ $as_echo "$as_me:$LINENO: checking for inotify support" >&5
58811$as_echo_n "checking for inotify support... " >&6; }
58812if test "${samba_cv_HAVE_INOTIFY+set}" = set; then
58813  $as_echo_n "(cached) " >&6
58814else
58815
58816
58817
58818
58819for ac_header in linux/inotify.h asm/unistd.h sys/inotify.h
58820do
58821as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
58822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58823  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
58824$as_echo_n "checking for $ac_header... " >&6; }
58825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58826  $as_echo_n "(cached) " >&6
58827fi
58828ac_res=`eval 'as_val=${'$as_ac_Header'}
58829		 $as_echo "$as_val"'`
58830	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58831$as_echo "$ac_res" >&6; }
58832else
58833  # Is the header compilable?
58834{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
58835$as_echo_n "checking $ac_header usability... " >&6; }
58836cat >conftest.$ac_ext <<_ACEOF
58837/* confdefs.h.  */
58838_ACEOF
58839cat confdefs.h >>conftest.$ac_ext
58840cat >>conftest.$ac_ext <<_ACEOF
58841/* end confdefs.h.  */
58842$ac_includes_default
58843#include <$ac_header>
58844_ACEOF
58845rm -f conftest.$ac_objext
58846if { (ac_try="$ac_compile"
58847case "(($ac_try" in
58848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58849  *) ac_try_echo=$ac_try;;
58850esac
58851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58852$as_echo "$ac_try_echo") >&5
58853  (eval "$ac_compile") 2>conftest.er1
58854  ac_status=$?
58855  grep -v '^ *+' conftest.er1 >conftest.err
58856  rm -f conftest.er1
58857  cat conftest.err >&5
58858  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58859  (exit $ac_status); } && {
58860	 test -z "$ac_c_werror_flag" ||
58861	 test ! -s conftest.err
58862       } && test -s conftest.$ac_objext; then
58863  ac_header_compiler=yes
58864else
58865  $as_echo "$as_me: failed program was:" >&5
58866sed 's/^/| /' conftest.$ac_ext >&5
58867
58868	ac_header_compiler=no
58869fi
58870
58871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58872{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58873$as_echo "$ac_header_compiler" >&6; }
58874
58875# Is the header present?
58876{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
58877$as_echo_n "checking $ac_header presence... " >&6; }
58878cat >conftest.$ac_ext <<_ACEOF
58879/* confdefs.h.  */
58880_ACEOF
58881cat confdefs.h >>conftest.$ac_ext
58882cat >>conftest.$ac_ext <<_ACEOF
58883/* end confdefs.h.  */
58884#include <$ac_header>
58885_ACEOF
58886if { (ac_try="$ac_cpp conftest.$ac_ext"
58887case "(($ac_try" in
58888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58889  *) ac_try_echo=$ac_try;;
58890esac
58891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58892$as_echo "$ac_try_echo") >&5
58893  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
58894  ac_status=$?
58895  grep -v '^ *+' conftest.er1 >conftest.err
58896  rm -f conftest.er1
58897  cat conftest.err >&5
58898  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58899  (exit $ac_status); } >/dev/null && {
58900	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
58901	 test ! -s conftest.err
58902       }; then
58903  ac_header_preproc=yes
58904else
58905  $as_echo "$as_me: failed program was:" >&5
58906sed 's/^/| /' conftest.$ac_ext >&5
58907
58908  ac_header_preproc=no
58909fi
58910
58911rm -f conftest.err conftest.$ac_ext
58912{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58913$as_echo "$ac_header_preproc" >&6; }
58914
58915# So?  What about this header?
58916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58917  yes:no: )
58918    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58919$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58920    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58921$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58922    ac_header_preproc=yes
58923    ;;
58924  no:yes:* )
58925    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58926$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58927    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
58928$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
58929    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58930$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58931    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
58932$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
58933    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58934$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58935    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58936$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58937    ( cat <<\_ASBOX
58938## ---------------------------------------- ##
58939## Report this to samba-technical@samba.org ##
58940## ---------------------------------------- ##
58941_ASBOX
58942     ) | sed "s/^/$as_me: WARNING:     /" >&2
58943    ;;
58944esac
58945{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
58946$as_echo_n "checking for $ac_header... " >&6; }
58947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58948  $as_echo_n "(cached) " >&6
58949else
58950  eval "$as_ac_Header=\$ac_header_preproc"
58951fi
58952ac_res=`eval 'as_val=${'$as_ac_Header'}
58953		 $as_echo "$as_val"'`
58954	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58955$as_echo "$ac_res" >&6; }
58956
58957fi
58958as_val=`eval 'as_val=${'$as_ac_Header'}
58959		 $as_echo "$as_val"'`
58960   if test "x$as_val" = x""yes; then
58961  cat >>confdefs.h <<_ACEOF
58962#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
58963_ACEOF
58964
58965fi
58966
58967done
58968
58969
58970for ac_func in inotify_init
58971do
58972as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58973{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58974$as_echo_n "checking for $ac_func... " >&6; }
58975if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58976  $as_echo_n "(cached) " >&6
58977else
58978  cat >conftest.$ac_ext <<_ACEOF
58979/* confdefs.h.  */
58980_ACEOF
58981cat confdefs.h >>conftest.$ac_ext
58982cat >>conftest.$ac_ext <<_ACEOF
58983/* end confdefs.h.  */
58984/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58985   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58986#define $ac_func innocuous_$ac_func
58987
58988/* System header to define __stub macros and hopefully few prototypes,
58989    which can conflict with char $ac_func (); below.
58990    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58991    <limits.h> exists even on freestanding compilers.  */
58992
58993#ifdef __STDC__
58994# include <limits.h>
58995#else
58996# include <assert.h>
58997#endif
58998
58999#undef $ac_func
59000
59001/* Override any GCC internal prototype to avoid an error.
59002   Use char because int might match the return type of a GCC
59003   builtin and then its argument prototype would still apply.  */
59004#ifdef __cplusplus
59005extern "C"
59006#endif
59007char $ac_func ();
59008/* The GNU C library defines this for functions which it implements
59009    to always fail with ENOSYS.  Some functions are actually named
59010    something starting with __ and the normal name is an alias.  */
59011#if defined __stub_$ac_func || defined __stub___$ac_func
59012choke me
59013#endif
59014
59015int
59016main ()
59017{
59018return $ac_func ();
59019  ;
59020  return 0;
59021}
59022_ACEOF
59023rm -f conftest.$ac_objext conftest$ac_exeext
59024if { (ac_try="$ac_link"
59025case "(($ac_try" in
59026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59027  *) ac_try_echo=$ac_try;;
59028esac
59029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59030$as_echo "$ac_try_echo") >&5
59031  (eval "$ac_link") 2>conftest.er1
59032  ac_status=$?
59033  grep -v '^ *+' conftest.er1 >conftest.err
59034  rm -f conftest.er1
59035  cat conftest.err >&5
59036  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59037  (exit $ac_status); } && {
59038	 test -z "$ac_c_werror_flag" ||
59039	 test ! -s conftest.err
59040       } && test -s conftest$ac_exeext && {
59041	 test "$cross_compiling" = yes ||
59042	 $as_test_x conftest$ac_exeext
59043       }; then
59044  eval "$as_ac_var=yes"
59045else
59046  $as_echo "$as_me: failed program was:" >&5
59047sed 's/^/| /' conftest.$ac_ext >&5
59048
59049	eval "$as_ac_var=no"
59050fi
59051
59052rm -rf conftest.dSYM
59053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59054      conftest$ac_exeext conftest.$ac_ext
59055fi
59056ac_res=`eval 'as_val=${'$as_ac_var'}
59057		 $as_echo "$as_val"'`
59058	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59059$as_echo "$ac_res" >&6; }
59060as_val=`eval 'as_val=${'$as_ac_var'}
59061		 $as_echo "$as_val"'`
59062   if test "x$as_val" = x""yes; then
59063  cat >>confdefs.h <<_ACEOF
59064#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59065_ACEOF
59066
59067fi
59068done
59069
59070
59071 { $as_echo "$as_me:$LINENO: checking for __NR_inotify_init declaration" >&5
59072$as_echo_n "checking for __NR_inotify_init declaration... " >&6; }
59073if test "${ac_cv_have___NR_inotify_init_decl+set}" = set; then
59074  $as_echo_n "(cached) " >&6
59075else
59076
59077    cat >conftest.$ac_ext <<_ACEOF
59078/* confdefs.h.  */
59079_ACEOF
59080cat confdefs.h >>conftest.$ac_ext
59081cat >>conftest.$ac_ext <<_ACEOF
59082/* end confdefs.h.  */
59083#include <asm/unistd.h>
59084int
59085main ()
59086{
59087int i = (int)__NR_inotify_init
59088  ;
59089  return 0;
59090}
59091_ACEOF
59092rm -f conftest.$ac_objext
59093if { (ac_try="$ac_compile"
59094case "(($ac_try" in
59095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59096  *) ac_try_echo=$ac_try;;
59097esac
59098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59099$as_echo "$ac_try_echo") >&5
59100  (eval "$ac_compile") 2>conftest.er1
59101  ac_status=$?
59102  grep -v '^ *+' conftest.er1 >conftest.err
59103  rm -f conftest.er1
59104  cat conftest.err >&5
59105  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59106  (exit $ac_status); } && {
59107	 test -z "$ac_c_werror_flag" ||
59108	 test ! -s conftest.err
59109       } && test -s conftest.$ac_objext; then
59110  ac_cv_have___NR_inotify_init_decl=yes
59111else
59112  $as_echo "$as_me: failed program was:" >&5
59113sed 's/^/| /' conftest.$ac_ext >&5
59114
59115	ac_cv_have___NR_inotify_init_decl=no
59116fi
59117
59118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59119fi
59120{ $as_echo "$as_me:$LINENO: result: $ac_cv_have___NR_inotify_init_decl" >&5
59121$as_echo "$ac_cv_have___NR_inotify_init_decl" >&6; }
59122 if test x"$ac_cv_have___NR_inotify_init_decl" = x"yes"; then
59123
59124cat >>confdefs.h <<\_ACEOF
59125#define HAVE___NR_INOTIFY_INIT_DECL 1
59126_ACEOF
59127
59128 fi
59129
59130
59131fi
59132{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_INOTIFY" >&5
59133$as_echo "$samba_cv_HAVE_INOTIFY" >&6; }
59134
59135if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_linux_inotify_h" = x"yes"; then
59136
59137cat >>confdefs.h <<\_ACEOF
59138#define HAVE_INOTIFY 1
59139_ACEOF
59140
59141fi
59142
59143#################################################
59144# Check if FAM notifications are available. For FAM info, see
59145#	http://oss.sgi.com/projects/fam/
59146#	http://savannah.nongnu.org/projects/fam/
59147# Check whether --enable-fam was given.
59148if test "${enable_fam+set}" = set; then
59149  enableval=$enable_fam;
59150fi
59151
59152
59153if test x$enable_fam != xno; then
59154
59155for ac_header in fam.h
59156do
59157as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
59158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
59159  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
59160$as_echo_n "checking for $ac_header... " >&6; }
59161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
59162  $as_echo_n "(cached) " >&6
59163fi
59164ac_res=`eval 'as_val=${'$as_ac_Header'}
59165		 $as_echo "$as_val"'`
59166	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59167$as_echo "$ac_res" >&6; }
59168else
59169  # Is the header compilable?
59170{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
59171$as_echo_n "checking $ac_header usability... " >&6; }
59172cat >conftest.$ac_ext <<_ACEOF
59173/* confdefs.h.  */
59174_ACEOF
59175cat confdefs.h >>conftest.$ac_ext
59176cat >>conftest.$ac_ext <<_ACEOF
59177/* end confdefs.h.  */
59178$ac_includes_default
59179#include <$ac_header>
59180_ACEOF
59181rm -f conftest.$ac_objext
59182if { (ac_try="$ac_compile"
59183case "(($ac_try" in
59184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59185  *) ac_try_echo=$ac_try;;
59186esac
59187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59188$as_echo "$ac_try_echo") >&5
59189  (eval "$ac_compile") 2>conftest.er1
59190  ac_status=$?
59191  grep -v '^ *+' conftest.er1 >conftest.err
59192  rm -f conftest.er1
59193  cat conftest.err >&5
59194  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59195  (exit $ac_status); } && {
59196	 test -z "$ac_c_werror_flag" ||
59197	 test ! -s conftest.err
59198       } && test -s conftest.$ac_objext; then
59199  ac_header_compiler=yes
59200else
59201  $as_echo "$as_me: failed program was:" >&5
59202sed 's/^/| /' conftest.$ac_ext >&5
59203
59204	ac_header_compiler=no
59205fi
59206
59207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59208{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59209$as_echo "$ac_header_compiler" >&6; }
59210
59211# Is the header present?
59212{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
59213$as_echo_n "checking $ac_header presence... " >&6; }
59214cat >conftest.$ac_ext <<_ACEOF
59215/* confdefs.h.  */
59216_ACEOF
59217cat confdefs.h >>conftest.$ac_ext
59218cat >>conftest.$ac_ext <<_ACEOF
59219/* end confdefs.h.  */
59220#include <$ac_header>
59221_ACEOF
59222if { (ac_try="$ac_cpp conftest.$ac_ext"
59223case "(($ac_try" in
59224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59225  *) ac_try_echo=$ac_try;;
59226esac
59227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59228$as_echo "$ac_try_echo") >&5
59229  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
59230  ac_status=$?
59231  grep -v '^ *+' conftest.er1 >conftest.err
59232  rm -f conftest.er1
59233  cat conftest.err >&5
59234  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59235  (exit $ac_status); } >/dev/null && {
59236	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
59237	 test ! -s conftest.err
59238       }; then
59239  ac_header_preproc=yes
59240else
59241  $as_echo "$as_me: failed program was:" >&5
59242sed 's/^/| /' conftest.$ac_ext >&5
59243
59244  ac_header_preproc=no
59245fi
59246
59247rm -f conftest.err conftest.$ac_ext
59248{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59249$as_echo "$ac_header_preproc" >&6; }
59250
59251# So?  What about this header?
59252case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59253  yes:no: )
59254    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59255$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59256    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59257$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59258    ac_header_preproc=yes
59259    ;;
59260  no:yes:* )
59261    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59262$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59263    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
59264$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
59265    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59266$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59267    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
59268$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
59269    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59270$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59271    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59272$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59273    ( cat <<\_ASBOX
59274## ---------------------------------------- ##
59275## Report this to samba-technical@samba.org ##
59276## ---------------------------------------- ##
59277_ASBOX
59278     ) | sed "s/^/$as_me: WARNING:     /" >&2
59279    ;;
59280esac
59281{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
59282$as_echo_n "checking for $ac_header... " >&6; }
59283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
59284  $as_echo_n "(cached) " >&6
59285else
59286  eval "$as_ac_Header=\$ac_header_preproc"
59287fi
59288ac_res=`eval 'as_val=${'$as_ac_Header'}
59289		 $as_echo "$as_val"'`
59290	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59291$as_echo "$ac_res" >&6; }
59292
59293fi
59294as_val=`eval 'as_val=${'$as_ac_Header'}
59295		 $as_echo "$as_val"'`
59296   if test "x$as_val" = x""yes; then
59297  cat >>confdefs.h <<_ACEOF
59298#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
59299_ACEOF
59300 samba_cv_HAVE_FAM_H=yes
59301else
59302  samba_cv_HAVE_FAM_H=no
59303fi
59304
59305done
59306
59307    if test x"$samba_cv_HAVE_FAM_H" = x"yes"; then
59308        # On IRIX, libfam requires libC, but other FAM implementations
59309	# might not need it.
59310        { $as_echo "$as_me:$LINENO: checking for FAMOpen2 in -lfam" >&5
59311$as_echo_n "checking for FAMOpen2 in -lfam... " >&6; }
59312if test "${ac_cv_lib_fam_FAMOpen2+set}" = set; then
59313  $as_echo_n "(cached) " >&6
59314else
59315  ac_check_lib_save_LIBS=$LIBS
59316LIBS="-lfam  $LIBS"
59317cat >conftest.$ac_ext <<_ACEOF
59318/* confdefs.h.  */
59319_ACEOF
59320cat confdefs.h >>conftest.$ac_ext
59321cat >>conftest.$ac_ext <<_ACEOF
59322/* end confdefs.h.  */
59323
59324/* Override any GCC internal prototype to avoid an error.
59325   Use char because int might match the return type of a GCC
59326   builtin and then its argument prototype would still apply.  */
59327#ifdef __cplusplus
59328extern "C"
59329#endif
59330char FAMOpen2 ();
59331int
59332main ()
59333{
59334return FAMOpen2 ();
59335  ;
59336  return 0;
59337}
59338_ACEOF
59339rm -f conftest.$ac_objext conftest$ac_exeext
59340if { (ac_try="$ac_link"
59341case "(($ac_try" in
59342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59343  *) ac_try_echo=$ac_try;;
59344esac
59345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59346$as_echo "$ac_try_echo") >&5
59347  (eval "$ac_link") 2>conftest.er1
59348  ac_status=$?
59349  grep -v '^ *+' conftest.er1 >conftest.err
59350  rm -f conftest.er1
59351  cat conftest.err >&5
59352  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59353  (exit $ac_status); } && {
59354	 test -z "$ac_c_werror_flag" ||
59355	 test ! -s conftest.err
59356       } && test -s conftest$ac_exeext && {
59357	 test "$cross_compiling" = yes ||
59358	 $as_test_x conftest$ac_exeext
59359       }; then
59360  ac_cv_lib_fam_FAMOpen2=yes
59361else
59362  $as_echo "$as_me: failed program was:" >&5
59363sed 's/^/| /' conftest.$ac_ext >&5
59364
59365	ac_cv_lib_fam_FAMOpen2=no
59366fi
59367
59368rm -rf conftest.dSYM
59369rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59370      conftest$ac_exeext conftest.$ac_ext
59371LIBS=$ac_check_lib_save_LIBS
59372fi
59373{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fam_FAMOpen2" >&5
59374$as_echo "$ac_cv_lib_fam_FAMOpen2" >&6; }
59375if test "x$ac_cv_lib_fam_FAMOpen2" = x""yes; then
59376  samba_cv_HAVE_LIBFAM=yes; SMB_FAM_LIBS="-lfam"
59377else
59378  samba_cv_HAVE_LIBFAM=no
59379fi
59380
59381
59382        if test x"$samba_cv_HAVE_LIBFAM" = x"no" ; then
59383            samba_fam_xtra=-lC
59384
59385
59386
59387ac_check_lib_ext_save_LIBS=$LIBS
59388LIBS="-lfam $samba_fam_xtra  $LIBS"
59389
59390
59391
59392
59393        { $as_echo "$as_me:$LINENO: checking for FAMOpen2 in -lfam" >&5
59394$as_echo_n "checking for FAMOpen2 in -lfam... " >&6; }
59395if test "${ac_cv_lib_ext_fam_FAMOpen2+set}" = set; then
59396  $as_echo_n "(cached) " >&6
59397else
59398  cat >conftest.$ac_ext <<_ACEOF
59399/* confdefs.h.  */
59400_ACEOF
59401cat confdefs.h >>conftest.$ac_ext
59402cat >>conftest.$ac_ext <<_ACEOF
59403/* end confdefs.h.  */
59404
59405/* Override any GCC internal prototype to avoid an error.
59406   Use char because int might match the return type of a GCC
59407   builtin and then its argument prototype would still apply.  */
59408#ifdef __cplusplus
59409extern "C"
59410#endif
59411char FAMOpen2 ();
59412int
59413main ()
59414{
59415return FAMOpen2 ();
59416  ;
59417  return 0;
59418}
59419_ACEOF
59420rm -f conftest.$ac_objext conftest$ac_exeext
59421if { (ac_try="$ac_link"
59422case "(($ac_try" in
59423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59424  *) ac_try_echo=$ac_try;;
59425esac
59426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59427$as_echo "$ac_try_echo") >&5
59428  (eval "$ac_link") 2>conftest.er1
59429  ac_status=$?
59430  grep -v '^ *+' conftest.er1 >conftest.err
59431  rm -f conftest.er1
59432  cat conftest.err >&5
59433  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59434  (exit $ac_status); } && {
59435	 test -z "$ac_c_werror_flag" ||
59436	 test ! -s conftest.err
59437       } && test -s conftest$ac_exeext && {
59438	 test "$cross_compiling" = yes ||
59439	 $as_test_x conftest$ac_exeext
59440       }; then
59441  ac_cv_lib_ext_fam_FAMOpen2=yes;
59442		  ac_cv_lib_ext_fam=yes
59443else
59444  $as_echo "$as_me: failed program was:" >&5
59445sed 's/^/| /' conftest.$ac_ext >&5
59446
59447	ac_cv_lib_ext_fam_FAMOpen2=no;
59448		  ac_cv_lib_ext_fam=no
59449fi
59450
59451rm -rf conftest.dSYM
59452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59453      conftest$ac_exeext conftest.$ac_ext
59454
59455fi
59456{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_fam_FAMOpen2" >&5
59457$as_echo "$ac_cv_lib_ext_fam_FAMOpen2" >&6; }
59458    if test $ac_cv_lib_ext_fam_FAMOpen2 = yes; then
59459  cat >>confdefs.h <<_ACEOF
59460#define HAVE_FAMOPEN2 1
59461_ACEOF
59462
59463fi
59464
59465LIBS=$ac_check_lib_ext_save_LIBS
59466
59467if test $ac_cv_lib_ext_fam = yes; then
59468  samba_cv_HAVE_LIBFAM=yes; SMB_FAM_LIBS="-lfam -lC"
59469
59470
59471else
59472  samba_cv_HAVE_LIBFAM=no
59473fi
59474
59475            unset samba_fam_xtra
59476        fi
59477    fi
59478
59479    if test x"$samba_cv_HAVE_LIBFAM" = x"yes" ; then
59480        default_shared_modules="$default_shared_modules vfs_notify_fam"
59481        cat >conftest.$ac_ext <<_ACEOF
59482/* confdefs.h.  */
59483_ACEOF
59484cat confdefs.h >>conftest.$ac_ext
59485cat >>conftest.$ac_ext <<_ACEOF
59486/* end confdefs.h.  */
59487#include <fam.h>
59488int
59489main ()
59490{
59491enum FAMCodes code = FAMChanged;
59492  ;
59493  return 0;
59494}
59495_ACEOF
59496rm -f conftest.$ac_objext
59497if { (ac_try="$ac_compile"
59498case "(($ac_try" in
59499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59500  *) ac_try_echo=$ac_try;;
59501esac
59502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59503$as_echo "$ac_try_echo") >&5
59504  (eval "$ac_compile") 2>conftest.er1
59505  ac_status=$?
59506  grep -v '^ *+' conftest.er1 >conftest.err
59507  rm -f conftest.er1
59508  cat conftest.err >&5
59509  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59510  (exit $ac_status); } && {
59511	 test -z "$ac_c_werror_flag" ||
59512	 test ! -s conftest.err
59513       } && test -s conftest.$ac_objext; then
59514
59515cat >>confdefs.h <<\_ACEOF
59516#define HAVE_FAM_H_FAMCODES_TYPEDEF 1
59517_ACEOF
59518
59519else
59520  $as_echo "$as_me: failed program was:" >&5
59521sed 's/^/| /' conftest.$ac_ext >&5
59522
59523
59524fi
59525
59526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59527    fi
59528
59529    if test x$enable_fam = xyes && test x"$samba_cv_HAVE_LIBFAM" != xyes ; then
59530        { { $as_echo "$as_me:$LINENO: error: FAM support requested but FAM library not available " >&5
59531$as_echo "$as_me: error: FAM support requested but FAM library not available " >&2;}
59532   { (exit 1); exit 1; }; }
59533    fi
59534fi
59535
59536
59537
59538#################################################
59539# Check for DMAPI interfaces in libdm/libjfsdm/libxsdm
59540
59541
59542    samba_dmapi_libs=""
59543
59544    if test x"$samba_dmapi_libs" = x"" ; then
59545	{ $as_echo "$as_me:$LINENO: checking for dm_get_eventlist in -ldm" >&5
59546$as_echo_n "checking for dm_get_eventlist in -ldm... " >&6; }
59547if test "${ac_cv_lib_dm_dm_get_eventlist+set}" = set; then
59548  $as_echo_n "(cached) " >&6
59549else
59550  ac_check_lib_save_LIBS=$LIBS
59551LIBS="-ldm  $LIBS"
59552cat >conftest.$ac_ext <<_ACEOF
59553/* confdefs.h.  */
59554_ACEOF
59555cat confdefs.h >>conftest.$ac_ext
59556cat >>conftest.$ac_ext <<_ACEOF
59557/* end confdefs.h.  */
59558
59559/* Override any GCC internal prototype to avoid an error.
59560   Use char because int might match the return type of a GCC
59561   builtin and then its argument prototype would still apply.  */
59562#ifdef __cplusplus
59563extern "C"
59564#endif
59565char dm_get_eventlist ();
59566int
59567main ()
59568{
59569return dm_get_eventlist ();
59570  ;
59571  return 0;
59572}
59573_ACEOF
59574rm -f conftest.$ac_objext conftest$ac_exeext
59575if { (ac_try="$ac_link"
59576case "(($ac_try" in
59577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59578  *) ac_try_echo=$ac_try;;
59579esac
59580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59581$as_echo "$ac_try_echo") >&5
59582  (eval "$ac_link") 2>conftest.er1
59583  ac_status=$?
59584  grep -v '^ *+' conftest.er1 >conftest.err
59585  rm -f conftest.er1
59586  cat conftest.err >&5
59587  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59588  (exit $ac_status); } && {
59589	 test -z "$ac_c_werror_flag" ||
59590	 test ! -s conftest.err
59591       } && test -s conftest$ac_exeext && {
59592	 test "$cross_compiling" = yes ||
59593	 $as_test_x conftest$ac_exeext
59594       }; then
59595  ac_cv_lib_dm_dm_get_eventlist=yes
59596else
59597  $as_echo "$as_me: failed program was:" >&5
59598sed 's/^/| /' conftest.$ac_ext >&5
59599
59600	ac_cv_lib_dm_dm_get_eventlist=no
59601fi
59602
59603rm -rf conftest.dSYM
59604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59605      conftest$ac_exeext conftest.$ac_ext
59606LIBS=$ac_check_lib_save_LIBS
59607fi
59608{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dm_dm_get_eventlist" >&5
59609$as_echo "$ac_cv_lib_dm_dm_get_eventlist" >&6; }
59610if test "x$ac_cv_lib_dm_dm_get_eventlist" = x""yes; then
59611   samba_dmapi_libs="-ldm"
59612fi
59613
59614    fi
59615
59616    if test x"$samba_dmapi_libs" = x"" ; then
59617	{ $as_echo "$as_me:$LINENO: checking for dm_get_eventlist in -ljfsdm" >&5
59618$as_echo_n "checking for dm_get_eventlist in -ljfsdm... " >&6; }
59619if test "${ac_cv_lib_jfsdm_dm_get_eventlist+set}" = set; then
59620  $as_echo_n "(cached) " >&6
59621else
59622  ac_check_lib_save_LIBS=$LIBS
59623LIBS="-ljfsdm  $LIBS"
59624cat >conftest.$ac_ext <<_ACEOF
59625/* confdefs.h.  */
59626_ACEOF
59627cat confdefs.h >>conftest.$ac_ext
59628cat >>conftest.$ac_ext <<_ACEOF
59629/* end confdefs.h.  */
59630
59631/* Override any GCC internal prototype to avoid an error.
59632   Use char because int might match the return type of a GCC
59633   builtin and then its argument prototype would still apply.  */
59634#ifdef __cplusplus
59635extern "C"
59636#endif
59637char dm_get_eventlist ();
59638int
59639main ()
59640{
59641return dm_get_eventlist ();
59642  ;
59643  return 0;
59644}
59645_ACEOF
59646rm -f conftest.$ac_objext conftest$ac_exeext
59647if { (ac_try="$ac_link"
59648case "(($ac_try" in
59649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59650  *) ac_try_echo=$ac_try;;
59651esac
59652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59653$as_echo "$ac_try_echo") >&5
59654  (eval "$ac_link") 2>conftest.er1
59655  ac_status=$?
59656  grep -v '^ *+' conftest.er1 >conftest.err
59657  rm -f conftest.er1
59658  cat conftest.err >&5
59659  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59660  (exit $ac_status); } && {
59661	 test -z "$ac_c_werror_flag" ||
59662	 test ! -s conftest.err
59663       } && test -s conftest$ac_exeext && {
59664	 test "$cross_compiling" = yes ||
59665	 $as_test_x conftest$ac_exeext
59666       }; then
59667  ac_cv_lib_jfsdm_dm_get_eventlist=yes
59668else
59669  $as_echo "$as_me: failed program was:" >&5
59670sed 's/^/| /' conftest.$ac_ext >&5
59671
59672	ac_cv_lib_jfsdm_dm_get_eventlist=no
59673fi
59674
59675rm -rf conftest.dSYM
59676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59677      conftest$ac_exeext conftest.$ac_ext
59678LIBS=$ac_check_lib_save_LIBS
59679fi
59680{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jfsdm_dm_get_eventlist" >&5
59681$as_echo "$ac_cv_lib_jfsdm_dm_get_eventlist" >&6; }
59682if test "x$ac_cv_lib_jfsdm_dm_get_eventlist" = x""yes; then
59683  samba_dmapi_libs="-ljfsdm"
59684fi
59685
59686    fi
59687
59688    if test x"$samba_dmapi_libs" = x"" ; then
59689        { $as_echo "$as_me:$LINENO: checking for dm_get_eventlist in -ldmapi" >&5
59690$as_echo_n "checking for dm_get_eventlist in -ldmapi... " >&6; }
59691if test "${ac_cv_lib_dmapi_dm_get_eventlist+set}" = set; then
59692  $as_echo_n "(cached) " >&6
59693else
59694  ac_check_lib_save_LIBS=$LIBS
59695LIBS="-ldmapi  $LIBS"
59696cat >conftest.$ac_ext <<_ACEOF
59697/* confdefs.h.  */
59698_ACEOF
59699cat confdefs.h >>conftest.$ac_ext
59700cat >>conftest.$ac_ext <<_ACEOF
59701/* end confdefs.h.  */
59702
59703/* Override any GCC internal prototype to avoid an error.
59704   Use char because int might match the return type of a GCC
59705   builtin and then its argument prototype would still apply.  */
59706#ifdef __cplusplus
59707extern "C"
59708#endif
59709char dm_get_eventlist ();
59710int
59711main ()
59712{
59713return dm_get_eventlist ();
59714  ;
59715  return 0;
59716}
59717_ACEOF
59718rm -f conftest.$ac_objext conftest$ac_exeext
59719if { (ac_try="$ac_link"
59720case "(($ac_try" in
59721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59722  *) ac_try_echo=$ac_try;;
59723esac
59724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59725$as_echo "$ac_try_echo") >&5
59726  (eval "$ac_link") 2>conftest.er1
59727  ac_status=$?
59728  grep -v '^ *+' conftest.er1 >conftest.err
59729  rm -f conftest.er1
59730  cat conftest.err >&5
59731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59732  (exit $ac_status); } && {
59733	 test -z "$ac_c_werror_flag" ||
59734	 test ! -s conftest.err
59735       } && test -s conftest$ac_exeext && {
59736	 test "$cross_compiling" = yes ||
59737	 $as_test_x conftest$ac_exeext
59738       }; then
59739  ac_cv_lib_dmapi_dm_get_eventlist=yes
59740else
59741  $as_echo "$as_me: failed program was:" >&5
59742sed 's/^/| /' conftest.$ac_ext >&5
59743
59744	ac_cv_lib_dmapi_dm_get_eventlist=no
59745fi
59746
59747rm -rf conftest.dSYM
59748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59749      conftest$ac_exeext conftest.$ac_ext
59750LIBS=$ac_check_lib_save_LIBS
59751fi
59752{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dmapi_dm_get_eventlist" >&5
59753$as_echo "$ac_cv_lib_dmapi_dm_get_eventlist" >&6; }
59754if test "x$ac_cv_lib_dmapi_dm_get_eventlist" = x""yes; then
59755  samba_dmapi_libs="-ldmapi"
59756fi
59757
59758    fi
59759
59760    if test x"$samba_dmapi_libs" = x"" ; then
59761	{ $as_echo "$as_me:$LINENO: checking for dm_get_eventlist in -lxdsm" >&5
59762$as_echo_n "checking for dm_get_eventlist in -lxdsm... " >&6; }
59763if test "${ac_cv_lib_xdsm_dm_get_eventlist+set}" = set; then
59764  $as_echo_n "(cached) " >&6
59765else
59766  ac_check_lib_save_LIBS=$LIBS
59767LIBS="-lxdsm  $LIBS"
59768cat >conftest.$ac_ext <<_ACEOF
59769/* confdefs.h.  */
59770_ACEOF
59771cat confdefs.h >>conftest.$ac_ext
59772cat >>conftest.$ac_ext <<_ACEOF
59773/* end confdefs.h.  */
59774
59775/* Override any GCC internal prototype to avoid an error.
59776   Use char because int might match the return type of a GCC
59777   builtin and then its argument prototype would still apply.  */
59778#ifdef __cplusplus
59779extern "C"
59780#endif
59781char dm_get_eventlist ();
59782int
59783main ()
59784{
59785return dm_get_eventlist ();
59786  ;
59787  return 0;
59788}
59789_ACEOF
59790rm -f conftest.$ac_objext conftest$ac_exeext
59791if { (ac_try="$ac_link"
59792case "(($ac_try" in
59793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59794  *) ac_try_echo=$ac_try;;
59795esac
59796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59797$as_echo "$ac_try_echo") >&5
59798  (eval "$ac_link") 2>conftest.er1
59799  ac_status=$?
59800  grep -v '^ *+' conftest.er1 >conftest.err
59801  rm -f conftest.er1
59802  cat conftest.err >&5
59803  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59804  (exit $ac_status); } && {
59805	 test -z "$ac_c_werror_flag" ||
59806	 test ! -s conftest.err
59807       } && test -s conftest$ac_exeext && {
59808	 test "$cross_compiling" = yes ||
59809	 $as_test_x conftest$ac_exeext
59810       }; then
59811  ac_cv_lib_xdsm_dm_get_eventlist=yes
59812else
59813  $as_echo "$as_me: failed program was:" >&5
59814sed 's/^/| /' conftest.$ac_ext >&5
59815
59816	ac_cv_lib_xdsm_dm_get_eventlist=no
59817fi
59818
59819rm -rf conftest.dSYM
59820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59821      conftest$ac_exeext conftest.$ac_ext
59822LIBS=$ac_check_lib_save_LIBS
59823fi
59824{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xdsm_dm_get_eventlist" >&5
59825$as_echo "$ac_cv_lib_xdsm_dm_get_eventlist" >&6; }
59826if test "x$ac_cv_lib_xdsm_dm_get_eventlist" = x""yes; then
59827  samba_dmapi_libs="-lxdsm"
59828fi
59829
59830    fi
59831
59832
59833    # Only bother to test ehaders if we have a candidate DMAPI library
59834    if test x"$samba_dmapi_libs" != x"" ; then
59835
59836
59837
59838
59839
59840for ac_header in sys/dmi.h xfs/dmapi.h sys/jfsdmapi.h sys/dmapi.h dmapi.h
59841do
59842as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
59843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
59844  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
59845$as_echo_n "checking for $ac_header... " >&6; }
59846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
59847  $as_echo_n "(cached) " >&6
59848fi
59849ac_res=`eval 'as_val=${'$as_ac_Header'}
59850		 $as_echo "$as_val"'`
59851	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59852$as_echo "$ac_res" >&6; }
59853else
59854  # Is the header compilable?
59855{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
59856$as_echo_n "checking $ac_header usability... " >&6; }
59857cat >conftest.$ac_ext <<_ACEOF
59858/* confdefs.h.  */
59859_ACEOF
59860cat confdefs.h >>conftest.$ac_ext
59861cat >>conftest.$ac_ext <<_ACEOF
59862/* end confdefs.h.  */
59863$ac_includes_default
59864#include <$ac_header>
59865_ACEOF
59866rm -f conftest.$ac_objext
59867if { (ac_try="$ac_compile"
59868case "(($ac_try" in
59869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59870  *) ac_try_echo=$ac_try;;
59871esac
59872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59873$as_echo "$ac_try_echo") >&5
59874  (eval "$ac_compile") 2>conftest.er1
59875  ac_status=$?
59876  grep -v '^ *+' conftest.er1 >conftest.err
59877  rm -f conftest.er1
59878  cat conftest.err >&5
59879  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59880  (exit $ac_status); } && {
59881	 test -z "$ac_c_werror_flag" ||
59882	 test ! -s conftest.err
59883       } && test -s conftest.$ac_objext; then
59884  ac_header_compiler=yes
59885else
59886  $as_echo "$as_me: failed program was:" >&5
59887sed 's/^/| /' conftest.$ac_ext >&5
59888
59889	ac_header_compiler=no
59890fi
59891
59892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59893{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59894$as_echo "$ac_header_compiler" >&6; }
59895
59896# Is the header present?
59897{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
59898$as_echo_n "checking $ac_header presence... " >&6; }
59899cat >conftest.$ac_ext <<_ACEOF
59900/* confdefs.h.  */
59901_ACEOF
59902cat confdefs.h >>conftest.$ac_ext
59903cat >>conftest.$ac_ext <<_ACEOF
59904/* end confdefs.h.  */
59905#include <$ac_header>
59906_ACEOF
59907if { (ac_try="$ac_cpp conftest.$ac_ext"
59908case "(($ac_try" in
59909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59910  *) ac_try_echo=$ac_try;;
59911esac
59912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59913$as_echo "$ac_try_echo") >&5
59914  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
59915  ac_status=$?
59916  grep -v '^ *+' conftest.er1 >conftest.err
59917  rm -f conftest.er1
59918  cat conftest.err >&5
59919  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59920  (exit $ac_status); } >/dev/null && {
59921	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
59922	 test ! -s conftest.err
59923       }; then
59924  ac_header_preproc=yes
59925else
59926  $as_echo "$as_me: failed program was:" >&5
59927sed 's/^/| /' conftest.$ac_ext >&5
59928
59929  ac_header_preproc=no
59930fi
59931
59932rm -f conftest.err conftest.$ac_ext
59933{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59934$as_echo "$ac_header_preproc" >&6; }
59935
59936# So?  What about this header?
59937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59938  yes:no: )
59939    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59940$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59941    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59942$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59943    ac_header_preproc=yes
59944    ;;
59945  no:yes:* )
59946    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59947$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59948    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
59949$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
59950    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59951$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59952    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
59953$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
59954    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59955$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59956    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59957$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59958    ( cat <<\_ASBOX
59959## ---------------------------------------- ##
59960## Report this to samba-technical@samba.org ##
59961## ---------------------------------------- ##
59962_ASBOX
59963     ) | sed "s/^/$as_me: WARNING:     /" >&2
59964    ;;
59965esac
59966{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
59967$as_echo_n "checking for $ac_header... " >&6; }
59968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
59969  $as_echo_n "(cached) " >&6
59970else
59971  eval "$as_ac_Header=\$ac_header_preproc"
59972fi
59973ac_res=`eval 'as_val=${'$as_ac_Header'}
59974		 $as_echo "$as_val"'`
59975	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59976$as_echo "$ac_res" >&6; }
59977
59978fi
59979as_val=`eval 'as_val=${'$as_ac_Header'}
59980		 $as_echo "$as_val"'`
59981   if test "x$as_val" = x""yes; then
59982  cat >>confdefs.h <<_ACEOF
59983#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
59984_ACEOF
59985
59986fi
59987
59988done
59989
59990    fi
59991
59992    if test x"$samba_dmapi_libs" != x"" ; then
59993	samba_dmapi_save_LIBS="$LIBS"
59994	LIBS="$LIBS $samba_dmapi_libs"
59995	cat >conftest.$ac_ext <<_ACEOF
59996/* confdefs.h.  */
59997_ACEOF
59998cat confdefs.h >>conftest.$ac_ext
59999cat >>conftest.$ac_ext <<_ACEOF
60000/* end confdefs.h.  */
60001
60002#include <time.h>      /* needed by Tru64 */
60003#include <sys/types.h> /* needed by AIX */
60004#ifdef HAVE_XFS_DMAPI_H
60005#include <xfs/dmapi.h>
60006#elif defined(HAVE_SYS_DMI_H)
60007#include <sys/dmi.h>
60008#elif defined(HAVE_SYS_JFSDMAPI_H)
60009#include <sys/jfsdmapi.h>
60010#elif defined(HAVE_SYS_DMAPI_H)
60011#include <sys/dmapi.h>
60012#elif defined(HAVE_DMAPI_H)
60013#include <dmapi.h>
60014#endif
60015
60016int
60017main ()
60018{
60019
60020/* This link test is designed to fail on IRI 6.4, but should
60021 * succeed on Linux, IRIX 6.5 and AIX.
60022 */
60023	char * version;
60024	dm_eventset_t events;
60025	/* This doesn't take an argument on IRIX 6.4. */
60026	dm_init_service(&version);
60027	/* IRIX 6.4 expects events to be a pointer. */
60028	DMEV_ISSET(DM_EVENT_READ, events);
60029
60030  ;
60031  return 0;
60032}
60033_ACEOF
60034rm -f conftest.$ac_objext conftest$ac_exeext
60035if { (ac_try="$ac_link"
60036case "(($ac_try" in
60037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60038  *) ac_try_echo=$ac_try;;
60039esac
60040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60041$as_echo "$ac_try_echo") >&5
60042  (eval "$ac_link") 2>conftest.er1
60043  ac_status=$?
60044  grep -v '^ *+' conftest.er1 >conftest.err
60045  rm -f conftest.er1
60046  cat conftest.err >&5
60047  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60048  (exit $ac_status); } && {
60049	 test -z "$ac_c_werror_flag" ||
60050	 test ! -s conftest.err
60051       } && test -s conftest$ac_exeext && {
60052	 test "$cross_compiling" = yes ||
60053	 $as_test_x conftest$ac_exeext
60054       }; then
60055
60056		    true # DMAPI link test succeeded
60057
60058else
60059  $as_echo "$as_me: failed program was:" >&5
60060sed 's/^/| /' conftest.$ac_ext >&5
60061
60062
60063		    # DMAPI link failure
60064		    samba_dmapi_libs=
60065
60066fi
60067
60068rm -rf conftest.dSYM
60069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60070      conftest$ac_exeext conftest.$ac_ext
60071	LIBS="$samba_dmapi_save_LIBS"
60072    fi
60073
60074    if test x"$samba_dmapi_libs" = x"" ; then
60075	# DMAPI detection failure actions begin
60076
60077		{ $as_echo "$as_me:$LINENO: DMAPI support not present" >&5
60078$as_echo "$as_me: DMAPI support not present" >&6;}
60079
60080	# DMAPI detection failure actions end
60081    else
60082	# DMAPI detection success actions start
60083
60084
60085cat >>confdefs.h <<\_ACEOF
60086#define USE_DMAPI 1
60087_ACEOF
60088
60089		{ $as_echo "$as_me:$LINENO: Found DMAPI support in $samba_dmapi_libs" >&5
60090$as_echo "$as_me: Found DMAPI support in $samba_dmapi_libs" >&6;}
60091
60092	# DMAPI detection success actions end
60093    fi
60094
60095
60096
60097# Add TSM SM VFS module only if there are both GPFS and DMAPI support
60098# Theoretically it should work with AIX JFS2 too but this needs testing
60099if test x"$ac_cv_header_gpfs_gpl_h" = x"yes" && test x"$samba_dmapi_libs" != x"" ; then
60100    default_shared_modules="$default_shared_modules vfs_tsmsm"
60101fi
60102
60103{ $as_echo "$as_me:$LINENO: checking for kernel share modes" >&5
60104$as_echo_n "checking for kernel share modes... " >&6; }
60105if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
60106  $as_echo_n "(cached) " >&6
60107else
60108
60109if test "$cross_compiling" = yes; then
60110  samba_cv_HAVE_KERNEL_SHARE_MODES=cross
60111else
60112  cat >conftest.$ac_ext <<_ACEOF
60113/* confdefs.h.  */
60114_ACEOF
60115cat confdefs.h >>conftest.$ac_ext
60116cat >>conftest.$ac_ext <<_ACEOF
60117/* end confdefs.h.  */
60118
60119#include <sys/types.h>
60120#include <fcntl.h>
60121#include <signal.h>
60122#include <sys/file.h>
60123#ifndef LOCK_MAND
60124#define LOCK_MAND	32
60125#define LOCK_READ	64
60126#endif
60127main() {
60128       	exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
60129}
60130
60131_ACEOF
60132rm -f conftest$ac_exeext
60133if { (ac_try="$ac_link"
60134case "(($ac_try" in
60135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60136  *) ac_try_echo=$ac_try;;
60137esac
60138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60139$as_echo "$ac_try_echo") >&5
60140  (eval "$ac_link") 2>&5
60141  ac_status=$?
60142  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60143  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
60144  { (case "(($ac_try" in
60145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60146  *) ac_try_echo=$ac_try;;
60147esac
60148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60149$as_echo "$ac_try_echo") >&5
60150  (eval "$ac_try") 2>&5
60151  ac_status=$?
60152  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60153  (exit $ac_status); }; }; then
60154  samba_cv_HAVE_KERNEL_SHARE_MODES=yes
60155else
60156  $as_echo "$as_me: program exited with status $ac_status" >&5
60157$as_echo "$as_me: failed program was:" >&5
60158sed 's/^/| /' conftest.$ac_ext >&5
60159
60160( exit $ac_status )
60161samba_cv_HAVE_KERNEL_SHARE_MODES=no
60162fi
60163rm -rf conftest.dSYM
60164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
60165fi
60166
60167
60168fi
60169{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_SHARE_MODES" >&5
60170$as_echo "$samba_cv_HAVE_KERNEL_SHARE_MODES" >&6; }
60171if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
60172
60173cat >>confdefs.h <<\_ACEOF
60174#define HAVE_KERNEL_SHARE_MODES 1
60175_ACEOF
60176
60177fi
60178
60179
60180{ $as_echo "$as_me:$LINENO: checking for IRIX kernel oplock type definitions" >&5
60181$as_echo_n "checking for IRIX kernel oplock type definitions... " >&6; }
60182if test "${samba_cv_HAVE_KERNEL_OPLOCKS_IRIX+set}" = set; then
60183  $as_echo_n "(cached) " >&6
60184else
60185
60186cat >conftest.$ac_ext <<_ACEOF
60187/* confdefs.h.  */
60188_ACEOF
60189cat confdefs.h >>conftest.$ac_ext
60190cat >>conftest.$ac_ext <<_ACEOF
60191/* end confdefs.h.  */
60192#include <sys/types.h>
60193#include <fcntl.h>
60194int
60195main ()
60196{
60197oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
60198  ;
60199  return 0;
60200}
60201_ACEOF
60202rm -f conftest.$ac_objext
60203if { (ac_try="$ac_compile"
60204case "(($ac_try" in
60205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60206  *) ac_try_echo=$ac_try;;
60207esac
60208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60209$as_echo "$ac_try_echo") >&5
60210  (eval "$ac_compile") 2>conftest.er1
60211  ac_status=$?
60212  grep -v '^ *+' conftest.er1 >conftest.err
60213  rm -f conftest.er1
60214  cat conftest.err >&5
60215  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60216  (exit $ac_status); } && {
60217	 test -z "$ac_c_werror_flag" ||
60218	 test ! -s conftest.err
60219       } && test -s conftest.$ac_objext; then
60220  samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
60221else
60222  $as_echo "$as_me: failed program was:" >&5
60223sed 's/^/| /' conftest.$ac_ext >&5
60224
60225	samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
60226fi
60227
60228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60229fi
60230{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&5
60231$as_echo "$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&6; }
60232if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
60233
60234cat >>confdefs.h <<\_ACEOF
60235#define HAVE_KERNEL_OPLOCKS_IRIX 1
60236_ACEOF
60237
60238fi
60239
60240#################################################
60241# Check for POSIX capability support
60242
60243if test "${ac_cv_header_sys_capability_h+set}" = set; then
60244  { $as_echo "$as_me:$LINENO: checking for sys/capability.h" >&5
60245$as_echo_n "checking for sys/capability.h... " >&6; }
60246if test "${ac_cv_header_sys_capability_h+set}" = set; then
60247  $as_echo_n "(cached) " >&6
60248fi
60249{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
60250$as_echo "$ac_cv_header_sys_capability_h" >&6; }
60251else
60252  # Is the header compilable?
60253{ $as_echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
60254$as_echo_n "checking sys/capability.h usability... " >&6; }
60255cat >conftest.$ac_ext <<_ACEOF
60256/* confdefs.h.  */
60257_ACEOF
60258cat confdefs.h >>conftest.$ac_ext
60259cat >>conftest.$ac_ext <<_ACEOF
60260/* end confdefs.h.  */
60261$ac_includes_default
60262#include <sys/capability.h>
60263_ACEOF
60264rm -f conftest.$ac_objext
60265if { (ac_try="$ac_compile"
60266case "(($ac_try" in
60267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60268  *) ac_try_echo=$ac_try;;
60269esac
60270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60271$as_echo "$ac_try_echo") >&5
60272  (eval "$ac_compile") 2>conftest.er1
60273  ac_status=$?
60274  grep -v '^ *+' conftest.er1 >conftest.err
60275  rm -f conftest.er1
60276  cat conftest.err >&5
60277  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60278  (exit $ac_status); } && {
60279	 test -z "$ac_c_werror_flag" ||
60280	 test ! -s conftest.err
60281       } && test -s conftest.$ac_objext; then
60282  ac_header_compiler=yes
60283else
60284  $as_echo "$as_me: failed program was:" >&5
60285sed 's/^/| /' conftest.$ac_ext >&5
60286
60287	ac_header_compiler=no
60288fi
60289
60290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60291{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60292$as_echo "$ac_header_compiler" >&6; }
60293
60294# Is the header present?
60295{ $as_echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
60296$as_echo_n "checking sys/capability.h presence... " >&6; }
60297cat >conftest.$ac_ext <<_ACEOF
60298/* confdefs.h.  */
60299_ACEOF
60300cat confdefs.h >>conftest.$ac_ext
60301cat >>conftest.$ac_ext <<_ACEOF
60302/* end confdefs.h.  */
60303#include <sys/capability.h>
60304_ACEOF
60305if { (ac_try="$ac_cpp conftest.$ac_ext"
60306case "(($ac_try" in
60307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60308  *) ac_try_echo=$ac_try;;
60309esac
60310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60311$as_echo "$ac_try_echo") >&5
60312  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
60313  ac_status=$?
60314  grep -v '^ *+' conftest.er1 >conftest.err
60315  rm -f conftest.er1
60316  cat conftest.err >&5
60317  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60318  (exit $ac_status); } >/dev/null && {
60319	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
60320	 test ! -s conftest.err
60321       }; then
60322  ac_header_preproc=yes
60323else
60324  $as_echo "$as_me: failed program was:" >&5
60325sed 's/^/| /' conftest.$ac_ext >&5
60326
60327  ac_header_preproc=no
60328fi
60329
60330rm -f conftest.err conftest.$ac_ext
60331{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60332$as_echo "$ac_header_preproc" >&6; }
60333
60334# So?  What about this header?
60335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60336  yes:no: )
60337    { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
60338$as_echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
60339    { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
60340$as_echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
60341    ac_header_preproc=yes
60342    ;;
60343  no:yes:* )
60344    { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
60345$as_echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
60346    { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h:     check for missing prerequisite headers?" >&5
60347$as_echo "$as_me: WARNING: sys/capability.h:     check for missing prerequisite headers?" >&2;}
60348    { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
60349$as_echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
60350    { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h:     section \"Present But Cannot Be Compiled\"" >&5
60351$as_echo "$as_me: WARNING: sys/capability.h:     section \"Present But Cannot Be Compiled\"" >&2;}
60352    { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
60353$as_echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
60354    { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
60355$as_echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
60356    ( cat <<\_ASBOX
60357## ---------------------------------------- ##
60358## Report this to samba-technical@samba.org ##
60359## ---------------------------------------- ##
60360_ASBOX
60361     ) | sed "s/^/$as_me: WARNING:     /" >&2
60362    ;;
60363esac
60364{ $as_echo "$as_me:$LINENO: checking for sys/capability.h" >&5
60365$as_echo_n "checking for sys/capability.h... " >&6; }
60366if test "${ac_cv_header_sys_capability_h+set}" = set; then
60367  $as_echo_n "(cached) " >&6
60368else
60369  ac_cv_header_sys_capability_h=$ac_header_preproc
60370fi
60371{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
60372$as_echo "$ac_cv_header_sys_capability_h" >&6; }
60373
60374fi
60375if test "x$ac_cv_header_sys_capability_h" = x""yes; then
60376  samba_cv_HAVE_SYS_CAPABILITY_H=yes;
60377
60378cat >>confdefs.h <<\_ACEOF
60379#define HAVE_SYS_CAPABILITY_H 1
60380_ACEOF
60381
60382fi
60383
60384
60385
60386if test x"$samba_cv_HAVE_SYS_CAPABILITY_H" = x"yes"; then
60387
60388    ac_save_LIBS=$LIBS
60389
60390
60391for ac_func in cap_get_proc
60392do
60393as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60394{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60395$as_echo_n "checking for $ac_func... " >&6; }
60396if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60397  $as_echo_n "(cached) " >&6
60398else
60399  cat >conftest.$ac_ext <<_ACEOF
60400/* confdefs.h.  */
60401_ACEOF
60402cat confdefs.h >>conftest.$ac_ext
60403cat >>conftest.$ac_ext <<_ACEOF
60404/* end confdefs.h.  */
60405/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60406   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60407#define $ac_func innocuous_$ac_func
60408
60409/* System header to define __stub macros and hopefully few prototypes,
60410    which can conflict with char $ac_func (); below.
60411    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60412    <limits.h> exists even on freestanding compilers.  */
60413
60414#ifdef __STDC__
60415# include <limits.h>
60416#else
60417# include <assert.h>
60418#endif
60419
60420#undef $ac_func
60421
60422/* Override any GCC internal prototype to avoid an error.
60423   Use char because int might match the return type of a GCC
60424   builtin and then its argument prototype would still apply.  */
60425#ifdef __cplusplus
60426extern "C"
60427#endif
60428char $ac_func ();
60429/* The GNU C library defines this for functions which it implements
60430    to always fail with ENOSYS.  Some functions are actually named
60431    something starting with __ and the normal name is an alias.  */
60432#if defined __stub_$ac_func || defined __stub___$ac_func
60433choke me
60434#endif
60435
60436int
60437main ()
60438{
60439return $ac_func ();
60440  ;
60441  return 0;
60442}
60443_ACEOF
60444rm -f conftest.$ac_objext conftest$ac_exeext
60445if { (ac_try="$ac_link"
60446case "(($ac_try" in
60447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60448  *) ac_try_echo=$ac_try;;
60449esac
60450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60451$as_echo "$ac_try_echo") >&5
60452  (eval "$ac_link") 2>conftest.er1
60453  ac_status=$?
60454  grep -v '^ *+' conftest.er1 >conftest.err
60455  rm -f conftest.er1
60456  cat conftest.err >&5
60457  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60458  (exit $ac_status); } && {
60459	 test -z "$ac_c_werror_flag" ||
60460	 test ! -s conftest.err
60461       } && test -s conftest$ac_exeext && {
60462	 test "$cross_compiling" = yes ||
60463	 $as_test_x conftest$ac_exeext
60464       }; then
60465  eval "$as_ac_var=yes"
60466else
60467  $as_echo "$as_me: failed program was:" >&5
60468sed 's/^/| /' conftest.$ac_ext >&5
60469
60470	eval "$as_ac_var=no"
60471fi
60472
60473rm -rf conftest.dSYM
60474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60475      conftest$ac_exeext conftest.$ac_ext
60476fi
60477ac_res=`eval 'as_val=${'$as_ac_var'}
60478		 $as_echo "$as_val"'`
60479	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60480$as_echo "$ac_res" >&6; }
60481as_val=`eval 'as_val=${'$as_ac_var'}
60482		 $as_echo "$as_val"'`
60483   if test "x$as_val" = x""yes; then
60484  cat >>confdefs.h <<_ACEOF
60485#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60486_ACEOF
60487
60488        # cap_get_proc was found in libc or existing $LIBS
60489
60490
60491cat >>confdefs.h <<\_ACEOF
60492#define HAVE_CAP_GET_PROC 1
60493_ACEOF
60494
60495
60496
60497else
60498
60499        # cap_get_proc was not found, try adding libcap
60500	case " $LIBS " in
60501          *\ -lcap\ *)
60502
60503		    # cap_get_proc was not found and we already had libcap
60504		    # nothing to do here by default
60505		    true
60506
60507	    ;;
60508          *)
60509	    # cap_get_proc was not found, try adding libcap
60510	    { $as_echo "$as_me:$LINENO: checking for cap_get_proc in -lcap" >&5
60511$as_echo_n "checking for cap_get_proc in -lcap... " >&6; }
60512if test "${ac_cv_lib_cap_cap_get_proc+set}" = set; then
60513  $as_echo_n "(cached) " >&6
60514else
60515  ac_check_lib_save_LIBS=$LIBS
60516LIBS="-lcap  $LIBS"
60517cat >conftest.$ac_ext <<_ACEOF
60518/* confdefs.h.  */
60519_ACEOF
60520cat confdefs.h >>conftest.$ac_ext
60521cat >>conftest.$ac_ext <<_ACEOF
60522/* end confdefs.h.  */
60523
60524/* Override any GCC internal prototype to avoid an error.
60525   Use char because int might match the return type of a GCC
60526   builtin and then its argument prototype would still apply.  */
60527#ifdef __cplusplus
60528extern "C"
60529#endif
60530char cap_get_proc ();
60531int
60532main ()
60533{
60534return cap_get_proc ();
60535  ;
60536  return 0;
60537}
60538_ACEOF
60539rm -f conftest.$ac_objext conftest$ac_exeext
60540if { (ac_try="$ac_link"
60541case "(($ac_try" in
60542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60543  *) ac_try_echo=$ac_try;;
60544esac
60545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60546$as_echo "$ac_try_echo") >&5
60547  (eval "$ac_link") 2>conftest.er1
60548  ac_status=$?
60549  grep -v '^ *+' conftest.er1 >conftest.err
60550  rm -f conftest.er1
60551  cat conftest.err >&5
60552  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60553  (exit $ac_status); } && {
60554	 test -z "$ac_c_werror_flag" ||
60555	 test ! -s conftest.err
60556       } && test -s conftest$ac_exeext && {
60557	 test "$cross_compiling" = yes ||
60558	 $as_test_x conftest$ac_exeext
60559       }; then
60560  ac_cv_lib_cap_cap_get_proc=yes
60561else
60562  $as_echo "$as_me: failed program was:" >&5
60563sed 's/^/| /' conftest.$ac_ext >&5
60564
60565	ac_cv_lib_cap_cap_get_proc=no
60566fi
60567
60568rm -rf conftest.dSYM
60569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60570      conftest$ac_exeext conftest.$ac_ext
60571LIBS=$ac_check_lib_save_LIBS
60572fi
60573{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_get_proc" >&5
60574$as_echo "$ac_cv_lib_cap_cap_get_proc" >&6; }
60575if test "x$ac_cv_lib_cap_cap_get_proc" = x""yes; then
60576
60577		LIBS="-lcap $LIBS"
60578
60579
60580cat >>confdefs.h <<\_ACEOF
60581#define HAVE_CAP_GET_PROC 1
60582_ACEOF
60583
60584
60585
60586else
60587
60588
60589			# cap_get_proc was not found in libcap
60590			# nothing to do here by default
60591			true
60592
60593
60594fi
60595
60596	  ;;
60597        esac
60598
60599fi
60600done
60601
60602
60603
60604    { $as_echo "$as_me:$LINENO: checking for POSIX capabilities" >&5
60605$as_echo_n "checking for POSIX capabilities... " >&6; }
60606if test "${samba_cv_HAVE_POSIX_CAPABILITIES+set}" = set; then
60607  $as_echo_n "(cached) " >&6
60608else
60609
60610		if test "$cross_compiling" = yes; then
60611  samba_cv_HAVE_POSIX_CAPABILITIES=cross
60612else
60613  cat >conftest.$ac_ext <<_ACEOF
60614/* confdefs.h.  */
60615_ACEOF
60616cat confdefs.h >>conftest.$ac_ext
60617cat >>conftest.$ac_ext <<_ACEOF
60618/* end confdefs.h.  */
60619
60620#include <sys/types.h>
60621#include <sys/capability.h>
60622main() {
60623 cap_t cap;
60624 cap_value_t vals[1];
60625 if (!(cap = cap_get_proc()))
60626   exit(1);
60627 vals[0] = CAP_CHOWN;
60628 cap_set_flag(cap, CAP_INHERITABLE, 1, vals, CAP_CLEAR);
60629 cap_set_proc(cap);
60630 exit(0);
60631}
60632_ACEOF
60633rm -f conftest$ac_exeext
60634if { (ac_try="$ac_link"
60635case "(($ac_try" in
60636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60637  *) ac_try_echo=$ac_try;;
60638esac
60639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60640$as_echo "$ac_try_echo") >&5
60641  (eval "$ac_link") 2>&5
60642  ac_status=$?
60643  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60644  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
60645  { (case "(($ac_try" in
60646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60647  *) ac_try_echo=$ac_try;;
60648esac
60649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60650$as_echo "$ac_try_echo") >&5
60651  (eval "$ac_try") 2>&5
60652  ac_status=$?
60653  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60654  (exit $ac_status); }; }; then
60655  samba_cv_HAVE_POSIX_CAPABILITIES=yes
60656else
60657  $as_echo "$as_me: program exited with status $ac_status" >&5
60658$as_echo "$as_me: failed program was:" >&5
60659sed 's/^/| /' conftest.$ac_ext >&5
60660
60661( exit $ac_status )
60662samba_cv_HAVE_POSIX_CAPABILITIES=no
60663fi
60664rm -rf conftest.dSYM
60665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
60666fi
60667
60668
60669
60670fi
60671{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_CAPABILITIES" >&5
60672$as_echo "$samba_cv_HAVE_POSIX_CAPABILITIES" >&6; }
60673
60674if test x"$samba_cv_HAVE_POSIX_CAPABILITIES" = x"yes"; then
60675
60676cat >>confdefs.h <<\_ACEOF
60677#define HAVE_POSIX_CAPABILITIES 1
60678_ACEOF
60679
60680else
60681    LIBS=$ac_save_LIBS
60682fi
60683
60684fi
60685
60686#
60687# Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
60688# This is *really* broken but some systems (DEC OSF1) do this.... JRA.
60689#
60690
60691{ $as_echo "$as_me:$LINENO: checking for int16 typedef included by rpc/rpc.h" >&5
60692$as_echo_n "checking for int16 typedef included by rpc/rpc.h... " >&6; }
60693if test "${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}" = set; then
60694  $as_echo_n "(cached) " >&6
60695else
60696
60697cat >conftest.$ac_ext <<_ACEOF
60698/* confdefs.h.  */
60699_ACEOF
60700cat confdefs.h >>conftest.$ac_ext
60701cat >>conftest.$ac_ext <<_ACEOF
60702/* end confdefs.h.  */
60703#include <sys/types.h>
60704#if defined(HAVE_RPC_RPC_H)
60705#include <rpc/rpc.h>
60706#endif
60707int
60708main ()
60709{
60710int16 testvar;
60711  ;
60712  return 0;
60713}
60714_ACEOF
60715rm -f conftest.$ac_objext
60716if { (ac_try="$ac_compile"
60717case "(($ac_try" in
60718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60719  *) ac_try_echo=$ac_try;;
60720esac
60721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60722$as_echo "$ac_try_echo") >&5
60723  (eval "$ac_compile") 2>conftest.er1
60724  ac_status=$?
60725  grep -v '^ *+' conftest.er1 >conftest.err
60726  rm -f conftest.er1
60727  cat conftest.err >&5
60728  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60729  (exit $ac_status); } && {
60730	 test -z "$ac_c_werror_flag" ||
60731	 test ! -s conftest.err
60732       } && test -s conftest.$ac_objext; then
60733  samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
60734else
60735  $as_echo "$as_me: failed program was:" >&5
60736sed 's/^/| /' conftest.$ac_ext >&5
60737
60738	samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
60739fi
60740
60741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60742fi
60743{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&5
60744$as_echo "$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&6; }
60745if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
60746
60747cat >>confdefs.h <<\_ACEOF
60748#define HAVE_INT16_FROM_RPC_RPC_H 1
60749_ACEOF
60750
60751fi
60752
60753{ $as_echo "$as_me:$LINENO: checking for uint16 typedef included by rpc/rpc.h" >&5
60754$as_echo_n "checking for uint16 typedef included by rpc/rpc.h... " >&6; }
60755if test "${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}" = set; then
60756  $as_echo_n "(cached) " >&6
60757else
60758
60759cat >conftest.$ac_ext <<_ACEOF
60760/* confdefs.h.  */
60761_ACEOF
60762cat confdefs.h >>conftest.$ac_ext
60763cat >>conftest.$ac_ext <<_ACEOF
60764/* end confdefs.h.  */
60765#include <sys/types.h>
60766#if defined(HAVE_RPC_RPC_H)
60767#include <rpc/rpc.h>
60768#endif
60769int
60770main ()
60771{
60772uint16 testvar;
60773  ;
60774  return 0;
60775}
60776_ACEOF
60777rm -f conftest.$ac_objext
60778if { (ac_try="$ac_compile"
60779case "(($ac_try" in
60780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60781  *) ac_try_echo=$ac_try;;
60782esac
60783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60784$as_echo "$ac_try_echo") >&5
60785  (eval "$ac_compile") 2>conftest.er1
60786  ac_status=$?
60787  grep -v '^ *+' conftest.er1 >conftest.err
60788  rm -f conftest.er1
60789  cat conftest.err >&5
60790  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60791  (exit $ac_status); } && {
60792	 test -z "$ac_c_werror_flag" ||
60793	 test ! -s conftest.err
60794       } && test -s conftest.$ac_objext; then
60795  samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
60796else
60797  $as_echo "$as_me: failed program was:" >&5
60798sed 's/^/| /' conftest.$ac_ext >&5
60799
60800	samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
60801fi
60802
60803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60804fi
60805{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&5
60806$as_echo "$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&6; }
60807if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
60808
60809cat >>confdefs.h <<\_ACEOF
60810#define HAVE_UINT16_FROM_RPC_RPC_H 1
60811_ACEOF
60812
60813fi
60814
60815{ $as_echo "$as_me:$LINENO: checking for int32 typedef included by rpc/rpc.h" >&5
60816$as_echo_n "checking for int32 typedef included by rpc/rpc.h... " >&6; }
60817if test "${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}" = set; then
60818  $as_echo_n "(cached) " >&6
60819else
60820
60821cat >conftest.$ac_ext <<_ACEOF
60822/* confdefs.h.  */
60823_ACEOF
60824cat confdefs.h >>conftest.$ac_ext
60825cat >>conftest.$ac_ext <<_ACEOF
60826/* end confdefs.h.  */
60827#include <sys/types.h>
60828#if defined(HAVE_RPC_RPC_H)
60829#include <rpc/rpc.h>
60830#endif
60831int
60832main ()
60833{
60834int32 testvar;
60835  ;
60836  return 0;
60837}
60838_ACEOF
60839rm -f conftest.$ac_objext
60840if { (ac_try="$ac_compile"
60841case "(($ac_try" in
60842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60843  *) ac_try_echo=$ac_try;;
60844esac
60845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60846$as_echo "$ac_try_echo") >&5
60847  (eval "$ac_compile") 2>conftest.er1
60848  ac_status=$?
60849  grep -v '^ *+' conftest.er1 >conftest.err
60850  rm -f conftest.er1
60851  cat conftest.err >&5
60852  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60853  (exit $ac_status); } && {
60854	 test -z "$ac_c_werror_flag" ||
60855	 test ! -s conftest.err
60856       } && test -s conftest.$ac_objext; then
60857  samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
60858else
60859  $as_echo "$as_me: failed program was:" >&5
60860sed 's/^/| /' conftest.$ac_ext >&5
60861
60862	samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
60863fi
60864
60865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60866fi
60867{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&5
60868$as_echo "$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&6; }
60869if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
60870
60871cat >>confdefs.h <<\_ACEOF
60872#define HAVE_INT32_FROM_RPC_RPC_H 1
60873_ACEOF
60874
60875fi
60876
60877{ $as_echo "$as_me:$LINENO: checking for uint32 typedef included by rpc/rpc.h" >&5
60878$as_echo_n "checking for uint32 typedef included by rpc/rpc.h... " >&6; }
60879if test "${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}" = set; then
60880  $as_echo_n "(cached) " >&6
60881else
60882
60883cat >conftest.$ac_ext <<_ACEOF
60884/* confdefs.h.  */
60885_ACEOF
60886cat confdefs.h >>conftest.$ac_ext
60887cat >>conftest.$ac_ext <<_ACEOF
60888/* end confdefs.h.  */
60889#include <sys/types.h>
60890#if defined(HAVE_RPC_RPC_H)
60891#include <rpc/rpc.h>
60892#endif
60893int
60894main ()
60895{
60896uint32 testvar;
60897  ;
60898  return 0;
60899}
60900_ACEOF
60901rm -f conftest.$ac_objext
60902if { (ac_try="$ac_compile"
60903case "(($ac_try" in
60904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60905  *) ac_try_echo=$ac_try;;
60906esac
60907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60908$as_echo "$ac_try_echo") >&5
60909  (eval "$ac_compile") 2>conftest.er1
60910  ac_status=$?
60911  grep -v '^ *+' conftest.er1 >conftest.err
60912  rm -f conftest.er1
60913  cat conftest.err >&5
60914  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60915  (exit $ac_status); } && {
60916	 test -z "$ac_c_werror_flag" ||
60917	 test ! -s conftest.err
60918       } && test -s conftest.$ac_objext; then
60919  samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
60920else
60921  $as_echo "$as_me: failed program was:" >&5
60922sed 's/^/| /' conftest.$ac_ext >&5
60923
60924	samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
60925fi
60926
60927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60928fi
60929{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&5
60930$as_echo "$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&6; }
60931if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
60932
60933cat >>confdefs.h <<\_ACEOF
60934#define HAVE_UINT32_FROM_RPC_RPC_H 1
60935_ACEOF
60936
60937fi
60938
60939
60940{ $as_echo "$as_me:$LINENO: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
60941$as_echo_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h... " >&6; }
60942if test "${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}" = set; then
60943  $as_echo_n "(cached) " >&6
60944else
60945
60946cat >conftest.$ac_ext <<_ACEOF
60947/* confdefs.h.  */
60948_ACEOF
60949cat confdefs.h >>conftest.$ac_ext
60950cat >>conftest.$ac_ext <<_ACEOF
60951/* end confdefs.h.  */
60952#include <sys/types.h>
60953#ifdef HAVE_SYS_SECURITY_H
60954#include <sys/security.h>
60955#include <prot.h>
60956#endif  /* HAVE_SYS_SECURITY_H */
60957#if defined(HAVE_RPC_RPC_H)
60958#include <rpc/rpc.h>
60959#endif
60960int
60961main ()
60962{
60963int testvar;
60964  ;
60965  return 0;
60966}
60967_ACEOF
60968rm -f conftest.$ac_objext
60969if { (ac_try="$ac_compile"
60970case "(($ac_try" in
60971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60972  *) ac_try_echo=$ac_try;;
60973esac
60974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60975$as_echo "$ac_try_echo") >&5
60976  (eval "$ac_compile") 2>conftest.er1
60977  ac_status=$?
60978  grep -v '^ *+' conftest.er1 >conftest.err
60979  rm -f conftest.er1
60980  cat conftest.err >&5
60981  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60982  (exit $ac_status); } && {
60983	 test -z "$ac_c_werror_flag" ||
60984	 test ! -s conftest.err
60985       } && test -s conftest.$ac_objext; then
60986  samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
60987else
60988  $as_echo "$as_me: failed program was:" >&5
60989sed 's/^/| /' conftest.$ac_ext >&5
60990
60991	samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
60992fi
60993
60994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60995fi
60996{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&5
60997$as_echo "$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&6; }
60998if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
60999
61000cat >>confdefs.h <<\_ACEOF
61001#define HAVE_RPC_AUTH_ERROR_CONFLICT 1
61002_ACEOF
61003
61004fi
61005
61006{ $as_echo "$as_me:$LINENO: checking for test routines" >&5
61007$as_echo_n "checking for test routines... " >&6; }
61008if test "$cross_compiling" = yes; then
61009  { $as_echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
61010$as_echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
61011else
61012  cat >conftest.$ac_ext <<_ACEOF
61013/* confdefs.h.  */
61014_ACEOF
61015cat confdefs.h >>conftest.$ac_ext
61016cat >>conftest.$ac_ext <<_ACEOF
61017/* end confdefs.h.  */
61018#include "${srcdir-.}/../tests/trivial.c"
61019_ACEOF
61020rm -f conftest$ac_exeext
61021if { (ac_try="$ac_link"
61022case "(($ac_try" in
61023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61024  *) ac_try_echo=$ac_try;;
61025esac
61026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61027$as_echo "$ac_try_echo") >&5
61028  (eval "$ac_link") 2>&5
61029  ac_status=$?
61030  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61031  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61032  { (case "(($ac_try" in
61033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61034  *) ac_try_echo=$ac_try;;
61035esac
61036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61037$as_echo "$ac_try_echo") >&5
61038  (eval "$ac_try") 2>&5
61039  ac_status=$?
61040  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61041  (exit $ac_status); }; }; then
61042  { $as_echo "$as_me:$LINENO: result: yes" >&5
61043$as_echo "yes" >&6; }
61044else
61045  $as_echo "$as_me: program exited with status $ac_status" >&5
61046$as_echo "$as_me: failed program was:" >&5
61047sed 's/^/| /' conftest.$ac_ext >&5
61048
61049( exit $ac_status )
61050{ { $as_echo "$as_me:$LINENO: error: cant find test code. Aborting config" >&5
61051$as_echo "$as_me: error: cant find test code. Aborting config" >&2;}
61052   { (exit 1); exit 1; }; }
61053fi
61054rm -rf conftest.dSYM
61055rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61056fi
61057
61058
61059
61060{ $as_echo "$as_me:$LINENO: checking for ftruncate extend" >&5
61061$as_echo_n "checking for ftruncate extend... " >&6; }
61062if test "${samba_cv_HAVE_FTRUNCATE_EXTEND+set}" = set; then
61063  $as_echo_n "(cached) " >&6
61064else
61065
61066if test "$cross_compiling" = yes; then
61067  samba_cv_HAVE_FTRUNCATE_EXTEND=cross
61068else
61069  cat >conftest.$ac_ext <<_ACEOF
61070/* confdefs.h.  */
61071_ACEOF
61072cat confdefs.h >>conftest.$ac_ext
61073cat >>conftest.$ac_ext <<_ACEOF
61074/* end confdefs.h.  */
61075#include "${srcdir-.}/../tests/ftruncate.c"
61076_ACEOF
61077rm -f conftest$ac_exeext
61078if { (ac_try="$ac_link"
61079case "(($ac_try" in
61080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61081  *) ac_try_echo=$ac_try;;
61082esac
61083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61084$as_echo "$ac_try_echo") >&5
61085  (eval "$ac_link") 2>&5
61086  ac_status=$?
61087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61088  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61089  { (case "(($ac_try" in
61090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61091  *) ac_try_echo=$ac_try;;
61092esac
61093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61094$as_echo "$ac_try_echo") >&5
61095  (eval "$ac_try") 2>&5
61096  ac_status=$?
61097  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61098  (exit $ac_status); }; }; then
61099  samba_cv_HAVE_FTRUNCATE_EXTEND=yes
61100else
61101  $as_echo "$as_me: program exited with status $ac_status" >&5
61102$as_echo "$as_me: failed program was:" >&5
61103sed 's/^/| /' conftest.$ac_ext >&5
61104
61105( exit $ac_status )
61106samba_cv_HAVE_FTRUNCATE_EXTEND=no
61107fi
61108rm -rf conftest.dSYM
61109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61110fi
61111
61112
61113fi
61114{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_FTRUNCATE_EXTEND" >&5
61115$as_echo "$samba_cv_HAVE_FTRUNCATE_EXTEND" >&6; }
61116if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
61117
61118cat >>confdefs.h <<\_ACEOF
61119#define HAVE_FTRUNCATE_EXTEND 1
61120_ACEOF
61121
61122fi
61123
61124{ $as_echo "$as_me:$LINENO: checking for broken getgroups" >&5
61125$as_echo_n "checking for broken getgroups... " >&6; }
61126if test "${samba_cv_HAVE_BROKEN_GETGROUPS+set}" = set; then
61127  $as_echo_n "(cached) " >&6
61128else
61129
61130if test "$cross_compiling" = yes; then
61131  samba_cv_HAVE_BROKEN_GETGROUPS=cross
61132else
61133  cat >conftest.$ac_ext <<_ACEOF
61134/* confdefs.h.  */
61135_ACEOF
61136cat confdefs.h >>conftest.$ac_ext
61137cat >>conftest.$ac_ext <<_ACEOF
61138/* end confdefs.h.  */
61139#include "${srcdir-.}/../tests/getgroups.c"
61140_ACEOF
61141rm -f conftest$ac_exeext
61142if { (ac_try="$ac_link"
61143case "(($ac_try" in
61144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61145  *) ac_try_echo=$ac_try;;
61146esac
61147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61148$as_echo "$ac_try_echo") >&5
61149  (eval "$ac_link") 2>&5
61150  ac_status=$?
61151  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61152  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61153  { (case "(($ac_try" in
61154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61155  *) ac_try_echo=$ac_try;;
61156esac
61157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61158$as_echo "$ac_try_echo") >&5
61159  (eval "$ac_try") 2>&5
61160  ac_status=$?
61161  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61162  (exit $ac_status); }; }; then
61163  samba_cv_HAVE_BROKEN_GETGROUPS=yes
61164else
61165  $as_echo "$as_me: program exited with status $ac_status" >&5
61166$as_echo "$as_me: failed program was:" >&5
61167sed 's/^/| /' conftest.$ac_ext >&5
61168
61169( exit $ac_status )
61170samba_cv_HAVE_BROKEN_GETGROUPS=no
61171fi
61172rm -rf conftest.dSYM
61173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61174fi
61175
61176
61177fi
61178{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_GETGROUPS" >&5
61179$as_echo "$samba_cv_HAVE_BROKEN_GETGROUPS" >&6; }
61180if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
61181
61182cat >>confdefs.h <<\_ACEOF
61183#define HAVE_BROKEN_GETGROUPS 1
61184_ACEOF
61185
61186fi
61187
61188
61189    { $as_echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
61190$as_echo_n "checking for sysconf(_SC_NGROUPS_MAX)... " >&6; }
61191if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
61192  $as_echo_n "(cached) " >&6
61193else
61194
61195	    cat >conftest.$ac_ext <<_ACEOF
61196/* confdefs.h.  */
61197_ACEOF
61198cat confdefs.h >>conftest.$ac_ext
61199cat >>conftest.$ac_ext <<_ACEOF
61200/* end confdefs.h.  */
61201#include <unistd.h>
61202int
61203main ()
61204{
61205 return sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0;
61206  ;
61207  return 0;
61208}
61209_ACEOF
61210rm -f conftest.$ac_objext conftest$ac_exeext
61211if { (ac_try="$ac_link"
61212case "(($ac_try" in
61213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61214  *) ac_try_echo=$ac_try;;
61215esac
61216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61217$as_echo "$ac_try_echo") >&5
61218  (eval "$ac_link") 2>conftest.er1
61219  ac_status=$?
61220  grep -v '^ *+' conftest.er1 >conftest.err
61221  rm -f conftest.er1
61222  cat conftest.err >&5
61223  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61224  (exit $ac_status); } && {
61225	 test -z "$ac_c_werror_flag" ||
61226	 test ! -s conftest.err
61227       } && test -s conftest$ac_exeext && {
61228	 test "$cross_compiling" = yes ||
61229	 $as_test_x conftest$ac_exeext
61230       }; then
61231   samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
61232else
61233  $as_echo "$as_me: failed program was:" >&5
61234sed 's/^/| /' conftest.$ac_ext >&5
61235
61236	 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
61237fi
61238
61239rm -rf conftest.dSYM
61240rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61241      conftest$ac_exeext conftest.$ac_ext
61242
61243fi
61244{ $as_echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
61245$as_echo "$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6; }
61246
61247    if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes" ; then
61248
61249cat >>confdefs.h <<\_ACEOF
61250#define SYSCONF_SC_NGROUPS_MAX 1
61251_ACEOF
61252
61253    fi
61254
61255
61256    { $as_echo "$as_me:$LINENO: checking for sysconf(_SC_NPROC_ONLN)" >&5
61257$as_echo_n "checking for sysconf(_SC_NPROC_ONLN)... " >&6; }
61258if test "${samba_cv_SYSCONF_SC_NPROC_ONLN+set}" = set; then
61259  $as_echo_n "(cached) " >&6
61260else
61261
61262	    cat >conftest.$ac_ext <<_ACEOF
61263/* confdefs.h.  */
61264_ACEOF
61265cat confdefs.h >>conftest.$ac_ext
61266cat >>conftest.$ac_ext <<_ACEOF
61267/* end confdefs.h.  */
61268#include <unistd.h>
61269int
61270main ()
61271{
61272 return sysconf(_SC_NPROC_ONLN) == -1 ? 1 : 0;
61273  ;
61274  return 0;
61275}
61276_ACEOF
61277rm -f conftest.$ac_objext conftest$ac_exeext
61278if { (ac_try="$ac_link"
61279case "(($ac_try" in
61280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61281  *) ac_try_echo=$ac_try;;
61282esac
61283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61284$as_echo "$ac_try_echo") >&5
61285  (eval "$ac_link") 2>conftest.er1
61286  ac_status=$?
61287  grep -v '^ *+' conftest.er1 >conftest.err
61288  rm -f conftest.er1
61289  cat conftest.err >&5
61290  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61291  (exit $ac_status); } && {
61292	 test -z "$ac_c_werror_flag" ||
61293	 test ! -s conftest.err
61294       } && test -s conftest$ac_exeext && {
61295	 test "$cross_compiling" = yes ||
61296	 $as_test_x conftest$ac_exeext
61297       }; then
61298   samba_cv_SYSCONF_SC_NPROC_ONLN=yes
61299else
61300  $as_echo "$as_me: failed program was:" >&5
61301sed 's/^/| /' conftest.$ac_ext >&5
61302
61303	 samba_cv_SYSCONF_SC_NPROC_ONLN=no
61304fi
61305
61306rm -rf conftest.dSYM
61307rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61308      conftest$ac_exeext conftest.$ac_ext
61309
61310fi
61311{ $as_echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NPROC_ONLN" >&5
61312$as_echo "$samba_cv_SYSCONF_SC_NPROC_ONLN" >&6; }
61313
61314    if test x"$samba_cv_SYSCONF_SC_NPROC_ONLN" = x"yes" ; then
61315
61316cat >>confdefs.h <<\_ACEOF
61317#define SYSCONF_SC_NPROC_ONLN 1
61318_ACEOF
61319
61320    fi
61321
61322
61323    { $as_echo "$as_me:$LINENO: checking for sysconf(_SC_NPROCESSORS_ONLN)" >&5
61324$as_echo_n "checking for sysconf(_SC_NPROCESSORS_ONLN)... " >&6; }
61325if test "${samba_cv_SYSCONF_SC_NPROCESSORS_ONLN+set}" = set; then
61326  $as_echo_n "(cached) " >&6
61327else
61328
61329	    cat >conftest.$ac_ext <<_ACEOF
61330/* confdefs.h.  */
61331_ACEOF
61332cat confdefs.h >>conftest.$ac_ext
61333cat >>conftest.$ac_ext <<_ACEOF
61334/* end confdefs.h.  */
61335#include <unistd.h>
61336int
61337main ()
61338{
61339 return sysconf(_SC_NPROCESSORS_ONLN) == -1 ? 1 : 0;
61340  ;
61341  return 0;
61342}
61343_ACEOF
61344rm -f conftest.$ac_objext conftest$ac_exeext
61345if { (ac_try="$ac_link"
61346case "(($ac_try" in
61347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61348  *) ac_try_echo=$ac_try;;
61349esac
61350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61351$as_echo "$ac_try_echo") >&5
61352  (eval "$ac_link") 2>conftest.er1
61353  ac_status=$?
61354  grep -v '^ *+' conftest.er1 >conftest.err
61355  rm -f conftest.er1
61356  cat conftest.err >&5
61357  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61358  (exit $ac_status); } && {
61359	 test -z "$ac_c_werror_flag" ||
61360	 test ! -s conftest.err
61361       } && test -s conftest$ac_exeext && {
61362	 test "$cross_compiling" = yes ||
61363	 $as_test_x conftest$ac_exeext
61364       }; then
61365   samba_cv_SYSCONF_SC_NPROCESSORS_ONLN=yes
61366else
61367  $as_echo "$as_me: failed program was:" >&5
61368sed 's/^/| /' conftest.$ac_ext >&5
61369
61370	 samba_cv_SYSCONF_SC_NPROCESSORS_ONLN=no
61371fi
61372
61373rm -rf conftest.dSYM
61374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61375      conftest$ac_exeext conftest.$ac_ext
61376
61377fi
61378{ $as_echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NPROCESSORS_ONLN" >&5
61379$as_echo "$samba_cv_SYSCONF_SC_NPROCESSORS_ONLN" >&6; }
61380
61381    if test x"$samba_cv_SYSCONF_SC_NPROCESSORS_ONLN" = x"yes" ; then
61382
61383cat >>confdefs.h <<\_ACEOF
61384#define SYSCONF_SC_NPROCESSORS_ONLN 1
61385_ACEOF
61386
61387    fi
61388
61389
61390    { $as_echo "$as_me:$LINENO: checking for sysconf(_SC_PAGESIZE)" >&5
61391$as_echo_n "checking for sysconf(_SC_PAGESIZE)... " >&6; }
61392if test "${samba_cv_SYSCONF_SC_PAGESIZE+set}" = set; then
61393  $as_echo_n "(cached) " >&6
61394else
61395
61396	    cat >conftest.$ac_ext <<_ACEOF
61397/* confdefs.h.  */
61398_ACEOF
61399cat confdefs.h >>conftest.$ac_ext
61400cat >>conftest.$ac_ext <<_ACEOF
61401/* end confdefs.h.  */
61402#include <unistd.h>
61403int
61404main ()
61405{
61406 return sysconf(_SC_PAGESIZE) == -1 ? 1 : 0;
61407  ;
61408  return 0;
61409}
61410_ACEOF
61411rm -f conftest.$ac_objext conftest$ac_exeext
61412if { (ac_try="$ac_link"
61413case "(($ac_try" in
61414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61415  *) ac_try_echo=$ac_try;;
61416esac
61417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61418$as_echo "$ac_try_echo") >&5
61419  (eval "$ac_link") 2>conftest.er1
61420  ac_status=$?
61421  grep -v '^ *+' conftest.er1 >conftest.err
61422  rm -f conftest.er1
61423  cat conftest.err >&5
61424  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61425  (exit $ac_status); } && {
61426	 test -z "$ac_c_werror_flag" ||
61427	 test ! -s conftest.err
61428       } && test -s conftest$ac_exeext && {
61429	 test "$cross_compiling" = yes ||
61430	 $as_test_x conftest$ac_exeext
61431       }; then
61432   samba_cv_SYSCONF_SC_PAGESIZE=yes
61433else
61434  $as_echo "$as_me: failed program was:" >&5
61435sed 's/^/| /' conftest.$ac_ext >&5
61436
61437	 samba_cv_SYSCONF_SC_PAGESIZE=no
61438fi
61439
61440rm -rf conftest.dSYM
61441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61442      conftest$ac_exeext conftest.$ac_ext
61443
61444fi
61445{ $as_echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_PAGESIZE" >&5
61446$as_echo "$samba_cv_SYSCONF_SC_PAGESIZE" >&6; }
61447
61448    if test x"$samba_cv_SYSCONF_SC_PAGESIZE" = x"yes" ; then
61449
61450cat >>confdefs.h <<\_ACEOF
61451#define SYSCONF_SC_PAGESIZE 1
61452_ACEOF
61453
61454    fi
61455
61456
61457for ac_func in getpagesize
61458do
61459as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61460{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61461$as_echo_n "checking for $ac_func... " >&6; }
61462if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61463  $as_echo_n "(cached) " >&6
61464else
61465  cat >conftest.$ac_ext <<_ACEOF
61466/* confdefs.h.  */
61467_ACEOF
61468cat confdefs.h >>conftest.$ac_ext
61469cat >>conftest.$ac_ext <<_ACEOF
61470/* end confdefs.h.  */
61471/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61472   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61473#define $ac_func innocuous_$ac_func
61474
61475/* System header to define __stub macros and hopefully few prototypes,
61476    which can conflict with char $ac_func (); below.
61477    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61478    <limits.h> exists even on freestanding compilers.  */
61479
61480#ifdef __STDC__
61481# include <limits.h>
61482#else
61483# include <assert.h>
61484#endif
61485
61486#undef $ac_func
61487
61488/* Override any GCC internal prototype to avoid an error.
61489   Use char because int might match the return type of a GCC
61490   builtin and then its argument prototype would still apply.  */
61491#ifdef __cplusplus
61492extern "C"
61493#endif
61494char $ac_func ();
61495/* The GNU C library defines this for functions which it implements
61496    to always fail with ENOSYS.  Some functions are actually named
61497    something starting with __ and the normal name is an alias.  */
61498#if defined __stub_$ac_func || defined __stub___$ac_func
61499choke me
61500#endif
61501
61502int
61503main ()
61504{
61505return $ac_func ();
61506  ;
61507  return 0;
61508}
61509_ACEOF
61510rm -f conftest.$ac_objext conftest$ac_exeext
61511if { (ac_try="$ac_link"
61512case "(($ac_try" in
61513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61514  *) ac_try_echo=$ac_try;;
61515esac
61516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61517$as_echo "$ac_try_echo") >&5
61518  (eval "$ac_link") 2>conftest.er1
61519  ac_status=$?
61520  grep -v '^ *+' conftest.er1 >conftest.err
61521  rm -f conftest.er1
61522  cat conftest.err >&5
61523  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61524  (exit $ac_status); } && {
61525	 test -z "$ac_c_werror_flag" ||
61526	 test ! -s conftest.err
61527       } && test -s conftest$ac_exeext && {
61528	 test "$cross_compiling" = yes ||
61529	 $as_test_x conftest$ac_exeext
61530       }; then
61531  eval "$as_ac_var=yes"
61532else
61533  $as_echo "$as_me: failed program was:" >&5
61534sed 's/^/| /' conftest.$ac_ext >&5
61535
61536	eval "$as_ac_var=no"
61537fi
61538
61539rm -rf conftest.dSYM
61540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61541      conftest$ac_exeext conftest.$ac_ext
61542fi
61543ac_res=`eval 'as_val=${'$as_ac_var'}
61544		 $as_echo "$as_val"'`
61545	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61546$as_echo "$ac_res" >&6; }
61547as_val=`eval 'as_val=${'$as_ac_var'}
61548		 $as_echo "$as_val"'`
61549   if test "x$as_val" = x""yes; then
61550  cat >>confdefs.h <<_ACEOF
61551#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61552_ACEOF
61553
61554fi
61555done
61556
61557
61558################################################
61559# look for a method of setting the effective uid
61560seteuid=no;
61561
61562if test $seteuid = no; then
61563{ $as_echo "$as_me:$LINENO: checking for setreuid" >&5
61564$as_echo_n "checking for setreuid... " >&6; }
61565if test "${samba_cv_USE_SETREUID+set}" = set; then
61566  $as_echo_n "(cached) " >&6
61567else
61568
61569if test "$cross_compiling" = yes; then
61570  samba_cv_USE_SETREUID=cross
61571else
61572  cat >conftest.$ac_ext <<_ACEOF
61573/* confdefs.h.  */
61574_ACEOF
61575cat confdefs.h >>conftest.$ac_ext
61576cat >>conftest.$ac_ext <<_ACEOF
61577/* end confdefs.h.  */
61578
61579#define AUTOCONF_TEST 1
61580#define USE_SETREUID 1
61581#include "confdefs.h"
61582#include "${srcdir-.}/lib/util_sec.c"
61583_ACEOF
61584rm -f conftest$ac_exeext
61585if { (ac_try="$ac_link"
61586case "(($ac_try" in
61587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61588  *) ac_try_echo=$ac_try;;
61589esac
61590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61591$as_echo "$ac_try_echo") >&5
61592  (eval "$ac_link") 2>&5
61593  ac_status=$?
61594  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61595  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61596  { (case "(($ac_try" in
61597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61598  *) ac_try_echo=$ac_try;;
61599esac
61600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61601$as_echo "$ac_try_echo") >&5
61602  (eval "$ac_try") 2>&5
61603  ac_status=$?
61604  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61605  (exit $ac_status); }; }; then
61606  samba_cv_USE_SETREUID=yes
61607else
61608  $as_echo "$as_me: program exited with status $ac_status" >&5
61609$as_echo "$as_me: failed program was:" >&5
61610sed 's/^/| /' conftest.$ac_ext >&5
61611
61612( exit $ac_status )
61613samba_cv_USE_SETREUID=no
61614fi
61615rm -rf conftest.dSYM
61616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61617fi
61618
61619
61620fi
61621{ $as_echo "$as_me:$LINENO: result: $samba_cv_USE_SETREUID" >&5
61622$as_echo "$samba_cv_USE_SETREUID" >&6; }
61623if test x"$samba_cv_USE_SETREUID" = x"yes"; then
61624    seteuid=yes;
61625cat >>confdefs.h <<\_ACEOF
61626#define USE_SETREUID 1
61627_ACEOF
61628
61629fi
61630fi
61631
61632# we check for setresuid second as it conflicts with AIO on Linux.
61633# see http://samba.org/~tridge/junkcode/aio_uid.c
61634if test $seteuid = no; then
61635{ $as_echo "$as_me:$LINENO: checking for setresuid" >&5
61636$as_echo_n "checking for setresuid... " >&6; }
61637if test "${samba_cv_USE_SETRESUID+set}" = set; then
61638  $as_echo_n "(cached) " >&6
61639else
61640
61641if test "$cross_compiling" = yes; then
61642  samba_cv_USE_SETRESUID=cross
61643else
61644  cat >conftest.$ac_ext <<_ACEOF
61645/* confdefs.h.  */
61646_ACEOF
61647cat confdefs.h >>conftest.$ac_ext
61648cat >>conftest.$ac_ext <<_ACEOF
61649/* end confdefs.h.  */
61650
61651#define AUTOCONF_TEST 1
61652#define USE_SETRESUID 1
61653#include "confdefs.h"
61654#include "${srcdir-.}/lib/util_sec.c"
61655_ACEOF
61656rm -f conftest$ac_exeext
61657if { (ac_try="$ac_link"
61658case "(($ac_try" in
61659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61660  *) ac_try_echo=$ac_try;;
61661esac
61662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61663$as_echo "$ac_try_echo") >&5
61664  (eval "$ac_link") 2>&5
61665  ac_status=$?
61666  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61667  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61668  { (case "(($ac_try" in
61669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61670  *) ac_try_echo=$ac_try;;
61671esac
61672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61673$as_echo "$ac_try_echo") >&5
61674  (eval "$ac_try") 2>&5
61675  ac_status=$?
61676  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61677  (exit $ac_status); }; }; then
61678  samba_cv_USE_SETRESUID=yes
61679else
61680  $as_echo "$as_me: program exited with status $ac_status" >&5
61681$as_echo "$as_me: failed program was:" >&5
61682sed 's/^/| /' conftest.$ac_ext >&5
61683
61684( exit $ac_status )
61685samba_cv_USE_SETRESUID=no
61686fi
61687rm -rf conftest.dSYM
61688rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61689fi
61690
61691
61692fi
61693{ $as_echo "$as_me:$LINENO: result: $samba_cv_USE_SETRESUID" >&5
61694$as_echo "$samba_cv_USE_SETRESUID" >&6; }
61695if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
61696    seteuid=yes;
61697cat >>confdefs.h <<\_ACEOF
61698#define USE_SETRESUID 1
61699_ACEOF
61700
61701fi
61702fi
61703
61704if test $seteuid = no; then
61705{ $as_echo "$as_me:$LINENO: checking for seteuid" >&5
61706$as_echo_n "checking for seteuid... " >&6; }
61707if test "${samba_cv_USE_SETEUID+set}" = set; then
61708  $as_echo_n "(cached) " >&6
61709else
61710
61711if test "$cross_compiling" = yes; then
61712  samba_cv_USE_SETEUID=cross
61713else
61714  cat >conftest.$ac_ext <<_ACEOF
61715/* confdefs.h.  */
61716_ACEOF
61717cat confdefs.h >>conftest.$ac_ext
61718cat >>conftest.$ac_ext <<_ACEOF
61719/* end confdefs.h.  */
61720
61721#define AUTOCONF_TEST 1
61722#define USE_SETEUID 1
61723#include "confdefs.h"
61724#include "${srcdir-.}/lib/util_sec.c"
61725_ACEOF
61726rm -f conftest$ac_exeext
61727if { (ac_try="$ac_link"
61728case "(($ac_try" in
61729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61730  *) ac_try_echo=$ac_try;;
61731esac
61732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61733$as_echo "$ac_try_echo") >&5
61734  (eval "$ac_link") 2>&5
61735  ac_status=$?
61736  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61737  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61738  { (case "(($ac_try" in
61739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61740  *) ac_try_echo=$ac_try;;
61741esac
61742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61743$as_echo "$ac_try_echo") >&5
61744  (eval "$ac_try") 2>&5
61745  ac_status=$?
61746  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61747  (exit $ac_status); }; }; then
61748  samba_cv_USE_SETEUID=yes
61749else
61750  $as_echo "$as_me: program exited with status $ac_status" >&5
61751$as_echo "$as_me: failed program was:" >&5
61752sed 's/^/| /' conftest.$ac_ext >&5
61753
61754( exit $ac_status )
61755samba_cv_USE_SETEUID=no
61756fi
61757rm -rf conftest.dSYM
61758rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61759fi
61760
61761
61762fi
61763{ $as_echo "$as_me:$LINENO: result: $samba_cv_USE_SETEUID" >&5
61764$as_echo "$samba_cv_USE_SETEUID" >&6; }
61765if test x"$samba_cv_USE_SETEUID" = x"yes"; then
61766    seteuid=yes;
61767cat >>confdefs.h <<\_ACEOF
61768#define USE_SETEUID 1
61769_ACEOF
61770
61771fi
61772fi
61773
61774if test $seteuid = no; then
61775{ $as_echo "$as_me:$LINENO: checking for setuidx" >&5
61776$as_echo_n "checking for setuidx... " >&6; }
61777if test "${samba_cv_USE_SETUIDX+set}" = set; then
61778  $as_echo_n "(cached) " >&6
61779else
61780
61781if test "$cross_compiling" = yes; then
61782  samba_cv_USE_SETUIDX=cross
61783else
61784  cat >conftest.$ac_ext <<_ACEOF
61785/* confdefs.h.  */
61786_ACEOF
61787cat confdefs.h >>conftest.$ac_ext
61788cat >>conftest.$ac_ext <<_ACEOF
61789/* end confdefs.h.  */
61790
61791#define AUTOCONF_TEST 1
61792#define USE_SETUIDX 1
61793#include "confdefs.h"
61794#include "${srcdir-.}/lib/util_sec.c"
61795_ACEOF
61796rm -f conftest$ac_exeext
61797if { (ac_try="$ac_link"
61798case "(($ac_try" in
61799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61800  *) ac_try_echo=$ac_try;;
61801esac
61802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61803$as_echo "$ac_try_echo") >&5
61804  (eval "$ac_link") 2>&5
61805  ac_status=$?
61806  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61807  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61808  { (case "(($ac_try" in
61809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61810  *) ac_try_echo=$ac_try;;
61811esac
61812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61813$as_echo "$ac_try_echo") >&5
61814  (eval "$ac_try") 2>&5
61815  ac_status=$?
61816  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61817  (exit $ac_status); }; }; then
61818  samba_cv_USE_SETUIDX=yes
61819else
61820  $as_echo "$as_me: program exited with status $ac_status" >&5
61821$as_echo "$as_me: failed program was:" >&5
61822sed 's/^/| /' conftest.$ac_ext >&5
61823
61824( exit $ac_status )
61825samba_cv_USE_SETUIDX=no
61826fi
61827rm -rf conftest.dSYM
61828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61829fi
61830
61831
61832fi
61833{ $as_echo "$as_me:$LINENO: result: $samba_cv_USE_SETUIDX" >&5
61834$as_echo "$samba_cv_USE_SETUIDX" >&6; }
61835if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
61836    seteuid=yes;
61837cat >>confdefs.h <<\_ACEOF
61838#define USE_SETUIDX 1
61839_ACEOF
61840
61841fi
61842fi
61843
61844{ $as_echo "$as_me:$LINENO: checking for the Darwin initgroups system call" >&5
61845$as_echo_n "checking for the Darwin initgroups system call... " >&6; }
61846if test "${samba_cv_DARWIN_INITGROUPS+set}" = set; then
61847  $as_echo_n "(cached) " >&6
61848else
61849  cat >conftest.$ac_ext <<_ACEOF
61850/* confdefs.h.  */
61851_ACEOF
61852cat confdefs.h >>conftest.$ac_ext
61853cat >>conftest.$ac_ext <<_ACEOF
61854/* end confdefs.h.  */
61855
61856#include <sys/syscall.h>
61857#include <unistd.h>
61858
61859int
61860main ()
61861{
61862 syscall(SYS_initgroups, 16, NULL, NULL, 0);
61863  ;
61864  return 0;
61865}
61866_ACEOF
61867rm -f conftest.$ac_objext conftest$ac_exeext
61868if { (ac_try="$ac_link"
61869case "(($ac_try" in
61870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61871  *) ac_try_echo=$ac_try;;
61872esac
61873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61874$as_echo "$ac_try_echo") >&5
61875  (eval "$ac_link") 2>conftest.er1
61876  ac_status=$?
61877  grep -v '^ *+' conftest.er1 >conftest.err
61878  rm -f conftest.er1
61879  cat conftest.err >&5
61880  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61881  (exit $ac_status); } && {
61882	 test -z "$ac_c_werror_flag" ||
61883	 test ! -s conftest.err
61884       } && test -s conftest$ac_exeext && {
61885	 test "$cross_compiling" = yes ||
61886	 $as_test_x conftest$ac_exeext
61887       }; then
61888  samba_cv_DARWIN_INITGROUPS=yes
61889else
61890  $as_echo "$as_me: failed program was:" >&5
61891sed 's/^/| /' conftest.$ac_ext >&5
61892
61893	samba_cv_DARWIN_INITGROUPS=no
61894fi
61895
61896rm -rf conftest.dSYM
61897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61898      conftest$ac_exeext conftest.$ac_ext
61899
61900fi
61901{ $as_echo "$as_me:$LINENO: result: $samba_cv_DARWIN_INITGROUPS" >&5
61902$as_echo "$samba_cv_DARWIN_INITGROUPS" >&6; }
61903
61904if test x"$samba_cv_DARWIN_INITGROUPS" = x"yes" ; then
61905
61906cat >>confdefs.h <<\_ACEOF
61907#define HAVE_DARWIN_INITGROUPS 1
61908_ACEOF
61909
61910fi
61911
61912{ $as_echo "$as_me:$LINENO: checking for fcntl locking" >&5
61913$as_echo_n "checking for fcntl locking... " >&6; }
61914if test "${samba_cv_HAVE_FCNTL_LOCK+set}" = set; then
61915  $as_echo_n "(cached) " >&6
61916else
61917
61918if test "$cross_compiling" = yes; then
61919  samba_cv_HAVE_FCNTL_LOCK=cross
61920else
61921  cat >conftest.$ac_ext <<_ACEOF
61922/* confdefs.h.  */
61923_ACEOF
61924cat confdefs.h >>conftest.$ac_ext
61925cat >>conftest.$ac_ext <<_ACEOF
61926/* end confdefs.h.  */
61927#include "${srcdir-.}/../tests/fcntl_lock.c"
61928_ACEOF
61929rm -f conftest$ac_exeext
61930if { (ac_try="$ac_link"
61931case "(($ac_try" in
61932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61933  *) ac_try_echo=$ac_try;;
61934esac
61935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61936$as_echo "$ac_try_echo") >&5
61937  (eval "$ac_link") 2>&5
61938  ac_status=$?
61939  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61940  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61941  { (case "(($ac_try" in
61942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61943  *) ac_try_echo=$ac_try;;
61944esac
61945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61946$as_echo "$ac_try_echo") >&5
61947  (eval "$ac_try") 2>&5
61948  ac_status=$?
61949  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61950  (exit $ac_status); }; }; then
61951  samba_cv_HAVE_FCNTL_LOCK=yes
61952else
61953  $as_echo "$as_me: program exited with status $ac_status" >&5
61954$as_echo "$as_me: failed program was:" >&5
61955sed 's/^/| /' conftest.$ac_ext >&5
61956
61957( exit $ac_status )
61958samba_cv_HAVE_FCNTL_LOCK=no
61959fi
61960rm -rf conftest.dSYM
61961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61962fi
61963
61964
61965fi
61966{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_FCNTL_LOCK" >&5
61967$as_echo "$samba_cv_HAVE_FCNTL_LOCK" >&6; }
61968if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
61969
61970cat >>confdefs.h <<\_ACEOF
61971#define HAVE_FCNTL_LOCK 1
61972_ACEOF
61973
61974fi
61975
61976{ $as_echo "$as_me:$LINENO: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
61977$as_echo_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking... " >&6; }
61978if test "${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}" = set; then
61979  $as_echo_n "(cached) " >&6
61980else
61981
61982if test "$cross_compiling" = yes; then
61983  samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
61984else
61985  cat >conftest.$ac_ext <<_ACEOF
61986/* confdefs.h.  */
61987_ACEOF
61988cat confdefs.h >>conftest.$ac_ext
61989cat >>conftest.$ac_ext <<_ACEOF
61990/* end confdefs.h.  */
61991#include "${srcdir-.}/../tests/fcntl_lock64.c"
61992_ACEOF
61993rm -f conftest$ac_exeext
61994if { (ac_try="$ac_link"
61995case "(($ac_try" in
61996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61997  *) ac_try_echo=$ac_try;;
61998esac
61999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62000$as_echo "$ac_try_echo") >&5
62001  (eval "$ac_link") 2>&5
62002  ac_status=$?
62003  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62004  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62005  { (case "(($ac_try" in
62006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62007  *) ac_try_echo=$ac_try;;
62008esac
62009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62010$as_echo "$ac_try_echo") >&5
62011  (eval "$ac_try") 2>&5
62012  ac_status=$?
62013  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62014  (exit $ac_status); }; }; then
62015  samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
62016else
62017  $as_echo "$as_me: program exited with status $ac_status" >&5
62018$as_echo "$as_me: failed program was:" >&5
62019sed 's/^/| /' conftest.$ac_ext >&5
62020
62021( exit $ac_status )
62022samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
62023fi
62024rm -rf conftest.dSYM
62025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62026fi
62027
62028
62029fi
62030{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&5
62031$as_echo "$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&6; }
62032if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
62033
62034cat >>confdefs.h <<\_ACEOF
62035#define HAVE_BROKEN_FCNTL64_LOCKS 1
62036_ACEOF
62037
62038
62039else
62040
62041
62042  { $as_echo "$as_me:$LINENO: checking for 64 bit fcntl locking" >&5
62043$as_echo_n "checking for 64 bit fcntl locking... " >&6; }
62044if test "${samba_cv_HAVE_STRUCT_FLOCK64+set}" = set; then
62045  $as_echo_n "(cached) " >&6
62046else
62047
62048  if test "$cross_compiling" = yes; then
62049  samba_cv_HAVE_STRUCT_FLOCK64=cross
62050else
62051  cat >conftest.$ac_ext <<_ACEOF
62052/* confdefs.h.  */
62053_ACEOF
62054cat confdefs.h >>conftest.$ac_ext
62055cat >>conftest.$ac_ext <<_ACEOF
62056/* end confdefs.h.  */
62057
62058#if defined(HAVE_UNISTD_H)
62059#include <unistd.h>
62060#endif
62061#include <stdio.h>
62062#include <stdlib.h>
62063
62064#ifdef HAVE_FCNTL_H
62065#include <fcntl.h>
62066#endif
62067
62068#ifdef HAVE_SYS_FCNTL_H
62069#include <sys/fcntl.h>
62070#endif
62071main() { struct flock64 fl64;
62072#if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
62073exit(0);
62074#else
62075exit(1);
62076#endif
62077}
62078_ACEOF
62079rm -f conftest$ac_exeext
62080if { (ac_try="$ac_link"
62081case "(($ac_try" in
62082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62083  *) ac_try_echo=$ac_try;;
62084esac
62085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62086$as_echo "$ac_try_echo") >&5
62087  (eval "$ac_link") 2>&5
62088  ac_status=$?
62089  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62090  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62091  { (case "(($ac_try" in
62092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62093  *) ac_try_echo=$ac_try;;
62094esac
62095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62096$as_echo "$ac_try_echo") >&5
62097  (eval "$ac_try") 2>&5
62098  ac_status=$?
62099  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62100  (exit $ac_status); }; }; then
62101  samba_cv_HAVE_STRUCT_FLOCK64=yes
62102else
62103  $as_echo "$as_me: program exited with status $ac_status" >&5
62104$as_echo "$as_me: failed program was:" >&5
62105sed 's/^/| /' conftest.$ac_ext >&5
62106
62107( exit $ac_status )
62108samba_cv_HAVE_STRUCT_FLOCK64=no
62109fi
62110rm -rf conftest.dSYM
62111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62112fi
62113
62114
62115fi
62116{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_FLOCK64" >&5
62117$as_echo "$samba_cv_HAVE_STRUCT_FLOCK64" >&6; }
62118
62119  if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
62120
62121cat >>confdefs.h <<\_ACEOF
62122#define HAVE_STRUCT_FLOCK64 1
62123_ACEOF
62124
62125  fi
62126fi
62127
62128# glibc up to 2.3.6 had dangerously broken posix_fallocate(). DON'T USE IT.
62129{ $as_echo "$as_me:$LINENO: checking for broken posix_fallocate" >&5
62130$as_echo_n "checking for broken posix_fallocate... " >&6; }
62131if test "${samba_cv_HAVE_BROKEN_POSIX_FALLOCATE+set}" = set; then
62132  $as_echo_n "(cached) " >&6
62133else
62134
62135cat >conftest.$ac_ext <<_ACEOF
62136/* confdefs.h.  */
62137_ACEOF
62138cat confdefs.h >>conftest.$ac_ext
62139cat >>conftest.$ac_ext <<_ACEOF
62140/* end confdefs.h.  */
62141
62142  #define _XOPEN_SOURCE 600
62143  #include <stdlib.h>
62144  #if defined(__GLIBC__) && ((__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4))
62145    probably broken posix_fallocate
62146  #endif
62147
62148int
62149main ()
62150{
62151
62152
62153  ;
62154  return 0;
62155}
62156_ACEOF
62157rm -f conftest.$ac_objext
62158if { (ac_try="$ac_compile"
62159case "(($ac_try" in
62160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62161  *) ac_try_echo=$ac_try;;
62162esac
62163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62164$as_echo "$ac_try_echo") >&5
62165  (eval "$ac_compile") 2>conftest.er1
62166  ac_status=$?
62167  grep -v '^ *+' conftest.er1 >conftest.err
62168  rm -f conftest.er1
62169  cat conftest.err >&5
62170  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62171  (exit $ac_status); } && {
62172	 test -z "$ac_c_werror_flag" ||
62173	 test ! -s conftest.err
62174       } && test -s conftest.$ac_objext; then
62175  samba_cv_HAVE_BROKEN_POSIX_FALLOCATE=no
62176else
62177  $as_echo "$as_me: failed program was:" >&5
62178sed 's/^/| /' conftest.$ac_ext >&5
62179
62180	samba_cv_HAVE_BROKEN_POSIX_FALLOCATE=yes
62181fi
62182
62183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62184fi
62185{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_POSIX_FALLOCATE" >&5
62186$as_echo "$samba_cv_HAVE_BROKEN_POSIX_FALLOCATE" >&6; }
62187if test x"$samba_cv_HAVE_BROKEN_POSIX_FALLOCATE" = xyes; then
62188
62189cat >>confdefs.h <<\_ACEOF
62190#define HAVE_BROKEN_POSIX_FALLOCATE /**/
62191_ACEOF
62192
62193fi
62194
62195
62196{ $as_echo "$as_me:$LINENO: checking for st_blocks in struct stat" >&5
62197$as_echo_n "checking for st_blocks in struct stat... " >&6; }
62198if test "${samba_cv_HAVE_STAT_ST_BLOCKS+set}" = set; then
62199  $as_echo_n "(cached) " >&6
62200else
62201
62202cat >conftest.$ac_ext <<_ACEOF
62203/* confdefs.h.  */
62204_ACEOF
62205cat confdefs.h >>conftest.$ac_ext
62206cat >>conftest.$ac_ext <<_ACEOF
62207/* end confdefs.h.  */
62208#include <sys/types.h>
62209#include <sys/stat.h>
62210#include <unistd.h>
62211int
62212main ()
62213{
62214struct stat st;  st.st_blocks = 0;
62215  ;
62216  return 0;
62217}
62218_ACEOF
62219rm -f conftest.$ac_objext
62220if { (ac_try="$ac_compile"
62221case "(($ac_try" in
62222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62223  *) ac_try_echo=$ac_try;;
62224esac
62225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62226$as_echo "$ac_try_echo") >&5
62227  (eval "$ac_compile") 2>conftest.er1
62228  ac_status=$?
62229  grep -v '^ *+' conftest.er1 >conftest.err
62230  rm -f conftest.er1
62231  cat conftest.err >&5
62232  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62233  (exit $ac_status); } && {
62234	 test -z "$ac_c_werror_flag" ||
62235	 test ! -s conftest.err
62236       } && test -s conftest.$ac_objext; then
62237  samba_cv_HAVE_STAT_ST_BLOCKS=yes
62238else
62239  $as_echo "$as_me: failed program was:" >&5
62240sed 's/^/| /' conftest.$ac_ext >&5
62241
62242	samba_cv_HAVE_STAT_ST_BLOCKS=no
62243fi
62244
62245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62246fi
62247{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLOCKS" >&5
62248$as_echo "$samba_cv_HAVE_STAT_ST_BLOCKS" >&6; }
62249if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
62250
62251cat >>confdefs.h <<\_ACEOF
62252#define HAVE_STAT_ST_BLOCKS 1
62253_ACEOF
62254
62255fi
62256
62257{ $as_echo "$as_me:$LINENO: checking for blksize_t" >&5
62258$as_echo_n "checking for blksize_t... " >&6; }
62259if test "${ac_cv_type_blksize_t+set}" = set; then
62260  $as_echo_n "(cached) " >&6
62261else
62262  ac_cv_type_blksize_t=no
62263cat >conftest.$ac_ext <<_ACEOF
62264/* confdefs.h.  */
62265_ACEOF
62266cat confdefs.h >>conftest.$ac_ext
62267cat >>conftest.$ac_ext <<_ACEOF
62268/* end confdefs.h.  */
62269#include <sys/stat.h>
62270
62271int
62272main ()
62273{
62274if (sizeof (blksize_t))
62275       return 0;
62276  ;
62277  return 0;
62278}
62279_ACEOF
62280rm -f conftest.$ac_objext
62281if { (ac_try="$ac_compile"
62282case "(($ac_try" in
62283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62284  *) ac_try_echo=$ac_try;;
62285esac
62286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62287$as_echo "$ac_try_echo") >&5
62288  (eval "$ac_compile") 2>conftest.er1
62289  ac_status=$?
62290  grep -v '^ *+' conftest.er1 >conftest.err
62291  rm -f conftest.er1
62292  cat conftest.err >&5
62293  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62294  (exit $ac_status); } && {
62295	 test -z "$ac_c_werror_flag" ||
62296	 test ! -s conftest.err
62297       } && test -s conftest.$ac_objext; then
62298  cat >conftest.$ac_ext <<_ACEOF
62299/* confdefs.h.  */
62300_ACEOF
62301cat confdefs.h >>conftest.$ac_ext
62302cat >>conftest.$ac_ext <<_ACEOF
62303/* end confdefs.h.  */
62304#include <sys/stat.h>
62305
62306int
62307main ()
62308{
62309if (sizeof ((blksize_t)))
62310	  return 0;
62311  ;
62312  return 0;
62313}
62314_ACEOF
62315rm -f conftest.$ac_objext
62316if { (ac_try="$ac_compile"
62317case "(($ac_try" in
62318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62319  *) ac_try_echo=$ac_try;;
62320esac
62321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62322$as_echo "$ac_try_echo") >&5
62323  (eval "$ac_compile") 2>conftest.er1
62324  ac_status=$?
62325  grep -v '^ *+' conftest.er1 >conftest.err
62326  rm -f conftest.er1
62327  cat conftest.err >&5
62328  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62329  (exit $ac_status); } && {
62330	 test -z "$ac_c_werror_flag" ||
62331	 test ! -s conftest.err
62332       } && test -s conftest.$ac_objext; then
62333  :
62334else
62335  $as_echo "$as_me: failed program was:" >&5
62336sed 's/^/| /' conftest.$ac_ext >&5
62337
62338	ac_cv_type_blksize_t=yes
62339fi
62340
62341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62342else
62343  $as_echo "$as_me: failed program was:" >&5
62344sed 's/^/| /' conftest.$ac_ext >&5
62345
62346
62347fi
62348
62349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62350fi
62351{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_blksize_t" >&5
62352$as_echo "$ac_cv_type_blksize_t" >&6; }
62353if test "x$ac_cv_type_blksize_t" = x""yes; then
62354
62355cat >>confdefs.h <<_ACEOF
62356#define HAVE_BLKSIZE_T 1
62357_ACEOF
62358
62359
62360fi
62361{ $as_echo "$as_me:$LINENO: checking for blkcnt_t" >&5
62362$as_echo_n "checking for blkcnt_t... " >&6; }
62363if test "${ac_cv_type_blkcnt_t+set}" = set; then
62364  $as_echo_n "(cached) " >&6
62365else
62366  ac_cv_type_blkcnt_t=no
62367cat >conftest.$ac_ext <<_ACEOF
62368/* confdefs.h.  */
62369_ACEOF
62370cat confdefs.h >>conftest.$ac_ext
62371cat >>conftest.$ac_ext <<_ACEOF
62372/* end confdefs.h.  */
62373#include <sys/stat.h>
62374
62375int
62376main ()
62377{
62378if (sizeof (blkcnt_t))
62379       return 0;
62380  ;
62381  return 0;
62382}
62383_ACEOF
62384rm -f conftest.$ac_objext
62385if { (ac_try="$ac_compile"
62386case "(($ac_try" in
62387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62388  *) ac_try_echo=$ac_try;;
62389esac
62390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62391$as_echo "$ac_try_echo") >&5
62392  (eval "$ac_compile") 2>conftest.er1
62393  ac_status=$?
62394  grep -v '^ *+' conftest.er1 >conftest.err
62395  rm -f conftest.er1
62396  cat conftest.err >&5
62397  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62398  (exit $ac_status); } && {
62399	 test -z "$ac_c_werror_flag" ||
62400	 test ! -s conftest.err
62401       } && test -s conftest.$ac_objext; then
62402  cat >conftest.$ac_ext <<_ACEOF
62403/* confdefs.h.  */
62404_ACEOF
62405cat confdefs.h >>conftest.$ac_ext
62406cat >>conftest.$ac_ext <<_ACEOF
62407/* end confdefs.h.  */
62408#include <sys/stat.h>
62409
62410int
62411main ()
62412{
62413if (sizeof ((blkcnt_t)))
62414	  return 0;
62415  ;
62416  return 0;
62417}
62418_ACEOF
62419rm -f conftest.$ac_objext
62420if { (ac_try="$ac_compile"
62421case "(($ac_try" in
62422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62423  *) ac_try_echo=$ac_try;;
62424esac
62425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62426$as_echo "$ac_try_echo") >&5
62427  (eval "$ac_compile") 2>conftest.er1
62428  ac_status=$?
62429  grep -v '^ *+' conftest.er1 >conftest.err
62430  rm -f conftest.er1
62431  cat conftest.err >&5
62432  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62433  (exit $ac_status); } && {
62434	 test -z "$ac_c_werror_flag" ||
62435	 test ! -s conftest.err
62436       } && test -s conftest.$ac_objext; then
62437  :
62438else
62439  $as_echo "$as_me: failed program was:" >&5
62440sed 's/^/| /' conftest.$ac_ext >&5
62441
62442	ac_cv_type_blkcnt_t=yes
62443fi
62444
62445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62446else
62447  $as_echo "$as_me: failed program was:" >&5
62448sed 's/^/| /' conftest.$ac_ext >&5
62449
62450
62451fi
62452
62453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62454fi
62455{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_blkcnt_t" >&5
62456$as_echo "$ac_cv_type_blkcnt_t" >&6; }
62457if test "x$ac_cv_type_blkcnt_t" = x""yes; then
62458
62459cat >>confdefs.h <<_ACEOF
62460#define HAVE_BLKCNT_T 1
62461_ACEOF
62462
62463
62464fi
62465
62466
62467{ $as_echo "$as_me:$LINENO: checking for st_blksize in struct stat" >&5
62468$as_echo_n "checking for st_blksize in struct stat... " >&6; }
62469if test "${samba_cv_HAVE_STAT_ST_BLKSIZE+set}" = set; then
62470  $as_echo_n "(cached) " >&6
62471else
62472
62473cat >conftest.$ac_ext <<_ACEOF
62474/* confdefs.h.  */
62475_ACEOF
62476cat confdefs.h >>conftest.$ac_ext
62477cat >>conftest.$ac_ext <<_ACEOF
62478/* end confdefs.h.  */
62479#include <sys/types.h>
62480#include <sys/stat.h>
62481#include <unistd.h>
62482int
62483main ()
62484{
62485struct stat st;  st.st_blksize = 0;
62486  ;
62487  return 0;
62488}
62489_ACEOF
62490rm -f conftest.$ac_objext
62491if { (ac_try="$ac_compile"
62492case "(($ac_try" in
62493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62494  *) ac_try_echo=$ac_try;;
62495esac
62496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62497$as_echo "$ac_try_echo") >&5
62498  (eval "$ac_compile") 2>conftest.er1
62499  ac_status=$?
62500  grep -v '^ *+' conftest.er1 >conftest.err
62501  rm -f conftest.er1
62502  cat conftest.err >&5
62503  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62504  (exit $ac_status); } && {
62505	 test -z "$ac_c_werror_flag" ||
62506	 test ! -s conftest.err
62507       } && test -s conftest.$ac_objext; then
62508  samba_cv_HAVE_STAT_ST_BLKSIZE=yes
62509else
62510  $as_echo "$as_me: failed program was:" >&5
62511sed 's/^/| /' conftest.$ac_ext >&5
62512
62513	samba_cv_HAVE_STAT_ST_BLKSIZE=no
62514fi
62515
62516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62517fi
62518{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLKSIZE" >&5
62519$as_echo "$samba_cv_HAVE_STAT_ST_BLKSIZE" >&6; }
62520if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
62521
62522cat >>confdefs.h <<\_ACEOF
62523#define HAVE_STAT_ST_BLKSIZE 1
62524_ACEOF
62525
62526fi
62527
62528{ $as_echo "$as_me:$LINENO: checking for st_flags in struct stat" >&5
62529$as_echo_n "checking for st_flags in struct stat... " >&6; }
62530if test "${samba_cv_HAVE_STAT_ST_FLAGS+set}" = set; then
62531  $as_echo_n "(cached) " >&6
62532else
62533
62534	    cat >conftest.$ac_ext <<_ACEOF
62535/* confdefs.h.  */
62536_ACEOF
62537cat confdefs.h >>conftest.$ac_ext
62538cat >>conftest.$ac_ext <<_ACEOF
62539/* end confdefs.h.  */
62540#include <sys/types.h>
62541#include <sys/stat.h>
62542#include <unistd.h>
62543int
62544main ()
62545{
62546struct stat st;  st.st_flags = 0;
62547  ;
62548  return 0;
62549}
62550_ACEOF
62551rm -f conftest.$ac_objext
62552if { (ac_try="$ac_compile"
62553case "(($ac_try" in
62554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62555  *) ac_try_echo=$ac_try;;
62556esac
62557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62558$as_echo "$ac_try_echo") >&5
62559  (eval "$ac_compile") 2>conftest.er1
62560  ac_status=$?
62561  grep -v '^ *+' conftest.er1 >conftest.err
62562  rm -f conftest.er1
62563  cat conftest.err >&5
62564  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62565  (exit $ac_status); } && {
62566	 test -z "$ac_c_werror_flag" ||
62567	 test ! -s conftest.err
62568       } && test -s conftest.$ac_objext; then
62569  samba_cv_HAVE_STAT_ST_FLAGS=yes
62570else
62571  $as_echo "$as_me: failed program was:" >&5
62572sed 's/^/| /' conftest.$ac_ext >&5
62573
62574	samba_cv_HAVE_STAT_ST_FLAGS=no
62575fi
62576
62577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62578
62579fi
62580{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_FLAGS" >&5
62581$as_echo "$samba_cv_HAVE_STAT_ST_FLAGS" >&6; }
62582
62583if test x"$samba_cv_HAVE_STAT_ST_FLAGS" = x"yes"; then
62584
62585cat >>confdefs.h <<\_ACEOF
62586#define HAVE_STAT_ST_FLAGS 1
62587_ACEOF
62588
62589fi
62590
62591{ $as_echo "$as_me:$LINENO: checking for broken nisplus include files" >&5
62592$as_echo_n "checking for broken nisplus include files... " >&6; }
62593if test "${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}" = set; then
62594  $as_echo_n "(cached) " >&6
62595else
62596
62597cat >conftest.$ac_ext <<_ACEOF
62598/* confdefs.h.  */
62599_ACEOF
62600cat confdefs.h >>conftest.$ac_ext
62601cat >>conftest.$ac_ext <<_ACEOF
62602/* end confdefs.h.  */
62603
62604#include <sys/types.h>
62605#include <sys/acl.h>
62606#if defined(HAVE_RPCSVC_NIS_H)
62607#include <rpcsvc/nis.h>
62608#endif
62609int
62610main ()
62611{
62612int i;
62613  ;
62614  return 0;
62615}
62616_ACEOF
62617rm -f conftest.$ac_objext
62618if { (ac_try="$ac_compile"
62619case "(($ac_try" in
62620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62621  *) ac_try_echo=$ac_try;;
62622esac
62623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62624$as_echo "$ac_try_echo") >&5
62625  (eval "$ac_compile") 2>conftest.er1
62626  ac_status=$?
62627  grep -v '^ *+' conftest.er1 >conftest.err
62628  rm -f conftest.er1
62629  cat conftest.err >&5
62630  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62631  (exit $ac_status); } && {
62632	 test -z "$ac_c_werror_flag" ||
62633	 test ! -s conftest.err
62634       } && test -s conftest.$ac_objext; then
62635  samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
62636else
62637  $as_echo "$as_me: failed program was:" >&5
62638sed 's/^/| /' conftest.$ac_ext >&5
62639
62640	samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
62641fi
62642
62643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62644fi
62645{ $as_echo "$as_me:$LINENO: result: $samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&5
62646$as_echo "$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&6; }
62647if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
62648
62649cat >>confdefs.h <<\_ACEOF
62650#define BROKEN_NISPLUS_INCLUDE_FILES 1
62651_ACEOF
62652
62653fi
62654
62655{ $as_echo "$as_me:$LINENO: checking if the realpath function allows a NULL argument" >&5
62656$as_echo_n "checking if the realpath function allows a NULL argument... " >&6; }
62657if test "${samba_cv_REALPATH_TAKES_NULL+set}" = set; then
62658  $as_echo_n "(cached) " >&6
62659else
62660
62661if test "$cross_compiling" = yes; then
62662  samba_cv_REALPATH_TAKES_NULL=cross
62663else
62664  cat >conftest.$ac_ext <<_ACEOF
62665/* confdefs.h.  */
62666_ACEOF
62667cat confdefs.h >>conftest.$ac_ext
62668cat >>conftest.$ac_ext <<_ACEOF
62669/* end confdefs.h.  */
62670
62671#include <stdio.h>
62672#include <limits.h>
62673#include <signal.h>
62674
62675void exit_on_core(int ignored) {
62676	exit(1);
62677}
62678
62679main() {
62680	char *newpath;
62681	signal(SIGSEGV, exit_on_core);
62682	newpath = realpath("/tmp", NULL);
62683	exit((newpath != NULL) ? 0 : 1);
62684}
62685
62686_ACEOF
62687rm -f conftest$ac_exeext
62688if { (ac_try="$ac_link"
62689case "(($ac_try" in
62690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62691  *) ac_try_echo=$ac_try;;
62692esac
62693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62694$as_echo "$ac_try_echo") >&5
62695  (eval "$ac_link") 2>&5
62696  ac_status=$?
62697  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62698  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62699  { (case "(($ac_try" in
62700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62701  *) ac_try_echo=$ac_try;;
62702esac
62703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62704$as_echo "$ac_try_echo") >&5
62705  (eval "$ac_try") 2>&5
62706  ac_status=$?
62707  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62708  (exit $ac_status); }; }; then
62709  samba_cv_REALPATH_TAKES_NULL=yes
62710else
62711  $as_echo "$as_me: program exited with status $ac_status" >&5
62712$as_echo "$as_me: failed program was:" >&5
62713sed 's/^/| /' conftest.$ac_ext >&5
62714
62715( exit $ac_status )
62716samba_cv_REALPATH_TAKES_NULL=no
62717fi
62718rm -rf conftest.dSYM
62719rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62720fi
62721
62722
62723fi
62724{ $as_echo "$as_me:$LINENO: result: $samba_cv_REALPATH_TAKES_NULL" >&5
62725$as_echo "$samba_cv_REALPATH_TAKES_NULL" >&6; }
62726if test x"$samba_cv_REALPATH_TAKES_NULL" = x"yes"; then
62727
62728cat >>confdefs.h <<\_ACEOF
62729#define REALPATH_TAKES_NULL 1
62730_ACEOF
62731
62732fi
62733
62734#################################################
62735# check for AFS clear-text auth support
62736samba_cv_WITH_AFS=no
62737{ $as_echo "$as_me:$LINENO: checking whether to use AFS clear-text auth" >&5
62738$as_echo_n "checking whether to use AFS clear-text auth... " >&6; }
62739
62740# Check whether --with-afs was given.
62741if test "${with_afs+set}" = set; then
62742  withval=$with_afs;  case "$withval" in
62743  yes|auto)
62744    { $as_echo "$as_me:$LINENO: result: $withval" >&5
62745$as_echo "$withval" >&6; }
62746    samba_cv_WITH_AFS=$withval
62747    ;;
62748  *)
62749    { $as_echo "$as_me:$LINENO: result: no" >&5
62750$as_echo "no" >&6; }
62751    ;;
62752  esac
62753else
62754  { $as_echo "$as_me:$LINENO: result: no" >&5
62755$as_echo "no" >&6; }
62756
62757fi
62758
62759
62760####################################################
62761# check for Linux-specific AFS fake-kaserver support
62762samba_cv_WITH_FAKE_KASERVER=no
62763{ $as_echo "$as_me:$LINENO: checking whether to use AFS fake-kaserver" >&5
62764$as_echo_n "checking whether to use AFS fake-kaserver... " >&6; }
62765
62766# Check whether --with-fake-kaserver was given.
62767if test "${with_fake_kaserver+set}" = set; then
62768  withval=$with_fake_kaserver;  case "$withval" in
62769  yes|auto)
62770    { $as_echo "$as_me:$LINENO: result: $withval" >&5
62771$as_echo "$withval" >&6; }
62772    samba_cv_WITH_FAKE_KASERVER=$withval
62773    ;;
62774  *)
62775    { $as_echo "$as_me:$LINENO: result: no" >&5
62776$as_echo "no" >&6; }
62777    ;;
62778  esac
62779else
62780  { $as_echo "$as_me:$LINENO: result: no" >&5
62781$as_echo "no" >&6; }
62782
62783fi
62784
62785
62786#################################################
62787# decide whether we can support WITH_AFS and / or WITH_FAKE_KASERVER
62788if test x"$samba_cv_WITH_AFS" != x"no" ||
62789   test x"$samba_cv_WITH_FAKE_KASERVER" != x"no"; then
62790
62791    # see if this box has the OpenSSL DES libraries
62792    { $as_echo "$as_me:$LINENO: checking for DES_pcbc_encrypt in -lcrypto" >&5
62793$as_echo_n "checking for DES_pcbc_encrypt in -lcrypto... " >&6; }
62794if test "${ac_cv_lib_crypto_DES_pcbc_encrypt+set}" = set; then
62795  $as_echo_n "(cached) " >&6
62796else
62797  ac_check_lib_save_LIBS=$LIBS
62798LIBS="-lcrypto  $LIBS"
62799cat >conftest.$ac_ext <<_ACEOF
62800/* confdefs.h.  */
62801_ACEOF
62802cat confdefs.h >>conftest.$ac_ext
62803cat >>conftest.$ac_ext <<_ACEOF
62804/* end confdefs.h.  */
62805
62806/* Override any GCC internal prototype to avoid an error.
62807   Use char because int might match the return type of a GCC
62808   builtin and then its argument prototype would still apply.  */
62809#ifdef __cplusplus
62810extern "C"
62811#endif
62812char DES_pcbc_encrypt ();
62813int
62814main ()
62815{
62816return DES_pcbc_encrypt ();
62817  ;
62818  return 0;
62819}
62820_ACEOF
62821rm -f conftest.$ac_objext conftest$ac_exeext
62822if { (ac_try="$ac_link"
62823case "(($ac_try" in
62824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62825  *) ac_try_echo=$ac_try;;
62826esac
62827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62828$as_echo "$ac_try_echo") >&5
62829  (eval "$ac_link") 2>conftest.er1
62830  ac_status=$?
62831  grep -v '^ *+' conftest.er1 >conftest.err
62832  rm -f conftest.er1
62833  cat conftest.err >&5
62834  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62835  (exit $ac_status); } && {
62836	 test -z "$ac_c_werror_flag" ||
62837	 test ! -s conftest.err
62838       } && test -s conftest$ac_exeext && {
62839	 test "$cross_compiling" = yes ||
62840	 $as_test_x conftest$ac_exeext
62841       }; then
62842  ac_cv_lib_crypto_DES_pcbc_encrypt=yes
62843else
62844  $as_echo "$as_me: failed program was:" >&5
62845sed 's/^/| /' conftest.$ac_ext >&5
62846
62847	ac_cv_lib_crypto_DES_pcbc_encrypt=no
62848fi
62849
62850rm -rf conftest.dSYM
62851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62852      conftest$ac_exeext conftest.$ac_ext
62853LIBS=$ac_check_lib_save_LIBS
62854fi
62855{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_pcbc_encrypt" >&5
62856$as_echo "$ac_cv_lib_crypto_DES_pcbc_encrypt" >&6; }
62857if test "x$ac_cv_lib_crypto_DES_pcbc_encrypt" = x""yes; then
62858  LIBS="$LIBS -lcrypto"
62859else
62860  { { $as_echo "$as_me:$LINENO: error: OpenSSL library: libcrypto ot found!" >&5
62861$as_echo "$as_me: error: OpenSSL library: libcrypto ot found!" >&2;}
62862   { (exit 1); exit 1; }; }
62863fi
62864
62865
62866    # see if this box has the afs-headers in /usr/include/afs
62867    { $as_echo "$as_me:$LINENO: checking for /usr/include/afs" >&5
62868$as_echo_n "checking for /usr/include/afs... " >&6; }
62869    if test -d /usr/include/afs; then
62870          { $as_echo "$as_me:$LINENO: result: yes" >&5
62871$as_echo "yes" >&6; }
62872    else
62873      { $as_echo "$as_me:$LINENO: result: no" >&5
62874$as_echo "no" >&6; }
62875    fi
62876
62877    # check for afs.h
62878    have_afs_headers=no
62879
62880
62881for ac_header in afs.h afs/afs.h
62882do
62883as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
62884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62885  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
62886$as_echo_n "checking for $ac_header... " >&6; }
62887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
62888  $as_echo_n "(cached) " >&6
62889fi
62890ac_res=`eval 'as_val=${'$as_ac_Header'}
62891		 $as_echo "$as_val"'`
62892	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62893$as_echo "$ac_res" >&6; }
62894else
62895  # Is the header compilable?
62896{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
62897$as_echo_n "checking $ac_header usability... " >&6; }
62898cat >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$ac_includes_default
62905#include <$ac_header>
62906_ACEOF
62907rm -f conftest.$ac_objext
62908if { (ac_try="$ac_compile"
62909case "(($ac_try" in
62910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62911  *) ac_try_echo=$ac_try;;
62912esac
62913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62914$as_echo "$ac_try_echo") >&5
62915  (eval "$ac_compile") 2>conftest.er1
62916  ac_status=$?
62917  grep -v '^ *+' conftest.er1 >conftest.err
62918  rm -f conftest.er1
62919  cat conftest.err >&5
62920  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62921  (exit $ac_status); } && {
62922	 test -z "$ac_c_werror_flag" ||
62923	 test ! -s conftest.err
62924       } && test -s conftest.$ac_objext; then
62925  ac_header_compiler=yes
62926else
62927  $as_echo "$as_me: failed program was:" >&5
62928sed 's/^/| /' conftest.$ac_ext >&5
62929
62930	ac_header_compiler=no
62931fi
62932
62933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62934{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62935$as_echo "$ac_header_compiler" >&6; }
62936
62937# Is the header present?
62938{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
62939$as_echo_n "checking $ac_header presence... " >&6; }
62940cat >conftest.$ac_ext <<_ACEOF
62941/* confdefs.h.  */
62942_ACEOF
62943cat confdefs.h >>conftest.$ac_ext
62944cat >>conftest.$ac_ext <<_ACEOF
62945/* end confdefs.h.  */
62946#include <$ac_header>
62947_ACEOF
62948if { (ac_try="$ac_cpp conftest.$ac_ext"
62949case "(($ac_try" in
62950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62951  *) ac_try_echo=$ac_try;;
62952esac
62953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62954$as_echo "$ac_try_echo") >&5
62955  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
62956  ac_status=$?
62957  grep -v '^ *+' conftest.er1 >conftest.err
62958  rm -f conftest.er1
62959  cat conftest.err >&5
62960  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62961  (exit $ac_status); } >/dev/null && {
62962	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
62963	 test ! -s conftest.err
62964       }; then
62965  ac_header_preproc=yes
62966else
62967  $as_echo "$as_me: failed program was:" >&5
62968sed 's/^/| /' conftest.$ac_ext >&5
62969
62970  ac_header_preproc=no
62971fi
62972
62973rm -f conftest.err conftest.$ac_ext
62974{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62975$as_echo "$ac_header_preproc" >&6; }
62976
62977# So?  What about this header?
62978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62979  yes:no: )
62980    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
62981$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
62982    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
62983$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
62984    ac_header_preproc=yes
62985    ;;
62986  no:yes:* )
62987    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
62988$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
62989    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
62990$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
62991    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
62992$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
62993    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
62994$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
62995    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
62996$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
62997    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
62998$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
62999    ( cat <<\_ASBOX
63000## ---------------------------------------- ##
63001## Report this to samba-technical@samba.org ##
63002## ---------------------------------------- ##
63003_ASBOX
63004     ) | sed "s/^/$as_me: WARNING:     /" >&2
63005    ;;
63006esac
63007{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
63008$as_echo_n "checking for $ac_header... " >&6; }
63009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63010  $as_echo_n "(cached) " >&6
63011else
63012  eval "$as_ac_Header=\$ac_header_preproc"
63013fi
63014ac_res=`eval 'as_val=${'$as_ac_Header'}
63015		 $as_echo "$as_val"'`
63016	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63017$as_echo "$ac_res" >&6; }
63018
63019fi
63020as_val=`eval 'as_val=${'$as_ac_Header'}
63021		 $as_echo "$as_val"'`
63022   if test "x$as_val" = x""yes; then
63023  cat >>confdefs.h <<_ACEOF
63024#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
63025_ACEOF
63026
63027fi
63028
63029done
63030
63031    if test x"$ac_cv_header_afs_h" = x"no" && test x"$ac_cv_header_afs_afs_h" = x"no"; then
63032    	if test x"$samba_cv_WITH_FAKE_KASERVER" = x"auto" ||
63033	   test x"$samba_cv_WITH_AFS" = x"auto"; then
63034	    	{ $as_echo "$as_me:$LINENO: WARNING: AFS cannot be supported without afs.h" >&5
63035$as_echo "$as_me: WARNING: AFS cannot be supported without afs.h" >&2;}
63036	else
63037	    	{ { $as_echo "$as_me:$LINENO: error: AFS cannot be supported without afs.h" >&5
63038$as_echo "$as_me: error: AFS cannot be supported without afs.h" >&2;}
63039   { (exit 1); exit 1; }; }
63040	fi
63041    else
63042    	have_afs_headers=yes
63043    fi
63044fi
63045
63046FAKE_KASERVER_OBJ=""
63047if test x"$samba_cv_WITH_FAKE_KASERVER" != x"no" && test x"$have_afs_headers" = x"yes"; then
63048
63049cat >>confdefs.h <<\_ACEOF
63050#define WITH_FAKE_KASERVER 1
63051_ACEOF
63052
63053    FAKE_KASERVER_OBJ="utils/net_afs.o"
63054fi
63055
63056
63057#################################################
63058# check whether to compile AFS/NT ACL mapping module
63059samba_cv_WITH_VFS_AFSACL=no
63060{ $as_echo "$as_me:$LINENO: checking whether to use AFS ACL mapping module" >&5
63061$as_echo_n "checking whether to use AFS ACL mapping module... " >&6; }
63062
63063# Check whether --with-vfs-afsacl was given.
63064if test "${with_vfs_afsacl+set}" = set; then
63065  withval=$with_vfs_afsacl;  case "$withval" in
63066  yes|auto)
63067    { $as_echo "$as_me:$LINENO: result: $withval" >&5
63068$as_echo "$withval" >&6; }
63069    samba_cv_WITH_VFS_AFSACL=yes
63070    ;;
63071  *)
63072    { $as_echo "$as_me:$LINENO: result: no" >&5
63073$as_echo "no" >&6; }
63074    ;;
63075  esac
63076else
63077  { $as_echo "$as_me:$LINENO: result: no" >&5
63078$as_echo "no" >&6; }
63079
63080fi
63081
63082
63083if test x"$samba_cv_WITH_VFS_AFSACL" = x"yes"; then
63084   default_shared_modules="$default_shared_modules vfs_afsacl"
63085fi
63086
63087if test x"$samba_cv_WITH_AFS" != x"no" && test x"$have_afs_headers" = x"yes"; then
63088
63089cat >>confdefs.h <<\_ACEOF
63090#define WITH_AFS 1
63091_ACEOF
63092
63093fi
63094
63095#################################################
63096# check for the DFS clear-text auth system
63097{ $as_echo "$as_me:$LINENO: checking whether to use DFS clear-text auth" >&5
63098$as_echo_n "checking whether to use DFS clear-text auth... " >&6; }
63099
63100# Check whether --with-dfs was given.
63101if test "${with_dfs+set}" = set; then
63102  withval=$with_dfs;  case "$withval" in
63103  yes)
63104    { $as_echo "$as_me:$LINENO: result: yes" >&5
63105$as_echo "yes" >&6; }
63106
63107cat >>confdefs.h <<\_ACEOF
63108#define WITH_DFS 1
63109_ACEOF
63110
63111    ;;
63112  *)
63113    { $as_echo "$as_me:$LINENO: result: no" >&5
63114$as_echo "no" >&6; }
63115    ;;
63116  esac
63117else
63118  { $as_echo "$as_me:$LINENO: result: no" >&5
63119$as_echo "no" >&6; }
63120
63121fi
63122
63123
63124########################################################
63125# Compile with LDAP support?
63126
63127with_ldap_support=auto
63128{ $as_echo "$as_me:$LINENO: checking for LDAP support" >&5
63129$as_echo_n "checking for LDAP support... " >&6; }
63130
63131
63132# Check whether --with-ldap was given.
63133if test "${with_ldap+set}" = set; then
63134  withval=$with_ldap;  case "$withval" in
63135    yes|no)
63136	with_ldap_support=$withval
63137	;;
63138  esac
63139fi
63140
63141
63142{ $as_echo "$as_me:$LINENO: result: $with_ldap_support" >&5
63143$as_echo "$with_ldap_support" >&6; }
63144
63145SMBLDAP=""
63146
63147SMBLDAPUTIL=""
63148
63149LDBLDAP=""
63150
63151
63152if test x"$with_ldap_support" != x"no"; then
63153
63154  ##################################################################
63155  # first test for ldap.h and lber.h
63156  # (ldap.h is required for this test)
63157
63158
63159for ac_header in ldap.h lber.h
63160do
63161as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
63162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63163  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
63164$as_echo_n "checking for $ac_header... " >&6; }
63165if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63166  $as_echo_n "(cached) " >&6
63167fi
63168ac_res=`eval 'as_val=${'$as_ac_Header'}
63169		 $as_echo "$as_val"'`
63170	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63171$as_echo "$ac_res" >&6; }
63172else
63173  # Is the header compilable?
63174{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
63175$as_echo_n "checking $ac_header usability... " >&6; }
63176cat >conftest.$ac_ext <<_ACEOF
63177/* confdefs.h.  */
63178_ACEOF
63179cat confdefs.h >>conftest.$ac_ext
63180cat >>conftest.$ac_ext <<_ACEOF
63181/* end confdefs.h.  */
63182$ac_includes_default
63183#include <$ac_header>
63184_ACEOF
63185rm -f conftest.$ac_objext
63186if { (ac_try="$ac_compile"
63187case "(($ac_try" in
63188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63189  *) ac_try_echo=$ac_try;;
63190esac
63191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63192$as_echo "$ac_try_echo") >&5
63193  (eval "$ac_compile") 2>conftest.er1
63194  ac_status=$?
63195  grep -v '^ *+' conftest.er1 >conftest.err
63196  rm -f conftest.er1
63197  cat conftest.err >&5
63198  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63199  (exit $ac_status); } && {
63200	 test -z "$ac_c_werror_flag" ||
63201	 test ! -s conftest.err
63202       } && test -s conftest.$ac_objext; then
63203  ac_header_compiler=yes
63204else
63205  $as_echo "$as_me: failed program was:" >&5
63206sed 's/^/| /' conftest.$ac_ext >&5
63207
63208	ac_header_compiler=no
63209fi
63210
63211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63212{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63213$as_echo "$ac_header_compiler" >&6; }
63214
63215# Is the header present?
63216{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
63217$as_echo_n "checking $ac_header presence... " >&6; }
63218cat >conftest.$ac_ext <<_ACEOF
63219/* confdefs.h.  */
63220_ACEOF
63221cat confdefs.h >>conftest.$ac_ext
63222cat >>conftest.$ac_ext <<_ACEOF
63223/* end confdefs.h.  */
63224#include <$ac_header>
63225_ACEOF
63226if { (ac_try="$ac_cpp conftest.$ac_ext"
63227case "(($ac_try" in
63228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63229  *) ac_try_echo=$ac_try;;
63230esac
63231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63232$as_echo "$ac_try_echo") >&5
63233  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
63234  ac_status=$?
63235  grep -v '^ *+' conftest.er1 >conftest.err
63236  rm -f conftest.er1
63237  cat conftest.err >&5
63238  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63239  (exit $ac_status); } >/dev/null && {
63240	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
63241	 test ! -s conftest.err
63242       }; then
63243  ac_header_preproc=yes
63244else
63245  $as_echo "$as_me: failed program was:" >&5
63246sed 's/^/| /' conftest.$ac_ext >&5
63247
63248  ac_header_preproc=no
63249fi
63250
63251rm -f conftest.err conftest.$ac_ext
63252{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63253$as_echo "$ac_header_preproc" >&6; }
63254
63255# So?  What about this header?
63256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63257  yes:no: )
63258    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
63259$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
63260    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
63261$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
63262    ac_header_preproc=yes
63263    ;;
63264  no:yes:* )
63265    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
63266$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
63267    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
63268$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
63269    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
63270$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
63271    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
63272$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
63273    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
63274$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63275    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
63276$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
63277    ( cat <<\_ASBOX
63278## ---------------------------------------- ##
63279## Report this to samba-technical@samba.org ##
63280## ---------------------------------------- ##
63281_ASBOX
63282     ) | sed "s/^/$as_me: WARNING:     /" >&2
63283    ;;
63284esac
63285{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
63286$as_echo_n "checking for $ac_header... " >&6; }
63287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63288  $as_echo_n "(cached) " >&6
63289else
63290  eval "$as_ac_Header=\$ac_header_preproc"
63291fi
63292ac_res=`eval 'as_val=${'$as_ac_Header'}
63293		 $as_echo "$as_val"'`
63294	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63295$as_echo "$ac_res" >&6; }
63296
63297fi
63298as_val=`eval 'as_val=${'$as_ac_Header'}
63299		 $as_echo "$as_val"'`
63300   if test "x$as_val" = x""yes; then
63301  cat >>confdefs.h <<_ACEOF
63302#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
63303_ACEOF
63304
63305fi
63306
63307done
63308
63309
63310  if test x"$ac_cv_header_ldap_h" != x"yes"; then
63311	if test x"$with_ldap_support" = x"yes"; then
63312	 { { $as_echo "$as_me:$LINENO: error: ldap.h is needed for LDAP support" >&5
63313$as_echo "$as_me: error: ldap.h is needed for LDAP support" >&2;}
63314   { (exit 1); exit 1; }; }
63315	else
63316	 { $as_echo "$as_me:$LINENO: WARNING: ldap.h is needed for LDAP support" >&5
63317$as_echo "$as_me: WARNING: ldap.h is needed for LDAP support" >&2;}
63318	fi
63319
63320	with_ldap_support=no
63321  fi
63322
63323  ##################################################################
63324  # HP/UX does not have ber_tag_t in lber.h - it must be configured as
63325  # unsigned int in include/includes.h
63326  case $host_os in
63327	*hpux*)
63328	 { $as_echo "$as_me:$LINENO: WARNING: ber_tag_t is needed for LDAP support" >&5
63329$as_echo "$as_me: WARNING: ber_tag_t is needed for LDAP support" >&2;}
63330	 { $as_echo "$as_me:$LINENO: WARNING: ber_tag_t must be configured in includes.h for hpux" >&5
63331$as_echo "$as_me: WARNING: ber_tag_t must be configured in includes.h for hpux" >&2;}
63332	with_ldap_support=yes
63333  	;;
63334	*)
63335  	{ $as_echo "$as_me:$LINENO: checking for ber_tag_t" >&5
63336$as_echo_n "checking for ber_tag_t... " >&6; }
63337if test "${ac_cv_type_ber_tag_t+set}" = set; then
63338  $as_echo_n "(cached) " >&6
63339else
63340  ac_cv_type_ber_tag_t=no
63341cat >conftest.$ac_ext <<_ACEOF
63342/* confdefs.h.  */
63343_ACEOF
63344cat confdefs.h >>conftest.$ac_ext
63345cat >>conftest.$ac_ext <<_ACEOF
63346/* end confdefs.h.  */
63347#include <lber.h>
63348
63349int
63350main ()
63351{
63352if (sizeof (ber_tag_t))
63353       return 0;
63354  ;
63355  return 0;
63356}
63357_ACEOF
63358rm -f conftest.$ac_objext
63359if { (ac_try="$ac_compile"
63360case "(($ac_try" in
63361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63362  *) ac_try_echo=$ac_try;;
63363esac
63364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63365$as_echo "$ac_try_echo") >&5
63366  (eval "$ac_compile") 2>conftest.er1
63367  ac_status=$?
63368  grep -v '^ *+' conftest.er1 >conftest.err
63369  rm -f conftest.er1
63370  cat conftest.err >&5
63371  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63372  (exit $ac_status); } && {
63373	 test -z "$ac_c_werror_flag" ||
63374	 test ! -s conftest.err
63375       } && test -s conftest.$ac_objext; then
63376  cat >conftest.$ac_ext <<_ACEOF
63377/* confdefs.h.  */
63378_ACEOF
63379cat confdefs.h >>conftest.$ac_ext
63380cat >>conftest.$ac_ext <<_ACEOF
63381/* end confdefs.h.  */
63382#include <lber.h>
63383
63384int
63385main ()
63386{
63387if (sizeof ((ber_tag_t)))
63388	  return 0;
63389  ;
63390  return 0;
63391}
63392_ACEOF
63393rm -f conftest.$ac_objext
63394if { (ac_try="$ac_compile"
63395case "(($ac_try" in
63396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63397  *) ac_try_echo=$ac_try;;
63398esac
63399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63400$as_echo "$ac_try_echo") >&5
63401  (eval "$ac_compile") 2>conftest.er1
63402  ac_status=$?
63403  grep -v '^ *+' conftest.er1 >conftest.err
63404  rm -f conftest.er1
63405  cat conftest.err >&5
63406  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63407  (exit $ac_status); } && {
63408	 test -z "$ac_c_werror_flag" ||
63409	 test ! -s conftest.err
63410       } && test -s conftest.$ac_objext; then
63411  :
63412else
63413  $as_echo "$as_me: failed program was:" >&5
63414sed 's/^/| /' conftest.$ac_ext >&5
63415
63416	ac_cv_type_ber_tag_t=yes
63417fi
63418
63419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63420else
63421  $as_echo "$as_me: failed program was:" >&5
63422sed 's/^/| /' conftest.$ac_ext >&5
63423
63424
63425fi
63426
63427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63428fi
63429{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ber_tag_t" >&5
63430$as_echo "$ac_cv_type_ber_tag_t" >&6; }
63431
63432  	if test x"$ac_cv_type_ber_tag_t" != x"yes"; then
63433		if test x"$with_ldap_support" = x"yes"; then
63434	 	{ { $as_echo "$as_me:$LINENO: error: ber_tag_t is needed for LDAP support" >&5
63435$as_echo "$as_me: error: ber_tag_t is needed for LDAP support" >&2;}
63436   { (exit 1); exit 1; }; }
63437		else
63438	 	{ $as_echo "$as_me:$LINENO: WARNING: ber_tag_t is needed for LDAP support" >&5
63439$as_echo "$as_me: WARNING: ber_tag_t is needed for LDAP support" >&2;}
63440		fi
63441		with_ldap_support=no
63442  	fi
63443  	;;
63444  esac
63445fi
63446
63447if test x"$with_ldap_support" != x"no"; then
63448  ac_save_LIBS=$LIBS
63449
63450  ##################################################################
63451  # we might need the lber lib on some systems. To avoid link errors
63452  # this test must be before the libldap test
63453
63454
63455
63456ac_check_lib_ext_save_LIBS=$LIBS
63457LIBS="-llber $LDAP_LIBS  $LIBS"
63458
63459
63460
63461
63462        { $as_echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
63463$as_echo_n "checking for ber_scanf in -llber... " >&6; }
63464if test "${ac_cv_lib_ext_lber_ber_scanf+set}" = set; then
63465  $as_echo_n "(cached) " >&6
63466else
63467  cat >conftest.$ac_ext <<_ACEOF
63468/* confdefs.h.  */
63469_ACEOF
63470cat confdefs.h >>conftest.$ac_ext
63471cat >>conftest.$ac_ext <<_ACEOF
63472/* end confdefs.h.  */
63473
63474/* Override any GCC internal prototype to avoid an error.
63475   Use char because int might match the return type of a GCC
63476   builtin and then its argument prototype would still apply.  */
63477#ifdef __cplusplus
63478extern "C"
63479#endif
63480char ber_scanf ();
63481int
63482main ()
63483{
63484return ber_scanf ();
63485  ;
63486  return 0;
63487}
63488_ACEOF
63489rm -f conftest.$ac_objext conftest$ac_exeext
63490if { (ac_try="$ac_link"
63491case "(($ac_try" in
63492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63493  *) ac_try_echo=$ac_try;;
63494esac
63495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63496$as_echo "$ac_try_echo") >&5
63497  (eval "$ac_link") 2>conftest.er1
63498  ac_status=$?
63499  grep -v '^ *+' conftest.er1 >conftest.err
63500  rm -f conftest.er1
63501  cat conftest.err >&5
63502  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63503  (exit $ac_status); } && {
63504	 test -z "$ac_c_werror_flag" ||
63505	 test ! -s conftest.err
63506       } && test -s conftest$ac_exeext && {
63507	 test "$cross_compiling" = yes ||
63508	 $as_test_x conftest$ac_exeext
63509       }; then
63510  ac_cv_lib_ext_lber_ber_scanf=yes;
63511		  ac_cv_lib_ext_lber=yes
63512else
63513  $as_echo "$as_me: failed program was:" >&5
63514sed 's/^/| /' conftest.$ac_ext >&5
63515
63516	ac_cv_lib_ext_lber_ber_scanf=no;
63517		  ac_cv_lib_ext_lber=no
63518fi
63519
63520rm -rf conftest.dSYM
63521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63522      conftest$ac_exeext conftest.$ac_ext
63523
63524fi
63525{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_lber_ber_scanf" >&5
63526$as_echo "$ac_cv_lib_ext_lber_ber_scanf" >&6; }
63527    if test $ac_cv_lib_ext_lber_ber_scanf = yes; then
63528  cat >>confdefs.h <<_ACEOF
63529#define HAVE_BER_SCANF 1
63530_ACEOF
63531
63532fi
63533
63534LIBS=$ac_check_lib_ext_save_LIBS
63535
63536if test $ac_cv_lib_ext_lber = yes; then
63537  cat >>confdefs.h <<_ACEOF
63538#define HAVE_LIBLBER 1
63539_ACEOF
63540
63541		case "$LDAP_LIBS" in
63542		    *-llber*)
63543			;;
63544		    *)
63545			LDAP_LIBS="-llber $LDAP_LIBS"
63546			;;
63547		esac
63548
63549
63550fi
63551
63552
63553  ########################################################
63554  # If ber_sockbuf_add_io() is available we can add
63555  # SASL wrapping hooks
63556
63557
63558
63559    ac_check_func_ext_save_LIBS=$LIBS
63560    LIBS="$LDAP_LIBS $LIBS"
63561        { $as_echo "$as_me:$LINENO: checking for ber_sockbuf_add_io" >&5
63562$as_echo_n "checking for ber_sockbuf_add_io... " >&6; }
63563if test "${ac_cv_func_ext_ber_sockbuf_add_io+set}" = set; then
63564  $as_echo_n "(cached) " >&6
63565else
63566  cat >conftest.$ac_ext <<_ACEOF
63567/* confdefs.h.  */
63568_ACEOF
63569cat confdefs.h >>conftest.$ac_ext
63570cat >>conftest.$ac_ext <<_ACEOF
63571/* end confdefs.h.  */
63572/* Define ber_sockbuf_add_io to an innocuous variant, in case <limits.h> declares ber_sockbuf_add_io.
63573   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63574#define ber_sockbuf_add_io innocuous_ber_sockbuf_add_io
63575
63576/* System header to define __stub macros and hopefully few prototypes,
63577    which can conflict with char ber_sockbuf_add_io (); below.
63578    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63579    <limits.h> exists even on freestanding compilers.  */
63580
63581#ifdef __STDC__
63582# include <limits.h>
63583#else
63584# include <assert.h>
63585#endif
63586
63587#undef ber_sockbuf_add_io
63588
63589/* Override any GCC internal prototype to avoid an error.
63590   Use char because int might match the return type of a GCC
63591   builtin and then its argument prototype would still apply.  */
63592#ifdef __cplusplus
63593extern "C"
63594#endif
63595char ber_sockbuf_add_io ();
63596/* The GNU C library defines this for functions which it implements
63597    to always fail with ENOSYS.  Some functions are actually named
63598    something starting with __ and the normal name is an alias.  */
63599#if defined __stub_ber_sockbuf_add_io || defined __stub___ber_sockbuf_add_io
63600choke me
63601#endif
63602
63603int
63604main ()
63605{
63606return ber_sockbuf_add_io ();
63607  ;
63608  return 0;
63609}
63610_ACEOF
63611rm -f conftest.$ac_objext conftest$ac_exeext
63612if { (ac_try="$ac_link"
63613case "(($ac_try" in
63614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63615  *) ac_try_echo=$ac_try;;
63616esac
63617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63618$as_echo "$ac_try_echo") >&5
63619  (eval "$ac_link") 2>conftest.er1
63620  ac_status=$?
63621  grep -v '^ *+' conftest.er1 >conftest.err
63622  rm -f conftest.er1
63623  cat conftest.err >&5
63624  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63625  (exit $ac_status); } && {
63626	 test -z "$ac_c_werror_flag" ||
63627	 test ! -s conftest.err
63628       } && test -s conftest$ac_exeext && {
63629	 test "$cross_compiling" = yes ||
63630	 $as_test_x conftest$ac_exeext
63631       }; then
63632  ac_cv_func_ext_ber_sockbuf_add_io=yes
63633else
63634  $as_echo "$as_me: failed program was:" >&5
63635sed 's/^/| /' conftest.$ac_ext >&5
63636
63637	ac_cv_func_ext_ber_sockbuf_add_io=no
63638fi
63639
63640rm -rf conftest.dSYM
63641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63642      conftest$ac_exeext conftest.$ac_ext
63643fi
63644{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_ber_sockbuf_add_io" >&5
63645$as_echo "$ac_cv_func_ext_ber_sockbuf_add_io" >&6; }
63646    LIBS=$ac_check_func_ext_save_LIBS
63647    if test $ac_cv_func_ext_ber_sockbuf_add_io = yes; then
63648  cat >>confdefs.h <<_ACEOF
63649#define HAVE_BER_SOCKBUF_ADD_IO 1
63650_ACEOF
63651
63652fi
63653
63654
63655  { $as_echo "$as_me:$LINENO: checking for LDAP_OPT_SOCKBUF" >&5
63656$as_echo_n "checking for LDAP_OPT_SOCKBUF... " >&6; }
63657if test "${samba_cv_HAVE_LDAP_OPT_SOCKBUF+set}" = set; then
63658  $as_echo_n "(cached) " >&6
63659else
63660
63661		 cat >conftest.$ac_ext <<_ACEOF
63662/* confdefs.h.  */
63663_ACEOF
63664cat confdefs.h >>conftest.$ac_ext
63665cat >>conftest.$ac_ext <<_ACEOF
63666/* end confdefs.h.  */
63667#include <ldap.h>
63668int
63669main ()
63670{
63671int val = LDAP_OPT_SOCKBUF;
63672  ;
63673  return 0;
63674}
63675_ACEOF
63676rm -f conftest.$ac_objext
63677if { (ac_try="$ac_compile"
63678case "(($ac_try" in
63679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63680  *) ac_try_echo=$ac_try;;
63681esac
63682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63683$as_echo "$ac_try_echo") >&5
63684  (eval "$ac_compile") 2>conftest.er1
63685  ac_status=$?
63686  grep -v '^ *+' conftest.er1 >conftest.err
63687  rm -f conftest.er1
63688  cat conftest.err >&5
63689  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63690  (exit $ac_status); } && {
63691	 test -z "$ac_c_werror_flag" ||
63692	 test ! -s conftest.err
63693       } && test -s conftest.$ac_objext; then
63694  samba_cv_HAVE_LDAP_OPT_SOCKBUF=yes
63695else
63696  $as_echo "$as_me: failed program was:" >&5
63697sed 's/^/| /' conftest.$ac_ext >&5
63698
63699	samba_cv_HAVE_LDAP_OPT_SOCKBUF=no
63700fi
63701
63702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63703fi
63704{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_LDAP_OPT_SOCKBUF" >&5
63705$as_echo "$samba_cv_HAVE_LDAP_OPT_SOCKBUF" >&6; }
63706
63707  if test x"$ac_cv_func_ext_ber_sockbuf_add_io" = x"yes" -a \
63708  	  x"$samba_cv_HAVE_LDAP_OPT_SOCKBUF" = x"yes"; then
63709
63710cat >>confdefs.h <<\_ACEOF
63711#define HAVE_LDAP_SASL_WRAPPING 1
63712_ACEOF
63713
63714  fi
63715
63716  #######################################################
63717  # if we have LBER_OPT_LOG_PRINT_FN, we can intercept
63718  # ldap logging and print it out in the samba logs
63719  { $as_echo "$as_me:$LINENO: checking for LBER_OPT_LOG_PRINT_FN" >&5
63720$as_echo_n "checking for LBER_OPT_LOG_PRINT_FN... " >&6; }
63721if test "${samba_cv_HAVE_LBER_OPT_LOG_PRINT_FN+set}" = set; then
63722  $as_echo_n "(cached) " >&6
63723else
63724  cat >conftest.$ac_ext <<_ACEOF
63725/* confdefs.h.  */
63726_ACEOF
63727cat confdefs.h >>conftest.$ac_ext
63728cat >>conftest.$ac_ext <<_ACEOF
63729/* end confdefs.h.  */
63730#include <lber.h>
63731int
63732main ()
63733{
63734int val = LBER_OPT_LOG_PRINT_FN;
63735  ;
63736  return 0;
63737}
63738_ACEOF
63739rm -f conftest.$ac_objext
63740if { (ac_try="$ac_compile"
63741case "(($ac_try" in
63742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63743  *) ac_try_echo=$ac_try;;
63744esac
63745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63746$as_echo "$ac_try_echo") >&5
63747  (eval "$ac_compile") 2>conftest.er1
63748  ac_status=$?
63749  grep -v '^ *+' conftest.er1 >conftest.err
63750  rm -f conftest.er1
63751  cat conftest.err >&5
63752  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63753  (exit $ac_status); } && {
63754	 test -z "$ac_c_werror_flag" ||
63755	 test ! -s conftest.err
63756       } && test -s conftest.$ac_objext; then
63757  samba_cv_HAVE_LBER_OPT_LOG_PRINT_FN=yes
63758else
63759  $as_echo "$as_me: failed program was:" >&5
63760sed 's/^/| /' conftest.$ac_ext >&5
63761
63762	samba_cv_HAVE_LBER_OPT_LOG_PRINT_FN=no
63763fi
63764
63765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63766fi
63767{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_LBER_OPT_LOG_PRINT_FN" >&5
63768$as_echo "$samba_cv_HAVE_LBER_OPT_LOG_PRINT_FN" >&6; }
63769
63770  if test x"$samba_cv_HAVE_LBER_OPT_LOG_PRINT_FN" = x"yes"; then
63771
63772cat >>confdefs.h <<\_ACEOF
63773#define HAVE_LBER_LOG_PRINT_FN 1
63774_ACEOF
63775
63776  fi
63777
63778  ########################################################
63779  # now see if we can find the ldap libs in standard paths
63780
63781
63782
63783ac_check_lib_ext_save_LIBS=$LIBS
63784LIBS="-lldap $LDAP_LIBS  $LIBS"
63785
63786
63787
63788
63789        { $as_echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
63790$as_echo_n "checking for ldap_init in -lldap... " >&6; }
63791if test "${ac_cv_lib_ext_ldap_ldap_init+set}" = set; then
63792  $as_echo_n "(cached) " >&6
63793else
63794  cat >conftest.$ac_ext <<_ACEOF
63795/* confdefs.h.  */
63796_ACEOF
63797cat confdefs.h >>conftest.$ac_ext
63798cat >>conftest.$ac_ext <<_ACEOF
63799/* end confdefs.h.  */
63800
63801/* Override any GCC internal prototype to avoid an error.
63802   Use char because int might match the return type of a GCC
63803   builtin and then its argument prototype would still apply.  */
63804#ifdef __cplusplus
63805extern "C"
63806#endif
63807char ldap_init ();
63808int
63809main ()
63810{
63811return ldap_init ();
63812  ;
63813  return 0;
63814}
63815_ACEOF
63816rm -f conftest.$ac_objext conftest$ac_exeext
63817if { (ac_try="$ac_link"
63818case "(($ac_try" in
63819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63820  *) ac_try_echo=$ac_try;;
63821esac
63822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63823$as_echo "$ac_try_echo") >&5
63824  (eval "$ac_link") 2>conftest.er1
63825  ac_status=$?
63826  grep -v '^ *+' conftest.er1 >conftest.err
63827  rm -f conftest.er1
63828  cat conftest.err >&5
63829  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63830  (exit $ac_status); } && {
63831	 test -z "$ac_c_werror_flag" ||
63832	 test ! -s conftest.err
63833       } && test -s conftest$ac_exeext && {
63834	 test "$cross_compiling" = yes ||
63835	 $as_test_x conftest$ac_exeext
63836       }; then
63837  ac_cv_lib_ext_ldap_ldap_init=yes;
63838		  ac_cv_lib_ext_ldap=yes
63839else
63840  $as_echo "$as_me: failed program was:" >&5
63841sed 's/^/| /' conftest.$ac_ext >&5
63842
63843	ac_cv_lib_ext_ldap_ldap_init=no;
63844		  ac_cv_lib_ext_ldap=no
63845fi
63846
63847rm -rf conftest.dSYM
63848rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63849      conftest$ac_exeext conftest.$ac_ext
63850
63851fi
63852{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_ldap_ldap_init" >&5
63853$as_echo "$ac_cv_lib_ext_ldap_ldap_init" >&6; }
63854    if test $ac_cv_lib_ext_ldap_ldap_init = yes; then
63855  cat >>confdefs.h <<_ACEOF
63856#define HAVE_LDAP_INIT 1
63857_ACEOF
63858
63859fi
63860
63861LIBS=$ac_check_lib_ext_save_LIBS
63862
63863if test $ac_cv_lib_ext_ldap = yes; then
63864  cat >>confdefs.h <<_ACEOF
63865#define HAVE_LIBLDAP 1
63866_ACEOF
63867
63868		case "$LDAP_LIBS" in
63869		    *-lldap*)
63870			;;
63871		    *)
63872			LDAP_LIBS="-lldap $LDAP_LIBS"
63873			;;
63874		esac
63875
63876
63877fi
63878
63879
63880  ########################################################
63881  # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
63882  # Check found in pam_ldap 145.
63883
63884
63885
63886    ac_check_func_ext_save_LIBS=$LIBS
63887    LIBS="$LDAP_LIBS $LIBS"
63888        { $as_echo "$as_me:$LINENO: checking for ldap_set_rebind_proc" >&5
63889$as_echo_n "checking for ldap_set_rebind_proc... " >&6; }
63890if test "${ac_cv_func_ext_ldap_set_rebind_proc+set}" = set; then
63891  $as_echo_n "(cached) " >&6
63892else
63893  cat >conftest.$ac_ext <<_ACEOF
63894/* confdefs.h.  */
63895_ACEOF
63896cat confdefs.h >>conftest.$ac_ext
63897cat >>conftest.$ac_ext <<_ACEOF
63898/* end confdefs.h.  */
63899/* Define ldap_set_rebind_proc to an innocuous variant, in case <limits.h> declares ldap_set_rebind_proc.
63900   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63901#define ldap_set_rebind_proc innocuous_ldap_set_rebind_proc
63902
63903/* System header to define __stub macros and hopefully few prototypes,
63904    which can conflict with char ldap_set_rebind_proc (); below.
63905    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63906    <limits.h> exists even on freestanding compilers.  */
63907
63908#ifdef __STDC__
63909# include <limits.h>
63910#else
63911# include <assert.h>
63912#endif
63913
63914#undef ldap_set_rebind_proc
63915
63916/* Override any GCC internal prototype to avoid an error.
63917   Use char because int might match the return type of a GCC
63918   builtin and then its argument prototype would still apply.  */
63919#ifdef __cplusplus
63920extern "C"
63921#endif
63922char ldap_set_rebind_proc ();
63923/* The GNU C library defines this for functions which it implements
63924    to always fail with ENOSYS.  Some functions are actually named
63925    something starting with __ and the normal name is an alias.  */
63926#if defined __stub_ldap_set_rebind_proc || defined __stub___ldap_set_rebind_proc
63927choke me
63928#endif
63929
63930int
63931main ()
63932{
63933return ldap_set_rebind_proc ();
63934  ;
63935  return 0;
63936}
63937_ACEOF
63938rm -f conftest.$ac_objext conftest$ac_exeext
63939if { (ac_try="$ac_link"
63940case "(($ac_try" in
63941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63942  *) ac_try_echo=$ac_try;;
63943esac
63944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63945$as_echo "$ac_try_echo") >&5
63946  (eval "$ac_link") 2>conftest.er1
63947  ac_status=$?
63948  grep -v '^ *+' conftest.er1 >conftest.err
63949  rm -f conftest.er1
63950  cat conftest.err >&5
63951  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63952  (exit $ac_status); } && {
63953	 test -z "$ac_c_werror_flag" ||
63954	 test ! -s conftest.err
63955       } && test -s conftest$ac_exeext && {
63956	 test "$cross_compiling" = yes ||
63957	 $as_test_x conftest$ac_exeext
63958       }; then
63959  ac_cv_func_ext_ldap_set_rebind_proc=yes
63960else
63961  $as_echo "$as_me: failed program was:" >&5
63962sed 's/^/| /' conftest.$ac_ext >&5
63963
63964	ac_cv_func_ext_ldap_set_rebind_proc=no
63965fi
63966
63967rm -rf conftest.dSYM
63968rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63969      conftest$ac_exeext conftest.$ac_ext
63970fi
63971{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_ldap_set_rebind_proc" >&5
63972$as_echo "$ac_cv_func_ext_ldap_set_rebind_proc" >&6; }
63973    LIBS=$ac_check_func_ext_save_LIBS
63974    if test $ac_cv_func_ext_ldap_set_rebind_proc = yes; then
63975  cat >>confdefs.h <<_ACEOF
63976#define HAVE_LDAP_SET_REBIND_PROC 1
63977_ACEOF
63978
63979fi
63980
63981
63982  LIBS="$LIBS $LDAP_LIBS"
63983  { $as_echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
63984$as_echo_n "checking whether ldap_set_rebind_proc takes 3 arguments... " >&6; }
63985if test "${smb_ldap_cv_ldap_set_rebind_proc+set}" = set; then
63986  $as_echo_n "(cached) " >&6
63987else
63988
63989    cat >conftest.$ac_ext <<_ACEOF
63990/* confdefs.h.  */
63991_ACEOF
63992cat confdefs.h >>conftest.$ac_ext
63993cat >>conftest.$ac_ext <<_ACEOF
63994/* end confdefs.h.  */
63995
63996	#include <lber.h>
63997	#include <ldap.h>
63998int
63999main ()
64000{
64001ldap_set_rebind_proc(0, 0, 0);
64002  ;
64003  return 0;
64004}
64005_ACEOF
64006rm -f conftest.$ac_objext
64007if { (ac_try="$ac_compile"
64008case "(($ac_try" in
64009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64010  *) ac_try_echo=$ac_try;;
64011esac
64012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64013$as_echo "$ac_try_echo") >&5
64014  (eval "$ac_compile") 2>conftest.er1
64015  ac_status=$?
64016  grep -v '^ *+' conftest.er1 >conftest.err
64017  rm -f conftest.er1
64018  cat conftest.err >&5
64019  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64020  (exit $ac_status); } && {
64021	 test -z "$ac_c_werror_flag" ||
64022	 test ! -s conftest.err
64023       } && test -s conftest.$ac_objext; then
64024  smb_ldap_cv_ldap_set_rebind_proc=3
64025else
64026  $as_echo "$as_me: failed program was:" >&5
64027sed 's/^/| /' conftest.$ac_ext >&5
64028
64029	smb_ldap_cv_ldap_set_rebind_proc=2
64030
64031fi
64032
64033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64034
64035fi
64036{ $as_echo "$as_me:$LINENO: result: $smb_ldap_cv_ldap_set_rebind_proc" >&5
64037$as_echo "$smb_ldap_cv_ldap_set_rebind_proc" >&6; }
64038
64039
64040cat >>confdefs.h <<_ACEOF
64041#define LDAP_SET_REBIND_PROC_ARGS $smb_ldap_cv_ldap_set_rebind_proc
64042_ACEOF
64043
64044
64045
64046
64047
64048    ac_check_func_ext_save_LIBS=$LIBS
64049    LIBS="$LDAP_LIBS $LIBS"
64050        { $as_echo "$as_me:$LINENO: checking for ldap_initialize" >&5
64051$as_echo_n "checking for ldap_initialize... " >&6; }
64052if test "${ac_cv_func_ext_ldap_initialize+set}" = set; then
64053  $as_echo_n "(cached) " >&6
64054else
64055  cat >conftest.$ac_ext <<_ACEOF
64056/* confdefs.h.  */
64057_ACEOF
64058cat confdefs.h >>conftest.$ac_ext
64059cat >>conftest.$ac_ext <<_ACEOF
64060/* end confdefs.h.  */
64061/* Define ldap_initialize to an innocuous variant, in case <limits.h> declares ldap_initialize.
64062   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64063#define ldap_initialize innocuous_ldap_initialize
64064
64065/* System header to define __stub macros and hopefully few prototypes,
64066    which can conflict with char ldap_initialize (); below.
64067    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64068    <limits.h> exists even on freestanding compilers.  */
64069
64070#ifdef __STDC__
64071# include <limits.h>
64072#else
64073# include <assert.h>
64074#endif
64075
64076#undef ldap_initialize
64077
64078/* Override any GCC internal prototype to avoid an error.
64079   Use char because int might match the return type of a GCC
64080   builtin and then its argument prototype would still apply.  */
64081#ifdef __cplusplus
64082extern "C"
64083#endif
64084char ldap_initialize ();
64085/* The GNU C library defines this for functions which it implements
64086    to always fail with ENOSYS.  Some functions are actually named
64087    something starting with __ and the normal name is an alias.  */
64088#if defined __stub_ldap_initialize || defined __stub___ldap_initialize
64089choke me
64090#endif
64091
64092int
64093main ()
64094{
64095return ldap_initialize ();
64096  ;
64097  return 0;
64098}
64099_ACEOF
64100rm -f conftest.$ac_objext conftest$ac_exeext
64101if { (ac_try="$ac_link"
64102case "(($ac_try" in
64103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64104  *) ac_try_echo=$ac_try;;
64105esac
64106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64107$as_echo "$ac_try_echo") >&5
64108  (eval "$ac_link") 2>conftest.er1
64109  ac_status=$?
64110  grep -v '^ *+' conftest.er1 >conftest.err
64111  rm -f conftest.er1
64112  cat conftest.err >&5
64113  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64114  (exit $ac_status); } && {
64115	 test -z "$ac_c_werror_flag" ||
64116	 test ! -s conftest.err
64117       } && test -s conftest$ac_exeext && {
64118	 test "$cross_compiling" = yes ||
64119	 $as_test_x conftest$ac_exeext
64120       }; then
64121  ac_cv_func_ext_ldap_initialize=yes
64122else
64123  $as_echo "$as_me: failed program was:" >&5
64124sed 's/^/| /' conftest.$ac_ext >&5
64125
64126	ac_cv_func_ext_ldap_initialize=no
64127fi
64128
64129rm -rf conftest.dSYM
64130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64131      conftest$ac_exeext conftest.$ac_ext
64132fi
64133{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_ldap_initialize" >&5
64134$as_echo "$ac_cv_func_ext_ldap_initialize" >&6; }
64135    LIBS=$ac_check_func_ext_save_LIBS
64136    if test $ac_cv_func_ext_ldap_initialize = yes; then
64137  cat >>confdefs.h <<_ACEOF
64138#define HAVE_LDAP_INITIALIZE 1
64139_ACEOF
64140
64141fi
64142
64143
64144  if test x"$ac_cv_lib_ext_ldap_ldap_init" = x"yes"; then
64145
64146cat >>confdefs.h <<\_ACEOF
64147#define HAVE_LDAP 1
64148_ACEOF
64149
64150    CPPFLAGS="$CPPFLAGS -DLDAP_DEPRECATED"
64151    default_static_modules="$default_static_modules pdb_ldap idmap_ldap";
64152    default_shared_modules="$default_shared_modules";
64153    SMBLDAP="lib/smbldap.o"
64154    SMBLDAPUTIL="lib/smbldap_util.o"
64155    with_ldap_support=yes
64156    { $as_echo "$as_me:$LINENO: checking whether LDAP support is used" >&5
64157$as_echo_n "checking whether LDAP support is used... " >&6; }
64158    { $as_echo "$as_me:$LINENO: result: yes" >&5
64159$as_echo "yes" >&6; }
64160  else
64161    if test x"$with_ldap_support" = x"yes"; then
64162	{ { $as_echo "$as_me:$LINENO: error: libldap is needed for LDAP support" >&5
64163$as_echo "$as_me: error: libldap is needed for LDAP support" >&2;}
64164   { (exit 1); exit 1; }; }
64165    else
64166	{ $as_echo "$as_me:$LINENO: WARNING: libldap is needed for LDAP support" >&5
64167$as_echo "$as_me: WARNING: libldap is needed for LDAP support" >&2;}
64168    fi
64169
64170    LDAP_LIBS=""
64171    with_ldap_support=no
64172  fi
64173  LIBS=$ac_save_LIBS
64174fi
64175
64176
64177#################################################
64178# active directory support
64179
64180with_ads_support=auto
64181{ $as_echo "$as_me:$LINENO: checking for Active Directory and krb5 support" >&5
64182$as_echo_n "checking for Active Directory and krb5 support... " >&6; }
64183
64184
64185# Check whether --with-ads was given.
64186if test "${with_ads+set}" = set; then
64187  withval=$with_ads;  case "$withval" in
64188    yes|no)
64189	with_ads_support="$withval"
64190	;;
64191  esac
64192fi
64193
64194
64195{ $as_echo "$as_me:$LINENO: result: $with_ads_support" >&5
64196$as_echo "$with_ads_support" >&6; }
64197
64198FOUND_KRB5=no
64199KRB5_LIBS=""
64200
64201if test x"$with_ldap_support" != x"yes"; then
64202
64203    if test x"$with_ads_support" = x"yes"; then
64204	{ { $as_echo "$as_me:$LINENO: error: Active Directory Support requires LDAP support" >&5
64205$as_echo "$as_me: error: Active Directory Support requires LDAP support" >&2;}
64206   { (exit 1); exit 1; }; }
64207    elif test x"$with_ads_support" = x"auto"; then
64208	{ $as_echo "$as_me:$LINENO: WARNING: Disabling Active Directory support (requires LDAP support)" >&5
64209$as_echo "$as_me: WARNING: Disabling Active Directory support (requires LDAP support)" >&2;}
64210	with_ads_support=no
64211    fi
64212
64213else
64214
64215    # Check to see whether there is enough LDAP functionality to be able
64216    # to build AD support.
64217
64218# HPUX only has ldap_init; ok, we take care of this in smbldap.c
64219case "$host_os" in
64220	*hpux*)
64221
64222
64223
64224    ac_check_func_ext_save_LIBS=$LIBS
64225    LIBS="$LDAP_LIBS $LIBS"
64226        { $as_echo "$as_me:$LINENO: checking for ldap_init" >&5
64227$as_echo_n "checking for ldap_init... " >&6; }
64228if test "${ac_cv_func_ext_ldap_init+set}" = set; then
64229  $as_echo_n "(cached) " >&6
64230else
64231  cat >conftest.$ac_ext <<_ACEOF
64232/* confdefs.h.  */
64233_ACEOF
64234cat confdefs.h >>conftest.$ac_ext
64235cat >>conftest.$ac_ext <<_ACEOF
64236/* end confdefs.h.  */
64237/* Define ldap_init to an innocuous variant, in case <limits.h> declares ldap_init.
64238   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64239#define ldap_init innocuous_ldap_init
64240
64241/* System header to define __stub macros and hopefully few prototypes,
64242    which can conflict with char ldap_init (); below.
64243    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64244    <limits.h> exists even on freestanding compilers.  */
64245
64246#ifdef __STDC__
64247# include <limits.h>
64248#else
64249# include <assert.h>
64250#endif
64251
64252#undef ldap_init
64253
64254/* Override any GCC internal prototype to avoid an error.
64255   Use char because int might match the return type of a GCC
64256   builtin and then its argument prototype would still apply.  */
64257#ifdef __cplusplus
64258extern "C"
64259#endif
64260char ldap_init ();
64261/* The GNU C library defines this for functions which it implements
64262    to always fail with ENOSYS.  Some functions are actually named
64263    something starting with __ and the normal name is an alias.  */
64264#if defined __stub_ldap_init || defined __stub___ldap_init
64265choke me
64266#endif
64267
64268int
64269main ()
64270{
64271return ldap_init ();
64272  ;
64273  return 0;
64274}
64275_ACEOF
64276rm -f conftest.$ac_objext conftest$ac_exeext
64277if { (ac_try="$ac_link"
64278case "(($ac_try" in
64279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64280  *) ac_try_echo=$ac_try;;
64281esac
64282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64283$as_echo "$ac_try_echo") >&5
64284  (eval "$ac_link") 2>conftest.er1
64285  ac_status=$?
64286  grep -v '^ *+' conftest.er1 >conftest.err
64287  rm -f conftest.er1
64288  cat conftest.err >&5
64289  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64290  (exit $ac_status); } && {
64291	 test -z "$ac_c_werror_flag" ||
64292	 test ! -s conftest.err
64293       } && test -s conftest$ac_exeext && {
64294	 test "$cross_compiling" = yes ||
64295	 $as_test_x conftest$ac_exeext
64296       }; then
64297  ac_cv_func_ext_ldap_init=yes
64298else
64299  $as_echo "$as_me: failed program was:" >&5
64300sed 's/^/| /' conftest.$ac_ext >&5
64301
64302	ac_cv_func_ext_ldap_init=no
64303fi
64304
64305rm -rf conftest.dSYM
64306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64307      conftest$ac_exeext conftest.$ac_ext
64308fi
64309{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_ldap_init" >&5
64310$as_echo "$ac_cv_func_ext_ldap_init" >&6; }
64311    LIBS=$ac_check_func_ext_save_LIBS
64312    if test $ac_cv_func_ext_ldap_init = yes; then
64313  cat >>confdefs.h <<_ACEOF
64314#define HAVE_LDAP_INIT 1
64315_ACEOF
64316
64317fi
64318
64319
64320    if test x"$ac_cv_func_ext_ldap_init" != x"yes"; then
64321	if test x"$with_ads_support" = x"yes"; then
64322	    { { $as_echo "$as_me:$LINENO: error: Active Directory support on HPUX requires ldap_init" >&5
64323$as_echo "$as_me: error: Active Directory support on HPUX requires ldap_init" >&2;}
64324   { (exit 1); exit 1; }; }
64325	elif test x"$with_ads_support" = x"auto"; then
64326	    { $as_echo "$as_me:$LINENO: WARNING: Disabling Active Directory support (requires ldap_init on HPUX)" >&5
64327$as_echo "$as_me: WARNING: Disabling Active Directory support (requires ldap_init on HPUX)" >&2;}
64328	    with_ads_support=no
64329	fi
64330    fi
64331    ;;
64332	*)
64333
64334
64335
64336    ac_check_func_ext_save_LIBS=$LIBS
64337    LIBS="$LDAP_LIBS $LIBS"
64338        { $as_echo "$as_me:$LINENO: checking for ldap_initialize" >&5
64339$as_echo_n "checking for ldap_initialize... " >&6; }
64340if test "${ac_cv_func_ext_ldap_initialize+set}" = set; then
64341  $as_echo_n "(cached) " >&6
64342else
64343  cat >conftest.$ac_ext <<_ACEOF
64344/* confdefs.h.  */
64345_ACEOF
64346cat confdefs.h >>conftest.$ac_ext
64347cat >>conftest.$ac_ext <<_ACEOF
64348/* end confdefs.h.  */
64349/* Define ldap_initialize to an innocuous variant, in case <limits.h> declares ldap_initialize.
64350   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64351#define ldap_initialize innocuous_ldap_initialize
64352
64353/* System header to define __stub macros and hopefully few prototypes,
64354    which can conflict with char ldap_initialize (); below.
64355    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64356    <limits.h> exists even on freestanding compilers.  */
64357
64358#ifdef __STDC__
64359# include <limits.h>
64360#else
64361# include <assert.h>
64362#endif
64363
64364#undef ldap_initialize
64365
64366/* Override any GCC internal prototype to avoid an error.
64367   Use char because int might match the return type of a GCC
64368   builtin and then its argument prototype would still apply.  */
64369#ifdef __cplusplus
64370extern "C"
64371#endif
64372char ldap_initialize ();
64373/* The GNU C library defines this for functions which it implements
64374    to always fail with ENOSYS.  Some functions are actually named
64375    something starting with __ and the normal name is an alias.  */
64376#if defined __stub_ldap_initialize || defined __stub___ldap_initialize
64377choke me
64378#endif
64379
64380int
64381main ()
64382{
64383return ldap_initialize ();
64384  ;
64385  return 0;
64386}
64387_ACEOF
64388rm -f conftest.$ac_objext conftest$ac_exeext
64389if { (ac_try="$ac_link"
64390case "(($ac_try" in
64391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64392  *) ac_try_echo=$ac_try;;
64393esac
64394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64395$as_echo "$ac_try_echo") >&5
64396  (eval "$ac_link") 2>conftest.er1
64397  ac_status=$?
64398  grep -v '^ *+' conftest.er1 >conftest.err
64399  rm -f conftest.er1
64400  cat conftest.err >&5
64401  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64402  (exit $ac_status); } && {
64403	 test -z "$ac_c_werror_flag" ||
64404	 test ! -s conftest.err
64405       } && test -s conftest$ac_exeext && {
64406	 test "$cross_compiling" = yes ||
64407	 $as_test_x conftest$ac_exeext
64408       }; then
64409  ac_cv_func_ext_ldap_initialize=yes
64410else
64411  $as_echo "$as_me: failed program was:" >&5
64412sed 's/^/| /' conftest.$ac_ext >&5
64413
64414	ac_cv_func_ext_ldap_initialize=no
64415fi
64416
64417rm -rf conftest.dSYM
64418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64419      conftest$ac_exeext conftest.$ac_ext
64420fi
64421{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_ldap_initialize" >&5
64422$as_echo "$ac_cv_func_ext_ldap_initialize" >&6; }
64423    LIBS=$ac_check_func_ext_save_LIBS
64424    if test $ac_cv_func_ext_ldap_initialize = yes; then
64425  cat >>confdefs.h <<_ACEOF
64426#define HAVE_LDAP_INITIALIZE 1
64427_ACEOF
64428
64429fi
64430
64431
64432    if test x"$ac_cv_func_ext_ldap_initialize" != x"yes"; then
64433	if test x"$with_ads_support" = x"yes"; then
64434	    { { $as_echo "$as_me:$LINENO: error: Active Directory support requires ldap_initialize" >&5
64435$as_echo "$as_me: error: Active Directory support requires ldap_initialize" >&2;}
64436   { (exit 1); exit 1; }; }
64437	elif test x"$with_ads_support" = x"auto"; then
64438	    { $as_echo "$as_me:$LINENO: WARNING: Disabling Active Directory support (requires ldap_initialize)" >&5
64439$as_echo "$as_me: WARNING: Disabling Active Directory support (requires ldap_initialize)" >&2;}
64440	    with_ads_support=no
64441	fi
64442    fi
64443    ;;
64444esac
64445
64446
64447
64448
64449
64450    ac_check_func_ext_save_LIBS=$LIBS
64451    LIBS="$LDAP_LIBS $LIBS"
64452        { $as_echo "$as_me:$LINENO: checking for ldap_add_result_entry" >&5
64453$as_echo_n "checking for ldap_add_result_entry... " >&6; }
64454if test "${ac_cv_func_ext_ldap_add_result_entry+set}" = set; then
64455  $as_echo_n "(cached) " >&6
64456else
64457  cat >conftest.$ac_ext <<_ACEOF
64458/* confdefs.h.  */
64459_ACEOF
64460cat confdefs.h >>conftest.$ac_ext
64461cat >>conftest.$ac_ext <<_ACEOF
64462/* end confdefs.h.  */
64463/* Define ldap_add_result_entry to an innocuous variant, in case <limits.h> declares ldap_add_result_entry.
64464   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64465#define ldap_add_result_entry innocuous_ldap_add_result_entry
64466
64467/* System header to define __stub macros and hopefully few prototypes,
64468    which can conflict with char ldap_add_result_entry (); below.
64469    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64470    <limits.h> exists even on freestanding compilers.  */
64471
64472#ifdef __STDC__
64473# include <limits.h>
64474#else
64475# include <assert.h>
64476#endif
64477
64478#undef ldap_add_result_entry
64479
64480/* Override any GCC internal prototype to avoid an error.
64481   Use char because int might match the return type of a GCC
64482   builtin and then its argument prototype would still apply.  */
64483#ifdef __cplusplus
64484extern "C"
64485#endif
64486char ldap_add_result_entry ();
64487/* The GNU C library defines this for functions which it implements
64488    to always fail with ENOSYS.  Some functions are actually named
64489    something starting with __ and the normal name is an alias.  */
64490#if defined __stub_ldap_add_result_entry || defined __stub___ldap_add_result_entry
64491choke me
64492#endif
64493
64494int
64495main ()
64496{
64497return ldap_add_result_entry ();
64498  ;
64499  return 0;
64500}
64501_ACEOF
64502rm -f conftest.$ac_objext conftest$ac_exeext
64503if { (ac_try="$ac_link"
64504case "(($ac_try" in
64505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64506  *) ac_try_echo=$ac_try;;
64507esac
64508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64509$as_echo "$ac_try_echo") >&5
64510  (eval "$ac_link") 2>conftest.er1
64511  ac_status=$?
64512  grep -v '^ *+' conftest.er1 >conftest.err
64513  rm -f conftest.er1
64514  cat conftest.err >&5
64515  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64516  (exit $ac_status); } && {
64517	 test -z "$ac_c_werror_flag" ||
64518	 test ! -s conftest.err
64519       } && test -s conftest$ac_exeext && {
64520	 test "$cross_compiling" = yes ||
64521	 $as_test_x conftest$ac_exeext
64522       }; then
64523  ac_cv_func_ext_ldap_add_result_entry=yes
64524else
64525  $as_echo "$as_me: failed program was:" >&5
64526sed 's/^/| /' conftest.$ac_ext >&5
64527
64528	ac_cv_func_ext_ldap_add_result_entry=no
64529fi
64530
64531rm -rf conftest.dSYM
64532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64533      conftest$ac_exeext conftest.$ac_ext
64534fi
64535{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_ldap_add_result_entry" >&5
64536$as_echo "$ac_cv_func_ext_ldap_add_result_entry" >&6; }
64537    LIBS=$ac_check_func_ext_save_LIBS
64538    if test $ac_cv_func_ext_ldap_add_result_entry = yes; then
64539  cat >>confdefs.h <<_ACEOF
64540#define HAVE_LDAP_ADD_RESULT_ENTRY 1
64541_ACEOF
64542
64543fi
64544
64545
64546    if test x"$ac_cv_func_ext_ldap_add_result_entry" != x"yes"; then
64547	if test x"$with_ads_support" = x"yes"; then
64548	    { { $as_echo "$as_me:$LINENO: error: Active Directory support requires ldap_add_result_entry" >&5
64549$as_echo "$as_me: error: Active Directory support requires ldap_add_result_entry" >&2;}
64550   { (exit 1); exit 1; }; }
64551	elif test x"$with_ads_support" = x"auto"; then
64552	    { $as_echo "$as_me:$LINENO: WARNING: Disabling Active Directory support (requires ldap_add_result_entry)" >&5
64553$as_echo "$as_me: WARNING: Disabling Active Directory support (requires ldap_add_result_entry)" >&2;}
64554	    with_ads_support=no
64555	fi
64556    fi
64557
64558fi
64559
64560if test x"$with_ads_support" != x"no"; then
64561
64562  # Do no harm to the values of CFLAGS and LIBS while testing for
64563  # Kerberos support.
64564
64565  if test x$FOUND_KRB5 = x"no"; then
64566    #################################################
64567    # check for location of Kerberos 5 install
64568    { $as_echo "$as_me:$LINENO: checking for kerberos 5 install path" >&5
64569$as_echo_n "checking for kerberos 5 install path... " >&6; }
64570
64571# Check whether --with-krb5 was given.
64572if test "${with_krb5+set}" = set; then
64573  withval=$with_krb5;  case "$withval" in
64574      no)
64575        { $as_echo "$as_me:$LINENO: result: no krb5-path given" >&5
64576$as_echo "no krb5-path given" >&6; }
64577        ;;
64578      yes)
64579        { $as_echo "$as_me:$LINENO: result: /usr" >&5
64580$as_echo "/usr" >&6; }
64581        FOUND_KRB5=yes
64582        ;;
64583      *)
64584        { $as_echo "$as_me:$LINENO: result: $withval" >&5
64585$as_echo "$withval" >&6; }
64586        KRB5_CFLAGS="-I$withval/include"
64587        KRB5_CPPFLAGS="-I$withval/include"
64588        KRB5_LDFLAGS="-L$withval/lib"
64589        FOUND_KRB5=yes
64590	if test -x "$withval/bin/krb5-config"; then
64591		KRB5CONFIG=$withval/bin/krb5-config
64592	fi
64593        ;;
64594      esac
64595else
64596  { $as_echo "$as_me:$LINENO: result: no krb5-path given" >&5
64597$as_echo "no krb5-path given" >&6; }
64598
64599fi
64600
64601  fi
64602
64603  #################################################
64604  # check for krb5-config from recent MIT and Heimdal kerberos 5
64605  # Extract the first word of "krb5-config", so it can be a program name with args.
64606set dummy krb5-config; ac_word=$2
64607{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
64608$as_echo_n "checking for $ac_word... " >&6; }
64609if test "${ac_cv_path_KRB5CONFIG+set}" = set; then
64610  $as_echo_n "(cached) " >&6
64611else
64612  case $KRB5CONFIG in
64613  [\\/]* | ?:[\\/]*)
64614  ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
64615  ;;
64616  *)
64617  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
64618for as_dir in $PATH
64619do
64620  IFS=$as_save_IFS
64621  test -z "$as_dir" && as_dir=.
64622  for ac_exec_ext in '' $ac_executable_extensions; do
64623  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
64624    ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
64625    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
64626    break 2
64627  fi
64628done
64629done
64630IFS=$as_save_IFS
64631
64632  ;;
64633esac
64634fi
64635KRB5CONFIG=$ac_cv_path_KRB5CONFIG
64636if test -n "$KRB5CONFIG"; then
64637  { $as_echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
64638$as_echo "$KRB5CONFIG" >&6; }
64639else
64640  { $as_echo "$as_me:$LINENO: result: no" >&5
64641$as_echo "no" >&6; }
64642fi
64643
64644
64645  { $as_echo "$as_me:$LINENO: checking for working krb5-config" >&5
64646$as_echo_n "checking for working krb5-config... " >&6; }
64647  if test -x "$KRB5CONFIG" && $KRB5CONFIG --libs gssapi > /dev/null ; then
64648    ac_save_CFLAGS=$CFLAGS
64649    CFLAGS="";export CFLAGS
64650    ac_save_LDFLAGS=$LDFLAGS
64651    LDFLAGS="";export LDFLAGS
64652    KRB5_LIBS="`$KRB5CONFIG --libs gssapi`"
64653    KRB5_LDFLAGS="`$KRB5CONFIG --libs gssapi | sed s/-lgss.*//`"
64654    KRB5_CFLAGS="`$KRB5CONFIG --cflags | sed s/@INCLUDE_des@//`"
64655    KRB5_CPPFLAGS="`$KRB5CONFIG --cflags | sed s/@INCLUDE_des@//`"
64656    CFLAGS=$ac_save_CFLAGS;export CFLAGS
64657    LDFLAGS=$ac_save_LDFLAGS;export LDFLAGS
64658    FOUND_KRB5=yes
64659    { $as_echo "$as_me:$LINENO: result: yes" >&5
64660$as_echo "yes" >&6; }
64661  else
64662    { $as_echo "$as_me:$LINENO: result: no. Fallback to previous krb5 detection strategy" >&5
64663$as_echo "no. Fallback to previous krb5 detection strategy" >&6; }
64664  fi
64665
64666  if test x$FOUND_KRB5 = x"no"; then
64667    #################################################
64668    # see if this box has the SuSE location for the heimdal krb implementation
64669    { $as_echo "$as_me:$LINENO: checking for /usr/include/heimdal" >&5
64670$as_echo_n "checking for /usr/include/heimdal... " >&6; }
64671    if test -d /usr/include/heimdal; then
64672      if test -f /usr/lib/heimdal/lib/libkrb5.a; then
64673          KRB5_CFLAGS="-I/usr/include/heimdal"
64674          KRB5_CPPFLAGS="-I/usr/include/heimdal"
64675          KRB5_LDFLAGS="-L/usr/lib/heimdal/lib"
64676	  FOUND_KRB5=yes
64677          { $as_echo "$as_me:$LINENO: result: yes" >&5
64678$as_echo "yes" >&6; }
64679      else
64680          KRB5_CFLAGS="-I/usr/include/heimdal"
64681          KRB5_CPPFLAGS="-I/usr/include/heimdal"
64682	  FOUND_KRB5=yes
64683          { $as_echo "$as_me:$LINENO: result: yes" >&5
64684$as_echo "yes" >&6; }
64685      fi
64686    else
64687      { $as_echo "$as_me:$LINENO: result: no" >&5
64688$as_echo "no" >&6; }
64689    fi
64690  fi
64691
64692  if test x$FOUND_KRB5 = x"no"; then
64693    #################################################
64694    # see if this box has the RedHat location for kerberos
64695    { $as_echo "$as_me:$LINENO: checking for /usr/kerberos" >&5
64696$as_echo_n "checking for /usr/kerberos... " >&6; }
64697    if test -d /usr/kerberos -a -f /usr/kerberos/lib/libkrb5.a; then
64698      KRB5_LDFLAGS="-L/usr/kerberos/lib"
64699      KRB5_CFLAGS="-I/usr/kerberos/include"
64700      KRB5_CPPFLAGS="-I/usr/kerberos/include"
64701      FOUND_KRB5=yes
64702      { $as_echo "$as_me:$LINENO: result: yes" >&5
64703$as_echo "yes" >&6; }
64704    else
64705      { $as_echo "$as_me:$LINENO: result: no" >&5
64706$as_echo "no" >&6; }
64707    fi
64708  fi
64709
64710  if test x$FOUND_KRB5 = x"no"; then
64711    #################################################
64712    # see if this box has the OpenBSD location for heimdal krb5
64713    { $as_echo "$as_me:$LINENO: checking for /usr/include/kerberosV" >&5
64714$as_echo_n "checking for /usr/include/kerberosV... " >&6; }
64715    if test -d /usr/include/kerberosV; then
64716      KRB5_CPPFLAGS="-I/usr/include/kerberosV"
64717      KRB5_LIBS="-lcrypto"
64718      FOUND_KRB5=yes
64719      { $as_echo "$as_me:$LINENO: result: yes" >&5
64720$as_echo "yes" >&6; }
64721    else
64722      { $as_echo "$as_me:$LINENO: result: no" >&5
64723$as_echo "no" >&6; }
64724    fi
64725  fi
64726
64727  ac_save_CFLAGS=$CFLAGS
64728  ac_save_CPPFLAGS=$CPPFLAGS
64729  ac_save_LDFLAGS=$LDFLAGS
64730
64731  # remove needless evil rpath stuff as early as possible:
64732
64733  ac_new_flags=""
64734  l=""
64735  for i in $KRB5_LIBS; do
64736    case $l$i in
64737    -L/usr/lib) ;;
64738    -L/usr/lib/) ;;
64739    -L/usr/lib64) ;;
64740    -L/usr/lib64/) ;;
64741    -Wl,-rpath,/usr/lib) l="";;
64742    -Wl,-rpath,/usr/lib/) l="";;
64743    -Wl,-rpath,/usr/lib64) l="";;
64744    -Wl,-rpath,/usr/lib64/) l="";;
64745    -Wl,-rpath) l=$i;;
64746    -Wl,-rpath-Wl,/usr/lib) l="";;
64747    -Wl,-rpath-Wl,/usr/lib/) l="";;
64748    -Wl,-rpath-Wl,/usr/lib64) l="";;
64749    -Wl,-rpath-Wl,/usr/lib64/) l="";;
64750    *)
64751    	s=" "
64752        if test x"$ac_new_flags" = x""; then
64753            s="";
64754	fi
64755        if test x"$l" = x""; then
64756            ac_new_flags="$ac_new_flags$s$i";
64757        else
64758            ac_new_flags="$ac_new_flags$s$l $i";
64759        fi
64760        l=""
64761        ;;
64762    esac
64763  done
64764  KRB5_LIBS=$ac_new_flags
64765
64766
64767  ac_new_flags=""
64768  l=""
64769  for i in $KRB5_LDFLAGS; do
64770    case $l$i in
64771    -L/usr/lib) ;;
64772    -L/usr/lib/) ;;
64773    -L/usr/lib64) ;;
64774    -L/usr/lib64/) ;;
64775    -Wl,-rpath,/usr/lib) l="";;
64776    -Wl,-rpath,/usr/lib/) l="";;
64777    -Wl,-rpath,/usr/lib64) l="";;
64778    -Wl,-rpath,/usr/lib64/) l="";;
64779    -Wl,-rpath) l=$i;;
64780    -Wl,-rpath-Wl,/usr/lib) l="";;
64781    -Wl,-rpath-Wl,/usr/lib/) l="";;
64782    -Wl,-rpath-Wl,/usr/lib64) l="";;
64783    -Wl,-rpath-Wl,/usr/lib64/) l="";;
64784    *)
64785    	s=" "
64786        if test x"$ac_new_flags" = x""; then
64787            s="";
64788	fi
64789        if test x"$l" = x""; then
64790            ac_new_flags="$ac_new_flags$s$i";
64791        else
64792            ac_new_flags="$ac_new_flags$s$l $i";
64793        fi
64794        l=""
64795        ;;
64796    esac
64797  done
64798  KRB5_LDFLAGS=$ac_new_flags
64799
64800  CFLAGS="$KRB5_CFLAGS $CFLAGS"
64801  CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
64802  LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
64803
64804  KRB5_LIBS="$KRB5_LDFLAGS $KRB5_LIBS"
64805
64806  # now check for krb5.h. Some systems have the libraries without the headers!
64807  # note that this check is done here to allow for different kerberos
64808  # include paths
64809
64810for ac_header in krb5.h
64811do
64812as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
64813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64814  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
64815$as_echo_n "checking for $ac_header... " >&6; }
64816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64817  $as_echo_n "(cached) " >&6
64818fi
64819ac_res=`eval 'as_val=${'$as_ac_Header'}
64820		 $as_echo "$as_val"'`
64821	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64822$as_echo "$ac_res" >&6; }
64823else
64824  # Is the header compilable?
64825{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
64826$as_echo_n "checking $ac_header usability... " >&6; }
64827cat >conftest.$ac_ext <<_ACEOF
64828/* confdefs.h.  */
64829_ACEOF
64830cat confdefs.h >>conftest.$ac_ext
64831cat >>conftest.$ac_ext <<_ACEOF
64832/* end confdefs.h.  */
64833$ac_includes_default
64834#include <$ac_header>
64835_ACEOF
64836rm -f conftest.$ac_objext
64837if { (ac_try="$ac_compile"
64838case "(($ac_try" in
64839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64840  *) ac_try_echo=$ac_try;;
64841esac
64842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64843$as_echo "$ac_try_echo") >&5
64844  (eval "$ac_compile") 2>conftest.er1
64845  ac_status=$?
64846  grep -v '^ *+' conftest.er1 >conftest.err
64847  rm -f conftest.er1
64848  cat conftest.err >&5
64849  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64850  (exit $ac_status); } && {
64851	 test -z "$ac_c_werror_flag" ||
64852	 test ! -s conftest.err
64853       } && test -s conftest.$ac_objext; then
64854  ac_header_compiler=yes
64855else
64856  $as_echo "$as_me: failed program was:" >&5
64857sed 's/^/| /' conftest.$ac_ext >&5
64858
64859	ac_header_compiler=no
64860fi
64861
64862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64863{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64864$as_echo "$ac_header_compiler" >&6; }
64865
64866# Is the header present?
64867{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
64868$as_echo_n "checking $ac_header presence... " >&6; }
64869cat >conftest.$ac_ext <<_ACEOF
64870/* confdefs.h.  */
64871_ACEOF
64872cat confdefs.h >>conftest.$ac_ext
64873cat >>conftest.$ac_ext <<_ACEOF
64874/* end confdefs.h.  */
64875#include <$ac_header>
64876_ACEOF
64877if { (ac_try="$ac_cpp conftest.$ac_ext"
64878case "(($ac_try" in
64879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64880  *) ac_try_echo=$ac_try;;
64881esac
64882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64883$as_echo "$ac_try_echo") >&5
64884  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
64885  ac_status=$?
64886  grep -v '^ *+' conftest.er1 >conftest.err
64887  rm -f conftest.er1
64888  cat conftest.err >&5
64889  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64890  (exit $ac_status); } >/dev/null && {
64891	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
64892	 test ! -s conftest.err
64893       }; then
64894  ac_header_preproc=yes
64895else
64896  $as_echo "$as_me: failed program was:" >&5
64897sed 's/^/| /' conftest.$ac_ext >&5
64898
64899  ac_header_preproc=no
64900fi
64901
64902rm -f conftest.err conftest.$ac_ext
64903{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64904$as_echo "$ac_header_preproc" >&6; }
64905
64906# So?  What about this header?
64907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64908  yes:no: )
64909    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64910$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64911    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64912$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64913    ac_header_preproc=yes
64914    ;;
64915  no:yes:* )
64916    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64917$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64918    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
64919$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
64920    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64921$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64922    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
64923$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
64924    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64925$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64926    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64927$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64928    ( cat <<\_ASBOX
64929## ---------------------------------------- ##
64930## Report this to samba-technical@samba.org ##
64931## ---------------------------------------- ##
64932_ASBOX
64933     ) | sed "s/^/$as_me: WARNING:     /" >&2
64934    ;;
64935esac
64936{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
64937$as_echo_n "checking for $ac_header... " >&6; }
64938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64939  $as_echo_n "(cached) " >&6
64940else
64941  eval "$as_ac_Header=\$ac_header_preproc"
64942fi
64943ac_res=`eval 'as_val=${'$as_ac_Header'}
64944		 $as_echo "$as_val"'`
64945	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64946$as_echo "$ac_res" >&6; }
64947
64948fi
64949as_val=`eval 'as_val=${'$as_ac_Header'}
64950		 $as_echo "$as_val"'`
64951   if test "x$as_val" = x""yes; then
64952  cat >>confdefs.h <<_ACEOF
64953#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
64954_ACEOF
64955
64956fi
64957
64958done
64959
64960
64961  if test x"$ac_cv_header_krb5_h" = x"no"; then
64962
64963    # Give a warning if AD support was not explicitly requested,
64964    # i.e with_ads_support = auto, otherwise die with an error.
64965
64966    if test x"$with_ads_support" = x"yes"; then
64967      { { $as_echo "$as_me:$LINENO: error: Active Directory cannot be supported without krb5.h" >&5
64968$as_echo "$as_me: error: Active Directory cannot be supported without krb5.h" >&2;}
64969   { (exit 1); exit 1; }; }
64970    else
64971      { $as_echo "$as_me:$LINENO: WARNING: Active Directory cannot be supported without krb5.h" >&5
64972$as_echo "$as_me: WARNING: Active Directory cannot be supported without krb5.h" >&2;}
64973    fi
64974
64975    # Turn off AD support and restore CFLAGS and LIBS variables
64976
64977    with_ads_support="no"
64978
64979    CFLAGS=$ac_save_CFLAGS
64980    CPPFLAGS=$ac_save_CPPFLAGS
64981    LDFLAGS=$ac_save_LDFLAGS
64982  fi
64983
64984for ac_header in krb5/locate_plugin.h
64985do
64986as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
64987{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
64988$as_echo_n "checking for $ac_header... " >&6; }
64989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64990  $as_echo_n "(cached) " >&6
64991else
64992  cat >conftest.$ac_ext <<_ACEOF
64993/* confdefs.h.  */
64994_ACEOF
64995cat confdefs.h >>conftest.$ac_ext
64996cat >>conftest.$ac_ext <<_ACEOF
64997/* end confdefs.h.  */
64998#ifdef HAVE_KRB5_H
64999 #include <krb5.h>
65000 #endif
65001
65002
65003#include <$ac_header>
65004_ACEOF
65005rm -f conftest.$ac_objext
65006if { (ac_try="$ac_compile"
65007case "(($ac_try" in
65008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65009  *) ac_try_echo=$ac_try;;
65010esac
65011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65012$as_echo "$ac_try_echo") >&5
65013  (eval "$ac_compile") 2>conftest.er1
65014  ac_status=$?
65015  grep -v '^ *+' conftest.er1 >conftest.err
65016  rm -f conftest.er1
65017  cat conftest.err >&5
65018  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65019  (exit $ac_status); } && {
65020	 test -z "$ac_c_werror_flag" ||
65021	 test ! -s conftest.err
65022       } && test -s conftest.$ac_objext; then
65023  eval "$as_ac_Header=yes"
65024else
65025  $as_echo "$as_me: failed program was:" >&5
65026sed 's/^/| /' conftest.$ac_ext >&5
65027
65028	eval "$as_ac_Header=no"
65029fi
65030
65031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65032fi
65033ac_res=`eval 'as_val=${'$as_ac_Header'}
65034		 $as_echo "$as_val"'`
65035	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65036$as_echo "$ac_res" >&6; }
65037as_val=`eval 'as_val=${'$as_ac_Header'}
65038		 $as_echo "$as_val"'`
65039   if test "x$as_val" = x""yes; then
65040  cat >>confdefs.h <<_ACEOF
65041#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
65042_ACEOF
65043
65044fi
65045
65046done
65047
65048
65049  if test x"$ac_cv_header_krb5_locate_plugin_h" = x"yes"; then
65050	WINBIND_KRB5_LOCATOR="bin/winbind_krb5_locator.$SHLIBEXT"
65051	if test x"$BLDSHARED" = x"true" ; then
65052		EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WINBIND_KRB5_LOCATOR"
65053	fi
65054  fi
65055
65056  # check for new heimdal KRB5_DEPRECATED handling
65057
65058  { $as_echo "$as_me:$LINENO: checking for KRB5_DEPRECATED define taking an identifier" >&5
65059$as_echo_n "checking for KRB5_DEPRECATED define taking an identifier... " >&6; }
65060if test "${samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER+set}" = set; then
65061  $as_echo_n "(cached) " >&6
65062else
65063
65064    cat >conftest.$ac_ext <<_ACEOF
65065/* confdefs.h.  */
65066_ACEOF
65067cat confdefs.h >>conftest.$ac_ext
65068cat >>conftest.$ac_ext <<_ACEOF
65069/* end confdefs.h.  */
65070#define KRB5_DEPRECATED 1
65071      #include <krb5.h>
65072int
65073main ()
65074{
65075
65076  ;
65077  return 0;
65078}
65079_ACEOF
65080rm -f conftest.$ac_objext
65081if { (ac_try="$ac_compile"
65082case "(($ac_try" in
65083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65084  *) ac_try_echo=$ac_try;;
65085esac
65086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65087$as_echo "$ac_try_echo") >&5
65088  (eval "$ac_compile") 2>conftest.er1
65089  ac_status=$?
65090  grep -v '^ *+' conftest.er1 >conftest.err
65091  rm -f conftest.er1
65092  cat conftest.err >&5
65093  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65094  (exit $ac_status); } && {
65095	 test -z "$ac_c_werror_flag" ||
65096	 test ! -s conftest.err
65097       } && test -s conftest.$ac_objext; then
65098  samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER=yes
65099else
65100  $as_echo "$as_me: failed program was:" >&5
65101sed 's/^/| /' conftest.$ac_ext >&5
65102
65103	samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER=no
65104fi
65105
65106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65107fi
65108{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER" >&5
65109$as_echo "$samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER" >&6; }
65110
65111  if test x"$samba_cv_HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER" = x"yes"; then
65112
65113cat >>confdefs.h <<\_ACEOF
65114#define HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER 1
65115_ACEOF
65116
65117  fi
65118fi
65119
65120# Now we have determined whether we really want ADS support
65121use_ads=no
65122if test x"$with_ads_support" != x"no"; then
65123  use_ads=yes
65124  have_gssapi=no
65125  ac_save_LIBS=$LIBS
65126
65127  # now check for gssapi headers.  This is also done here to allow for
65128  # different kerberos include paths
65129
65130
65131
65132
65133for ac_header in gssapi.h gssapi/gssapi_generic.h gssapi/gssapi.h com_err.h
65134do
65135as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
65136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
65137  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
65138$as_echo_n "checking for $ac_header... " >&6; }
65139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
65140  $as_echo_n "(cached) " >&6
65141fi
65142ac_res=`eval 'as_val=${'$as_ac_Header'}
65143		 $as_echo "$as_val"'`
65144	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65145$as_echo "$ac_res" >&6; }
65146else
65147  # Is the header compilable?
65148{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
65149$as_echo_n "checking $ac_header usability... " >&6; }
65150cat >conftest.$ac_ext <<_ACEOF
65151/* confdefs.h.  */
65152_ACEOF
65153cat confdefs.h >>conftest.$ac_ext
65154cat >>conftest.$ac_ext <<_ACEOF
65155/* end confdefs.h.  */
65156$ac_includes_default
65157#include <$ac_header>
65158_ACEOF
65159rm -f conftest.$ac_objext
65160if { (ac_try="$ac_compile"
65161case "(($ac_try" in
65162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65163  *) ac_try_echo=$ac_try;;
65164esac
65165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65166$as_echo "$ac_try_echo") >&5
65167  (eval "$ac_compile") 2>conftest.er1
65168  ac_status=$?
65169  grep -v '^ *+' conftest.er1 >conftest.err
65170  rm -f conftest.er1
65171  cat conftest.err >&5
65172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65173  (exit $ac_status); } && {
65174	 test -z "$ac_c_werror_flag" ||
65175	 test ! -s conftest.err
65176       } && test -s conftest.$ac_objext; then
65177  ac_header_compiler=yes
65178else
65179  $as_echo "$as_me: failed program was:" >&5
65180sed 's/^/| /' conftest.$ac_ext >&5
65181
65182	ac_header_compiler=no
65183fi
65184
65185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65186{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
65187$as_echo "$ac_header_compiler" >&6; }
65188
65189# Is the header present?
65190{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
65191$as_echo_n "checking $ac_header presence... " >&6; }
65192cat >conftest.$ac_ext <<_ACEOF
65193/* confdefs.h.  */
65194_ACEOF
65195cat confdefs.h >>conftest.$ac_ext
65196cat >>conftest.$ac_ext <<_ACEOF
65197/* end confdefs.h.  */
65198#include <$ac_header>
65199_ACEOF
65200if { (ac_try="$ac_cpp conftest.$ac_ext"
65201case "(($ac_try" in
65202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65203  *) ac_try_echo=$ac_try;;
65204esac
65205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65206$as_echo "$ac_try_echo") >&5
65207  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
65208  ac_status=$?
65209  grep -v '^ *+' conftest.er1 >conftest.err
65210  rm -f conftest.er1
65211  cat conftest.err >&5
65212  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65213  (exit $ac_status); } >/dev/null && {
65214	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
65215	 test ! -s conftest.err
65216       }; then
65217  ac_header_preproc=yes
65218else
65219  $as_echo "$as_me: failed program was:" >&5
65220sed 's/^/| /' conftest.$ac_ext >&5
65221
65222  ac_header_preproc=no
65223fi
65224
65225rm -f conftest.err conftest.$ac_ext
65226{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
65227$as_echo "$ac_header_preproc" >&6; }
65228
65229# So?  What about this header?
65230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
65231  yes:no: )
65232    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
65233$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
65234    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
65235$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
65236    ac_header_preproc=yes
65237    ;;
65238  no:yes:* )
65239    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
65240$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
65241    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
65242$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
65243    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
65244$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
65245    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
65246$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
65247    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
65248$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
65249    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
65250$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
65251    ( cat <<\_ASBOX
65252## ---------------------------------------- ##
65253## Report this to samba-technical@samba.org ##
65254## ---------------------------------------- ##
65255_ASBOX
65256     ) | sed "s/^/$as_me: WARNING:     /" >&2
65257    ;;
65258esac
65259{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
65260$as_echo_n "checking for $ac_header... " >&6; }
65261if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
65262  $as_echo_n "(cached) " >&6
65263else
65264  eval "$as_ac_Header=\$ac_header_preproc"
65265fi
65266ac_res=`eval 'as_val=${'$as_ac_Header'}
65267		 $as_echo "$as_val"'`
65268	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65269$as_echo "$ac_res" >&6; }
65270
65271fi
65272as_val=`eval 'as_val=${'$as_ac_Header'}
65273		 $as_echo "$as_val"'`
65274   if test "x$as_val" = x""yes; then
65275  cat >>confdefs.h <<_ACEOF
65276#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
65277_ACEOF
65278
65279fi
65280
65281done
65282
65283
65284  ##################################################################
65285  # we might need the k5crypto and com_err libraries on some systems
65286
65287
65288
65289ac_check_lib_ext_save_LIBS=$LIBS
65290LIBS="-lcom_err $KRB5_LIBS  $LIBS"
65291
65292
65293
65294
65295        { $as_echo "$as_me:$LINENO: checking for _et_list in -lcom_err" >&5
65296$as_echo_n "checking for _et_list in -lcom_err... " >&6; }
65297if test "${ac_cv_lib_ext_com_err__et_list+set}" = set; then
65298  $as_echo_n "(cached) " >&6
65299else
65300  cat >conftest.$ac_ext <<_ACEOF
65301/* confdefs.h.  */
65302_ACEOF
65303cat confdefs.h >>conftest.$ac_ext
65304cat >>conftest.$ac_ext <<_ACEOF
65305/* end confdefs.h.  */
65306
65307/* Override any GCC internal prototype to avoid an error.
65308   Use char because int might match the return type of a GCC
65309   builtin and then its argument prototype would still apply.  */
65310#ifdef __cplusplus
65311extern "C"
65312#endif
65313char _et_list ();
65314int
65315main ()
65316{
65317return _et_list ();
65318  ;
65319  return 0;
65320}
65321_ACEOF
65322rm -f conftest.$ac_objext conftest$ac_exeext
65323if { (ac_try="$ac_link"
65324case "(($ac_try" in
65325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65326  *) ac_try_echo=$ac_try;;
65327esac
65328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65329$as_echo "$ac_try_echo") >&5
65330  (eval "$ac_link") 2>conftest.er1
65331  ac_status=$?
65332  grep -v '^ *+' conftest.er1 >conftest.err
65333  rm -f conftest.er1
65334  cat conftest.err >&5
65335  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65336  (exit $ac_status); } && {
65337	 test -z "$ac_c_werror_flag" ||
65338	 test ! -s conftest.err
65339       } && test -s conftest$ac_exeext && {
65340	 test "$cross_compiling" = yes ||
65341	 $as_test_x conftest$ac_exeext
65342       }; then
65343  ac_cv_lib_ext_com_err__et_list=yes;
65344		  ac_cv_lib_ext_com_err=yes
65345else
65346  $as_echo "$as_me: failed program was:" >&5
65347sed 's/^/| /' conftest.$ac_ext >&5
65348
65349	ac_cv_lib_ext_com_err__et_list=no;
65350		  ac_cv_lib_ext_com_err=no
65351fi
65352
65353rm -rf conftest.dSYM
65354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65355      conftest$ac_exeext conftest.$ac_ext
65356
65357fi
65358{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_com_err__et_list" >&5
65359$as_echo "$ac_cv_lib_ext_com_err__et_list" >&6; }
65360    if test $ac_cv_lib_ext_com_err__et_list = yes; then
65361  cat >>confdefs.h <<_ACEOF
65362#define HAVE__ET_LIST 1
65363_ACEOF
65364
65365fi
65366
65367LIBS=$ac_check_lib_ext_save_LIBS
65368
65369if test $ac_cv_lib_ext_com_err = yes; then
65370  cat >>confdefs.h <<_ACEOF
65371#define HAVE_LIBCOM_ERR 1
65372_ACEOF
65373
65374		case "$KRB5_LIBS" in
65375		    *-lcom_err*)
65376			;;
65377		    *)
65378			KRB5_LIBS="-lcom_err $KRB5_LIBS"
65379			;;
65380		esac
65381
65382
65383fi
65384
65385
65386
65387
65388ac_check_lib_ext_save_LIBS=$LIBS
65389LIBS="-lk5crypto $KRB5_LIBS  $LIBS"
65390
65391
65392
65393
65394        { $as_echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
65395$as_echo_n "checking for krb5_encrypt_data in -lk5crypto... " >&6; }
65396if test "${ac_cv_lib_ext_k5crypto_krb5_encrypt_data+set}" = set; then
65397  $as_echo_n "(cached) " >&6
65398else
65399  cat >conftest.$ac_ext <<_ACEOF
65400/* confdefs.h.  */
65401_ACEOF
65402cat confdefs.h >>conftest.$ac_ext
65403cat >>conftest.$ac_ext <<_ACEOF
65404/* end confdefs.h.  */
65405
65406/* Override any GCC internal prototype to avoid an error.
65407   Use char because int might match the return type of a GCC
65408   builtin and then its argument prototype would still apply.  */
65409#ifdef __cplusplus
65410extern "C"
65411#endif
65412char krb5_encrypt_data ();
65413int
65414main ()
65415{
65416return krb5_encrypt_data ();
65417  ;
65418  return 0;
65419}
65420_ACEOF
65421rm -f conftest.$ac_objext conftest$ac_exeext
65422if { (ac_try="$ac_link"
65423case "(($ac_try" in
65424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65425  *) ac_try_echo=$ac_try;;
65426esac
65427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65428$as_echo "$ac_try_echo") >&5
65429  (eval "$ac_link") 2>conftest.er1
65430  ac_status=$?
65431  grep -v '^ *+' conftest.er1 >conftest.err
65432  rm -f conftest.er1
65433  cat conftest.err >&5
65434  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65435  (exit $ac_status); } && {
65436	 test -z "$ac_c_werror_flag" ||
65437	 test ! -s conftest.err
65438       } && test -s conftest$ac_exeext && {
65439	 test "$cross_compiling" = yes ||
65440	 $as_test_x conftest$ac_exeext
65441       }; then
65442  ac_cv_lib_ext_k5crypto_krb5_encrypt_data=yes;
65443		  ac_cv_lib_ext_k5crypto=yes
65444else
65445  $as_echo "$as_me: failed program was:" >&5
65446sed 's/^/| /' conftest.$ac_ext >&5
65447
65448	ac_cv_lib_ext_k5crypto_krb5_encrypt_data=no;
65449		  ac_cv_lib_ext_k5crypto=no
65450fi
65451
65452rm -rf conftest.dSYM
65453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65454      conftest$ac_exeext conftest.$ac_ext
65455
65456fi
65457{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_k5crypto_krb5_encrypt_data" >&5
65458$as_echo "$ac_cv_lib_ext_k5crypto_krb5_encrypt_data" >&6; }
65459    if test $ac_cv_lib_ext_k5crypto_krb5_encrypt_data = yes; then
65460  cat >>confdefs.h <<_ACEOF
65461#define HAVE_KRB5_ENCRYPT_DATA 1
65462_ACEOF
65463
65464fi
65465
65466LIBS=$ac_check_lib_ext_save_LIBS
65467
65468if test $ac_cv_lib_ext_k5crypto = yes; then
65469  cat >>confdefs.h <<_ACEOF
65470#define HAVE_LIBK5CRYPTO 1
65471_ACEOF
65472
65473		case "$KRB5_LIBS" in
65474		    *-lk5crypto*)
65475			;;
65476		    *)
65477			KRB5_LIBS="-lk5crypto $KRB5_LIBS"
65478			;;
65479		esac
65480
65481
65482fi
65483
65484
65485  # Heimdal checks.
65486
65487
65488
65489ac_check_lib_ext_save_LIBS=$LIBS
65490LIBS="-lcrypto $KRB5_LIBS  $LIBS"
65491
65492
65493
65494
65495        { $as_echo "$as_me:$LINENO: checking for des_set_key in -lcrypto" >&5
65496$as_echo_n "checking for des_set_key in -lcrypto... " >&6; }
65497if test "${ac_cv_lib_ext_crypto_des_set_key+set}" = set; then
65498  $as_echo_n "(cached) " >&6
65499else
65500  cat >conftest.$ac_ext <<_ACEOF
65501/* confdefs.h.  */
65502_ACEOF
65503cat confdefs.h >>conftest.$ac_ext
65504cat >>conftest.$ac_ext <<_ACEOF
65505/* end confdefs.h.  */
65506
65507/* Override any GCC internal prototype to avoid an error.
65508   Use char because int might match the return type of a GCC
65509   builtin and then its argument prototype would still apply.  */
65510#ifdef __cplusplus
65511extern "C"
65512#endif
65513char des_set_key ();
65514int
65515main ()
65516{
65517return des_set_key ();
65518  ;
65519  return 0;
65520}
65521_ACEOF
65522rm -f conftest.$ac_objext conftest$ac_exeext
65523if { (ac_try="$ac_link"
65524case "(($ac_try" in
65525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65526  *) ac_try_echo=$ac_try;;
65527esac
65528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65529$as_echo "$ac_try_echo") >&5
65530  (eval "$ac_link") 2>conftest.er1
65531  ac_status=$?
65532  grep -v '^ *+' conftest.er1 >conftest.err
65533  rm -f conftest.er1
65534  cat conftest.err >&5
65535  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65536  (exit $ac_status); } && {
65537	 test -z "$ac_c_werror_flag" ||
65538	 test ! -s conftest.err
65539       } && test -s conftest$ac_exeext && {
65540	 test "$cross_compiling" = yes ||
65541	 $as_test_x conftest$ac_exeext
65542       }; then
65543  ac_cv_lib_ext_crypto_des_set_key=yes;
65544		  ac_cv_lib_ext_crypto=yes
65545else
65546  $as_echo "$as_me: failed program was:" >&5
65547sed 's/^/| /' conftest.$ac_ext >&5
65548
65549	ac_cv_lib_ext_crypto_des_set_key=no;
65550		  ac_cv_lib_ext_crypto=no
65551fi
65552
65553rm -rf conftest.dSYM
65554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65555      conftest$ac_exeext conftest.$ac_ext
65556
65557fi
65558{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_crypto_des_set_key" >&5
65559$as_echo "$ac_cv_lib_ext_crypto_des_set_key" >&6; }
65560    if test $ac_cv_lib_ext_crypto_des_set_key = yes; then
65561  cat >>confdefs.h <<_ACEOF
65562#define HAVE_DES_SET_KEY 1
65563_ACEOF
65564
65565fi
65566
65567LIBS=$ac_check_lib_ext_save_LIBS
65568
65569if test $ac_cv_lib_ext_crypto = yes; then
65570  cat >>confdefs.h <<_ACEOF
65571#define HAVE_LIBCRYPTO 1
65572_ACEOF
65573
65574		case "$KRB5_LIBS" in
65575		    *-lcrypto*)
65576			;;
65577		    *)
65578			KRB5_LIBS="-lcrypto $KRB5_LIBS"
65579			;;
65580		esac
65581
65582
65583fi
65584
65585
65586
65587
65588ac_check_lib_ext_save_LIBS=$LIBS
65589LIBS="-lasn1 $KRB5_LIBS  $LIBS"
65590
65591
65592
65593
65594        { $as_echo "$as_me:$LINENO: checking for copy_Authenticator in -lasn1" >&5
65595$as_echo_n "checking for copy_Authenticator in -lasn1... " >&6; }
65596if test "${ac_cv_lib_ext_asn1_copy_Authenticator+set}" = set; then
65597  $as_echo_n "(cached) " >&6
65598else
65599  cat >conftest.$ac_ext <<_ACEOF
65600/* confdefs.h.  */
65601_ACEOF
65602cat confdefs.h >>conftest.$ac_ext
65603cat >>conftest.$ac_ext <<_ACEOF
65604/* end confdefs.h.  */
65605
65606/* Override any GCC internal prototype to avoid an error.
65607   Use char because int might match the return type of a GCC
65608   builtin and then its argument prototype would still apply.  */
65609#ifdef __cplusplus
65610extern "C"
65611#endif
65612char copy_Authenticator ();
65613int
65614main ()
65615{
65616return copy_Authenticator ();
65617  ;
65618  return 0;
65619}
65620_ACEOF
65621rm -f conftest.$ac_objext conftest$ac_exeext
65622if { (ac_try="$ac_link"
65623case "(($ac_try" in
65624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65625  *) ac_try_echo=$ac_try;;
65626esac
65627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65628$as_echo "$ac_try_echo") >&5
65629  (eval "$ac_link") 2>conftest.er1
65630  ac_status=$?
65631  grep -v '^ *+' conftest.er1 >conftest.err
65632  rm -f conftest.er1
65633  cat conftest.err >&5
65634  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65635  (exit $ac_status); } && {
65636	 test -z "$ac_c_werror_flag" ||
65637	 test ! -s conftest.err
65638       } && test -s conftest$ac_exeext && {
65639	 test "$cross_compiling" = yes ||
65640	 $as_test_x conftest$ac_exeext
65641       }; then
65642  ac_cv_lib_ext_asn1_copy_Authenticator=yes;
65643		  ac_cv_lib_ext_asn1=yes
65644else
65645  $as_echo "$as_me: failed program was:" >&5
65646sed 's/^/| /' conftest.$ac_ext >&5
65647
65648	ac_cv_lib_ext_asn1_copy_Authenticator=no;
65649		  ac_cv_lib_ext_asn1=no
65650fi
65651
65652rm -rf conftest.dSYM
65653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65654      conftest$ac_exeext conftest.$ac_ext
65655
65656fi
65657{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_asn1_copy_Authenticator" >&5
65658$as_echo "$ac_cv_lib_ext_asn1_copy_Authenticator" >&6; }
65659    if test $ac_cv_lib_ext_asn1_copy_Authenticator = yes; then
65660  cat >>confdefs.h <<_ACEOF
65661#define HAVE_COPY_AUTHENTICATOR 1
65662_ACEOF
65663
65664fi
65665
65666LIBS=$ac_check_lib_ext_save_LIBS
65667
65668if test $ac_cv_lib_ext_asn1 = yes; then
65669  cat >>confdefs.h <<_ACEOF
65670#define HAVE_LIBASN1 1
65671_ACEOF
65672
65673		case "$KRB5_LIBS" in
65674		    *-lasn1*)
65675			;;
65676		    *)
65677			KRB5_LIBS="-lasn1 $KRB5_LIBS"
65678			;;
65679		esac
65680
65681
65682fi
65683
65684
65685
65686
65687ac_check_lib_ext_save_LIBS=$LIBS
65688LIBS="-lroken $KRB5_LIBS  $LIBS"
65689
65690
65691
65692
65693        { $as_echo "$as_me:$LINENO: checking for roken_getaddrinfo_hostspec in -lroken" >&5
65694$as_echo_n "checking for roken_getaddrinfo_hostspec in -lroken... " >&6; }
65695if test "${ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec+set}" = set; then
65696  $as_echo_n "(cached) " >&6
65697else
65698  cat >conftest.$ac_ext <<_ACEOF
65699/* confdefs.h.  */
65700_ACEOF
65701cat confdefs.h >>conftest.$ac_ext
65702cat >>conftest.$ac_ext <<_ACEOF
65703/* end confdefs.h.  */
65704
65705/* Override any GCC internal prototype to avoid an error.
65706   Use char because int might match the return type of a GCC
65707   builtin and then its argument prototype would still apply.  */
65708#ifdef __cplusplus
65709extern "C"
65710#endif
65711char roken_getaddrinfo_hostspec ();
65712int
65713main ()
65714{
65715return roken_getaddrinfo_hostspec ();
65716  ;
65717  return 0;
65718}
65719_ACEOF
65720rm -f conftest.$ac_objext conftest$ac_exeext
65721if { (ac_try="$ac_link"
65722case "(($ac_try" in
65723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65724  *) ac_try_echo=$ac_try;;
65725esac
65726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65727$as_echo "$ac_try_echo") >&5
65728  (eval "$ac_link") 2>conftest.er1
65729  ac_status=$?
65730  grep -v '^ *+' conftest.er1 >conftest.err
65731  rm -f conftest.er1
65732  cat conftest.err >&5
65733  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65734  (exit $ac_status); } && {
65735	 test -z "$ac_c_werror_flag" ||
65736	 test ! -s conftest.err
65737       } && test -s conftest$ac_exeext && {
65738	 test "$cross_compiling" = yes ||
65739	 $as_test_x conftest$ac_exeext
65740       }; then
65741  ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec=yes;
65742		  ac_cv_lib_ext_roken=yes
65743else
65744  $as_echo "$as_me: failed program was:" >&5
65745sed 's/^/| /' conftest.$ac_ext >&5
65746
65747	ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec=no;
65748		  ac_cv_lib_ext_roken=no
65749fi
65750
65751rm -rf conftest.dSYM
65752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65753      conftest$ac_exeext conftest.$ac_ext
65754
65755fi
65756{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec" >&5
65757$as_echo "$ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec" >&6; }
65758    if test $ac_cv_lib_ext_roken_roken_getaddrinfo_hostspec = yes; then
65759  cat >>confdefs.h <<_ACEOF
65760#define HAVE_ROKEN_GETADDRINFO_HOSTSPEC 1
65761_ACEOF
65762
65763fi
65764
65765LIBS=$ac_check_lib_ext_save_LIBS
65766
65767if test $ac_cv_lib_ext_roken = yes; then
65768  cat >>confdefs.h <<_ACEOF
65769#define HAVE_LIBROKEN 1
65770_ACEOF
65771
65772		case "$KRB5_LIBS" in
65773		    *-lroken*)
65774			;;
65775		    *)
65776			KRB5_LIBS="-lroken $KRB5_LIBS"
65777			;;
65778		esac
65779
65780
65781fi
65782
65783
65784  # Heimdal checks. On static Heimdal gssapi must be linked before krb5.
65785
65786
65787
65788ac_check_lib_ext_save_LIBS=$LIBS
65789LIBS="-lgssapi $KRB5_LIBS  $LIBS"
65790
65791
65792
65793
65794        { $as_echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi" >&5
65795$as_echo_n "checking for gss_display_status in -lgssapi... " >&6; }
65796if test "${ac_cv_lib_ext_gssapi_gss_display_status+set}" = set; then
65797  $as_echo_n "(cached) " >&6
65798else
65799  cat >conftest.$ac_ext <<_ACEOF
65800/* confdefs.h.  */
65801_ACEOF
65802cat confdefs.h >>conftest.$ac_ext
65803cat >>conftest.$ac_ext <<_ACEOF
65804/* end confdefs.h.  */
65805
65806/* Override any GCC internal prototype to avoid an error.
65807   Use char because int might match the return type of a GCC
65808   builtin and then its argument prototype would still apply.  */
65809#ifdef __cplusplus
65810extern "C"
65811#endif
65812char gss_display_status ();
65813int
65814main ()
65815{
65816return gss_display_status ();
65817  ;
65818  return 0;
65819}
65820_ACEOF
65821rm -f conftest.$ac_objext conftest$ac_exeext
65822if { (ac_try="$ac_link"
65823case "(($ac_try" in
65824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65825  *) ac_try_echo=$ac_try;;
65826esac
65827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65828$as_echo "$ac_try_echo") >&5
65829  (eval "$ac_link") 2>conftest.er1
65830  ac_status=$?
65831  grep -v '^ *+' conftest.er1 >conftest.err
65832  rm -f conftest.er1
65833  cat conftest.err >&5
65834  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65835  (exit $ac_status); } && {
65836	 test -z "$ac_c_werror_flag" ||
65837	 test ! -s conftest.err
65838       } && test -s conftest$ac_exeext && {
65839	 test "$cross_compiling" = yes ||
65840	 $as_test_x conftest$ac_exeext
65841       }; then
65842  ac_cv_lib_ext_gssapi_gss_display_status=yes;
65843		  ac_cv_lib_ext_gssapi=yes
65844else
65845  $as_echo "$as_me: failed program was:" >&5
65846sed 's/^/| /' conftest.$ac_ext >&5
65847
65848	ac_cv_lib_ext_gssapi_gss_display_status=no;
65849		  ac_cv_lib_ext_gssapi=no
65850fi
65851
65852rm -rf conftest.dSYM
65853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65854      conftest$ac_exeext conftest.$ac_ext
65855
65856fi
65857{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_gssapi_gss_display_status" >&5
65858$as_echo "$ac_cv_lib_ext_gssapi_gss_display_status" >&6; }
65859    if test $ac_cv_lib_ext_gssapi_gss_display_status = yes; then
65860  cat >>confdefs.h <<_ACEOF
65861#define HAVE_GSS_DISPLAY_STATUS 1
65862_ACEOF
65863
65864fi
65865
65866LIBS=$ac_check_lib_ext_save_LIBS
65867
65868if test $ac_cv_lib_ext_gssapi = yes; then
65869  cat >>confdefs.h <<_ACEOF
65870#define HAVE_LIBGSSAPI 1
65871_ACEOF
65872
65873		case "$KRB5_LIBS" in
65874		    *-lgssapi*)
65875			;;
65876		    *)
65877			KRB5_LIBS="-lgssapi $KRB5_LIBS"
65878			;;
65879		esac
65880		have_gssapi=yes
65881
65882fi
65883
65884
65885  ########################################################
65886  # now see if we can find the krb5 libs in standard paths
65887  # or as specified above
65888
65889
65890
65891ac_check_lib_ext_save_LIBS=$LIBS
65892LIBS="-lkrb5 $KRB5_LIBS  $LIBS"
65893
65894
65895
65896
65897        { $as_echo "$as_me:$LINENO: checking for krb5_mk_req_extended in -lkrb5" >&5
65898$as_echo_n "checking for krb5_mk_req_extended in -lkrb5... " >&6; }
65899if test "${ac_cv_lib_ext_krb5_krb5_mk_req_extended+set}" = set; then
65900  $as_echo_n "(cached) " >&6
65901else
65902  cat >conftest.$ac_ext <<_ACEOF
65903/* confdefs.h.  */
65904_ACEOF
65905cat confdefs.h >>conftest.$ac_ext
65906cat >>conftest.$ac_ext <<_ACEOF
65907/* end confdefs.h.  */
65908
65909/* Override any GCC internal prototype to avoid an error.
65910   Use char because int might match the return type of a GCC
65911   builtin and then its argument prototype would still apply.  */
65912#ifdef __cplusplus
65913extern "C"
65914#endif
65915char krb5_mk_req_extended ();
65916int
65917main ()
65918{
65919return krb5_mk_req_extended ();
65920  ;
65921  return 0;
65922}
65923_ACEOF
65924rm -f conftest.$ac_objext conftest$ac_exeext
65925if { (ac_try="$ac_link"
65926case "(($ac_try" in
65927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65928  *) ac_try_echo=$ac_try;;
65929esac
65930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65931$as_echo "$ac_try_echo") >&5
65932  (eval "$ac_link") 2>conftest.er1
65933  ac_status=$?
65934  grep -v '^ *+' conftest.er1 >conftest.err
65935  rm -f conftest.er1
65936  cat conftest.err >&5
65937  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65938  (exit $ac_status); } && {
65939	 test -z "$ac_c_werror_flag" ||
65940	 test ! -s conftest.err
65941       } && test -s conftest$ac_exeext && {
65942	 test "$cross_compiling" = yes ||
65943	 $as_test_x conftest$ac_exeext
65944       }; then
65945  ac_cv_lib_ext_krb5_krb5_mk_req_extended=yes;
65946		  ac_cv_lib_ext_krb5=yes
65947else
65948  $as_echo "$as_me: failed program was:" >&5
65949sed 's/^/| /' conftest.$ac_ext >&5
65950
65951	ac_cv_lib_ext_krb5_krb5_mk_req_extended=no;
65952		  ac_cv_lib_ext_krb5=no
65953fi
65954
65955rm -rf conftest.dSYM
65956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65957      conftest$ac_exeext conftest.$ac_ext
65958
65959fi
65960{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_krb5_krb5_mk_req_extended" >&5
65961$as_echo "$ac_cv_lib_ext_krb5_krb5_mk_req_extended" >&6; }
65962    if test $ac_cv_lib_ext_krb5_krb5_mk_req_extended = yes; then
65963  cat >>confdefs.h <<_ACEOF
65964#define HAVE_KRB5_MK_REQ_EXTENDED 1
65965_ACEOF
65966
65967fi
65968
65969LIBS=$ac_check_lib_ext_save_LIBS
65970
65971if test $ac_cv_lib_ext_krb5 = yes; then
65972  cat >>confdefs.h <<_ACEOF
65973#define HAVE_LIBKRB5 1
65974_ACEOF
65975
65976		case "$KRB5_LIBS" in
65977		    *-lkrb5*)
65978			;;
65979		    *)
65980			KRB5_LIBS="-lkrb5 $KRB5_LIBS"
65981			;;
65982		esac
65983
65984
65985fi
65986
65987
65988
65989
65990ac_check_lib_ext_save_LIBS=$LIBS
65991LIBS="-lkrb5 $KRB5_LIBS  $LIBS"
65992
65993
65994
65995
65996        { $as_echo "$as_me:$LINENO: checking for krb5_kt_compare in -lkrb5" >&5
65997$as_echo_n "checking for krb5_kt_compare in -lkrb5... " >&6; }
65998if test "${ac_cv_lib_ext_krb5_krb5_kt_compare+set}" = set; then
65999  $as_echo_n "(cached) " >&6
66000else
66001  cat >conftest.$ac_ext <<_ACEOF
66002/* confdefs.h.  */
66003_ACEOF
66004cat confdefs.h >>conftest.$ac_ext
66005cat >>conftest.$ac_ext <<_ACEOF
66006/* end confdefs.h.  */
66007
66008/* Override any GCC internal prototype to avoid an error.
66009   Use char because int might match the return type of a GCC
66010   builtin and then its argument prototype would still apply.  */
66011#ifdef __cplusplus
66012extern "C"
66013#endif
66014char krb5_kt_compare ();
66015int
66016main ()
66017{
66018return krb5_kt_compare ();
66019  ;
66020  return 0;
66021}
66022_ACEOF
66023rm -f conftest.$ac_objext conftest$ac_exeext
66024if { (ac_try="$ac_link"
66025case "(($ac_try" in
66026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66027  *) ac_try_echo=$ac_try;;
66028esac
66029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66030$as_echo "$ac_try_echo") >&5
66031  (eval "$ac_link") 2>conftest.er1
66032  ac_status=$?
66033  grep -v '^ *+' conftest.er1 >conftest.err
66034  rm -f conftest.er1
66035  cat conftest.err >&5
66036  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66037  (exit $ac_status); } && {
66038	 test -z "$ac_c_werror_flag" ||
66039	 test ! -s conftest.err
66040       } && test -s conftest$ac_exeext && {
66041	 test "$cross_compiling" = yes ||
66042	 $as_test_x conftest$ac_exeext
66043       }; then
66044  ac_cv_lib_ext_krb5_krb5_kt_compare=yes;
66045		  ac_cv_lib_ext_krb5=yes
66046else
66047  $as_echo "$as_me: failed program was:" >&5
66048sed 's/^/| /' conftest.$ac_ext >&5
66049
66050	ac_cv_lib_ext_krb5_krb5_kt_compare=no;
66051		  ac_cv_lib_ext_krb5=no
66052fi
66053
66054rm -rf conftest.dSYM
66055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66056      conftest$ac_exeext conftest.$ac_ext
66057
66058fi
66059{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_krb5_krb5_kt_compare" >&5
66060$as_echo "$ac_cv_lib_ext_krb5_krb5_kt_compare" >&6; }
66061    if test $ac_cv_lib_ext_krb5_krb5_kt_compare = yes; then
66062  cat >>confdefs.h <<_ACEOF
66063#define HAVE_KRB5_KT_COMPARE 1
66064_ACEOF
66065
66066fi
66067
66068LIBS=$ac_check_lib_ext_save_LIBS
66069
66070if test $ac_cv_lib_ext_krb5 = yes; then
66071  cat >>confdefs.h <<_ACEOF
66072#define HAVE_LIBKRB5 1
66073_ACEOF
66074
66075		case "$KRB5_LIBS" in
66076		    *-lkrb5*)
66077			;;
66078		    *)
66079			KRB5_LIBS="-lkrb5 $KRB5_LIBS"
66080			;;
66081		esac
66082
66083
66084fi
66085
66086
66087  ########################################################
66088  # now see if we can find the gssapi libs in standard paths
66089  if test x"$have_gssapi" != x"yes"; then
66090
66091
66092
66093ac_check_lib_ext_save_LIBS=$LIBS
66094LIBS="-lgssapi_krb5 $KRB5_LIBS  $LIBS"
66095
66096
66097
66098
66099        { $as_echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi_krb5" >&5
66100$as_echo_n "checking for gss_display_status in -lgssapi_krb5... " >&6; }
66101if test "${ac_cv_lib_ext_gssapi_krb5_gss_display_status+set}" = set; then
66102  $as_echo_n "(cached) " >&6
66103else
66104  cat >conftest.$ac_ext <<_ACEOF
66105/* confdefs.h.  */
66106_ACEOF
66107cat confdefs.h >>conftest.$ac_ext
66108cat >>conftest.$ac_ext <<_ACEOF
66109/* end confdefs.h.  */
66110
66111/* Override any GCC internal prototype to avoid an error.
66112   Use char because int might match the return type of a GCC
66113   builtin and then its argument prototype would still apply.  */
66114#ifdef __cplusplus
66115extern "C"
66116#endif
66117char gss_display_status ();
66118int
66119main ()
66120{
66121return gss_display_status ();
66122  ;
66123  return 0;
66124}
66125_ACEOF
66126rm -f conftest.$ac_objext conftest$ac_exeext
66127if { (ac_try="$ac_link"
66128case "(($ac_try" in
66129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66130  *) ac_try_echo=$ac_try;;
66131esac
66132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66133$as_echo "$ac_try_echo") >&5
66134  (eval "$ac_link") 2>conftest.er1
66135  ac_status=$?
66136  grep -v '^ *+' conftest.er1 >conftest.err
66137  rm -f conftest.er1
66138  cat conftest.err >&5
66139  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66140  (exit $ac_status); } && {
66141	 test -z "$ac_c_werror_flag" ||
66142	 test ! -s conftest.err
66143       } && test -s conftest$ac_exeext && {
66144	 test "$cross_compiling" = yes ||
66145	 $as_test_x conftest$ac_exeext
66146       }; then
66147  ac_cv_lib_ext_gssapi_krb5_gss_display_status=yes;
66148		  ac_cv_lib_ext_gssapi_krb5=yes
66149else
66150  $as_echo "$as_me: failed program was:" >&5
66151sed 's/^/| /' conftest.$ac_ext >&5
66152
66153	ac_cv_lib_ext_gssapi_krb5_gss_display_status=no;
66154		  ac_cv_lib_ext_gssapi_krb5=no
66155fi
66156
66157rm -rf conftest.dSYM
66158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66159      conftest$ac_exeext conftest.$ac_ext
66160
66161fi
66162{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_gssapi_krb5_gss_display_status" >&5
66163$as_echo "$ac_cv_lib_ext_gssapi_krb5_gss_display_status" >&6; }
66164    if test $ac_cv_lib_ext_gssapi_krb5_gss_display_status = yes; then
66165  cat >>confdefs.h <<_ACEOF
66166#define HAVE_GSS_DISPLAY_STATUS 1
66167_ACEOF
66168
66169fi
66170
66171LIBS=$ac_check_lib_ext_save_LIBS
66172
66173if test $ac_cv_lib_ext_gssapi_krb5 = yes; then
66174  cat >>confdefs.h <<_ACEOF
66175#define HAVE_LIBGSSAPI_KRB5 1
66176_ACEOF
66177
66178		case "$KRB5_LIBS" in
66179		    *-lgssapi_krb5*)
66180			;;
66181		    *)
66182			KRB5_LIBS="-lgssapi_krb5 $KRB5_LIBS"
66183			;;
66184		esac
66185		have_gssapi=yes
66186
66187fi
66188
66189  fi
66190
66191
66192
66193
66194    ac_check_func_ext_save_LIBS=$LIBS
66195    LIBS="$KRB5_LIBS $LIBS"
66196        { $as_echo "$as_me:$LINENO: checking for krb5_set_real_time" >&5
66197$as_echo_n "checking for krb5_set_real_time... " >&6; }
66198if test "${ac_cv_func_ext_krb5_set_real_time+set}" = set; then
66199  $as_echo_n "(cached) " >&6
66200else
66201  cat >conftest.$ac_ext <<_ACEOF
66202/* confdefs.h.  */
66203_ACEOF
66204cat confdefs.h >>conftest.$ac_ext
66205cat >>conftest.$ac_ext <<_ACEOF
66206/* end confdefs.h.  */
66207/* Define krb5_set_real_time to an innocuous variant, in case <limits.h> declares krb5_set_real_time.
66208   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66209#define krb5_set_real_time innocuous_krb5_set_real_time
66210
66211/* System header to define __stub macros and hopefully few prototypes,
66212    which can conflict with char krb5_set_real_time (); below.
66213    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66214    <limits.h> exists even on freestanding compilers.  */
66215
66216#ifdef __STDC__
66217# include <limits.h>
66218#else
66219# include <assert.h>
66220#endif
66221
66222#undef krb5_set_real_time
66223
66224/* Override any GCC internal prototype to avoid an error.
66225   Use char because int might match the return type of a GCC
66226   builtin and then its argument prototype would still apply.  */
66227#ifdef __cplusplus
66228extern "C"
66229#endif
66230char krb5_set_real_time ();
66231/* The GNU C library defines this for functions which it implements
66232    to always fail with ENOSYS.  Some functions are actually named
66233    something starting with __ and the normal name is an alias.  */
66234#if defined __stub_krb5_set_real_time || defined __stub___krb5_set_real_time
66235choke me
66236#endif
66237
66238int
66239main ()
66240{
66241return krb5_set_real_time ();
66242  ;
66243  return 0;
66244}
66245_ACEOF
66246rm -f conftest.$ac_objext conftest$ac_exeext
66247if { (ac_try="$ac_link"
66248case "(($ac_try" in
66249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66250  *) ac_try_echo=$ac_try;;
66251esac
66252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66253$as_echo "$ac_try_echo") >&5
66254  (eval "$ac_link") 2>conftest.er1
66255  ac_status=$?
66256  grep -v '^ *+' conftest.er1 >conftest.err
66257  rm -f conftest.er1
66258  cat conftest.err >&5
66259  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66260  (exit $ac_status); } && {
66261	 test -z "$ac_c_werror_flag" ||
66262	 test ! -s conftest.err
66263       } && test -s conftest$ac_exeext && {
66264	 test "$cross_compiling" = yes ||
66265	 $as_test_x conftest$ac_exeext
66266       }; then
66267  ac_cv_func_ext_krb5_set_real_time=yes
66268else
66269  $as_echo "$as_me: failed program was:" >&5
66270sed 's/^/| /' conftest.$ac_ext >&5
66271
66272	ac_cv_func_ext_krb5_set_real_time=no
66273fi
66274
66275rm -rf conftest.dSYM
66276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66277      conftest$ac_exeext conftest.$ac_ext
66278fi
66279{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_set_real_time" >&5
66280$as_echo "$ac_cv_func_ext_krb5_set_real_time" >&6; }
66281    LIBS=$ac_check_func_ext_save_LIBS
66282    if test $ac_cv_func_ext_krb5_set_real_time = yes; then
66283  cat >>confdefs.h <<_ACEOF
66284#define HAVE_KRB5_SET_REAL_TIME 1
66285_ACEOF
66286
66287fi
66288
66289
66290
66291
66292    ac_check_func_ext_save_LIBS=$LIBS
66293    LIBS="$KRB5_LIBS $LIBS"
66294        { $as_echo "$as_me:$LINENO: checking for krb5_set_default_in_tkt_etypes" >&5
66295$as_echo_n "checking for krb5_set_default_in_tkt_etypes... " >&6; }
66296if test "${ac_cv_func_ext_krb5_set_default_in_tkt_etypes+set}" = set; then
66297  $as_echo_n "(cached) " >&6
66298else
66299  cat >conftest.$ac_ext <<_ACEOF
66300/* confdefs.h.  */
66301_ACEOF
66302cat confdefs.h >>conftest.$ac_ext
66303cat >>conftest.$ac_ext <<_ACEOF
66304/* end confdefs.h.  */
66305/* Define krb5_set_default_in_tkt_etypes to an innocuous variant, in case <limits.h> declares krb5_set_default_in_tkt_etypes.
66306   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66307#define krb5_set_default_in_tkt_etypes innocuous_krb5_set_default_in_tkt_etypes
66308
66309/* System header to define __stub macros and hopefully few prototypes,
66310    which can conflict with char krb5_set_default_in_tkt_etypes (); below.
66311    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66312    <limits.h> exists even on freestanding compilers.  */
66313
66314#ifdef __STDC__
66315# include <limits.h>
66316#else
66317# include <assert.h>
66318#endif
66319
66320#undef krb5_set_default_in_tkt_etypes
66321
66322/* Override any GCC internal prototype to avoid an error.
66323   Use char because int might match the return type of a GCC
66324   builtin and then its argument prototype would still apply.  */
66325#ifdef __cplusplus
66326extern "C"
66327#endif
66328char krb5_set_default_in_tkt_etypes ();
66329/* The GNU C library defines this for functions which it implements
66330    to always fail with ENOSYS.  Some functions are actually named
66331    something starting with __ and the normal name is an alias.  */
66332#if defined __stub_krb5_set_default_in_tkt_etypes || defined __stub___krb5_set_default_in_tkt_etypes
66333choke me
66334#endif
66335
66336int
66337main ()
66338{
66339return krb5_set_default_in_tkt_etypes ();
66340  ;
66341  return 0;
66342}
66343_ACEOF
66344rm -f conftest.$ac_objext conftest$ac_exeext
66345if { (ac_try="$ac_link"
66346case "(($ac_try" in
66347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66348  *) ac_try_echo=$ac_try;;
66349esac
66350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66351$as_echo "$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  $as_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	 test "$cross_compiling" = yes ||
66363	 $as_test_x conftest$ac_exeext
66364       }; then
66365  ac_cv_func_ext_krb5_set_default_in_tkt_etypes=yes
66366else
66367  $as_echo "$as_me: failed program was:" >&5
66368sed 's/^/| /' conftest.$ac_ext >&5
66369
66370	ac_cv_func_ext_krb5_set_default_in_tkt_etypes=no
66371fi
66372
66373rm -rf conftest.dSYM
66374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66375      conftest$ac_exeext conftest.$ac_ext
66376fi
66377{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_set_default_in_tkt_etypes" >&5
66378$as_echo "$ac_cv_func_ext_krb5_set_default_in_tkt_etypes" >&6; }
66379    LIBS=$ac_check_func_ext_save_LIBS
66380    if test $ac_cv_func_ext_krb5_set_default_in_tkt_etypes = yes; then
66381  cat >>confdefs.h <<_ACEOF
66382#define HAVE_KRB5_SET_DEFAULT_IN_TKT_ETYPES 1
66383_ACEOF
66384
66385fi
66386
66387
66388
66389
66390    ac_check_func_ext_save_LIBS=$LIBS
66391    LIBS="$KRB5_LIBS $LIBS"
66392        { $as_echo "$as_me:$LINENO: checking for krb5_set_default_tgs_enctypes" >&5
66393$as_echo_n "checking for krb5_set_default_tgs_enctypes... " >&6; }
66394if test "${ac_cv_func_ext_krb5_set_default_tgs_enctypes+set}" = set; then
66395  $as_echo_n "(cached) " >&6
66396else
66397  cat >conftest.$ac_ext <<_ACEOF
66398/* confdefs.h.  */
66399_ACEOF
66400cat confdefs.h >>conftest.$ac_ext
66401cat >>conftest.$ac_ext <<_ACEOF
66402/* end confdefs.h.  */
66403/* Define krb5_set_default_tgs_enctypes to an innocuous variant, in case <limits.h> declares krb5_set_default_tgs_enctypes.
66404   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66405#define krb5_set_default_tgs_enctypes innocuous_krb5_set_default_tgs_enctypes
66406
66407/* System header to define __stub macros and hopefully few prototypes,
66408    which can conflict with char krb5_set_default_tgs_enctypes (); below.
66409    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66410    <limits.h> exists even on freestanding compilers.  */
66411
66412#ifdef __STDC__
66413# include <limits.h>
66414#else
66415# include <assert.h>
66416#endif
66417
66418#undef krb5_set_default_tgs_enctypes
66419
66420/* Override any GCC internal prototype to avoid an error.
66421   Use char because int might match the return type of a GCC
66422   builtin and then its argument prototype would still apply.  */
66423#ifdef __cplusplus
66424extern "C"
66425#endif
66426char krb5_set_default_tgs_enctypes ();
66427/* The GNU C library defines this for functions which it implements
66428    to always fail with ENOSYS.  Some functions are actually named
66429    something starting with __ and the normal name is an alias.  */
66430#if defined __stub_krb5_set_default_tgs_enctypes || defined __stub___krb5_set_default_tgs_enctypes
66431choke me
66432#endif
66433
66434int
66435main ()
66436{
66437return krb5_set_default_tgs_enctypes ();
66438  ;
66439  return 0;
66440}
66441_ACEOF
66442rm -f conftest.$ac_objext conftest$ac_exeext
66443if { (ac_try="$ac_link"
66444case "(($ac_try" in
66445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66446  *) ac_try_echo=$ac_try;;
66447esac
66448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66449$as_echo "$ac_try_echo") >&5
66450  (eval "$ac_link") 2>conftest.er1
66451  ac_status=$?
66452  grep -v '^ *+' conftest.er1 >conftest.err
66453  rm -f conftest.er1
66454  cat conftest.err >&5
66455  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66456  (exit $ac_status); } && {
66457	 test -z "$ac_c_werror_flag" ||
66458	 test ! -s conftest.err
66459       } && test -s conftest$ac_exeext && {
66460	 test "$cross_compiling" = yes ||
66461	 $as_test_x conftest$ac_exeext
66462       }; then
66463  ac_cv_func_ext_krb5_set_default_tgs_enctypes=yes
66464else
66465  $as_echo "$as_me: failed program was:" >&5
66466sed 's/^/| /' conftest.$ac_ext >&5
66467
66468	ac_cv_func_ext_krb5_set_default_tgs_enctypes=no
66469fi
66470
66471rm -rf conftest.dSYM
66472rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66473      conftest$ac_exeext conftest.$ac_ext
66474fi
66475{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_set_default_tgs_enctypes" >&5
66476$as_echo "$ac_cv_func_ext_krb5_set_default_tgs_enctypes" >&6; }
66477    LIBS=$ac_check_func_ext_save_LIBS
66478    if test $ac_cv_func_ext_krb5_set_default_tgs_enctypes = yes; then
66479  cat >>confdefs.h <<_ACEOF
66480#define HAVE_KRB5_SET_DEFAULT_TGS_ENCTYPES 1
66481_ACEOF
66482
66483fi
66484
66485
66486
66487
66488    ac_check_func_ext_save_LIBS=$LIBS
66489    LIBS="$KRB5_LIBS $LIBS"
66490        { $as_echo "$as_me:$LINENO: checking for krb5_set_default_tgs_ktypes" >&5
66491$as_echo_n "checking for krb5_set_default_tgs_ktypes... " >&6; }
66492if test "${ac_cv_func_ext_krb5_set_default_tgs_ktypes+set}" = set; then
66493  $as_echo_n "(cached) " >&6
66494else
66495  cat >conftest.$ac_ext <<_ACEOF
66496/* confdefs.h.  */
66497_ACEOF
66498cat confdefs.h >>conftest.$ac_ext
66499cat >>conftest.$ac_ext <<_ACEOF
66500/* end confdefs.h.  */
66501/* Define krb5_set_default_tgs_ktypes to an innocuous variant, in case <limits.h> declares krb5_set_default_tgs_ktypes.
66502   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66503#define krb5_set_default_tgs_ktypes innocuous_krb5_set_default_tgs_ktypes
66504
66505/* System header to define __stub macros and hopefully few prototypes,
66506    which can conflict with char krb5_set_default_tgs_ktypes (); below.
66507    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66508    <limits.h> exists even on freestanding compilers.  */
66509
66510#ifdef __STDC__
66511# include <limits.h>
66512#else
66513# include <assert.h>
66514#endif
66515
66516#undef krb5_set_default_tgs_ktypes
66517
66518/* Override any GCC internal prototype to avoid an error.
66519   Use char because int might match the return type of a GCC
66520   builtin and then its argument prototype would still apply.  */
66521#ifdef __cplusplus
66522extern "C"
66523#endif
66524char krb5_set_default_tgs_ktypes ();
66525/* The GNU C library defines this for functions which it implements
66526    to always fail with ENOSYS.  Some functions are actually named
66527    something starting with __ and the normal name is an alias.  */
66528#if defined __stub_krb5_set_default_tgs_ktypes || defined __stub___krb5_set_default_tgs_ktypes
66529choke me
66530#endif
66531
66532int
66533main ()
66534{
66535return krb5_set_default_tgs_ktypes ();
66536  ;
66537  return 0;
66538}
66539_ACEOF
66540rm -f conftest.$ac_objext conftest$ac_exeext
66541if { (ac_try="$ac_link"
66542case "(($ac_try" in
66543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66544  *) ac_try_echo=$ac_try;;
66545esac
66546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66547$as_echo "$ac_try_echo") >&5
66548  (eval "$ac_link") 2>conftest.er1
66549  ac_status=$?
66550  grep -v '^ *+' conftest.er1 >conftest.err
66551  rm -f conftest.er1
66552  cat conftest.err >&5
66553  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66554  (exit $ac_status); } && {
66555	 test -z "$ac_c_werror_flag" ||
66556	 test ! -s conftest.err
66557       } && test -s conftest$ac_exeext && {
66558	 test "$cross_compiling" = yes ||
66559	 $as_test_x conftest$ac_exeext
66560       }; then
66561  ac_cv_func_ext_krb5_set_default_tgs_ktypes=yes
66562else
66563  $as_echo "$as_me: failed program was:" >&5
66564sed 's/^/| /' conftest.$ac_ext >&5
66565
66566	ac_cv_func_ext_krb5_set_default_tgs_ktypes=no
66567fi
66568
66569rm -rf conftest.dSYM
66570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66571      conftest$ac_exeext conftest.$ac_ext
66572fi
66573{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_set_default_tgs_ktypes" >&5
66574$as_echo "$ac_cv_func_ext_krb5_set_default_tgs_ktypes" >&6; }
66575    LIBS=$ac_check_func_ext_save_LIBS
66576    if test $ac_cv_func_ext_krb5_set_default_tgs_ktypes = yes; then
66577  cat >>confdefs.h <<_ACEOF
66578#define HAVE_KRB5_SET_DEFAULT_TGS_KTYPES 1
66579_ACEOF
66580
66581fi
66582
66583
66584
66585
66586    ac_check_func_ext_save_LIBS=$LIBS
66587    LIBS="$KRB5_LIBS $LIBS"
66588        { $as_echo "$as_me:$LINENO: checking for krb5_principal2salt" >&5
66589$as_echo_n "checking for krb5_principal2salt... " >&6; }
66590if test "${ac_cv_func_ext_krb5_principal2salt+set}" = set; then
66591  $as_echo_n "(cached) " >&6
66592else
66593  cat >conftest.$ac_ext <<_ACEOF
66594/* confdefs.h.  */
66595_ACEOF
66596cat confdefs.h >>conftest.$ac_ext
66597cat >>conftest.$ac_ext <<_ACEOF
66598/* end confdefs.h.  */
66599/* Define krb5_principal2salt to an innocuous variant, in case <limits.h> declares krb5_principal2salt.
66600   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66601#define krb5_principal2salt innocuous_krb5_principal2salt
66602
66603/* System header to define __stub macros and hopefully few prototypes,
66604    which can conflict with char krb5_principal2salt (); below.
66605    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66606    <limits.h> exists even on freestanding compilers.  */
66607
66608#ifdef __STDC__
66609# include <limits.h>
66610#else
66611# include <assert.h>
66612#endif
66613
66614#undef krb5_principal2salt
66615
66616/* Override any GCC internal prototype to avoid an error.
66617   Use char because int might match the return type of a GCC
66618   builtin and then its argument prototype would still apply.  */
66619#ifdef __cplusplus
66620extern "C"
66621#endif
66622char krb5_principal2salt ();
66623/* The GNU C library defines this for functions which it implements
66624    to always fail with ENOSYS.  Some functions are actually named
66625    something starting with __ and the normal name is an alias.  */
66626#if defined __stub_krb5_principal2salt || defined __stub___krb5_principal2salt
66627choke me
66628#endif
66629
66630int
66631main ()
66632{
66633return krb5_principal2salt ();
66634  ;
66635  return 0;
66636}
66637_ACEOF
66638rm -f conftest.$ac_objext conftest$ac_exeext
66639if { (ac_try="$ac_link"
66640case "(($ac_try" in
66641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66642  *) ac_try_echo=$ac_try;;
66643esac
66644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66645$as_echo "$ac_try_echo") >&5
66646  (eval "$ac_link") 2>conftest.er1
66647  ac_status=$?
66648  grep -v '^ *+' conftest.er1 >conftest.err
66649  rm -f conftest.er1
66650  cat conftest.err >&5
66651  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66652  (exit $ac_status); } && {
66653	 test -z "$ac_c_werror_flag" ||
66654	 test ! -s conftest.err
66655       } && test -s conftest$ac_exeext && {
66656	 test "$cross_compiling" = yes ||
66657	 $as_test_x conftest$ac_exeext
66658       }; then
66659  ac_cv_func_ext_krb5_principal2salt=yes
66660else
66661  $as_echo "$as_me: failed program was:" >&5
66662sed 's/^/| /' conftest.$ac_ext >&5
66663
66664	ac_cv_func_ext_krb5_principal2salt=no
66665fi
66666
66667rm -rf conftest.dSYM
66668rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66669      conftest$ac_exeext conftest.$ac_ext
66670fi
66671{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_principal2salt" >&5
66672$as_echo "$ac_cv_func_ext_krb5_principal2salt" >&6; }
66673    LIBS=$ac_check_func_ext_save_LIBS
66674    if test $ac_cv_func_ext_krb5_principal2salt = yes; then
66675  cat >>confdefs.h <<_ACEOF
66676#define HAVE_KRB5_PRINCIPAL2SALT 1
66677_ACEOF
66678
66679fi
66680
66681
66682
66683
66684    ac_check_func_ext_save_LIBS=$LIBS
66685    LIBS="$KRB5_LIBS $LIBS"
66686        { $as_echo "$as_me:$LINENO: checking for krb5_use_enctype" >&5
66687$as_echo_n "checking for krb5_use_enctype... " >&6; }
66688if test "${ac_cv_func_ext_krb5_use_enctype+set}" = set; then
66689  $as_echo_n "(cached) " >&6
66690else
66691  cat >conftest.$ac_ext <<_ACEOF
66692/* confdefs.h.  */
66693_ACEOF
66694cat confdefs.h >>conftest.$ac_ext
66695cat >>conftest.$ac_ext <<_ACEOF
66696/* end confdefs.h.  */
66697/* Define krb5_use_enctype to an innocuous variant, in case <limits.h> declares krb5_use_enctype.
66698   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66699#define krb5_use_enctype innocuous_krb5_use_enctype
66700
66701/* System header to define __stub macros and hopefully few prototypes,
66702    which can conflict with char krb5_use_enctype (); below.
66703    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66704    <limits.h> exists even on freestanding compilers.  */
66705
66706#ifdef __STDC__
66707# include <limits.h>
66708#else
66709# include <assert.h>
66710#endif
66711
66712#undef krb5_use_enctype
66713
66714/* Override any GCC internal prototype to avoid an error.
66715   Use char because int might match the return type of a GCC
66716   builtin and then its argument prototype would still apply.  */
66717#ifdef __cplusplus
66718extern "C"
66719#endif
66720char krb5_use_enctype ();
66721/* The GNU C library defines this for functions which it implements
66722    to always fail with ENOSYS.  Some functions are actually named
66723    something starting with __ and the normal name is an alias.  */
66724#if defined __stub_krb5_use_enctype || defined __stub___krb5_use_enctype
66725choke me
66726#endif
66727
66728int
66729main ()
66730{
66731return krb5_use_enctype ();
66732  ;
66733  return 0;
66734}
66735_ACEOF
66736rm -f conftest.$ac_objext conftest$ac_exeext
66737if { (ac_try="$ac_link"
66738case "(($ac_try" in
66739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66740  *) ac_try_echo=$ac_try;;
66741esac
66742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66743$as_echo "$ac_try_echo") >&5
66744  (eval "$ac_link") 2>conftest.er1
66745  ac_status=$?
66746  grep -v '^ *+' conftest.er1 >conftest.err
66747  rm -f conftest.er1
66748  cat conftest.err >&5
66749  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66750  (exit $ac_status); } && {
66751	 test -z "$ac_c_werror_flag" ||
66752	 test ! -s conftest.err
66753       } && test -s conftest$ac_exeext && {
66754	 test "$cross_compiling" = yes ||
66755	 $as_test_x conftest$ac_exeext
66756       }; then
66757  ac_cv_func_ext_krb5_use_enctype=yes
66758else
66759  $as_echo "$as_me: failed program was:" >&5
66760sed 's/^/| /' conftest.$ac_ext >&5
66761
66762	ac_cv_func_ext_krb5_use_enctype=no
66763fi
66764
66765rm -rf conftest.dSYM
66766rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66767      conftest$ac_exeext conftest.$ac_ext
66768fi
66769{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_use_enctype" >&5
66770$as_echo "$ac_cv_func_ext_krb5_use_enctype" >&6; }
66771    LIBS=$ac_check_func_ext_save_LIBS
66772    if test $ac_cv_func_ext_krb5_use_enctype = yes; then
66773  cat >>confdefs.h <<_ACEOF
66774#define HAVE_KRB5_USE_ENCTYPE 1
66775_ACEOF
66776
66777fi
66778
66779
66780
66781
66782    ac_check_func_ext_save_LIBS=$LIBS
66783    LIBS="$KRB5_LIBS $LIBS"
66784        { $as_echo "$as_me:$LINENO: checking for krb5_string_to_key" >&5
66785$as_echo_n "checking for krb5_string_to_key... " >&6; }
66786if test "${ac_cv_func_ext_krb5_string_to_key+set}" = set; then
66787  $as_echo_n "(cached) " >&6
66788else
66789  cat >conftest.$ac_ext <<_ACEOF
66790/* confdefs.h.  */
66791_ACEOF
66792cat confdefs.h >>conftest.$ac_ext
66793cat >>conftest.$ac_ext <<_ACEOF
66794/* end confdefs.h.  */
66795/* Define krb5_string_to_key to an innocuous variant, in case <limits.h> declares krb5_string_to_key.
66796   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66797#define krb5_string_to_key innocuous_krb5_string_to_key
66798
66799/* System header to define __stub macros and hopefully few prototypes,
66800    which can conflict with char krb5_string_to_key (); below.
66801    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66802    <limits.h> exists even on freestanding compilers.  */
66803
66804#ifdef __STDC__
66805# include <limits.h>
66806#else
66807# include <assert.h>
66808#endif
66809
66810#undef krb5_string_to_key
66811
66812/* Override any GCC internal prototype to avoid an error.
66813   Use char because int might match the return type of a GCC
66814   builtin and then its argument prototype would still apply.  */
66815#ifdef __cplusplus
66816extern "C"
66817#endif
66818char krb5_string_to_key ();
66819/* The GNU C library defines this for functions which it implements
66820    to always fail with ENOSYS.  Some functions are actually named
66821    something starting with __ and the normal name is an alias.  */
66822#if defined __stub_krb5_string_to_key || defined __stub___krb5_string_to_key
66823choke me
66824#endif
66825
66826int
66827main ()
66828{
66829return krb5_string_to_key ();
66830  ;
66831  return 0;
66832}
66833_ACEOF
66834rm -f conftest.$ac_objext conftest$ac_exeext
66835if { (ac_try="$ac_link"
66836case "(($ac_try" in
66837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66838  *) ac_try_echo=$ac_try;;
66839esac
66840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66841$as_echo "$ac_try_echo") >&5
66842  (eval "$ac_link") 2>conftest.er1
66843  ac_status=$?
66844  grep -v '^ *+' conftest.er1 >conftest.err
66845  rm -f conftest.er1
66846  cat conftest.err >&5
66847  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66848  (exit $ac_status); } && {
66849	 test -z "$ac_c_werror_flag" ||
66850	 test ! -s conftest.err
66851       } && test -s conftest$ac_exeext && {
66852	 test "$cross_compiling" = yes ||
66853	 $as_test_x conftest$ac_exeext
66854       }; then
66855  ac_cv_func_ext_krb5_string_to_key=yes
66856else
66857  $as_echo "$as_me: failed program was:" >&5
66858sed 's/^/| /' conftest.$ac_ext >&5
66859
66860	ac_cv_func_ext_krb5_string_to_key=no
66861fi
66862
66863rm -rf conftest.dSYM
66864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66865      conftest$ac_exeext conftest.$ac_ext
66866fi
66867{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_string_to_key" >&5
66868$as_echo "$ac_cv_func_ext_krb5_string_to_key" >&6; }
66869    LIBS=$ac_check_func_ext_save_LIBS
66870    if test $ac_cv_func_ext_krb5_string_to_key = yes; then
66871  cat >>confdefs.h <<_ACEOF
66872#define HAVE_KRB5_STRING_TO_KEY 1
66873_ACEOF
66874
66875fi
66876
66877
66878
66879
66880    ac_check_func_ext_save_LIBS=$LIBS
66881    LIBS="$KRB5_LIBS $LIBS"
66882        { $as_echo "$as_me:$LINENO: checking for krb5_get_pw_salt" >&5
66883$as_echo_n "checking for krb5_get_pw_salt... " >&6; }
66884if test "${ac_cv_func_ext_krb5_get_pw_salt+set}" = set; then
66885  $as_echo_n "(cached) " >&6
66886else
66887  cat >conftest.$ac_ext <<_ACEOF
66888/* confdefs.h.  */
66889_ACEOF
66890cat confdefs.h >>conftest.$ac_ext
66891cat >>conftest.$ac_ext <<_ACEOF
66892/* end confdefs.h.  */
66893/* Define krb5_get_pw_salt to an innocuous variant, in case <limits.h> declares krb5_get_pw_salt.
66894   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66895#define krb5_get_pw_salt innocuous_krb5_get_pw_salt
66896
66897/* System header to define __stub macros and hopefully few prototypes,
66898    which can conflict with char krb5_get_pw_salt (); below.
66899    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66900    <limits.h> exists even on freestanding compilers.  */
66901
66902#ifdef __STDC__
66903# include <limits.h>
66904#else
66905# include <assert.h>
66906#endif
66907
66908#undef krb5_get_pw_salt
66909
66910/* Override any GCC internal prototype to avoid an error.
66911   Use char because int might match the return type of a GCC
66912   builtin and then its argument prototype would still apply.  */
66913#ifdef __cplusplus
66914extern "C"
66915#endif
66916char krb5_get_pw_salt ();
66917/* The GNU C library defines this for functions which it implements
66918    to always fail with ENOSYS.  Some functions are actually named
66919    something starting with __ and the normal name is an alias.  */
66920#if defined __stub_krb5_get_pw_salt || defined __stub___krb5_get_pw_salt
66921choke me
66922#endif
66923
66924int
66925main ()
66926{
66927return krb5_get_pw_salt ();
66928  ;
66929  return 0;
66930}
66931_ACEOF
66932rm -f conftest.$ac_objext conftest$ac_exeext
66933if { (ac_try="$ac_link"
66934case "(($ac_try" in
66935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66936  *) ac_try_echo=$ac_try;;
66937esac
66938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66939$as_echo "$ac_try_echo") >&5
66940  (eval "$ac_link") 2>conftest.er1
66941  ac_status=$?
66942  grep -v '^ *+' conftest.er1 >conftest.err
66943  rm -f conftest.er1
66944  cat conftest.err >&5
66945  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66946  (exit $ac_status); } && {
66947	 test -z "$ac_c_werror_flag" ||
66948	 test ! -s conftest.err
66949       } && test -s conftest$ac_exeext && {
66950	 test "$cross_compiling" = yes ||
66951	 $as_test_x conftest$ac_exeext
66952       }; then
66953  ac_cv_func_ext_krb5_get_pw_salt=yes
66954else
66955  $as_echo "$as_me: failed program was:" >&5
66956sed 's/^/| /' conftest.$ac_ext >&5
66957
66958	ac_cv_func_ext_krb5_get_pw_salt=no
66959fi
66960
66961rm -rf conftest.dSYM
66962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66963      conftest$ac_exeext conftest.$ac_ext
66964fi
66965{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_pw_salt" >&5
66966$as_echo "$ac_cv_func_ext_krb5_get_pw_salt" >&6; }
66967    LIBS=$ac_check_func_ext_save_LIBS
66968    if test $ac_cv_func_ext_krb5_get_pw_salt = yes; then
66969  cat >>confdefs.h <<_ACEOF
66970#define HAVE_KRB5_GET_PW_SALT 1
66971_ACEOF
66972
66973fi
66974
66975
66976
66977
66978    ac_check_func_ext_save_LIBS=$LIBS
66979    LIBS="$KRB5_LIBS $LIBS"
66980        { $as_echo "$as_me:$LINENO: checking for krb5_string_to_key_salt" >&5
66981$as_echo_n "checking for krb5_string_to_key_salt... " >&6; }
66982if test "${ac_cv_func_ext_krb5_string_to_key_salt+set}" = set; then
66983  $as_echo_n "(cached) " >&6
66984else
66985  cat >conftest.$ac_ext <<_ACEOF
66986/* confdefs.h.  */
66987_ACEOF
66988cat confdefs.h >>conftest.$ac_ext
66989cat >>conftest.$ac_ext <<_ACEOF
66990/* end confdefs.h.  */
66991/* Define krb5_string_to_key_salt to an innocuous variant, in case <limits.h> declares krb5_string_to_key_salt.
66992   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66993#define krb5_string_to_key_salt innocuous_krb5_string_to_key_salt
66994
66995/* System header to define __stub macros and hopefully few prototypes,
66996    which can conflict with char krb5_string_to_key_salt (); below.
66997    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66998    <limits.h> exists even on freestanding compilers.  */
66999
67000#ifdef __STDC__
67001# include <limits.h>
67002#else
67003# include <assert.h>
67004#endif
67005
67006#undef krb5_string_to_key_salt
67007
67008/* Override any GCC internal prototype to avoid an error.
67009   Use char because int might match the return type of a GCC
67010   builtin and then its argument prototype would still apply.  */
67011#ifdef __cplusplus
67012extern "C"
67013#endif
67014char krb5_string_to_key_salt ();
67015/* The GNU C library defines this for functions which it implements
67016    to always fail with ENOSYS.  Some functions are actually named
67017    something starting with __ and the normal name is an alias.  */
67018#if defined __stub_krb5_string_to_key_salt || defined __stub___krb5_string_to_key_salt
67019choke me
67020#endif
67021
67022int
67023main ()
67024{
67025return krb5_string_to_key_salt ();
67026  ;
67027  return 0;
67028}
67029_ACEOF
67030rm -f conftest.$ac_objext conftest$ac_exeext
67031if { (ac_try="$ac_link"
67032case "(($ac_try" in
67033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67034  *) ac_try_echo=$ac_try;;
67035esac
67036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67037$as_echo "$ac_try_echo") >&5
67038  (eval "$ac_link") 2>conftest.er1
67039  ac_status=$?
67040  grep -v '^ *+' conftest.er1 >conftest.err
67041  rm -f conftest.er1
67042  cat conftest.err >&5
67043  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67044  (exit $ac_status); } && {
67045	 test -z "$ac_c_werror_flag" ||
67046	 test ! -s conftest.err
67047       } && test -s conftest$ac_exeext && {
67048	 test "$cross_compiling" = yes ||
67049	 $as_test_x conftest$ac_exeext
67050       }; then
67051  ac_cv_func_ext_krb5_string_to_key_salt=yes
67052else
67053  $as_echo "$as_me: failed program was:" >&5
67054sed 's/^/| /' conftest.$ac_ext >&5
67055
67056	ac_cv_func_ext_krb5_string_to_key_salt=no
67057fi
67058
67059rm -rf conftest.dSYM
67060rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67061      conftest$ac_exeext conftest.$ac_ext
67062fi
67063{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_string_to_key_salt" >&5
67064$as_echo "$ac_cv_func_ext_krb5_string_to_key_salt" >&6; }
67065    LIBS=$ac_check_func_ext_save_LIBS
67066    if test $ac_cv_func_ext_krb5_string_to_key_salt = yes; then
67067  cat >>confdefs.h <<_ACEOF
67068#define HAVE_KRB5_STRING_TO_KEY_SALT 1
67069_ACEOF
67070
67071fi
67072
67073
67074
67075
67076    ac_check_func_ext_save_LIBS=$LIBS
67077    LIBS="$KRB5_LIBS $LIBS"
67078        { $as_echo "$as_me:$LINENO: checking for krb5_auth_con_setkey" >&5
67079$as_echo_n "checking for krb5_auth_con_setkey... " >&6; }
67080if test "${ac_cv_func_ext_krb5_auth_con_setkey+set}" = set; then
67081  $as_echo_n "(cached) " >&6
67082else
67083  cat >conftest.$ac_ext <<_ACEOF
67084/* confdefs.h.  */
67085_ACEOF
67086cat confdefs.h >>conftest.$ac_ext
67087cat >>conftest.$ac_ext <<_ACEOF
67088/* end confdefs.h.  */
67089/* Define krb5_auth_con_setkey to an innocuous variant, in case <limits.h> declares krb5_auth_con_setkey.
67090   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67091#define krb5_auth_con_setkey innocuous_krb5_auth_con_setkey
67092
67093/* System header to define __stub macros and hopefully few prototypes,
67094    which can conflict with char krb5_auth_con_setkey (); below.
67095    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67096    <limits.h> exists even on freestanding compilers.  */
67097
67098#ifdef __STDC__
67099# include <limits.h>
67100#else
67101# include <assert.h>
67102#endif
67103
67104#undef krb5_auth_con_setkey
67105
67106/* Override any GCC internal prototype to avoid an error.
67107   Use char because int might match the return type of a GCC
67108   builtin and then its argument prototype would still apply.  */
67109#ifdef __cplusplus
67110extern "C"
67111#endif
67112char krb5_auth_con_setkey ();
67113/* The GNU C library defines this for functions which it implements
67114    to always fail with ENOSYS.  Some functions are actually named
67115    something starting with __ and the normal name is an alias.  */
67116#if defined __stub_krb5_auth_con_setkey || defined __stub___krb5_auth_con_setkey
67117choke me
67118#endif
67119
67120int
67121main ()
67122{
67123return krb5_auth_con_setkey ();
67124  ;
67125  return 0;
67126}
67127_ACEOF
67128rm -f conftest.$ac_objext conftest$ac_exeext
67129if { (ac_try="$ac_link"
67130case "(($ac_try" in
67131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67132  *) ac_try_echo=$ac_try;;
67133esac
67134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67135$as_echo "$ac_try_echo") >&5
67136  (eval "$ac_link") 2>conftest.er1
67137  ac_status=$?
67138  grep -v '^ *+' conftest.er1 >conftest.err
67139  rm -f conftest.er1
67140  cat conftest.err >&5
67141  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67142  (exit $ac_status); } && {
67143	 test -z "$ac_c_werror_flag" ||
67144	 test ! -s conftest.err
67145       } && test -s conftest$ac_exeext && {
67146	 test "$cross_compiling" = yes ||
67147	 $as_test_x conftest$ac_exeext
67148       }; then
67149  ac_cv_func_ext_krb5_auth_con_setkey=yes
67150else
67151  $as_echo "$as_me: failed program was:" >&5
67152sed 's/^/| /' conftest.$ac_ext >&5
67153
67154	ac_cv_func_ext_krb5_auth_con_setkey=no
67155fi
67156
67157rm -rf conftest.dSYM
67158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67159      conftest$ac_exeext conftest.$ac_ext
67160fi
67161{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_auth_con_setkey" >&5
67162$as_echo "$ac_cv_func_ext_krb5_auth_con_setkey" >&6; }
67163    LIBS=$ac_check_func_ext_save_LIBS
67164    if test $ac_cv_func_ext_krb5_auth_con_setkey = yes; then
67165  cat >>confdefs.h <<_ACEOF
67166#define HAVE_KRB5_AUTH_CON_SETKEY 1
67167_ACEOF
67168
67169fi
67170
67171
67172
67173
67174    ac_check_func_ext_save_LIBS=$LIBS
67175    LIBS="$KRB5_LIBS $LIBS"
67176        { $as_echo "$as_me:$LINENO: checking for krb5_auth_con_setuseruserkey" >&5
67177$as_echo_n "checking for krb5_auth_con_setuseruserkey... " >&6; }
67178if test "${ac_cv_func_ext_krb5_auth_con_setuseruserkey+set}" = set; then
67179  $as_echo_n "(cached) " >&6
67180else
67181  cat >conftest.$ac_ext <<_ACEOF
67182/* confdefs.h.  */
67183_ACEOF
67184cat confdefs.h >>conftest.$ac_ext
67185cat >>conftest.$ac_ext <<_ACEOF
67186/* end confdefs.h.  */
67187/* Define krb5_auth_con_setuseruserkey to an innocuous variant, in case <limits.h> declares krb5_auth_con_setuseruserkey.
67188   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67189#define krb5_auth_con_setuseruserkey innocuous_krb5_auth_con_setuseruserkey
67190
67191/* System header to define __stub macros and hopefully few prototypes,
67192    which can conflict with char krb5_auth_con_setuseruserkey (); below.
67193    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67194    <limits.h> exists even on freestanding compilers.  */
67195
67196#ifdef __STDC__
67197# include <limits.h>
67198#else
67199# include <assert.h>
67200#endif
67201
67202#undef krb5_auth_con_setuseruserkey
67203
67204/* Override any GCC internal prototype to avoid an error.
67205   Use char because int might match the return type of a GCC
67206   builtin and then its argument prototype would still apply.  */
67207#ifdef __cplusplus
67208extern "C"
67209#endif
67210char krb5_auth_con_setuseruserkey ();
67211/* The GNU C library defines this for functions which it implements
67212    to always fail with ENOSYS.  Some functions are actually named
67213    something starting with __ and the normal name is an alias.  */
67214#if defined __stub_krb5_auth_con_setuseruserkey || defined __stub___krb5_auth_con_setuseruserkey
67215choke me
67216#endif
67217
67218int
67219main ()
67220{
67221return krb5_auth_con_setuseruserkey ();
67222  ;
67223  return 0;
67224}
67225_ACEOF
67226rm -f conftest.$ac_objext conftest$ac_exeext
67227if { (ac_try="$ac_link"
67228case "(($ac_try" in
67229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67230  *) ac_try_echo=$ac_try;;
67231esac
67232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67233$as_echo "$ac_try_echo") >&5
67234  (eval "$ac_link") 2>conftest.er1
67235  ac_status=$?
67236  grep -v '^ *+' conftest.er1 >conftest.err
67237  rm -f conftest.er1
67238  cat conftest.err >&5
67239  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67240  (exit $ac_status); } && {
67241	 test -z "$ac_c_werror_flag" ||
67242	 test ! -s conftest.err
67243       } && test -s conftest$ac_exeext && {
67244	 test "$cross_compiling" = yes ||
67245	 $as_test_x conftest$ac_exeext
67246       }; then
67247  ac_cv_func_ext_krb5_auth_con_setuseruserkey=yes
67248else
67249  $as_echo "$as_me: failed program was:" >&5
67250sed 's/^/| /' conftest.$ac_ext >&5
67251
67252	ac_cv_func_ext_krb5_auth_con_setuseruserkey=no
67253fi
67254
67255rm -rf conftest.dSYM
67256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67257      conftest$ac_exeext conftest.$ac_ext
67258fi
67259{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_auth_con_setuseruserkey" >&5
67260$as_echo "$ac_cv_func_ext_krb5_auth_con_setuseruserkey" >&6; }
67261    LIBS=$ac_check_func_ext_save_LIBS
67262    if test $ac_cv_func_ext_krb5_auth_con_setuseruserkey = yes; then
67263  cat >>confdefs.h <<_ACEOF
67264#define HAVE_KRB5_AUTH_CON_SETUSERUSERKEY 1
67265_ACEOF
67266
67267fi
67268
67269
67270
67271
67272    ac_check_func_ext_save_LIBS=$LIBS
67273    LIBS="$KRB5_LIBS $LIBS"
67274        { $as_echo "$as_me:$LINENO: checking for krb5_locate_kdc" >&5
67275$as_echo_n "checking for krb5_locate_kdc... " >&6; }
67276if test "${ac_cv_func_ext_krb5_locate_kdc+set}" = set; then
67277  $as_echo_n "(cached) " >&6
67278else
67279  cat >conftest.$ac_ext <<_ACEOF
67280/* confdefs.h.  */
67281_ACEOF
67282cat confdefs.h >>conftest.$ac_ext
67283cat >>conftest.$ac_ext <<_ACEOF
67284/* end confdefs.h.  */
67285/* Define krb5_locate_kdc to an innocuous variant, in case <limits.h> declares krb5_locate_kdc.
67286   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67287#define krb5_locate_kdc innocuous_krb5_locate_kdc
67288
67289/* System header to define __stub macros and hopefully few prototypes,
67290    which can conflict with char krb5_locate_kdc (); below.
67291    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67292    <limits.h> exists even on freestanding compilers.  */
67293
67294#ifdef __STDC__
67295# include <limits.h>
67296#else
67297# include <assert.h>
67298#endif
67299
67300#undef krb5_locate_kdc
67301
67302/* Override any GCC internal prototype to avoid an error.
67303   Use char because int might match the return type of a GCC
67304   builtin and then its argument prototype would still apply.  */
67305#ifdef __cplusplus
67306extern "C"
67307#endif
67308char krb5_locate_kdc ();
67309/* The GNU C library defines this for functions which it implements
67310    to always fail with ENOSYS.  Some functions are actually named
67311    something starting with __ and the normal name is an alias.  */
67312#if defined __stub_krb5_locate_kdc || defined __stub___krb5_locate_kdc
67313choke me
67314#endif
67315
67316int
67317main ()
67318{
67319return krb5_locate_kdc ();
67320  ;
67321  return 0;
67322}
67323_ACEOF
67324rm -f conftest.$ac_objext conftest$ac_exeext
67325if { (ac_try="$ac_link"
67326case "(($ac_try" in
67327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67328  *) ac_try_echo=$ac_try;;
67329esac
67330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67331$as_echo "$ac_try_echo") >&5
67332  (eval "$ac_link") 2>conftest.er1
67333  ac_status=$?
67334  grep -v '^ *+' conftest.er1 >conftest.err
67335  rm -f conftest.er1
67336  cat conftest.err >&5
67337  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67338  (exit $ac_status); } && {
67339	 test -z "$ac_c_werror_flag" ||
67340	 test ! -s conftest.err
67341       } && test -s conftest$ac_exeext && {
67342	 test "$cross_compiling" = yes ||
67343	 $as_test_x conftest$ac_exeext
67344       }; then
67345  ac_cv_func_ext_krb5_locate_kdc=yes
67346else
67347  $as_echo "$as_me: failed program was:" >&5
67348sed 's/^/| /' conftest.$ac_ext >&5
67349
67350	ac_cv_func_ext_krb5_locate_kdc=no
67351fi
67352
67353rm -rf conftest.dSYM
67354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67355      conftest$ac_exeext conftest.$ac_ext
67356fi
67357{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_locate_kdc" >&5
67358$as_echo "$ac_cv_func_ext_krb5_locate_kdc" >&6; }
67359    LIBS=$ac_check_func_ext_save_LIBS
67360    if test $ac_cv_func_ext_krb5_locate_kdc = yes; then
67361  cat >>confdefs.h <<_ACEOF
67362#define HAVE_KRB5_LOCATE_KDC 1
67363_ACEOF
67364
67365fi
67366
67367
67368
67369
67370    ac_check_func_ext_save_LIBS=$LIBS
67371    LIBS="$KRB5_LIBS $LIBS"
67372        { $as_echo "$as_me:$LINENO: checking for krb5_get_permitted_enctypes" >&5
67373$as_echo_n "checking for krb5_get_permitted_enctypes... " >&6; }
67374if test "${ac_cv_func_ext_krb5_get_permitted_enctypes+set}" = set; then
67375  $as_echo_n "(cached) " >&6
67376else
67377  cat >conftest.$ac_ext <<_ACEOF
67378/* confdefs.h.  */
67379_ACEOF
67380cat confdefs.h >>conftest.$ac_ext
67381cat >>conftest.$ac_ext <<_ACEOF
67382/* end confdefs.h.  */
67383/* Define krb5_get_permitted_enctypes to an innocuous variant, in case <limits.h> declares krb5_get_permitted_enctypes.
67384   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67385#define krb5_get_permitted_enctypes innocuous_krb5_get_permitted_enctypes
67386
67387/* System header to define __stub macros and hopefully few prototypes,
67388    which can conflict with char krb5_get_permitted_enctypes (); below.
67389    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67390    <limits.h> exists even on freestanding compilers.  */
67391
67392#ifdef __STDC__
67393# include <limits.h>
67394#else
67395# include <assert.h>
67396#endif
67397
67398#undef krb5_get_permitted_enctypes
67399
67400/* Override any GCC internal prototype to avoid an error.
67401   Use char because int might match the return type of a GCC
67402   builtin and then its argument prototype would still apply.  */
67403#ifdef __cplusplus
67404extern "C"
67405#endif
67406char krb5_get_permitted_enctypes ();
67407/* The GNU C library defines this for functions which it implements
67408    to always fail with ENOSYS.  Some functions are actually named
67409    something starting with __ and the normal name is an alias.  */
67410#if defined __stub_krb5_get_permitted_enctypes || defined __stub___krb5_get_permitted_enctypes
67411choke me
67412#endif
67413
67414int
67415main ()
67416{
67417return krb5_get_permitted_enctypes ();
67418  ;
67419  return 0;
67420}
67421_ACEOF
67422rm -f conftest.$ac_objext conftest$ac_exeext
67423if { (ac_try="$ac_link"
67424case "(($ac_try" in
67425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67426  *) ac_try_echo=$ac_try;;
67427esac
67428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67429$as_echo "$ac_try_echo") >&5
67430  (eval "$ac_link") 2>conftest.er1
67431  ac_status=$?
67432  grep -v '^ *+' conftest.er1 >conftest.err
67433  rm -f conftest.er1
67434  cat conftest.err >&5
67435  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67436  (exit $ac_status); } && {
67437	 test -z "$ac_c_werror_flag" ||
67438	 test ! -s conftest.err
67439       } && test -s conftest$ac_exeext && {
67440	 test "$cross_compiling" = yes ||
67441	 $as_test_x conftest$ac_exeext
67442       }; then
67443  ac_cv_func_ext_krb5_get_permitted_enctypes=yes
67444else
67445  $as_echo "$as_me: failed program was:" >&5
67446sed 's/^/| /' conftest.$ac_ext >&5
67447
67448	ac_cv_func_ext_krb5_get_permitted_enctypes=no
67449fi
67450
67451rm -rf conftest.dSYM
67452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67453      conftest$ac_exeext conftest.$ac_ext
67454fi
67455{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_permitted_enctypes" >&5
67456$as_echo "$ac_cv_func_ext_krb5_get_permitted_enctypes" >&6; }
67457    LIBS=$ac_check_func_ext_save_LIBS
67458    if test $ac_cv_func_ext_krb5_get_permitted_enctypes = yes; then
67459  cat >>confdefs.h <<_ACEOF
67460#define HAVE_KRB5_GET_PERMITTED_ENCTYPES 1
67461_ACEOF
67462
67463fi
67464
67465
67466
67467
67468    ac_check_func_ext_save_LIBS=$LIBS
67469    LIBS="$KRB5_LIBS $LIBS"
67470        { $as_echo "$as_me:$LINENO: checking for krb5_get_default_in_tkt_etypes" >&5
67471$as_echo_n "checking for krb5_get_default_in_tkt_etypes... " >&6; }
67472if test "${ac_cv_func_ext_krb5_get_default_in_tkt_etypes+set}" = set; then
67473  $as_echo_n "(cached) " >&6
67474else
67475  cat >conftest.$ac_ext <<_ACEOF
67476/* confdefs.h.  */
67477_ACEOF
67478cat confdefs.h >>conftest.$ac_ext
67479cat >>conftest.$ac_ext <<_ACEOF
67480/* end confdefs.h.  */
67481/* Define krb5_get_default_in_tkt_etypes to an innocuous variant, in case <limits.h> declares krb5_get_default_in_tkt_etypes.
67482   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67483#define krb5_get_default_in_tkt_etypes innocuous_krb5_get_default_in_tkt_etypes
67484
67485/* System header to define __stub macros and hopefully few prototypes,
67486    which can conflict with char krb5_get_default_in_tkt_etypes (); below.
67487    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67488    <limits.h> exists even on freestanding compilers.  */
67489
67490#ifdef __STDC__
67491# include <limits.h>
67492#else
67493# include <assert.h>
67494#endif
67495
67496#undef krb5_get_default_in_tkt_etypes
67497
67498/* Override any GCC internal prototype to avoid an error.
67499   Use char because int might match the return type of a GCC
67500   builtin and then its argument prototype would still apply.  */
67501#ifdef __cplusplus
67502extern "C"
67503#endif
67504char krb5_get_default_in_tkt_etypes ();
67505/* The GNU C library defines this for functions which it implements
67506    to always fail with ENOSYS.  Some functions are actually named
67507    something starting with __ and the normal name is an alias.  */
67508#if defined __stub_krb5_get_default_in_tkt_etypes || defined __stub___krb5_get_default_in_tkt_etypes
67509choke me
67510#endif
67511
67512int
67513main ()
67514{
67515return krb5_get_default_in_tkt_etypes ();
67516  ;
67517  return 0;
67518}
67519_ACEOF
67520rm -f conftest.$ac_objext conftest$ac_exeext
67521if { (ac_try="$ac_link"
67522case "(($ac_try" in
67523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67524  *) ac_try_echo=$ac_try;;
67525esac
67526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67527$as_echo "$ac_try_echo") >&5
67528  (eval "$ac_link") 2>conftest.er1
67529  ac_status=$?
67530  grep -v '^ *+' conftest.er1 >conftest.err
67531  rm -f conftest.er1
67532  cat conftest.err >&5
67533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67534  (exit $ac_status); } && {
67535	 test -z "$ac_c_werror_flag" ||
67536	 test ! -s conftest.err
67537       } && test -s conftest$ac_exeext && {
67538	 test "$cross_compiling" = yes ||
67539	 $as_test_x conftest$ac_exeext
67540       }; then
67541  ac_cv_func_ext_krb5_get_default_in_tkt_etypes=yes
67542else
67543  $as_echo "$as_me: failed program was:" >&5
67544sed 's/^/| /' conftest.$ac_ext >&5
67545
67546	ac_cv_func_ext_krb5_get_default_in_tkt_etypes=no
67547fi
67548
67549rm -rf conftest.dSYM
67550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67551      conftest$ac_exeext conftest.$ac_ext
67552fi
67553{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_default_in_tkt_etypes" >&5
67554$as_echo "$ac_cv_func_ext_krb5_get_default_in_tkt_etypes" >&6; }
67555    LIBS=$ac_check_func_ext_save_LIBS
67556    if test $ac_cv_func_ext_krb5_get_default_in_tkt_etypes = yes; then
67557  cat >>confdefs.h <<_ACEOF
67558#define HAVE_KRB5_GET_DEFAULT_IN_TKT_ETYPES 1
67559_ACEOF
67560
67561fi
67562
67563
67564
67565
67566    ac_check_func_ext_save_LIBS=$LIBS
67567    LIBS="$KRB5_LIBS $LIBS"
67568        { $as_echo "$as_me:$LINENO: checking for krb5_free_data_contents" >&5
67569$as_echo_n "checking for krb5_free_data_contents... " >&6; }
67570if test "${ac_cv_func_ext_krb5_free_data_contents+set}" = set; then
67571  $as_echo_n "(cached) " >&6
67572else
67573  cat >conftest.$ac_ext <<_ACEOF
67574/* confdefs.h.  */
67575_ACEOF
67576cat confdefs.h >>conftest.$ac_ext
67577cat >>conftest.$ac_ext <<_ACEOF
67578/* end confdefs.h.  */
67579/* Define krb5_free_data_contents to an innocuous variant, in case <limits.h> declares krb5_free_data_contents.
67580   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67581#define krb5_free_data_contents innocuous_krb5_free_data_contents
67582
67583/* System header to define __stub macros and hopefully few prototypes,
67584    which can conflict with char krb5_free_data_contents (); below.
67585    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67586    <limits.h> exists even on freestanding compilers.  */
67587
67588#ifdef __STDC__
67589# include <limits.h>
67590#else
67591# include <assert.h>
67592#endif
67593
67594#undef krb5_free_data_contents
67595
67596/* Override any GCC internal prototype to avoid an error.
67597   Use char because int might match the return type of a GCC
67598   builtin and then its argument prototype would still apply.  */
67599#ifdef __cplusplus
67600extern "C"
67601#endif
67602char krb5_free_data_contents ();
67603/* The GNU C library defines this for functions which it implements
67604    to always fail with ENOSYS.  Some functions are actually named
67605    something starting with __ and the normal name is an alias.  */
67606#if defined __stub_krb5_free_data_contents || defined __stub___krb5_free_data_contents
67607choke me
67608#endif
67609
67610int
67611main ()
67612{
67613return krb5_free_data_contents ();
67614  ;
67615  return 0;
67616}
67617_ACEOF
67618rm -f conftest.$ac_objext conftest$ac_exeext
67619if { (ac_try="$ac_link"
67620case "(($ac_try" in
67621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67622  *) ac_try_echo=$ac_try;;
67623esac
67624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67625$as_echo "$ac_try_echo") >&5
67626  (eval "$ac_link") 2>conftest.er1
67627  ac_status=$?
67628  grep -v '^ *+' conftest.er1 >conftest.err
67629  rm -f conftest.er1
67630  cat conftest.err >&5
67631  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67632  (exit $ac_status); } && {
67633	 test -z "$ac_c_werror_flag" ||
67634	 test ! -s conftest.err
67635       } && test -s conftest$ac_exeext && {
67636	 test "$cross_compiling" = yes ||
67637	 $as_test_x conftest$ac_exeext
67638       }; then
67639  ac_cv_func_ext_krb5_free_data_contents=yes
67640else
67641  $as_echo "$as_me: failed program was:" >&5
67642sed 's/^/| /' conftest.$ac_ext >&5
67643
67644	ac_cv_func_ext_krb5_free_data_contents=no
67645fi
67646
67647rm -rf conftest.dSYM
67648rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67649      conftest$ac_exeext conftest.$ac_ext
67650fi
67651{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_free_data_contents" >&5
67652$as_echo "$ac_cv_func_ext_krb5_free_data_contents" >&6; }
67653    LIBS=$ac_check_func_ext_save_LIBS
67654    if test $ac_cv_func_ext_krb5_free_data_contents = yes; then
67655  cat >>confdefs.h <<_ACEOF
67656#define HAVE_KRB5_FREE_DATA_CONTENTS 1
67657_ACEOF
67658
67659fi
67660
67661
67662
67663
67664    ac_check_func_ext_save_LIBS=$LIBS
67665    LIBS="$KRB5_LIBS $LIBS"
67666        { $as_echo "$as_me:$LINENO: checking for krb5_principal_get_comp_string" >&5
67667$as_echo_n "checking for krb5_principal_get_comp_string... " >&6; }
67668if test "${ac_cv_func_ext_krb5_principal_get_comp_string+set}" = set; then
67669  $as_echo_n "(cached) " >&6
67670else
67671  cat >conftest.$ac_ext <<_ACEOF
67672/* confdefs.h.  */
67673_ACEOF
67674cat confdefs.h >>conftest.$ac_ext
67675cat >>conftest.$ac_ext <<_ACEOF
67676/* end confdefs.h.  */
67677/* Define krb5_principal_get_comp_string to an innocuous variant, in case <limits.h> declares krb5_principal_get_comp_string.
67678   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67679#define krb5_principal_get_comp_string innocuous_krb5_principal_get_comp_string
67680
67681/* System header to define __stub macros and hopefully few prototypes,
67682    which can conflict with char krb5_principal_get_comp_string (); below.
67683    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67684    <limits.h> exists even on freestanding compilers.  */
67685
67686#ifdef __STDC__
67687# include <limits.h>
67688#else
67689# include <assert.h>
67690#endif
67691
67692#undef krb5_principal_get_comp_string
67693
67694/* Override any GCC internal prototype to avoid an error.
67695   Use char because int might match the return type of a GCC
67696   builtin and then its argument prototype would still apply.  */
67697#ifdef __cplusplus
67698extern "C"
67699#endif
67700char krb5_principal_get_comp_string ();
67701/* The GNU C library defines this for functions which it implements
67702    to always fail with ENOSYS.  Some functions are actually named
67703    something starting with __ and the normal name is an alias.  */
67704#if defined __stub_krb5_principal_get_comp_string || defined __stub___krb5_principal_get_comp_string
67705choke me
67706#endif
67707
67708int
67709main ()
67710{
67711return krb5_principal_get_comp_string ();
67712  ;
67713  return 0;
67714}
67715_ACEOF
67716rm -f conftest.$ac_objext conftest$ac_exeext
67717if { (ac_try="$ac_link"
67718case "(($ac_try" in
67719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67720  *) ac_try_echo=$ac_try;;
67721esac
67722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67723$as_echo "$ac_try_echo") >&5
67724  (eval "$ac_link") 2>conftest.er1
67725  ac_status=$?
67726  grep -v '^ *+' conftest.er1 >conftest.err
67727  rm -f conftest.er1
67728  cat conftest.err >&5
67729  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67730  (exit $ac_status); } && {
67731	 test -z "$ac_c_werror_flag" ||
67732	 test ! -s conftest.err
67733       } && test -s conftest$ac_exeext && {
67734	 test "$cross_compiling" = yes ||
67735	 $as_test_x conftest$ac_exeext
67736       }; then
67737  ac_cv_func_ext_krb5_principal_get_comp_string=yes
67738else
67739  $as_echo "$as_me: failed program was:" >&5
67740sed 's/^/| /' conftest.$ac_ext >&5
67741
67742	ac_cv_func_ext_krb5_principal_get_comp_string=no
67743fi
67744
67745rm -rf conftest.dSYM
67746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67747      conftest$ac_exeext conftest.$ac_ext
67748fi
67749{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_principal_get_comp_string" >&5
67750$as_echo "$ac_cv_func_ext_krb5_principal_get_comp_string" >&6; }
67751    LIBS=$ac_check_func_ext_save_LIBS
67752    if test $ac_cv_func_ext_krb5_principal_get_comp_string = yes; then
67753  cat >>confdefs.h <<_ACEOF
67754#define HAVE_KRB5_PRINCIPAL_GET_COMP_STRING 1
67755_ACEOF
67756
67757fi
67758
67759
67760
67761
67762    ac_check_func_ext_save_LIBS=$LIBS
67763    LIBS="$KRB5_LIBS $LIBS"
67764        { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
67765$as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
67766if test "${ac_cv_func_ext_krb5_free_unparsed_name+set}" = set; then
67767  $as_echo_n "(cached) " >&6
67768else
67769  cat >conftest.$ac_ext <<_ACEOF
67770/* confdefs.h.  */
67771_ACEOF
67772cat confdefs.h >>conftest.$ac_ext
67773cat >>conftest.$ac_ext <<_ACEOF
67774/* end confdefs.h.  */
67775/* Define krb5_free_unparsed_name to an innocuous variant, in case <limits.h> declares krb5_free_unparsed_name.
67776   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67777#define krb5_free_unparsed_name innocuous_krb5_free_unparsed_name
67778
67779/* System header to define __stub macros and hopefully few prototypes,
67780    which can conflict with char krb5_free_unparsed_name (); below.
67781    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67782    <limits.h> exists even on freestanding compilers.  */
67783
67784#ifdef __STDC__
67785# include <limits.h>
67786#else
67787# include <assert.h>
67788#endif
67789
67790#undef krb5_free_unparsed_name
67791
67792/* Override any GCC internal prototype to avoid an error.
67793   Use char because int might match the return type of a GCC
67794   builtin and then its argument prototype would still apply.  */
67795#ifdef __cplusplus
67796extern "C"
67797#endif
67798char krb5_free_unparsed_name ();
67799/* The GNU C library defines this for functions which it implements
67800    to always fail with ENOSYS.  Some functions are actually named
67801    something starting with __ and the normal name is an alias.  */
67802#if defined __stub_krb5_free_unparsed_name || defined __stub___krb5_free_unparsed_name
67803choke me
67804#endif
67805
67806int
67807main ()
67808{
67809return krb5_free_unparsed_name ();
67810  ;
67811  return 0;
67812}
67813_ACEOF
67814rm -f conftest.$ac_objext conftest$ac_exeext
67815if { (ac_try="$ac_link"
67816case "(($ac_try" in
67817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67818  *) ac_try_echo=$ac_try;;
67819esac
67820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67821$as_echo "$ac_try_echo") >&5
67822  (eval "$ac_link") 2>conftest.er1
67823  ac_status=$?
67824  grep -v '^ *+' conftest.er1 >conftest.err
67825  rm -f conftest.er1
67826  cat conftest.err >&5
67827  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67828  (exit $ac_status); } && {
67829	 test -z "$ac_c_werror_flag" ||
67830	 test ! -s conftest.err
67831       } && test -s conftest$ac_exeext && {
67832	 test "$cross_compiling" = yes ||
67833	 $as_test_x conftest$ac_exeext
67834       }; then
67835  ac_cv_func_ext_krb5_free_unparsed_name=yes
67836else
67837  $as_echo "$as_me: failed program was:" >&5
67838sed 's/^/| /' conftest.$ac_ext >&5
67839
67840	ac_cv_func_ext_krb5_free_unparsed_name=no
67841fi
67842
67843rm -rf conftest.dSYM
67844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67845      conftest$ac_exeext conftest.$ac_ext
67846fi
67847{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_free_unparsed_name" >&5
67848$as_echo "$ac_cv_func_ext_krb5_free_unparsed_name" >&6; }
67849    LIBS=$ac_check_func_ext_save_LIBS
67850    if test $ac_cv_func_ext_krb5_free_unparsed_name = yes; then
67851  cat >>confdefs.h <<_ACEOF
67852#define HAVE_KRB5_FREE_UNPARSED_NAME 1
67853_ACEOF
67854
67855fi
67856
67857
67858
67859
67860    ac_check_func_ext_save_LIBS=$LIBS
67861    LIBS="$KRB5_LIBS $LIBS"
67862        { $as_echo "$as_me:$LINENO: checking for krb5_free_keytab_entry_contents" >&5
67863$as_echo_n "checking for krb5_free_keytab_entry_contents... " >&6; }
67864if test "${ac_cv_func_ext_krb5_free_keytab_entry_contents+set}" = set; then
67865  $as_echo_n "(cached) " >&6
67866else
67867  cat >conftest.$ac_ext <<_ACEOF
67868/* confdefs.h.  */
67869_ACEOF
67870cat confdefs.h >>conftest.$ac_ext
67871cat >>conftest.$ac_ext <<_ACEOF
67872/* end confdefs.h.  */
67873/* Define krb5_free_keytab_entry_contents to an innocuous variant, in case <limits.h> declares krb5_free_keytab_entry_contents.
67874   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67875#define krb5_free_keytab_entry_contents innocuous_krb5_free_keytab_entry_contents
67876
67877/* System header to define __stub macros and hopefully few prototypes,
67878    which can conflict with char krb5_free_keytab_entry_contents (); below.
67879    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67880    <limits.h> exists even on freestanding compilers.  */
67881
67882#ifdef __STDC__
67883# include <limits.h>
67884#else
67885# include <assert.h>
67886#endif
67887
67888#undef krb5_free_keytab_entry_contents
67889
67890/* Override any GCC internal prototype to avoid an error.
67891   Use char because int might match the return type of a GCC
67892   builtin and then its argument prototype would still apply.  */
67893#ifdef __cplusplus
67894extern "C"
67895#endif
67896char krb5_free_keytab_entry_contents ();
67897/* The GNU C library defines this for functions which it implements
67898    to always fail with ENOSYS.  Some functions are actually named
67899    something starting with __ and the normal name is an alias.  */
67900#if defined __stub_krb5_free_keytab_entry_contents || defined __stub___krb5_free_keytab_entry_contents
67901choke me
67902#endif
67903
67904int
67905main ()
67906{
67907return krb5_free_keytab_entry_contents ();
67908  ;
67909  return 0;
67910}
67911_ACEOF
67912rm -f conftest.$ac_objext conftest$ac_exeext
67913if { (ac_try="$ac_link"
67914case "(($ac_try" in
67915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67916  *) ac_try_echo=$ac_try;;
67917esac
67918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67919$as_echo "$ac_try_echo") >&5
67920  (eval "$ac_link") 2>conftest.er1
67921  ac_status=$?
67922  grep -v '^ *+' conftest.er1 >conftest.err
67923  rm -f conftest.er1
67924  cat conftest.err >&5
67925  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67926  (exit $ac_status); } && {
67927	 test -z "$ac_c_werror_flag" ||
67928	 test ! -s conftest.err
67929       } && test -s conftest$ac_exeext && {
67930	 test "$cross_compiling" = yes ||
67931	 $as_test_x conftest$ac_exeext
67932       }; then
67933  ac_cv_func_ext_krb5_free_keytab_entry_contents=yes
67934else
67935  $as_echo "$as_me: failed program was:" >&5
67936sed 's/^/| /' conftest.$ac_ext >&5
67937
67938	ac_cv_func_ext_krb5_free_keytab_entry_contents=no
67939fi
67940
67941rm -rf conftest.dSYM
67942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67943      conftest$ac_exeext conftest.$ac_ext
67944fi
67945{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_free_keytab_entry_contents" >&5
67946$as_echo "$ac_cv_func_ext_krb5_free_keytab_entry_contents" >&6; }
67947    LIBS=$ac_check_func_ext_save_LIBS
67948    if test $ac_cv_func_ext_krb5_free_keytab_entry_contents = yes; then
67949  cat >>confdefs.h <<_ACEOF
67950#define HAVE_KRB5_FREE_KEYTAB_ENTRY_CONTENTS 1
67951_ACEOF
67952
67953fi
67954
67955
67956
67957
67958    ac_check_func_ext_save_LIBS=$LIBS
67959    LIBS="$KRB5_LIBS $LIBS"
67960        { $as_echo "$as_me:$LINENO: checking for krb5_kt_free_entry" >&5
67961$as_echo_n "checking for krb5_kt_free_entry... " >&6; }
67962if test "${ac_cv_func_ext_krb5_kt_free_entry+set}" = set; then
67963  $as_echo_n "(cached) " >&6
67964else
67965  cat >conftest.$ac_ext <<_ACEOF
67966/* confdefs.h.  */
67967_ACEOF
67968cat confdefs.h >>conftest.$ac_ext
67969cat >>conftest.$ac_ext <<_ACEOF
67970/* end confdefs.h.  */
67971/* Define krb5_kt_free_entry to an innocuous variant, in case <limits.h> declares krb5_kt_free_entry.
67972   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67973#define krb5_kt_free_entry innocuous_krb5_kt_free_entry
67974
67975/* System header to define __stub macros and hopefully few prototypes,
67976    which can conflict with char krb5_kt_free_entry (); below.
67977    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67978    <limits.h> exists even on freestanding compilers.  */
67979
67980#ifdef __STDC__
67981# include <limits.h>
67982#else
67983# include <assert.h>
67984#endif
67985
67986#undef krb5_kt_free_entry
67987
67988/* Override any GCC internal prototype to avoid an error.
67989   Use char because int might match the return type of a GCC
67990   builtin and then its argument prototype would still apply.  */
67991#ifdef __cplusplus
67992extern "C"
67993#endif
67994char krb5_kt_free_entry ();
67995/* The GNU C library defines this for functions which it implements
67996    to always fail with ENOSYS.  Some functions are actually named
67997    something starting with __ and the normal name is an alias.  */
67998#if defined __stub_krb5_kt_free_entry || defined __stub___krb5_kt_free_entry
67999choke me
68000#endif
68001
68002int
68003main ()
68004{
68005return krb5_kt_free_entry ();
68006  ;
68007  return 0;
68008}
68009_ACEOF
68010rm -f conftest.$ac_objext conftest$ac_exeext
68011if { (ac_try="$ac_link"
68012case "(($ac_try" in
68013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68014  *) ac_try_echo=$ac_try;;
68015esac
68016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68017$as_echo "$ac_try_echo") >&5
68018  (eval "$ac_link") 2>conftest.er1
68019  ac_status=$?
68020  grep -v '^ *+' conftest.er1 >conftest.err
68021  rm -f conftest.er1
68022  cat conftest.err >&5
68023  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68024  (exit $ac_status); } && {
68025	 test -z "$ac_c_werror_flag" ||
68026	 test ! -s conftest.err
68027       } && test -s conftest$ac_exeext && {
68028	 test "$cross_compiling" = yes ||
68029	 $as_test_x conftest$ac_exeext
68030       }; then
68031  ac_cv_func_ext_krb5_kt_free_entry=yes
68032else
68033  $as_echo "$as_me: failed program was:" >&5
68034sed 's/^/| /' conftest.$ac_ext >&5
68035
68036	ac_cv_func_ext_krb5_kt_free_entry=no
68037fi
68038
68039rm -rf conftest.dSYM
68040rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68041      conftest$ac_exeext conftest.$ac_ext
68042fi
68043{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_kt_free_entry" >&5
68044$as_echo "$ac_cv_func_ext_krb5_kt_free_entry" >&6; }
68045    LIBS=$ac_check_func_ext_save_LIBS
68046    if test $ac_cv_func_ext_krb5_kt_free_entry = yes; then
68047  cat >>confdefs.h <<_ACEOF
68048#define HAVE_KRB5_KT_FREE_ENTRY 1
68049_ACEOF
68050
68051fi
68052
68053
68054
68055
68056    ac_check_func_ext_save_LIBS=$LIBS
68057    LIBS="$KRB5_LIBS $LIBS"
68058        { $as_echo "$as_me:$LINENO: checking for krb5_krbhst_init" >&5
68059$as_echo_n "checking for krb5_krbhst_init... " >&6; }
68060if test "${ac_cv_func_ext_krb5_krbhst_init+set}" = set; then
68061  $as_echo_n "(cached) " >&6
68062else
68063  cat >conftest.$ac_ext <<_ACEOF
68064/* confdefs.h.  */
68065_ACEOF
68066cat confdefs.h >>conftest.$ac_ext
68067cat >>conftest.$ac_ext <<_ACEOF
68068/* end confdefs.h.  */
68069/* Define krb5_krbhst_init to an innocuous variant, in case <limits.h> declares krb5_krbhst_init.
68070   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68071#define krb5_krbhst_init innocuous_krb5_krbhst_init
68072
68073/* System header to define __stub macros and hopefully few prototypes,
68074    which can conflict with char krb5_krbhst_init (); below.
68075    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68076    <limits.h> exists even on freestanding compilers.  */
68077
68078#ifdef __STDC__
68079# include <limits.h>
68080#else
68081# include <assert.h>
68082#endif
68083
68084#undef krb5_krbhst_init
68085
68086/* Override any GCC internal prototype to avoid an error.
68087   Use char because int might match the return type of a GCC
68088   builtin and then its argument prototype would still apply.  */
68089#ifdef __cplusplus
68090extern "C"
68091#endif
68092char krb5_krbhst_init ();
68093/* The GNU C library defines this for functions which it implements
68094    to always fail with ENOSYS.  Some functions are actually named
68095    something starting with __ and the normal name is an alias.  */
68096#if defined __stub_krb5_krbhst_init || defined __stub___krb5_krbhst_init
68097choke me
68098#endif
68099
68100int
68101main ()
68102{
68103return krb5_krbhst_init ();
68104  ;
68105  return 0;
68106}
68107_ACEOF
68108rm -f conftest.$ac_objext conftest$ac_exeext
68109if { (ac_try="$ac_link"
68110case "(($ac_try" in
68111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68112  *) ac_try_echo=$ac_try;;
68113esac
68114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68115$as_echo "$ac_try_echo") >&5
68116  (eval "$ac_link") 2>conftest.er1
68117  ac_status=$?
68118  grep -v '^ *+' conftest.er1 >conftest.err
68119  rm -f conftest.er1
68120  cat conftest.err >&5
68121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68122  (exit $ac_status); } && {
68123	 test -z "$ac_c_werror_flag" ||
68124	 test ! -s conftest.err
68125       } && test -s conftest$ac_exeext && {
68126	 test "$cross_compiling" = yes ||
68127	 $as_test_x conftest$ac_exeext
68128       }; then
68129  ac_cv_func_ext_krb5_krbhst_init=yes
68130else
68131  $as_echo "$as_me: failed program was:" >&5
68132sed 's/^/| /' conftest.$ac_ext >&5
68133
68134	ac_cv_func_ext_krb5_krbhst_init=no
68135fi
68136
68137rm -rf conftest.dSYM
68138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68139      conftest$ac_exeext conftest.$ac_ext
68140fi
68141{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_krbhst_init" >&5
68142$as_echo "$ac_cv_func_ext_krb5_krbhst_init" >&6; }
68143    LIBS=$ac_check_func_ext_save_LIBS
68144    if test $ac_cv_func_ext_krb5_krbhst_init = yes; then
68145  cat >>confdefs.h <<_ACEOF
68146#define HAVE_KRB5_KRBHST_INIT 1
68147_ACEOF
68148
68149fi
68150
68151
68152
68153
68154    ac_check_func_ext_save_LIBS=$LIBS
68155    LIBS="$KRB5_LIBS $LIBS"
68156        { $as_echo "$as_me:$LINENO: checking for krb5_krbhst_get_addrinfo" >&5
68157$as_echo_n "checking for krb5_krbhst_get_addrinfo... " >&6; }
68158if test "${ac_cv_func_ext_krb5_krbhst_get_addrinfo+set}" = set; then
68159  $as_echo_n "(cached) " >&6
68160else
68161  cat >conftest.$ac_ext <<_ACEOF
68162/* confdefs.h.  */
68163_ACEOF
68164cat confdefs.h >>conftest.$ac_ext
68165cat >>conftest.$ac_ext <<_ACEOF
68166/* end confdefs.h.  */
68167/* Define krb5_krbhst_get_addrinfo to an innocuous variant, in case <limits.h> declares krb5_krbhst_get_addrinfo.
68168   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68169#define krb5_krbhst_get_addrinfo innocuous_krb5_krbhst_get_addrinfo
68170
68171/* System header to define __stub macros and hopefully few prototypes,
68172    which can conflict with char krb5_krbhst_get_addrinfo (); below.
68173    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68174    <limits.h> exists even on freestanding compilers.  */
68175
68176#ifdef __STDC__
68177# include <limits.h>
68178#else
68179# include <assert.h>
68180#endif
68181
68182#undef krb5_krbhst_get_addrinfo
68183
68184/* Override any GCC internal prototype to avoid an error.
68185   Use char because int might match the return type of a GCC
68186   builtin and then its argument prototype would still apply.  */
68187#ifdef __cplusplus
68188extern "C"
68189#endif
68190char krb5_krbhst_get_addrinfo ();
68191/* The GNU C library defines this for functions which it implements
68192    to always fail with ENOSYS.  Some functions are actually named
68193    something starting with __ and the normal name is an alias.  */
68194#if defined __stub_krb5_krbhst_get_addrinfo || defined __stub___krb5_krbhst_get_addrinfo
68195choke me
68196#endif
68197
68198int
68199main ()
68200{
68201return krb5_krbhst_get_addrinfo ();
68202  ;
68203  return 0;
68204}
68205_ACEOF
68206rm -f conftest.$ac_objext conftest$ac_exeext
68207if { (ac_try="$ac_link"
68208case "(($ac_try" in
68209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68210  *) ac_try_echo=$ac_try;;
68211esac
68212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68213$as_echo "$ac_try_echo") >&5
68214  (eval "$ac_link") 2>conftest.er1
68215  ac_status=$?
68216  grep -v '^ *+' conftest.er1 >conftest.err
68217  rm -f conftest.er1
68218  cat conftest.err >&5
68219  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68220  (exit $ac_status); } && {
68221	 test -z "$ac_c_werror_flag" ||
68222	 test ! -s conftest.err
68223       } && test -s conftest$ac_exeext && {
68224	 test "$cross_compiling" = yes ||
68225	 $as_test_x conftest$ac_exeext
68226       }; then
68227  ac_cv_func_ext_krb5_krbhst_get_addrinfo=yes
68228else
68229  $as_echo "$as_me: failed program was:" >&5
68230sed 's/^/| /' conftest.$ac_ext >&5
68231
68232	ac_cv_func_ext_krb5_krbhst_get_addrinfo=no
68233fi
68234
68235rm -rf conftest.dSYM
68236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68237      conftest$ac_exeext conftest.$ac_ext
68238fi
68239{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_krbhst_get_addrinfo" >&5
68240$as_echo "$ac_cv_func_ext_krb5_krbhst_get_addrinfo" >&6; }
68241    LIBS=$ac_check_func_ext_save_LIBS
68242    if test $ac_cv_func_ext_krb5_krbhst_get_addrinfo = yes; then
68243  cat >>confdefs.h <<_ACEOF
68244#define HAVE_KRB5_KRBHST_GET_ADDRINFO 1
68245_ACEOF
68246
68247fi
68248
68249
68250
68251
68252    ac_check_func_ext_save_LIBS=$LIBS
68253    LIBS="$KRB5_LIBS $LIBS"
68254        { $as_echo "$as_me:$LINENO: checking for krb5_c_enctype_compare" >&5
68255$as_echo_n "checking for krb5_c_enctype_compare... " >&6; }
68256if test "${ac_cv_func_ext_krb5_c_enctype_compare+set}" = set; then
68257  $as_echo_n "(cached) " >&6
68258else
68259  cat >conftest.$ac_ext <<_ACEOF
68260/* confdefs.h.  */
68261_ACEOF
68262cat confdefs.h >>conftest.$ac_ext
68263cat >>conftest.$ac_ext <<_ACEOF
68264/* end confdefs.h.  */
68265/* Define krb5_c_enctype_compare to an innocuous variant, in case <limits.h> declares krb5_c_enctype_compare.
68266   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68267#define krb5_c_enctype_compare innocuous_krb5_c_enctype_compare
68268
68269/* System header to define __stub macros and hopefully few prototypes,
68270    which can conflict with char krb5_c_enctype_compare (); below.
68271    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68272    <limits.h> exists even on freestanding compilers.  */
68273
68274#ifdef __STDC__
68275# include <limits.h>
68276#else
68277# include <assert.h>
68278#endif
68279
68280#undef krb5_c_enctype_compare
68281
68282/* Override any GCC internal prototype to avoid an error.
68283   Use char because int might match the return type of a GCC
68284   builtin and then its argument prototype would still apply.  */
68285#ifdef __cplusplus
68286extern "C"
68287#endif
68288char krb5_c_enctype_compare ();
68289/* The GNU C library defines this for functions which it implements
68290    to always fail with ENOSYS.  Some functions are actually named
68291    something starting with __ and the normal name is an alias.  */
68292#if defined __stub_krb5_c_enctype_compare || defined __stub___krb5_c_enctype_compare
68293choke me
68294#endif
68295
68296int
68297main ()
68298{
68299return krb5_c_enctype_compare ();
68300  ;
68301  return 0;
68302}
68303_ACEOF
68304rm -f conftest.$ac_objext conftest$ac_exeext
68305if { (ac_try="$ac_link"
68306case "(($ac_try" in
68307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68308  *) ac_try_echo=$ac_try;;
68309esac
68310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68311$as_echo "$ac_try_echo") >&5
68312  (eval "$ac_link") 2>conftest.er1
68313  ac_status=$?
68314  grep -v '^ *+' conftest.er1 >conftest.err
68315  rm -f conftest.er1
68316  cat conftest.err >&5
68317  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68318  (exit $ac_status); } && {
68319	 test -z "$ac_c_werror_flag" ||
68320	 test ! -s conftest.err
68321       } && test -s conftest$ac_exeext && {
68322	 test "$cross_compiling" = yes ||
68323	 $as_test_x conftest$ac_exeext
68324       }; then
68325  ac_cv_func_ext_krb5_c_enctype_compare=yes
68326else
68327  $as_echo "$as_me: failed program was:" >&5
68328sed 's/^/| /' conftest.$ac_ext >&5
68329
68330	ac_cv_func_ext_krb5_c_enctype_compare=no
68331fi
68332
68333rm -rf conftest.dSYM
68334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68335      conftest$ac_exeext conftest.$ac_ext
68336fi
68337{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_c_enctype_compare" >&5
68338$as_echo "$ac_cv_func_ext_krb5_c_enctype_compare" >&6; }
68339    LIBS=$ac_check_func_ext_save_LIBS
68340    if test $ac_cv_func_ext_krb5_c_enctype_compare = yes; then
68341  cat >>confdefs.h <<_ACEOF
68342#define HAVE_KRB5_C_ENCTYPE_COMPARE 1
68343_ACEOF
68344
68345fi
68346
68347
68348
68349
68350    ac_check_func_ext_save_LIBS=$LIBS
68351    LIBS="$KRB5_LIBS $LIBS"
68352        { $as_echo "$as_me:$LINENO: checking for krb5_enctypes_compatible_keys" >&5
68353$as_echo_n "checking for krb5_enctypes_compatible_keys... " >&6; }
68354if test "${ac_cv_func_ext_krb5_enctypes_compatible_keys+set}" = set; then
68355  $as_echo_n "(cached) " >&6
68356else
68357  cat >conftest.$ac_ext <<_ACEOF
68358/* confdefs.h.  */
68359_ACEOF
68360cat confdefs.h >>conftest.$ac_ext
68361cat >>conftest.$ac_ext <<_ACEOF
68362/* end confdefs.h.  */
68363/* Define krb5_enctypes_compatible_keys to an innocuous variant, in case <limits.h> declares krb5_enctypes_compatible_keys.
68364   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68365#define krb5_enctypes_compatible_keys innocuous_krb5_enctypes_compatible_keys
68366
68367/* System header to define __stub macros and hopefully few prototypes,
68368    which can conflict with char krb5_enctypes_compatible_keys (); below.
68369    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68370    <limits.h> exists even on freestanding compilers.  */
68371
68372#ifdef __STDC__
68373# include <limits.h>
68374#else
68375# include <assert.h>
68376#endif
68377
68378#undef krb5_enctypes_compatible_keys
68379
68380/* Override any GCC internal prototype to avoid an error.
68381   Use char because int might match the return type of a GCC
68382   builtin and then its argument prototype would still apply.  */
68383#ifdef __cplusplus
68384extern "C"
68385#endif
68386char krb5_enctypes_compatible_keys ();
68387/* The GNU C library defines this for functions which it implements
68388    to always fail with ENOSYS.  Some functions are actually named
68389    something starting with __ and the normal name is an alias.  */
68390#if defined __stub_krb5_enctypes_compatible_keys || defined __stub___krb5_enctypes_compatible_keys
68391choke me
68392#endif
68393
68394int
68395main ()
68396{
68397return krb5_enctypes_compatible_keys ();
68398  ;
68399  return 0;
68400}
68401_ACEOF
68402rm -f conftest.$ac_objext conftest$ac_exeext
68403if { (ac_try="$ac_link"
68404case "(($ac_try" in
68405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68406  *) ac_try_echo=$ac_try;;
68407esac
68408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68409$as_echo "$ac_try_echo") >&5
68410  (eval "$ac_link") 2>conftest.er1
68411  ac_status=$?
68412  grep -v '^ *+' conftest.er1 >conftest.err
68413  rm -f conftest.er1
68414  cat conftest.err >&5
68415  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68416  (exit $ac_status); } && {
68417	 test -z "$ac_c_werror_flag" ||
68418	 test ! -s conftest.err
68419       } && test -s conftest$ac_exeext && {
68420	 test "$cross_compiling" = yes ||
68421	 $as_test_x conftest$ac_exeext
68422       }; then
68423  ac_cv_func_ext_krb5_enctypes_compatible_keys=yes
68424else
68425  $as_echo "$as_me: failed program was:" >&5
68426sed 's/^/| /' conftest.$ac_ext >&5
68427
68428	ac_cv_func_ext_krb5_enctypes_compatible_keys=no
68429fi
68430
68431rm -rf conftest.dSYM
68432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68433      conftest$ac_exeext conftest.$ac_ext
68434fi
68435{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_enctypes_compatible_keys" >&5
68436$as_echo "$ac_cv_func_ext_krb5_enctypes_compatible_keys" >&6; }
68437    LIBS=$ac_check_func_ext_save_LIBS
68438    if test $ac_cv_func_ext_krb5_enctypes_compatible_keys = yes; then
68439  cat >>confdefs.h <<_ACEOF
68440#define HAVE_KRB5_ENCTYPES_COMPATIBLE_KEYS 1
68441_ACEOF
68442
68443fi
68444
68445
68446
68447
68448    ac_check_func_ext_save_LIBS=$LIBS
68449    LIBS="$KRB5_LIBS $LIBS"
68450        { $as_echo "$as_me:$LINENO: checking for krb5_crypto_init" >&5
68451$as_echo_n "checking for krb5_crypto_init... " >&6; }
68452if test "${ac_cv_func_ext_krb5_crypto_init+set}" = set; then
68453  $as_echo_n "(cached) " >&6
68454else
68455  cat >conftest.$ac_ext <<_ACEOF
68456/* confdefs.h.  */
68457_ACEOF
68458cat confdefs.h >>conftest.$ac_ext
68459cat >>conftest.$ac_ext <<_ACEOF
68460/* end confdefs.h.  */
68461/* Define krb5_crypto_init to an innocuous variant, in case <limits.h> declares krb5_crypto_init.
68462   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68463#define krb5_crypto_init innocuous_krb5_crypto_init
68464
68465/* System header to define __stub macros and hopefully few prototypes,
68466    which can conflict with char krb5_crypto_init (); below.
68467    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68468    <limits.h> exists even on freestanding compilers.  */
68469
68470#ifdef __STDC__
68471# include <limits.h>
68472#else
68473# include <assert.h>
68474#endif
68475
68476#undef krb5_crypto_init
68477
68478/* Override any GCC internal prototype to avoid an error.
68479   Use char because int might match the return type of a GCC
68480   builtin and then its argument prototype would still apply.  */
68481#ifdef __cplusplus
68482extern "C"
68483#endif
68484char krb5_crypto_init ();
68485/* The GNU C library defines this for functions which it implements
68486    to always fail with ENOSYS.  Some functions are actually named
68487    something starting with __ and the normal name is an alias.  */
68488#if defined __stub_krb5_crypto_init || defined __stub___krb5_crypto_init
68489choke me
68490#endif
68491
68492int
68493main ()
68494{
68495return krb5_crypto_init ();
68496  ;
68497  return 0;
68498}
68499_ACEOF
68500rm -f conftest.$ac_objext conftest$ac_exeext
68501if { (ac_try="$ac_link"
68502case "(($ac_try" in
68503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68504  *) ac_try_echo=$ac_try;;
68505esac
68506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68507$as_echo "$ac_try_echo") >&5
68508  (eval "$ac_link") 2>conftest.er1
68509  ac_status=$?
68510  grep -v '^ *+' conftest.er1 >conftest.err
68511  rm -f conftest.er1
68512  cat conftest.err >&5
68513  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68514  (exit $ac_status); } && {
68515	 test -z "$ac_c_werror_flag" ||
68516	 test ! -s conftest.err
68517       } && test -s conftest$ac_exeext && {
68518	 test "$cross_compiling" = yes ||
68519	 $as_test_x conftest$ac_exeext
68520       }; then
68521  ac_cv_func_ext_krb5_crypto_init=yes
68522else
68523  $as_echo "$as_me: failed program was:" >&5
68524sed 's/^/| /' conftest.$ac_ext >&5
68525
68526	ac_cv_func_ext_krb5_crypto_init=no
68527fi
68528
68529rm -rf conftest.dSYM
68530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68531      conftest$ac_exeext conftest.$ac_ext
68532fi
68533{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_crypto_init" >&5
68534$as_echo "$ac_cv_func_ext_krb5_crypto_init" >&6; }
68535    LIBS=$ac_check_func_ext_save_LIBS
68536    if test $ac_cv_func_ext_krb5_crypto_init = yes; then
68537  cat >>confdefs.h <<_ACEOF
68538#define HAVE_KRB5_CRYPTO_INIT 1
68539_ACEOF
68540
68541fi
68542
68543
68544
68545
68546    ac_check_func_ext_save_LIBS=$LIBS
68547    LIBS="$KRB5_LIBS $LIBS"
68548        { $as_echo "$as_me:$LINENO: checking for krb5_crypto_destroy" >&5
68549$as_echo_n "checking for krb5_crypto_destroy... " >&6; }
68550if test "${ac_cv_func_ext_krb5_crypto_destroy+set}" = set; then
68551  $as_echo_n "(cached) " >&6
68552else
68553  cat >conftest.$ac_ext <<_ACEOF
68554/* confdefs.h.  */
68555_ACEOF
68556cat confdefs.h >>conftest.$ac_ext
68557cat >>conftest.$ac_ext <<_ACEOF
68558/* end confdefs.h.  */
68559/* Define krb5_crypto_destroy to an innocuous variant, in case <limits.h> declares krb5_crypto_destroy.
68560   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68561#define krb5_crypto_destroy innocuous_krb5_crypto_destroy
68562
68563/* System header to define __stub macros and hopefully few prototypes,
68564    which can conflict with char krb5_crypto_destroy (); below.
68565    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68566    <limits.h> exists even on freestanding compilers.  */
68567
68568#ifdef __STDC__
68569# include <limits.h>
68570#else
68571# include <assert.h>
68572#endif
68573
68574#undef krb5_crypto_destroy
68575
68576/* Override any GCC internal prototype to avoid an error.
68577   Use char because int might match the return type of a GCC
68578   builtin and then its argument prototype would still apply.  */
68579#ifdef __cplusplus
68580extern "C"
68581#endif
68582char krb5_crypto_destroy ();
68583/* The GNU C library defines this for functions which it implements
68584    to always fail with ENOSYS.  Some functions are actually named
68585    something starting with __ and the normal name is an alias.  */
68586#if defined __stub_krb5_crypto_destroy || defined __stub___krb5_crypto_destroy
68587choke me
68588#endif
68589
68590int
68591main ()
68592{
68593return krb5_crypto_destroy ();
68594  ;
68595  return 0;
68596}
68597_ACEOF
68598rm -f conftest.$ac_objext conftest$ac_exeext
68599if { (ac_try="$ac_link"
68600case "(($ac_try" in
68601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68602  *) ac_try_echo=$ac_try;;
68603esac
68604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68605$as_echo "$ac_try_echo") >&5
68606  (eval "$ac_link") 2>conftest.er1
68607  ac_status=$?
68608  grep -v '^ *+' conftest.er1 >conftest.err
68609  rm -f conftest.er1
68610  cat conftest.err >&5
68611  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68612  (exit $ac_status); } && {
68613	 test -z "$ac_c_werror_flag" ||
68614	 test ! -s conftest.err
68615       } && test -s conftest$ac_exeext && {
68616	 test "$cross_compiling" = yes ||
68617	 $as_test_x conftest$ac_exeext
68618       }; then
68619  ac_cv_func_ext_krb5_crypto_destroy=yes
68620else
68621  $as_echo "$as_me: failed program was:" >&5
68622sed 's/^/| /' conftest.$ac_ext >&5
68623
68624	ac_cv_func_ext_krb5_crypto_destroy=no
68625fi
68626
68627rm -rf conftest.dSYM
68628rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68629      conftest$ac_exeext conftest.$ac_ext
68630fi
68631{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_crypto_destroy" >&5
68632$as_echo "$ac_cv_func_ext_krb5_crypto_destroy" >&6; }
68633    LIBS=$ac_check_func_ext_save_LIBS
68634    if test $ac_cv_func_ext_krb5_crypto_destroy = yes; then
68635  cat >>confdefs.h <<_ACEOF
68636#define HAVE_KRB5_CRYPTO_DESTROY 1
68637_ACEOF
68638
68639fi
68640
68641
68642
68643
68644    ac_check_func_ext_save_LIBS=$LIBS
68645    LIBS="$KRB5_LIBS $LIBS"
68646        { $as_echo "$as_me:$LINENO: checking for krb5_decode_ap_req" >&5
68647$as_echo_n "checking for krb5_decode_ap_req... " >&6; }
68648if test "${ac_cv_func_ext_krb5_decode_ap_req+set}" = set; then
68649  $as_echo_n "(cached) " >&6
68650else
68651  cat >conftest.$ac_ext <<_ACEOF
68652/* confdefs.h.  */
68653_ACEOF
68654cat confdefs.h >>conftest.$ac_ext
68655cat >>conftest.$ac_ext <<_ACEOF
68656/* end confdefs.h.  */
68657/* Define krb5_decode_ap_req to an innocuous variant, in case <limits.h> declares krb5_decode_ap_req.
68658   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68659#define krb5_decode_ap_req innocuous_krb5_decode_ap_req
68660
68661/* System header to define __stub macros and hopefully few prototypes,
68662    which can conflict with char krb5_decode_ap_req (); below.
68663    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68664    <limits.h> exists even on freestanding compilers.  */
68665
68666#ifdef __STDC__
68667# include <limits.h>
68668#else
68669# include <assert.h>
68670#endif
68671
68672#undef krb5_decode_ap_req
68673
68674/* Override any GCC internal prototype to avoid an error.
68675   Use char because int might match the return type of a GCC
68676   builtin and then its argument prototype would still apply.  */
68677#ifdef __cplusplus
68678extern "C"
68679#endif
68680char krb5_decode_ap_req ();
68681/* The GNU C library defines this for functions which it implements
68682    to always fail with ENOSYS.  Some functions are actually named
68683    something starting with __ and the normal name is an alias.  */
68684#if defined __stub_krb5_decode_ap_req || defined __stub___krb5_decode_ap_req
68685choke me
68686#endif
68687
68688int
68689main ()
68690{
68691return krb5_decode_ap_req ();
68692  ;
68693  return 0;
68694}
68695_ACEOF
68696rm -f conftest.$ac_objext conftest$ac_exeext
68697if { (ac_try="$ac_link"
68698case "(($ac_try" in
68699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68700  *) ac_try_echo=$ac_try;;
68701esac
68702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68703$as_echo "$ac_try_echo") >&5
68704  (eval "$ac_link") 2>conftest.er1
68705  ac_status=$?
68706  grep -v '^ *+' conftest.er1 >conftest.err
68707  rm -f conftest.er1
68708  cat conftest.err >&5
68709  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68710  (exit $ac_status); } && {
68711	 test -z "$ac_c_werror_flag" ||
68712	 test ! -s conftest.err
68713       } && test -s conftest$ac_exeext && {
68714	 test "$cross_compiling" = yes ||
68715	 $as_test_x conftest$ac_exeext
68716       }; then
68717  ac_cv_func_ext_krb5_decode_ap_req=yes
68718else
68719  $as_echo "$as_me: failed program was:" >&5
68720sed 's/^/| /' conftest.$ac_ext >&5
68721
68722	ac_cv_func_ext_krb5_decode_ap_req=no
68723fi
68724
68725rm -rf conftest.dSYM
68726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68727      conftest$ac_exeext conftest.$ac_ext
68728fi
68729{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_decode_ap_req" >&5
68730$as_echo "$ac_cv_func_ext_krb5_decode_ap_req" >&6; }
68731    LIBS=$ac_check_func_ext_save_LIBS
68732    if test $ac_cv_func_ext_krb5_decode_ap_req = yes; then
68733  cat >>confdefs.h <<_ACEOF
68734#define HAVE_KRB5_DECODE_AP_REQ 1
68735_ACEOF
68736
68737fi
68738
68739
68740
68741
68742    ac_check_func_ext_save_LIBS=$LIBS
68743    LIBS="$KRB5_LIBS $LIBS"
68744        { $as_echo "$as_me:$LINENO: checking for free_AP_REQ" >&5
68745$as_echo_n "checking for free_AP_REQ... " >&6; }
68746if test "${ac_cv_func_ext_free_AP_REQ+set}" = set; then
68747  $as_echo_n "(cached) " >&6
68748else
68749  cat >conftest.$ac_ext <<_ACEOF
68750/* confdefs.h.  */
68751_ACEOF
68752cat confdefs.h >>conftest.$ac_ext
68753cat >>conftest.$ac_ext <<_ACEOF
68754/* end confdefs.h.  */
68755/* Define free_AP_REQ to an innocuous variant, in case <limits.h> declares free_AP_REQ.
68756   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68757#define free_AP_REQ innocuous_free_AP_REQ
68758
68759/* System header to define __stub macros and hopefully few prototypes,
68760    which can conflict with char free_AP_REQ (); below.
68761    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68762    <limits.h> exists even on freestanding compilers.  */
68763
68764#ifdef __STDC__
68765# include <limits.h>
68766#else
68767# include <assert.h>
68768#endif
68769
68770#undef free_AP_REQ
68771
68772/* Override any GCC internal prototype to avoid an error.
68773   Use char because int might match the return type of a GCC
68774   builtin and then its argument prototype would still apply.  */
68775#ifdef __cplusplus
68776extern "C"
68777#endif
68778char free_AP_REQ ();
68779/* The GNU C library defines this for functions which it implements
68780    to always fail with ENOSYS.  Some functions are actually named
68781    something starting with __ and the normal name is an alias.  */
68782#if defined __stub_free_AP_REQ || defined __stub___free_AP_REQ
68783choke me
68784#endif
68785
68786int
68787main ()
68788{
68789return free_AP_REQ ();
68790  ;
68791  return 0;
68792}
68793_ACEOF
68794rm -f conftest.$ac_objext conftest$ac_exeext
68795if { (ac_try="$ac_link"
68796case "(($ac_try" in
68797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68798  *) ac_try_echo=$ac_try;;
68799esac
68800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68801$as_echo "$ac_try_echo") >&5
68802  (eval "$ac_link") 2>conftest.er1
68803  ac_status=$?
68804  grep -v '^ *+' conftest.er1 >conftest.err
68805  rm -f conftest.er1
68806  cat conftest.err >&5
68807  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68808  (exit $ac_status); } && {
68809	 test -z "$ac_c_werror_flag" ||
68810	 test ! -s conftest.err
68811       } && test -s conftest$ac_exeext && {
68812	 test "$cross_compiling" = yes ||
68813	 $as_test_x conftest$ac_exeext
68814       }; then
68815  ac_cv_func_ext_free_AP_REQ=yes
68816else
68817  $as_echo "$as_me: failed program was:" >&5
68818sed 's/^/| /' conftest.$ac_ext >&5
68819
68820	ac_cv_func_ext_free_AP_REQ=no
68821fi
68822
68823rm -rf conftest.dSYM
68824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68825      conftest$ac_exeext conftest.$ac_ext
68826fi
68827{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_free_AP_REQ" >&5
68828$as_echo "$ac_cv_func_ext_free_AP_REQ" >&6; }
68829    LIBS=$ac_check_func_ext_save_LIBS
68830    if test $ac_cv_func_ext_free_AP_REQ = yes; then
68831  cat >>confdefs.h <<_ACEOF
68832#define HAVE_FREE_AP_REQ 1
68833_ACEOF
68834
68835fi
68836
68837
68838
68839
68840    ac_check_func_ext_save_LIBS=$LIBS
68841    LIBS="$KRB5_LIBS $LIBS"
68842        { $as_echo "$as_me:$LINENO: checking for krb5_verify_checksum" >&5
68843$as_echo_n "checking for krb5_verify_checksum... " >&6; }
68844if test "${ac_cv_func_ext_krb5_verify_checksum+set}" = set; then
68845  $as_echo_n "(cached) " >&6
68846else
68847  cat >conftest.$ac_ext <<_ACEOF
68848/* confdefs.h.  */
68849_ACEOF
68850cat confdefs.h >>conftest.$ac_ext
68851cat >>conftest.$ac_ext <<_ACEOF
68852/* end confdefs.h.  */
68853/* Define krb5_verify_checksum to an innocuous variant, in case <limits.h> declares krb5_verify_checksum.
68854   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68855#define krb5_verify_checksum innocuous_krb5_verify_checksum
68856
68857/* System header to define __stub macros and hopefully few prototypes,
68858    which can conflict with char krb5_verify_checksum (); below.
68859    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68860    <limits.h> exists even on freestanding compilers.  */
68861
68862#ifdef __STDC__
68863# include <limits.h>
68864#else
68865# include <assert.h>
68866#endif
68867
68868#undef krb5_verify_checksum
68869
68870/* Override any GCC internal prototype to avoid an error.
68871   Use char because int might match the return type of a GCC
68872   builtin and then its argument prototype would still apply.  */
68873#ifdef __cplusplus
68874extern "C"
68875#endif
68876char krb5_verify_checksum ();
68877/* The GNU C library defines this for functions which it implements
68878    to always fail with ENOSYS.  Some functions are actually named
68879    something starting with __ and the normal name is an alias.  */
68880#if defined __stub_krb5_verify_checksum || defined __stub___krb5_verify_checksum
68881choke me
68882#endif
68883
68884int
68885main ()
68886{
68887return krb5_verify_checksum ();
68888  ;
68889  return 0;
68890}
68891_ACEOF
68892rm -f conftest.$ac_objext conftest$ac_exeext
68893if { (ac_try="$ac_link"
68894case "(($ac_try" in
68895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68896  *) ac_try_echo=$ac_try;;
68897esac
68898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68899$as_echo "$ac_try_echo") >&5
68900  (eval "$ac_link") 2>conftest.er1
68901  ac_status=$?
68902  grep -v '^ *+' conftest.er1 >conftest.err
68903  rm -f conftest.er1
68904  cat conftest.err >&5
68905  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68906  (exit $ac_status); } && {
68907	 test -z "$ac_c_werror_flag" ||
68908	 test ! -s conftest.err
68909       } && test -s conftest$ac_exeext && {
68910	 test "$cross_compiling" = yes ||
68911	 $as_test_x conftest$ac_exeext
68912       }; then
68913  ac_cv_func_ext_krb5_verify_checksum=yes
68914else
68915  $as_echo "$as_me: failed program was:" >&5
68916sed 's/^/| /' conftest.$ac_ext >&5
68917
68918	ac_cv_func_ext_krb5_verify_checksum=no
68919fi
68920
68921rm -rf conftest.dSYM
68922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68923      conftest$ac_exeext conftest.$ac_ext
68924fi
68925{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_verify_checksum" >&5
68926$as_echo "$ac_cv_func_ext_krb5_verify_checksum" >&6; }
68927    LIBS=$ac_check_func_ext_save_LIBS
68928    if test $ac_cv_func_ext_krb5_verify_checksum = yes; then
68929  cat >>confdefs.h <<_ACEOF
68930#define HAVE_KRB5_VERIFY_CHECKSUM 1
68931_ACEOF
68932
68933fi
68934
68935
68936
68937
68938    ac_check_func_ext_save_LIBS=$LIBS
68939    LIBS="$KRB5_LIBS $LIBS"
68940        { $as_echo "$as_me:$LINENO: checking for krb5_c_verify_checksum" >&5
68941$as_echo_n "checking for krb5_c_verify_checksum... " >&6; }
68942if test "${ac_cv_func_ext_krb5_c_verify_checksum+set}" = set; then
68943  $as_echo_n "(cached) " >&6
68944else
68945  cat >conftest.$ac_ext <<_ACEOF
68946/* confdefs.h.  */
68947_ACEOF
68948cat confdefs.h >>conftest.$ac_ext
68949cat >>conftest.$ac_ext <<_ACEOF
68950/* end confdefs.h.  */
68951/* Define krb5_c_verify_checksum to an innocuous variant, in case <limits.h> declares krb5_c_verify_checksum.
68952   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68953#define krb5_c_verify_checksum innocuous_krb5_c_verify_checksum
68954
68955/* System header to define __stub macros and hopefully few prototypes,
68956    which can conflict with char krb5_c_verify_checksum (); below.
68957    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68958    <limits.h> exists even on freestanding compilers.  */
68959
68960#ifdef __STDC__
68961# include <limits.h>
68962#else
68963# include <assert.h>
68964#endif
68965
68966#undef krb5_c_verify_checksum
68967
68968/* Override any GCC internal prototype to avoid an error.
68969   Use char because int might match the return type of a GCC
68970   builtin and then its argument prototype would still apply.  */
68971#ifdef __cplusplus
68972extern "C"
68973#endif
68974char krb5_c_verify_checksum ();
68975/* The GNU C library defines this for functions which it implements
68976    to always fail with ENOSYS.  Some functions are actually named
68977    something starting with __ and the normal name is an alias.  */
68978#if defined __stub_krb5_c_verify_checksum || defined __stub___krb5_c_verify_checksum
68979choke me
68980#endif
68981
68982int
68983main ()
68984{
68985return krb5_c_verify_checksum ();
68986  ;
68987  return 0;
68988}
68989_ACEOF
68990rm -f conftest.$ac_objext conftest$ac_exeext
68991if { (ac_try="$ac_link"
68992case "(($ac_try" in
68993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68994  *) ac_try_echo=$ac_try;;
68995esac
68996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68997$as_echo "$ac_try_echo") >&5
68998  (eval "$ac_link") 2>conftest.er1
68999  ac_status=$?
69000  grep -v '^ *+' conftest.er1 >conftest.err
69001  rm -f conftest.er1
69002  cat conftest.err >&5
69003  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69004  (exit $ac_status); } && {
69005	 test -z "$ac_c_werror_flag" ||
69006	 test ! -s conftest.err
69007       } && test -s conftest$ac_exeext && {
69008	 test "$cross_compiling" = yes ||
69009	 $as_test_x conftest$ac_exeext
69010       }; then
69011  ac_cv_func_ext_krb5_c_verify_checksum=yes
69012else
69013  $as_echo "$as_me: failed program was:" >&5
69014sed 's/^/| /' conftest.$ac_ext >&5
69015
69016	ac_cv_func_ext_krb5_c_verify_checksum=no
69017fi
69018
69019rm -rf conftest.dSYM
69020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69021      conftest$ac_exeext conftest.$ac_ext
69022fi
69023{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_c_verify_checksum" >&5
69024$as_echo "$ac_cv_func_ext_krb5_c_verify_checksum" >&6; }
69025    LIBS=$ac_check_func_ext_save_LIBS
69026    if test $ac_cv_func_ext_krb5_c_verify_checksum = yes; then
69027  cat >>confdefs.h <<_ACEOF
69028#define HAVE_KRB5_C_VERIFY_CHECKSUM 1
69029_ACEOF
69030
69031fi
69032
69033
69034
69035
69036    ac_check_func_ext_save_LIBS=$LIBS
69037    LIBS="$KRB5_LIBS $LIBS"
69038        { $as_echo "$as_me:$LINENO: checking for krb5_principal_compare_any_realm" >&5
69039$as_echo_n "checking for krb5_principal_compare_any_realm... " >&6; }
69040if test "${ac_cv_func_ext_krb5_principal_compare_any_realm+set}" = set; then
69041  $as_echo_n "(cached) " >&6
69042else
69043  cat >conftest.$ac_ext <<_ACEOF
69044/* confdefs.h.  */
69045_ACEOF
69046cat confdefs.h >>conftest.$ac_ext
69047cat >>conftest.$ac_ext <<_ACEOF
69048/* end confdefs.h.  */
69049/* Define krb5_principal_compare_any_realm to an innocuous variant, in case <limits.h> declares krb5_principal_compare_any_realm.
69050   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69051#define krb5_principal_compare_any_realm innocuous_krb5_principal_compare_any_realm
69052
69053/* System header to define __stub macros and hopefully few prototypes,
69054    which can conflict with char krb5_principal_compare_any_realm (); below.
69055    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69056    <limits.h> exists even on freestanding compilers.  */
69057
69058#ifdef __STDC__
69059# include <limits.h>
69060#else
69061# include <assert.h>
69062#endif
69063
69064#undef krb5_principal_compare_any_realm
69065
69066/* Override any GCC internal prototype to avoid an error.
69067   Use char because int might match the return type of a GCC
69068   builtin and then its argument prototype would still apply.  */
69069#ifdef __cplusplus
69070extern "C"
69071#endif
69072char krb5_principal_compare_any_realm ();
69073/* The GNU C library defines this for functions which it implements
69074    to always fail with ENOSYS.  Some functions are actually named
69075    something starting with __ and the normal name is an alias.  */
69076#if defined __stub_krb5_principal_compare_any_realm || defined __stub___krb5_principal_compare_any_realm
69077choke me
69078#endif
69079
69080int
69081main ()
69082{
69083return krb5_principal_compare_any_realm ();
69084  ;
69085  return 0;
69086}
69087_ACEOF
69088rm -f conftest.$ac_objext conftest$ac_exeext
69089if { (ac_try="$ac_link"
69090case "(($ac_try" in
69091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69092  *) ac_try_echo=$ac_try;;
69093esac
69094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69095$as_echo "$ac_try_echo") >&5
69096  (eval "$ac_link") 2>conftest.er1
69097  ac_status=$?
69098  grep -v '^ *+' conftest.er1 >conftest.err
69099  rm -f conftest.er1
69100  cat conftest.err >&5
69101  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69102  (exit $ac_status); } && {
69103	 test -z "$ac_c_werror_flag" ||
69104	 test ! -s conftest.err
69105       } && test -s conftest$ac_exeext && {
69106	 test "$cross_compiling" = yes ||
69107	 $as_test_x conftest$ac_exeext
69108       }; then
69109  ac_cv_func_ext_krb5_principal_compare_any_realm=yes
69110else
69111  $as_echo "$as_me: failed program was:" >&5
69112sed 's/^/| /' conftest.$ac_ext >&5
69113
69114	ac_cv_func_ext_krb5_principal_compare_any_realm=no
69115fi
69116
69117rm -rf conftest.dSYM
69118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69119      conftest$ac_exeext conftest.$ac_ext
69120fi
69121{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_principal_compare_any_realm" >&5
69122$as_echo "$ac_cv_func_ext_krb5_principal_compare_any_realm" >&6; }
69123    LIBS=$ac_check_func_ext_save_LIBS
69124    if test $ac_cv_func_ext_krb5_principal_compare_any_realm = yes; then
69125  cat >>confdefs.h <<_ACEOF
69126#define HAVE_KRB5_PRINCIPAL_COMPARE_ANY_REALM 1
69127_ACEOF
69128
69129fi
69130
69131
69132
69133
69134    ac_check_func_ext_save_LIBS=$LIBS
69135    LIBS="$KRB5_LIBS $LIBS"
69136        { $as_echo "$as_me:$LINENO: checking for krb5_parse_name_norealm" >&5
69137$as_echo_n "checking for krb5_parse_name_norealm... " >&6; }
69138if test "${ac_cv_func_ext_krb5_parse_name_norealm+set}" = set; then
69139  $as_echo_n "(cached) " >&6
69140else
69141  cat >conftest.$ac_ext <<_ACEOF
69142/* confdefs.h.  */
69143_ACEOF
69144cat confdefs.h >>conftest.$ac_ext
69145cat >>conftest.$ac_ext <<_ACEOF
69146/* end confdefs.h.  */
69147/* Define krb5_parse_name_norealm to an innocuous variant, in case <limits.h> declares krb5_parse_name_norealm.
69148   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69149#define krb5_parse_name_norealm innocuous_krb5_parse_name_norealm
69150
69151/* System header to define __stub macros and hopefully few prototypes,
69152    which can conflict with char krb5_parse_name_norealm (); below.
69153    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69154    <limits.h> exists even on freestanding compilers.  */
69155
69156#ifdef __STDC__
69157# include <limits.h>
69158#else
69159# include <assert.h>
69160#endif
69161
69162#undef krb5_parse_name_norealm
69163
69164/* Override any GCC internal prototype to avoid an error.
69165   Use char because int might match the return type of a GCC
69166   builtin and then its argument prototype would still apply.  */
69167#ifdef __cplusplus
69168extern "C"
69169#endif
69170char krb5_parse_name_norealm ();
69171/* The GNU C library defines this for functions which it implements
69172    to always fail with ENOSYS.  Some functions are actually named
69173    something starting with __ and the normal name is an alias.  */
69174#if defined __stub_krb5_parse_name_norealm || defined __stub___krb5_parse_name_norealm
69175choke me
69176#endif
69177
69178int
69179main ()
69180{
69181return krb5_parse_name_norealm ();
69182  ;
69183  return 0;
69184}
69185_ACEOF
69186rm -f conftest.$ac_objext conftest$ac_exeext
69187if { (ac_try="$ac_link"
69188case "(($ac_try" in
69189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69190  *) ac_try_echo=$ac_try;;
69191esac
69192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69193$as_echo "$ac_try_echo") >&5
69194  (eval "$ac_link") 2>conftest.er1
69195  ac_status=$?
69196  grep -v '^ *+' conftest.er1 >conftest.err
69197  rm -f conftest.er1
69198  cat conftest.err >&5
69199  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69200  (exit $ac_status); } && {
69201	 test -z "$ac_c_werror_flag" ||
69202	 test ! -s conftest.err
69203       } && test -s conftest$ac_exeext && {
69204	 test "$cross_compiling" = yes ||
69205	 $as_test_x conftest$ac_exeext
69206       }; then
69207  ac_cv_func_ext_krb5_parse_name_norealm=yes
69208else
69209  $as_echo "$as_me: failed program was:" >&5
69210sed 's/^/| /' conftest.$ac_ext >&5
69211
69212	ac_cv_func_ext_krb5_parse_name_norealm=no
69213fi
69214
69215rm -rf conftest.dSYM
69216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69217      conftest$ac_exeext conftest.$ac_ext
69218fi
69219{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_parse_name_norealm" >&5
69220$as_echo "$ac_cv_func_ext_krb5_parse_name_norealm" >&6; }
69221    LIBS=$ac_check_func_ext_save_LIBS
69222    if test $ac_cv_func_ext_krb5_parse_name_norealm = yes; then
69223  cat >>confdefs.h <<_ACEOF
69224#define HAVE_KRB5_PARSE_NAME_NOREALM 1
69225_ACEOF
69226
69227fi
69228
69229
69230
69231
69232    ac_check_func_ext_save_LIBS=$LIBS
69233    LIBS="$KRB5_LIBS $LIBS"
69234        { $as_echo "$as_me:$LINENO: checking for krb5_princ_size" >&5
69235$as_echo_n "checking for krb5_princ_size... " >&6; }
69236if test "${ac_cv_func_ext_krb5_princ_size+set}" = set; then
69237  $as_echo_n "(cached) " >&6
69238else
69239  cat >conftest.$ac_ext <<_ACEOF
69240/* confdefs.h.  */
69241_ACEOF
69242cat confdefs.h >>conftest.$ac_ext
69243cat >>conftest.$ac_ext <<_ACEOF
69244/* end confdefs.h.  */
69245/* Define krb5_princ_size to an innocuous variant, in case <limits.h> declares krb5_princ_size.
69246   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69247#define krb5_princ_size innocuous_krb5_princ_size
69248
69249/* System header to define __stub macros and hopefully few prototypes,
69250    which can conflict with char krb5_princ_size (); below.
69251    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69252    <limits.h> exists even on freestanding compilers.  */
69253
69254#ifdef __STDC__
69255# include <limits.h>
69256#else
69257# include <assert.h>
69258#endif
69259
69260#undef krb5_princ_size
69261
69262/* Override any GCC internal prototype to avoid an error.
69263   Use char because int might match the return type of a GCC
69264   builtin and then its argument prototype would still apply.  */
69265#ifdef __cplusplus
69266extern "C"
69267#endif
69268char krb5_princ_size ();
69269/* The GNU C library defines this for functions which it implements
69270    to always fail with ENOSYS.  Some functions are actually named
69271    something starting with __ and the normal name is an alias.  */
69272#if defined __stub_krb5_princ_size || defined __stub___krb5_princ_size
69273choke me
69274#endif
69275
69276int
69277main ()
69278{
69279return krb5_princ_size ();
69280  ;
69281  return 0;
69282}
69283_ACEOF
69284rm -f conftest.$ac_objext conftest$ac_exeext
69285if { (ac_try="$ac_link"
69286case "(($ac_try" in
69287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69288  *) ac_try_echo=$ac_try;;
69289esac
69290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69291$as_echo "$ac_try_echo") >&5
69292  (eval "$ac_link") 2>conftest.er1
69293  ac_status=$?
69294  grep -v '^ *+' conftest.er1 >conftest.err
69295  rm -f conftest.er1
69296  cat conftest.err >&5
69297  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69298  (exit $ac_status); } && {
69299	 test -z "$ac_c_werror_flag" ||
69300	 test ! -s conftest.err
69301       } && test -s conftest$ac_exeext && {
69302	 test "$cross_compiling" = yes ||
69303	 $as_test_x conftest$ac_exeext
69304       }; then
69305  ac_cv_func_ext_krb5_princ_size=yes
69306else
69307  $as_echo "$as_me: failed program was:" >&5
69308sed 's/^/| /' conftest.$ac_ext >&5
69309
69310	ac_cv_func_ext_krb5_princ_size=no
69311fi
69312
69313rm -rf conftest.dSYM
69314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69315      conftest$ac_exeext conftest.$ac_ext
69316fi
69317{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_princ_size" >&5
69318$as_echo "$ac_cv_func_ext_krb5_princ_size" >&6; }
69319    LIBS=$ac_check_func_ext_save_LIBS
69320    if test $ac_cv_func_ext_krb5_princ_size = yes; then
69321  cat >>confdefs.h <<_ACEOF
69322#define HAVE_KRB5_PRINC_SIZE 1
69323_ACEOF
69324
69325fi
69326
69327
69328
69329
69330    ac_check_func_ext_save_LIBS=$LIBS
69331    LIBS="$KRB5_LIBS $LIBS"
69332        { $as_echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_pac_request" >&5
69333$as_echo_n "checking for krb5_get_init_creds_opt_set_pac_request... " >&6; }
69334if test "${ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request+set}" = set; then
69335  $as_echo_n "(cached) " >&6
69336else
69337  cat >conftest.$ac_ext <<_ACEOF
69338/* confdefs.h.  */
69339_ACEOF
69340cat confdefs.h >>conftest.$ac_ext
69341cat >>conftest.$ac_ext <<_ACEOF
69342/* end confdefs.h.  */
69343/* 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.
69344   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69345#define krb5_get_init_creds_opt_set_pac_request innocuous_krb5_get_init_creds_opt_set_pac_request
69346
69347/* System header to define __stub macros and hopefully few prototypes,
69348    which can conflict with char krb5_get_init_creds_opt_set_pac_request (); below.
69349    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69350    <limits.h> exists even on freestanding compilers.  */
69351
69352#ifdef __STDC__
69353# include <limits.h>
69354#else
69355# include <assert.h>
69356#endif
69357
69358#undef krb5_get_init_creds_opt_set_pac_request
69359
69360/* Override any GCC internal prototype to avoid an error.
69361   Use char because int might match the return type of a GCC
69362   builtin and then its argument prototype would still apply.  */
69363#ifdef __cplusplus
69364extern "C"
69365#endif
69366char krb5_get_init_creds_opt_set_pac_request ();
69367/* The GNU C library defines this for functions which it implements
69368    to always fail with ENOSYS.  Some functions are actually named
69369    something starting with __ and the normal name is an alias.  */
69370#if defined __stub_krb5_get_init_creds_opt_set_pac_request || defined __stub___krb5_get_init_creds_opt_set_pac_request
69371choke me
69372#endif
69373
69374int
69375main ()
69376{
69377return krb5_get_init_creds_opt_set_pac_request ();
69378  ;
69379  return 0;
69380}
69381_ACEOF
69382rm -f conftest.$ac_objext conftest$ac_exeext
69383if { (ac_try="$ac_link"
69384case "(($ac_try" in
69385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69386  *) ac_try_echo=$ac_try;;
69387esac
69388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69389$as_echo "$ac_try_echo") >&5
69390  (eval "$ac_link") 2>conftest.er1
69391  ac_status=$?
69392  grep -v '^ *+' conftest.er1 >conftest.err
69393  rm -f conftest.er1
69394  cat conftest.err >&5
69395  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69396  (exit $ac_status); } && {
69397	 test -z "$ac_c_werror_flag" ||
69398	 test ! -s conftest.err
69399       } && test -s conftest$ac_exeext && {
69400	 test "$cross_compiling" = yes ||
69401	 $as_test_x conftest$ac_exeext
69402       }; then
69403  ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request=yes
69404else
69405  $as_echo "$as_me: failed program was:" >&5
69406sed 's/^/| /' conftest.$ac_ext >&5
69407
69408	ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request=no
69409fi
69410
69411rm -rf conftest.dSYM
69412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69413      conftest$ac_exeext conftest.$ac_ext
69414fi
69415{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request" >&5
69416$as_echo "$ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request" >&6; }
69417    LIBS=$ac_check_func_ext_save_LIBS
69418    if test $ac_cv_func_ext_krb5_get_init_creds_opt_set_pac_request = yes; then
69419  cat >>confdefs.h <<_ACEOF
69420#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_PAC_REQUEST 1
69421_ACEOF
69422
69423fi
69424
69425
69426
69427
69428    ac_check_func_ext_save_LIBS=$LIBS
69429    LIBS="$KRB5_LIBS $LIBS"
69430        { $as_echo "$as_me:$LINENO: checking for krb5_get_renewed_creds" >&5
69431$as_echo_n "checking for krb5_get_renewed_creds... " >&6; }
69432if test "${ac_cv_func_ext_krb5_get_renewed_creds+set}" = set; then
69433  $as_echo_n "(cached) " >&6
69434else
69435  cat >conftest.$ac_ext <<_ACEOF
69436/* confdefs.h.  */
69437_ACEOF
69438cat confdefs.h >>conftest.$ac_ext
69439cat >>conftest.$ac_ext <<_ACEOF
69440/* end confdefs.h.  */
69441/* Define krb5_get_renewed_creds to an innocuous variant, in case <limits.h> declares krb5_get_renewed_creds.
69442   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69443#define krb5_get_renewed_creds innocuous_krb5_get_renewed_creds
69444
69445/* System header to define __stub macros and hopefully few prototypes,
69446    which can conflict with char krb5_get_renewed_creds (); below.
69447    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69448    <limits.h> exists even on freestanding compilers.  */
69449
69450#ifdef __STDC__
69451# include <limits.h>
69452#else
69453# include <assert.h>
69454#endif
69455
69456#undef krb5_get_renewed_creds
69457
69458/* Override any GCC internal prototype to avoid an error.
69459   Use char because int might match the return type of a GCC
69460   builtin and then its argument prototype would still apply.  */
69461#ifdef __cplusplus
69462extern "C"
69463#endif
69464char krb5_get_renewed_creds ();
69465/* The GNU C library defines this for functions which it implements
69466    to always fail with ENOSYS.  Some functions are actually named
69467    something starting with __ and the normal name is an alias.  */
69468#if defined __stub_krb5_get_renewed_creds || defined __stub___krb5_get_renewed_creds
69469choke me
69470#endif
69471
69472int
69473main ()
69474{
69475return krb5_get_renewed_creds ();
69476  ;
69477  return 0;
69478}
69479_ACEOF
69480rm -f conftest.$ac_objext conftest$ac_exeext
69481if { (ac_try="$ac_link"
69482case "(($ac_try" in
69483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69484  *) ac_try_echo=$ac_try;;
69485esac
69486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69487$as_echo "$ac_try_echo") >&5
69488  (eval "$ac_link") 2>conftest.er1
69489  ac_status=$?
69490  grep -v '^ *+' conftest.er1 >conftest.err
69491  rm -f conftest.er1
69492  cat conftest.err >&5
69493  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69494  (exit $ac_status); } && {
69495	 test -z "$ac_c_werror_flag" ||
69496	 test ! -s conftest.err
69497       } && test -s conftest$ac_exeext && {
69498	 test "$cross_compiling" = yes ||
69499	 $as_test_x conftest$ac_exeext
69500       }; then
69501  ac_cv_func_ext_krb5_get_renewed_creds=yes
69502else
69503  $as_echo "$as_me: failed program was:" >&5
69504sed 's/^/| /' conftest.$ac_ext >&5
69505
69506	ac_cv_func_ext_krb5_get_renewed_creds=no
69507fi
69508
69509rm -rf conftest.dSYM
69510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69511      conftest$ac_exeext conftest.$ac_ext
69512fi
69513{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_renewed_creds" >&5
69514$as_echo "$ac_cv_func_ext_krb5_get_renewed_creds" >&6; }
69515    LIBS=$ac_check_func_ext_save_LIBS
69516    if test $ac_cv_func_ext_krb5_get_renewed_creds = yes; then
69517  cat >>confdefs.h <<_ACEOF
69518#define HAVE_KRB5_GET_RENEWED_CREDS 1
69519_ACEOF
69520
69521fi
69522
69523
69524
69525
69526    ac_check_func_ext_save_LIBS=$LIBS
69527    LIBS="$KRB5_LIBS $LIBS"
69528        { $as_echo "$as_me:$LINENO: checking for krb5_get_kdc_cred" >&5
69529$as_echo_n "checking for krb5_get_kdc_cred... " >&6; }
69530if test "${ac_cv_func_ext_krb5_get_kdc_cred+set}" = set; then
69531  $as_echo_n "(cached) " >&6
69532else
69533  cat >conftest.$ac_ext <<_ACEOF
69534/* confdefs.h.  */
69535_ACEOF
69536cat confdefs.h >>conftest.$ac_ext
69537cat >>conftest.$ac_ext <<_ACEOF
69538/* end confdefs.h.  */
69539/* Define krb5_get_kdc_cred to an innocuous variant, in case <limits.h> declares krb5_get_kdc_cred.
69540   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69541#define krb5_get_kdc_cred innocuous_krb5_get_kdc_cred
69542
69543/* System header to define __stub macros and hopefully few prototypes,
69544    which can conflict with char krb5_get_kdc_cred (); below.
69545    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69546    <limits.h> exists even on freestanding compilers.  */
69547
69548#ifdef __STDC__
69549# include <limits.h>
69550#else
69551# include <assert.h>
69552#endif
69553
69554#undef krb5_get_kdc_cred
69555
69556/* Override any GCC internal prototype to avoid an error.
69557   Use char because int might match the return type of a GCC
69558   builtin and then its argument prototype would still apply.  */
69559#ifdef __cplusplus
69560extern "C"
69561#endif
69562char krb5_get_kdc_cred ();
69563/* The GNU C library defines this for functions which it implements
69564    to always fail with ENOSYS.  Some functions are actually named
69565    something starting with __ and the normal name is an alias.  */
69566#if defined __stub_krb5_get_kdc_cred || defined __stub___krb5_get_kdc_cred
69567choke me
69568#endif
69569
69570int
69571main ()
69572{
69573return krb5_get_kdc_cred ();
69574  ;
69575  return 0;
69576}
69577_ACEOF
69578rm -f conftest.$ac_objext conftest$ac_exeext
69579if { (ac_try="$ac_link"
69580case "(($ac_try" in
69581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69582  *) ac_try_echo=$ac_try;;
69583esac
69584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69585$as_echo "$ac_try_echo") >&5
69586  (eval "$ac_link") 2>conftest.er1
69587  ac_status=$?
69588  grep -v '^ *+' conftest.er1 >conftest.err
69589  rm -f conftest.er1
69590  cat conftest.err >&5
69591  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69592  (exit $ac_status); } && {
69593	 test -z "$ac_c_werror_flag" ||
69594	 test ! -s conftest.err
69595       } && test -s conftest$ac_exeext && {
69596	 test "$cross_compiling" = yes ||
69597	 $as_test_x conftest$ac_exeext
69598       }; then
69599  ac_cv_func_ext_krb5_get_kdc_cred=yes
69600else
69601  $as_echo "$as_me: failed program was:" >&5
69602sed 's/^/| /' conftest.$ac_ext >&5
69603
69604	ac_cv_func_ext_krb5_get_kdc_cred=no
69605fi
69606
69607rm -rf conftest.dSYM
69608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69609      conftest$ac_exeext conftest.$ac_ext
69610fi
69611{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_kdc_cred" >&5
69612$as_echo "$ac_cv_func_ext_krb5_get_kdc_cred" >&6; }
69613    LIBS=$ac_check_func_ext_save_LIBS
69614    if test $ac_cv_func_ext_krb5_get_kdc_cred = yes; then
69615  cat >>confdefs.h <<_ACEOF
69616#define HAVE_KRB5_GET_KDC_CRED 1
69617_ACEOF
69618
69619fi
69620
69621
69622
69623
69624    ac_check_func_ext_save_LIBS=$LIBS
69625    LIBS="$KRB5_LIBS $LIBS"
69626        { $as_echo "$as_me:$LINENO: checking for krb5_free_error_contents" >&5
69627$as_echo_n "checking for krb5_free_error_contents... " >&6; }
69628if test "${ac_cv_func_ext_krb5_free_error_contents+set}" = set; then
69629  $as_echo_n "(cached) " >&6
69630else
69631  cat >conftest.$ac_ext <<_ACEOF
69632/* confdefs.h.  */
69633_ACEOF
69634cat confdefs.h >>conftest.$ac_ext
69635cat >>conftest.$ac_ext <<_ACEOF
69636/* end confdefs.h.  */
69637/* Define krb5_free_error_contents to an innocuous variant, in case <limits.h> declares krb5_free_error_contents.
69638   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69639#define krb5_free_error_contents innocuous_krb5_free_error_contents
69640
69641/* System header to define __stub macros and hopefully few prototypes,
69642    which can conflict with char krb5_free_error_contents (); below.
69643    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69644    <limits.h> exists even on freestanding compilers.  */
69645
69646#ifdef __STDC__
69647# include <limits.h>
69648#else
69649# include <assert.h>
69650#endif
69651
69652#undef krb5_free_error_contents
69653
69654/* Override any GCC internal prototype to avoid an error.
69655   Use char because int might match the return type of a GCC
69656   builtin and then its argument prototype would still apply.  */
69657#ifdef __cplusplus
69658extern "C"
69659#endif
69660char krb5_free_error_contents ();
69661/* The GNU C library defines this for functions which it implements
69662    to always fail with ENOSYS.  Some functions are actually named
69663    something starting with __ and the normal name is an alias.  */
69664#if defined __stub_krb5_free_error_contents || defined __stub___krb5_free_error_contents
69665choke me
69666#endif
69667
69668int
69669main ()
69670{
69671return krb5_free_error_contents ();
69672  ;
69673  return 0;
69674}
69675_ACEOF
69676rm -f conftest.$ac_objext conftest$ac_exeext
69677if { (ac_try="$ac_link"
69678case "(($ac_try" in
69679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69680  *) ac_try_echo=$ac_try;;
69681esac
69682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69683$as_echo "$ac_try_echo") >&5
69684  (eval "$ac_link") 2>conftest.er1
69685  ac_status=$?
69686  grep -v '^ *+' conftest.er1 >conftest.err
69687  rm -f conftest.er1
69688  cat conftest.err >&5
69689  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69690  (exit $ac_status); } && {
69691	 test -z "$ac_c_werror_flag" ||
69692	 test ! -s conftest.err
69693       } && test -s conftest$ac_exeext && {
69694	 test "$cross_compiling" = yes ||
69695	 $as_test_x conftest$ac_exeext
69696       }; then
69697  ac_cv_func_ext_krb5_free_error_contents=yes
69698else
69699  $as_echo "$as_me: failed program was:" >&5
69700sed 's/^/| /' conftest.$ac_ext >&5
69701
69702	ac_cv_func_ext_krb5_free_error_contents=no
69703fi
69704
69705rm -rf conftest.dSYM
69706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69707      conftest$ac_exeext conftest.$ac_ext
69708fi
69709{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_free_error_contents" >&5
69710$as_echo "$ac_cv_func_ext_krb5_free_error_contents" >&6; }
69711    LIBS=$ac_check_func_ext_save_LIBS
69712    if test $ac_cv_func_ext_krb5_free_error_contents = yes; then
69713  cat >>confdefs.h <<_ACEOF
69714#define HAVE_KRB5_FREE_ERROR_CONTENTS 1
69715_ACEOF
69716
69717fi
69718
69719
69720
69721
69722    ac_check_func_ext_save_LIBS=$LIBS
69723    LIBS="$KRB5_LIBS $LIBS"
69724        { $as_echo "$as_me:$LINENO: checking for initialize_krb5_error_table" >&5
69725$as_echo_n "checking for initialize_krb5_error_table... " >&6; }
69726if test "${ac_cv_func_ext_initialize_krb5_error_table+set}" = set; then
69727  $as_echo_n "(cached) " >&6
69728else
69729  cat >conftest.$ac_ext <<_ACEOF
69730/* confdefs.h.  */
69731_ACEOF
69732cat confdefs.h >>conftest.$ac_ext
69733cat >>conftest.$ac_ext <<_ACEOF
69734/* end confdefs.h.  */
69735/* Define initialize_krb5_error_table to an innocuous variant, in case <limits.h> declares initialize_krb5_error_table.
69736   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69737#define initialize_krb5_error_table innocuous_initialize_krb5_error_table
69738
69739/* System header to define __stub macros and hopefully few prototypes,
69740    which can conflict with char initialize_krb5_error_table (); below.
69741    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69742    <limits.h> exists even on freestanding compilers.  */
69743
69744#ifdef __STDC__
69745# include <limits.h>
69746#else
69747# include <assert.h>
69748#endif
69749
69750#undef initialize_krb5_error_table
69751
69752/* Override any GCC internal prototype to avoid an error.
69753   Use char because int might match the return type of a GCC
69754   builtin and then its argument prototype would still apply.  */
69755#ifdef __cplusplus
69756extern "C"
69757#endif
69758char initialize_krb5_error_table ();
69759/* The GNU C library defines this for functions which it implements
69760    to always fail with ENOSYS.  Some functions are actually named
69761    something starting with __ and the normal name is an alias.  */
69762#if defined __stub_initialize_krb5_error_table || defined __stub___initialize_krb5_error_table
69763choke me
69764#endif
69765
69766int
69767main ()
69768{
69769return initialize_krb5_error_table ();
69770  ;
69771  return 0;
69772}
69773_ACEOF
69774rm -f conftest.$ac_objext conftest$ac_exeext
69775if { (ac_try="$ac_link"
69776case "(($ac_try" in
69777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69778  *) ac_try_echo=$ac_try;;
69779esac
69780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69781$as_echo "$ac_try_echo") >&5
69782  (eval "$ac_link") 2>conftest.er1
69783  ac_status=$?
69784  grep -v '^ *+' conftest.er1 >conftest.err
69785  rm -f conftest.er1
69786  cat conftest.err >&5
69787  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69788  (exit $ac_status); } && {
69789	 test -z "$ac_c_werror_flag" ||
69790	 test ! -s conftest.err
69791       } && test -s conftest$ac_exeext && {
69792	 test "$cross_compiling" = yes ||
69793	 $as_test_x conftest$ac_exeext
69794       }; then
69795  ac_cv_func_ext_initialize_krb5_error_table=yes
69796else
69797  $as_echo "$as_me: failed program was:" >&5
69798sed 's/^/| /' conftest.$ac_ext >&5
69799
69800	ac_cv_func_ext_initialize_krb5_error_table=no
69801fi
69802
69803rm -rf conftest.dSYM
69804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69805      conftest$ac_exeext conftest.$ac_ext
69806fi
69807{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_initialize_krb5_error_table" >&5
69808$as_echo "$ac_cv_func_ext_initialize_krb5_error_table" >&6; }
69809    LIBS=$ac_check_func_ext_save_LIBS
69810    if test $ac_cv_func_ext_initialize_krb5_error_table = yes; then
69811  cat >>confdefs.h <<_ACEOF
69812#define HAVE_INITIALIZE_KRB5_ERROR_TABLE 1
69813_ACEOF
69814
69815fi
69816
69817
69818
69819
69820    ac_check_func_ext_save_LIBS=$LIBS
69821    LIBS="$KRB5_LIBS $LIBS"
69822        { $as_echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_alloc" >&5
69823$as_echo_n "checking for krb5_get_init_creds_opt_alloc... " >&6; }
69824if test "${ac_cv_func_ext_krb5_get_init_creds_opt_alloc+set}" = set; then
69825  $as_echo_n "(cached) " >&6
69826else
69827  cat >conftest.$ac_ext <<_ACEOF
69828/* confdefs.h.  */
69829_ACEOF
69830cat confdefs.h >>conftest.$ac_ext
69831cat >>conftest.$ac_ext <<_ACEOF
69832/* end confdefs.h.  */
69833/* Define krb5_get_init_creds_opt_alloc to an innocuous variant, in case <limits.h> declares krb5_get_init_creds_opt_alloc.
69834   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69835#define krb5_get_init_creds_opt_alloc innocuous_krb5_get_init_creds_opt_alloc
69836
69837/* System header to define __stub macros and hopefully few prototypes,
69838    which can conflict with char krb5_get_init_creds_opt_alloc (); below.
69839    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69840    <limits.h> exists even on freestanding compilers.  */
69841
69842#ifdef __STDC__
69843# include <limits.h>
69844#else
69845# include <assert.h>
69846#endif
69847
69848#undef krb5_get_init_creds_opt_alloc
69849
69850/* Override any GCC internal prototype to avoid an error.
69851   Use char because int might match the return type of a GCC
69852   builtin and then its argument prototype would still apply.  */
69853#ifdef __cplusplus
69854extern "C"
69855#endif
69856char krb5_get_init_creds_opt_alloc ();
69857/* The GNU C library defines this for functions which it implements
69858    to always fail with ENOSYS.  Some functions are actually named
69859    something starting with __ and the normal name is an alias.  */
69860#if defined __stub_krb5_get_init_creds_opt_alloc || defined __stub___krb5_get_init_creds_opt_alloc
69861choke me
69862#endif
69863
69864int
69865main ()
69866{
69867return krb5_get_init_creds_opt_alloc ();
69868  ;
69869  return 0;
69870}
69871_ACEOF
69872rm -f conftest.$ac_objext conftest$ac_exeext
69873if { (ac_try="$ac_link"
69874case "(($ac_try" in
69875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69876  *) ac_try_echo=$ac_try;;
69877esac
69878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69879$as_echo "$ac_try_echo") >&5
69880  (eval "$ac_link") 2>conftest.er1
69881  ac_status=$?
69882  grep -v '^ *+' conftest.er1 >conftest.err
69883  rm -f conftest.er1
69884  cat conftest.err >&5
69885  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69886  (exit $ac_status); } && {
69887	 test -z "$ac_c_werror_flag" ||
69888	 test ! -s conftest.err
69889       } && test -s conftest$ac_exeext && {
69890	 test "$cross_compiling" = yes ||
69891	 $as_test_x conftest$ac_exeext
69892       }; then
69893  ac_cv_func_ext_krb5_get_init_creds_opt_alloc=yes
69894else
69895  $as_echo "$as_me: failed program was:" >&5
69896sed 's/^/| /' conftest.$ac_ext >&5
69897
69898	ac_cv_func_ext_krb5_get_init_creds_opt_alloc=no
69899fi
69900
69901rm -rf conftest.dSYM
69902rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69903      conftest$ac_exeext conftest.$ac_ext
69904fi
69905{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_init_creds_opt_alloc" >&5
69906$as_echo "$ac_cv_func_ext_krb5_get_init_creds_opt_alloc" >&6; }
69907    LIBS=$ac_check_func_ext_save_LIBS
69908    if test $ac_cv_func_ext_krb5_get_init_creds_opt_alloc = yes; then
69909  cat >>confdefs.h <<_ACEOF
69910#define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
69911_ACEOF
69912
69913fi
69914
69915
69916
69917
69918    ac_check_func_ext_save_LIBS=$LIBS
69919    LIBS="$KRB5_LIBS $LIBS"
69920        { $as_echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_free" >&5
69921$as_echo_n "checking for krb5_get_init_creds_opt_free... " >&6; }
69922if test "${ac_cv_func_ext_krb5_get_init_creds_opt_free+set}" = set; then
69923  $as_echo_n "(cached) " >&6
69924else
69925  cat >conftest.$ac_ext <<_ACEOF
69926/* confdefs.h.  */
69927_ACEOF
69928cat confdefs.h >>conftest.$ac_ext
69929cat >>conftest.$ac_ext <<_ACEOF
69930/* end confdefs.h.  */
69931/* Define krb5_get_init_creds_opt_free to an innocuous variant, in case <limits.h> declares krb5_get_init_creds_opt_free.
69932   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69933#define krb5_get_init_creds_opt_free innocuous_krb5_get_init_creds_opt_free
69934
69935/* System header to define __stub macros and hopefully few prototypes,
69936    which can conflict with char krb5_get_init_creds_opt_free (); below.
69937    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69938    <limits.h> exists even on freestanding compilers.  */
69939
69940#ifdef __STDC__
69941# include <limits.h>
69942#else
69943# include <assert.h>
69944#endif
69945
69946#undef krb5_get_init_creds_opt_free
69947
69948/* Override any GCC internal prototype to avoid an error.
69949   Use char because int might match the return type of a GCC
69950   builtin and then its argument prototype would still apply.  */
69951#ifdef __cplusplus
69952extern "C"
69953#endif
69954char krb5_get_init_creds_opt_free ();
69955/* The GNU C library defines this for functions which it implements
69956    to always fail with ENOSYS.  Some functions are actually named
69957    something starting with __ and the normal name is an alias.  */
69958#if defined __stub_krb5_get_init_creds_opt_free || defined __stub___krb5_get_init_creds_opt_free
69959choke me
69960#endif
69961
69962int
69963main ()
69964{
69965return krb5_get_init_creds_opt_free ();
69966  ;
69967  return 0;
69968}
69969_ACEOF
69970rm -f conftest.$ac_objext conftest$ac_exeext
69971if { (ac_try="$ac_link"
69972case "(($ac_try" in
69973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69974  *) ac_try_echo=$ac_try;;
69975esac
69976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69977$as_echo "$ac_try_echo") >&5
69978  (eval "$ac_link") 2>conftest.er1
69979  ac_status=$?
69980  grep -v '^ *+' conftest.er1 >conftest.err
69981  rm -f conftest.er1
69982  cat conftest.err >&5
69983  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69984  (exit $ac_status); } && {
69985	 test -z "$ac_c_werror_flag" ||
69986	 test ! -s conftest.err
69987       } && test -s conftest$ac_exeext && {
69988	 test "$cross_compiling" = yes ||
69989	 $as_test_x conftest$ac_exeext
69990       }; then
69991  ac_cv_func_ext_krb5_get_init_creds_opt_free=yes
69992else
69993  $as_echo "$as_me: failed program was:" >&5
69994sed 's/^/| /' conftest.$ac_ext >&5
69995
69996	ac_cv_func_ext_krb5_get_init_creds_opt_free=no
69997fi
69998
69999rm -rf conftest.dSYM
70000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70001      conftest$ac_exeext conftest.$ac_ext
70002fi
70003{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_init_creds_opt_free" >&5
70004$as_echo "$ac_cv_func_ext_krb5_get_init_creds_opt_free" >&6; }
70005    LIBS=$ac_check_func_ext_save_LIBS
70006    if test $ac_cv_func_ext_krb5_get_init_creds_opt_free = yes; then
70007  cat >>confdefs.h <<_ACEOF
70008#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE 1
70009_ACEOF
70010
70011fi
70012
70013
70014
70015
70016    ac_check_func_ext_save_LIBS=$LIBS
70017    LIBS="$KRB5_LIBS $LIBS"
70018        { $as_echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_get_error" >&5
70019$as_echo_n "checking for krb5_get_init_creds_opt_get_error... " >&6; }
70020if test "${ac_cv_func_ext_krb5_get_init_creds_opt_get_error+set}" = set; then
70021  $as_echo_n "(cached) " >&6
70022else
70023  cat >conftest.$ac_ext <<_ACEOF
70024/* confdefs.h.  */
70025_ACEOF
70026cat confdefs.h >>conftest.$ac_ext
70027cat >>conftest.$ac_ext <<_ACEOF
70028/* end confdefs.h.  */
70029/* Define krb5_get_init_creds_opt_get_error to an innocuous variant, in case <limits.h> declares krb5_get_init_creds_opt_get_error.
70030   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70031#define krb5_get_init_creds_opt_get_error innocuous_krb5_get_init_creds_opt_get_error
70032
70033/* System header to define __stub macros and hopefully few prototypes,
70034    which can conflict with char krb5_get_init_creds_opt_get_error (); below.
70035    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70036    <limits.h> exists even on freestanding compilers.  */
70037
70038#ifdef __STDC__
70039# include <limits.h>
70040#else
70041# include <assert.h>
70042#endif
70043
70044#undef krb5_get_init_creds_opt_get_error
70045
70046/* Override any GCC internal prototype to avoid an error.
70047   Use char because int might match the return type of a GCC
70048   builtin and then its argument prototype would still apply.  */
70049#ifdef __cplusplus
70050extern "C"
70051#endif
70052char krb5_get_init_creds_opt_get_error ();
70053/* The GNU C library defines this for functions which it implements
70054    to always fail with ENOSYS.  Some functions are actually named
70055    something starting with __ and the normal name is an alias.  */
70056#if defined __stub_krb5_get_init_creds_opt_get_error || defined __stub___krb5_get_init_creds_opt_get_error
70057choke me
70058#endif
70059
70060int
70061main ()
70062{
70063return krb5_get_init_creds_opt_get_error ();
70064  ;
70065  return 0;
70066}
70067_ACEOF
70068rm -f conftest.$ac_objext conftest$ac_exeext
70069if { (ac_try="$ac_link"
70070case "(($ac_try" in
70071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70072  *) ac_try_echo=$ac_try;;
70073esac
70074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70075$as_echo "$ac_try_echo") >&5
70076  (eval "$ac_link") 2>conftest.er1
70077  ac_status=$?
70078  grep -v '^ *+' conftest.er1 >conftest.err
70079  rm -f conftest.er1
70080  cat conftest.err >&5
70081  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70082  (exit $ac_status); } && {
70083	 test -z "$ac_c_werror_flag" ||
70084	 test ! -s conftest.err
70085       } && test -s conftest$ac_exeext && {
70086	 test "$cross_compiling" = yes ||
70087	 $as_test_x conftest$ac_exeext
70088       }; then
70089  ac_cv_func_ext_krb5_get_init_creds_opt_get_error=yes
70090else
70091  $as_echo "$as_me: failed program was:" >&5
70092sed 's/^/| /' conftest.$ac_ext >&5
70093
70094	ac_cv_func_ext_krb5_get_init_creds_opt_get_error=no
70095fi
70096
70097rm -rf conftest.dSYM
70098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70099      conftest$ac_exeext conftest.$ac_ext
70100fi
70101{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_init_creds_opt_get_error" >&5
70102$as_echo "$ac_cv_func_ext_krb5_get_init_creds_opt_get_error" >&6; }
70103    LIBS=$ac_check_func_ext_save_LIBS
70104    if test $ac_cv_func_ext_krb5_get_init_creds_opt_get_error = yes; then
70105  cat >>confdefs.h <<_ACEOF
70106#define HAVE_KRB5_GET_INIT_CREDS_OPT_GET_ERROR 1
70107_ACEOF
70108
70109fi
70110
70111
70112
70113
70114    ac_check_func_ext_save_LIBS=$LIBS
70115    LIBS="$KRB5_LIBS $LIBS"
70116        { $as_echo "$as_me:$LINENO: checking for krb5_enctype_to_string" >&5
70117$as_echo_n "checking for krb5_enctype_to_string... " >&6; }
70118if test "${ac_cv_func_ext_krb5_enctype_to_string+set}" = set; then
70119  $as_echo_n "(cached) " >&6
70120else
70121  cat >conftest.$ac_ext <<_ACEOF
70122/* confdefs.h.  */
70123_ACEOF
70124cat confdefs.h >>conftest.$ac_ext
70125cat >>conftest.$ac_ext <<_ACEOF
70126/* end confdefs.h.  */
70127/* Define krb5_enctype_to_string to an innocuous variant, in case <limits.h> declares krb5_enctype_to_string.
70128   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70129#define krb5_enctype_to_string innocuous_krb5_enctype_to_string
70130
70131/* System header to define __stub macros and hopefully few prototypes,
70132    which can conflict with char krb5_enctype_to_string (); below.
70133    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70134    <limits.h> exists even on freestanding compilers.  */
70135
70136#ifdef __STDC__
70137# include <limits.h>
70138#else
70139# include <assert.h>
70140#endif
70141
70142#undef krb5_enctype_to_string
70143
70144/* Override any GCC internal prototype to avoid an error.
70145   Use char because int might match the return type of a GCC
70146   builtin and then its argument prototype would still apply.  */
70147#ifdef __cplusplus
70148extern "C"
70149#endif
70150char krb5_enctype_to_string ();
70151/* The GNU C library defines this for functions which it implements
70152    to always fail with ENOSYS.  Some functions are actually named
70153    something starting with __ and the normal name is an alias.  */
70154#if defined __stub_krb5_enctype_to_string || defined __stub___krb5_enctype_to_string
70155choke me
70156#endif
70157
70158int
70159main ()
70160{
70161return krb5_enctype_to_string ();
70162  ;
70163  return 0;
70164}
70165_ACEOF
70166rm -f conftest.$ac_objext conftest$ac_exeext
70167if { (ac_try="$ac_link"
70168case "(($ac_try" in
70169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70170  *) ac_try_echo=$ac_try;;
70171esac
70172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70173$as_echo "$ac_try_echo") >&5
70174  (eval "$ac_link") 2>conftest.er1
70175  ac_status=$?
70176  grep -v '^ *+' conftest.er1 >conftest.err
70177  rm -f conftest.er1
70178  cat conftest.err >&5
70179  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70180  (exit $ac_status); } && {
70181	 test -z "$ac_c_werror_flag" ||
70182	 test ! -s conftest.err
70183       } && test -s conftest$ac_exeext && {
70184	 test "$cross_compiling" = yes ||
70185	 $as_test_x conftest$ac_exeext
70186       }; then
70187  ac_cv_func_ext_krb5_enctype_to_string=yes
70188else
70189  $as_echo "$as_me: failed program was:" >&5
70190sed 's/^/| /' conftest.$ac_ext >&5
70191
70192	ac_cv_func_ext_krb5_enctype_to_string=no
70193fi
70194
70195rm -rf conftest.dSYM
70196rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70197      conftest$ac_exeext conftest.$ac_ext
70198fi
70199{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_enctype_to_string" >&5
70200$as_echo "$ac_cv_func_ext_krb5_enctype_to_string" >&6; }
70201    LIBS=$ac_check_func_ext_save_LIBS
70202    if test $ac_cv_func_ext_krb5_enctype_to_string = yes; then
70203  cat >>confdefs.h <<_ACEOF
70204#define HAVE_KRB5_ENCTYPE_TO_STRING 1
70205_ACEOF
70206
70207fi
70208
70209
70210
70211
70212    ac_check_func_ext_save_LIBS=$LIBS
70213    LIBS="$KRB5_LIBS $LIBS"
70214        { $as_echo "$as_me:$LINENO: checking for krb5_fwd_tgt_creds" >&5
70215$as_echo_n "checking for krb5_fwd_tgt_creds... " >&6; }
70216if test "${ac_cv_func_ext_krb5_fwd_tgt_creds+set}" = set; then
70217  $as_echo_n "(cached) " >&6
70218else
70219  cat >conftest.$ac_ext <<_ACEOF
70220/* confdefs.h.  */
70221_ACEOF
70222cat confdefs.h >>conftest.$ac_ext
70223cat >>conftest.$ac_ext <<_ACEOF
70224/* end confdefs.h.  */
70225/* Define krb5_fwd_tgt_creds to an innocuous variant, in case <limits.h> declares krb5_fwd_tgt_creds.
70226   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70227#define krb5_fwd_tgt_creds innocuous_krb5_fwd_tgt_creds
70228
70229/* System header to define __stub macros and hopefully few prototypes,
70230    which can conflict with char krb5_fwd_tgt_creds (); below.
70231    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70232    <limits.h> exists even on freestanding compilers.  */
70233
70234#ifdef __STDC__
70235# include <limits.h>
70236#else
70237# include <assert.h>
70238#endif
70239
70240#undef krb5_fwd_tgt_creds
70241
70242/* Override any GCC internal prototype to avoid an error.
70243   Use char because int might match the return type of a GCC
70244   builtin and then its argument prototype would still apply.  */
70245#ifdef __cplusplus
70246extern "C"
70247#endif
70248char krb5_fwd_tgt_creds ();
70249/* The GNU C library defines this for functions which it implements
70250    to always fail with ENOSYS.  Some functions are actually named
70251    something starting with __ and the normal name is an alias.  */
70252#if defined __stub_krb5_fwd_tgt_creds || defined __stub___krb5_fwd_tgt_creds
70253choke me
70254#endif
70255
70256int
70257main ()
70258{
70259return krb5_fwd_tgt_creds ();
70260  ;
70261  return 0;
70262}
70263_ACEOF
70264rm -f conftest.$ac_objext conftest$ac_exeext
70265if { (ac_try="$ac_link"
70266case "(($ac_try" in
70267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70268  *) ac_try_echo=$ac_try;;
70269esac
70270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70271$as_echo "$ac_try_echo") >&5
70272  (eval "$ac_link") 2>conftest.er1
70273  ac_status=$?
70274  grep -v '^ *+' conftest.er1 >conftest.err
70275  rm -f conftest.er1
70276  cat conftest.err >&5
70277  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70278  (exit $ac_status); } && {
70279	 test -z "$ac_c_werror_flag" ||
70280	 test ! -s conftest.err
70281       } && test -s conftest$ac_exeext && {
70282	 test "$cross_compiling" = yes ||
70283	 $as_test_x conftest$ac_exeext
70284       }; then
70285  ac_cv_func_ext_krb5_fwd_tgt_creds=yes
70286else
70287  $as_echo "$as_me: failed program was:" >&5
70288sed 's/^/| /' conftest.$ac_ext >&5
70289
70290	ac_cv_func_ext_krb5_fwd_tgt_creds=no
70291fi
70292
70293rm -rf conftest.dSYM
70294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70295      conftest$ac_exeext conftest.$ac_ext
70296fi
70297{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_fwd_tgt_creds" >&5
70298$as_echo "$ac_cv_func_ext_krb5_fwd_tgt_creds" >&6; }
70299    LIBS=$ac_check_func_ext_save_LIBS
70300    if test $ac_cv_func_ext_krb5_fwd_tgt_creds = yes; then
70301  cat >>confdefs.h <<_ACEOF
70302#define HAVE_KRB5_FWD_TGT_CREDS 1
70303_ACEOF
70304
70305fi
70306
70307
70308
70309
70310    ac_check_func_ext_save_LIBS=$LIBS
70311    LIBS="$KRB5_LIBS $LIBS"
70312        { $as_echo "$as_me:$LINENO: checking for krb5_auth_con_set_req_cksumtype" >&5
70313$as_echo_n "checking for krb5_auth_con_set_req_cksumtype... " >&6; }
70314if test "${ac_cv_func_ext_krb5_auth_con_set_req_cksumtype+set}" = set; then
70315  $as_echo_n "(cached) " >&6
70316else
70317  cat >conftest.$ac_ext <<_ACEOF
70318/* confdefs.h.  */
70319_ACEOF
70320cat confdefs.h >>conftest.$ac_ext
70321cat >>conftest.$ac_ext <<_ACEOF
70322/* end confdefs.h.  */
70323/* Define krb5_auth_con_set_req_cksumtype to an innocuous variant, in case <limits.h> declares krb5_auth_con_set_req_cksumtype.
70324   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70325#define krb5_auth_con_set_req_cksumtype innocuous_krb5_auth_con_set_req_cksumtype
70326
70327/* System header to define __stub macros and hopefully few prototypes,
70328    which can conflict with char krb5_auth_con_set_req_cksumtype (); below.
70329    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70330    <limits.h> exists even on freestanding compilers.  */
70331
70332#ifdef __STDC__
70333# include <limits.h>
70334#else
70335# include <assert.h>
70336#endif
70337
70338#undef krb5_auth_con_set_req_cksumtype
70339
70340/* Override any GCC internal prototype to avoid an error.
70341   Use char because int might match the return type of a GCC
70342   builtin and then its argument prototype would still apply.  */
70343#ifdef __cplusplus
70344extern "C"
70345#endif
70346char krb5_auth_con_set_req_cksumtype ();
70347/* The GNU C library defines this for functions which it implements
70348    to always fail with ENOSYS.  Some functions are actually named
70349    something starting with __ and the normal name is an alias.  */
70350#if defined __stub_krb5_auth_con_set_req_cksumtype || defined __stub___krb5_auth_con_set_req_cksumtype
70351choke me
70352#endif
70353
70354int
70355main ()
70356{
70357return krb5_auth_con_set_req_cksumtype ();
70358  ;
70359  return 0;
70360}
70361_ACEOF
70362rm -f conftest.$ac_objext conftest$ac_exeext
70363if { (ac_try="$ac_link"
70364case "(($ac_try" in
70365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70366  *) ac_try_echo=$ac_try;;
70367esac
70368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70369$as_echo "$ac_try_echo") >&5
70370  (eval "$ac_link") 2>conftest.er1
70371  ac_status=$?
70372  grep -v '^ *+' conftest.er1 >conftest.err
70373  rm -f conftest.er1
70374  cat conftest.err >&5
70375  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70376  (exit $ac_status); } && {
70377	 test -z "$ac_c_werror_flag" ||
70378	 test ! -s conftest.err
70379       } && test -s conftest$ac_exeext && {
70380	 test "$cross_compiling" = yes ||
70381	 $as_test_x conftest$ac_exeext
70382       }; then
70383  ac_cv_func_ext_krb5_auth_con_set_req_cksumtype=yes
70384else
70385  $as_echo "$as_me: failed program was:" >&5
70386sed 's/^/| /' conftest.$ac_ext >&5
70387
70388	ac_cv_func_ext_krb5_auth_con_set_req_cksumtype=no
70389fi
70390
70391rm -rf conftest.dSYM
70392rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70393      conftest$ac_exeext conftest.$ac_ext
70394fi
70395{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_auth_con_set_req_cksumtype" >&5
70396$as_echo "$ac_cv_func_ext_krb5_auth_con_set_req_cksumtype" >&6; }
70397    LIBS=$ac_check_func_ext_save_LIBS
70398    if test $ac_cv_func_ext_krb5_auth_con_set_req_cksumtype = yes; then
70399  cat >>confdefs.h <<_ACEOF
70400#define HAVE_KRB5_AUTH_CON_SET_REQ_CKSUMTYPE 1
70401_ACEOF
70402
70403fi
70404
70405
70406
70407
70408    ac_check_func_ext_save_LIBS=$LIBS
70409    LIBS="$KRB5_LIBS $LIBS"
70410        { $as_echo "$as_me:$LINENO: checking for krb5_get_creds_opt_alloc" >&5
70411$as_echo_n "checking for krb5_get_creds_opt_alloc... " >&6; }
70412if test "${ac_cv_func_ext_krb5_get_creds_opt_alloc+set}" = set; then
70413  $as_echo_n "(cached) " >&6
70414else
70415  cat >conftest.$ac_ext <<_ACEOF
70416/* confdefs.h.  */
70417_ACEOF
70418cat confdefs.h >>conftest.$ac_ext
70419cat >>conftest.$ac_ext <<_ACEOF
70420/* end confdefs.h.  */
70421/* Define krb5_get_creds_opt_alloc to an innocuous variant, in case <limits.h> declares krb5_get_creds_opt_alloc.
70422   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70423#define krb5_get_creds_opt_alloc innocuous_krb5_get_creds_opt_alloc
70424
70425/* System header to define __stub macros and hopefully few prototypes,
70426    which can conflict with char krb5_get_creds_opt_alloc (); below.
70427    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70428    <limits.h> exists even on freestanding compilers.  */
70429
70430#ifdef __STDC__
70431# include <limits.h>
70432#else
70433# include <assert.h>
70434#endif
70435
70436#undef krb5_get_creds_opt_alloc
70437
70438/* Override any GCC internal prototype to avoid an error.
70439   Use char because int might match the return type of a GCC
70440   builtin and then its argument prototype would still apply.  */
70441#ifdef __cplusplus
70442extern "C"
70443#endif
70444char krb5_get_creds_opt_alloc ();
70445/* The GNU C library defines this for functions which it implements
70446    to always fail with ENOSYS.  Some functions are actually named
70447    something starting with __ and the normal name is an alias.  */
70448#if defined __stub_krb5_get_creds_opt_alloc || defined __stub___krb5_get_creds_opt_alloc
70449choke me
70450#endif
70451
70452int
70453main ()
70454{
70455return krb5_get_creds_opt_alloc ();
70456  ;
70457  return 0;
70458}
70459_ACEOF
70460rm -f conftest.$ac_objext conftest$ac_exeext
70461if { (ac_try="$ac_link"
70462case "(($ac_try" in
70463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70464  *) ac_try_echo=$ac_try;;
70465esac
70466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70467$as_echo "$ac_try_echo") >&5
70468  (eval "$ac_link") 2>conftest.er1
70469  ac_status=$?
70470  grep -v '^ *+' conftest.er1 >conftest.err
70471  rm -f conftest.er1
70472  cat conftest.err >&5
70473  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70474  (exit $ac_status); } && {
70475	 test -z "$ac_c_werror_flag" ||
70476	 test ! -s conftest.err
70477       } && test -s conftest$ac_exeext && {
70478	 test "$cross_compiling" = yes ||
70479	 $as_test_x conftest$ac_exeext
70480       }; then
70481  ac_cv_func_ext_krb5_get_creds_opt_alloc=yes
70482else
70483  $as_echo "$as_me: failed program was:" >&5
70484sed 's/^/| /' conftest.$ac_ext >&5
70485
70486	ac_cv_func_ext_krb5_get_creds_opt_alloc=no
70487fi
70488
70489rm -rf conftest.dSYM
70490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70491      conftest$ac_exeext conftest.$ac_ext
70492fi
70493{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_creds_opt_alloc" >&5
70494$as_echo "$ac_cv_func_ext_krb5_get_creds_opt_alloc" >&6; }
70495    LIBS=$ac_check_func_ext_save_LIBS
70496    if test $ac_cv_func_ext_krb5_get_creds_opt_alloc = yes; then
70497  cat >>confdefs.h <<_ACEOF
70498#define HAVE_KRB5_GET_CREDS_OPT_ALLOC 1
70499_ACEOF
70500
70501fi
70502
70503
70504
70505
70506    ac_check_func_ext_save_LIBS=$LIBS
70507    LIBS="$KRB5_LIBS $LIBS"
70508        { $as_echo "$as_me:$LINENO: checking for krb5_get_creds_opt_set_impersonate" >&5
70509$as_echo_n "checking for krb5_get_creds_opt_set_impersonate... " >&6; }
70510if test "${ac_cv_func_ext_krb5_get_creds_opt_set_impersonate+set}" = set; then
70511  $as_echo_n "(cached) " >&6
70512else
70513  cat >conftest.$ac_ext <<_ACEOF
70514/* confdefs.h.  */
70515_ACEOF
70516cat confdefs.h >>conftest.$ac_ext
70517cat >>conftest.$ac_ext <<_ACEOF
70518/* end confdefs.h.  */
70519/* Define krb5_get_creds_opt_set_impersonate to an innocuous variant, in case <limits.h> declares krb5_get_creds_opt_set_impersonate.
70520   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70521#define krb5_get_creds_opt_set_impersonate innocuous_krb5_get_creds_opt_set_impersonate
70522
70523/* System header to define __stub macros and hopefully few prototypes,
70524    which can conflict with char krb5_get_creds_opt_set_impersonate (); below.
70525    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70526    <limits.h> exists even on freestanding compilers.  */
70527
70528#ifdef __STDC__
70529# include <limits.h>
70530#else
70531# include <assert.h>
70532#endif
70533
70534#undef krb5_get_creds_opt_set_impersonate
70535
70536/* Override any GCC internal prototype to avoid an error.
70537   Use char because int might match the return type of a GCC
70538   builtin and then its argument prototype would still apply.  */
70539#ifdef __cplusplus
70540extern "C"
70541#endif
70542char krb5_get_creds_opt_set_impersonate ();
70543/* The GNU C library defines this for functions which it implements
70544    to always fail with ENOSYS.  Some functions are actually named
70545    something starting with __ and the normal name is an alias.  */
70546#if defined __stub_krb5_get_creds_opt_set_impersonate || defined __stub___krb5_get_creds_opt_set_impersonate
70547choke me
70548#endif
70549
70550int
70551main ()
70552{
70553return krb5_get_creds_opt_set_impersonate ();
70554  ;
70555  return 0;
70556}
70557_ACEOF
70558rm -f conftest.$ac_objext conftest$ac_exeext
70559if { (ac_try="$ac_link"
70560case "(($ac_try" in
70561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70562  *) ac_try_echo=$ac_try;;
70563esac
70564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70565$as_echo "$ac_try_echo") >&5
70566  (eval "$ac_link") 2>conftest.er1
70567  ac_status=$?
70568  grep -v '^ *+' conftest.er1 >conftest.err
70569  rm -f conftest.er1
70570  cat conftest.err >&5
70571  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70572  (exit $ac_status); } && {
70573	 test -z "$ac_c_werror_flag" ||
70574	 test ! -s conftest.err
70575       } && test -s conftest$ac_exeext && {
70576	 test "$cross_compiling" = yes ||
70577	 $as_test_x conftest$ac_exeext
70578       }; then
70579  ac_cv_func_ext_krb5_get_creds_opt_set_impersonate=yes
70580else
70581  $as_echo "$as_me: failed program was:" >&5
70582sed 's/^/| /' conftest.$ac_ext >&5
70583
70584	ac_cv_func_ext_krb5_get_creds_opt_set_impersonate=no
70585fi
70586
70587rm -rf conftest.dSYM
70588rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70589      conftest$ac_exeext conftest.$ac_ext
70590fi
70591{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_creds_opt_set_impersonate" >&5
70592$as_echo "$ac_cv_func_ext_krb5_get_creds_opt_set_impersonate" >&6; }
70593    LIBS=$ac_check_func_ext_save_LIBS
70594    if test $ac_cv_func_ext_krb5_get_creds_opt_set_impersonate = yes; then
70595  cat >>confdefs.h <<_ACEOF
70596#define HAVE_KRB5_GET_CREDS_OPT_SET_IMPERSONATE 1
70597_ACEOF
70598
70599fi
70600
70601
70602
70603
70604    ac_check_func_ext_save_LIBS=$LIBS
70605    LIBS="$KRB5_LIBS $LIBS"
70606        { $as_echo "$as_me:$LINENO: checking for krb5_get_creds" >&5
70607$as_echo_n "checking for krb5_get_creds... " >&6; }
70608if test "${ac_cv_func_ext_krb5_get_creds+set}" = set; then
70609  $as_echo_n "(cached) " >&6
70610else
70611  cat >conftest.$ac_ext <<_ACEOF
70612/* confdefs.h.  */
70613_ACEOF
70614cat confdefs.h >>conftest.$ac_ext
70615cat >>conftest.$ac_ext <<_ACEOF
70616/* end confdefs.h.  */
70617/* Define krb5_get_creds to an innocuous variant, in case <limits.h> declares krb5_get_creds.
70618   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70619#define krb5_get_creds innocuous_krb5_get_creds
70620
70621/* System header to define __stub macros and hopefully few prototypes,
70622    which can conflict with char krb5_get_creds (); below.
70623    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70624    <limits.h> exists even on freestanding compilers.  */
70625
70626#ifdef __STDC__
70627# include <limits.h>
70628#else
70629# include <assert.h>
70630#endif
70631
70632#undef krb5_get_creds
70633
70634/* Override any GCC internal prototype to avoid an error.
70635   Use char because int might match the return type of a GCC
70636   builtin and then its argument prototype would still apply.  */
70637#ifdef __cplusplus
70638extern "C"
70639#endif
70640char krb5_get_creds ();
70641/* The GNU C library defines this for functions which it implements
70642    to always fail with ENOSYS.  Some functions are actually named
70643    something starting with __ and the normal name is an alias.  */
70644#if defined __stub_krb5_get_creds || defined __stub___krb5_get_creds
70645choke me
70646#endif
70647
70648int
70649main ()
70650{
70651return krb5_get_creds ();
70652  ;
70653  return 0;
70654}
70655_ACEOF
70656rm -f conftest.$ac_objext conftest$ac_exeext
70657if { (ac_try="$ac_link"
70658case "(($ac_try" in
70659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70660  *) ac_try_echo=$ac_try;;
70661esac
70662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70663$as_echo "$ac_try_echo") >&5
70664  (eval "$ac_link") 2>conftest.er1
70665  ac_status=$?
70666  grep -v '^ *+' conftest.er1 >conftest.err
70667  rm -f conftest.er1
70668  cat conftest.err >&5
70669  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70670  (exit $ac_status); } && {
70671	 test -z "$ac_c_werror_flag" ||
70672	 test ! -s conftest.err
70673       } && test -s conftest$ac_exeext && {
70674	 test "$cross_compiling" = yes ||
70675	 $as_test_x conftest$ac_exeext
70676       }; then
70677  ac_cv_func_ext_krb5_get_creds=yes
70678else
70679  $as_echo "$as_me: failed program was:" >&5
70680sed 's/^/| /' conftest.$ac_ext >&5
70681
70682	ac_cv_func_ext_krb5_get_creds=no
70683fi
70684
70685rm -rf conftest.dSYM
70686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70687      conftest$ac_exeext conftest.$ac_ext
70688fi
70689{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_creds" >&5
70690$as_echo "$ac_cv_func_ext_krb5_get_creds" >&6; }
70691    LIBS=$ac_check_func_ext_save_LIBS
70692    if test $ac_cv_func_ext_krb5_get_creds = yes; then
70693  cat >>confdefs.h <<_ACEOF
70694#define HAVE_KRB5_GET_CREDS 1
70695_ACEOF
70696
70697fi
70698
70699
70700
70701
70702    ac_check_func_ext_save_LIBS=$LIBS
70703    LIBS="$KRB5_LIBS $LIBS"
70704        { $as_echo "$as_me:$LINENO: checking for krb5_get_credentials_for_user" >&5
70705$as_echo_n "checking for krb5_get_credentials_for_user... " >&6; }
70706if test "${ac_cv_func_ext_krb5_get_credentials_for_user+set}" = set; then
70707  $as_echo_n "(cached) " >&6
70708else
70709  cat >conftest.$ac_ext <<_ACEOF
70710/* confdefs.h.  */
70711_ACEOF
70712cat confdefs.h >>conftest.$ac_ext
70713cat >>conftest.$ac_ext <<_ACEOF
70714/* end confdefs.h.  */
70715/* Define krb5_get_credentials_for_user to an innocuous variant, in case <limits.h> declares krb5_get_credentials_for_user.
70716   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70717#define krb5_get_credentials_for_user innocuous_krb5_get_credentials_for_user
70718
70719/* System header to define __stub macros and hopefully few prototypes,
70720    which can conflict with char krb5_get_credentials_for_user (); below.
70721    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70722    <limits.h> exists even on freestanding compilers.  */
70723
70724#ifdef __STDC__
70725# include <limits.h>
70726#else
70727# include <assert.h>
70728#endif
70729
70730#undef krb5_get_credentials_for_user
70731
70732/* Override any GCC internal prototype to avoid an error.
70733   Use char because int might match the return type of a GCC
70734   builtin and then its argument prototype would still apply.  */
70735#ifdef __cplusplus
70736extern "C"
70737#endif
70738char krb5_get_credentials_for_user ();
70739/* The GNU C library defines this for functions which it implements
70740    to always fail with ENOSYS.  Some functions are actually named
70741    something starting with __ and the normal name is an alias.  */
70742#if defined __stub_krb5_get_credentials_for_user || defined __stub___krb5_get_credentials_for_user
70743choke me
70744#endif
70745
70746int
70747main ()
70748{
70749return krb5_get_credentials_for_user ();
70750  ;
70751  return 0;
70752}
70753_ACEOF
70754rm -f conftest.$ac_objext conftest$ac_exeext
70755if { (ac_try="$ac_link"
70756case "(($ac_try" in
70757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70758  *) ac_try_echo=$ac_try;;
70759esac
70760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70761$as_echo "$ac_try_echo") >&5
70762  (eval "$ac_link") 2>conftest.er1
70763  ac_status=$?
70764  grep -v '^ *+' conftest.er1 >conftest.err
70765  rm -f conftest.er1
70766  cat conftest.err >&5
70767  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70768  (exit $ac_status); } && {
70769	 test -z "$ac_c_werror_flag" ||
70770	 test ! -s conftest.err
70771       } && test -s conftest$ac_exeext && {
70772	 test "$cross_compiling" = yes ||
70773	 $as_test_x conftest$ac_exeext
70774       }; then
70775  ac_cv_func_ext_krb5_get_credentials_for_user=yes
70776else
70777  $as_echo "$as_me: failed program was:" >&5
70778sed 's/^/| /' conftest.$ac_ext >&5
70779
70780	ac_cv_func_ext_krb5_get_credentials_for_user=no
70781fi
70782
70783rm -rf conftest.dSYM
70784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70785      conftest$ac_exeext conftest.$ac_ext
70786fi
70787{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_credentials_for_user" >&5
70788$as_echo "$ac_cv_func_ext_krb5_get_credentials_for_user" >&6; }
70789    LIBS=$ac_check_func_ext_save_LIBS
70790    if test $ac_cv_func_ext_krb5_get_credentials_for_user = yes; then
70791  cat >>confdefs.h <<_ACEOF
70792#define HAVE_KRB5_GET_CREDENTIALS_FOR_USER 1
70793_ACEOF
70794
70795fi
70796
70797
70798
70799
70800    ac_check_func_ext_save_LIBS=$LIBS
70801    LIBS="$KRB5_LIBS $LIBS"
70802        { $as_echo "$as_me:$LINENO: checking for krb5_get_host_realm" >&5
70803$as_echo_n "checking for krb5_get_host_realm... " >&6; }
70804if test "${ac_cv_func_ext_krb5_get_host_realm+set}" = set; then
70805  $as_echo_n "(cached) " >&6
70806else
70807  cat >conftest.$ac_ext <<_ACEOF
70808/* confdefs.h.  */
70809_ACEOF
70810cat confdefs.h >>conftest.$ac_ext
70811cat >>conftest.$ac_ext <<_ACEOF
70812/* end confdefs.h.  */
70813/* Define krb5_get_host_realm to an innocuous variant, in case <limits.h> declares krb5_get_host_realm.
70814   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70815#define krb5_get_host_realm innocuous_krb5_get_host_realm
70816
70817/* System header to define __stub macros and hopefully few prototypes,
70818    which can conflict with char krb5_get_host_realm (); below.
70819    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70820    <limits.h> exists even on freestanding compilers.  */
70821
70822#ifdef __STDC__
70823# include <limits.h>
70824#else
70825# include <assert.h>
70826#endif
70827
70828#undef krb5_get_host_realm
70829
70830/* Override any GCC internal prototype to avoid an error.
70831   Use char because int might match the return type of a GCC
70832   builtin and then its argument prototype would still apply.  */
70833#ifdef __cplusplus
70834extern "C"
70835#endif
70836char krb5_get_host_realm ();
70837/* The GNU C library defines this for functions which it implements
70838    to always fail with ENOSYS.  Some functions are actually named
70839    something starting with __ and the normal name is an alias.  */
70840#if defined __stub_krb5_get_host_realm || defined __stub___krb5_get_host_realm
70841choke me
70842#endif
70843
70844int
70845main ()
70846{
70847return krb5_get_host_realm ();
70848  ;
70849  return 0;
70850}
70851_ACEOF
70852rm -f conftest.$ac_objext conftest$ac_exeext
70853if { (ac_try="$ac_link"
70854case "(($ac_try" in
70855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70856  *) ac_try_echo=$ac_try;;
70857esac
70858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70859$as_echo "$ac_try_echo") >&5
70860  (eval "$ac_link") 2>conftest.er1
70861  ac_status=$?
70862  grep -v '^ *+' conftest.er1 >conftest.err
70863  rm -f conftest.er1
70864  cat conftest.err >&5
70865  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70866  (exit $ac_status); } && {
70867	 test -z "$ac_c_werror_flag" ||
70868	 test ! -s conftest.err
70869       } && test -s conftest$ac_exeext && {
70870	 test "$cross_compiling" = yes ||
70871	 $as_test_x conftest$ac_exeext
70872       }; then
70873  ac_cv_func_ext_krb5_get_host_realm=yes
70874else
70875  $as_echo "$as_me: failed program was:" >&5
70876sed 's/^/| /' conftest.$ac_ext >&5
70877
70878	ac_cv_func_ext_krb5_get_host_realm=no
70879fi
70880
70881rm -rf conftest.dSYM
70882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70883      conftest$ac_exeext conftest.$ac_ext
70884fi
70885{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_get_host_realm" >&5
70886$as_echo "$ac_cv_func_ext_krb5_get_host_realm" >&6; }
70887    LIBS=$ac_check_func_ext_save_LIBS
70888    if test $ac_cv_func_ext_krb5_get_host_realm = yes; then
70889  cat >>confdefs.h <<_ACEOF
70890#define HAVE_KRB5_GET_HOST_REALM 1
70891_ACEOF
70892
70893fi
70894
70895
70896
70897
70898    ac_check_func_ext_save_LIBS=$LIBS
70899    LIBS="$KRB5_LIBS $LIBS"
70900        { $as_echo "$as_me:$LINENO: checking for krb5_free_host_realm" >&5
70901$as_echo_n "checking for krb5_free_host_realm... " >&6; }
70902if test "${ac_cv_func_ext_krb5_free_host_realm+set}" = set; then
70903  $as_echo_n "(cached) " >&6
70904else
70905  cat >conftest.$ac_ext <<_ACEOF
70906/* confdefs.h.  */
70907_ACEOF
70908cat confdefs.h >>conftest.$ac_ext
70909cat >>conftest.$ac_ext <<_ACEOF
70910/* end confdefs.h.  */
70911/* Define krb5_free_host_realm to an innocuous variant, in case <limits.h> declares krb5_free_host_realm.
70912   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70913#define krb5_free_host_realm innocuous_krb5_free_host_realm
70914
70915/* System header to define __stub macros and hopefully few prototypes,
70916    which can conflict with char krb5_free_host_realm (); below.
70917    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70918    <limits.h> exists even on freestanding compilers.  */
70919
70920#ifdef __STDC__
70921# include <limits.h>
70922#else
70923# include <assert.h>
70924#endif
70925
70926#undef krb5_free_host_realm
70927
70928/* Override any GCC internal prototype to avoid an error.
70929   Use char because int might match the return type of a GCC
70930   builtin and then its argument prototype would still apply.  */
70931#ifdef __cplusplus
70932extern "C"
70933#endif
70934char krb5_free_host_realm ();
70935/* The GNU C library defines this for functions which it implements
70936    to always fail with ENOSYS.  Some functions are actually named
70937    something starting with __ and the normal name is an alias.  */
70938#if defined __stub_krb5_free_host_realm || defined __stub___krb5_free_host_realm
70939choke me
70940#endif
70941
70942int
70943main ()
70944{
70945return krb5_free_host_realm ();
70946  ;
70947  return 0;
70948}
70949_ACEOF
70950rm -f conftest.$ac_objext conftest$ac_exeext
70951if { (ac_try="$ac_link"
70952case "(($ac_try" in
70953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70954  *) ac_try_echo=$ac_try;;
70955esac
70956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70957$as_echo "$ac_try_echo") >&5
70958  (eval "$ac_link") 2>conftest.er1
70959  ac_status=$?
70960  grep -v '^ *+' conftest.er1 >conftest.err
70961  rm -f conftest.er1
70962  cat conftest.err >&5
70963  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70964  (exit $ac_status); } && {
70965	 test -z "$ac_c_werror_flag" ||
70966	 test ! -s conftest.err
70967       } && test -s conftest$ac_exeext && {
70968	 test "$cross_compiling" = yes ||
70969	 $as_test_x conftest$ac_exeext
70970       }; then
70971  ac_cv_func_ext_krb5_free_host_realm=yes
70972else
70973  $as_echo "$as_me: failed program was:" >&5
70974sed 's/^/| /' conftest.$ac_ext >&5
70975
70976	ac_cv_func_ext_krb5_free_host_realm=no
70977fi
70978
70979rm -rf conftest.dSYM
70980rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70981      conftest$ac_exeext conftest.$ac_ext
70982fi
70983{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_krb5_free_host_realm" >&5
70984$as_echo "$ac_cv_func_ext_krb5_free_host_realm" >&6; }
70985    LIBS=$ac_check_func_ext_save_LIBS
70986    if test $ac_cv_func_ext_krb5_free_host_realm = yes; then
70987  cat >>confdefs.h <<_ACEOF
70988#define HAVE_KRB5_FREE_HOST_REALM 1
70989_ACEOF
70990
70991fi
70992
70993
70994  # MIT krb5 1.8 does not expose this call (yet)
70995  { $as_echo "$as_me:$LINENO: checking whether krb5_get_credentials_for_user is declared" >&5
70996$as_echo_n "checking whether krb5_get_credentials_for_user is declared... " >&6; }
70997if test "${ac_cv_have_decl_krb5_get_credentials_for_user+set}" = set; then
70998  $as_echo_n "(cached) " >&6
70999else
71000  cat >conftest.$ac_ext <<_ACEOF
71001/* confdefs.h.  */
71002_ACEOF
71003cat confdefs.h >>conftest.$ac_ext
71004cat >>conftest.$ac_ext <<_ACEOF
71005/* end confdefs.h.  */
71006#include <krb5.h>
71007
71008int
71009main ()
71010{
71011#ifndef krb5_get_credentials_for_user
71012  (void) krb5_get_credentials_for_user;
71013#endif
71014
71015  ;
71016  return 0;
71017}
71018_ACEOF
71019rm -f conftest.$ac_objext
71020if { (ac_try="$ac_compile"
71021case "(($ac_try" in
71022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71023  *) ac_try_echo=$ac_try;;
71024esac
71025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71026$as_echo "$ac_try_echo") >&5
71027  (eval "$ac_compile") 2>conftest.er1
71028  ac_status=$?
71029  grep -v '^ *+' conftest.er1 >conftest.err
71030  rm -f conftest.er1
71031  cat conftest.err >&5
71032  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71033  (exit $ac_status); } && {
71034	 test -z "$ac_c_werror_flag" ||
71035	 test ! -s conftest.err
71036       } && test -s conftest.$ac_objext; then
71037  ac_cv_have_decl_krb5_get_credentials_for_user=yes
71038else
71039  $as_echo "$as_me: failed program was:" >&5
71040sed 's/^/| /' conftest.$ac_ext >&5
71041
71042	ac_cv_have_decl_krb5_get_credentials_for_user=no
71043fi
71044
71045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71046fi
71047{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_krb5_get_credentials_for_user" >&5
71048$as_echo "$ac_cv_have_decl_krb5_get_credentials_for_user" >&6; }
71049if test "x$ac_cv_have_decl_krb5_get_credentials_for_user" = x""yes; then
71050
71051cat >>confdefs.h <<_ACEOF
71052#define HAVE_DECL_KRB5_GET_CREDENTIALS_FOR_USER 1
71053_ACEOF
71054
71055
71056else
71057  cat >>confdefs.h <<_ACEOF
71058#define HAVE_DECL_KRB5_GET_CREDENTIALS_FOR_USER 0
71059_ACEOF
71060
71061
71062fi
71063
71064
71065
71066  # MIT krb5 1.7beta3 (in Ubuntu Karmic) does not have this declaration
71067  # but does have the symbol
71068  { $as_echo "$as_me:$LINENO: checking whether krb5_auth_con_set_req_cksumtype is declared" >&5
71069$as_echo_n "checking whether krb5_auth_con_set_req_cksumtype is declared... " >&6; }
71070if test "${ac_cv_have_decl_krb5_auth_con_set_req_cksumtype+set}" = set; then
71071  $as_echo_n "(cached) " >&6
71072else
71073  cat >conftest.$ac_ext <<_ACEOF
71074/* confdefs.h.  */
71075_ACEOF
71076cat confdefs.h >>conftest.$ac_ext
71077cat >>conftest.$ac_ext <<_ACEOF
71078/* end confdefs.h.  */
71079#include <krb5.h>
71080
71081int
71082main ()
71083{
71084#ifndef krb5_auth_con_set_req_cksumtype
71085  (void) krb5_auth_con_set_req_cksumtype;
71086#endif
71087
71088  ;
71089  return 0;
71090}
71091_ACEOF
71092rm -f conftest.$ac_objext
71093if { (ac_try="$ac_compile"
71094case "(($ac_try" in
71095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71096  *) ac_try_echo=$ac_try;;
71097esac
71098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71099$as_echo "$ac_try_echo") >&5
71100  (eval "$ac_compile") 2>conftest.er1
71101  ac_status=$?
71102  grep -v '^ *+' conftest.er1 >conftest.err
71103  rm -f conftest.er1
71104  cat conftest.err >&5
71105  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71106  (exit $ac_status); } && {
71107	 test -z "$ac_c_werror_flag" ||
71108	 test ! -s conftest.err
71109       } && test -s conftest.$ac_objext; then
71110  ac_cv_have_decl_krb5_auth_con_set_req_cksumtype=yes
71111else
71112  $as_echo "$as_me: failed program was:" >&5
71113sed 's/^/| /' conftest.$ac_ext >&5
71114
71115	ac_cv_have_decl_krb5_auth_con_set_req_cksumtype=no
71116fi
71117
71118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71119fi
71120{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_krb5_auth_con_set_req_cksumtype" >&5
71121$as_echo "$ac_cv_have_decl_krb5_auth_con_set_req_cksumtype" >&6; }
71122if test "x$ac_cv_have_decl_krb5_auth_con_set_req_cksumtype" = x""yes; then
71123
71124cat >>confdefs.h <<_ACEOF
71125#define HAVE_DECL_KRB5_AUTH_CON_SET_REQ_CKSUMTYPE 1
71126_ACEOF
71127
71128
71129else
71130  cat >>confdefs.h <<_ACEOF
71131#define HAVE_DECL_KRB5_AUTH_CON_SET_REQ_CKSUMTYPE 0
71132_ACEOF
71133
71134
71135fi
71136
71137
71138
71139  LIBS="$KRB5_LIBS $LIBS"
71140
71141  { $as_echo "$as_me:$LINENO: checking whether krb5_ticket contains kvno and enctype" >&5
71142$as_echo_n "checking whether krb5_ticket contains kvno and enctype... " >&6; }
71143if test "${smb_krb5_cv_ticket_has_keyinfo+set}" = set; then
71144  $as_echo_n "(cached) " >&6
71145else
71146
71147	    cat >conftest.$ac_ext <<_ACEOF
71148/* confdefs.h.  */
71149_ACEOF
71150cat confdefs.h >>conftest.$ac_ext
71151cat >>conftest.$ac_ext <<_ACEOF
71152/* end confdefs.h.  */
71153
71154		#include <krb5.h>
71155
71156int
71157main ()
71158{
71159
71160		krb5_ticket ticket;
71161		krb5_kvno kvno;
71162		krb5_enctype enctype;
71163
71164		enctype = ticket.enc_part.enctype;
71165		kvno = ticket.enc_part.kvno;
71166
71167  ;
71168  return 0;
71169}
71170_ACEOF
71171rm -f conftest.$ac_objext
71172if { (ac_try="$ac_compile"
71173case "(($ac_try" in
71174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71175  *) ac_try_echo=$ac_try;;
71176esac
71177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71178$as_echo "$ac_try_echo") >&5
71179  (eval "$ac_compile") 2>conftest.er1
71180  ac_status=$?
71181  grep -v '^ *+' conftest.er1 >conftest.err
71182  rm -f conftest.er1
71183  cat conftest.err >&5
71184  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71185  (exit $ac_status); } && {
71186	 test -z "$ac_c_werror_flag" ||
71187	 test ! -s conftest.err
71188       } && test -s conftest.$ac_objext; then
71189   smb_krb5_cv_ticket_has_keyinfo=yes
71190else
71191  $as_echo "$as_me: failed program was:" >&5
71192sed 's/^/| /' conftest.$ac_ext >&5
71193
71194	 smb_krb5_cv_ticket_has_keyinfo=no
71195fi
71196
71197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71198
71199fi
71200{ $as_echo "$as_me:$LINENO: result: $smb_krb5_cv_ticket_has_keyinfo" >&5
71201$as_echo "$smb_krb5_cv_ticket_has_keyinfo" >&6; }
71202
71203  if test x"$smb_krb5_cv_ticket_has_keyinfo" = x"yes" ; then
71204
71205cat >>confdefs.h <<\_ACEOF
71206#define KRB5_TICKET_HAS_KEYINFO 1
71207_ACEOF
71208
71209  fi
71210
71211  { $as_echo "$as_me:$LINENO: checking whether krb5_get_init_creds_opt_free takes a context argument" >&5
71212$as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context argument... " >&6; }
71213if test "${smb_krb5_cv_creds_opt_free_context+set}" = set; then
71214  $as_echo_n "(cached) " >&6
71215else
71216
71217		cat >conftest.$ac_ext <<_ACEOF
71218/* confdefs.h.  */
71219_ACEOF
71220cat confdefs.h >>conftest.$ac_ext
71221cat >>conftest.$ac_ext <<_ACEOF
71222/* end confdefs.h.  */
71223
71224		    #include <krb5.h>
71225int
71226main ()
71227{
71228
71229			krb5_context ctx;
71230			krb5_get_init_creds_opt *opt = NULL;
71231			krb5_get_init_creds_opt_free(ctx, opt);
71232
71233  ;
71234  return 0;
71235}
71236_ACEOF
71237rm -f conftest.$ac_objext
71238if { (ac_try="$ac_compile"
71239case "(($ac_try" in
71240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71241  *) ac_try_echo=$ac_try;;
71242esac
71243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71244$as_echo "$ac_try_echo") >&5
71245  (eval "$ac_compile") 2>conftest.er1
71246  ac_status=$?
71247  grep -v '^ *+' conftest.er1 >conftest.err
71248  rm -f conftest.er1
71249  cat conftest.err >&5
71250  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71251  (exit $ac_status); } && {
71252	 test -z "$ac_c_werror_flag" ||
71253	 test ! -s conftest.err
71254       } && test -s conftest.$ac_objext; then
71255  smb_krb5_cv_creds_opt_free_context=yes
71256else
71257  $as_echo "$as_me: failed program was:" >&5
71258sed 's/^/| /' conftest.$ac_ext >&5
71259
71260	smb_krb5_cv_creds_opt_free_context=no
71261
71262fi
71263
71264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71265
71266fi
71267{ $as_echo "$as_me:$LINENO: result: $smb_krb5_cv_creds_opt_free_context" >&5
71268$as_echo "$smb_krb5_cv_creds_opt_free_context" >&6; }
71269
71270  if test x"$smb_krb5_cv_creds_opt_free_context" = x"yes" ; then
71271
71272cat >>confdefs.h <<\_ACEOF
71273#define KRB5_CREDS_OPT_FREE_REQUIRES_CONTEXT 1
71274_ACEOF
71275
71276  fi
71277
71278  { $as_echo "$as_me:$LINENO: checking whether krb5_verify_checksum takes 7 arguments" >&5
71279$as_echo_n "checking whether krb5_verify_checksum takes 7 arguments... " >&6; }
71280if test "${smb_krb5_cv_verify_checksum+set}" = set; then
71281  $as_echo_n "(cached) " >&6
71282else
71283
71284    cat >conftest.$ac_ext <<_ACEOF
71285/* confdefs.h.  */
71286_ACEOF
71287cat confdefs.h >>conftest.$ac_ext
71288cat >>conftest.$ac_ext <<_ACEOF
71289/* end confdefs.h.  */
71290
71291	#include <krb5.h>
71292int
71293main ()
71294{
71295krb5_verify_checksum(0, 0, 0, 0, 0, 0, 0);
71296  ;
71297  return 0;
71298}
71299_ACEOF
71300rm -f conftest.$ac_objext
71301if { (ac_try="$ac_compile"
71302case "(($ac_try" in
71303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71304  *) ac_try_echo=$ac_try;;
71305esac
71306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71307$as_echo "$ac_try_echo") >&5
71308  (eval "$ac_compile") 2>conftest.er1
71309  ac_status=$?
71310  grep -v '^ *+' conftest.er1 >conftest.err
71311  rm -f conftest.er1
71312  cat conftest.err >&5
71313  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71314  (exit $ac_status); } && {
71315	 test -z "$ac_c_werror_flag" ||
71316	 test ! -s conftest.err
71317       } && test -s conftest.$ac_objext; then
71318  smb_krb5_cv_verify_checksum=7
71319else
71320  $as_echo "$as_me: failed program was:" >&5
71321sed 's/^/| /' conftest.$ac_ext >&5
71322
71323	smb_krb5_cv_verify_checksum=6
71324fi
71325
71326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71327
71328fi
71329{ $as_echo "$as_me:$LINENO: result: $smb_krb5_cv_verify_checksum" >&5
71330$as_echo "$smb_krb5_cv_verify_checksum" >&6; }
71331
71332cat >>confdefs.h <<_ACEOF
71333#define KRB5_VERIFY_CHECKSUM_ARGS $smb_krb5_cv_verify_checksum
71334_ACEOF
71335
71336
71337  { $as_echo "$as_me:$LINENO: checking for checksum in krb5_checksum" >&5
71338$as_echo_n "checking for checksum in krb5_checksum... " >&6; }
71339if test "${samba_cv_HAVE_CHECKSUM_IN_KRB5_CHECKSUM+set}" = set; then
71340  $as_echo_n "(cached) " >&6
71341else
71342
71343    cat >conftest.$ac_ext <<_ACEOF
71344/* confdefs.h.  */
71345_ACEOF
71346cat confdefs.h >>conftest.$ac_ext
71347cat >>conftest.$ac_ext <<_ACEOF
71348/* end confdefs.h.  */
71349#include <krb5.h>
71350int
71351main ()
71352{
71353krb5_checksum cksum; cksum.checksum.length = 0;
71354  ;
71355  return 0;
71356}
71357_ACEOF
71358rm -f conftest.$ac_objext
71359if { (ac_try="$ac_compile"
71360case "(($ac_try" in
71361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71362  *) ac_try_echo=$ac_try;;
71363esac
71364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71365$as_echo "$ac_try_echo") >&5
71366  (eval "$ac_compile") 2>conftest.er1
71367  ac_status=$?
71368  grep -v '^ *+' conftest.er1 >conftest.err
71369  rm -f conftest.er1
71370  cat conftest.err >&5
71371  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71372  (exit $ac_status); } && {
71373	 test -z "$ac_c_werror_flag" ||
71374	 test ! -s conftest.err
71375       } && test -s conftest.$ac_objext; then
71376  samba_cv_HAVE_CHECKSUM_IN_KRB5_CHECKSUM=yes
71377else
71378  $as_echo "$as_me: failed program was:" >&5
71379sed 's/^/| /' conftest.$ac_ext >&5
71380
71381	samba_cv_HAVE_CHECKSUM_IN_KRB5_CHECKSUM=no
71382fi
71383
71384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71385fi
71386{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_CHECKSUM_IN_KRB5_CHECKSUM" >&5
71387$as_echo "$samba_cv_HAVE_CHECKSUM_IN_KRB5_CHECKSUM" >&6; }
71388
71389  if test x"$samba_cv_HAVE_CHECKSUM_IN_KRB5_CHECKSUM" = x"yes"; then
71390
71391cat >>confdefs.h <<\_ACEOF
71392#define HAVE_CHECKSUM_IN_KRB5_CHECKSUM 1
71393_ACEOF
71394
71395  fi
71396
71397  { $as_echo "$as_me:$LINENO: checking for etype in EncryptedData" >&5
71398$as_echo_n "checking for etype in EncryptedData... " >&6; }
71399if test "${samba_cv_HAVE_ETYPE_IN_ENCRYPTEDDATA+set}" = set; then
71400  $as_echo_n "(cached) " >&6
71401else
71402
71403    cat >conftest.$ac_ext <<_ACEOF
71404/* confdefs.h.  */
71405_ACEOF
71406cat confdefs.h >>conftest.$ac_ext
71407cat >>conftest.$ac_ext <<_ACEOF
71408/* end confdefs.h.  */
71409#include <krb5.h>
71410int
71411main ()
71412{
71413EncryptedData edata; edata.etype = 0;
71414  ;
71415  return 0;
71416}
71417_ACEOF
71418rm -f conftest.$ac_objext
71419if { (ac_try="$ac_compile"
71420case "(($ac_try" in
71421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71422  *) ac_try_echo=$ac_try;;
71423esac
71424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71425$as_echo "$ac_try_echo") >&5
71426  (eval "$ac_compile") 2>conftest.er1
71427  ac_status=$?
71428  grep -v '^ *+' conftest.er1 >conftest.err
71429  rm -f conftest.er1
71430  cat conftest.err >&5
71431  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71432  (exit $ac_status); } && {
71433	 test -z "$ac_c_werror_flag" ||
71434	 test ! -s conftest.err
71435       } && test -s conftest.$ac_objext; then
71436  samba_cv_HAVE_ETYPE_IN_ENCRYPTEDDATA=yes
71437else
71438  $as_echo "$as_me: failed program was:" >&5
71439sed 's/^/| /' conftest.$ac_ext >&5
71440
71441	samba_cv_HAVE_ETYPE_IN_ENCRYPTEDDATA=no
71442fi
71443
71444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71445fi
71446{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_ETYPE_IN_ENCRYPTEDDATA" >&5
71447$as_echo "$samba_cv_HAVE_ETYPE_IN_ENCRYPTEDDATA" >&6; }
71448
71449  if test x"$samba_cv_HAVE_ETYPE_IN_ENCRYPTEDDATA" = x"yes"; then
71450
71451cat >>confdefs.h <<\_ACEOF
71452#define HAVE_ETYPE_IN_ENCRYPTEDDATA 1
71453_ACEOF
71454
71455  fi
71456
71457  { $as_echo "$as_me:$LINENO: checking for ticket pointer in krb5_ap_req" >&5
71458$as_echo_n "checking for ticket pointer in krb5_ap_req... " >&6; }
71459if test "${samba_cv_HAVE_TICKET_POINTER_IN_KRB5_AP_REQ+set}" = set; then
71460  $as_echo_n "(cached) " >&6
71461else
71462
71463    cat >conftest.$ac_ext <<_ACEOF
71464/* confdefs.h.  */
71465_ACEOF
71466cat confdefs.h >>conftest.$ac_ext
71467cat >>conftest.$ac_ext <<_ACEOF
71468/* end confdefs.h.  */
71469#include <krb5.h>
71470int
71471main ()
71472{
71473krb5_ap_req *ap_req; ap_req->ticket = NULL;
71474  ;
71475  return 0;
71476}
71477_ACEOF
71478rm -f conftest.$ac_objext
71479if { (ac_try="$ac_compile"
71480case "(($ac_try" in
71481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71482  *) ac_try_echo=$ac_try;;
71483esac
71484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71485$as_echo "$ac_try_echo") >&5
71486  (eval "$ac_compile") 2>conftest.er1
71487  ac_status=$?
71488  grep -v '^ *+' conftest.er1 >conftest.err
71489  rm -f conftest.er1
71490  cat conftest.err >&5
71491  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71492  (exit $ac_status); } && {
71493	 test -z "$ac_c_werror_flag" ||
71494	 test ! -s conftest.err
71495       } && test -s conftest.$ac_objext; then
71496  samba_cv_HAVE_TICKET_POINTER_IN_KRB5_AP_REQ=yes
71497else
71498  $as_echo "$as_me: failed program was:" >&5
71499sed 's/^/| /' conftest.$ac_ext >&5
71500
71501	samba_cv_HAVE_TICKET_POINTER_IN_KRB5_AP_REQ=no
71502fi
71503
71504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71505fi
71506{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_TICKET_POINTER_IN_KRB5_AP_REQ" >&5
71507$as_echo "$samba_cv_HAVE_TICKET_POINTER_IN_KRB5_AP_REQ" >&6; }
71508
71509  if test x"$samba_cv_HAVE_TICKET_POINTER_IN_KRB5_AP_REQ" = x"yes"; then
71510
71511cat >>confdefs.h <<\_ACEOF
71512#define HAVE_TICKET_POINTER_IN_KRB5_AP_REQ 1
71513_ACEOF
71514
71515  fi
71516
71517  { $as_echo "$as_me:$LINENO: checking for e_data pointer in krb5_error" >&5
71518$as_echo_n "checking for e_data pointer in krb5_error... " >&6; }
71519if test "${samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR+set}" = set; then
71520  $as_echo_n "(cached) " >&6
71521else
71522
71523    cat >conftest.$ac_ext <<_ACEOF
71524/* confdefs.h.  */
71525_ACEOF
71526cat confdefs.h >>conftest.$ac_ext
71527cat >>conftest.$ac_ext <<_ACEOF
71528/* end confdefs.h.  */
71529#include <krb5.h>
71530int
71531main ()
71532{
71533krb5_error err; err.e_data = NULL;
71534  ;
71535  return 0;
71536}
71537_ACEOF
71538rm -f conftest.$ac_objext
71539if { (ac_try="$ac_compile"
71540case "(($ac_try" in
71541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71542  *) ac_try_echo=$ac_try;;
71543esac
71544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71545$as_echo "$ac_try_echo") >&5
71546  (eval "$ac_compile") 2>conftest.er1
71547  ac_status=$?
71548  grep -v '^ *+' conftest.er1 >conftest.err
71549  rm -f conftest.er1
71550  cat conftest.err >&5
71551  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71552  (exit $ac_status); } && {
71553	 test -z "$ac_c_werror_flag" ||
71554	 test ! -s conftest.err
71555       } && test -s conftest.$ac_objext; then
71556  samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR=yes
71557else
71558  $as_echo "$as_me: failed program was:" >&5
71559sed 's/^/| /' conftest.$ac_ext >&5
71560
71561	samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR=no
71562fi
71563
71564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71565fi
71566{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR" >&5
71567$as_echo "$samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR" >&6; }
71568
71569  if test x"$samba_cv_HAVE_E_DATA_POINTER_IN_KRB5_ERROR" = x"yes"; then
71570
71571cat >>confdefs.h <<\_ACEOF
71572#define HAVE_E_DATA_POINTER_IN_KRB5_ERROR 1
71573_ACEOF
71574
71575  fi
71576
71577  { $as_echo "$as_me:$LINENO: checking for krb5_crypto type" >&5
71578$as_echo_n "checking for krb5_crypto type... " >&6; }
71579if test "${samba_cv_HAVE_KRB5_CRYPTO+set}" = set; then
71580  $as_echo_n "(cached) " >&6
71581else
71582
71583    cat >conftest.$ac_ext <<_ACEOF
71584/* confdefs.h.  */
71585_ACEOF
71586cat confdefs.h >>conftest.$ac_ext
71587cat >>conftest.$ac_ext <<_ACEOF
71588/* end confdefs.h.  */
71589#include <krb5.h>
71590int
71591main ()
71592{
71593krb5_crypto crypto;
71594  ;
71595  return 0;
71596}
71597_ACEOF
71598rm -f conftest.$ac_objext
71599if { (ac_try="$ac_compile"
71600case "(($ac_try" in
71601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71602  *) ac_try_echo=$ac_try;;
71603esac
71604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71605$as_echo "$ac_try_echo") >&5
71606  (eval "$ac_compile") 2>conftest.er1
71607  ac_status=$?
71608  grep -v '^ *+' conftest.er1 >conftest.err
71609  rm -f conftest.er1
71610  cat conftest.err >&5
71611  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71612  (exit $ac_status); } && {
71613	 test -z "$ac_c_werror_flag" ||
71614	 test ! -s conftest.err
71615       } && test -s conftest.$ac_objext; then
71616  samba_cv_HAVE_KRB5_CRYPTO=yes
71617else
71618  $as_echo "$as_me: failed program was:" >&5
71619sed 's/^/| /' conftest.$ac_ext >&5
71620
71621	samba_cv_HAVE_KRB5_CRYPTO=no
71622fi
71623
71624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71625fi
71626{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_CRYPTO" >&5
71627$as_echo "$samba_cv_HAVE_KRB5_CRYPTO" >&6; }
71628
71629  if test x"$samba_cv_HAVE_KRB5_CRYPTO" = x"yes"; then
71630
71631cat >>confdefs.h <<\_ACEOF
71632#define HAVE_KRB5_CRYPTO 1
71633_ACEOF
71634
71635  fi
71636
71637  { $as_echo "$as_me:$LINENO: checking for krb5_encrypt_block type" >&5
71638$as_echo_n "checking for krb5_encrypt_block type... " >&6; }
71639if test "${samba_cv_HAVE_KRB5_ENCRYPT_BLOCK+set}" = set; then
71640  $as_echo_n "(cached) " >&6
71641else
71642
71643    cat >conftest.$ac_ext <<_ACEOF
71644/* confdefs.h.  */
71645_ACEOF
71646cat confdefs.h >>conftest.$ac_ext
71647cat >>conftest.$ac_ext <<_ACEOF
71648/* end confdefs.h.  */
71649#include <krb5.h>
71650int
71651main ()
71652{
71653krb5_encrypt_block block;
71654  ;
71655  return 0;
71656}
71657_ACEOF
71658rm -f conftest.$ac_objext
71659if { (ac_try="$ac_compile"
71660case "(($ac_try" in
71661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71662  *) ac_try_echo=$ac_try;;
71663esac
71664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71665$as_echo "$ac_try_echo") >&5
71666  (eval "$ac_compile") 2>conftest.er1
71667  ac_status=$?
71668  grep -v '^ *+' conftest.er1 >conftest.err
71669  rm -f conftest.er1
71670  cat conftest.err >&5
71671  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71672  (exit $ac_status); } && {
71673	 test -z "$ac_c_werror_flag" ||
71674	 test ! -s conftest.err
71675       } && test -s conftest.$ac_objext; then
71676  samba_cv_HAVE_KRB5_ENCRYPT_BLOCK=yes
71677else
71678  $as_echo "$as_me: failed program was:" >&5
71679sed 's/^/| /' conftest.$ac_ext >&5
71680
71681	samba_cv_HAVE_KRB5_ENCRYPT_BLOCK=no
71682fi
71683
71684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71685fi
71686{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_ENCRYPT_BLOCK" >&5
71687$as_echo "$samba_cv_HAVE_KRB5_ENCRYPT_BLOCK" >&6; }
71688
71689  if test x"$samba_cv_HAVE_KRB5_ENCRYPT_BLOCK" = x"yes"; then
71690
71691cat >>confdefs.h <<\_ACEOF
71692#define HAVE_KRB5_ENCRYPT_BLOCK 1
71693_ACEOF
71694
71695  fi
71696
71697  { $as_echo "$as_me:$LINENO: checking for addrtype in krb5_address" >&5
71698$as_echo_n "checking for addrtype in krb5_address... " >&6; }
71699if test "${samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS+set}" = set; then
71700  $as_echo_n "(cached) " >&6
71701else
71702
71703    cat >conftest.$ac_ext <<_ACEOF
71704/* confdefs.h.  */
71705_ACEOF
71706cat confdefs.h >>conftest.$ac_ext
71707cat >>conftest.$ac_ext <<_ACEOF
71708/* end confdefs.h.  */
71709#include <krb5.h>
71710int
71711main ()
71712{
71713krb5_address kaddr; kaddr.addrtype = ADDRTYPE_INET;
71714  ;
71715  return 0;
71716}
71717_ACEOF
71718rm -f conftest.$ac_objext
71719if { (ac_try="$ac_compile"
71720case "(($ac_try" in
71721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71722  *) ac_try_echo=$ac_try;;
71723esac
71724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71725$as_echo "$ac_try_echo") >&5
71726  (eval "$ac_compile") 2>conftest.er1
71727  ac_status=$?
71728  grep -v '^ *+' conftest.er1 >conftest.err
71729  rm -f conftest.er1
71730  cat conftest.err >&5
71731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71732  (exit $ac_status); } && {
71733	 test -z "$ac_c_werror_flag" ||
71734	 test ! -s conftest.err
71735       } && test -s conftest.$ac_objext; then
71736  samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS=yes
71737else
71738  $as_echo "$as_me: failed program was:" >&5
71739sed 's/^/| /' conftest.$ac_ext >&5
71740
71741	samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS=no
71742fi
71743
71744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71745fi
71746{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" >&5
71747$as_echo "$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" >&6; }
71748
71749  if test x"$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" = x"yes"; then
71750
71751cat >>confdefs.h <<\_ACEOF
71752#define HAVE_ADDRTYPE_IN_KRB5_ADDRESS 1
71753_ACEOF
71754
71755  fi
71756
71757  { $as_echo "$as_me:$LINENO: checking for addr_type in krb5_address" >&5
71758$as_echo_n "checking for addr_type in krb5_address... " >&6; }
71759if test "${samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS+set}" = set; then
71760  $as_echo_n "(cached) " >&6
71761else
71762
71763    cat >conftest.$ac_ext <<_ACEOF
71764/* confdefs.h.  */
71765_ACEOF
71766cat confdefs.h >>conftest.$ac_ext
71767cat >>conftest.$ac_ext <<_ACEOF
71768/* end confdefs.h.  */
71769#include <krb5.h>
71770int
71771main ()
71772{
71773krb5_address kaddr; kaddr.addr_type = KRB5_ADDRESS_INET;
71774  ;
71775  return 0;
71776}
71777_ACEOF
71778rm -f conftest.$ac_objext
71779if { (ac_try="$ac_compile"
71780case "(($ac_try" in
71781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71782  *) ac_try_echo=$ac_try;;
71783esac
71784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71785$as_echo "$ac_try_echo") >&5
71786  (eval "$ac_compile") 2>conftest.er1
71787  ac_status=$?
71788  grep -v '^ *+' conftest.er1 >conftest.err
71789  rm -f conftest.er1
71790  cat conftest.err >&5
71791  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71792  (exit $ac_status); } && {
71793	 test -z "$ac_c_werror_flag" ||
71794	 test ! -s conftest.err
71795       } && test -s conftest.$ac_objext; then
71796  samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS=yes
71797else
71798  $as_echo "$as_me: failed program was:" >&5
71799sed 's/^/| /' conftest.$ac_ext >&5
71800
71801	samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS=no
71802fi
71803
71804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71805fi
71806{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" >&5
71807$as_echo "$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" >&6; }
71808
71809  if test x"$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" = x"yes"; then
71810
71811cat >>confdefs.h <<\_ACEOF
71812#define HAVE_ADDR_TYPE_IN_KRB5_ADDRESS 1
71813_ACEOF
71814
71815  fi
71816
71817  { $as_echo "$as_me:$LINENO: checking for enc_part2 in krb5_ticket" >&5
71818$as_echo_n "checking for enc_part2 in krb5_ticket... " >&6; }
71819if test "${samba_cv_HAVE_KRB5_TKT_ENC_PART2+set}" = set; then
71820  $as_echo_n "(cached) " >&6
71821else
71822  cat >conftest.$ac_ext <<_ACEOF
71823/* confdefs.h.  */
71824_ACEOF
71825cat confdefs.h >>conftest.$ac_ext
71826cat >>conftest.$ac_ext <<_ACEOF
71827/* end confdefs.h.  */
71828#include <krb5.h>
71829int
71830main ()
71831{
71832krb5_ticket tkt; tkt.enc_part2->authorization_data[0]->contents = NULL;
71833  ;
71834  return 0;
71835}
71836_ACEOF
71837rm -f conftest.$ac_objext
71838if { (ac_try="$ac_compile"
71839case "(($ac_try" in
71840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71841  *) ac_try_echo=$ac_try;;
71842esac
71843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71844$as_echo "$ac_try_echo") >&5
71845  (eval "$ac_compile") 2>conftest.er1
71846  ac_status=$?
71847  grep -v '^ *+' conftest.er1 >conftest.err
71848  rm -f conftest.er1
71849  cat conftest.err >&5
71850  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71851  (exit $ac_status); } && {
71852	 test -z "$ac_c_werror_flag" ||
71853	 test ! -s conftest.err
71854       } && test -s conftest.$ac_objext; then
71855  samba_cv_HAVE_KRB5_TKT_ENC_PART2=yes
71856else
71857  $as_echo "$as_me: failed program was:" >&5
71858sed 's/^/| /' conftest.$ac_ext >&5
71859
71860	samba_cv_HAVE_KRB5_TKT_ENC_PART2=no
71861fi
71862
71863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71864fi
71865{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_TKT_ENC_PART2" >&5
71866$as_echo "$samba_cv_HAVE_KRB5_TKT_ENC_PART2" >&6; }
71867
71868  if test x"$samba_cv_HAVE_KRB5_TKT_ENC_PART2" = x"yes"; then
71869
71870cat >>confdefs.h <<\_ACEOF
71871#define HAVE_KRB5_TKT_ENC_PART2 1
71872_ACEOF
71873
71874  fi
71875
71876  { $as_echo "$as_me:$LINENO: checking for keyblock in krb5_creds" >&5
71877$as_echo_n "checking for keyblock in krb5_creds... " >&6; }
71878if test "${samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS+set}" = set; then
71879  $as_echo_n "(cached) " >&6
71880else
71881
71882    cat >conftest.$ac_ext <<_ACEOF
71883/* confdefs.h.  */
71884_ACEOF
71885cat confdefs.h >>conftest.$ac_ext
71886cat >>conftest.$ac_ext <<_ACEOF
71887/* end confdefs.h.  */
71888#include <krb5.h>
71889int
71890main ()
71891{
71892krb5_creds creds; krb5_keyblock kb; creds.keyblock = kb;
71893  ;
71894  return 0;
71895}
71896_ACEOF
71897rm -f conftest.$ac_objext
71898if { (ac_try="$ac_compile"
71899case "(($ac_try" in
71900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71901  *) ac_try_echo=$ac_try;;
71902esac
71903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71904$as_echo "$ac_try_echo") >&5
71905  (eval "$ac_compile") 2>conftest.er1
71906  ac_status=$?
71907  grep -v '^ *+' conftest.er1 >conftest.err
71908  rm -f conftest.er1
71909  cat conftest.err >&5
71910  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71911  (exit $ac_status); } && {
71912	 test -z "$ac_c_werror_flag" ||
71913	 test ! -s conftest.err
71914       } && test -s conftest.$ac_objext; then
71915  samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS=yes
71916else
71917  $as_echo "$as_me: failed program was:" >&5
71918sed 's/^/| /' conftest.$ac_ext >&5
71919
71920	samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS=no
71921fi
71922
71923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71924fi
71925{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS" >&5
71926$as_echo "$samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS" >&6; }
71927
71928  if test x"$samba_cv_HAVE_KRB5_KEYBLOCK_IN_CREDS" = x"yes"; then
71929
71930cat >>confdefs.h <<\_ACEOF
71931#define HAVE_KRB5_KEYBLOCK_IN_CREDS 1
71932_ACEOF
71933
71934  fi
71935
71936  { $as_echo "$as_me:$LINENO: checking for session in krb5_creds" >&5
71937$as_echo_n "checking for session in krb5_creds... " >&6; }
71938if test "${samba_cv_HAVE_KRB5_SESSION_IN_CREDS+set}" = set; then
71939  $as_echo_n "(cached) " >&6
71940else
71941
71942    cat >conftest.$ac_ext <<_ACEOF
71943/* confdefs.h.  */
71944_ACEOF
71945cat confdefs.h >>conftest.$ac_ext
71946cat >>conftest.$ac_ext <<_ACEOF
71947/* end confdefs.h.  */
71948#include <krb5.h>
71949int
71950main ()
71951{
71952krb5_creds creds; krb5_keyblock kb; creds.session = kb;
71953  ;
71954  return 0;
71955}
71956_ACEOF
71957rm -f conftest.$ac_objext
71958if { (ac_try="$ac_compile"
71959case "(($ac_try" in
71960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71961  *) ac_try_echo=$ac_try;;
71962esac
71963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71964$as_echo "$ac_try_echo") >&5
71965  (eval "$ac_compile") 2>conftest.er1
71966  ac_status=$?
71967  grep -v '^ *+' conftest.er1 >conftest.err
71968  rm -f conftest.er1
71969  cat conftest.err >&5
71970  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71971  (exit $ac_status); } && {
71972	 test -z "$ac_c_werror_flag" ||
71973	 test ! -s conftest.err
71974       } && test -s conftest.$ac_objext; then
71975  samba_cv_HAVE_KRB5_SESSION_IN_CREDS=yes
71976else
71977  $as_echo "$as_me: failed program was:" >&5
71978sed 's/^/| /' conftest.$ac_ext >&5
71979
71980	samba_cv_HAVE_KRB5_SESSION_IN_CREDS=no
71981fi
71982
71983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71984fi
71985{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_SESSION_IN_CREDS" >&5
71986$as_echo "$samba_cv_HAVE_KRB5_SESSION_IN_CREDS" >&6; }
71987
71988  if test x"$samba_cv_HAVE_KRB5_SESSION_IN_CREDS" = x"yes"; then
71989
71990cat >>confdefs.h <<\_ACEOF
71991#define HAVE_KRB5_SESSION_IN_CREDS 1
71992_ACEOF
71993
71994  fi
71995
71996  { $as_echo "$as_me:$LINENO: checking for keyvalue in krb5_keyblock" >&5
71997$as_echo_n "checking for keyvalue in krb5_keyblock... " >&6; }
71998if test "${samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE+set}" = set; then
71999  $as_echo_n "(cached) " >&6
72000else
72001
72002    cat >conftest.$ac_ext <<_ACEOF
72003/* confdefs.h.  */
72004_ACEOF
72005cat confdefs.h >>conftest.$ac_ext
72006cat >>conftest.$ac_ext <<_ACEOF
72007/* end confdefs.h.  */
72008#include <krb5.h>
72009int
72010main ()
72011{
72012krb5_keyblock key; key.keyvalue.data = NULL;
72013  ;
72014  return 0;
72015}
72016_ACEOF
72017rm -f conftest.$ac_objext
72018if { (ac_try="$ac_compile"
72019case "(($ac_try" in
72020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72021  *) ac_try_echo=$ac_try;;
72022esac
72023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72024$as_echo "$ac_try_echo") >&5
72025  (eval "$ac_compile") 2>conftest.er1
72026  ac_status=$?
72027  grep -v '^ *+' conftest.er1 >conftest.err
72028  rm -f conftest.er1
72029  cat conftest.err >&5
72030  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72031  (exit $ac_status); } && {
72032	 test -z "$ac_c_werror_flag" ||
72033	 test ! -s conftest.err
72034       } && test -s conftest.$ac_objext; then
72035  samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE=yes
72036else
72037  $as_echo "$as_me: failed program was:" >&5
72038sed 's/^/| /' conftest.$ac_ext >&5
72039
72040	samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE=no
72041fi
72042
72043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72044fi
72045{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE" >&5
72046$as_echo "$samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE" >&6; }
72047
72048  if test x"$samba_cv_HAVE_KRB5_KEYBLOCK_KEYVALUE" = x"yes"; then
72049
72050cat >>confdefs.h <<\_ACEOF
72051#define HAVE_KRB5_KEYBLOCK_KEYVALUE 1
72052_ACEOF
72053
72054  fi
72055
72056  { $as_echo "$as_me:$LINENO: checking for ENCTYPE_ARCFOUR_HMAC_MD5" >&5
72057$as_echo_n "checking for ENCTYPE_ARCFOUR_HMAC_MD5... " >&6; }
72058if test "${samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5+set}" = set; then
72059  $as_echo_n "(cached) " >&6
72060else
72061
72062    cat >conftest.$ac_ext <<_ACEOF
72063/* confdefs.h.  */
72064_ACEOF
72065cat confdefs.h >>conftest.$ac_ext
72066cat >>conftest.$ac_ext <<_ACEOF
72067/* end confdefs.h.  */
72068#include <krb5.h>
72069int
72070main ()
72071{
72072krb5_enctype enctype; enctype = ENCTYPE_ARCFOUR_HMAC_MD5;
72073  ;
72074  return 0;
72075}
72076_ACEOF
72077rm -f conftest.$ac_objext
72078if { (ac_try="$ac_compile"
72079case "(($ac_try" in
72080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72081  *) ac_try_echo=$ac_try;;
72082esac
72083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72084$as_echo "$ac_try_echo") >&5
72085  (eval "$ac_compile") 2>conftest.er1
72086  ac_status=$?
72087  grep -v '^ *+' conftest.er1 >conftest.err
72088  rm -f conftest.er1
72089  cat conftest.err >&5
72090  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72091  (exit $ac_status); } && {
72092	 test -z "$ac_c_werror_flag" ||
72093	 test ! -s conftest.err
72094       } && test -s conftest.$ac_objext; then
72095  samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5=yes
72096else
72097  $as_echo "$as_me: failed program was:" >&5
72098sed 's/^/| /' conftest.$ac_ext >&5
72099
72100	samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5=no
72101fi
72102
72103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72104fi
72105{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5" >&5
72106$as_echo "$samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5" >&6; }
72107  { $as_echo "$as_me:$LINENO: checking for KEYTYPE_ARCFOUR_56" >&5
72108$as_echo_n "checking for KEYTYPE_ARCFOUR_56... " >&6; }
72109if test "${samba_cv_HAVE_KEYTYPE_ARCFOUR_56+set}" = set; then
72110  $as_echo_n "(cached) " >&6
72111else
72112
72113    cat >conftest.$ac_ext <<_ACEOF
72114/* confdefs.h.  */
72115_ACEOF
72116cat confdefs.h >>conftest.$ac_ext
72117cat >>conftest.$ac_ext <<_ACEOF
72118/* end confdefs.h.  */
72119#include <krb5.h>
72120int
72121main ()
72122{
72123krb5_keytype keytype; keytype = KEYTYPE_ARCFOUR_56;
72124  ;
72125  return 0;
72126}
72127_ACEOF
72128rm -f conftest.$ac_objext
72129if { (ac_try="$ac_compile"
72130case "(($ac_try" in
72131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72132  *) ac_try_echo=$ac_try;;
72133esac
72134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72135$as_echo "$ac_try_echo") >&5
72136  (eval "$ac_compile") 2>conftest.er1
72137  ac_status=$?
72138  grep -v '^ *+' conftest.er1 >conftest.err
72139  rm -f conftest.er1
72140  cat conftest.err >&5
72141  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72142  (exit $ac_status); } && {
72143	 test -z "$ac_c_werror_flag" ||
72144	 test ! -s conftest.err
72145       } && test -s conftest.$ac_objext; then
72146  samba_cv_HAVE_KEYTYPE_ARCFOUR_56=yes
72147else
72148  $as_echo "$as_me: failed program was:" >&5
72149sed 's/^/| /' conftest.$ac_ext >&5
72150
72151	samba_cv_HAVE_KEYTYPE_ARCFOUR_56=no
72152fi
72153
72154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72155fi
72156{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KEYTYPE_ARCFOUR_56" >&5
72157$as_echo "$samba_cv_HAVE_KEYTYPE_ARCFOUR_56" >&6; }
72158# Heimdals with KEYTYPE_ARCFOUR but not KEYTYPE_ARCFOUR_56 are broken
72159# w.r.t. arcfour and windows, so we must not enable it here
72160  if test x"$samba_cv_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5" = x"yes" -a\
72161          x"$samba_cv_HAVE_KEYTYPE_ARCFOUR_56" = x"yes"; then
72162
72163cat >>confdefs.h <<\_ACEOF
72164#define HAVE_ENCTYPE_ARCFOUR_HMAC_MD5 1
72165_ACEOF
72166
72167  fi
72168
72169  { $as_echo "$as_me:$LINENO: checking for AP_OPTS_USE_SUBKEY" >&5
72170$as_echo_n "checking for AP_OPTS_USE_SUBKEY... " >&6; }
72171if test "${samba_cv_HAVE_AP_OPTS_USE_SUBKEY+set}" = set; then
72172  $as_echo_n "(cached) " >&6
72173else
72174
72175    cat >conftest.$ac_ext <<_ACEOF
72176/* confdefs.h.  */
72177_ACEOF
72178cat confdefs.h >>conftest.$ac_ext
72179cat >>conftest.$ac_ext <<_ACEOF
72180/* end confdefs.h.  */
72181#include <krb5.h>
72182int
72183main ()
72184{
72185krb5_flags ap_options; ap_options = AP_OPTS_USE_SUBKEY;
72186  ;
72187  return 0;
72188}
72189_ACEOF
72190rm -f conftest.$ac_objext
72191if { (ac_try="$ac_compile"
72192case "(($ac_try" in
72193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72194  *) ac_try_echo=$ac_try;;
72195esac
72196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72197$as_echo "$ac_try_echo") >&5
72198  (eval "$ac_compile") 2>conftest.er1
72199  ac_status=$?
72200  grep -v '^ *+' conftest.er1 >conftest.err
72201  rm -f conftest.er1
72202  cat conftest.err >&5
72203  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72204  (exit $ac_status); } && {
72205	 test -z "$ac_c_werror_flag" ||
72206	 test ! -s conftest.err
72207       } && test -s conftest.$ac_objext; then
72208  samba_cv_HAVE_AP_OPTS_USE_SUBKEY=yes
72209else
72210  $as_echo "$as_me: failed program was:" >&5
72211sed 's/^/| /' conftest.$ac_ext >&5
72212
72213	samba_cv_HAVE_AP_OPTS_USE_SUBKEY=no
72214fi
72215
72216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72217fi
72218{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_AP_OPTS_USE_SUBKEY" >&5
72219$as_echo "$samba_cv_HAVE_AP_OPTS_USE_SUBKEY" >&6; }
72220
72221  if test x"$samba_cv_HAVE_AP_OPTS_USE_SUBKEY" = x"yes"; then
72222
72223cat >>confdefs.h <<\_ACEOF
72224#define HAVE_AP_OPTS_USE_SUBKEY 1
72225_ACEOF
72226
72227  fi
72228
72229  { $as_echo "$as_me:$LINENO: checking for KV5M_KEYTAB" >&5
72230$as_echo_n "checking for KV5M_KEYTAB... " >&6; }
72231if test "${samba_cv_HAVE_KV5M_KEYTAB+set}" = set; then
72232  $as_echo_n "(cached) " >&6
72233else
72234
72235    cat >conftest.$ac_ext <<_ACEOF
72236/* confdefs.h.  */
72237_ACEOF
72238cat confdefs.h >>conftest.$ac_ext
72239cat >>conftest.$ac_ext <<_ACEOF
72240/* end confdefs.h.  */
72241#include <krb5.h>
72242int
72243main ()
72244{
72245krb5_keytab_entry entry; entry.magic = KV5M_KEYTAB;
72246  ;
72247  return 0;
72248}
72249_ACEOF
72250rm -f conftest.$ac_objext
72251if { (ac_try="$ac_compile"
72252case "(($ac_try" in
72253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72254  *) ac_try_echo=$ac_try;;
72255esac
72256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72257$as_echo "$ac_try_echo") >&5
72258  (eval "$ac_compile") 2>conftest.er1
72259  ac_status=$?
72260  grep -v '^ *+' conftest.er1 >conftest.err
72261  rm -f conftest.er1
72262  cat conftest.err >&5
72263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72264  (exit $ac_status); } && {
72265	 test -z "$ac_c_werror_flag" ||
72266	 test ! -s conftest.err
72267       } && test -s conftest.$ac_objext; then
72268  samba_cv_HAVE_KV5M_KEYTAB=yes
72269else
72270  $as_echo "$as_me: failed program was:" >&5
72271sed 's/^/| /' conftest.$ac_ext >&5
72272
72273	samba_cv_HAVE_KV5M_KEYTAB=no
72274fi
72275
72276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72277fi
72278{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KV5M_KEYTAB" >&5
72279$as_echo "$samba_cv_HAVE_KV5M_KEYTAB" >&6; }
72280
72281  if test x"$samba_cv_HAVE_KV5M_KEYTAB" = x"yes"; then
72282
72283cat >>confdefs.h <<\_ACEOF
72284#define HAVE_KV5M_KEYTAB 1
72285_ACEOF
72286
72287  fi
72288
72289  { $as_echo "$as_me:$LINENO: checking for KRB5_KU_OTHER_CKSUM" >&5
72290$as_echo_n "checking for KRB5_KU_OTHER_CKSUM... " >&6; }
72291if test "${samba_cv_HAVE_KRB5_KU_OTHER_CKSUM+set}" = set; then
72292  $as_echo_n "(cached) " >&6
72293else
72294
72295    cat >conftest.$ac_ext <<_ACEOF
72296/* confdefs.h.  */
72297_ACEOF
72298cat confdefs.h >>conftest.$ac_ext
72299cat >>conftest.$ac_ext <<_ACEOF
72300/* end confdefs.h.  */
72301#include <krb5.h>
72302int
72303main ()
72304{
72305krb5_keyusage usage = KRB5_KU_OTHER_CKSUM;
72306  ;
72307  return 0;
72308}
72309_ACEOF
72310rm -f conftest.$ac_objext
72311if { (ac_try="$ac_compile"
72312case "(($ac_try" in
72313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72314  *) ac_try_echo=$ac_try;;
72315esac
72316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72317$as_echo "$ac_try_echo") >&5
72318  (eval "$ac_compile") 2>conftest.er1
72319  ac_status=$?
72320  grep -v '^ *+' conftest.er1 >conftest.err
72321  rm -f conftest.er1
72322  cat conftest.err >&5
72323  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72324  (exit $ac_status); } && {
72325	 test -z "$ac_c_werror_flag" ||
72326	 test ! -s conftest.err
72327       } && test -s conftest.$ac_objext; then
72328  samba_cv_HAVE_KRB5_KU_OTHER_CKSUM=yes
72329else
72330  $as_echo "$as_me: failed program was:" >&5
72331sed 's/^/| /' conftest.$ac_ext >&5
72332
72333	samba_cv_HAVE_KRB5_KU_OTHER_CKSUM=no
72334fi
72335
72336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72337fi
72338{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_KU_OTHER_CKSUM" >&5
72339$as_echo "$samba_cv_HAVE_KRB5_KU_OTHER_CKSUM" >&6; }
72340
72341  if test x"$samba_cv_HAVE_KRB5_KU_OTHER_CKSUM" = x"yes"; then
72342
72343cat >>confdefs.h <<\_ACEOF
72344#define HAVE_KRB5_KU_OTHER_CKSUM 1
72345_ACEOF
72346
72347  fi
72348
72349  { $as_echo "$as_me:$LINENO: checking for KRB5_KEYUSAGE_APP_DATA_CKSUM" >&5
72350$as_echo_n "checking for KRB5_KEYUSAGE_APP_DATA_CKSUM... " >&6; }
72351if test "${samba_cv_HAVE_KRB5_KEYUSAGE_APP_DATA_CKSUM+set}" = set; then
72352  $as_echo_n "(cached) " >&6
72353else
72354
72355    cat >conftest.$ac_ext <<_ACEOF
72356/* confdefs.h.  */
72357_ACEOF
72358cat confdefs.h >>conftest.$ac_ext
72359cat >>conftest.$ac_ext <<_ACEOF
72360/* end confdefs.h.  */
72361#include <krb5.h>
72362int
72363main ()
72364{
72365krb5_keyusage usage = KRB5_KEYUSAGE_APP_DATA_CKSUM;
72366  ;
72367  return 0;
72368}
72369_ACEOF
72370rm -f conftest.$ac_objext
72371if { (ac_try="$ac_compile"
72372case "(($ac_try" in
72373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72374  *) ac_try_echo=$ac_try;;
72375esac
72376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72377$as_echo "$ac_try_echo") >&5
72378  (eval "$ac_compile") 2>conftest.er1
72379  ac_status=$?
72380  grep -v '^ *+' conftest.er1 >conftest.err
72381  rm -f conftest.er1
72382  cat conftest.err >&5
72383  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72384  (exit $ac_status); } && {
72385	 test -z "$ac_c_werror_flag" ||
72386	 test ! -s conftest.err
72387       } && test -s conftest.$ac_objext; then
72388  samba_cv_HAVE_KRB5_KEYUSAGE_APP_DATA_CKSUM=yes
72389else
72390  $as_echo "$as_me: failed program was:" >&5
72391sed 's/^/| /' conftest.$ac_ext >&5
72392
72393	samba_cv_HAVE_KRB5_KEYUSAGE_APP_DATA_CKSUM=no
72394fi
72395
72396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72397fi
72398{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_KEYUSAGE_APP_DATA_CKSUM" >&5
72399$as_echo "$samba_cv_HAVE_KRB5_KEYUSAGE_APP_DATA_CKSUM" >&6; }
72400
72401  if test x"$samba_cv_HAVE_KRB5_KEYUSAGE_APP_DATA_CKSUM" = x"yes"; then
72402
72403cat >>confdefs.h <<\_ACEOF
72404#define HAVE_KRB5_KEYUSAGE_APP_DATA_CKSUM 1
72405_ACEOF
72406
72407  fi
72408
72409  { $as_echo "$as_me:$LINENO: checking for the krb5_princ_component macro" >&5
72410$as_echo_n "checking for the krb5_princ_component macro... " >&6; }
72411if test "${samba_cv_HAVE_KRB5_PRINC_COMPONENT+set}" = set; then
72412  $as_echo_n "(cached) " >&6
72413else
72414
72415    cat >conftest.$ac_ext <<_ACEOF
72416/* confdefs.h.  */
72417_ACEOF
72418cat confdefs.h >>conftest.$ac_ext
72419cat >>conftest.$ac_ext <<_ACEOF
72420/* end confdefs.h.  */
72421#include <krb5.h>
72422int
72423main ()
72424{
72425const krb5_data *pkdata; krb5_context context; krb5_principal principal; pkdata = krb5_princ_component(context, principal, 0);
72426  ;
72427  return 0;
72428}
72429_ACEOF
72430rm -f conftest.$ac_objext conftest$ac_exeext
72431if { (ac_try="$ac_link"
72432case "(($ac_try" in
72433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72434  *) ac_try_echo=$ac_try;;
72435esac
72436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72437$as_echo "$ac_try_echo") >&5
72438  (eval "$ac_link") 2>conftest.er1
72439  ac_status=$?
72440  grep -v '^ *+' conftest.er1 >conftest.err
72441  rm -f conftest.er1
72442  cat conftest.err >&5
72443  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72444  (exit $ac_status); } && {
72445	 test -z "$ac_c_werror_flag" ||
72446	 test ! -s conftest.err
72447       } && test -s conftest$ac_exeext && {
72448	 test "$cross_compiling" = yes ||
72449	 $as_test_x conftest$ac_exeext
72450       }; then
72451  samba_cv_HAVE_KRB5_PRINC_COMPONENT=yes
72452else
72453  $as_echo "$as_me: failed program was:" >&5
72454sed 's/^/| /' conftest.$ac_ext >&5
72455
72456	samba_cv_HAVE_KRB5_PRINC_COMPONENT=no
72457fi
72458
72459rm -rf conftest.dSYM
72460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72461      conftest$ac_exeext conftest.$ac_ext
72462fi
72463{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_PRINC_COMPONENT" >&5
72464$as_echo "$samba_cv_HAVE_KRB5_PRINC_COMPONENT" >&6; }
72465
72466  if test x"$samba_cv_HAVE_KRB5_PRINC_COMPONENT" = x"yes"; then
72467
72468cat >>confdefs.h <<\_ACEOF
72469#define HAVE_KRB5_PRINC_COMPONENT 1
72470_ACEOF
72471
72472  fi
72473
72474  { $as_echo "$as_me:$LINENO: checking for key in krb5_keytab_entry" >&5
72475$as_echo_n "checking for key in krb5_keytab_entry... " >&6; }
72476if test "${samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY+set}" = set; then
72477  $as_echo_n "(cached) " >&6
72478else
72479
72480    cat >conftest.$ac_ext <<_ACEOF
72481/* confdefs.h.  */
72482_ACEOF
72483cat confdefs.h >>conftest.$ac_ext
72484cat >>conftest.$ac_ext <<_ACEOF
72485/* end confdefs.h.  */
72486#include <krb5.h>
72487int
72488main ()
72489{
72490krb5_keytab_entry entry; krb5_keyblock e; entry.key = e;
72491  ;
72492  return 0;
72493}
72494_ACEOF
72495rm -f conftest.$ac_objext
72496if { (ac_try="$ac_compile"
72497case "(($ac_try" in
72498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72499  *) ac_try_echo=$ac_try;;
72500esac
72501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72502$as_echo "$ac_try_echo") >&5
72503  (eval "$ac_compile") 2>conftest.er1
72504  ac_status=$?
72505  grep -v '^ *+' conftest.er1 >conftest.err
72506  rm -f conftest.er1
72507  cat conftest.err >&5
72508  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72509  (exit $ac_status); } && {
72510	 test -z "$ac_c_werror_flag" ||
72511	 test ! -s conftest.err
72512       } && test -s conftest.$ac_objext; then
72513  samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY=yes
72514else
72515  $as_echo "$as_me: failed program was:" >&5
72516sed 's/^/| /' conftest.$ac_ext >&5
72517
72518	samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY=no
72519fi
72520
72521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72522fi
72523{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY" >&5
72524$as_echo "$samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY" >&6; }
72525
72526  if test x"$samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEY" = x"yes"; then
72527
72528cat >>confdefs.h <<\_ACEOF
72529#define HAVE_KRB5_KEYTAB_ENTRY_KEY 1
72530_ACEOF
72531
72532  fi
72533
72534  { $as_echo "$as_me:$LINENO: checking for keyblock in krb5_keytab_entry" >&5
72535$as_echo_n "checking for keyblock in krb5_keytab_entry... " >&6; }
72536if test "${samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK+set}" = set; then
72537  $as_echo_n "(cached) " >&6
72538else
72539
72540    cat >conftest.$ac_ext <<_ACEOF
72541/* confdefs.h.  */
72542_ACEOF
72543cat confdefs.h >>conftest.$ac_ext
72544cat >>conftest.$ac_ext <<_ACEOF
72545/* end confdefs.h.  */
72546#include <krb5.h>
72547int
72548main ()
72549{
72550krb5_keytab_entry entry; entry.keyblock.keytype = 0;
72551  ;
72552  return 0;
72553}
72554_ACEOF
72555rm -f conftest.$ac_objext
72556if { (ac_try="$ac_compile"
72557case "(($ac_try" in
72558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72559  *) ac_try_echo=$ac_try;;
72560esac
72561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72562$as_echo "$ac_try_echo") >&5
72563  (eval "$ac_compile") 2>conftest.er1
72564  ac_status=$?
72565  grep -v '^ *+' conftest.er1 >conftest.err
72566  rm -f conftest.er1
72567  cat conftest.err >&5
72568  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72569  (exit $ac_status); } && {
72570	 test -z "$ac_c_werror_flag" ||
72571	 test ! -s conftest.err
72572       } && test -s conftest.$ac_objext; then
72573  samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK=yes
72574else
72575  $as_echo "$as_me: failed program was:" >&5
72576sed 's/^/| /' conftest.$ac_ext >&5
72577
72578	samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK=no
72579fi
72580
72581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72582fi
72583{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK" >&5
72584$as_echo "$samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK" >&6; }
72585
72586  if test x"$samba_cv_HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK" = x"yes"; then
72587
72588cat >>confdefs.h <<\_ACEOF
72589#define HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK 1
72590_ACEOF
72591
72592  fi
72593
72594  { $as_echo "$as_me:$LINENO: checking for magic in krb5_address" >&5
72595$as_echo_n "checking for magic in krb5_address... " >&6; }
72596if test "${samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS+set}" = set; then
72597  $as_echo_n "(cached) " >&6
72598else
72599
72600    cat >conftest.$ac_ext <<_ACEOF
72601/* confdefs.h.  */
72602_ACEOF
72603cat confdefs.h >>conftest.$ac_ext
72604cat >>conftest.$ac_ext <<_ACEOF
72605/* end confdefs.h.  */
72606#include <krb5.h>
72607int
72608main ()
72609{
72610krb5_address addr; addr.magic = 0;
72611  ;
72612  return 0;
72613}
72614_ACEOF
72615rm -f conftest.$ac_objext
72616if { (ac_try="$ac_compile"
72617case "(($ac_try" in
72618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72619  *) ac_try_echo=$ac_try;;
72620esac
72621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72622$as_echo "$ac_try_echo") >&5
72623  (eval "$ac_compile") 2>conftest.er1
72624  ac_status=$?
72625  grep -v '^ *+' conftest.er1 >conftest.err
72626  rm -f conftest.er1
72627  cat conftest.err >&5
72628  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72629  (exit $ac_status); } && {
72630	 test -z "$ac_c_werror_flag" ||
72631	 test ! -s conftest.err
72632       } && test -s conftest.$ac_objext; then
72633  samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS=yes
72634else
72635  $as_echo "$as_me: failed program was:" >&5
72636sed 's/^/| /' conftest.$ac_ext >&5
72637
72638	samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS=no
72639fi
72640
72641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72642fi
72643{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS" >&5
72644$as_echo "$samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS" >&6; }
72645
72646  if test x"$samba_cv_HAVE_MAGIC_IN_KRB5_ADDRESS" = x"yes"; then
72647
72648cat >>confdefs.h <<\_ACEOF
72649#define HAVE_MAGIC_IN_KRB5_ADDRESS 1
72650_ACEOF
72651
72652  fi
72653
72654  { $as_echo "$as_me:$LINENO: checking for WRFILE: keytab support" >&5
72655$as_echo_n "checking for WRFILE: keytab support... " >&6; }
72656if test "${samba_cv_HAVE_WRFILE_KEYTAB+set}" = set; then
72657  $as_echo_n "(cached) " >&6
72658else
72659
72660    if test "$cross_compiling" = yes; then
72661  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
72662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
72663{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
72664See \`config.log' for more details." >&5
72665$as_echo "$as_me: error: cannot run test program while cross compiling
72666See \`config.log' for more details." >&2;}
72667   { (exit 1); exit 1; }; }; }
72668else
72669  cat >conftest.$ac_ext <<_ACEOF
72670/* confdefs.h.  */
72671_ACEOF
72672cat confdefs.h >>conftest.$ac_ext
72673cat >>conftest.$ac_ext <<_ACEOF
72674/* end confdefs.h.  */
72675
72676#include<krb5.h>
72677  main()
72678  {
72679    krb5_context context;
72680    krb5_keytab keytab;
72681
72682    krb5_init_context(&context);
72683    return krb5_kt_resolve(context, "WRFILE:api", &keytab);
72684  }
72685_ACEOF
72686rm -f conftest$ac_exeext
72687if { (ac_try="$ac_link"
72688case "(($ac_try" in
72689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72690  *) ac_try_echo=$ac_try;;
72691esac
72692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72693$as_echo "$ac_try_echo") >&5
72694  (eval "$ac_link") 2>&5
72695  ac_status=$?
72696  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72697  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
72698  { (case "(($ac_try" in
72699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72700  *) ac_try_echo=$ac_try;;
72701esac
72702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72703$as_echo "$ac_try_echo") >&5
72704  (eval "$ac_try") 2>&5
72705  ac_status=$?
72706  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72707  (exit $ac_status); }; }; then
72708  samba_cv_HAVE_WRFILE_KEYTAB=yes
72709else
72710  $as_echo "$as_me: program exited with status $ac_status" >&5
72711$as_echo "$as_me: failed program was:" >&5
72712sed 's/^/| /' conftest.$ac_ext >&5
72713
72714( exit $ac_status )
72715samba_cv_HAVE_WRFILE_KEYTAB=no
72716fi
72717rm -rf conftest.dSYM
72718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
72719fi
72720
72721
72722fi
72723{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_WRFILE_KEYTAB" >&5
72724$as_echo "$samba_cv_HAVE_WRFILE_KEYTAB" >&6; }
72725
72726  if test x"$samba_cv_HAVE_WRFILE_KEYTAB" = x"yes"; then
72727
72728cat >>confdefs.h <<\_ACEOF
72729#define HAVE_WRFILE_KEYTAB 1
72730_ACEOF
72731
72732  fi
72733
72734  { $as_echo "$as_me:$LINENO: checking for krb5_realm type" >&5
72735$as_echo_n "checking for krb5_realm type... " >&6; }
72736if test "${samba_cv_HAVE_KRB5_REALM_TYPE+set}" = set; then
72737  $as_echo_n "(cached) " >&6
72738else
72739
72740    cat >conftest.$ac_ext <<_ACEOF
72741/* confdefs.h.  */
72742_ACEOF
72743cat confdefs.h >>conftest.$ac_ext
72744cat >>conftest.$ac_ext <<_ACEOF
72745/* end confdefs.h.  */
72746#include <krb5.h>
72747int
72748main ()
72749{
72750krb5_realm realm;
72751  ;
72752  return 0;
72753}
72754_ACEOF
72755rm -f conftest.$ac_objext
72756if { (ac_try="$ac_compile"
72757case "(($ac_try" in
72758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72759  *) ac_try_echo=$ac_try;;
72760esac
72761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72762$as_echo "$ac_try_echo") >&5
72763  (eval "$ac_compile") 2>conftest.er1
72764  ac_status=$?
72765  grep -v '^ *+' conftest.er1 >conftest.err
72766  rm -f conftest.er1
72767  cat conftest.err >&5
72768  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72769  (exit $ac_status); } && {
72770	 test -z "$ac_c_werror_flag" ||
72771	 test ! -s conftest.err
72772       } && test -s conftest.$ac_objext; then
72773  samba_cv_HAVE_KRB5_REALM_TYPE=yes
72774else
72775  $as_echo "$as_me: failed program was:" >&5
72776sed 's/^/| /' conftest.$ac_ext >&5
72777
72778	samba_cv_HAVE_KRB5_REALM_TYPE=no
72779fi
72780
72781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72782fi
72783{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_REALM_TYPE" >&5
72784$as_echo "$samba_cv_HAVE_KRB5_REALM_TYPE" >&6; }
72785
72786  if test x"$samba_cv_HAVE_KRB5_REALM_TYPE" = x"yes"; then
72787
72788cat >>confdefs.h <<\_ACEOF
72789#define HAVE_KRB5_REALM_TYPE 1
72790_ACEOF
72791
72792  fi
72793
72794  { $as_echo "$as_me:$LINENO: checking for krb5_princ_realm returns krb5_realm or krb5_data" >&5
72795$as_echo_n "checking for krb5_princ_realm returns krb5_realm or krb5_data... " >&6; }
72796if test "${samba_cv_KRB5_PRINC_REALM_RETURNS_REALM+set}" = set; then
72797  $as_echo_n "(cached) " >&6
72798else
72799
72800    cat >conftest.$ac_ext <<_ACEOF
72801/* confdefs.h.  */
72802_ACEOF
72803cat confdefs.h >>conftest.$ac_ext
72804cat >>conftest.$ac_ext <<_ACEOF
72805/* end confdefs.h.  */
72806#include <krb5.h>
72807int
72808main ()
72809{
72810
72811    krb5_context context;
72812    krb5_principal principal;
72813    krb5_realm realm; realm = *krb5_princ_realm(context, principal);
72814  ;
72815  return 0;
72816}
72817_ACEOF
72818rm -f conftest.$ac_objext
72819if { (ac_try="$ac_compile"
72820case "(($ac_try" in
72821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72822  *) ac_try_echo=$ac_try;;
72823esac
72824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72825$as_echo "$ac_try_echo") >&5
72826  (eval "$ac_compile") 2>conftest.er1
72827  ac_status=$?
72828  grep -v '^ *+' conftest.er1 >conftest.err
72829  rm -f conftest.er1
72830  cat conftest.err >&5
72831  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72832  (exit $ac_status); } && {
72833	 test -z "$ac_c_werror_flag" ||
72834	 test ! -s conftest.err
72835       } && test -s conftest.$ac_objext; then
72836  samba_cv_KRB5_PRINC_REALM_RETURNS_REALM=yes
72837else
72838  $as_echo "$as_me: failed program was:" >&5
72839sed 's/^/| /' conftest.$ac_ext >&5
72840
72841	samba_cv_KRB5_PRINC_REALM_RETURNS_REALM=no
72842fi
72843
72844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72845fi
72846{ $as_echo "$as_me:$LINENO: result: $samba_cv_KRB5_PRINC_REALM_RETURNS_REALM" >&5
72847$as_echo "$samba_cv_KRB5_PRINC_REALM_RETURNS_REALM" >&6; }
72848
72849  if test x"$samba_cv_KRB5_PRINC_REALM_RETURNS_REALM" = x"yes"; then
72850
72851cat >>confdefs.h <<\_ACEOF
72852#define KRB5_PRINC_REALM_RETURNS_REALM 1
72853_ACEOF
72854
72855  fi
72856
72857  { $as_echo "$as_me:$LINENO: checking for krb5_addresses type" >&5
72858$as_echo_n "checking for krb5_addresses type... " >&6; }
72859if test "${samba_cv_HAVE_KRB5_ADDRESSES+set}" = set; then
72860  $as_echo_n "(cached) " >&6
72861else
72862
72863    cat >conftest.$ac_ext <<_ACEOF
72864/* confdefs.h.  */
72865_ACEOF
72866cat confdefs.h >>conftest.$ac_ext
72867cat >>conftest.$ac_ext <<_ACEOF
72868/* end confdefs.h.  */
72869#include <krb5.h>
72870int
72871main ()
72872{
72873krb5_addresses addr;
72874  ;
72875  return 0;
72876}
72877_ACEOF
72878rm -f conftest.$ac_objext
72879if { (ac_try="$ac_compile"
72880case "(($ac_try" in
72881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72882  *) ac_try_echo=$ac_try;;
72883esac
72884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72885$as_echo "$ac_try_echo") >&5
72886  (eval "$ac_compile") 2>conftest.er1
72887  ac_status=$?
72888  grep -v '^ *+' conftest.er1 >conftest.err
72889  rm -f conftest.er1
72890  cat conftest.err >&5
72891  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72892  (exit $ac_status); } && {
72893	 test -z "$ac_c_werror_flag" ||
72894	 test ! -s conftest.err
72895       } && test -s conftest.$ac_objext; then
72896  samba_cv_HAVE_KRB5_ADDRESSES=yes
72897else
72898  $as_echo "$as_me: failed program was:" >&5
72899sed 's/^/| /' conftest.$ac_ext >&5
72900
72901	samba_cv_HAVE_KRB5_ADDRESSES=no
72902fi
72903
72904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72905fi
72906{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_ADDRESSES" >&5
72907$as_echo "$samba_cv_HAVE_KRB5_ADDRESSES" >&6; }
72908
72909  if test x"$samba_cv_HAVE_KRB5_ADDRESSES" = x"yes"; then
72910
72911cat >>confdefs.h <<\_ACEOF
72912#define HAVE_KRB5_ADDRESSES 1
72913_ACEOF
72914
72915  fi
72916
72917  { $as_echo "$as_me:$LINENO: checking whether krb5_mk_error takes 3 arguments MIT or 9 Heimdal" >&5
72918$as_echo_n "checking whether krb5_mk_error takes 3 arguments MIT or 9 Heimdal... " >&6; }
72919if test "${samba_cv_HAVE_SHORT_KRB5_MK_ERROR_INTERFACE+set}" = set; then
72920  $as_echo_n "(cached) " >&6
72921else
72922
72923    cat >conftest.$ac_ext <<_ACEOF
72924/* confdefs.h.  */
72925_ACEOF
72926cat confdefs.h >>conftest.$ac_ext
72927cat >>conftest.$ac_ext <<_ACEOF
72928/* end confdefs.h.  */
72929#include <krb5.h>
72930int
72931main ()
72932{
72933
72934    krb5_mk_error(0,0,0);
72935  ;
72936  return 0;
72937}
72938_ACEOF
72939rm -f conftest.$ac_objext
72940if { (ac_try="$ac_compile"
72941case "(($ac_try" in
72942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72943  *) ac_try_echo=$ac_try;;
72944esac
72945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72946$as_echo "$ac_try_echo") >&5
72947  (eval "$ac_compile") 2>conftest.er1
72948  ac_status=$?
72949  grep -v '^ *+' conftest.er1 >conftest.err
72950  rm -f conftest.er1
72951  cat conftest.err >&5
72952  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72953  (exit $ac_status); } && {
72954	 test -z "$ac_c_werror_flag" ||
72955	 test ! -s conftest.err
72956       } && test -s conftest.$ac_objext; then
72957  samba_cv_HAVE_SHORT_KRB5_MK_ERROR_INTERFACE=yes
72958else
72959  $as_echo "$as_me: failed program was:" >&5
72960sed 's/^/| /' conftest.$ac_ext >&5
72961
72962	samba_cv_HAVE_SHORT_KRB5_MK_ERROR_INTERFACE=no
72963fi
72964
72965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72966fi
72967{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_SHORT_KRB5_MK_ERROR_INTERFACE" >&5
72968$as_echo "$samba_cv_HAVE_SHORT_KRB5_MK_ERROR_INTERFACE" >&6; }
72969
72970  if test x"$samba_cv_HAVE_SHORT_KRB5_MK_ERROR_INTERFACE" = x"yes"; then
72971
72972cat >>confdefs.h <<\_ACEOF
72973#define HAVE_SHORT_KRB5_MK_ERROR_INTERFACE 1
72974_ACEOF
72975
72976  fi
72977
72978  if test x"$ac_cv_func_ext_krb5_enctype_to_string" = x"yes"; then
72979    { $as_echo "$as_me:$LINENO: checking for krb5_error_code krb5_enctype_to_string(krb5_context context, krb5_enctype enctype, char **str)" >&5
72980$as_echo_n "checking for krb5_error_code krb5_enctype_to_string(krb5_context context, krb5_enctype enctype, char **str)... " >&6; }
72981if test "${smb_krb5_cv_enctype_to_string_takes_krb5_context_arg+set}" = set; then
72982  $as_echo_n "(cached) " >&6
72983else
72984
72985
72986	old_CFLAGS="$CFLAGS";
72987	CFLAGS="$CFLAGS $Werror_FLAGS";
72988	export CFLAGS;
72989	old_CPPFLAGS="$CPPFLAGS";
72990	CPPFLAGS="$CPPFLAGS";
72991	export CPPFLAGS;
72992	old_LDFLAGS="$LDFLAGS";
72993	LDFLAGS="$LDFLAGS";
72994	export LDFLAGS;
72995	if test "$cross_compiling" = yes; then
72996  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
72997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
72998{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
72999See \`config.log' for more details." >&5
73000$as_echo "$as_me: error: cannot run test program while cross compiling
73001See \`config.log' for more details." >&2;}
73002   { (exit 1); exit 1; }; }; }
73003else
73004  cat >conftest.$ac_ext <<_ACEOF
73005/* confdefs.h.  */
73006_ACEOF
73007cat confdefs.h >>conftest.$ac_ext
73008cat >>conftest.$ac_ext <<_ACEOF
73009/* end confdefs.h.  */
73010
73011		#include <stdlib.h>
73012		#include <krb5.h>
73013		int main(void) {
73014			krb5_context context = NULL;
73015			char *str = NULL;
73016			krb5_enctype_to_string(context, 1, &str);
73017			if (str) free (str);
73018			return 0;
73019		}
73020
73021_ACEOF
73022rm -f conftest$ac_exeext
73023if { (ac_try="$ac_link"
73024case "(($ac_try" in
73025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73026  *) ac_try_echo=$ac_try;;
73027esac
73028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73029$as_echo "$ac_try_echo") >&5
73030  (eval "$ac_link") 2>&5
73031  ac_status=$?
73032  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73033  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
73034  { (case "(($ac_try" in
73035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73036  *) ac_try_echo=$ac_try;;
73037esac
73038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73039$as_echo "$ac_try_echo") >&5
73040  (eval "$ac_try") 2>&5
73041  ac_status=$?
73042  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73043  (exit $ac_status); }; }; then
73044  smb_krb5_cv_enctype_to_string_takes_krb5_context_arg=yes
73045else
73046  $as_echo "$as_me: program exited with status $ac_status" >&5
73047$as_echo "$as_me: failed program was:" >&5
73048sed 's/^/| /' conftest.$ac_ext >&5
73049
73050( exit $ac_status )
73051smb_krb5_cv_enctype_to_string_takes_krb5_context_arg=no
73052fi
73053rm -rf conftest.dSYM
73054rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
73055fi
73056
73057
73058	CFLAGS="$old_CFLAGS";
73059	old_CFLAGS="";
73060	export CFLAGS;
73061	CPPFLAGS="$old_CPPFLAGS";
73062	old_CPPFLAGS="";
73063	export CPPFLAGS;
73064	LDFLAGS="$old_LDFLAGS";
73065	old_LDFLAGS="";
73066	export LDFLAGS;
73067
73068fi
73069{ $as_echo "$as_me:$LINENO: result: $smb_krb5_cv_enctype_to_string_takes_krb5_context_arg" >&5
73070$as_echo "$smb_krb5_cv_enctype_to_string_takes_krb5_context_arg" >&6; }
73071
73072    if test x"$smb_krb5_cv_enctype_to_string_takes_krb5_context_arg" = x"yes"; then
73073
73074cat >>confdefs.h <<\_ACEOF
73075#define HAVE_KRB5_ENCTYPE_TO_STRING_WITH_KRB5_CONTEXT_ARG 1
73076_ACEOF
73077
73078    fi
73079
73080    { $as_echo "$as_me:$LINENO: checking for krb5_error_code krb5_enctype_to_string(krb5_enctype enctype, char *str, size_t len)" >&5
73081$as_echo_n "checking for krb5_error_code krb5_enctype_to_string(krb5_enctype enctype, char *str, size_t len)... " >&6; }
73082if test "${smb_krb5_cv_enctype_to_string_takes_size_t_arg+set}" = set; then
73083  $as_echo_n "(cached) " >&6
73084else
73085
73086
73087	old_CFLAGS="$CFLAGS";
73088	CFLAGS="$CFLAGS $Werror_FLAGS";
73089	export CFLAGS;
73090	old_CPPFLAGS="$CPPFLAGS";
73091	CPPFLAGS="$CPPFLAGS";
73092	export CPPFLAGS;
73093	old_LDFLAGS="$LDFLAGS";
73094	LDFLAGS="$LDFLAGS";
73095	export LDFLAGS;
73096	if test "$cross_compiling" = yes; then
73097  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
73098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
73099{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
73100See \`config.log' for more details." >&5
73101$as_echo "$as_me: error: cannot run test program while cross compiling
73102See \`config.log' for more details." >&2;}
73103   { (exit 1); exit 1; }; }; }
73104else
73105  cat >conftest.$ac_ext <<_ACEOF
73106/* confdefs.h.  */
73107_ACEOF
73108cat confdefs.h >>conftest.$ac_ext
73109cat >>conftest.$ac_ext <<_ACEOF
73110/* end confdefs.h.  */
73111
73112		#include <krb5.h>
73113		int main(void) {
73114			char buf[256];
73115			krb5_enctype_to_string(1, buf, 256);
73116			return 0;
73117		}
73118
73119_ACEOF
73120rm -f conftest$ac_exeext
73121if { (ac_try="$ac_link"
73122case "(($ac_try" in
73123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73124  *) ac_try_echo=$ac_try;;
73125esac
73126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73127$as_echo "$ac_try_echo") >&5
73128  (eval "$ac_link") 2>&5
73129  ac_status=$?
73130  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73131  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
73132  { (case "(($ac_try" in
73133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73134  *) ac_try_echo=$ac_try;;
73135esac
73136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73137$as_echo "$ac_try_echo") >&5
73138  (eval "$ac_try") 2>&5
73139  ac_status=$?
73140  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73141  (exit $ac_status); }; }; then
73142  smb_krb5_cv_enctype_to_string_takes_size_t_arg=yes
73143else
73144  $as_echo "$as_me: program exited with status $ac_status" >&5
73145$as_echo "$as_me: failed program was:" >&5
73146sed 's/^/| /' conftest.$ac_ext >&5
73147
73148( exit $ac_status )
73149smb_krb5_cv_enctype_to_string_takes_size_t_arg=no
73150fi
73151rm -rf conftest.dSYM
73152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
73153fi
73154
73155
73156	CFLAGS="$old_CFLAGS";
73157	old_CFLAGS="";
73158	export CFLAGS;
73159	CPPFLAGS="$old_CPPFLAGS";
73160	old_CPPFLAGS="";
73161	export CPPFLAGS;
73162	LDFLAGS="$old_LDFLAGS";
73163	old_LDFLAGS="";
73164	export LDFLAGS;
73165
73166fi
73167{ $as_echo "$as_me:$LINENO: result: $smb_krb5_cv_enctype_to_string_takes_size_t_arg" >&5
73168$as_echo "$smb_krb5_cv_enctype_to_string_takes_size_t_arg" >&6; }
73169
73170    if test x"$smb_krb5_cv_enctype_to_string_takes_size_t_arg" = x"yes"; then
73171
73172cat >>confdefs.h <<\_ACEOF
73173#define HAVE_KRB5_ENCTYPE_TO_STRING_WITH_SIZE_T_ARG 1
73174_ACEOF
73175
73176    fi
73177  fi
73178
73179  { $as_echo "$as_me:$LINENO: checking for krb5_principal_get_realm" >&5
73180$as_echo_n "checking for krb5_principal_get_realm... " >&6; }
73181if test "${samba_cv_HAVE_KRB5_PRINCIPAL_GET_REALM+set}" = set; then
73182  $as_echo_n "(cached) " >&6
73183else
73184
73185    cat >conftest.$ac_ext <<_ACEOF
73186/* confdefs.h.  */
73187_ACEOF
73188cat confdefs.h >>conftest.$ac_ext
73189cat >>conftest.$ac_ext <<_ACEOF
73190/* end confdefs.h.  */
73191#include <krb5.h>
73192int
73193main ()
73194{
73195krb5_context ctx = NULL; krb5_principal princ = NULL; const char *str = krb5_principal_get_realm(ctx, princ);
73196  ;
73197  return 0;
73198}
73199_ACEOF
73200rm -f conftest.$ac_objext conftest$ac_exeext
73201if { (ac_try="$ac_link"
73202case "(($ac_try" in
73203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73204  *) ac_try_echo=$ac_try;;
73205esac
73206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73207$as_echo "$ac_try_echo") >&5
73208  (eval "$ac_link") 2>conftest.er1
73209  ac_status=$?
73210  grep -v '^ *+' conftest.er1 >conftest.err
73211  rm -f conftest.er1
73212  cat conftest.err >&5
73213  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73214  (exit $ac_status); } && {
73215	 test -z "$ac_c_werror_flag" ||
73216	 test ! -s conftest.err
73217       } && test -s conftest$ac_exeext && {
73218	 test "$cross_compiling" = yes ||
73219	 $as_test_x conftest$ac_exeext
73220       }; then
73221  samba_cv_HAVE_KRB5_PRINCIPAL_GET_REALM=yes
73222else
73223  $as_echo "$as_me: failed program was:" >&5
73224sed 's/^/| /' conftest.$ac_ext >&5
73225
73226	samba_cv_HAVE_KRB5_PRINCIPAL_GET_REALM=no
73227fi
73228
73229rm -rf conftest.dSYM
73230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73231      conftest$ac_exeext conftest.$ac_ext
73232fi
73233{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_PRINCIPAL_GET_REALM" >&5
73234$as_echo "$samba_cv_HAVE_KRB5_PRINCIPAL_GET_REALM" >&6; }
73235
73236  if test x"$samba_cv_HAVE_KRB5_PRINCIPAL_GET_REALM" = x"yes"; then
73237
73238cat >>confdefs.h <<\_ACEOF
73239#define HAVE_KRB5_PRINCIPAL_GET_REALM 1
73240_ACEOF
73241
73242  fi
73243
73244  { $as_echo "$as_me:$LINENO: checking for krb5_princ_realm" >&5
73245$as_echo_n "checking for krb5_princ_realm... " >&6; }
73246if test "${samba_cv_HAVE_KRB5_PRINC_REALM+set}" = set; then
73247  $as_echo_n "(cached) " >&6
73248else
73249
73250    cat >conftest.$ac_ext <<_ACEOF
73251/* confdefs.h.  */
73252_ACEOF
73253cat confdefs.h >>conftest.$ac_ext
73254cat >>conftest.$ac_ext <<_ACEOF
73255/* end confdefs.h.  */
73256#include <krb5.h>
73257int
73258main ()
73259{
73260krb5_context ctx = NULL; krb5_principal princ = NULL; const char *str = krb5_princ_realm(ctx, princ)->data;
73261  ;
73262  return 0;
73263}
73264_ACEOF
73265rm -f conftest.$ac_objext conftest$ac_exeext
73266if { (ac_try="$ac_link"
73267case "(($ac_try" in
73268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73269  *) ac_try_echo=$ac_try;;
73270esac
73271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73272$as_echo "$ac_try_echo") >&5
73273  (eval "$ac_link") 2>conftest.er1
73274  ac_status=$?
73275  grep -v '^ *+' conftest.er1 >conftest.err
73276  rm -f conftest.er1
73277  cat conftest.err >&5
73278  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73279  (exit $ac_status); } && {
73280	 test -z "$ac_c_werror_flag" ||
73281	 test ! -s conftest.err
73282       } && test -s conftest$ac_exeext && {
73283	 test "$cross_compiling" = yes ||
73284	 $as_test_x conftest$ac_exeext
73285       }; then
73286  samba_cv_HAVE_KRB5_PRINC_REALM=yes
73287else
73288  $as_echo "$as_me: failed program was:" >&5
73289sed 's/^/| /' conftest.$ac_ext >&5
73290
73291	samba_cv_HAVE_KRB5_PRINC_REALM=no
73292fi
73293
73294rm -rf conftest.dSYM
73295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73296      conftest$ac_exeext conftest.$ac_ext
73297fi
73298{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_KRB5_PRINC_REALM" >&5
73299$as_echo "$samba_cv_HAVE_KRB5_PRINC_REALM" >&6; }
73300
73301  if test x"$samba_cv_HAVE_KRB5_PRINC_REALM" = x"yes"; then
73302
73303cat >>confdefs.h <<\_ACEOF
73304#define HAVE_KRB5_PRINC_REALM 1
73305_ACEOF
73306
73307  fi
73308
73309  #
73310  #
73311  # Now the decisions whether we can support krb5
73312  #
73313  # NOTE: all tests should be done before this block!
73314  #
73315  #
73316  if test x"$ac_cv_lib_ext_krb5_krb5_mk_req_extended" != x"yes"; then
73317    { $as_echo "$as_me:$LINENO: WARNING: krb5_mk_req_extended not found in -lkrb5" >&5
73318$as_echo "$as_me: WARNING: krb5_mk_req_extended not found in -lkrb5" >&2;}
73319    use_ads=no
73320  fi
73321
73322  if test x"$ac_cv_func_ext_krb5_principal2salt" != x"yes" -a \
73323          x"$ac_cv_func_ext_krb5_get_pw_salt" != x"yes"
73324  then
73325    { $as_echo "$as_me:$LINENO: WARNING: no CREATE_KEY_FUNCTIONS detected" >&5
73326$as_echo "$as_me: WARNING: no CREATE_KEY_FUNCTIONS detected" >&2;}
73327    use_ads=no
73328  fi
73329
73330  if test x"$ac_cv_func_ext_krb5_get_permitted_enctypes" != x"yes" -a \
73331          x"$ac_cv_func_ext_krb5_get_default_in_tkt_etypes" != x"yes"
73332  then
73333    { $as_echo "$as_me:$LINENO: WARNING: no GET_ENCTYPES_FUNCTIONS detected" >&5
73334$as_echo "$as_me: WARNING: no GET_ENCTYPES_FUNCTIONS detected" >&2;}
73335    use_ads=no
73336  fi
73337
73338  if test x"$ac_cv_func_ext_krb5_kt_free_entry" != x"yes" -a \
73339          x"$ac_cv_func_ext_krb5_free_keytab_entry_contents" != x"yes"
73340  then
73341    { $as_echo "$as_me:$LINENO: WARNING: no KT_FREE_FUNCTION detected" >&5
73342$as_echo "$as_me: WARNING: no KT_FREE_FUNCTION detected" >&2;}
73343    use_ads=no
73344  fi
73345
73346  if test x"$ac_cv_func_ext_krb5_c_verify_checksum" != x"yes" -a \
73347          x"$ac_cv_func_ext_krb5_verify_checksum" != x"yes"
73348  then
73349    { $as_echo "$as_me:$LINENO: WARNING: no KRB5_VERIFY_CHECKSUM_FUNCTION detected" >&5
73350$as_echo "$as_me: WARNING: no KRB5_VERIFY_CHECKSUM_FUNCTION detected" >&2;}
73351    use_ads=no
73352  fi
73353
73354  if test x"$smb_krb5_cv_ticket_has_keyinfo" != x"yes" ; then
73355
73356      # We only need the following functions if we can't get the enctype
73357      # and kvno out of the ticket directly (ie. on Heimdal).
73358
73359      if test x"$ac_cv_func_ext_free_AP_REQ" != x"yes"
73360      then
73361	{ $as_echo "$as_me:$LINENO: WARNING: no KRB5_AP_REQ_FREE_FUNCTION detected" >&5
73362$as_echo "$as_me: WARNING: no KRB5_AP_REQ_FREE_FUNCTION detected" >&2;}
73363	use_ads=no
73364      fi
73365
73366      if test x"$ac_cv_func_ext_krb5_decode_ap_req" != x"yes"
73367      then
73368	{ $as_echo "$as_me:$LINENO: WARNING: no KRB5_AP_REQ_DECODING_FUNCTION detected" >&5
73369$as_echo "$as_me: WARNING: no KRB5_AP_REQ_DECODING_FUNCTION detected" >&2;}
73370	use_ads=no
73371      fi
73372
73373  fi
73374
73375  if test x"$use_ads" = x"yes"; then
73376
73377cat >>confdefs.h <<\_ACEOF
73378#define WITH_ADS 1
73379_ACEOF
73380
73381
73382cat >>confdefs.h <<\_ACEOF
73383#define HAVE_KRB5 1
73384_ACEOF
73385
73386    if test x"$have_gssapi" = x"yes"; then
73387
73388cat >>confdefs.h <<\_ACEOF
73389#define HAVE_GSSAPI 1
73390_ACEOF
73391
73392    fi
73393  else
73394    if test x"$with_ads_support" = x"yes"; then
73395	{ { $as_echo "$as_me:$LINENO: error: krb5 libs don't have all features required for Active Directory support" >&5
73396$as_echo "$as_me: error: krb5 libs don't have all features required for Active Directory support" >&2;}
73397   { (exit 1); exit 1; }; }
73398    else
73399	{ $as_echo "$as_me:$LINENO: WARNING: krb5 libs don't have all features required for Active Directory support" >&5
73400$as_echo "$as_me: WARNING: krb5 libs don't have all features required for Active Directory support" >&2;}
73401    fi
73402
73403grep -v '#define HAVE_KRB5_H ' confdefs.h |grep -v '#define HAVE_KRB5_H$'>confdefs.h.tmp
73404cat confdefs.h.tmp > confdefs.h
73405rm confdefs.h.tmp
73406
73407
73408grep -v '#define HAVE_GSSAPI_H ' confdefs.h |grep -v '#define HAVE_GSSAPI_H$'>confdefs.h.tmp
73409cat confdefs.h.tmp > confdefs.h
73410rm confdefs.h.tmp
73411
73412
73413grep -v '#define HAVE_GSSAPI_GSSAPI_GENERIC_H ' confdefs.h |grep -v '#define HAVE_GSSAPI_GSSAPI_GENERIC_H$'>confdefs.h.tmp
73414cat confdefs.h.tmp > confdefs.h
73415rm confdefs.h.tmp
73416
73417
73418grep -v '#define HAVE_GSSAPI_GSSAPI_H ' confdefs.h |grep -v '#define HAVE_GSSAPI_GSSAPI_H$'>confdefs.h.tmp
73419cat confdefs.h.tmp > confdefs.h
73420rm confdefs.h.tmp
73421
73422    KRB5_LIBS=""
73423    with_ads_support=no
73424  fi
73425  { $as_echo "$as_me:$LINENO: checking whether Active Directory and krb5 support is used" >&5
73426$as_echo_n "checking whether Active Directory and krb5 support is used... " >&6; }
73427  { $as_echo "$as_me:$LINENO: result: $use_ads" >&5
73428$as_echo "$use_ads" >&6; }
73429
73430LIBS="$ac_save_LIBS"
73431fi
73432
73433if test x"$use_ads" != xyes; then
73434	merged_build_possible=no
73435fi
73436
73437
73438
73439
73440ac_check_lib_ext_save_LIBS=$LIBS
73441LIBS="-lnscd $NSCD_LIBS  $LIBS"
73442
73443
73444
73445
73446        { $as_echo "$as_me:$LINENO: checking for nscd_flush_cache in -lnscd" >&5
73447$as_echo_n "checking for nscd_flush_cache in -lnscd... " >&6; }
73448if test "${ac_cv_lib_ext_nscd_nscd_flush_cache+set}" = set; then
73449  $as_echo_n "(cached) " >&6
73450else
73451  cat >conftest.$ac_ext <<_ACEOF
73452/* confdefs.h.  */
73453_ACEOF
73454cat confdefs.h >>conftest.$ac_ext
73455cat >>conftest.$ac_ext <<_ACEOF
73456/* end confdefs.h.  */
73457
73458/* Override any GCC internal prototype to avoid an error.
73459   Use char because int might match the return type of a GCC
73460   builtin and then its argument prototype would still apply.  */
73461#ifdef __cplusplus
73462extern "C"
73463#endif
73464char nscd_flush_cache ();
73465int
73466main ()
73467{
73468return nscd_flush_cache ();
73469  ;
73470  return 0;
73471}
73472_ACEOF
73473rm -f conftest.$ac_objext conftest$ac_exeext
73474if { (ac_try="$ac_link"
73475case "(($ac_try" in
73476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73477  *) ac_try_echo=$ac_try;;
73478esac
73479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73480$as_echo "$ac_try_echo") >&5
73481  (eval "$ac_link") 2>conftest.er1
73482  ac_status=$?
73483  grep -v '^ *+' conftest.er1 >conftest.err
73484  rm -f conftest.er1
73485  cat conftest.err >&5
73486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73487  (exit $ac_status); } && {
73488	 test -z "$ac_c_werror_flag" ||
73489	 test ! -s conftest.err
73490       } && test -s conftest$ac_exeext && {
73491	 test "$cross_compiling" = yes ||
73492	 $as_test_x conftest$ac_exeext
73493       }; then
73494  ac_cv_lib_ext_nscd_nscd_flush_cache=yes;
73495		  ac_cv_lib_ext_nscd=yes
73496else
73497  $as_echo "$as_me: failed program was:" >&5
73498sed 's/^/| /' conftest.$ac_ext >&5
73499
73500	ac_cv_lib_ext_nscd_nscd_flush_cache=no;
73501		  ac_cv_lib_ext_nscd=no
73502fi
73503
73504rm -rf conftest.dSYM
73505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73506      conftest$ac_exeext conftest.$ac_ext
73507
73508fi
73509{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_nscd_nscd_flush_cache" >&5
73510$as_echo "$ac_cv_lib_ext_nscd_nscd_flush_cache" >&6; }
73511    if test $ac_cv_lib_ext_nscd_nscd_flush_cache = yes; then
73512  cat >>confdefs.h <<_ACEOF
73513#define HAVE_NSCD_FLUSH_CACHE 1
73514_ACEOF
73515
73516fi
73517
73518LIBS=$ac_check_lib_ext_save_LIBS
73519
73520if test $ac_cv_lib_ext_nscd = yes; then
73521  cat >>confdefs.h <<_ACEOF
73522#define HAVE_LIBNSCD 1
73523_ACEOF
73524
73525		case "$NSCD_LIBS" in
73526		    *-lnscd*)
73527			;;
73528		    *)
73529			NSCD_LIBS="-lnscd $NSCD_LIBS"
73530			;;
73531		esac
73532
73533
73534fi
73535
73536PASSDB_LIBS="$PASSDB_LIBS $NSCD_LIBS"
73537
73538
73539########################################################
73540# Compile with DNS Updates support?
73541
73542with_dnsupdate_support=no
73543{ $as_echo "$as_me:$LINENO: checking whether to enable DNS Updates support" >&5
73544$as_echo_n "checking whether to enable DNS Updates support... " >&6; }
73545
73546
73547# Check whether --with-dnsupdate was given.
73548if test "${with_dnsupdate+set}" = set; then
73549  withval=$with_dnsupdate;  case "$withval" in
73550    yes|no)
73551	with_dnsupdate_support=$withval
73552	;;
73553  esac
73554fi
73555
73556
73557{ $as_echo "$as_me:$LINENO: result: $with_dnsupdate_support" >&5
73558$as_echo "$with_dnsupdate_support" >&6; }
73559
73560if test x"$with_dnsupdate_support" != x"no"; then
73561
73562  ################################################################
73563  # first test for Active Directory support being enabled
73564  #if test x"$with_ads_support" = x"no"; then
73565  #		AC_MSG_ERROR(Active Directory support is required to enable DNS Update support)
73566  #		with_dnsupdate_support=no
73567  #fi
73568  ##################################################################
73569  # then test for uuid.h (necessary to generate unique DNS keynames
73570  # (uuid.h is required for this test)
73571
73572for ac_header in uuid/uuid.h
73573do
73574as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
73575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73576  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
73577$as_echo_n "checking for $ac_header... " >&6; }
73578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73579  $as_echo_n "(cached) " >&6
73580fi
73581ac_res=`eval 'as_val=${'$as_ac_Header'}
73582		 $as_echo "$as_val"'`
73583	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73584$as_echo "$ac_res" >&6; }
73585else
73586  # Is the header compilable?
73587{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
73588$as_echo_n "checking $ac_header usability... " >&6; }
73589cat >conftest.$ac_ext <<_ACEOF
73590/* confdefs.h.  */
73591_ACEOF
73592cat confdefs.h >>conftest.$ac_ext
73593cat >>conftest.$ac_ext <<_ACEOF
73594/* end confdefs.h.  */
73595$ac_includes_default
73596#include <$ac_header>
73597_ACEOF
73598rm -f conftest.$ac_objext
73599if { (ac_try="$ac_compile"
73600case "(($ac_try" in
73601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73602  *) ac_try_echo=$ac_try;;
73603esac
73604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73605$as_echo "$ac_try_echo") >&5
73606  (eval "$ac_compile") 2>conftest.er1
73607  ac_status=$?
73608  grep -v '^ *+' conftest.er1 >conftest.err
73609  rm -f conftest.er1
73610  cat conftest.err >&5
73611  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73612  (exit $ac_status); } && {
73613	 test -z "$ac_c_werror_flag" ||
73614	 test ! -s conftest.err
73615       } && test -s conftest.$ac_objext; then
73616  ac_header_compiler=yes
73617else
73618  $as_echo "$as_me: failed program was:" >&5
73619sed 's/^/| /' conftest.$ac_ext >&5
73620
73621	ac_header_compiler=no
73622fi
73623
73624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73625{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
73626$as_echo "$ac_header_compiler" >&6; }
73627
73628# Is the header present?
73629{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
73630$as_echo_n "checking $ac_header presence... " >&6; }
73631cat >conftest.$ac_ext <<_ACEOF
73632/* confdefs.h.  */
73633_ACEOF
73634cat confdefs.h >>conftest.$ac_ext
73635cat >>conftest.$ac_ext <<_ACEOF
73636/* end confdefs.h.  */
73637#include <$ac_header>
73638_ACEOF
73639if { (ac_try="$ac_cpp conftest.$ac_ext"
73640case "(($ac_try" in
73641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73642  *) ac_try_echo=$ac_try;;
73643esac
73644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73645$as_echo "$ac_try_echo") >&5
73646  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
73647  ac_status=$?
73648  grep -v '^ *+' conftest.er1 >conftest.err
73649  rm -f conftest.er1
73650  cat conftest.err >&5
73651  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73652  (exit $ac_status); } >/dev/null && {
73653	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
73654	 test ! -s conftest.err
73655       }; then
73656  ac_header_preproc=yes
73657else
73658  $as_echo "$as_me: failed program was:" >&5
73659sed 's/^/| /' conftest.$ac_ext >&5
73660
73661  ac_header_preproc=no
73662fi
73663
73664rm -f conftest.err conftest.$ac_ext
73665{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
73666$as_echo "$ac_header_preproc" >&6; }
73667
73668# So?  What about this header?
73669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
73670  yes:no: )
73671    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
73672$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
73673    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
73674$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
73675    ac_header_preproc=yes
73676    ;;
73677  no:yes:* )
73678    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
73679$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
73680    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
73681$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
73682    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
73683$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
73684    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
73685$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
73686    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
73687$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
73688    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
73689$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
73690    ( cat <<\_ASBOX
73691## ---------------------------------------- ##
73692## Report this to samba-technical@samba.org ##
73693## ---------------------------------------- ##
73694_ASBOX
73695     ) | sed "s/^/$as_me: WARNING:     /" >&2
73696    ;;
73697esac
73698{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
73699$as_echo_n "checking for $ac_header... " >&6; }
73700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73701  $as_echo_n "(cached) " >&6
73702else
73703  eval "$as_ac_Header=\$ac_header_preproc"
73704fi
73705ac_res=`eval 'as_val=${'$as_ac_Header'}
73706		 $as_echo "$as_val"'`
73707	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73708$as_echo "$ac_res" >&6; }
73709
73710fi
73711as_val=`eval 'as_val=${'$as_ac_Header'}
73712		 $as_echo "$as_val"'`
73713   if test "x$as_val" = x""yes; then
73714  cat >>confdefs.h <<_ACEOF
73715#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
73716_ACEOF
73717
73718fi
73719
73720done
73721
73722
73723  if test x"$ac_cv_header_uuid_uuid_h" != x"yes"; then
73724	if test x"$with_dnsupdate_support" = x"yes"; then
73725	 { { $as_echo "$as_me:$LINENO: error: uuid.h is needed to enable DNS Updates support" >&5
73726$as_echo "$as_me: error: uuid.h is needed to enable DNS Updates support" >&2;}
73727   { (exit 1); exit 1; }; }
73728	else
73729	 { $as_echo "$as_me:$LINENO: WARNING: uuid.h is needed to enable DNS Updates support" >&5
73730$as_echo "$as_me: WARNING: uuid.h is needed to enable DNS Updates support" >&2;}
73731	fi
73732	with_dnsupdate_support=no
73733  fi
73734fi
73735
73736if test x"$with_dnsupdate_support" != x"no"; then
73737
73738  ########################################################
73739  # Now see if we can find the uuid libs in standard paths
73740  # On some systems, the uuid API is in libc, so we have to
73741  # be careful not to insert a spurious -luuid.
73742
73743  UUID_LIBS=""
73744
73745
73746for ac_func in uuid_generate
73747do
73748as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
73749{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
73750$as_echo_n "checking for $ac_func... " >&6; }
73751if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
73752  $as_echo_n "(cached) " >&6
73753else
73754  cat >conftest.$ac_ext <<_ACEOF
73755/* confdefs.h.  */
73756_ACEOF
73757cat confdefs.h >>conftest.$ac_ext
73758cat >>conftest.$ac_ext <<_ACEOF
73759/* end confdefs.h.  */
73760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
73761   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
73762#define $ac_func innocuous_$ac_func
73763
73764/* System header to define __stub macros and hopefully few prototypes,
73765    which can conflict with char $ac_func (); below.
73766    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73767    <limits.h> exists even on freestanding compilers.  */
73768
73769#ifdef __STDC__
73770# include <limits.h>
73771#else
73772# include <assert.h>
73773#endif
73774
73775#undef $ac_func
73776
73777/* Override any GCC internal prototype to avoid an error.
73778   Use char because int might match the return type of a GCC
73779   builtin and then its argument prototype would still apply.  */
73780#ifdef __cplusplus
73781extern "C"
73782#endif
73783char $ac_func ();
73784/* The GNU C library defines this for functions which it implements
73785    to always fail with ENOSYS.  Some functions are actually named
73786    something starting with __ and the normal name is an alias.  */
73787#if defined __stub_$ac_func || defined __stub___$ac_func
73788choke me
73789#endif
73790
73791int
73792main ()
73793{
73794return $ac_func ();
73795  ;
73796  return 0;
73797}
73798_ACEOF
73799rm -f conftest.$ac_objext conftest$ac_exeext
73800if { (ac_try="$ac_link"
73801case "(($ac_try" in
73802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73803  *) ac_try_echo=$ac_try;;
73804esac
73805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73806$as_echo "$ac_try_echo") >&5
73807  (eval "$ac_link") 2>conftest.er1
73808  ac_status=$?
73809  grep -v '^ *+' conftest.er1 >conftest.err
73810  rm -f conftest.er1
73811  cat conftest.err >&5
73812  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73813  (exit $ac_status); } && {
73814	 test -z "$ac_c_werror_flag" ||
73815	 test ! -s conftest.err
73816       } && test -s conftest$ac_exeext && {
73817	 test "$cross_compiling" = yes ||
73818	 $as_test_x conftest$ac_exeext
73819       }; then
73820  eval "$as_ac_var=yes"
73821else
73822  $as_echo "$as_me: failed program was:" >&5
73823sed 's/^/| /' conftest.$ac_ext >&5
73824
73825	eval "$as_ac_var=no"
73826fi
73827
73828rm -rf conftest.dSYM
73829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73830      conftest$ac_exeext conftest.$ac_ext
73831fi
73832ac_res=`eval 'as_val=${'$as_ac_var'}
73833		 $as_echo "$as_val"'`
73834	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73835$as_echo "$ac_res" >&6; }
73836as_val=`eval 'as_val=${'$as_ac_var'}
73837		 $as_echo "$as_val"'`
73838   if test "x$as_val" = x""yes; then
73839  cat >>confdefs.h <<_ACEOF
73840#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
73841_ACEOF
73842
73843        # uuid_generate was found in libc or existing $LIBS
73844
73845
73846	    case " $LIBS " in
73847		*\ -luuid\ *)
73848		UUID_LIBS="-luuid"
73849
73850    LIBS=`echo $LIBS | sed '-es/-luuid//g'`
73851
73852		;;
73853	    esac
73854
73855	    with_dnsupdate_support=yes
73856
73857cat >>confdefs.h <<\_ACEOF
73858#define WITH_DNS_UPDATES 1
73859_ACEOF
73860
73861
73862
73863
73864else
73865
73866        # uuid_generate was not found, try adding libuuid
73867	case " $LIBS " in
73868          *\ -luuid\ *)
73869
73870
73871	    if test x"$with_dnsupdate_support" = x"yes"; then
73872		{ { $as_echo "$as_me:$LINENO: error: libuuid is needed to enable DNS Updates support" >&5
73873$as_echo "$as_me: error: libuuid is needed to enable DNS Updates support" >&2;}
73874   { (exit 1); exit 1; }; }
73875	    else
73876		{ $as_echo "$as_me:$LINENO: WARNING: libuuid is needed to enable DNS Updates support" >&5
73877$as_echo "$as_me: WARNING: libuuid is needed to enable DNS Updates support" >&2;}
73878	    fi
73879	    with_dnsupdate_support=no
73880
73881
73882	    ;;
73883          *)
73884	    # uuid_generate was not found, try adding libuuid
73885	    { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
73886$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
73887if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
73888  $as_echo_n "(cached) " >&6
73889else
73890  ac_check_lib_save_LIBS=$LIBS
73891LIBS="-luuid  $LIBS"
73892cat >conftest.$ac_ext <<_ACEOF
73893/* confdefs.h.  */
73894_ACEOF
73895cat confdefs.h >>conftest.$ac_ext
73896cat >>conftest.$ac_ext <<_ACEOF
73897/* end confdefs.h.  */
73898
73899/* Override any GCC internal prototype to avoid an error.
73900   Use char because int might match the return type of a GCC
73901   builtin and then its argument prototype would still apply.  */
73902#ifdef __cplusplus
73903extern "C"
73904#endif
73905char uuid_generate ();
73906int
73907main ()
73908{
73909return uuid_generate ();
73910  ;
73911  return 0;
73912}
73913_ACEOF
73914rm -f conftest.$ac_objext conftest$ac_exeext
73915if { (ac_try="$ac_link"
73916case "(($ac_try" in
73917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73918  *) ac_try_echo=$ac_try;;
73919esac
73920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73921$as_echo "$ac_try_echo") >&5
73922  (eval "$ac_link") 2>conftest.er1
73923  ac_status=$?
73924  grep -v '^ *+' conftest.er1 >conftest.err
73925  rm -f conftest.er1
73926  cat conftest.err >&5
73927  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73928  (exit $ac_status); } && {
73929	 test -z "$ac_c_werror_flag" ||
73930	 test ! -s conftest.err
73931       } && test -s conftest$ac_exeext && {
73932	 test "$cross_compiling" = yes ||
73933	 $as_test_x conftest$ac_exeext
73934       }; then
73935  ac_cv_lib_uuid_uuid_generate=yes
73936else
73937  $as_echo "$as_me: failed program was:" >&5
73938sed 's/^/| /' conftest.$ac_ext >&5
73939
73940	ac_cv_lib_uuid_uuid_generate=no
73941fi
73942
73943rm -rf conftest.dSYM
73944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73945      conftest$ac_exeext conftest.$ac_ext
73946LIBS=$ac_check_lib_save_LIBS
73947fi
73948{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
73949$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
73950if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
73951
73952		LIBS="-luuid $LIBS"
73953
73954
73955	    case " $LIBS " in
73956		*\ -luuid\ *)
73957		UUID_LIBS="-luuid"
73958
73959    LIBS=`echo $LIBS | sed '-es/-luuid//g'`
73960
73961		;;
73962	    esac
73963
73964	    with_dnsupdate_support=yes
73965
73966cat >>confdefs.h <<\_ACEOF
73967#define WITH_DNS_UPDATES 1
73968_ACEOF
73969
73970
73971
73972
73973else
73974
73975
73976
73977	    if test x"$with_dnsupdate_support" = x"yes"; then
73978		{ { $as_echo "$as_me:$LINENO: error: libuuid is needed to enable DNS Updates support" >&5
73979$as_echo "$as_me: error: libuuid is needed to enable DNS Updates support" >&2;}
73980   { (exit 1); exit 1; }; }
73981	    else
73982		{ $as_echo "$as_me:$LINENO: WARNING: libuuid is needed to enable DNS Updates support" >&5
73983$as_echo "$as_me: WARNING: libuuid is needed to enable DNS Updates support" >&2;}
73984	    fi
73985	    with_dnsupdate_support=no
73986
73987
73988
73989fi
73990
73991	  ;;
73992        esac
73993
73994fi
73995done
73996
73997
73998fi
73999
74000#################################################
74001# check for automount support
74002{ $as_echo "$as_me:$LINENO: checking whether to use automount" >&5
74003$as_echo_n "checking whether to use automount... " >&6; }
74004
74005# Check whether --with-automount was given.
74006if test "${with_automount+set}" = set; then
74007  withval=$with_automount;  case "$withval" in
74008  yes)
74009    { $as_echo "$as_me:$LINENO: result: yes" >&5
74010$as_echo "yes" >&6; }
74011
74012cat >>confdefs.h <<\_ACEOF
74013#define WITH_AUTOMOUNT 1
74014_ACEOF
74015
74016    ;;
74017  *)
74018    { $as_echo "$as_me:$LINENO: result: no" >&5
74019$as_echo "no" >&6; }
74020    ;;
74021  esac
74022else
74023  { $as_echo "$as_me:$LINENO: result: no" >&5
74024$as_echo "no" >&6; }
74025
74026fi
74027
74028
74029#################################################
74030# check for mount- and umount.cifs support
74031CIFSMOUNT_PROGS=""
74032INSTALL_CIFSMOUNT=""
74033UNINSTALL_CIFSMOUNT=""
74034{ $as_echo "$as_me:$LINENO: checking whether to build mount.cifs" >&5
74035$as_echo_n "checking whether to build mount.cifs... " >&6; }
74036
74037# Check whether --with-cifsmount was given.
74038if test "${with_cifsmount+set}" = set; then
74039  withval=$with_cifsmount;  case "$withval" in
74040  no)
74041	{ $as_echo "$as_me:$LINENO: result: no" >&5
74042$as_echo "no" >&6; }
74043	;;
74044  *)
74045	case "$host_os" in
74046	*linux*)
74047		{ $as_echo "$as_me:$LINENO: result: yes" >&5
74048$as_echo "yes" >&6; }
74049
74050cat >>confdefs.h <<\_ACEOF
74051#define WITH_CIFSMOUNT 1
74052_ACEOF
74053
74054		CIFSMOUNT_PROGS="bin/mount.cifs"
74055		INSTALL_CIFSMOUNT="installcifsmount"
74056		UNINSTALL_CIFSMOUNT="uninstallcifsmount"
74057		;;
74058	*)
74059		{ { $as_echo "$as_me:$LINENO: error: not on a linux system!" >&5
74060$as_echo "$as_me: error: not on a linux system!" >&2;}
74061   { (exit 1); exit 1; }; }
74062		;;
74063	esac
74064    ;;
74065  esac
74066else
74067   case "$host_os" in
74068  *linux*)
74069	{ $as_echo "$as_me:$LINENO: result: yes" >&5
74070$as_echo "yes" >&6; }
74071
74072cat >>confdefs.h <<\_ACEOF
74073#define WITH_CIFSMOUNT 1
74074_ACEOF
74075
74076	CIFSMOUNT_PROGS="bin/mount.cifs"
74077	INSTALL_CIFSMOUNT="installcifsmount"
74078	UNINSTALL_CIFSMOUNT="uninstallcifsmount"
74079	;;
74080  *)
74081	{ $as_echo "$as_me:$LINENO: result: no" >&5
74082$as_echo "no" >&6; }
74083	;;
74084  esac
74085
74086fi
74087
74088
74089CIFSUMOUNT_PROGS=""
74090INSTALL_CIFSUMOUNT=""
74091UNINSTALL_CIFSUMOUNT=""
74092{ $as_echo "$as_me:$LINENO: checking whether to build umount.cifs" >&5
74093$as_echo_n "checking whether to build umount.cifs... " >&6; }
74094
74095# Check whether --with-cifsumount was given.
74096if test "${with_cifsumount+set}" = set; then
74097  withval=$with_cifsumount;  case "$withval" in
74098  yes)
74099	case "$host_os" in
74100	*linux*)
74101		{ $as_echo "$as_me:$LINENO: result: yes" >&5
74102$as_echo "yes" >&6; }
74103
74104cat >>confdefs.h <<\_ACEOF
74105#define WITH_CIFSUMOUNT 1
74106_ACEOF
74107
74108		CIFSUMOUNT_PROGS="bin/umount.cifs"
74109		INSTALL_CIFSUMOUNT="installcifsumount"
74110		UNINSTALL_CIFSUMOUNT="uninstallcifsumount"
74111		;;
74112	*)
74113		{ { $as_echo "$as_me:$LINENO: error: not on a linux system!" >&5
74114$as_echo "$as_me: error: not on a linux system!" >&2;}
74115   { (exit 1); exit 1; }; }
74116		;;
74117	esac
74118	;;
74119  *)
74120	{ $as_echo "$as_me:$LINENO: result: no" >&5
74121$as_echo "no" >&6; }
74122	;;
74123  esac
74124else
74125  { $as_echo "$as_me:$LINENO: result: no" >&5
74126$as_echo "no" >&6; }
74127
74128fi
74129
74130
74131#################################################
74132# check for cifs.upcall support
74133
74134for ac_header in keyutils.h
74135do
74136as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
74137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
74138  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
74139$as_echo_n "checking for $ac_header... " >&6; }
74140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
74141  $as_echo_n "(cached) " >&6
74142fi
74143ac_res=`eval 'as_val=${'$as_ac_Header'}
74144		 $as_echo "$as_val"'`
74145	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
74146$as_echo "$ac_res" >&6; }
74147else
74148  # Is the header compilable?
74149{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
74150$as_echo_n "checking $ac_header usability... " >&6; }
74151cat >conftest.$ac_ext <<_ACEOF
74152/* confdefs.h.  */
74153_ACEOF
74154cat confdefs.h >>conftest.$ac_ext
74155cat >>conftest.$ac_ext <<_ACEOF
74156/* end confdefs.h.  */
74157$ac_includes_default
74158#include <$ac_header>
74159_ACEOF
74160rm -f conftest.$ac_objext
74161if { (ac_try="$ac_compile"
74162case "(($ac_try" in
74163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74164  *) ac_try_echo=$ac_try;;
74165esac
74166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74167$as_echo "$ac_try_echo") >&5
74168  (eval "$ac_compile") 2>conftest.er1
74169  ac_status=$?
74170  grep -v '^ *+' conftest.er1 >conftest.err
74171  rm -f conftest.er1
74172  cat conftest.err >&5
74173  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74174  (exit $ac_status); } && {
74175	 test -z "$ac_c_werror_flag" ||
74176	 test ! -s conftest.err
74177       } && test -s conftest.$ac_objext; then
74178  ac_header_compiler=yes
74179else
74180  $as_echo "$as_me: failed program was:" >&5
74181sed 's/^/| /' conftest.$ac_ext >&5
74182
74183	ac_header_compiler=no
74184fi
74185
74186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74187{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
74188$as_echo "$ac_header_compiler" >&6; }
74189
74190# Is the header present?
74191{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
74192$as_echo_n "checking $ac_header presence... " >&6; }
74193cat >conftest.$ac_ext <<_ACEOF
74194/* confdefs.h.  */
74195_ACEOF
74196cat confdefs.h >>conftest.$ac_ext
74197cat >>conftest.$ac_ext <<_ACEOF
74198/* end confdefs.h.  */
74199#include <$ac_header>
74200_ACEOF
74201if { (ac_try="$ac_cpp conftest.$ac_ext"
74202case "(($ac_try" in
74203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74204  *) ac_try_echo=$ac_try;;
74205esac
74206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74207$as_echo "$ac_try_echo") >&5
74208  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
74209  ac_status=$?
74210  grep -v '^ *+' conftest.er1 >conftest.err
74211  rm -f conftest.er1
74212  cat conftest.err >&5
74213  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74214  (exit $ac_status); } >/dev/null && {
74215	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
74216	 test ! -s conftest.err
74217       }; then
74218  ac_header_preproc=yes
74219else
74220  $as_echo "$as_me: failed program was:" >&5
74221sed 's/^/| /' conftest.$ac_ext >&5
74222
74223  ac_header_preproc=no
74224fi
74225
74226rm -f conftest.err conftest.$ac_ext
74227{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
74228$as_echo "$ac_header_preproc" >&6; }
74229
74230# So?  What about this header?
74231case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
74232  yes:no: )
74233    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
74234$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
74235    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
74236$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
74237    ac_header_preproc=yes
74238    ;;
74239  no:yes:* )
74240    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
74241$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
74242    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
74243$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
74244    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
74245$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
74246    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
74247$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
74248    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
74249$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
74250    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
74251$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
74252    ( cat <<\_ASBOX
74253## ---------------------------------------- ##
74254## Report this to samba-technical@samba.org ##
74255## ---------------------------------------- ##
74256_ASBOX
74257     ) | sed "s/^/$as_me: WARNING:     /" >&2
74258    ;;
74259esac
74260{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
74261$as_echo_n "checking for $ac_header... " >&6; }
74262if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
74263  $as_echo_n "(cached) " >&6
74264else
74265  eval "$as_ac_Header=\$ac_header_preproc"
74266fi
74267ac_res=`eval 'as_val=${'$as_ac_Header'}
74268		 $as_echo "$as_val"'`
74269	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
74270$as_echo "$ac_res" >&6; }
74271
74272fi
74273as_val=`eval 'as_val=${'$as_ac_Header'}
74274		 $as_echo "$as_val"'`
74275   if test "x$as_val" = x""yes; then
74276  cat >>confdefs.h <<_ACEOF
74277#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
74278_ACEOF
74279 HAVE_KEYUTILS_H=1
74280else
74281  HAVE_KEYUTILS_H=0
74282fi
74283
74284done
74285
74286CIFSUPCALL_PROGS=""
74287INSTALL_CIFSUPCALL=""
74288UNINSTALL_CIFSUPCALL=""
74289{ $as_echo "$as_me:$LINENO: checking whether to build cifs.upcall" >&5
74290$as_echo_n "checking whether to build cifs.upcall... " >&6; }
74291
74292# Check whether --with-cifsupcall was given.
74293if test "${with_cifsupcall+set}" = set; then
74294  withval=$with_cifsupcall;  case "$withval" in
74295  no)
74296	{ $as_echo "$as_me:$LINENO: result: no" >&5
74297$as_echo "no" >&6; }
74298	;;
74299  *)
74300	case "$host_os" in
74301	*linux*)
74302		if test x"$use_ads" != x"yes"; then
74303			{ { $as_echo "$as_me:$LINENO: error: ADS support should be enabled for building cifs.upcall" >&5
74304$as_echo "$as_me: error: ADS support should be enabled for building cifs.upcall" >&2;}
74305   { (exit 1); exit 1; }; }
74306		elif test x"$HAVE_KEYUTILS_H" != "x1"; then
74307			{ { $as_echo "$as_me:$LINENO: error: keyutils package is required for cifs.upcall" >&5
74308$as_echo "$as_me: error: keyutils package is required for cifs.upcall" >&2;}
74309   { (exit 1); exit 1; }; }
74310		else
74311			{ $as_echo "$as_me:$LINENO: result: yes" >&5
74312$as_echo "yes" >&6; }
74313
74314cat >>confdefs.h <<\_ACEOF
74315#define WITH_CIFSUPCALL 1
74316_ACEOF
74317
74318			CIFSUPCALL_PROGS="bin/cifs.upcall"
74319			INSTALL_CIFSUPCALL="installcifsupcall"
74320			UNINSTALL_CIFSUPCALL="uninstallcifsupcall"
74321		fi
74322		;;
74323	*)
74324		{ { $as_echo "$as_me:$LINENO: error: not on a linux system!" >&5
74325$as_echo "$as_me: error: not on a linux system!" >&2;}
74326   { (exit 1); exit 1; }; }
74327		;;
74328	esac
74329    ;;
74330  esac
74331else
74332   case "$host_os" in
74333  *linux*)
74334	if test x"$use_ads" != x"yes"; then
74335		{ $as_echo "$as_me:$LINENO: WARNING: ADS support should be enabled for building cifs.upcall" >&5
74336$as_echo "$as_me: WARNING: ADS support should be enabled for building cifs.upcall" >&2;}
74337	elif test x"$HAVE_KEYUTILS_H" != "x1"; then
74338		{ $as_echo "$as_me:$LINENO: WARNING: keyutils package is required for cifs.upcall" >&5
74339$as_echo "$as_me: WARNING: keyutils package is required for cifs.upcall" >&2;}
74340	else
74341		{ $as_echo "$as_me:$LINENO: result: yes" >&5
74342$as_echo "yes" >&6; }
74343
74344cat >>confdefs.h <<\_ACEOF
74345#define WITH_CIFSUPCALL 1
74346_ACEOF
74347
74348		CIFSUPCALL_PROGS="bin/cifs.upcall"
74349		INSTALL_CIFSUPCALL="installcifsupcall"
74350		UNINSTALL_CIFSUPCALL="uninstallcifsupcall"
74351	fi
74352	;;
74353  *)
74354	{ $as_echo "$as_me:$LINENO: result: no" >&5
74355$as_echo "no" >&6; }
74356	;;
74357  esac
74358
74359fi
74360
74361
74362
74363#################################################
74364# Check for a PAM clear-text auth, accounts, password
74365# and session support. Most PAM implementations keep their
74366# headers in /usr/include/security. Darwin keeps its in
74367# /usr/include/pam.
74368
74369with_pam_for_crypt=no
74370try_pam=auto
74371{ $as_echo "$as_me:$LINENO: checking whether to try PAM support" >&5
74372$as_echo_n "checking whether to try PAM support... " >&6; }
74373
74374# Check whether --with-pam was given.
74375if test "${with_pam+set}" = set; then
74376  withval=$with_pam;  case "$withval" in
74377  yes|no|auto)
74378    try_pam=$withval
74379    ;;
74380  esac
74381
74382fi
74383
74384{ $as_echo "$as_me:$LINENO: result: $try_pam" >&5
74385$as_echo "$try_pam" >&6; }
74386
74387use_pam=no
74388create_pam_modules=no
74389if test x"${try_pam}" != x"no";then
74390	use_pam=yes
74391	create_pam_modules=yes
74392
74393	# Most systems have PAM headers in /usr/include/security, but Darwin
74394	# has them in /usr/include/pam.
74395
74396
74397for ac_header in security/pam_appl.h pam/pam_appl.h
74398do
74399as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
74400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
74401  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
74402$as_echo_n "checking for $ac_header... " >&6; }
74403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
74404  $as_echo_n "(cached) " >&6
74405fi
74406ac_res=`eval 'as_val=${'$as_ac_Header'}
74407		 $as_echo "$as_val"'`
74408	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
74409$as_echo "$ac_res" >&6; }
74410else
74411  # Is the header compilable?
74412{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
74413$as_echo_n "checking $ac_header usability... " >&6; }
74414cat >conftest.$ac_ext <<_ACEOF
74415/* confdefs.h.  */
74416_ACEOF
74417cat confdefs.h >>conftest.$ac_ext
74418cat >>conftest.$ac_ext <<_ACEOF
74419/* end confdefs.h.  */
74420$ac_includes_default
74421#include <$ac_header>
74422_ACEOF
74423rm -f conftest.$ac_objext
74424if { (ac_try="$ac_compile"
74425case "(($ac_try" in
74426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74427  *) ac_try_echo=$ac_try;;
74428esac
74429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74430$as_echo "$ac_try_echo") >&5
74431  (eval "$ac_compile") 2>conftest.er1
74432  ac_status=$?
74433  grep -v '^ *+' conftest.er1 >conftest.err
74434  rm -f conftest.er1
74435  cat conftest.err >&5
74436  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74437  (exit $ac_status); } && {
74438	 test -z "$ac_c_werror_flag" ||
74439	 test ! -s conftest.err
74440       } && test -s conftest.$ac_objext; then
74441  ac_header_compiler=yes
74442else
74443  $as_echo "$as_me: failed program was:" >&5
74444sed 's/^/| /' conftest.$ac_ext >&5
74445
74446	ac_header_compiler=no
74447fi
74448
74449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74450{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
74451$as_echo "$ac_header_compiler" >&6; }
74452
74453# Is the header present?
74454{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
74455$as_echo_n "checking $ac_header presence... " >&6; }
74456cat >conftest.$ac_ext <<_ACEOF
74457/* confdefs.h.  */
74458_ACEOF
74459cat confdefs.h >>conftest.$ac_ext
74460cat >>conftest.$ac_ext <<_ACEOF
74461/* end confdefs.h.  */
74462#include <$ac_header>
74463_ACEOF
74464if { (ac_try="$ac_cpp conftest.$ac_ext"
74465case "(($ac_try" in
74466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74467  *) ac_try_echo=$ac_try;;
74468esac
74469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74470$as_echo "$ac_try_echo") >&5
74471  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
74472  ac_status=$?
74473  grep -v '^ *+' conftest.er1 >conftest.err
74474  rm -f conftest.er1
74475  cat conftest.err >&5
74476  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74477  (exit $ac_status); } >/dev/null && {
74478	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
74479	 test ! -s conftest.err
74480       }; then
74481  ac_header_preproc=yes
74482else
74483  $as_echo "$as_me: failed program was:" >&5
74484sed 's/^/| /' conftest.$ac_ext >&5
74485
74486  ac_header_preproc=no
74487fi
74488
74489rm -f conftest.err conftest.$ac_ext
74490{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
74491$as_echo "$ac_header_preproc" >&6; }
74492
74493# So?  What about this header?
74494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
74495  yes:no: )
74496    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
74497$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
74498    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
74499$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
74500    ac_header_preproc=yes
74501    ;;
74502  no:yes:* )
74503    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
74504$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
74505    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
74506$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
74507    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
74508$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
74509    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
74510$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
74511    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
74512$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
74513    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
74514$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
74515    ( cat <<\_ASBOX
74516## ---------------------------------------- ##
74517## Report this to samba-technical@samba.org ##
74518## ---------------------------------------- ##
74519_ASBOX
74520     ) | sed "s/^/$as_me: WARNING:     /" >&2
74521    ;;
74522esac
74523{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
74524$as_echo_n "checking for $ac_header... " >&6; }
74525if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
74526  $as_echo_n "(cached) " >&6
74527else
74528  eval "$as_ac_Header=\$ac_header_preproc"
74529fi
74530ac_res=`eval 'as_val=${'$as_ac_Header'}
74531		 $as_echo "$as_val"'`
74532	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
74533$as_echo "$ac_res" >&6; }
74534
74535fi
74536as_val=`eval 'as_val=${'$as_ac_Header'}
74537		 $as_echo "$as_val"'`
74538   if test "x$as_val" = x""yes; then
74539  cat >>confdefs.h <<_ACEOF
74540#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
74541_ACEOF
74542
74543fi
74544
74545done
74546
74547	if test x"$ac_cv_header_security_pam_appl_h" != x"yes" -a \
74548		x"$ac_cv_header_pam_pam_appl_h" != x"yes"; then
74549		if test x"${try_pam}" = x"yes";then
74550			{ { $as_echo "$as_me:$LINENO: error: --with-pam=yes but pam_appl.h not found" >&5
74551$as_echo "$as_me: error: --with-pam=yes but pam_appl.h not found" >&2;}
74552   { (exit 1); exit 1; }; }
74553		fi
74554		use_pam=no
74555		create_pam_modules=no
74556	fi
74557
74558
74559
74560
74561ac_check_lib_ext_save_LIBS=$LIBS
74562LIBS="-lpam $PAM_LIBS  $LIBS"
74563
74564
74565
74566
74567        { $as_echo "$as_me:$LINENO: checking for pam_get_data in -lpam" >&5
74568$as_echo_n "checking for pam_get_data in -lpam... " >&6; }
74569if test "${ac_cv_lib_ext_pam_pam_get_data+set}" = set; then
74570  $as_echo_n "(cached) " >&6
74571else
74572  cat >conftest.$ac_ext <<_ACEOF
74573/* confdefs.h.  */
74574_ACEOF
74575cat confdefs.h >>conftest.$ac_ext
74576cat >>conftest.$ac_ext <<_ACEOF
74577/* end confdefs.h.  */
74578
74579/* Override any GCC internal prototype to avoid an error.
74580   Use char because int might match the return type of a GCC
74581   builtin and then its argument prototype would still apply.  */
74582#ifdef __cplusplus
74583extern "C"
74584#endif
74585char pam_get_data ();
74586int
74587main ()
74588{
74589return pam_get_data ();
74590  ;
74591  return 0;
74592}
74593_ACEOF
74594rm -f conftest.$ac_objext conftest$ac_exeext
74595if { (ac_try="$ac_link"
74596case "(($ac_try" in
74597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74598  *) ac_try_echo=$ac_try;;
74599esac
74600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74601$as_echo "$ac_try_echo") >&5
74602  (eval "$ac_link") 2>conftest.er1
74603  ac_status=$?
74604  grep -v '^ *+' conftest.er1 >conftest.err
74605  rm -f conftest.er1
74606  cat conftest.err >&5
74607  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74608  (exit $ac_status); } && {
74609	 test -z "$ac_c_werror_flag" ||
74610	 test ! -s conftest.err
74611       } && test -s conftest$ac_exeext && {
74612	 test "$cross_compiling" = yes ||
74613	 $as_test_x conftest$ac_exeext
74614       }; then
74615  ac_cv_lib_ext_pam_pam_get_data=yes;
74616		  ac_cv_lib_ext_pam=yes
74617else
74618  $as_echo "$as_me: failed program was:" >&5
74619sed 's/^/| /' conftest.$ac_ext >&5
74620
74621	ac_cv_lib_ext_pam_pam_get_data=no;
74622		  ac_cv_lib_ext_pam=no
74623fi
74624
74625rm -rf conftest.dSYM
74626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
74627      conftest$ac_exeext conftest.$ac_ext
74628
74629fi
74630{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_pam_pam_get_data" >&5
74631$as_echo "$ac_cv_lib_ext_pam_pam_get_data" >&6; }
74632    if test $ac_cv_lib_ext_pam_pam_get_data = yes; then
74633  cat >>confdefs.h <<_ACEOF
74634#define HAVE_PAM_GET_DATA 1
74635_ACEOF
74636
74637fi
74638
74639LIBS=$ac_check_lib_ext_save_LIBS
74640
74641if test $ac_cv_lib_ext_pam = yes; then
74642  cat >>confdefs.h <<_ACEOF
74643#define HAVE_LIBPAM 1
74644_ACEOF
74645
74646		case "$PAM_LIBS" in
74647		    *-lpam*)
74648			;;
74649		    *)
74650			PAM_LIBS="-lpam $PAM_LIBS"
74651			;;
74652		esac
74653
74654
74655fi
74656
74657	if test x"$ac_cv_lib_ext_pam_pam_get_data" != x"yes"; then
74658		if test x"${try_pam}" = x"yes";then
74659			{ { $as_echo "$as_me:$LINENO: error: --with-pam=yes but libpam not found" >&5
74660$as_echo "$as_me: error: --with-pam=yes but libpam not found" >&2;}
74661   { (exit 1); exit 1; }; }
74662		fi
74663		use_pam=no
74664		create_pam_modules=no
74665	fi
74666
74667
74668
74669for ac_header in security/pam_modules.h pam/pam_modules.h
74670do
74671as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
74672{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
74673$as_echo_n "checking for $ac_header... " >&6; }
74674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
74675  $as_echo_n "(cached) " >&6
74676else
74677  cat >conftest.$ac_ext <<_ACEOF
74678/* confdefs.h.  */
74679_ACEOF
74680cat confdefs.h >>conftest.$ac_ext
74681cat >>conftest.$ac_ext <<_ACEOF
74682/* end confdefs.h.  */
74683
74684		#if HAVE_SECURITY_PAM_APPL_H
74685		#include <security/pam_appl.h>
74686		#endif
74687		#if HAVE_PAM_PAM_APPL_H
74688		#include <pam/pam_appl.h>
74689		#endif
74690
74691
74692#include <$ac_header>
74693_ACEOF
74694rm -f conftest.$ac_objext
74695if { (ac_try="$ac_compile"
74696case "(($ac_try" in
74697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74698  *) ac_try_echo=$ac_try;;
74699esac
74700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74701$as_echo "$ac_try_echo") >&5
74702  (eval "$ac_compile") 2>conftest.er1
74703  ac_status=$?
74704  grep -v '^ *+' conftest.er1 >conftest.err
74705  rm -f conftest.er1
74706  cat conftest.err >&5
74707  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74708  (exit $ac_status); } && {
74709	 test -z "$ac_c_werror_flag" ||
74710	 test ! -s conftest.err
74711       } && test -s conftest.$ac_objext; then
74712  eval "$as_ac_Header=yes"
74713else
74714  $as_echo "$as_me: failed program was:" >&5
74715sed 's/^/| /' conftest.$ac_ext >&5
74716
74717	eval "$as_ac_Header=no"
74718fi
74719
74720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74721fi
74722ac_res=`eval 'as_val=${'$as_ac_Header'}
74723		 $as_echo "$as_val"'`
74724	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
74725$as_echo "$ac_res" >&6; }
74726as_val=`eval 'as_val=${'$as_ac_Header'}
74727		 $as_echo "$as_val"'`
74728   if test "x$as_val" = x""yes; then
74729  cat >>confdefs.h <<_ACEOF
74730#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
74731_ACEOF
74732
74733fi
74734
74735done
74736
74737	if test x"$ac_cv_header_security_pam_modules_h" = x"no" -a \
74738		x"$ac_cv_header_pam_pam_modules_h" = x"no" ; then
74739		if test x"${try_pam}" = x"yes";then
74740			{ { $as_echo "$as_me:$LINENO: error: --with-pam=yes but pam_modules.h not found" >&5
74741$as_echo "$as_me: error: --with-pam=yes but pam_modules.h not found" >&2;}
74742   { (exit 1); exit 1; }; }
74743       fi
74744		create_pam_modules=no
74745    fi
74746
74747	if test x"$use_pam" = x"yes"; then
74748
74749cat >>confdefs.h <<\_ACEOF
74750#define WITH_PAM 1
74751_ACEOF
74752
74753
74754cat >>confdefs.h <<\_ACEOF
74755#define HAVE_LIBPAM 1
74756_ACEOF
74757
74758		AUTH_LIBS="$AUTH_LIBS $PAM_LIBS"
74759    with_pam_for_crypt=yes
74760
74761		if test x"$create_pam_modules" = x"yes"; then
74762
74763cat >>confdefs.h <<\_ACEOF
74764#define WITH_PAM_MODULES 1
74765_ACEOF
74766
74767			# this checks are optional,
74768			# we don't care about the results here
74769
74770
74771for ac_header in security/pam_ext.h security/_pam_macros.h
74772do
74773as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
74774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
74775  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
74776$as_echo_n "checking for $ac_header... " >&6; }
74777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
74778  $as_echo_n "(cached) " >&6
74779fi
74780ac_res=`eval 'as_val=${'$as_ac_Header'}
74781		 $as_echo "$as_val"'`
74782	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
74783$as_echo "$ac_res" >&6; }
74784else
74785  # Is the header compilable?
74786{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
74787$as_echo_n "checking $ac_header usability... " >&6; }
74788cat >conftest.$ac_ext <<_ACEOF
74789/* confdefs.h.  */
74790_ACEOF
74791cat confdefs.h >>conftest.$ac_ext
74792cat >>conftest.$ac_ext <<_ACEOF
74793/* end confdefs.h.  */
74794$ac_includes_default
74795#include <$ac_header>
74796_ACEOF
74797rm -f conftest.$ac_objext
74798if { (ac_try="$ac_compile"
74799case "(($ac_try" in
74800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74801  *) ac_try_echo=$ac_try;;
74802esac
74803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74804$as_echo "$ac_try_echo") >&5
74805  (eval "$ac_compile") 2>conftest.er1
74806  ac_status=$?
74807  grep -v '^ *+' conftest.er1 >conftest.err
74808  rm -f conftest.er1
74809  cat conftest.err >&5
74810  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74811  (exit $ac_status); } && {
74812	 test -z "$ac_c_werror_flag" ||
74813	 test ! -s conftest.err
74814       } && test -s conftest.$ac_objext; then
74815  ac_header_compiler=yes
74816else
74817  $as_echo "$as_me: failed program was:" >&5
74818sed 's/^/| /' conftest.$ac_ext >&5
74819
74820	ac_header_compiler=no
74821fi
74822
74823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74824{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
74825$as_echo "$ac_header_compiler" >&6; }
74826
74827# Is the header present?
74828{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
74829$as_echo_n "checking $ac_header presence... " >&6; }
74830cat >conftest.$ac_ext <<_ACEOF
74831/* confdefs.h.  */
74832_ACEOF
74833cat confdefs.h >>conftest.$ac_ext
74834cat >>conftest.$ac_ext <<_ACEOF
74835/* end confdefs.h.  */
74836#include <$ac_header>
74837_ACEOF
74838if { (ac_try="$ac_cpp conftest.$ac_ext"
74839case "(($ac_try" in
74840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74841  *) ac_try_echo=$ac_try;;
74842esac
74843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74844$as_echo "$ac_try_echo") >&5
74845  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
74846  ac_status=$?
74847  grep -v '^ *+' conftest.er1 >conftest.err
74848  rm -f conftest.er1
74849  cat conftest.err >&5
74850  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74851  (exit $ac_status); } >/dev/null && {
74852	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
74853	 test ! -s conftest.err
74854       }; then
74855  ac_header_preproc=yes
74856else
74857  $as_echo "$as_me: failed program was:" >&5
74858sed 's/^/| /' conftest.$ac_ext >&5
74859
74860  ac_header_preproc=no
74861fi
74862
74863rm -f conftest.err conftest.$ac_ext
74864{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
74865$as_echo "$ac_header_preproc" >&6; }
74866
74867# So?  What about this header?
74868case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
74869  yes:no: )
74870    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
74871$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
74872    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
74873$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
74874    ac_header_preproc=yes
74875    ;;
74876  no:yes:* )
74877    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
74878$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
74879    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
74880$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
74881    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
74882$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
74883    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
74884$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
74885    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
74886$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
74887    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
74888$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
74889    ( cat <<\_ASBOX
74890## ---------------------------------------- ##
74891## Report this to samba-technical@samba.org ##
74892## ---------------------------------------- ##
74893_ASBOX
74894     ) | sed "s/^/$as_me: WARNING:     /" >&2
74895    ;;
74896esac
74897{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
74898$as_echo_n "checking for $ac_header... " >&6; }
74899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
74900  $as_echo_n "(cached) " >&6
74901else
74902  eval "$as_ac_Header=\$ac_header_preproc"
74903fi
74904ac_res=`eval 'as_val=${'$as_ac_Header'}
74905		 $as_echo "$as_val"'`
74906	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
74907$as_echo "$ac_res" >&6; }
74908
74909fi
74910as_val=`eval 'as_val=${'$as_ac_Header'}
74911		 $as_echo "$as_val"'`
74912   if test "x$as_val" = x""yes; then
74913  cat >>confdefs.h <<_ACEOF
74914#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
74915_ACEOF
74916
74917fi
74918
74919done
74920
74921
74922
74923for ac_header in pam/pam_ext.h pam/_pam_macros.h
74924do
74925as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
74926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
74927  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
74928$as_echo_n "checking for $ac_header... " >&6; }
74929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
74930  $as_echo_n "(cached) " >&6
74931fi
74932ac_res=`eval 'as_val=${'$as_ac_Header'}
74933		 $as_echo "$as_val"'`
74934	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
74935$as_echo "$ac_res" >&6; }
74936else
74937  # Is the header compilable?
74938{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
74939$as_echo_n "checking $ac_header usability... " >&6; }
74940cat >conftest.$ac_ext <<_ACEOF
74941/* confdefs.h.  */
74942_ACEOF
74943cat confdefs.h >>conftest.$ac_ext
74944cat >>conftest.$ac_ext <<_ACEOF
74945/* end confdefs.h.  */
74946$ac_includes_default
74947#include <$ac_header>
74948_ACEOF
74949rm -f conftest.$ac_objext
74950if { (ac_try="$ac_compile"
74951case "(($ac_try" in
74952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74953  *) ac_try_echo=$ac_try;;
74954esac
74955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74956$as_echo "$ac_try_echo") >&5
74957  (eval "$ac_compile") 2>conftest.er1
74958  ac_status=$?
74959  grep -v '^ *+' conftest.er1 >conftest.err
74960  rm -f conftest.er1
74961  cat conftest.err >&5
74962  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74963  (exit $ac_status); } && {
74964	 test -z "$ac_c_werror_flag" ||
74965	 test ! -s conftest.err
74966       } && test -s conftest.$ac_objext; then
74967  ac_header_compiler=yes
74968else
74969  $as_echo "$as_me: failed program was:" >&5
74970sed 's/^/| /' conftest.$ac_ext >&5
74971
74972	ac_header_compiler=no
74973fi
74974
74975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74976{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
74977$as_echo "$ac_header_compiler" >&6; }
74978
74979# Is the header present?
74980{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
74981$as_echo_n "checking $ac_header presence... " >&6; }
74982cat >conftest.$ac_ext <<_ACEOF
74983/* confdefs.h.  */
74984_ACEOF
74985cat confdefs.h >>conftest.$ac_ext
74986cat >>conftest.$ac_ext <<_ACEOF
74987/* end confdefs.h.  */
74988#include <$ac_header>
74989_ACEOF
74990if { (ac_try="$ac_cpp conftest.$ac_ext"
74991case "(($ac_try" in
74992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
74993  *) ac_try_echo=$ac_try;;
74994esac
74995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
74996$as_echo "$ac_try_echo") >&5
74997  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
74998  ac_status=$?
74999  grep -v '^ *+' conftest.er1 >conftest.err
75000  rm -f conftest.er1
75001  cat conftest.err >&5
75002  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75003  (exit $ac_status); } >/dev/null && {
75004	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
75005	 test ! -s conftest.err
75006       }; then
75007  ac_header_preproc=yes
75008else
75009  $as_echo "$as_me: failed program was:" >&5
75010sed 's/^/| /' conftest.$ac_ext >&5
75011
75012  ac_header_preproc=no
75013fi
75014
75015rm -f conftest.err conftest.$ac_ext
75016{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
75017$as_echo "$ac_header_preproc" >&6; }
75018
75019# So?  What about this header?
75020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
75021  yes:no: )
75022    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
75023$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
75024    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
75025$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
75026    ac_header_preproc=yes
75027    ;;
75028  no:yes:* )
75029    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
75030$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
75031    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
75032$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
75033    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
75034$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
75035    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
75036$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
75037    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
75038$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
75039    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
75040$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
75041    ( cat <<\_ASBOX
75042## ---------------------------------------- ##
75043## Report this to samba-technical@samba.org ##
75044## ---------------------------------------- ##
75045_ASBOX
75046     ) | sed "s/^/$as_me: WARNING:     /" >&2
75047    ;;
75048esac
75049{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
75050$as_echo_n "checking for $ac_header... " >&6; }
75051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
75052  $as_echo_n "(cached) " >&6
75053else
75054  eval "$as_ac_Header=\$ac_header_preproc"
75055fi
75056ac_res=`eval 'as_val=${'$as_ac_Header'}
75057		 $as_echo "$as_val"'`
75058	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
75059$as_echo "$ac_res" >&6; }
75060
75061fi
75062as_val=`eval 'as_val=${'$as_ac_Header'}
75063		 $as_echo "$as_val"'`
75064   if test "x$as_val" = x""yes; then
75065  cat >>confdefs.h <<_ACEOF
75066#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
75067_ACEOF
75068
75069fi
75070
75071done
75072
75073
75074
75075
75076    ac_check_func_ext_save_LIBS=$LIBS
75077    LIBS="$PAM_LIBS $LIBS"
75078        { $as_echo "$as_me:$LINENO: checking for pam_vsyslog" >&5
75079$as_echo_n "checking for pam_vsyslog... " >&6; }
75080if test "${ac_cv_func_ext_pam_vsyslog+set}" = set; then
75081  $as_echo_n "(cached) " >&6
75082else
75083  cat >conftest.$ac_ext <<_ACEOF
75084/* confdefs.h.  */
75085_ACEOF
75086cat confdefs.h >>conftest.$ac_ext
75087cat >>conftest.$ac_ext <<_ACEOF
75088/* end confdefs.h.  */
75089/* Define pam_vsyslog to an innocuous variant, in case <limits.h> declares pam_vsyslog.
75090   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
75091#define pam_vsyslog innocuous_pam_vsyslog
75092
75093/* System header to define __stub macros and hopefully few prototypes,
75094    which can conflict with char pam_vsyslog (); below.
75095    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
75096    <limits.h> exists even on freestanding compilers.  */
75097
75098#ifdef __STDC__
75099# include <limits.h>
75100#else
75101# include <assert.h>
75102#endif
75103
75104#undef pam_vsyslog
75105
75106/* Override any GCC internal prototype to avoid an error.
75107   Use char because int might match the return type of a GCC
75108   builtin and then its argument prototype would still apply.  */
75109#ifdef __cplusplus
75110extern "C"
75111#endif
75112char pam_vsyslog ();
75113/* The GNU C library defines this for functions which it implements
75114    to always fail with ENOSYS.  Some functions are actually named
75115    something starting with __ and the normal name is an alias.  */
75116#if defined __stub_pam_vsyslog || defined __stub___pam_vsyslog
75117choke me
75118#endif
75119
75120int
75121main ()
75122{
75123return pam_vsyslog ();
75124  ;
75125  return 0;
75126}
75127_ACEOF
75128rm -f conftest.$ac_objext conftest$ac_exeext
75129if { (ac_try="$ac_link"
75130case "(($ac_try" in
75131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75132  *) ac_try_echo=$ac_try;;
75133esac
75134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75135$as_echo "$ac_try_echo") >&5
75136  (eval "$ac_link") 2>conftest.er1
75137  ac_status=$?
75138  grep -v '^ *+' conftest.er1 >conftest.err
75139  rm -f conftest.er1
75140  cat conftest.err >&5
75141  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75142  (exit $ac_status); } && {
75143	 test -z "$ac_c_werror_flag" ||
75144	 test ! -s conftest.err
75145       } && test -s conftest$ac_exeext && {
75146	 test "$cross_compiling" = yes ||
75147	 $as_test_x conftest$ac_exeext
75148       }; then
75149  ac_cv_func_ext_pam_vsyslog=yes
75150else
75151  $as_echo "$as_me: failed program was:" >&5
75152sed 's/^/| /' conftest.$ac_ext >&5
75153
75154	ac_cv_func_ext_pam_vsyslog=no
75155fi
75156
75157rm -rf conftest.dSYM
75158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
75159      conftest$ac_exeext conftest.$ac_ext
75160fi
75161{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_pam_vsyslog" >&5
75162$as_echo "$ac_cv_func_ext_pam_vsyslog" >&6; }
75163    LIBS=$ac_check_func_ext_save_LIBS
75164    if test $ac_cv_func_ext_pam_vsyslog = yes; then
75165  cat >>confdefs.h <<_ACEOF
75166#define HAVE_PAM_VSYSLOG 1
75167_ACEOF
75168
75169fi
75170
75171		else
75172			{ $as_echo "$as_me:$LINENO: WARNING: PAM support detected but PAM MODULES support is missing" >&5
75173$as_echo "$as_me: WARNING: PAM support detected but PAM MODULES support is missing" >&2;}
75174		fi
75175	fi
75176	{ $as_echo "$as_me:$LINENO: checking whether to use PAM support" >&5
75177$as_echo_n "checking whether to use PAM support... " >&6; }
75178	{ $as_echo "$as_me:$LINENO: result: $use_pam" >&5
75179$as_echo "$use_pam" >&6; }
75180
75181	{ $as_echo "$as_me:$LINENO: checking whether to have PAM MODULES support" >&5
75182$as_echo_n "checking whether to have PAM MODULES support... " >&6; }
75183	{ $as_echo "$as_me:$LINENO: result: $create_pam_modules" >&5
75184$as_echo "$create_pam_modules" >&6; }
75185fi # try_pam != no
75186
75187#################################################
75188# check for PAM_RADIO_TYPE
75189cat >conftest.$ac_ext <<_ACEOF
75190/* confdefs.h.  */
75191_ACEOF
75192cat confdefs.h >>conftest.$ac_ext
75193cat >>conftest.$ac_ext <<_ACEOF
75194/* end confdefs.h.  */
75195
75196#if (!defined(LINUX))
75197
75198#define PAM_EXTERN extern
75199#if defined(HAVE_SECURITY_PAM_APPL_H)
75200#include <security/pam_appl.h>
75201#elif defined(HAVE_PAM_PAM_APPL_H)
75202#include <pam/pam_appl.h>
75203#endif
75204
75205#endif
75206
75207#if defined(HAVE_SECURITY_PAM_MODULES_H)
75208#include <security/pam_modules.h>
75209#elif defined(HAVE_PAM_PAM_MODULES_H)
75210#include <pam/pam_modules.h>
75211#endif
75212
75213#if defined(HAVE_SECURITY__PAM_MACROS_H)
75214#include <security/_pam_macros.h>
75215#elif defined(HAVE_PAM__PAM_MACROS_H)
75216#include <pam/_pam_macros.h>
75217#endif
75218
75219#ifdef HAVE_SECURITY_PAM_EXT_H
75220#include <security/pam_ext.h>
75221#endif
75222
75223int
75224main ()
75225{
75226int i; i = PAM_RADIO_TYPE;
75227  ;
75228  return 0;
75229}
75230_ACEOF
75231rm -f conftest.$ac_objext
75232if { (ac_try="$ac_compile"
75233case "(($ac_try" in
75234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75235  *) ac_try_echo=$ac_try;;
75236esac
75237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75238$as_echo "$ac_try_echo") >&5
75239  (eval "$ac_compile") 2>conftest.er1
75240  ac_status=$?
75241  grep -v '^ *+' conftest.er1 >conftest.err
75242  rm -f conftest.er1
75243  cat conftest.err >&5
75244  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75245  (exit $ac_status); } && {
75246	 test -z "$ac_c_werror_flag" ||
75247	 test ! -s conftest.err
75248       } && test -s conftest.$ac_objext; then
75249
75250cat >>confdefs.h <<\_ACEOF
75251#define HAVE_PAM_RADIO_TYPE 1
75252_ACEOF
75253
75254else
75255  $as_echo "$as_me: failed program was:" >&5
75256sed 's/^/| /' conftest.$ac_ext >&5
75257
75258
75259fi
75260
75261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75262
75263#################################################
75264# check for pam_smbpass support
75265PAM_MODULES=""
75266INSTALL_PAM_MODULES=""
75267UNINSTALL_PAM_MODULES=""
75268
75269try_pam_smbpass=auto
75270{ $as_echo "$as_me:$LINENO: checking whether to use pam_smbpass" >&5
75271$as_echo_n "checking whether to use pam_smbpass... " >&6; }
75272
75273# Check whether --with-pam_smbpass was given.
75274if test "${with_pam_smbpass+set}" = set; then
75275  withval=$with_pam_smbpass;  case "$withval" in
75276  yes|no|auto)
75277    try_pam_smbpass=$withval
75278  ;;
75279  *)
75280    { { $as_echo "$as_me:$LINENO: error: valid options are yes,no,auto" >&5
75281$as_echo "$as_me: error: valid options are yes,no,auto" >&2;}
75282   { (exit 1); exit 1; }; }
75283  ;;
75284  esac
75285
75286fi
75287
75288
75289if test x"${try_pam_smbpass}" = xno ; then
75290	use_pam_smbpass=no
75291else
75292	use_pam_smbpass=yes
75293	# Conditions under which pam_smbpass can't be built.
75294	if test x"$BLDSHARED" != xtrue ; then
75295		if test x"${try_pam_smbpass}" = xyes ; then
75296			{ { $as_echo "$as_me:$LINENO: error: No support for shared modules" >&5
75297$as_echo "$as_me: error: No support for shared modules" >&2;}
75298   { (exit 1); exit 1; }; }
75299		fi
75300		use_pam_smbpass=no
75301	elif test x"$create_pam_modules" != xyes ; then
75302		if test x"${try_pam_smbpass}" = xyes ; then
75303			{ { $as_echo "$as_me:$LINENO: error: No support for PAM MODULES" >&5
75304$as_echo "$as_me: error: No support for PAM MODULES" >&2;}
75305   { (exit 1); exit 1; }; }
75306		fi
75307		use_pam_smbpass=no
75308	fi
75309
75310	if test x"${use_pam_smbpass}" = xyes ; then
75311		PAM_MODULES="pam_smbpass"
75312		INSTALL_PAM_MODULES="installpammodules"
75313		UNINSTALL_PAM_MODULES="uninstallpammodules"
75314	fi
75315fi
75316{ $as_echo "$as_me:$LINENO: result: $use_pam_smbpass" >&5
75317$as_echo "$use_pam_smbpass" >&6; }
75318
75319
75320##
75321## moved after the check for -lcrypt in order to
75322## ensure that the necessary libraries are included
75323## check checking for truncated salt.  Wrapped by the
75324## $with_pam_for_crypt variable as above   --jerry
75325##
75326if test $with_pam_for_crypt = no; then
75327{ $as_echo "$as_me:$LINENO: checking for a crypt that needs truncated salt" >&5
75328$as_echo_n "checking for a crypt that needs truncated salt... " >&6; }
75329if test "${samba_cv_HAVE_TRUNCATED_SALT+set}" = set; then
75330  $as_echo_n "(cached) " >&6
75331else
75332
75333crypt_LIBS="$LIBS"
75334LIBS="$AUTH_LIBS $LIBS"
75335if test "$cross_compiling" = yes; then
75336  samba_cv_HAVE_TRUNCATED_SALT=cross
75337else
75338  cat >conftest.$ac_ext <<_ACEOF
75339/* confdefs.h.  */
75340_ACEOF
75341cat confdefs.h >>conftest.$ac_ext
75342cat >>conftest.$ac_ext <<_ACEOF
75343/* end confdefs.h.  */
75344#include "${srcdir-.}/../tests/crypttest.c"
75345_ACEOF
75346rm -f conftest$ac_exeext
75347if { (ac_try="$ac_link"
75348case "(($ac_try" in
75349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75350  *) ac_try_echo=$ac_try;;
75351esac
75352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75353$as_echo "$ac_try_echo") >&5
75354  (eval "$ac_link") 2>&5
75355  ac_status=$?
75356  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75357  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
75358  { (case "(($ac_try" in
75359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75360  *) ac_try_echo=$ac_try;;
75361esac
75362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75363$as_echo "$ac_try_echo") >&5
75364  (eval "$ac_try") 2>&5
75365  ac_status=$?
75366  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75367  (exit $ac_status); }; }; then
75368  samba_cv_HAVE_TRUNCATED_SALT=no
75369else
75370  $as_echo "$as_me: program exited with status $ac_status" >&5
75371$as_echo "$as_me: failed program was:" >&5
75372sed 's/^/| /' conftest.$ac_ext >&5
75373
75374( exit $ac_status )
75375samba_cv_HAVE_TRUNCATED_SALT=yes
75376fi
75377rm -rf conftest.dSYM
75378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
75379fi
75380
75381
75382LIBS="$crypt_LIBS"
75383fi
75384{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_TRUNCATED_SALT" >&5
75385$as_echo "$samba_cv_HAVE_TRUNCATED_SALT" >&6; }
75386if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
75387
75388cat >>confdefs.h <<\_ACEOF
75389#define HAVE_TRUNCATED_SALT 1
75390_ACEOF
75391
75392fi
75393fi
75394
75395#################################################
75396# check for a NISPLUS_HOME support
75397{ $as_echo "$as_me:$LINENO: checking whether to use NISPLUS_HOME" >&5
75398$as_echo_n "checking whether to use NISPLUS_HOME... " >&6; }
75399
75400# Check whether --with-nisplus-home was given.
75401if test "${with_nisplus_home+set}" = set; then
75402  withval=$with_nisplus_home;  case "$withval" in
75403  yes)
75404    { $as_echo "$as_me:$LINENO: result: yes" >&5
75405$as_echo "yes" >&6; }
75406
75407cat >>confdefs.h <<\_ACEOF
75408#define WITH_NISPLUS_HOME 1
75409_ACEOF
75410
75411    ;;
75412  *)
75413    { $as_echo "$as_me:$LINENO: result: no" >&5
75414$as_echo "no" >&6; }
75415    ;;
75416  esac
75417else
75418  { $as_echo "$as_me:$LINENO: result: no" >&5
75419$as_echo "no" >&6; }
75420
75421fi
75422
75423
75424#################################################
75425# check for syslog logging
75426{ $as_echo "$as_me:$LINENO: checking whether to use syslog logging" >&5
75427$as_echo_n "checking whether to use syslog logging... " >&6; }
75428
75429# Check whether --with-syslog was given.
75430if test "${with_syslog+set}" = set; then
75431  withval=$with_syslog;  case "$withval" in
75432  yes)
75433    { $as_echo "$as_me:$LINENO: result: yes" >&5
75434$as_echo "yes" >&6; }
75435
75436cat >>confdefs.h <<\_ACEOF
75437#define WITH_SYSLOG 1
75438_ACEOF
75439
75440    ;;
75441  *)
75442    { $as_echo "$as_me:$LINENO: result: no" >&5
75443$as_echo "no" >&6; }
75444    ;;
75445  esac
75446else
75447  { $as_echo "$as_me:$LINENO: result: no" >&5
75448$as_echo "no" >&6; }
75449
75450fi
75451
75452
75453#################################################
75454# check for custom syslog facility
75455{ $as_echo "$as_me:$LINENO: checking whether to use a custom syslog facility" >&5
75456$as_echo_n "checking whether to use a custom syslog facility... " >&6; }
75457
75458# Check whether --with-syslog-facility was given.
75459if test "${with_syslog_facility+set}" = set; then
75460  withval=$with_syslog_facility;
75461  if test "$withval" = "no" ; then
75462    { { $as_echo "$as_me:$LINENO: error: argument to --with-syslog-facility must be a string" >&5
75463$as_echo "$as_me: error: argument to --with-syslog-facility must be a string" >&2;}
75464   { (exit 1); exit 1; }; }
75465  else
75466     if test "$withval" != "yes" ; then
75467        syslog_facility="$withval"
75468
75469cat >>confdefs.h <<_ACEOF
75470#define SYSLOG_FACILITY $syslog_facility
75471_ACEOF
75472
75473     fi
75474  fi
75475
75476fi
75477
75478
75479#################################################
75480# check for experimental disk-quotas support
75481
75482samba_cv_WITH_QUOTAS=auto
75483samba_cv_TRY_QUOTAS=no
75484samba_cv_RUN_QUOTA_TESTS=auto
75485samba_cv_WITH_SYS_QUOTAS=auto
75486samba_cv_TRY_SYS_QUOTAS=auto
75487samba_cv_SYSQUOTA_FOUND=no
75488
75489{ $as_echo "$as_me:$LINENO: checking whether to try disk-quotas support" >&5
75490$as_echo_n "checking whether to try disk-quotas support... " >&6; }
75491
75492# Check whether --with-quotas was given.
75493if test "${with_quotas+set}" = set; then
75494  withval=$with_quotas;  case "$withval" in
75495  yes)
75496    { $as_echo "$as_me:$LINENO: result: yes" >&5
75497$as_echo "yes" >&6; }
75498    samba_cv_WITH_QUOTAS=yes
75499    samba_cv_TRY_QUOTAS=yes
75500    samba_cv_RUN_QUOTA_TESTS=yes
75501    #set sys quotas to auto in this case
75502    samba_cv_TRY_SYS_QUOTAS=auto
75503    ;;
75504  auto)
75505    { $as_echo "$as_me:$LINENO: result: auto" >&5
75506$as_echo "auto" >&6; }
75507    samba_cv_WITH_QUOTAS=auto
75508    samba_cv_TRY_QUOTAS=auto
75509    samba_cv_RUN_QUOTA_TESTS=auto
75510    #set sys quotas to auto in this case
75511    samba_cv_TRY_SYS_QUOTAS=auto
75512    ;;
75513  no)
75514    { $as_echo "$as_me:$LINENO: result: no" >&5
75515$as_echo "no" >&6; }
75516    samba_cv_WITH_QUOTAS=no
75517    samba_cv_TRY_QUOTAS=no
75518    samba_cv_RUN_QUOTA_TESTS=no
75519    ;;
75520  *)
75521    { $as_echo "$as_me:$LINENO: result: ${samba_cv_TRY_QUOTAS}" >&5
75522$as_echo "${samba_cv_TRY_QUOTAS}" >&6; }
75523    ;;
75524  esac
75525else
75526  { $as_echo "$as_me:$LINENO: result: ${samba_cv_TRY_QUOTAS}" >&5
75527$as_echo "${samba_cv_TRY_QUOTAS}" >&6; }
75528
75529fi
75530
75531
75532{ $as_echo "$as_me:$LINENO: checking whether to try the new lib/sysquotas.c interface" >&5
75533$as_echo_n "checking whether to try the new lib/sysquotas.c interface... " >&6; }
75534
75535# Check whether --with-sys-quotas was given.
75536if test "${with_sys_quotas+set}" = set; then
75537  withval=$with_sys_quotas;  case "$withval" in
75538  yes)
75539    { $as_echo "$as_me:$LINENO: result: yes" >&5
75540$as_echo "yes" >&6; }
75541    samba_cv_WITH_SYS_QUOTAS=yes
75542    samba_cv_TRY_SYS_QUOTAS=yes
75543    samba_cv_RUN_QUOTA_TESTS=yes
75544    ;;
75545  auto)
75546    { $as_echo "$as_me:$LINENO: result: auto" >&5
75547$as_echo "auto" >&6; }
75548    samba_cv_WITH_SYS_QUOTAS=auto
75549    samba_cv_TRY_SYS_QUOTAS=auto
75550    samba_cv_RUN_QUOTA_TESTS=auto
75551    ;;
75552  no)
75553    { $as_echo "$as_me:$LINENO: result: no" >&5
75554$as_echo "no" >&6; }
75555    samba_cv_WITH_SYS_QUOTAS=no
75556    samba_cv_TRY_SYS_QUOTAS=no
75557    ;;
75558  *)
75559    { $as_echo "$as_me:$LINENO: result: ${samba_cv_TRY_SYS_QUOTAS}" >&5
75560$as_echo "${samba_cv_TRY_SYS_QUOTAS}" >&6; }
75561    ;;
75562  esac
75563else
75564  { $as_echo "$as_me:$LINENO: result: ${samba_cv_TRY_SYS_QUOTAS}" >&5
75565$as_echo "${samba_cv_TRY_SYS_QUOTAS}" >&6; }
75566
75567fi
75568
75569
75570if test x"$samba_cv_TRY_SYS_QUOTAS" = x"auto"; then
75571{ $as_echo "$as_me:$LINENO: checking whether to try the lib/sysquotas.c interface on ${host_os}" >&5
75572$as_echo_n "checking whether to try the lib/sysquotas.c interface on ${host_os}... " >&6; }
75573  case "$host_os" in
75574	*linux*)
75575	    { $as_echo "$as_me:$LINENO: result: yes" >&5
75576$as_echo "yes" >&6; }
75577            samba_cv_TRY_SYS_QUOTAS=yes
75578            samba_cv_RUN_QUOTA_TESTS=yes
75579	    ;;
75580	*)
75581	    { $as_echo "$as_me:$LINENO: result: no" >&5
75582$as_echo "no" >&6; }
75583            samba_cv_TRY_SYS_QUOTAS=no
75584	    ;;
75585  esac
75586fi
75587
75588#############################################
75589# only check for quota stuff if --with-quotas
75590if test x"$samba_cv_RUN_QUOTA_TESTS" != x"no"; then
75591
75592case "$host_os" in
75593	# on linux we didn't need to test we have builtin support
75594	*linux*)
75595	    samba_cv_SYSQUOTA_FOUND=yes
75596
75597cat >>confdefs.h <<\_ACEOF
75598#define HAVE_QUOTACTL_LINUX 1
75599_ACEOF
75600
75601	    samba_cv_sysquotas_file="lib/sysquotas_linux.c"
75602	    { $as_echo "$as_me:$LINENO: checking whether to use the lib/sysquotas_linux.c builtin support" >&5
75603$as_echo_n "checking whether to use the lib/sysquotas_linux.c builtin support... " >&6; }
75604	    { $as_echo "$as_me:$LINENO: result: yes" >&5
75605$as_echo "yes" >&6; }
75606
75607
75608cat >>confdefs.h <<\_ACEOF
75609#define HAVE_LINUX_XFS_QUOTAS 1
75610_ACEOF
75611
75612	    samba_cv_found_xfs_header=yes
75613	    { $as_echo "$as_me:$LINENO: checking whether to use the lib/sysquotas_xfs.c builtin support" >&5
75614$as_echo_n "checking whether to use the lib/sysquotas_xfs.c builtin support... " >&6; }
75615	    { $as_echo "$as_me:$LINENO: result: yes" >&5
75616$as_echo "yes" >&6; }
75617	    ;;
75618	*solaris*)
75619	    # need to set this define when using static linking (BUG 1473)
75620	    CPPFLAGS="$CPPFLAGS -DSUNOS5"
75621	    ;;
75622	*)
75623	    ;;
75624esac
75625
75626# some broken header files need this
75627if test "${ac_cv_header_asm_types_h+set}" = set; then
75628  { $as_echo "$as_me:$LINENO: checking for asm/types.h" >&5
75629$as_echo_n "checking for asm/types.h... " >&6; }
75630if test "${ac_cv_header_asm_types_h+set}" = set; then
75631  $as_echo_n "(cached) " >&6
75632fi
75633{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_asm_types_h" >&5
75634$as_echo "$ac_cv_header_asm_types_h" >&6; }
75635else
75636  # Is the header compilable?
75637{ $as_echo "$as_me:$LINENO: checking asm/types.h usability" >&5
75638$as_echo_n "checking asm/types.h usability... " >&6; }
75639cat >conftest.$ac_ext <<_ACEOF
75640/* confdefs.h.  */
75641_ACEOF
75642cat confdefs.h >>conftest.$ac_ext
75643cat >>conftest.$ac_ext <<_ACEOF
75644/* end confdefs.h.  */
75645$ac_includes_default
75646#include <asm/types.h>
75647_ACEOF
75648rm -f conftest.$ac_objext
75649if { (ac_try="$ac_compile"
75650case "(($ac_try" in
75651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75652  *) ac_try_echo=$ac_try;;
75653esac
75654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75655$as_echo "$ac_try_echo") >&5
75656  (eval "$ac_compile") 2>conftest.er1
75657  ac_status=$?
75658  grep -v '^ *+' conftest.er1 >conftest.err
75659  rm -f conftest.er1
75660  cat conftest.err >&5
75661  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75662  (exit $ac_status); } && {
75663	 test -z "$ac_c_werror_flag" ||
75664	 test ! -s conftest.err
75665       } && test -s conftest.$ac_objext; then
75666  ac_header_compiler=yes
75667else
75668  $as_echo "$as_me: failed program was:" >&5
75669sed 's/^/| /' conftest.$ac_ext >&5
75670
75671	ac_header_compiler=no
75672fi
75673
75674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75675{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
75676$as_echo "$ac_header_compiler" >&6; }
75677
75678# Is the header present?
75679{ $as_echo "$as_me:$LINENO: checking asm/types.h presence" >&5
75680$as_echo_n "checking asm/types.h presence... " >&6; }
75681cat >conftest.$ac_ext <<_ACEOF
75682/* confdefs.h.  */
75683_ACEOF
75684cat confdefs.h >>conftest.$ac_ext
75685cat >>conftest.$ac_ext <<_ACEOF
75686/* end confdefs.h.  */
75687#include <asm/types.h>
75688_ACEOF
75689if { (ac_try="$ac_cpp conftest.$ac_ext"
75690case "(($ac_try" in
75691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75692  *) ac_try_echo=$ac_try;;
75693esac
75694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75695$as_echo "$ac_try_echo") >&5
75696  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
75697  ac_status=$?
75698  grep -v '^ *+' conftest.er1 >conftest.err
75699  rm -f conftest.er1
75700  cat conftest.err >&5
75701  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75702  (exit $ac_status); } >/dev/null && {
75703	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
75704	 test ! -s conftest.err
75705       }; then
75706  ac_header_preproc=yes
75707else
75708  $as_echo "$as_me: failed program was:" >&5
75709sed 's/^/| /' conftest.$ac_ext >&5
75710
75711  ac_header_preproc=no
75712fi
75713
75714rm -f conftest.err conftest.$ac_ext
75715{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
75716$as_echo "$ac_header_preproc" >&6; }
75717
75718# So?  What about this header?
75719case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
75720  yes:no: )
75721    { $as_echo "$as_me:$LINENO: WARNING: asm/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
75722$as_echo "$as_me: WARNING: asm/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
75723    { $as_echo "$as_me:$LINENO: WARNING: asm/types.h: proceeding with the compiler's result" >&5
75724$as_echo "$as_me: WARNING: asm/types.h: proceeding with the compiler's result" >&2;}
75725    ac_header_preproc=yes
75726    ;;
75727  no:yes:* )
75728    { $as_echo "$as_me:$LINENO: WARNING: asm/types.h: present but cannot be compiled" >&5
75729$as_echo "$as_me: WARNING: asm/types.h: present but cannot be compiled" >&2;}
75730    { $as_echo "$as_me:$LINENO: WARNING: asm/types.h:     check for missing prerequisite headers?" >&5
75731$as_echo "$as_me: WARNING: asm/types.h:     check for missing prerequisite headers?" >&2;}
75732    { $as_echo "$as_me:$LINENO: WARNING: asm/types.h: see the Autoconf documentation" >&5
75733$as_echo "$as_me: WARNING: asm/types.h: see the Autoconf documentation" >&2;}
75734    { $as_echo "$as_me:$LINENO: WARNING: asm/types.h:     section \"Present But Cannot Be Compiled\"" >&5
75735$as_echo "$as_me: WARNING: asm/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
75736    { $as_echo "$as_me:$LINENO: WARNING: asm/types.h: proceeding with the preprocessor's result" >&5
75737$as_echo "$as_me: WARNING: asm/types.h: proceeding with the preprocessor's result" >&2;}
75738    { $as_echo "$as_me:$LINENO: WARNING: asm/types.h: in the future, the compiler will take precedence" >&5
75739$as_echo "$as_me: WARNING: asm/types.h: in the future, the compiler will take precedence" >&2;}
75740    ( cat <<\_ASBOX
75741## ---------------------------------------- ##
75742## Report this to samba-technical@samba.org ##
75743## ---------------------------------------- ##
75744_ASBOX
75745     ) | sed "s/^/$as_me: WARNING:     /" >&2
75746    ;;
75747esac
75748{ $as_echo "$as_me:$LINENO: checking for asm/types.h" >&5
75749$as_echo_n "checking for asm/types.h... " >&6; }
75750if test "${ac_cv_header_asm_types_h+set}" = set; then
75751  $as_echo_n "(cached) " >&6
75752else
75753  ac_cv_header_asm_types_h=$ac_header_preproc
75754fi
75755{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_asm_types_h" >&5
75756$as_echo "$ac_cv_header_asm_types_h" >&6; }
75757
75758fi
75759if test "x$ac_cv_header_asm_types_h" = x""yes; then
75760
75761
75762cat >>confdefs.h <<\_ACEOF
75763#define HAVE_ASM_TYPES_H 1
75764_ACEOF
75765
75766	    cat >> confdefs.h <<\EOF
75767#include <asm/types.h>
75768EOF
75769
75770
75771fi
75772
75773
75774
75775# For quotas on Veritas VxFS filesystems
75776
75777for ac_header in sys/fs/vx_quota.h
75778do
75779as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
75780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
75781  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
75782$as_echo_n "checking for $ac_header... " >&6; }
75783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
75784  $as_echo_n "(cached) " >&6
75785fi
75786ac_res=`eval 'as_val=${'$as_ac_Header'}
75787		 $as_echo "$as_val"'`
75788	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
75789$as_echo "$ac_res" >&6; }
75790else
75791  # Is the header compilable?
75792{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
75793$as_echo_n "checking $ac_header usability... " >&6; }
75794cat >conftest.$ac_ext <<_ACEOF
75795/* confdefs.h.  */
75796_ACEOF
75797cat confdefs.h >>conftest.$ac_ext
75798cat >>conftest.$ac_ext <<_ACEOF
75799/* end confdefs.h.  */
75800$ac_includes_default
75801#include <$ac_header>
75802_ACEOF
75803rm -f conftest.$ac_objext
75804if { (ac_try="$ac_compile"
75805case "(($ac_try" in
75806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75807  *) ac_try_echo=$ac_try;;
75808esac
75809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75810$as_echo "$ac_try_echo") >&5
75811  (eval "$ac_compile") 2>conftest.er1
75812  ac_status=$?
75813  grep -v '^ *+' conftest.er1 >conftest.err
75814  rm -f conftest.er1
75815  cat conftest.err >&5
75816  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75817  (exit $ac_status); } && {
75818	 test -z "$ac_c_werror_flag" ||
75819	 test ! -s conftest.err
75820       } && test -s conftest.$ac_objext; then
75821  ac_header_compiler=yes
75822else
75823  $as_echo "$as_me: failed program was:" >&5
75824sed 's/^/| /' conftest.$ac_ext >&5
75825
75826	ac_header_compiler=no
75827fi
75828
75829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75830{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
75831$as_echo "$ac_header_compiler" >&6; }
75832
75833# Is the header present?
75834{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
75835$as_echo_n "checking $ac_header presence... " >&6; }
75836cat >conftest.$ac_ext <<_ACEOF
75837/* confdefs.h.  */
75838_ACEOF
75839cat confdefs.h >>conftest.$ac_ext
75840cat >>conftest.$ac_ext <<_ACEOF
75841/* end confdefs.h.  */
75842#include <$ac_header>
75843_ACEOF
75844if { (ac_try="$ac_cpp conftest.$ac_ext"
75845case "(($ac_try" in
75846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75847  *) ac_try_echo=$ac_try;;
75848esac
75849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75850$as_echo "$ac_try_echo") >&5
75851  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
75852  ac_status=$?
75853  grep -v '^ *+' conftest.er1 >conftest.err
75854  rm -f conftest.er1
75855  cat conftest.err >&5
75856  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75857  (exit $ac_status); } >/dev/null && {
75858	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
75859	 test ! -s conftest.err
75860       }; then
75861  ac_header_preproc=yes
75862else
75863  $as_echo "$as_me: failed program was:" >&5
75864sed 's/^/| /' conftest.$ac_ext >&5
75865
75866  ac_header_preproc=no
75867fi
75868
75869rm -f conftest.err conftest.$ac_ext
75870{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
75871$as_echo "$ac_header_preproc" >&6; }
75872
75873# So?  What about this header?
75874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
75875  yes:no: )
75876    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
75877$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
75878    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
75879$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
75880    ac_header_preproc=yes
75881    ;;
75882  no:yes:* )
75883    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
75884$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
75885    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
75886$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
75887    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
75888$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
75889    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
75890$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
75891    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
75892$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
75893    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
75894$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
75895    ( cat <<\_ASBOX
75896## ---------------------------------------- ##
75897## Report this to samba-technical@samba.org ##
75898## ---------------------------------------- ##
75899_ASBOX
75900     ) | sed "s/^/$as_me: WARNING:     /" >&2
75901    ;;
75902esac
75903{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
75904$as_echo_n "checking for $ac_header... " >&6; }
75905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
75906  $as_echo_n "(cached) " >&6
75907else
75908  eval "$as_ac_Header=\$ac_header_preproc"
75909fi
75910ac_res=`eval 'as_val=${'$as_ac_Header'}
75911		 $as_echo "$as_val"'`
75912	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
75913$as_echo "$ac_res" >&6; }
75914
75915fi
75916as_val=`eval 'as_val=${'$as_ac_Header'}
75917		 $as_echo "$as_val"'`
75918   if test "x$as_val" = x""yes; then
75919  cat >>confdefs.h <<_ACEOF
75920#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
75921_ACEOF
75922
75923fi
75924
75925done
75926
75927
75928# For quotas on Linux XFS filesystems
75929
75930for ac_header in linux/dqblk_xfs.h
75931do
75932as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
75933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
75934  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
75935$as_echo_n "checking for $ac_header... " >&6; }
75936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
75937  $as_echo_n "(cached) " >&6
75938fi
75939ac_res=`eval 'as_val=${'$as_ac_Header'}
75940		 $as_echo "$as_val"'`
75941	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
75942$as_echo "$ac_res" >&6; }
75943else
75944  # Is the header compilable?
75945{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
75946$as_echo_n "checking $ac_header usability... " >&6; }
75947cat >conftest.$ac_ext <<_ACEOF
75948/* confdefs.h.  */
75949_ACEOF
75950cat confdefs.h >>conftest.$ac_ext
75951cat >>conftest.$ac_ext <<_ACEOF
75952/* end confdefs.h.  */
75953$ac_includes_default
75954#include <$ac_header>
75955_ACEOF
75956rm -f conftest.$ac_objext
75957if { (ac_try="$ac_compile"
75958case "(($ac_try" in
75959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
75960  *) ac_try_echo=$ac_try;;
75961esac
75962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
75963$as_echo "$ac_try_echo") >&5
75964  (eval "$ac_compile") 2>conftest.er1
75965  ac_status=$?
75966  grep -v '^ *+' conftest.er1 >conftest.err
75967  rm -f conftest.er1
75968  cat conftest.err >&5
75969  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75970  (exit $ac_status); } && {
75971	 test -z "$ac_c_werror_flag" ||
75972	 test ! -s conftest.err
75973       } && test -s conftest.$ac_objext; then
75974  ac_header_compiler=yes
75975else
75976  $as_echo "$as_me: failed program was:" >&5
75977sed 's/^/| /' conftest.$ac_ext >&5
75978
75979	ac_header_compiler=no
75980fi
75981
75982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75983{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
75984$as_echo "$ac_header_compiler" >&6; }
75985
75986# Is the header present?
75987{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
75988$as_echo_n "checking $ac_header presence... " >&6; }
75989cat >conftest.$ac_ext <<_ACEOF
75990/* confdefs.h.  */
75991_ACEOF
75992cat confdefs.h >>conftest.$ac_ext
75993cat >>conftest.$ac_ext <<_ACEOF
75994/* end confdefs.h.  */
75995#include <$ac_header>
75996_ACEOF
75997if { (ac_try="$ac_cpp conftest.$ac_ext"
75998case "(($ac_try" in
75999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76000  *) ac_try_echo=$ac_try;;
76001esac
76002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76003$as_echo "$ac_try_echo") >&5
76004  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
76005  ac_status=$?
76006  grep -v '^ *+' conftest.er1 >conftest.err
76007  rm -f conftest.er1
76008  cat conftest.err >&5
76009  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76010  (exit $ac_status); } >/dev/null && {
76011	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
76012	 test ! -s conftest.err
76013       }; then
76014  ac_header_preproc=yes
76015else
76016  $as_echo "$as_me: failed program was:" >&5
76017sed 's/^/| /' conftest.$ac_ext >&5
76018
76019  ac_header_preproc=no
76020fi
76021
76022rm -f conftest.err conftest.$ac_ext
76023{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
76024$as_echo "$ac_header_preproc" >&6; }
76025
76026# So?  What about this header?
76027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
76028  yes:no: )
76029    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
76030$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
76031    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
76032$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
76033    ac_header_preproc=yes
76034    ;;
76035  no:yes:* )
76036    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
76037$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
76038    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
76039$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
76040    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
76041$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
76042    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
76043$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
76044    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
76045$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
76046    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
76047$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
76048    ( cat <<\_ASBOX
76049## ---------------------------------------- ##
76050## Report this to samba-technical@samba.org ##
76051## ---------------------------------------- ##
76052_ASBOX
76053     ) | sed "s/^/$as_me: WARNING:     /" >&2
76054    ;;
76055esac
76056{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
76057$as_echo_n "checking for $ac_header... " >&6; }
76058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
76059  $as_echo_n "(cached) " >&6
76060else
76061  eval "$as_ac_Header=\$ac_header_preproc"
76062fi
76063ac_res=`eval 'as_val=${'$as_ac_Header'}
76064		 $as_echo "$as_val"'`
76065	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
76066$as_echo "$ac_res" >&6; }
76067
76068fi
76069as_val=`eval 'as_val=${'$as_ac_Header'}
76070		 $as_echo "$as_val"'`
76071   if test "x$as_val" = x""yes; then
76072  cat >>confdefs.h <<_ACEOF
76073#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
76074_ACEOF
76075
76076fi
76077
76078done
76079
76080
76081# For sys/quota.h and linux/quota.h
76082
76083for ac_header in sys/quota.h
76084do
76085as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
76086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
76087  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
76088$as_echo_n "checking for $ac_header... " >&6; }
76089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
76090  $as_echo_n "(cached) " >&6
76091fi
76092ac_res=`eval 'as_val=${'$as_ac_Header'}
76093		 $as_echo "$as_val"'`
76094	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
76095$as_echo "$ac_res" >&6; }
76096else
76097  # Is the header compilable?
76098{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
76099$as_echo_n "checking $ac_header usability... " >&6; }
76100cat >conftest.$ac_ext <<_ACEOF
76101/* confdefs.h.  */
76102_ACEOF
76103cat confdefs.h >>conftest.$ac_ext
76104cat >>conftest.$ac_ext <<_ACEOF
76105/* end confdefs.h.  */
76106$ac_includes_default
76107#include <$ac_header>
76108_ACEOF
76109rm -f conftest.$ac_objext
76110if { (ac_try="$ac_compile"
76111case "(($ac_try" in
76112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76113  *) ac_try_echo=$ac_try;;
76114esac
76115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76116$as_echo "$ac_try_echo") >&5
76117  (eval "$ac_compile") 2>conftest.er1
76118  ac_status=$?
76119  grep -v '^ *+' conftest.er1 >conftest.err
76120  rm -f conftest.er1
76121  cat conftest.err >&5
76122  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76123  (exit $ac_status); } && {
76124	 test -z "$ac_c_werror_flag" ||
76125	 test ! -s conftest.err
76126       } && test -s conftest.$ac_objext; then
76127  ac_header_compiler=yes
76128else
76129  $as_echo "$as_me: failed program was:" >&5
76130sed 's/^/| /' conftest.$ac_ext >&5
76131
76132	ac_header_compiler=no
76133fi
76134
76135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
76136{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
76137$as_echo "$ac_header_compiler" >&6; }
76138
76139# Is the header present?
76140{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
76141$as_echo_n "checking $ac_header presence... " >&6; }
76142cat >conftest.$ac_ext <<_ACEOF
76143/* confdefs.h.  */
76144_ACEOF
76145cat confdefs.h >>conftest.$ac_ext
76146cat >>conftest.$ac_ext <<_ACEOF
76147/* end confdefs.h.  */
76148#include <$ac_header>
76149_ACEOF
76150if { (ac_try="$ac_cpp conftest.$ac_ext"
76151case "(($ac_try" in
76152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76153  *) ac_try_echo=$ac_try;;
76154esac
76155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76156$as_echo "$ac_try_echo") >&5
76157  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
76158  ac_status=$?
76159  grep -v '^ *+' conftest.er1 >conftest.err
76160  rm -f conftest.er1
76161  cat conftest.err >&5
76162  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76163  (exit $ac_status); } >/dev/null && {
76164	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
76165	 test ! -s conftest.err
76166       }; then
76167  ac_header_preproc=yes
76168else
76169  $as_echo "$as_me: failed program was:" >&5
76170sed 's/^/| /' conftest.$ac_ext >&5
76171
76172  ac_header_preproc=no
76173fi
76174
76175rm -f conftest.err conftest.$ac_ext
76176{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
76177$as_echo "$ac_header_preproc" >&6; }
76178
76179# So?  What about this header?
76180case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
76181  yes:no: )
76182    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
76183$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
76184    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
76185$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
76186    ac_header_preproc=yes
76187    ;;
76188  no:yes:* )
76189    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
76190$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
76191    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
76192$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
76193    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
76194$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
76195    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
76196$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
76197    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
76198$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
76199    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
76200$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
76201    ( cat <<\_ASBOX
76202## ---------------------------------------- ##
76203## Report this to samba-technical@samba.org ##
76204## ---------------------------------------- ##
76205_ASBOX
76206     ) | sed "s/^/$as_me: WARNING:     /" >&2
76207    ;;
76208esac
76209{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
76210$as_echo_n "checking for $ac_header... " >&6; }
76211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
76212  $as_echo_n "(cached) " >&6
76213else
76214  eval "$as_ac_Header=\$ac_header_preproc"
76215fi
76216ac_res=`eval 'as_val=${'$as_ac_Header'}
76217		 $as_echo "$as_val"'`
76218	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
76219$as_echo "$ac_res" >&6; }
76220
76221fi
76222as_val=`eval 'as_val=${'$as_ac_Header'}
76223		 $as_echo "$as_val"'`
76224   if test "x$as_val" = x""yes; then
76225  cat >>confdefs.h <<_ACEOF
76226#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
76227_ACEOF
76228
76229fi
76230
76231done
76232
76233
76234if test x"$samba_cv_found_xfs_header" != x"yes"; then
76235# if we have xfs quota support <sys/quota.h> (IRIX) we should use it
76236{ $as_echo "$as_me:$LINENO: checking for XFS QUOTA in <sys/quota.h>" >&5
76237$as_echo_n "checking for XFS QUOTA in <sys/quota.h>... " >&6; }
76238if test "${samba_cv_HAVE_SYS_QUOTA_XFS+set}" = set; then
76239  $as_echo_n "(cached) " >&6
76240else
76241
76242cat >conftest.$ac_ext <<_ACEOF
76243/* confdefs.h.  */
76244_ACEOF
76245cat confdefs.h >>conftest.$ac_ext
76246cat >>conftest.$ac_ext <<_ACEOF
76247/* end confdefs.h.  */
76248
76249#include "confdefs.h"
76250#ifdef HAVE_SYS_TYPES_H
76251#include <sys/types.h>
76252#endif
76253#ifdef HAVE_ASM_TYPES_H
76254#include <asm/types.h>
76255#endif
76256#include <sys/quota.h>
76257
76258int
76259main ()
76260{
76261int i = Q_XGETQUOTA;
76262  ;
76263  return 0;
76264}
76265_ACEOF
76266rm -f conftest.$ac_objext
76267if { (ac_try="$ac_compile"
76268case "(($ac_try" in
76269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76270  *) ac_try_echo=$ac_try;;
76271esac
76272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76273$as_echo "$ac_try_echo") >&5
76274  (eval "$ac_compile") 2>conftest.er1
76275  ac_status=$?
76276  grep -v '^ *+' conftest.er1 >conftest.err
76277  rm -f conftest.er1
76278  cat conftest.err >&5
76279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76280  (exit $ac_status); } && {
76281	 test -z "$ac_c_werror_flag" ||
76282	 test ! -s conftest.err
76283       } && test -s conftest.$ac_objext; then
76284  samba_cv_HAVE_SYS_QUOTA_XFS=yes
76285else
76286  $as_echo "$as_me: failed program was:" >&5
76287sed 's/^/| /' conftest.$ac_ext >&5
76288
76289	samba_cv_HAVE_SYS_QUOTA_XFS=no
76290fi
76291
76292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
76293fi
76294{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_SYS_QUOTA_XFS" >&5
76295$as_echo "$samba_cv_HAVE_SYS_QUOTA_XFS" >&6; }
76296if test "$samba_cv_HAVE_SYS_QUOTA_XFS"x = "yes"x; then
76297	samba_cv_found_xfs_header=yes
76298fi
76299fi
76300
76301# if we have struct dqblk .dqb_fsoftlimit instead of .dqb_isoftlimit on IRIX
76302{ $as_echo "$as_me:$LINENO: checking if struct dqblk has .dqb_fsoftlimit" >&5
76303$as_echo_n "checking if struct dqblk has .dqb_fsoftlimit... " >&6; }
76304if test "${samba_cv_HAVE_DQB_FSOFTLIMIT+set}" = set; then
76305  $as_echo_n "(cached) " >&6
76306else
76307
76308cat >conftest.$ac_ext <<_ACEOF
76309/* confdefs.h.  */
76310_ACEOF
76311cat confdefs.h >>conftest.$ac_ext
76312cat >>conftest.$ac_ext <<_ACEOF
76313/* end confdefs.h.  */
76314
76315#include "confdefs.h"
76316#ifdef HAVE_SYS_QUOTA_H
76317#include <sys/quota.h>
76318#endif
76319
76320int
76321main ()
76322{
76323
76324struct dqblk D;
76325D.dqb_fsoftlimit = 0;
76326  ;
76327  return 0;
76328}
76329_ACEOF
76330rm -f conftest.$ac_objext
76331if { (ac_try="$ac_compile"
76332case "(($ac_try" in
76333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76334  *) ac_try_echo=$ac_try;;
76335esac
76336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76337$as_echo "$ac_try_echo") >&5
76338  (eval "$ac_compile") 2>conftest.er1
76339  ac_status=$?
76340  grep -v '^ *+' conftest.er1 >conftest.err
76341  rm -f conftest.er1
76342  cat conftest.err >&5
76343  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76344  (exit $ac_status); } && {
76345	 test -z "$ac_c_werror_flag" ||
76346	 test ! -s conftest.err
76347       } && test -s conftest.$ac_objext; then
76348  samba_cv_HAVE_DQB_FSOFTLIMIT=yes
76349else
76350  $as_echo "$as_me: failed program was:" >&5
76351sed 's/^/| /' conftest.$ac_ext >&5
76352
76353	samba_cv_HAVE_DQB_FSOFTLIMIT=no
76354fi
76355
76356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
76357fi
76358{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_DQB_FSOFTLIMIT" >&5
76359$as_echo "$samba_cv_HAVE_DQB_FSOFTLIMIT" >&6; }
76360if test "$samba_cv_HAVE_DQB_FSOFTLIMIT"x = "yes"x; then
76361
76362cat >>confdefs.h <<\_ACEOF
76363#define HAVE_DQB_FSOFTLIMIT 1
76364_ACEOF
76365
76366fi
76367
76368##################
76369# look for a working quota system
76370
76371if test x"$samba_cv_SYSQUOTA_FOUND" != x"yes"; then
76372{ $as_echo "$as_me:$LINENO: checking for long quotactl(int cmd, char *special, qid_t id, caddr_t addr)" >&5
76373$as_echo_n "checking for long quotactl(int cmd, char *special, qid_t id, caddr_t addr)... " >&6; }
76374if test "${samba_cv_HAVE_QUOTACTL_4A+set}" = set; then
76375  $as_echo_n "(cached) " >&6
76376else
76377
76378
76379	old_CFLAGS="$CFLAGS";
76380	CFLAGS="$CFLAGS $Werror_FLAGS";
76381	export CFLAGS;
76382	old_CPPFLAGS="$CPPFLAGS";
76383	CPPFLAGS="$CPPFLAGS";
76384	export CPPFLAGS;
76385	old_LDFLAGS="$LDFLAGS";
76386	LDFLAGS="$LDFLAGS";
76387	export LDFLAGS;
76388	if test "$cross_compiling" = yes; then
76389  samba_cv_HAVE_QUOTACTL_4A=cross
76390else
76391  cat >conftest.$ac_ext <<_ACEOF
76392/* confdefs.h.  */
76393_ACEOF
76394cat confdefs.h >>conftest.$ac_ext
76395cat >>conftest.$ac_ext <<_ACEOF
76396/* end confdefs.h.  */
76397
76398#define HAVE_QUOTACTL_4A 1
76399#define AUTOCONF_TEST 1
76400#include "confdefs.h"
76401#include "${srcdir-.}/../tests/sysquotas.c"
76402_ACEOF
76403rm -f conftest$ac_exeext
76404if { (ac_try="$ac_link"
76405case "(($ac_try" in
76406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76407  *) ac_try_echo=$ac_try;;
76408esac
76409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76410$as_echo "$ac_try_echo") >&5
76411  (eval "$ac_link") 2>&5
76412  ac_status=$?
76413  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76414  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
76415  { (case "(($ac_try" in
76416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76417  *) ac_try_echo=$ac_try;;
76418esac
76419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76420$as_echo "$ac_try_echo") >&5
76421  (eval "$ac_try") 2>&5
76422  ac_status=$?
76423  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76424  (exit $ac_status); }; }; then
76425  samba_cv_HAVE_QUOTACTL_4A=yes
76426else
76427  $as_echo "$as_me: program exited with status $ac_status" >&5
76428$as_echo "$as_me: failed program was:" >&5
76429sed 's/^/| /' conftest.$ac_ext >&5
76430
76431( exit $ac_status )
76432samba_cv_HAVE_QUOTACTL_4A=no
76433fi
76434rm -rf conftest.dSYM
76435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
76436fi
76437
76438
76439	CFLAGS="$old_CFLAGS";
76440	old_CFLAGS="";
76441	export CFLAGS;
76442	CPPFLAGS="$old_CPPFLAGS";
76443	old_CPPFLAGS="";
76444	export CPPFLAGS;
76445	LDFLAGS="$old_LDFLAGS";
76446	old_LDFLAGS="";
76447	export LDFLAGS;
76448
76449fi
76450{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_QUOTACTL_4A" >&5
76451$as_echo "$samba_cv_HAVE_QUOTACTL_4A" >&6; }
76452if test x"$samba_cv_HAVE_QUOTACTL_4A" = x"yes"; then
76453    samba_cv_SYSQUOTA_FOUND=yes;
76454
76455cat >>confdefs.h <<\_ACEOF
76456#define HAVE_QUOTACTL_4A 1
76457_ACEOF
76458
76459    samba_cv_sysquotas_file="lib/sysquotas_4A.c"
76460fi
76461fi
76462
76463if test x"$samba_cv_SYSQUOTA_FOUND" != x"yes"; then
76464{ $as_echo "$as_me:$LINENO: checking for int quotactl(const char *path, int cmd, int id, char *addr)" >&5
76465$as_echo_n "checking for int quotactl(const char *path, int cmd, int id, char *addr)... " >&6; }
76466if test "${samba_cv_HAVE_QUOTACTL_4B+set}" = set; then
76467  $as_echo_n "(cached) " >&6
76468else
76469
76470
76471	old_CFLAGS="$CFLAGS";
76472	CFLAGS="$CFLAGS $Werror_FLAGS";
76473	export CFLAGS;
76474	old_CPPFLAGS="$CPPFLAGS";
76475	CPPFLAGS="$CPPFLAGS";
76476	export CPPFLAGS;
76477	old_LDFLAGS="$LDFLAGS";
76478	LDFLAGS="$LDFLAGS";
76479	export LDFLAGS;
76480	if test "$cross_compiling" = yes; then
76481  samba_cv_HAVE_QUOTACTL_4B=cross
76482else
76483  cat >conftest.$ac_ext <<_ACEOF
76484/* confdefs.h.  */
76485_ACEOF
76486cat confdefs.h >>conftest.$ac_ext
76487cat >>conftest.$ac_ext <<_ACEOF
76488/* end confdefs.h.  */
76489
76490#define HAVE_QUOTACTL_4B 1
76491#define AUTOCONF_TEST 1
76492#include "confdefs.h"
76493#include "${srcdir-.}/../tests/sysquotas.c"
76494_ACEOF
76495rm -f conftest$ac_exeext
76496if { (ac_try="$ac_link"
76497case "(($ac_try" in
76498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76499  *) ac_try_echo=$ac_try;;
76500esac
76501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76502$as_echo "$ac_try_echo") >&5
76503  (eval "$ac_link") 2>&5
76504  ac_status=$?
76505  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76506  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
76507  { (case "(($ac_try" in
76508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76509  *) ac_try_echo=$ac_try;;
76510esac
76511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76512$as_echo "$ac_try_echo") >&5
76513  (eval "$ac_try") 2>&5
76514  ac_status=$?
76515  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76516  (exit $ac_status); }; }; then
76517  samba_cv_HAVE_QUOTACTL_4B=yes
76518else
76519  $as_echo "$as_me: program exited with status $ac_status" >&5
76520$as_echo "$as_me: failed program was:" >&5
76521sed 's/^/| /' conftest.$ac_ext >&5
76522
76523( exit $ac_status )
76524samba_cv_HAVE_QUOTACTL_4B=no
76525fi
76526rm -rf conftest.dSYM
76527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
76528fi
76529
76530
76531	CFLAGS="$old_CFLAGS";
76532	old_CFLAGS="";
76533	export CFLAGS;
76534	CPPFLAGS="$old_CPPFLAGS";
76535	old_CPPFLAGS="";
76536	export CPPFLAGS;
76537	LDFLAGS="$old_LDFLAGS";
76538	old_LDFLAGS="";
76539	export LDFLAGS;
76540
76541fi
76542{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_QUOTACTL_4B" >&5
76543$as_echo "$samba_cv_HAVE_QUOTACTL_4B" >&6; }
76544if test x"$samba_cv_HAVE_QUOTACTL_4B" = x"yes"; then
76545    echo "int quotactl(const char *path, int cmd, int id, char *addr) is not reworked for the new sys_quota api"
76546    samba_cv_SYSQUOTA_FOUND=yes;
76547
76548cat >>confdefs.h <<\_ACEOF
76549#define HAVE_QUOTACTL_4B 1
76550_ACEOF
76551
76552    samba_cv_sysquotas_file="lib/sysquotas_4B.c"
76553fi
76554fi
76555
76556if test x"$samba_cv_SYSQUOTA_FOUND" != x"yes"; then
76557{ $as_echo "$as_me:$LINENO: checking for CRAY int quotactl (char *spec, int request, char *arg)" >&5
76558$as_echo_n "checking for CRAY int quotactl (char *spec, int request, char *arg)... " >&6; }
76559if test "${samba_cv_HAVE_QUOTACTL_3+set}" = set; then
76560  $as_echo_n "(cached) " >&6
76561else
76562
76563
76564	old_CFLAGS="$CFLAGS";
76565	CFLAGS="$CFLAGS $Werror_FLAGS";
76566	export CFLAGS;
76567	old_CPPFLAGS="$CPPFLAGS";
76568	CPPFLAGS="$CPPFLAGS";
76569	export CPPFLAGS;
76570	old_LDFLAGS="$LDFLAGS";
76571	LDFLAGS="$LDFLAGS";
76572	export LDFLAGS;
76573	if test "$cross_compiling" = yes; then
76574  samba_cv_HAVE_QUOTACTL_3=cross
76575else
76576  cat >conftest.$ac_ext <<_ACEOF
76577/* confdefs.h.  */
76578_ACEOF
76579cat confdefs.h >>conftest.$ac_ext
76580cat >>conftest.$ac_ext <<_ACEOF
76581/* end confdefs.h.  */
76582
76583#define HAVE_QUOTACTL_3 1
76584#define AUTOCONF_TEST 1
76585#include "confdefs.h"
76586#include "${srcdir-.}/../tests/sysquotas.c"
76587_ACEOF
76588rm -f conftest$ac_exeext
76589if { (ac_try="$ac_link"
76590case "(($ac_try" in
76591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76592  *) ac_try_echo=$ac_try;;
76593esac
76594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76595$as_echo "$ac_try_echo") >&5
76596  (eval "$ac_link") 2>&5
76597  ac_status=$?
76598  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76599  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
76600  { (case "(($ac_try" in
76601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76602  *) ac_try_echo=$ac_try;;
76603esac
76604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76605$as_echo "$ac_try_echo") >&5
76606  (eval "$ac_try") 2>&5
76607  ac_status=$?
76608  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76609  (exit $ac_status); }; }; then
76610  samba_cv_HAVE_QUOTACTL_3=yes
76611else
76612  $as_echo "$as_me: program exited with status $ac_status" >&5
76613$as_echo "$as_me: failed program was:" >&5
76614sed 's/^/| /' conftest.$ac_ext >&5
76615
76616( exit $ac_status )
76617samba_cv_HAVE_QUOTACTL_3=no
76618fi
76619rm -rf conftest.dSYM
76620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
76621fi
76622
76623
76624	CFLAGS="$old_CFLAGS";
76625	old_CFLAGS="";
76626	export CFLAGS;
76627	CPPFLAGS="$old_CPPFLAGS";
76628	old_CPPFLAGS="";
76629	export CPPFLAGS;
76630	LDFLAGS="$old_LDFLAGS";
76631	old_LDFLAGS="";
76632	export LDFLAGS;
76633
76634fi
76635{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_QUOTACTL_3" >&5
76636$as_echo "$samba_cv_HAVE_QUOTACTL_3" >&6; }
76637if test x"$samba_cv_HAVE_QUOTACTL_3" = x"yes"; then
76638    echo "CRAY int quotactl (char *spec, int request, char *arg) is NOT reworked for the sys_quota api"
76639    samba_cv_SYSQUOTA_FOUND=yes;
76640
76641cat >>confdefs.h <<\_ACEOF
76642#define HAVE_QUOTACTL_3 1
76643_ACEOF
76644
76645    samba_cv_sysquotas_file="lib/sysquotas_3.c"
76646fi
76647fi
76648
76649#################################################
76650# check for mntent.h and struct mntent
76651
76652for ac_header in mntent.h
76653do
76654as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
76655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
76656  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
76657$as_echo_n "checking for $ac_header... " >&6; }
76658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
76659  $as_echo_n "(cached) " >&6
76660fi
76661ac_res=`eval 'as_val=${'$as_ac_Header'}
76662		 $as_echo "$as_val"'`
76663	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
76664$as_echo "$ac_res" >&6; }
76665else
76666  # Is the header compilable?
76667{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
76668$as_echo_n "checking $ac_header usability... " >&6; }
76669cat >conftest.$ac_ext <<_ACEOF
76670/* confdefs.h.  */
76671_ACEOF
76672cat confdefs.h >>conftest.$ac_ext
76673cat >>conftest.$ac_ext <<_ACEOF
76674/* end confdefs.h.  */
76675$ac_includes_default
76676#include <$ac_header>
76677_ACEOF
76678rm -f conftest.$ac_objext
76679if { (ac_try="$ac_compile"
76680case "(($ac_try" in
76681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76682  *) ac_try_echo=$ac_try;;
76683esac
76684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76685$as_echo "$ac_try_echo") >&5
76686  (eval "$ac_compile") 2>conftest.er1
76687  ac_status=$?
76688  grep -v '^ *+' conftest.er1 >conftest.err
76689  rm -f conftest.er1
76690  cat conftest.err >&5
76691  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76692  (exit $ac_status); } && {
76693	 test -z "$ac_c_werror_flag" ||
76694	 test ! -s conftest.err
76695       } && test -s conftest.$ac_objext; then
76696  ac_header_compiler=yes
76697else
76698  $as_echo "$as_me: failed program was:" >&5
76699sed 's/^/| /' conftest.$ac_ext >&5
76700
76701	ac_header_compiler=no
76702fi
76703
76704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
76705{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
76706$as_echo "$ac_header_compiler" >&6; }
76707
76708# Is the header present?
76709{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
76710$as_echo_n "checking $ac_header presence... " >&6; }
76711cat >conftest.$ac_ext <<_ACEOF
76712/* confdefs.h.  */
76713_ACEOF
76714cat confdefs.h >>conftest.$ac_ext
76715cat >>conftest.$ac_ext <<_ACEOF
76716/* end confdefs.h.  */
76717#include <$ac_header>
76718_ACEOF
76719if { (ac_try="$ac_cpp conftest.$ac_ext"
76720case "(($ac_try" in
76721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76722  *) ac_try_echo=$ac_try;;
76723esac
76724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76725$as_echo "$ac_try_echo") >&5
76726  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
76727  ac_status=$?
76728  grep -v '^ *+' conftest.er1 >conftest.err
76729  rm -f conftest.er1
76730  cat conftest.err >&5
76731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76732  (exit $ac_status); } >/dev/null && {
76733	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
76734	 test ! -s conftest.err
76735       }; then
76736  ac_header_preproc=yes
76737else
76738  $as_echo "$as_me: failed program was:" >&5
76739sed 's/^/| /' conftest.$ac_ext >&5
76740
76741  ac_header_preproc=no
76742fi
76743
76744rm -f conftest.err conftest.$ac_ext
76745{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
76746$as_echo "$ac_header_preproc" >&6; }
76747
76748# So?  What about this header?
76749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
76750  yes:no: )
76751    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
76752$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
76753    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
76754$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
76755    ac_header_preproc=yes
76756    ;;
76757  no:yes:* )
76758    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
76759$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
76760    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
76761$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
76762    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
76763$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
76764    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
76765$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
76766    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
76767$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
76768    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
76769$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
76770    ( cat <<\_ASBOX
76771## ---------------------------------------- ##
76772## Report this to samba-technical@samba.org ##
76773## ---------------------------------------- ##
76774_ASBOX
76775     ) | sed "s/^/$as_me: WARNING:     /" >&2
76776    ;;
76777esac
76778{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
76779$as_echo_n "checking for $ac_header... " >&6; }
76780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
76781  $as_echo_n "(cached) " >&6
76782else
76783  eval "$as_ac_Header=\$ac_header_preproc"
76784fi
76785ac_res=`eval 'as_val=${'$as_ac_Header'}
76786		 $as_echo "$as_val"'`
76787	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
76788$as_echo "$ac_res" >&6; }
76789
76790fi
76791as_val=`eval 'as_val=${'$as_ac_Header'}
76792		 $as_echo "$as_val"'`
76793   if test "x$as_val" = x""yes; then
76794  cat >>confdefs.h <<_ACEOF
76795#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
76796_ACEOF
76797
76798fi
76799
76800done
76801
76802#################################################
76803# check for setmntent,getmntent,endmntent
76804
76805
76806
76807for ac_func in setmntent getmntent endmntent
76808do
76809as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
76810{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
76811$as_echo_n "checking for $ac_func... " >&6; }
76812if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
76813  $as_echo_n "(cached) " >&6
76814else
76815  cat >conftest.$ac_ext <<_ACEOF
76816/* confdefs.h.  */
76817_ACEOF
76818cat confdefs.h >>conftest.$ac_ext
76819cat >>conftest.$ac_ext <<_ACEOF
76820/* end confdefs.h.  */
76821/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
76822   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
76823#define $ac_func innocuous_$ac_func
76824
76825/* System header to define __stub macros and hopefully few prototypes,
76826    which can conflict with char $ac_func (); below.
76827    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
76828    <limits.h> exists even on freestanding compilers.  */
76829
76830#ifdef __STDC__
76831# include <limits.h>
76832#else
76833# include <assert.h>
76834#endif
76835
76836#undef $ac_func
76837
76838/* Override any GCC internal prototype to avoid an error.
76839   Use char because int might match the return type of a GCC
76840   builtin and then its argument prototype would still apply.  */
76841#ifdef __cplusplus
76842extern "C"
76843#endif
76844char $ac_func ();
76845/* The GNU C library defines this for functions which it implements
76846    to always fail with ENOSYS.  Some functions are actually named
76847    something starting with __ and the normal name is an alias.  */
76848#if defined __stub_$ac_func || defined __stub___$ac_func
76849choke me
76850#endif
76851
76852int
76853main ()
76854{
76855return $ac_func ();
76856  ;
76857  return 0;
76858}
76859_ACEOF
76860rm -f conftest.$ac_objext conftest$ac_exeext
76861if { (ac_try="$ac_link"
76862case "(($ac_try" in
76863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76864  *) ac_try_echo=$ac_try;;
76865esac
76866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76867$as_echo "$ac_try_echo") >&5
76868  (eval "$ac_link") 2>conftest.er1
76869  ac_status=$?
76870  grep -v '^ *+' conftest.er1 >conftest.err
76871  rm -f conftest.er1
76872  cat conftest.err >&5
76873  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76874  (exit $ac_status); } && {
76875	 test -z "$ac_c_werror_flag" ||
76876	 test ! -s conftest.err
76877       } && test -s conftest$ac_exeext && {
76878	 test "$cross_compiling" = yes ||
76879	 $as_test_x conftest$ac_exeext
76880       }; then
76881  eval "$as_ac_var=yes"
76882else
76883  $as_echo "$as_me: failed program was:" >&5
76884sed 's/^/| /' conftest.$ac_ext >&5
76885
76886	eval "$as_ac_var=no"
76887fi
76888
76889rm -rf conftest.dSYM
76890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
76891      conftest$ac_exeext conftest.$ac_ext
76892fi
76893ac_res=`eval 'as_val=${'$as_ac_var'}
76894		 $as_echo "$as_val"'`
76895	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
76896$as_echo "$ac_res" >&6; }
76897as_val=`eval 'as_val=${'$as_ac_var'}
76898		 $as_echo "$as_val"'`
76899   if test "x$as_val" = x""yes; then
76900  cat >>confdefs.h <<_ACEOF
76901#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
76902_ACEOF
76903
76904fi
76905done
76906
76907
76908#################################################
76909# check for devnm.h and struct mntent
76910
76911for ac_header in devnm.h
76912do
76913as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
76914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
76915  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
76916$as_echo_n "checking for $ac_header... " >&6; }
76917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
76918  $as_echo_n "(cached) " >&6
76919fi
76920ac_res=`eval 'as_val=${'$as_ac_Header'}
76921		 $as_echo "$as_val"'`
76922	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
76923$as_echo "$ac_res" >&6; }
76924else
76925  # Is the header compilable?
76926{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
76927$as_echo_n "checking $ac_header usability... " >&6; }
76928cat >conftest.$ac_ext <<_ACEOF
76929/* confdefs.h.  */
76930_ACEOF
76931cat confdefs.h >>conftest.$ac_ext
76932cat >>conftest.$ac_ext <<_ACEOF
76933/* end confdefs.h.  */
76934$ac_includes_default
76935#include <$ac_header>
76936_ACEOF
76937rm -f conftest.$ac_objext
76938if { (ac_try="$ac_compile"
76939case "(($ac_try" in
76940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76941  *) ac_try_echo=$ac_try;;
76942esac
76943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76944$as_echo "$ac_try_echo") >&5
76945  (eval "$ac_compile") 2>conftest.er1
76946  ac_status=$?
76947  grep -v '^ *+' conftest.er1 >conftest.err
76948  rm -f conftest.er1
76949  cat conftest.err >&5
76950  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76951  (exit $ac_status); } && {
76952	 test -z "$ac_c_werror_flag" ||
76953	 test ! -s conftest.err
76954       } && test -s conftest.$ac_objext; then
76955  ac_header_compiler=yes
76956else
76957  $as_echo "$as_me: failed program was:" >&5
76958sed 's/^/| /' conftest.$ac_ext >&5
76959
76960	ac_header_compiler=no
76961fi
76962
76963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
76964{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
76965$as_echo "$ac_header_compiler" >&6; }
76966
76967# Is the header present?
76968{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
76969$as_echo_n "checking $ac_header presence... " >&6; }
76970cat >conftest.$ac_ext <<_ACEOF
76971/* confdefs.h.  */
76972_ACEOF
76973cat confdefs.h >>conftest.$ac_ext
76974cat >>conftest.$ac_ext <<_ACEOF
76975/* end confdefs.h.  */
76976#include <$ac_header>
76977_ACEOF
76978if { (ac_try="$ac_cpp conftest.$ac_ext"
76979case "(($ac_try" in
76980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
76981  *) ac_try_echo=$ac_try;;
76982esac
76983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
76984$as_echo "$ac_try_echo") >&5
76985  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
76986  ac_status=$?
76987  grep -v '^ *+' conftest.er1 >conftest.err
76988  rm -f conftest.er1
76989  cat conftest.err >&5
76990  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
76991  (exit $ac_status); } >/dev/null && {
76992	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
76993	 test ! -s conftest.err
76994       }; then
76995  ac_header_preproc=yes
76996else
76997  $as_echo "$as_me: failed program was:" >&5
76998sed 's/^/| /' conftest.$ac_ext >&5
76999
77000  ac_header_preproc=no
77001fi
77002
77003rm -f conftest.err conftest.$ac_ext
77004{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
77005$as_echo "$ac_header_preproc" >&6; }
77006
77007# So?  What about this header?
77008case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
77009  yes:no: )
77010    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
77011$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
77012    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
77013$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
77014    ac_header_preproc=yes
77015    ;;
77016  no:yes:* )
77017    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
77018$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
77019    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
77020$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
77021    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
77022$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
77023    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
77024$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
77025    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
77026$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
77027    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
77028$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
77029    ( cat <<\_ASBOX
77030## ---------------------------------------- ##
77031## Report this to samba-technical@samba.org ##
77032## ---------------------------------------- ##
77033_ASBOX
77034     ) | sed "s/^/$as_me: WARNING:     /" >&2
77035    ;;
77036esac
77037{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
77038$as_echo_n "checking for $ac_header... " >&6; }
77039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
77040  $as_echo_n "(cached) " >&6
77041else
77042  eval "$as_ac_Header=\$ac_header_preproc"
77043fi
77044ac_res=`eval 'as_val=${'$as_ac_Header'}
77045		 $as_echo "$as_val"'`
77046	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
77047$as_echo "$ac_res" >&6; }
77048
77049fi
77050as_val=`eval 'as_val=${'$as_ac_Header'}
77051		 $as_echo "$as_val"'`
77052   if test "x$as_val" = x""yes; then
77053  cat >>confdefs.h <<_ACEOF
77054#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
77055_ACEOF
77056
77057fi
77058
77059done
77060
77061#################################################
77062# check for devnm
77063
77064for ac_func in devnm
77065do
77066as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
77067{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
77068$as_echo_n "checking for $ac_func... " >&6; }
77069if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
77070  $as_echo_n "(cached) " >&6
77071else
77072  cat >conftest.$ac_ext <<_ACEOF
77073/* confdefs.h.  */
77074_ACEOF
77075cat confdefs.h >>conftest.$ac_ext
77076cat >>conftest.$ac_ext <<_ACEOF
77077/* end confdefs.h.  */
77078/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
77079   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
77080#define $ac_func innocuous_$ac_func
77081
77082/* System header to define __stub macros and hopefully few prototypes,
77083    which can conflict with char $ac_func (); below.
77084    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
77085    <limits.h> exists even on freestanding compilers.  */
77086
77087#ifdef __STDC__
77088# include <limits.h>
77089#else
77090# include <assert.h>
77091#endif
77092
77093#undef $ac_func
77094
77095/* Override any GCC internal prototype to avoid an error.
77096   Use char because int might match the return type of a GCC
77097   builtin and then its argument prototype would still apply.  */
77098#ifdef __cplusplus
77099extern "C"
77100#endif
77101char $ac_func ();
77102/* The GNU C library defines this for functions which it implements
77103    to always fail with ENOSYS.  Some functions are actually named
77104    something starting with __ and the normal name is an alias.  */
77105#if defined __stub_$ac_func || defined __stub___$ac_func
77106choke me
77107#endif
77108
77109int
77110main ()
77111{
77112return $ac_func ();
77113  ;
77114  return 0;
77115}
77116_ACEOF
77117rm -f conftest.$ac_objext conftest$ac_exeext
77118if { (ac_try="$ac_link"
77119case "(($ac_try" in
77120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77121  *) ac_try_echo=$ac_try;;
77122esac
77123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
77124$as_echo "$ac_try_echo") >&5
77125  (eval "$ac_link") 2>conftest.er1
77126  ac_status=$?
77127  grep -v '^ *+' conftest.er1 >conftest.err
77128  rm -f conftest.er1
77129  cat conftest.err >&5
77130  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
77131  (exit $ac_status); } && {
77132	 test -z "$ac_c_werror_flag" ||
77133	 test ! -s conftest.err
77134       } && test -s conftest$ac_exeext && {
77135	 test "$cross_compiling" = yes ||
77136	 $as_test_x conftest$ac_exeext
77137       }; then
77138  eval "$as_ac_var=yes"
77139else
77140  $as_echo "$as_me: failed program was:" >&5
77141sed 's/^/| /' conftest.$ac_ext >&5
77142
77143	eval "$as_ac_var=no"
77144fi
77145
77146rm -rf conftest.dSYM
77147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
77148      conftest$ac_exeext conftest.$ac_ext
77149fi
77150ac_res=`eval 'as_val=${'$as_ac_var'}
77151		 $as_echo "$as_val"'`
77152	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
77153$as_echo "$ac_res" >&6; }
77154as_val=`eval 'as_val=${'$as_ac_var'}
77155		 $as_echo "$as_val"'`
77156   if test "x$as_val" = x""yes; then
77157  cat >>confdefs.h <<_ACEOF
77158#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
77159_ACEOF
77160
77161fi
77162done
77163
77164
77165if test x"$samba_cv_WITH_SYS_QUOTAS" = x"yes"; then
77166    if test x"$samba_cv_SYSQUOTA_FOUND" != x"yes"; then
77167	# if --with-sys-quotas=yes then build it
77168	# you have can use the get/set quota command smb.conf
77169	# options then
77170	samba_cv_SYSQUOTA_FOUND=auto
77171    fi
77172    if test x"$samba_cv_TRY_SYS_QUOTAS" != x"yes"; then
77173	# if --with-sys-quotas=yes then build it
77174	# you have can use the get/set quota command smb.conf
77175	# options then
77176	samba_cv_TRY_SYS_QUOTAS=auto
77177    fi
77178fi
77179
77180if test x"$samba_cv_SYSQUOTA_FOUND" != x"no"; then
77181{ $as_echo "$as_me:$LINENO: checking whether the sys_quota interface works" >&5
77182$as_echo_n "checking whether the sys_quota interface works... " >&6; }
77183if test "${samba_cv_SYSQUOTA_WORKS+set}" = set; then
77184  $as_echo_n "(cached) " >&6
77185else
77186
77187SAVE_CPPFLAGS="$CPPFLAGS"
77188CPPFLAGS="$CPPFLAGS ${SAMBA_CONFIGURE_CPPFLAGS}"
77189cat >conftest.$ac_ext <<_ACEOF
77190/* confdefs.h.  */
77191_ACEOF
77192cat confdefs.h >>conftest.$ac_ext
77193cat >>conftest.$ac_ext <<_ACEOF
77194/* end confdefs.h.  */
77195
77196#include "confdefs.h"
77197#define NO_PROTO_H 1
77198#define NO_CONFIG_H 1
77199#define HAVE_SYS_QUOTAS 1
77200#include "${srcdir-.}/${samba_cv_sysquotas_file}"
77201#include "${srcdir-.}/lib/sysquotas.c"
77202
77203int
77204main ()
77205{
77206
77207  ;
77208  return 0;
77209}
77210_ACEOF
77211rm -f conftest.$ac_objext
77212if { (ac_try="$ac_compile"
77213case "(($ac_try" in
77214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77215  *) ac_try_echo=$ac_try;;
77216esac
77217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
77218$as_echo "$ac_try_echo") >&5
77219  (eval "$ac_compile") 2>conftest.er1
77220  ac_status=$?
77221  grep -v '^ *+' conftest.er1 >conftest.err
77222  rm -f conftest.er1
77223  cat conftest.err >&5
77224  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
77225  (exit $ac_status); } && {
77226	 test -z "$ac_c_werror_flag" ||
77227	 test ! -s conftest.err
77228       } && test -s conftest.$ac_objext; then
77229  samba_cv_SYSQUOTA_WORKS=yes
77230else
77231  $as_echo "$as_me: failed program was:" >&5
77232sed 's/^/| /' conftest.$ac_ext >&5
77233
77234	samba_cv_SYSQUOTA_WORKS=no
77235fi
77236
77237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77238CPPFLAGS="$SAVE_CPPFLAGS"
77239
77240fi
77241{ $as_echo "$as_me:$LINENO: result: $samba_cv_SYSQUOTA_WORKS" >&5
77242$as_echo "$samba_cv_SYSQUOTA_WORKS" >&6; }
77243if test x"$samba_cv_SYSQUOTA_WORKS" = x"yes"; then
77244{ $as_echo "$as_me:$LINENO: checking whether to use the new lib/sysquotas.c interface" >&5
77245$as_echo_n "checking whether to use the new lib/sysquotas.c interface... " >&6; }
77246    if test x"$samba_cv_TRY_SYS_QUOTAS" != x"no"; then
77247
77248cat >>confdefs.h <<\_ACEOF
77249#define WITH_QUOTAS 1
77250_ACEOF
77251
77252
77253cat >>confdefs.h <<\_ACEOF
77254#define HAVE_SYS_QUOTAS 1
77255_ACEOF
77256
77257	samba_cv_WE_USE_SYS_QUOTAS=yes
77258	{ $as_echo "$as_me:$LINENO: result: yes" >&5
77259$as_echo "yes" >&6; }
77260    else
77261        { $as_echo "$as_me:$LINENO: result: no" >&5
77262$as_echo "no" >&6; }
77263    fi
77264fi
77265fi
77266
77267if test x"$samba_cv_SYSQUOTA_FOUND" != x"no" -a x"$samba_cv_found_xfs_header" = x"yes"; then
77268{ $as_echo "$as_me:$LINENO: checking whether the sys_quota interface works with XFS" >&5
77269$as_echo_n "checking whether the sys_quota interface works with XFS... " >&6; }
77270if test "${samba_cv_SYSQUOTA_WORKS_XFS+set}" = set; then
77271  $as_echo_n "(cached) " >&6
77272else
77273
77274SAVE_CPPFLAGS="$CPPFLAGS"
77275CPPFLAGS="$CPPFLAGS ${SAMBA_CONFIGURE_CPPFLAGS}"
77276cat >conftest.$ac_ext <<_ACEOF
77277/* confdefs.h.  */
77278_ACEOF
77279cat confdefs.h >>conftest.$ac_ext
77280cat >>conftest.$ac_ext <<_ACEOF
77281/* end confdefs.h.  */
77282
77283#include "confdefs.h"
77284#define NO_PROTO_H 1
77285#define NO_CONFIG_H 1
77286#define HAVE_SYS_QUOTAS 1
77287#define HAVE_XFS_QUOTAS 1
77288#include "${srcdir-.}/lib/sysquotas_xfs.c"
77289
77290int
77291main ()
77292{
77293
77294  ;
77295  return 0;
77296}
77297_ACEOF
77298rm -f conftest.$ac_objext
77299if { (ac_try="$ac_compile"
77300case "(($ac_try" in
77301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77302  *) ac_try_echo=$ac_try;;
77303esac
77304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
77305$as_echo "$ac_try_echo") >&5
77306  (eval "$ac_compile") 2>conftest.er1
77307  ac_status=$?
77308  grep -v '^ *+' conftest.er1 >conftest.err
77309  rm -f conftest.er1
77310  cat conftest.err >&5
77311  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
77312  (exit $ac_status); } && {
77313	 test -z "$ac_c_werror_flag" ||
77314	 test ! -s conftest.err
77315       } && test -s conftest.$ac_objext; then
77316  samba_cv_SYSQUOTA_WORKS_XFS=yes
77317else
77318  $as_echo "$as_me: failed program was:" >&5
77319sed 's/^/| /' conftest.$ac_ext >&5
77320
77321	samba_cv_SYSQUOTA_WORKS_XFS=no
77322fi
77323
77324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77325CPPFLAGS="$SAVE_CPPFLAGS"
77326
77327fi
77328{ $as_echo "$as_me:$LINENO: result: $samba_cv_SYSQUOTA_WORKS_XFS" >&5
77329$as_echo "$samba_cv_SYSQUOTA_WORKS_XFS" >&6; }
77330if test x"$samba_cv_SYSQUOTA_WORKS_XFS" = x"yes"; then
77331    if test x"$samba_cv_WE_USE_SYS_QUOTAS" = x"yes"; then
77332
77333cat >>confdefs.h <<\_ACEOF
77334#define HAVE_XFS_QUOTAS 1
77335_ACEOF
77336
77337    fi
77338fi
77339fi
77340
77341{ $as_echo "$as_me:$LINENO: checking whether the old quota support works" >&5
77342$as_echo_n "checking whether the old quota support works... " >&6; }
77343if test "${samba_cv_QUOTA_WORKS+set}" = set; then
77344  $as_echo_n "(cached) " >&6
77345else
77346
77347SAVE_CPPFLAGS="$CPPFLAGS"
77348CPPFLAGS="$CPPFLAGS ${SAMBA_CONFIGURE_CPPFLAGS}"
77349cat >conftest.$ac_ext <<_ACEOF
77350/* confdefs.h.  */
77351_ACEOF
77352cat confdefs.h >>conftest.$ac_ext
77353cat >>conftest.$ac_ext <<_ACEOF
77354/* end confdefs.h.  */
77355
77356#include "confdefs.h"
77357#define NO_PROTO_H 1
77358#define NO_CONFIG_H 1
77359#include "${srcdir-.}/smbd/quotas.c"
77360
77361int
77362main ()
77363{
77364
77365  ;
77366  return 0;
77367}
77368_ACEOF
77369rm -f conftest.$ac_objext
77370if { (ac_try="$ac_compile"
77371case "(($ac_try" in
77372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77373  *) ac_try_echo=$ac_try;;
77374esac
77375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
77376$as_echo "$ac_try_echo") >&5
77377  (eval "$ac_compile") 2>conftest.er1
77378  ac_status=$?
77379  grep -v '^ *+' conftest.er1 >conftest.err
77380  rm -f conftest.er1
77381  cat conftest.err >&5
77382  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
77383  (exit $ac_status); } && {
77384	 test -z "$ac_c_werror_flag" ||
77385	 test ! -s conftest.err
77386       } && test -s conftest.$ac_objext; then
77387  samba_cv_QUOTA_WORKS=yes
77388else
77389  $as_echo "$as_me: failed program was:" >&5
77390sed 's/^/| /' conftest.$ac_ext >&5
77391
77392	samba_cv_QUOTA_WORKS=no
77393fi
77394
77395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77396CPPFLAGS="$SAVE_CPPFLAGS"
77397
77398fi
77399{ $as_echo "$as_me:$LINENO: result: $samba_cv_QUOTA_WORKS" >&5
77400$as_echo "$samba_cv_QUOTA_WORKS" >&6; }
77401if test x"$samba_cv_QUOTA_WORKS" = x"yes"; then
77402{ $as_echo "$as_me:$LINENO: checking whether to use the old quota support" >&5
77403$as_echo_n "checking whether to use the old quota support... " >&6; }
77404    if test x"$samba_cv_WE_USE_SYS_QUOTAS" != x"yes"; then
77405      if test x"$samba_cv_TRY_QUOTAS" != x"no"; then
77406
77407cat >>confdefs.h <<\_ACEOF
77408#define WITH_QUOTAS 1
77409_ACEOF
77410
77411	{ $as_echo "$as_me:$LINENO: result: yes" >&5
77412$as_echo "yes" >&6; }
77413      else
77414	{ $as_echo "$as_me:$LINENO: result: no" >&5
77415$as_echo "no" >&6; }
77416      fi
77417    else
77418      { $as_echo "$as_me:$LINENO: result: no" >&5
77419$as_echo "no" >&6; }
77420    fi
77421fi
77422
77423####################
77424# End of quota check samba_cv_RUN_QUOTA_TESTS
77425fi
77426
77427#################################################
77428# check for experimental utmp accounting
77429
77430{ $as_echo "$as_me:$LINENO: checking whether to support utmp accounting" >&5
77431$as_echo_n "checking whether to support utmp accounting... " >&6; }
77432WITH_UTMP=yes
77433
77434# Check whether --with-utmp was given.
77435if test "${with_utmp+set}" = set; then
77436  withval=$with_utmp;  case "$withval" in
77437  no)
77438		WITH_UTMP=no
77439		;;
77440  *)
77441		WITH_UTMP=yes
77442                ;;
77443  esac
77444fi
77445
77446
77447# utmp requires utmp.h
77448# Note similar check earlier, when checking utmp details.
77449
77450if test x"$WITH_UTMP" = x"yes" -a x"$ac_cv_header_utmp_h" = x"no"; then
77451	utmp_no_reason=", no utmp.h on $host_os"
77452	WITH_UTMP=no
77453fi
77454
77455# Display test results
77456
77457if test x"$WITH_UTMP" = x"yes"; then
77458        { $as_echo "$as_me:$LINENO: result: yes" >&5
77459$as_echo "yes" >&6; }
77460
77461cat >>confdefs.h <<\_ACEOF
77462#define WITH_UTMP 1
77463_ACEOF
77464
77465else
77466        { $as_echo "$as_me:$LINENO: result: no$utmp_no_reason" >&5
77467$as_echo "no$utmp_no_reason" >&6; }
77468fi
77469
77470
77471#################################################
77472# these tests are taken from the GNU fileutils package
77473{ $as_echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
77474$as_echo "$as_me: checking how to get filesystem space usage..." >&6;}
77475space=no
77476
77477# Test for statvfs64.
77478if test $space = no; then
77479  # SVR4
77480  { $as_echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
77481$as_echo_n "checking statvfs64 function (SVR4)... " >&6; }
77482if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
77483  $as_echo_n "(cached) " >&6
77484else
77485  if test "$cross_compiling" = yes; then
77486  fu_cv_sys_stat_statvfs64=cross
77487else
77488  cat >conftest.$ac_ext <<_ACEOF
77489/* confdefs.h.  */
77490_ACEOF
77491cat confdefs.h >>conftest.$ac_ext
77492cat >>conftest.$ac_ext <<_ACEOF
77493/* end confdefs.h.  */
77494
77495#if defined(HAVE_UNISTD_H)
77496#include <unistd.h>
77497#endif
77498#include <sys/types.h>
77499#include <sys/statvfs.h>
77500  main ()
77501  {
77502    struct statvfs64 fsd;
77503    exit (statvfs64 (".", &fsd));
77504  }
77505_ACEOF
77506rm -f conftest$ac_exeext
77507if { (ac_try="$ac_link"
77508case "(($ac_try" in
77509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77510  *) ac_try_echo=$ac_try;;
77511esac
77512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
77513$as_echo "$ac_try_echo") >&5
77514  (eval "$ac_link") 2>&5
77515  ac_status=$?
77516  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
77517  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
77518  { (case "(($ac_try" in
77519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77520  *) ac_try_echo=$ac_try;;
77521esac
77522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
77523$as_echo "$ac_try_echo") >&5
77524  (eval "$ac_try") 2>&5
77525  ac_status=$?
77526  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
77527  (exit $ac_status); }; }; then
77528  fu_cv_sys_stat_statvfs64=yes
77529else
77530  $as_echo "$as_me: program exited with status $ac_status" >&5
77531$as_echo "$as_me: failed program was:" >&5
77532sed 's/^/| /' conftest.$ac_ext >&5
77533
77534( exit $ac_status )
77535fu_cv_sys_stat_statvfs64=no
77536fi
77537rm -rf conftest.dSYM
77538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
77539fi
77540
77541
77542fi
77543{ $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
77544$as_echo "$fu_cv_sys_stat_statvfs64" >&6; }
77545  if test $fu_cv_sys_stat_statvfs64 = yes; then
77546    space=yes
77547
77548cat >>confdefs.h <<\_ACEOF
77549#define STAT_STATVFS64 1
77550_ACEOF
77551
77552  fi
77553fi
77554
77555# Perform only the link test since it seems there are no variants of the
77556# statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
77557# because that got a false positive on SCO OSR5.  Adding the declaration
77558# of a `struct statvfs' causes this test to fail (as it should) on such
77559# systems.  That system is reported to work fine with STAT_STATFS4 which
77560# is what it gets when this test fails.
77561if test $space = no; then
77562  # SVR4
77563  { $as_echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
77564$as_echo_n "checking statvfs function (SVR4)... " >&6; }
77565if test "${fu_cv_sys_stat_statvfs+set}" = set; then
77566  $as_echo_n "(cached) " >&6
77567else
77568  cat >conftest.$ac_ext <<_ACEOF
77569/* confdefs.h.  */
77570_ACEOF
77571cat confdefs.h >>conftest.$ac_ext
77572cat >>conftest.$ac_ext <<_ACEOF
77573/* end confdefs.h.  */
77574#include <sys/types.h>
77575#include <sys/statvfs.h>
77576int
77577main ()
77578{
77579struct statvfs fsd; statvfs (0, &fsd);
77580  ;
77581  return 0;
77582}
77583_ACEOF
77584rm -f conftest.$ac_objext conftest$ac_exeext
77585if { (ac_try="$ac_link"
77586case "(($ac_try" in
77587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77588  *) ac_try_echo=$ac_try;;
77589esac
77590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
77591$as_echo "$ac_try_echo") >&5
77592  (eval "$ac_link") 2>conftest.er1
77593  ac_status=$?
77594  grep -v '^ *+' conftest.er1 >conftest.err
77595  rm -f conftest.er1
77596  cat conftest.err >&5
77597  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
77598  (exit $ac_status); } && {
77599	 test -z "$ac_c_werror_flag" ||
77600	 test ! -s conftest.err
77601       } && test -s conftest$ac_exeext && {
77602	 test "$cross_compiling" = yes ||
77603	 $as_test_x conftest$ac_exeext
77604       }; then
77605  fu_cv_sys_stat_statvfs=yes
77606else
77607  $as_echo "$as_me: failed program was:" >&5
77608sed 's/^/| /' conftest.$ac_ext >&5
77609
77610	fu_cv_sys_stat_statvfs=no
77611fi
77612
77613rm -rf conftest.dSYM
77614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
77615      conftest$ac_exeext conftest.$ac_ext
77616fi
77617{ $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
77618$as_echo "$fu_cv_sys_stat_statvfs" >&6; }
77619  if test $fu_cv_sys_stat_statvfs = yes; then
77620    space=yes
77621
77622cat >>confdefs.h <<\_ACEOF
77623#define STAT_STATVFS 1
77624_ACEOF
77625
77626  fi
77627fi
77628
77629# smbd/statvfs.c assumes that statvfs.f_fsid is an integer.
77630# This is not the case on ancient Linux systems.
77631
77632{ $as_echo "$as_me:$LINENO: checking that statvfs.f_fsid is an integer" >&5
77633$as_echo_n "checking that statvfs.f_fsid is an integer... " >&6; }
77634if test "${samba_cv_fsid_int+set}" = set; then
77635  $as_echo_n "(cached) " >&6
77636else
77637
77638    cat >conftest.$ac_ext <<_ACEOF
77639/* confdefs.h.  */
77640_ACEOF
77641cat confdefs.h >>conftest.$ac_ext
77642cat >>conftest.$ac_ext <<_ACEOF
77643/* end confdefs.h.  */
77644#include <sys/types.h>
77645#include <sys/statvfs.h>
77646int
77647main ()
77648{
77649struct statvfs buf; buf.f_fsid = 0
77650  ;
77651  return 0;
77652}
77653_ACEOF
77654rm -f conftest.$ac_objext
77655if { (ac_try="$ac_compile"
77656case "(($ac_try" in
77657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77658  *) ac_try_echo=$ac_try;;
77659esac
77660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
77661$as_echo "$ac_try_echo") >&5
77662  (eval "$ac_compile") 2>conftest.er1
77663  ac_status=$?
77664  grep -v '^ *+' conftest.er1 >conftest.err
77665  rm -f conftest.er1
77666  cat conftest.err >&5
77667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
77668  (exit $ac_status); } && {
77669	 test -z "$ac_c_werror_flag" ||
77670	 test ! -s conftest.err
77671       } && test -s conftest.$ac_objext; then
77672  samba_cv_fsid_int=yes
77673else
77674  $as_echo "$as_me: failed program was:" >&5
77675sed 's/^/| /' conftest.$ac_ext >&5
77676
77677	samba_cv_fsid_int=no
77678fi
77679
77680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77681fi
77682{ $as_echo "$as_me:$LINENO: result: $samba_cv_fsid_int" >&5
77683$as_echo "$samba_cv_fsid_int" >&6; }
77684if test x"$samba_cv_fsid_int" = x"yes"; then
77685
77686cat >>confdefs.h <<\_ACEOF
77687#define HAVE_FSID_INT 1
77688_ACEOF
77689
77690fi
77691
77692# fsusage.c assumes that statvfs has an f_frsize entry. Some weird
77693# systems use f_bsize.
77694{ $as_echo "$as_me:$LINENO: checking that statvfs.f_frsize works" >&5
77695$as_echo_n "checking that statvfs.f_frsize works... " >&6; }
77696if test "${samba_cv_frsize+set}" = set; then
77697  $as_echo_n "(cached) " >&6
77698else
77699
77700    cat >conftest.$ac_ext <<_ACEOF
77701/* confdefs.h.  */
77702_ACEOF
77703cat confdefs.h >>conftest.$ac_ext
77704cat >>conftest.$ac_ext <<_ACEOF
77705/* end confdefs.h.  */
77706#include <sys/types.h>
77707#include <sys/statvfs.h>
77708int
77709main ()
77710{
77711struct statvfs buf; buf.f_frsize = 0
77712  ;
77713  return 0;
77714}
77715_ACEOF
77716rm -f conftest.$ac_objext
77717if { (ac_try="$ac_compile"
77718case "(($ac_try" in
77719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77720  *) ac_try_echo=$ac_try;;
77721esac
77722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
77723$as_echo "$ac_try_echo") >&5
77724  (eval "$ac_compile") 2>conftest.er1
77725  ac_status=$?
77726  grep -v '^ *+' conftest.er1 >conftest.err
77727  rm -f conftest.er1
77728  cat conftest.err >&5
77729  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
77730  (exit $ac_status); } && {
77731	 test -z "$ac_c_werror_flag" ||
77732	 test ! -s conftest.err
77733       } && test -s conftest.$ac_objext; then
77734  samba_cv_frsize=yes
77735else
77736  $as_echo "$as_me: failed program was:" >&5
77737sed 's/^/| /' conftest.$ac_ext >&5
77738
77739	samba_cv_frsize=no
77740fi
77741
77742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77743fi
77744{ $as_echo "$as_me:$LINENO: result: $samba_cv_frsize" >&5
77745$as_echo "$samba_cv_frsize" >&6; }
77746if test x"$samba_cv_frsize" = x"yes"; then
77747
77748cat >>confdefs.h <<\_ACEOF
77749#define HAVE_FRSIZE 1
77750_ACEOF
77751
77752fi
77753
77754# Some systems use f_flag in struct statvfs while others use f_flags
77755{ $as_echo "$as_me:$LINENO: checking that statvfs.statvfs_f_flag works" >&5
77756$as_echo_n "checking that statvfs.statvfs_f_flag works... " >&6; }
77757if test "${samba_cv_statvfs_f_flag+set}" = set; then
77758  $as_echo_n "(cached) " >&6
77759else
77760
77761    cat >conftest.$ac_ext <<_ACEOF
77762/* confdefs.h.  */
77763_ACEOF
77764cat confdefs.h >>conftest.$ac_ext
77765cat >>conftest.$ac_ext <<_ACEOF
77766/* end confdefs.h.  */
77767#include <sys/types.h>
77768#include <sys/statvfs.h>
77769int
77770main ()
77771{
77772struct statvfs buf; buf.f_flag = 0
77773  ;
77774  return 0;
77775}
77776_ACEOF
77777rm -f conftest.$ac_objext
77778if { (ac_try="$ac_compile"
77779case "(($ac_try" in
77780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77781  *) ac_try_echo=$ac_try;;
77782esac
77783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
77784$as_echo "$ac_try_echo") >&5
77785  (eval "$ac_compile") 2>conftest.er1
77786  ac_status=$?
77787  grep -v '^ *+' conftest.er1 >conftest.err
77788  rm -f conftest.er1
77789  cat conftest.err >&5
77790  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
77791  (exit $ac_status); } && {
77792	 test -z "$ac_c_werror_flag" ||
77793	 test ! -s conftest.err
77794       } && test -s conftest.$ac_objext; then
77795  samba_cv_statvfs_f_flag=yes
77796else
77797  $as_echo "$as_me: failed program was:" >&5
77798sed 's/^/| /' conftest.$ac_ext >&5
77799
77800	samba_cv_statvfs_f_flag=no
77801fi
77802
77803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77804fi
77805{ $as_echo "$as_me:$LINENO: result: $samba_cv_statvfs_f_flag" >&5
77806$as_echo "$samba_cv_statvfs_f_flag" >&6; }
77807if test x"$samba_cv_statvfs_f_flag" = x"yes"; then
77808
77809cat >>confdefs.h <<\_ACEOF
77810#define HAVE_STATVFS_F_FLAG 1
77811_ACEOF
77812
77813fi
77814
77815{ $as_echo "$as_me:$LINENO: checking that statvfs.statvfs_f_flags works" >&5
77816$as_echo_n "checking that statvfs.statvfs_f_flags works... " >&6; }
77817if test "${samba_cv_statvfs_f_flags+set}" = set; then
77818  $as_echo_n "(cached) " >&6
77819else
77820
77821    cat >conftest.$ac_ext <<_ACEOF
77822/* confdefs.h.  */
77823_ACEOF
77824cat confdefs.h >>conftest.$ac_ext
77825cat >>conftest.$ac_ext <<_ACEOF
77826/* end confdefs.h.  */
77827#include <sys/types.h>
77828#include <sys/statvfs.h>
77829int
77830main ()
77831{
77832struct statvfs buf; buf.f_flags = 0
77833  ;
77834  return 0;
77835}
77836_ACEOF
77837rm -f conftest.$ac_objext
77838if { (ac_try="$ac_compile"
77839case "(($ac_try" in
77840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77841  *) ac_try_echo=$ac_try;;
77842esac
77843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
77844$as_echo "$ac_try_echo") >&5
77845  (eval "$ac_compile") 2>conftest.er1
77846  ac_status=$?
77847  grep -v '^ *+' conftest.er1 >conftest.err
77848  rm -f conftest.er1
77849  cat conftest.err >&5
77850  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
77851  (exit $ac_status); } && {
77852	 test -z "$ac_c_werror_flag" ||
77853	 test ! -s conftest.err
77854       } && test -s conftest.$ac_objext; then
77855  samba_cv_statvfs_f_flags=yes
77856else
77857  $as_echo "$as_me: failed program was:" >&5
77858sed 's/^/| /' conftest.$ac_ext >&5
77859
77860	samba_cv_statvfs_f_flags=no
77861fi
77862
77863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77864fi
77865{ $as_echo "$as_me:$LINENO: result: $samba_cv_statvfs_f_flags" >&5
77866$as_echo "$samba_cv_statvfs_f_flags" >&6; }
77867if test x"$samba_cv_statvfs_f_flags" = x"yes"; then
77868
77869cat >>confdefs.h <<\_ACEOF
77870#define HAVE_STATVFS_F_FLAGS 1
77871_ACEOF
77872
77873fi
77874
77875if test $space = no; then
77876  # DEC Alpha running OSF/1
77877  { $as_echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
77878$as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
77879  if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
77880  $as_echo_n "(cached) " >&6
77881else
77882  if test "$cross_compiling" = yes; then
77883  fu_cv_sys_stat_statfs3_osf1=no
77884else
77885  cat >conftest.$ac_ext <<_ACEOF
77886/* confdefs.h.  */
77887_ACEOF
77888cat confdefs.h >>conftest.$ac_ext
77889cat >>conftest.$ac_ext <<_ACEOF
77890/* end confdefs.h.  */
77891
77892#include <sys/param.h>
77893#include <sys/types.h>
77894#include <sys/mount.h>
77895  main ()
77896  {
77897    struct statfs fsd;
77898    fsd.f_fsize = 0;
77899    exit (statfs (".", &fsd, sizeof (struct statfs)));
77900  }
77901_ACEOF
77902rm -f conftest$ac_exeext
77903if { (ac_try="$ac_link"
77904case "(($ac_try" in
77905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77906  *) ac_try_echo=$ac_try;;
77907esac
77908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
77909$as_echo "$ac_try_echo") >&5
77910  (eval "$ac_link") 2>&5
77911  ac_status=$?
77912  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
77913  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
77914  { (case "(($ac_try" in
77915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77916  *) ac_try_echo=$ac_try;;
77917esac
77918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
77919$as_echo "$ac_try_echo") >&5
77920  (eval "$ac_try") 2>&5
77921  ac_status=$?
77922  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
77923  (exit $ac_status); }; }; then
77924  fu_cv_sys_stat_statfs3_osf1=yes
77925else
77926  $as_echo "$as_me: program exited with status $ac_status" >&5
77927$as_echo "$as_me: failed program was:" >&5
77928sed 's/^/| /' conftest.$ac_ext >&5
77929
77930( exit $ac_status )
77931fu_cv_sys_stat_statfs3_osf1=no
77932fi
77933rm -rf conftest.dSYM
77934rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
77935fi
77936
77937
77938fi
77939
77940  { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
77941$as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
77942  if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
77943    space=yes
77944
77945cat >>confdefs.h <<\_ACEOF
77946#define STAT_STATFS3_OSF1 1
77947_ACEOF
77948
77949  fi
77950fi
77951
77952if test $space = no; then
77953# AIX
77954  { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
77955$as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
77956  if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
77957  $as_echo_n "(cached) " >&6
77958else
77959  if test "$cross_compiling" = yes; then
77960  fu_cv_sys_stat_statfs2_bsize=no
77961else
77962  cat >conftest.$ac_ext <<_ACEOF
77963/* confdefs.h.  */
77964_ACEOF
77965cat confdefs.h >>conftest.$ac_ext
77966cat >>conftest.$ac_ext <<_ACEOF
77967/* end confdefs.h.  */
77968
77969#ifdef HAVE_SYS_PARAM_H
77970#include <sys/param.h>
77971#endif
77972#ifdef HAVE_SYS_MOUNT_H
77973#include <sys/mount.h>
77974#endif
77975#ifdef HAVE_SYS_VFS_H
77976#include <sys/vfs.h>
77977#endif
77978  main ()
77979  {
77980  struct statfs fsd;
77981  fsd.f_bsize = 0;
77982  exit (statfs (".", &fsd));
77983  }
77984_ACEOF
77985rm -f conftest$ac_exeext
77986if { (ac_try="$ac_link"
77987case "(($ac_try" in
77988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77989  *) ac_try_echo=$ac_try;;
77990esac
77991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
77992$as_echo "$ac_try_echo") >&5
77993  (eval "$ac_link") 2>&5
77994  ac_status=$?
77995  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
77996  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
77997  { (case "(($ac_try" in
77998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
77999  *) ac_try_echo=$ac_try;;
78000esac
78001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78002$as_echo "$ac_try_echo") >&5
78003  (eval "$ac_try") 2>&5
78004  ac_status=$?
78005  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78006  (exit $ac_status); }; }; then
78007  fu_cv_sys_stat_statfs2_bsize=yes
78008else
78009  $as_echo "$as_me: program exited with status $ac_status" >&5
78010$as_echo "$as_me: failed program was:" >&5
78011sed 's/^/| /' conftest.$ac_ext >&5
78012
78013( exit $ac_status )
78014fu_cv_sys_stat_statfs2_bsize=no
78015fi
78016rm -rf conftest.dSYM
78017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
78018fi
78019
78020
78021fi
78022
78023  { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
78024$as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
78025  if test $fu_cv_sys_stat_statfs2_bsize = yes; then
78026    space=yes
78027
78028cat >>confdefs.h <<\_ACEOF
78029#define STAT_STATFS2_BSIZE 1
78030_ACEOF
78031
78032  fi
78033fi
78034
78035if test $space = no; then
78036# SVR3
78037  { $as_echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
78038$as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
78039  if test "${fu_cv_sys_stat_statfs4+set}" = set; then
78040  $as_echo_n "(cached) " >&6
78041else
78042  if test "$cross_compiling" = yes; then
78043  fu_cv_sys_stat_statfs4=no
78044else
78045  cat >conftest.$ac_ext <<_ACEOF
78046/* confdefs.h.  */
78047_ACEOF
78048cat confdefs.h >>conftest.$ac_ext
78049cat >>conftest.$ac_ext <<_ACEOF
78050/* end confdefs.h.  */
78051#include <sys/types.h>
78052#include <sys/statfs.h>
78053  main ()
78054  {
78055  struct statfs fsd;
78056  exit (statfs (".", &fsd, sizeof fsd, 0));
78057  }
78058_ACEOF
78059rm -f conftest$ac_exeext
78060if { (ac_try="$ac_link"
78061case "(($ac_try" in
78062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78063  *) ac_try_echo=$ac_try;;
78064esac
78065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78066$as_echo "$ac_try_echo") >&5
78067  (eval "$ac_link") 2>&5
78068  ac_status=$?
78069  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78070  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
78071  { (case "(($ac_try" in
78072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78073  *) ac_try_echo=$ac_try;;
78074esac
78075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78076$as_echo "$ac_try_echo") >&5
78077  (eval "$ac_try") 2>&5
78078  ac_status=$?
78079  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78080  (exit $ac_status); }; }; then
78081  fu_cv_sys_stat_statfs4=yes
78082else
78083  $as_echo "$as_me: program exited with status $ac_status" >&5
78084$as_echo "$as_me: failed program was:" >&5
78085sed 's/^/| /' conftest.$ac_ext >&5
78086
78087( exit $ac_status )
78088fu_cv_sys_stat_statfs4=no
78089fi
78090rm -rf conftest.dSYM
78091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
78092fi
78093
78094
78095fi
78096
78097  { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
78098$as_echo "$fu_cv_sys_stat_statfs4" >&6; }
78099  if test $fu_cv_sys_stat_statfs4 = yes; then
78100    space=yes
78101
78102cat >>confdefs.h <<\_ACEOF
78103#define STAT_STATFS4 1
78104_ACEOF
78105
78106  fi
78107fi
78108
78109if test $space = no; then
78110# 4.4BSD and NetBSD
78111  { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
78112$as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
78113  if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
78114  $as_echo_n "(cached) " >&6
78115else
78116  if test "$cross_compiling" = yes; then
78117  fu_cv_sys_stat_statfs2_fsize=no
78118else
78119  cat >conftest.$ac_ext <<_ACEOF
78120/* confdefs.h.  */
78121_ACEOF
78122cat confdefs.h >>conftest.$ac_ext
78123cat >>conftest.$ac_ext <<_ACEOF
78124/* end confdefs.h.  */
78125#include <sys/types.h>
78126#ifdef HAVE_SYS_PARAM_H
78127#include <sys/param.h>
78128#endif
78129#ifdef HAVE_SYS_MOUNT_H
78130#include <sys/mount.h>
78131#endif
78132  main ()
78133  {
78134  struct statfs fsd;
78135  fsd.f_fsize = 0;
78136  exit (statfs (".", &fsd));
78137  }
78138_ACEOF
78139rm -f conftest$ac_exeext
78140if { (ac_try="$ac_link"
78141case "(($ac_try" in
78142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78143  *) ac_try_echo=$ac_try;;
78144esac
78145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78146$as_echo "$ac_try_echo") >&5
78147  (eval "$ac_link") 2>&5
78148  ac_status=$?
78149  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78150  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
78151  { (case "(($ac_try" in
78152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78153  *) ac_try_echo=$ac_try;;
78154esac
78155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78156$as_echo "$ac_try_echo") >&5
78157  (eval "$ac_try") 2>&5
78158  ac_status=$?
78159  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78160  (exit $ac_status); }; }; then
78161  fu_cv_sys_stat_statfs2_fsize=yes
78162else
78163  $as_echo "$as_me: program exited with status $ac_status" >&5
78164$as_echo "$as_me: failed program was:" >&5
78165sed 's/^/| /' conftest.$ac_ext >&5
78166
78167( exit $ac_status )
78168fu_cv_sys_stat_statfs2_fsize=no
78169fi
78170rm -rf conftest.dSYM
78171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
78172fi
78173
78174
78175fi
78176
78177  { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
78178$as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
78179  if test $fu_cv_sys_stat_statfs2_fsize = yes; then
78180    space=yes
78181
78182cat >>confdefs.h <<\_ACEOF
78183#define STAT_STATFS2_FSIZE 1
78184_ACEOF
78185
78186  fi
78187fi
78188
78189if test $space = no; then
78190  # Ultrix
78191  { $as_echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
78192$as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
78193  if test "${fu_cv_sys_stat_fs_data+set}" = set; then
78194  $as_echo_n "(cached) " >&6
78195else
78196  if test "$cross_compiling" = yes; then
78197  fu_cv_sys_stat_fs_data=no
78198else
78199  cat >conftest.$ac_ext <<_ACEOF
78200/* confdefs.h.  */
78201_ACEOF
78202cat confdefs.h >>conftest.$ac_ext
78203cat >>conftest.$ac_ext <<_ACEOF
78204/* end confdefs.h.  */
78205#include <sys/types.h>
78206#ifdef HAVE_SYS_PARAM_H
78207#include <sys/param.h>
78208#endif
78209#ifdef HAVE_SYS_MOUNT_H
78210#include <sys/mount.h>
78211#endif
78212#ifdef HAVE_SYS_FS_TYPES_H
78213#include <sys/fs_types.h>
78214#endif
78215  main ()
78216  {
78217  struct fs_data fsd;
78218  /* Ultrix's statfs returns 1 for success,
78219     0 for not mounted, -1 for failure.  */
78220  exit (statfs (".", &fsd) != 1);
78221  }
78222_ACEOF
78223rm -f conftest$ac_exeext
78224if { (ac_try="$ac_link"
78225case "(($ac_try" in
78226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78227  *) ac_try_echo=$ac_try;;
78228esac
78229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78230$as_echo "$ac_try_echo") >&5
78231  (eval "$ac_link") 2>&5
78232  ac_status=$?
78233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78234  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
78235  { (case "(($ac_try" in
78236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78237  *) ac_try_echo=$ac_try;;
78238esac
78239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78240$as_echo "$ac_try_echo") >&5
78241  (eval "$ac_try") 2>&5
78242  ac_status=$?
78243  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78244  (exit $ac_status); }; }; then
78245  fu_cv_sys_stat_fs_data=yes
78246else
78247  $as_echo "$as_me: program exited with status $ac_status" >&5
78248$as_echo "$as_me: failed program was:" >&5
78249sed 's/^/| /' conftest.$ac_ext >&5
78250
78251( exit $ac_status )
78252fu_cv_sys_stat_fs_data=no
78253fi
78254rm -rf conftest.dSYM
78255rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
78256fi
78257
78258
78259fi
78260
78261  { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
78262$as_echo "$fu_cv_sys_stat_fs_data" >&6; }
78263  if test $fu_cv_sys_stat_fs_data = yes; then
78264    space=yes
78265
78266cat >>confdefs.h <<\_ACEOF
78267#define STAT_STATFS2_FS_DATA 1
78268_ACEOF
78269
78270  fi
78271fi
78272
78273#
78274# As a gating factor for large file support, in order to
78275# use <4GB files we must have the following minimal support
78276# available.
78277# long long, and a 64 bit off_t or off64_t.
78278# If we don't have all of these then disable large
78279# file support.
78280#
78281{ $as_echo "$as_me:$LINENO: checking if large file support can be enabled" >&5
78282$as_echo_n "checking if large file support can be enabled... " >&6; }
78283cat >conftest.$ac_ext <<_ACEOF
78284/* confdefs.h.  */
78285_ACEOF
78286cat confdefs.h >>conftest.$ac_ext
78287cat >>conftest.$ac_ext <<_ACEOF
78288/* end confdefs.h.  */
78289
78290#if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
78291#include <sys/types.h>
78292#else
78293__COMPILE_ERROR_
78294#endif
78295
78296int
78297main ()
78298{
78299int i
78300  ;
78301  return 0;
78302}
78303_ACEOF
78304rm -f conftest.$ac_objext
78305if { (ac_try="$ac_compile"
78306case "(($ac_try" in
78307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78308  *) ac_try_echo=$ac_try;;
78309esac
78310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78311$as_echo "$ac_try_echo") >&5
78312  (eval "$ac_compile") 2>conftest.er1
78313  ac_status=$?
78314  grep -v '^ *+' conftest.er1 >conftest.err
78315  rm -f conftest.er1
78316  cat conftest.err >&5
78317  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78318  (exit $ac_status); } && {
78319	 test -z "$ac_c_werror_flag" ||
78320	 test ! -s conftest.err
78321       } && test -s conftest.$ac_objext; then
78322  samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
78323else
78324  $as_echo "$as_me: failed program was:" >&5
78325sed 's/^/| /' conftest.$ac_ext >&5
78326
78327	samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
78328fi
78329
78330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78331if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
78332
78333cat >>confdefs.h <<\_ACEOF
78334#define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
78335_ACEOF
78336
78337fi
78338{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&5
78339$as_echo "$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&6; }
78340
78341#################################################
78342# check for cluster extensions
78343
78344CTDB_CFLAGS=""
78345
78346
78347# Check whether --with-ctdb was given.
78348if test "${with_ctdb+set}" = set; then
78349  withval=$with_ctdb;  case "$withval" in
78350  yes|no)
78351    { $as_echo "$as_me:$LINENO: WARNING: --with-ctdb called without argument" >&5
78352$as_echo "$as_me: WARNING: --with-ctdb called without argument" >&2;}
78353    ;;
78354  *)
78355    CTDB_CPPFLAGS="-I$withval/include"
78356    ;;
78357  esac
78358fi
78359
78360
78361SAVED_CPPFLAGS="$CPPFLAGS"
78362CPPFLAGS="$CPPFLAGS ${SAMBA_CONFIGURE_CPPFLAGS} $CTDB_CPPFLAGS"
78363ctdb_broken="missing or broken headers"
78364
78365
78366
78367for ac_header in ctdb.h ctdb_private.h
78368do
78369as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
78370{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
78371$as_echo_n "checking for $ac_header... " >&6; }
78372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
78373  $as_echo_n "(cached) " >&6
78374else
78375  cat >conftest.$ac_ext <<_ACEOF
78376/* confdefs.h.  */
78377_ACEOF
78378cat confdefs.h >>conftest.$ac_ext
78379cat >>conftest.$ac_ext <<_ACEOF
78380/* end confdefs.h.  */
78381
78382#include "confdefs.h"
78383#define NO_CONFIG_H
78384#include "replace.h"
78385#include "system/wait.h"
78386#include "system/network.h"
78387#define private #error __USED_RESERVED_WORD_private__
78388#include <talloc.h>
78389#include <tdb.h>
78390#include <ctdb.h>
78391
78392
78393#include <$ac_header>
78394_ACEOF
78395rm -f conftest.$ac_objext
78396if { (ac_try="$ac_compile"
78397case "(($ac_try" in
78398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78399  *) ac_try_echo=$ac_try;;
78400esac
78401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78402$as_echo "$ac_try_echo") >&5
78403  (eval "$ac_compile") 2>conftest.er1
78404  ac_status=$?
78405  grep -v '^ *+' conftest.er1 >conftest.err
78406  rm -f conftest.er1
78407  cat conftest.err >&5
78408  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78409  (exit $ac_status); } && {
78410	 test -z "$ac_c_werror_flag" ||
78411	 test ! -s conftest.err
78412       } && test -s conftest.$ac_objext; then
78413  eval "$as_ac_Header=yes"
78414else
78415  $as_echo "$as_me: failed program was:" >&5
78416sed 's/^/| /' conftest.$ac_ext >&5
78417
78418	eval "$as_ac_Header=no"
78419fi
78420
78421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78422fi
78423ac_res=`eval 'as_val=${'$as_ac_Header'}
78424		 $as_echo "$as_val"'`
78425	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
78426$as_echo "$ac_res" >&6; }
78427as_val=`eval 'as_val=${'$as_ac_Header'}
78428		 $as_echo "$as_val"'`
78429   if test "x$as_val" = x""yes; then
78430  cat >>confdefs.h <<_ACEOF
78431#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
78432_ACEOF
78433
78434fi
78435
78436done
78437
78438
78439
78440 { $as_echo "$as_me:$LINENO: checking for CTDB_CONTROL_TRANS3_COMMIT declaration" >&5
78441$as_echo_n "checking for CTDB_CONTROL_TRANS3_COMMIT declaration... " >&6; }
78442if test "${ac_cv_have_CTDB_CONTROL_TRANS3_COMMIT_decl+set}" = set; then
78443  $as_echo_n "(cached) " >&6
78444else
78445
78446    cat >conftest.$ac_ext <<_ACEOF
78447/* confdefs.h.  */
78448_ACEOF
78449cat confdefs.h >>conftest.$ac_ext
78450cat >>conftest.$ac_ext <<_ACEOF
78451/* end confdefs.h.  */
78452
78453#include "confdefs.h"
78454#define NO_CONFIG_H
78455#include "replace.h"
78456#include "system/wait.h"
78457#include "system/network.h"
78458#include <talloc.h>
78459#include <tdb.h>
78460#include <ctdb.h>
78461#include <ctdb_private.h>
78462
78463int
78464main ()
78465{
78466int i = (int)CTDB_CONTROL_TRANS3_COMMIT
78467  ;
78468  return 0;
78469}
78470_ACEOF
78471rm -f conftest.$ac_objext
78472if { (ac_try="$ac_compile"
78473case "(($ac_try" in
78474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78475  *) ac_try_echo=$ac_try;;
78476esac
78477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78478$as_echo "$ac_try_echo") >&5
78479  (eval "$ac_compile") 2>conftest.er1
78480  ac_status=$?
78481  grep -v '^ *+' conftest.er1 >conftest.err
78482  rm -f conftest.er1
78483  cat conftest.err >&5
78484  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78485  (exit $ac_status); } && {
78486	 test -z "$ac_c_werror_flag" ||
78487	 test ! -s conftest.err
78488       } && test -s conftest.$ac_objext; then
78489  ac_cv_have_CTDB_CONTROL_TRANS3_COMMIT_decl=yes
78490else
78491  $as_echo "$as_me: failed program was:" >&5
78492sed 's/^/| /' conftest.$ac_ext >&5
78493
78494	ac_cv_have_CTDB_CONTROL_TRANS3_COMMIT_decl=no
78495fi
78496
78497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78498fi
78499{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_CTDB_CONTROL_TRANS3_COMMIT_decl" >&5
78500$as_echo "$ac_cv_have_CTDB_CONTROL_TRANS3_COMMIT_decl" >&6; }
78501 if test x"$ac_cv_have_CTDB_CONTROL_TRANS3_COMMIT_decl" = x"yes"; then
78502
78503cat >>confdefs.h <<\_ACEOF
78504#define HAVE_CTDB_CONTROL_TRANS3_COMMIT_DECL 1
78505_ACEOF
78506
78507 fi
78508
78509if test x"$ac_cv_have_CTDB_CONTROL_TRANS3_COMMIT_decl" = x"yes"; then
78510	ctdb_broken=no
78511else
78512	ctdb_broken="ctdb transaction support missing or too old"
78513fi
78514
78515# in ctdb 1.0.57 ctdb_control_tcp was temparary renamed to ctdb_tcp_client
78516{ $as_echo "$as_me:$LINENO: checking for struct ctdb_tcp_client" >&5
78517$as_echo_n "checking for struct ctdb_tcp_client... " >&6; }
78518if test "${ac_cv_type_struct_ctdb_tcp_client+set}" = set; then
78519  $as_echo_n "(cached) " >&6
78520else
78521  ac_cv_type_struct_ctdb_tcp_client=no
78522cat >conftest.$ac_ext <<_ACEOF
78523/* confdefs.h.  */
78524_ACEOF
78525cat confdefs.h >>conftest.$ac_ext
78526cat >>conftest.$ac_ext <<_ACEOF
78527/* end confdefs.h.  */
78528
78529#include "confdefs.h"
78530#define NO_CONFIG_H
78531#include "replace.h"
78532#include "system/wait.h"
78533#include "system/network.h"
78534#include <talloc.h>
78535#include <tdb.h>
78536#include <ctdb.h>
78537#include <ctdb_private.h>
78538
78539
78540int
78541main ()
78542{
78543if (sizeof (struct ctdb_tcp_client))
78544       return 0;
78545  ;
78546  return 0;
78547}
78548_ACEOF
78549rm -f conftest.$ac_objext
78550if { (ac_try="$ac_compile"
78551case "(($ac_try" in
78552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78553  *) ac_try_echo=$ac_try;;
78554esac
78555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78556$as_echo "$ac_try_echo") >&5
78557  (eval "$ac_compile") 2>conftest.er1
78558  ac_status=$?
78559  grep -v '^ *+' conftest.er1 >conftest.err
78560  rm -f conftest.er1
78561  cat conftest.err >&5
78562  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78563  (exit $ac_status); } && {
78564	 test -z "$ac_c_werror_flag" ||
78565	 test ! -s conftest.err
78566       } && test -s conftest.$ac_objext; then
78567  cat >conftest.$ac_ext <<_ACEOF
78568/* confdefs.h.  */
78569_ACEOF
78570cat confdefs.h >>conftest.$ac_ext
78571cat >>conftest.$ac_ext <<_ACEOF
78572/* end confdefs.h.  */
78573
78574#include "confdefs.h"
78575#define NO_CONFIG_H
78576#include "replace.h"
78577#include "system/wait.h"
78578#include "system/network.h"
78579#include <talloc.h>
78580#include <tdb.h>
78581#include <ctdb.h>
78582#include <ctdb_private.h>
78583
78584
78585int
78586main ()
78587{
78588if (sizeof ((struct ctdb_tcp_client)))
78589	  return 0;
78590  ;
78591  return 0;
78592}
78593_ACEOF
78594rm -f conftest.$ac_objext
78595if { (ac_try="$ac_compile"
78596case "(($ac_try" in
78597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78598  *) ac_try_echo=$ac_try;;
78599esac
78600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78601$as_echo "$ac_try_echo") >&5
78602  (eval "$ac_compile") 2>conftest.er1
78603  ac_status=$?
78604  grep -v '^ *+' conftest.er1 >conftest.err
78605  rm -f conftest.er1
78606  cat conftest.err >&5
78607  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78608  (exit $ac_status); } && {
78609	 test -z "$ac_c_werror_flag" ||
78610	 test ! -s conftest.err
78611       } && test -s conftest.$ac_objext; then
78612  :
78613else
78614  $as_echo "$as_me: failed program was:" >&5
78615sed 's/^/| /' conftest.$ac_ext >&5
78616
78617	ac_cv_type_struct_ctdb_tcp_client=yes
78618fi
78619
78620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78621else
78622  $as_echo "$as_me: failed program was:" >&5
78623sed 's/^/| /' conftest.$ac_ext >&5
78624
78625
78626fi
78627
78628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78629fi
78630{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_ctdb_tcp_client" >&5
78631$as_echo "$ac_cv_type_struct_ctdb_tcp_client" >&6; }
78632if test "x$ac_cv_type_struct_ctdb_tcp_client" = x""yes; then
78633
78634
78635cat >>confdefs.h <<\_ACEOF
78636#define ctdb_control_tcp ctdb_tcp_client
78637_ACEOF
78638
78639
78640fi
78641
78642
78643{ $as_echo "$as_me:$LINENO: checking for struct ctdb_control_tcp" >&5
78644$as_echo_n "checking for struct ctdb_control_tcp... " >&6; }
78645if test "${ac_cv_type_struct_ctdb_control_tcp+set}" = set; then
78646  $as_echo_n "(cached) " >&6
78647else
78648  ac_cv_type_struct_ctdb_control_tcp=no
78649cat >conftest.$ac_ext <<_ACEOF
78650/* confdefs.h.  */
78651_ACEOF
78652cat confdefs.h >>conftest.$ac_ext
78653cat >>conftest.$ac_ext <<_ACEOF
78654/* end confdefs.h.  */
78655
78656#include "confdefs.h"
78657#define NO_CONFIG_H
78658#include "replace.h"
78659#include "system/wait.h"
78660#include "system/network.h"
78661#include <talloc.h>
78662#include <tdb.h>
78663#include <ctdb.h>
78664#include <ctdb_private.h>
78665
78666
78667int
78668main ()
78669{
78670if (sizeof (struct ctdb_control_tcp))
78671       return 0;
78672  ;
78673  return 0;
78674}
78675_ACEOF
78676rm -f conftest.$ac_objext
78677if { (ac_try="$ac_compile"
78678case "(($ac_try" in
78679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78680  *) ac_try_echo=$ac_try;;
78681esac
78682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78683$as_echo "$ac_try_echo") >&5
78684  (eval "$ac_compile") 2>conftest.er1
78685  ac_status=$?
78686  grep -v '^ *+' conftest.er1 >conftest.err
78687  rm -f conftest.er1
78688  cat conftest.err >&5
78689  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78690  (exit $ac_status); } && {
78691	 test -z "$ac_c_werror_flag" ||
78692	 test ! -s conftest.err
78693       } && test -s conftest.$ac_objext; then
78694  cat >conftest.$ac_ext <<_ACEOF
78695/* confdefs.h.  */
78696_ACEOF
78697cat confdefs.h >>conftest.$ac_ext
78698cat >>conftest.$ac_ext <<_ACEOF
78699/* end confdefs.h.  */
78700
78701#include "confdefs.h"
78702#define NO_CONFIG_H
78703#include "replace.h"
78704#include "system/wait.h"
78705#include "system/network.h"
78706#include <talloc.h>
78707#include <tdb.h>
78708#include <ctdb.h>
78709#include <ctdb_private.h>
78710
78711
78712int
78713main ()
78714{
78715if (sizeof ((struct ctdb_control_tcp)))
78716	  return 0;
78717  ;
78718  return 0;
78719}
78720_ACEOF
78721rm -f conftest.$ac_objext
78722if { (ac_try="$ac_compile"
78723case "(($ac_try" in
78724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78725  *) ac_try_echo=$ac_try;;
78726esac
78727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78728$as_echo "$ac_try_echo") >&5
78729  (eval "$ac_compile") 2>conftest.er1
78730  ac_status=$?
78731  grep -v '^ *+' conftest.er1 >conftest.err
78732  rm -f conftest.er1
78733  cat conftest.err >&5
78734  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78735  (exit $ac_status); } && {
78736	 test -z "$ac_c_werror_flag" ||
78737	 test ! -s conftest.err
78738       } && test -s conftest.$ac_objext; then
78739  :
78740else
78741  $as_echo "$as_me: failed program was:" >&5
78742sed 's/^/| /' conftest.$ac_ext >&5
78743
78744	ac_cv_type_struct_ctdb_control_tcp=yes
78745fi
78746
78747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78748else
78749  $as_echo "$as_me: failed program was:" >&5
78750sed 's/^/| /' conftest.$ac_ext >&5
78751
78752
78753fi
78754
78755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78756fi
78757{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_ctdb_control_tcp" >&5
78758$as_echo "$ac_cv_type_struct_ctdb_control_tcp" >&6; }
78759if test "x$ac_cv_type_struct_ctdb_control_tcp" = x""yes; then
78760
78761
78762cat >>confdefs.h <<\_ACEOF
78763#define HAVE_STRUCT_CTDB_CONTROL_TCP 1
78764_ACEOF
78765
78766
78767else
78768
78769	ctdb_broken="missing struct ctdb_control_tcp"
78770
78771fi
78772
78773
78774{ $as_echo "$as_me:$LINENO: checking for struct ctdb_control_tcp_addr" >&5
78775$as_echo_n "checking for struct ctdb_control_tcp_addr... " >&6; }
78776if test "${ac_cv_type_struct_ctdb_control_tcp_addr+set}" = set; then
78777  $as_echo_n "(cached) " >&6
78778else
78779  ac_cv_type_struct_ctdb_control_tcp_addr=no
78780cat >conftest.$ac_ext <<_ACEOF
78781/* confdefs.h.  */
78782_ACEOF
78783cat confdefs.h >>conftest.$ac_ext
78784cat >>conftest.$ac_ext <<_ACEOF
78785/* end confdefs.h.  */
78786
78787#include "confdefs.h"
78788#define NO_CONFIG_H
78789#include "replace.h"
78790#include "system/wait.h"
78791#include "system/network.h"
78792#include <talloc.h>
78793#include <tdb.h>
78794#include <ctdb.h>
78795#include <ctdb_private.h>
78796
78797
78798int
78799main ()
78800{
78801if (sizeof (struct ctdb_control_tcp_addr))
78802       return 0;
78803  ;
78804  return 0;
78805}
78806_ACEOF
78807rm -f conftest.$ac_objext
78808if { (ac_try="$ac_compile"
78809case "(($ac_try" in
78810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78811  *) ac_try_echo=$ac_try;;
78812esac
78813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78814$as_echo "$ac_try_echo") >&5
78815  (eval "$ac_compile") 2>conftest.er1
78816  ac_status=$?
78817  grep -v '^ *+' conftest.er1 >conftest.err
78818  rm -f conftest.er1
78819  cat conftest.err >&5
78820  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78821  (exit $ac_status); } && {
78822	 test -z "$ac_c_werror_flag" ||
78823	 test ! -s conftest.err
78824       } && test -s conftest.$ac_objext; then
78825  cat >conftest.$ac_ext <<_ACEOF
78826/* confdefs.h.  */
78827_ACEOF
78828cat confdefs.h >>conftest.$ac_ext
78829cat >>conftest.$ac_ext <<_ACEOF
78830/* end confdefs.h.  */
78831
78832#include "confdefs.h"
78833#define NO_CONFIG_H
78834#include "replace.h"
78835#include "system/wait.h"
78836#include "system/network.h"
78837#include <talloc.h>
78838#include <tdb.h>
78839#include <ctdb.h>
78840#include <ctdb_private.h>
78841
78842
78843int
78844main ()
78845{
78846if (sizeof ((struct ctdb_control_tcp_addr)))
78847	  return 0;
78848  ;
78849  return 0;
78850}
78851_ACEOF
78852rm -f conftest.$ac_objext
78853if { (ac_try="$ac_compile"
78854case "(($ac_try" in
78855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
78856  *) ac_try_echo=$ac_try;;
78857esac
78858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
78859$as_echo "$ac_try_echo") >&5
78860  (eval "$ac_compile") 2>conftest.er1
78861  ac_status=$?
78862  grep -v '^ *+' conftest.er1 >conftest.err
78863  rm -f conftest.er1
78864  cat conftest.err >&5
78865  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
78866  (exit $ac_status); } && {
78867	 test -z "$ac_c_werror_flag" ||
78868	 test ! -s conftest.err
78869       } && test -s conftest.$ac_objext; then
78870  :
78871else
78872  $as_echo "$as_me: failed program was:" >&5
78873sed 's/^/| /' conftest.$ac_ext >&5
78874
78875	ac_cv_type_struct_ctdb_control_tcp_addr=yes
78876fi
78877
78878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78879else
78880  $as_echo "$as_me: failed program was:" >&5
78881sed 's/^/| /' conftest.$ac_ext >&5
78882
78883
78884fi
78885
78886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78887fi
78888{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_ctdb_control_tcp_addr" >&5
78889$as_echo "$ac_cv_type_struct_ctdb_control_tcp_addr" >&6; }
78890if test "x$ac_cv_type_struct_ctdb_control_tcp_addr" = x""yes; then
78891
78892
78893cat >>confdefs.h <<\_ACEOF
78894#define HAVE_STRUCT_CTDB_CONTROL_TCP_ADDR 1
78895_ACEOF
78896
78897
78898fi
78899
78900CPPFLAGS="$SAVED_CPPFLAGS"
78901
78902{ $as_echo "$as_me:$LINENO: checking cluster support" >&5
78903$as_echo_n "checking cluster support... " >&6; }
78904
78905# Check whether --with-cluster-support was given.
78906if test "${with_cluster_support+set}" = set; then
78907  withval=$with_cluster_support;
78908fi
78909
78910
78911if test x"$with_cluster_support" = x ; then
78912	with_cluster_support="auto"
78913fi
78914
78915if test x"$ac_cv_header_ctdb_private_h" != x"yes"; then
78916	if test "x$with_cluster_support" = "xyes"; then
78917		{ { $as_echo "$as_me:$LINENO: error: \"ctdb_private.h is required for cluster support\"" >&5
78918$as_echo "$as_me: error: \"ctdb_private.h is required for cluster support\"" >&2;}
78919   { (exit 1); exit 1; }; }
78920	fi
78921	with_cluster_support=no
78922fi
78923
78924if test x"$ctdb_broken" != x"no"; then
78925	if test "x$with_cluster_support" = "xyes"; then
78926		{ { $as_echo "$as_me:$LINENO: error: \"cluster support: $ctdb_broken\"" >&5
78927$as_echo "$as_me: error: \"cluster support: $ctdb_broken\"" >&2;}
78928   { (exit 1); exit 1; }; }
78929	fi
78930	with_cluster_support=no
78931fi
78932
78933if test "x$with_cluster_support" != "xno"; then
78934
78935cat >>confdefs.h <<\_ACEOF
78936#define CLUSTER_SUPPORT 1
78937_ACEOF
78938
78939    SAMBA_CPPFLAGS="${SAMBA_CPPFLAGS} ${CTDB_CPPFLAGS}"
78940    { $as_echo "$as_me:$LINENO: result: yes" >&5
78941$as_echo "yes" >&6; }
78942else
78943    { $as_echo "$as_me:$LINENO: result: no" >&5
78944$as_echo "no" >&6; }
78945fi
78946
78947#################################################
78948# check for ACL support
78949
78950{ $as_echo "$as_me:$LINENO: checking whether to support ACLs" >&5
78951$as_echo_n "checking whether to support ACLs... " >&6; }
78952
78953# Check whether --with-acl-support was given.
78954if test "${with_acl_support+set}" = set; then
78955  withval=$with_acl_support;  case "$withval" in
78956	yes|no)
78957		with_acl_support="$withval"
78958		;;
78959  esac
78960fi
78961
78962
78963if test x"$with_acl_support" = x ; then
78964	with_acl_support="auto"
78965fi
78966
78967{ $as_echo "$as_me:$LINENO: result: $with_acl_support" >&5
78968$as_echo "$with_acl_support" >&6; }
78969
78970if test x"$with_acl_support" = x"no"; then
78971	{ $as_echo "$as_me:$LINENO: result: Disabling ACL support" >&5
78972$as_echo "Disabling ACL support" >&6; }
78973
78974cat >>confdefs.h <<\_ACEOF
78975#define HAVE_NO_ACLS 1
78976_ACEOF
78977
78978else
78979	{ $as_echo "$as_me:$LINENO: checking whether ACL support is available:" >&5
78980$as_echo "$as_me: checking whether ACL support is available:" >&6;}
78981	case "$host_os" in
78982	*sysv5*)
78983		{ $as_echo "$as_me:$LINENO: Using UnixWare ACLs" >&5
78984$as_echo "$as_me: Using UnixWare ACLs" >&6;}
78985
78986cat >>confdefs.h <<\_ACEOF
78987#define HAVE_UNIXWARE_ACLS 1
78988_ACEOF
78989
78990		default_static_modules="$default_static_modules vfs_solarisacl"
78991		;;
78992	*solaris*)
78993		{ $as_echo "$as_me:$LINENO: Using solaris ACLs" >&5
78994$as_echo "$as_me: Using solaris ACLs" >&6;}
78995
78996cat >>confdefs.h <<\_ACEOF
78997#define HAVE_SOLARIS_ACLS 1
78998_ACEOF
78999
79000		ACL_LIBS="$ACL_LIBS -lsec"
79001		default_static_modules="$default_static_modules vfs_solarisacl"
79002		;;
79003	*hpux*)
79004		{ $as_echo "$as_me:$LINENO: Using HPUX ACLs" >&5
79005$as_echo "$as_me: Using HPUX ACLs" >&6;}
79006
79007cat >>confdefs.h <<\_ACEOF
79008#define HAVE_HPUX_ACLS 1
79009_ACEOF
79010
79011		default_static_modules="$default_static_modules vfs_hpuxacl"
79012		;;
79013	*irix*)
79014		{ $as_echo "$as_me:$LINENO: Using IRIX ACLs" >&5
79015$as_echo "$as_me: Using IRIX ACLs" >&6;}
79016
79017cat >>confdefs.h <<\_ACEOF
79018#define HAVE_IRIX_ACLS 1
79019_ACEOF
79020
79021		default_static_modules="$default_static_modules vfs_irixacl"
79022		;;
79023	*aix*)
79024		{ $as_echo "$as_me:$LINENO: Using AIX ACLs" >&5
79025$as_echo "$as_me: Using AIX ACLs" >&6;}
79026
79027cat >>confdefs.h <<\_ACEOF
79028#define HAVE_AIX_ACLS 1
79029_ACEOF
79030
79031		default_static_modules="$default_static_modules vfs_aixacl"
79032		;;
79033	*osf*)
79034		{ $as_echo "$as_me:$LINENO: Using Tru64 ACLs" >&5
79035$as_echo "$as_me: Using Tru64 ACLs" >&6;}
79036
79037cat >>confdefs.h <<\_ACEOF
79038#define HAVE_TRU64_ACLS 1
79039_ACEOF
79040
79041		ACL_LIBS="$ACL_LIBS -lpacl"
79042		default_static_modules="$default_static_modules vfs_tru64acl"
79043		;;
79044	*darwin*)
79045		{ $as_echo "$as_me:$LINENO: ACLs on Darwin currently not supported" >&5
79046$as_echo "$as_me: ACLs on Darwin currently not supported" >&6;}
79047
79048cat >>confdefs.h <<\_ACEOF
79049#define HAVE_NO_ACLS 1
79050_ACEOF
79051
79052		;;
79053	*)
79054		{ $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
79055$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
79056if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
79057  $as_echo_n "(cached) " >&6
79058else
79059  ac_check_lib_save_LIBS=$LIBS
79060LIBS="-lacl  $LIBS"
79061cat >conftest.$ac_ext <<_ACEOF
79062/* confdefs.h.  */
79063_ACEOF
79064cat confdefs.h >>conftest.$ac_ext
79065cat >>conftest.$ac_ext <<_ACEOF
79066/* end confdefs.h.  */
79067
79068/* Override any GCC internal prototype to avoid an error.
79069   Use char because int might match the return type of a GCC
79070   builtin and then its argument prototype would still apply.  */
79071#ifdef __cplusplus
79072extern "C"
79073#endif
79074char acl_get_file ();
79075int
79076main ()
79077{
79078return acl_get_file ();
79079  ;
79080  return 0;
79081}
79082_ACEOF
79083rm -f conftest.$ac_objext conftest$ac_exeext
79084if { (ac_try="$ac_link"
79085case "(($ac_try" in
79086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79087  *) ac_try_echo=$ac_try;;
79088esac
79089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79090$as_echo "$ac_try_echo") >&5
79091  (eval "$ac_link") 2>conftest.er1
79092  ac_status=$?
79093  grep -v '^ *+' conftest.er1 >conftest.err
79094  rm -f conftest.er1
79095  cat conftest.err >&5
79096  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79097  (exit $ac_status); } && {
79098	 test -z "$ac_c_werror_flag" ||
79099	 test ! -s conftest.err
79100       } && test -s conftest$ac_exeext && {
79101	 test "$cross_compiling" = yes ||
79102	 $as_test_x conftest$ac_exeext
79103       }; then
79104  ac_cv_lib_acl_acl_get_file=yes
79105else
79106  $as_echo "$as_me: failed program was:" >&5
79107sed 's/^/| /' conftest.$ac_ext >&5
79108
79109	ac_cv_lib_acl_acl_get_file=no
79110fi
79111
79112rm -rf conftest.dSYM
79113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79114      conftest$ac_exeext conftest.$ac_ext
79115LIBS=$ac_check_lib_save_LIBS
79116fi
79117{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
79118$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
79119if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
79120  ACL_LIBS="$ACL_LIBS -lacl"
79121fi
79122
79123		case "$host_os" in
79124		*linux*)
79125			{ $as_echo "$as_me:$LINENO: checking for getxattr in -lattr" >&5
79126$as_echo_n "checking for getxattr in -lattr... " >&6; }
79127if test "${ac_cv_lib_attr_getxattr+set}" = set; then
79128  $as_echo_n "(cached) " >&6
79129else
79130  ac_check_lib_save_LIBS=$LIBS
79131LIBS="-lattr  $LIBS"
79132cat >conftest.$ac_ext <<_ACEOF
79133/* confdefs.h.  */
79134_ACEOF
79135cat confdefs.h >>conftest.$ac_ext
79136cat >>conftest.$ac_ext <<_ACEOF
79137/* end confdefs.h.  */
79138
79139/* Override any GCC internal prototype to avoid an error.
79140   Use char because int might match the return type of a GCC
79141   builtin and then its argument prototype would still apply.  */
79142#ifdef __cplusplus
79143extern "C"
79144#endif
79145char getxattr ();
79146int
79147main ()
79148{
79149return getxattr ();
79150  ;
79151  return 0;
79152}
79153_ACEOF
79154rm -f conftest.$ac_objext conftest$ac_exeext
79155if { (ac_try="$ac_link"
79156case "(($ac_try" in
79157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79158  *) ac_try_echo=$ac_try;;
79159esac
79160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79161$as_echo "$ac_try_echo") >&5
79162  (eval "$ac_link") 2>conftest.er1
79163  ac_status=$?
79164  grep -v '^ *+' conftest.er1 >conftest.err
79165  rm -f conftest.er1
79166  cat conftest.err >&5
79167  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79168  (exit $ac_status); } && {
79169	 test -z "$ac_c_werror_flag" ||
79170	 test ! -s conftest.err
79171       } && test -s conftest$ac_exeext && {
79172	 test "$cross_compiling" = yes ||
79173	 $as_test_x conftest$ac_exeext
79174       }; then
79175  ac_cv_lib_attr_getxattr=yes
79176else
79177  $as_echo "$as_me: failed program was:" >&5
79178sed 's/^/| /' conftest.$ac_ext >&5
79179
79180	ac_cv_lib_attr_getxattr=no
79181fi
79182
79183rm -rf conftest.dSYM
79184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79185      conftest$ac_exeext conftest.$ac_ext
79186LIBS=$ac_check_lib_save_LIBS
79187fi
79188{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_getxattr" >&5
79189$as_echo "$ac_cv_lib_attr_getxattr" >&6; }
79190if test "x$ac_cv_lib_attr_getxattr" = x""yes; then
79191  ACL_LIBS="$ACL_LIBS -lattr"
79192fi
79193
79194			;;
79195		esac
79196		{ $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
79197$as_echo_n "checking for POSIX ACL support... " >&6; }
79198if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
79199  $as_echo_n "(cached) " >&6
79200else
79201
79202			acl_LIBS=$LIBS
79203			LIBS="$LIBS $ACL_LIBS"
79204			cat >conftest.$ac_ext <<_ACEOF
79205/* confdefs.h.  */
79206_ACEOF
79207cat confdefs.h >>conftest.$ac_ext
79208cat >>conftest.$ac_ext <<_ACEOF
79209/* end confdefs.h.  */
79210
79211				#include <sys/types.h>
79212				#include <sys/acl.h>
79213
79214int
79215main ()
79216{
79217
79218				acl_t acl;
79219				int entry_id;
79220				acl_entry_t *entry_p;
79221				return acl_get_entry(acl, entry_id, entry_p);
79222
79223  ;
79224  return 0;
79225}
79226_ACEOF
79227rm -f conftest.$ac_objext conftest$ac_exeext
79228if { (ac_try="$ac_link"
79229case "(($ac_try" in
79230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79231  *) ac_try_echo=$ac_try;;
79232esac
79233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79234$as_echo "$ac_try_echo") >&5
79235  (eval "$ac_link") 2>conftest.er1
79236  ac_status=$?
79237  grep -v '^ *+' conftest.er1 >conftest.err
79238  rm -f conftest.er1
79239  cat conftest.err >&5
79240  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79241  (exit $ac_status); } && {
79242	 test -z "$ac_c_werror_flag" ||
79243	 test ! -s conftest.err
79244       } && test -s conftest$ac_exeext && {
79245	 test "$cross_compiling" = yes ||
79246	 $as_test_x conftest$ac_exeext
79247       }; then
79248  samba_cv_HAVE_POSIX_ACLS=yes
79249else
79250  $as_echo "$as_me: failed program was:" >&5
79251sed 's/^/| /' conftest.$ac_ext >&5
79252
79253	samba_cv_HAVE_POSIX_ACLS=no
79254fi
79255
79256rm -rf conftest.dSYM
79257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79258      conftest$ac_exeext conftest.$ac_ext
79259			LIBS=$acl_LIBS
79260
79261fi
79262{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
79263$as_echo "$samba_cv_HAVE_POSIX_ACLS" >&6; }
79264		if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
79265			{ $as_echo "$as_me:$LINENO: Using posix ACLs" >&5
79266$as_echo "$as_me: Using posix ACLs" >&6;}
79267
79268cat >>confdefs.h <<\_ACEOF
79269#define HAVE_POSIX_ACLS 1
79270_ACEOF
79271
79272			{ $as_echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
79273$as_echo_n "checking for acl_get_perm_np... " >&6; }
79274if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
79275  $as_echo_n "(cached) " >&6
79276else
79277
79278				acl_LIBS=$LIBS
79279				LIBS="$LIBS $ACL_LIBS"
79280				cat >conftest.$ac_ext <<_ACEOF
79281/* confdefs.h.  */
79282_ACEOF
79283cat confdefs.h >>conftest.$ac_ext
79284cat >>conftest.$ac_ext <<_ACEOF
79285/* end confdefs.h.  */
79286
79287					#include <sys/types.h>
79288					#include <sys/acl.h>
79289
79290int
79291main ()
79292{
79293
79294					acl_permset_t permset_d;
79295					acl_perm_t perm;
79296					return acl_get_perm_np(permset_d, perm);
79297
79298  ;
79299  return 0;
79300}
79301_ACEOF
79302rm -f conftest.$ac_objext conftest$ac_exeext
79303if { (ac_try="$ac_link"
79304case "(($ac_try" in
79305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79306  *) ac_try_echo=$ac_try;;
79307esac
79308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79309$as_echo "$ac_try_echo") >&5
79310  (eval "$ac_link") 2>conftest.er1
79311  ac_status=$?
79312  grep -v '^ *+' conftest.er1 >conftest.err
79313  rm -f conftest.er1
79314  cat conftest.err >&5
79315  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79316  (exit $ac_status); } && {
79317	 test -z "$ac_c_werror_flag" ||
79318	 test ! -s conftest.err
79319       } && test -s conftest$ac_exeext && {
79320	 test "$cross_compiling" = yes ||
79321	 $as_test_x conftest$ac_exeext
79322       }; then
79323  samba_cv_HAVE_ACL_GET_PERM_NP=yes
79324else
79325  $as_echo "$as_me: failed program was:" >&5
79326sed 's/^/| /' conftest.$ac_ext >&5
79327
79328	samba_cv_HAVE_ACL_GET_PERM_NP=no
79329fi
79330
79331rm -rf conftest.dSYM
79332rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79333      conftest$ac_exeext conftest.$ac_ext
79334				LIBS=$acl_LIBS
79335
79336fi
79337{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
79338$as_echo "$samba_cv_HAVE_ACL_GET_PERM_NP" >&6; }
79339			if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
79340
79341cat >>confdefs.h <<\_ACEOF
79342#define HAVE_ACL_GET_PERM_NP 1
79343_ACEOF
79344
79345			fi
79346   			default_static_modules="$default_static_modules vfs_posixacl"
79347		else
79348			{ $as_echo "$as_me:$LINENO: ACL support is not avaliable" >&5
79349$as_echo "$as_me: ACL support is not avaliable" >&6;}
79350
79351cat >>confdefs.h <<\_ACEOF
79352#define HAVE_NO_ACLS 1
79353_ACEOF
79354
79355		fi
79356		;;
79357        esac
79358fi # with_acl_support
79359
79360
79361
79362#################################################
79363# check for AIO support
79364
79365{ $as_echo "$as_me:$LINENO: checking whether to support asynchronous io" >&5
79366$as_echo_n "checking whether to support asynchronous io... " >&6; }
79367
79368# Check whether --with-aio-support was given.
79369if test "${with_aio_support+set}" = set; then
79370  withval=$with_aio_support;  case "$withval" in
79371  yes)
79372
79373	{ $as_echo "$as_me:$LINENO: result: yes" >&5
79374$as_echo "yes" >&6; }
79375	case "$host_os" in
79376	*)
79377		AIO_LIBS=$LIBS
79378		{ $as_echo "$as_me:$LINENO: checking for aio_read in -lrt" >&5
79379$as_echo_n "checking for aio_read in -lrt... " >&6; }
79380if test "${ac_cv_lib_rt_aio_read+set}" = set; then
79381  $as_echo_n "(cached) " >&6
79382else
79383  ac_check_lib_save_LIBS=$LIBS
79384LIBS="-lrt  $LIBS"
79385cat >conftest.$ac_ext <<_ACEOF
79386/* confdefs.h.  */
79387_ACEOF
79388cat confdefs.h >>conftest.$ac_ext
79389cat >>conftest.$ac_ext <<_ACEOF
79390/* end confdefs.h.  */
79391
79392/* Override any GCC internal prototype to avoid an error.
79393   Use char because int might match the return type of a GCC
79394   builtin and then its argument prototype would still apply.  */
79395#ifdef __cplusplus
79396extern "C"
79397#endif
79398char aio_read ();
79399int
79400main ()
79401{
79402return aio_read ();
79403  ;
79404  return 0;
79405}
79406_ACEOF
79407rm -f conftest.$ac_objext conftest$ac_exeext
79408if { (ac_try="$ac_link"
79409case "(($ac_try" in
79410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79411  *) ac_try_echo=$ac_try;;
79412esac
79413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79414$as_echo "$ac_try_echo") >&5
79415  (eval "$ac_link") 2>conftest.er1
79416  ac_status=$?
79417  grep -v '^ *+' conftest.er1 >conftest.err
79418  rm -f conftest.er1
79419  cat conftest.err >&5
79420  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79421  (exit $ac_status); } && {
79422	 test -z "$ac_c_werror_flag" ||
79423	 test ! -s conftest.err
79424       } && test -s conftest$ac_exeext && {
79425	 test "$cross_compiling" = yes ||
79426	 $as_test_x conftest$ac_exeext
79427       }; then
79428  ac_cv_lib_rt_aio_read=yes
79429else
79430  $as_echo "$as_me: failed program was:" >&5
79431sed 's/^/| /' conftest.$ac_ext >&5
79432
79433	ac_cv_lib_rt_aio_read=no
79434fi
79435
79436rm -rf conftest.dSYM
79437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79438      conftest$ac_exeext conftest.$ac_ext
79439LIBS=$ac_check_lib_save_LIBS
79440fi
79441{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_aio_read" >&5
79442$as_echo "$ac_cv_lib_rt_aio_read" >&6; }
79443if test "x$ac_cv_lib_rt_aio_read" = x""yes; then
79444  AIO_LIBS="$LIBS -lrt"
79445fi
79446
79447		{ $as_echo "$as_me:$LINENO: checking for aio_read in -laio" >&5
79448$as_echo_n "checking for aio_read in -laio... " >&6; }
79449if test "${ac_cv_lib_aio_aio_read+set}" = set; then
79450  $as_echo_n "(cached) " >&6
79451else
79452  ac_check_lib_save_LIBS=$LIBS
79453LIBS="-laio  $LIBS"
79454cat >conftest.$ac_ext <<_ACEOF
79455/* confdefs.h.  */
79456_ACEOF
79457cat confdefs.h >>conftest.$ac_ext
79458cat >>conftest.$ac_ext <<_ACEOF
79459/* end confdefs.h.  */
79460
79461/* Override any GCC internal prototype to avoid an error.
79462   Use char because int might match the return type of a GCC
79463   builtin and then its argument prototype would still apply.  */
79464#ifdef __cplusplus
79465extern "C"
79466#endif
79467char aio_read ();
79468int
79469main ()
79470{
79471return aio_read ();
79472  ;
79473  return 0;
79474}
79475_ACEOF
79476rm -f conftest.$ac_objext conftest$ac_exeext
79477if { (ac_try="$ac_link"
79478case "(($ac_try" in
79479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79480  *) ac_try_echo=$ac_try;;
79481esac
79482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79483$as_echo "$ac_try_echo") >&5
79484  (eval "$ac_link") 2>conftest.er1
79485  ac_status=$?
79486  grep -v '^ *+' conftest.er1 >conftest.err
79487  rm -f conftest.er1
79488  cat conftest.err >&5
79489  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79490  (exit $ac_status); } && {
79491	 test -z "$ac_c_werror_flag" ||
79492	 test ! -s conftest.err
79493       } && test -s conftest$ac_exeext && {
79494	 test "$cross_compiling" = yes ||
79495	 $as_test_x conftest$ac_exeext
79496       }; then
79497  ac_cv_lib_aio_aio_read=yes
79498else
79499  $as_echo "$as_me: failed program was:" >&5
79500sed 's/^/| /' conftest.$ac_ext >&5
79501
79502	ac_cv_lib_aio_aio_read=no
79503fi
79504
79505rm -rf conftest.dSYM
79506rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79507      conftest$ac_exeext conftest.$ac_ext
79508LIBS=$ac_check_lib_save_LIBS
79509fi
79510{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_aio_aio_read" >&5
79511$as_echo "$ac_cv_lib_aio_aio_read" >&6; }
79512if test "x$ac_cv_lib_aio_aio_read" = x""yes; then
79513  AIO_LIBS="$LIBS -laio"
79514fi
79515
79516		{ $as_echo "$as_me:$LINENO: checking for asynchronous io support" >&5
79517$as_echo_n "checking for asynchronous io support... " >&6; }
79518if test "${samba_cv_HAVE_AIO+set}" = set; then
79519  $as_echo_n "(cached) " >&6
79520else
79521
79522		aio_LIBS=$LIBS
79523		LIBS=$AIO_LIBS
79524		cat >conftest.$ac_ext <<_ACEOF
79525/* confdefs.h.  */
79526_ACEOF
79527cat confdefs.h >>conftest.$ac_ext
79528cat >>conftest.$ac_ext <<_ACEOF
79529/* end confdefs.h.  */
79530#include <sys/types.h>
79531#include <aio.h>
79532int
79533main ()
79534{
79535 struct aiocb a; return aio_read(&a);
79536  ;
79537  return 0;
79538}
79539_ACEOF
79540rm -f conftest.$ac_objext conftest$ac_exeext
79541if { (ac_try="$ac_link"
79542case "(($ac_try" in
79543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79544  *) ac_try_echo=$ac_try;;
79545esac
79546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79547$as_echo "$ac_try_echo") >&5
79548  (eval "$ac_link") 2>conftest.er1
79549  ac_status=$?
79550  grep -v '^ *+' conftest.er1 >conftest.err
79551  rm -f conftest.er1
79552  cat conftest.err >&5
79553  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79554  (exit $ac_status); } && {
79555	 test -z "$ac_c_werror_flag" ||
79556	 test ! -s conftest.err
79557       } && test -s conftest$ac_exeext && {
79558	 test "$cross_compiling" = yes ||
79559	 $as_test_x conftest$ac_exeext
79560       }; then
79561  samba_cv_HAVE_AIO=yes
79562else
79563  $as_echo "$as_me: failed program was:" >&5
79564sed 's/^/| /' conftest.$ac_ext >&5
79565
79566	samba_cv_HAVE_AIO=no
79567fi
79568
79569rm -rf conftest.dSYM
79570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79571      conftest$ac_exeext conftest.$ac_ext
79572		LIBS=$aio_LIBS
79573fi
79574{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_AIO" >&5
79575$as_echo "$samba_cv_HAVE_AIO" >&6; }
79576		{ $as_echo "$as_me:$LINENO: checking for 64-bit asynchronous io support" >&5
79577$as_echo_n "checking for 64-bit asynchronous io support... " >&6; }
79578if test "${samba_cv_HAVE_AIO64+set}" = set; then
79579  $as_echo_n "(cached) " >&6
79580else
79581
79582		aio_LIBS=$LIBS
79583		LIBS=$AIO_LIBS
79584		cat >conftest.$ac_ext <<_ACEOF
79585/* confdefs.h.  */
79586_ACEOF
79587cat confdefs.h >>conftest.$ac_ext
79588cat >>conftest.$ac_ext <<_ACEOF
79589/* end confdefs.h.  */
79590#include <sys/types.h>
79591#include <aio.h>
79592int
79593main ()
79594{
79595 struct aiocb64 a; return aio_read64(&a);
79596  ;
79597  return 0;
79598}
79599_ACEOF
79600rm -f conftest.$ac_objext conftest$ac_exeext
79601if { (ac_try="$ac_link"
79602case "(($ac_try" in
79603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79604  *) ac_try_echo=$ac_try;;
79605esac
79606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79607$as_echo "$ac_try_echo") >&5
79608  (eval "$ac_link") 2>conftest.er1
79609  ac_status=$?
79610  grep -v '^ *+' conftest.er1 >conftest.err
79611  rm -f conftest.er1
79612  cat conftest.err >&5
79613  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79614  (exit $ac_status); } && {
79615	 test -z "$ac_c_werror_flag" ||
79616	 test ! -s conftest.err
79617       } && test -s conftest$ac_exeext && {
79618	 test "$cross_compiling" = yes ||
79619	 $as_test_x conftest$ac_exeext
79620       }; then
79621  samba_cv_HAVE_AIO64=yes
79622else
79623  $as_echo "$as_me: failed program was:" >&5
79624sed 's/^/| /' conftest.$ac_ext >&5
79625
79626	samba_cv_HAVE_AIO64=no
79627fi
79628
79629rm -rf conftest.dSYM
79630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79631      conftest$ac_exeext conftest.$ac_ext
79632		LIBS=$aio_LIBS
79633fi
79634{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_AIO64" >&5
79635$as_echo "$samba_cv_HAVE_AIO64" >&6; }
79636		if test x"$samba_cv_HAVE_AIO64" = x"yes"; then
79637
79638cat >>confdefs.h <<\_ACEOF
79639#define HAVE_AIOCB64 1
79640_ACEOF
79641
79642
79643cat >>confdefs.h <<\_ACEOF
79644#define WITH_AIO 1
79645_ACEOF
79646
79647			LIBS=$AIO_LIBS
79648		elif test x"$samba_cv_HAVE_AIO" = x"yes"; then
79649
79650cat >>confdefs.h <<\_ACEOF
79651#define WITH_AIO 1
79652_ACEOF
79653
79654			LIBS=$AIO_LIBS
79655		fi
79656
79657		if test x"$samba_cv_HAVE_AIO" = x"yes"; then
79658			{ $as_echo "$as_me:$LINENO: checking for aio_read" >&5
79659$as_echo_n "checking for aio_read... " >&6; }
79660			cat >conftest.$ac_ext <<_ACEOF
79661#include <aio.h>
79662int main() { struct aiocb a; return aio_read(&a); }
79663_ACEOF
79664rm -f conftest.$ac_objext conftest$ac_exeext
79665if { (ac_try="$ac_link"
79666case "(($ac_try" in
79667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79668  *) ac_try_echo=$ac_try;;
79669esac
79670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79671$as_echo "$ac_try_echo") >&5
79672  (eval "$ac_link") 2>conftest.er1
79673  ac_status=$?
79674  grep -v '^ *+' conftest.er1 >conftest.err
79675  rm -f conftest.er1
79676  cat conftest.err >&5
79677  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79678  (exit $ac_status); } && {
79679	 test -z "$ac_c_werror_flag" ||
79680	 test ! -s conftest.err
79681       } && test -s conftest$ac_exeext && {
79682	 test "$cross_compiling" = yes ||
79683	 $as_test_x conftest$ac_exeext
79684       }; then
79685
79686cat >>confdefs.h <<\_ACEOF
79687#define HAVE_AIO_READ 1
79688_ACEOF
79689 { $as_echo "$as_me:$LINENO: result: yes" >&5
79690$as_echo "yes" >&6; }
79691else
79692  $as_echo "$as_me: failed program was:" >&5
79693sed 's/^/| /' conftest.$ac_ext >&5
79694
79695	{ $as_echo "$as_me:$LINENO: result: no" >&5
79696$as_echo "no" >&6; }
79697fi
79698
79699rm -rf conftest.dSYM
79700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79701      conftest$ac_exeext conftest.$ac_ext
79702
79703			{ $as_echo "$as_me:$LINENO: checking for aio_write" >&5
79704$as_echo_n "checking for aio_write... " >&6; }
79705			cat >conftest.$ac_ext <<_ACEOF
79706#include <aio.h>
79707int main() { struct aiocb a; return aio_write(&a); }
79708_ACEOF
79709rm -f conftest.$ac_objext conftest$ac_exeext
79710if { (ac_try="$ac_link"
79711case "(($ac_try" in
79712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79713  *) ac_try_echo=$ac_try;;
79714esac
79715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79716$as_echo "$ac_try_echo") >&5
79717  (eval "$ac_link") 2>conftest.er1
79718  ac_status=$?
79719  grep -v '^ *+' conftest.er1 >conftest.err
79720  rm -f conftest.er1
79721  cat conftest.err >&5
79722  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79723  (exit $ac_status); } && {
79724	 test -z "$ac_c_werror_flag" ||
79725	 test ! -s conftest.err
79726       } && test -s conftest$ac_exeext && {
79727	 test "$cross_compiling" = yes ||
79728	 $as_test_x conftest$ac_exeext
79729       }; then
79730
79731cat >>confdefs.h <<\_ACEOF
79732#define HAVE_AIO_WRITE 1
79733_ACEOF
79734 { $as_echo "$as_me:$LINENO: result: yes" >&5
79735$as_echo "yes" >&6; }
79736else
79737  $as_echo "$as_me: failed program was:" >&5
79738sed 's/^/| /' conftest.$ac_ext >&5
79739
79740	{ $as_echo "$as_me:$LINENO: result: no" >&5
79741$as_echo "no" >&6; }
79742fi
79743
79744rm -rf conftest.dSYM
79745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79746      conftest$ac_exeext conftest.$ac_ext
79747
79748			{ $as_echo "$as_me:$LINENO: checking for aio_fsync" >&5
79749$as_echo_n "checking for aio_fsync... " >&6; }
79750			cat >conftest.$ac_ext <<_ACEOF
79751#include <aio.h>
79752int main() { struct aiocb a; return aio_fsync(1, &a); }
79753_ACEOF
79754rm -f conftest.$ac_objext conftest$ac_exeext
79755if { (ac_try="$ac_link"
79756case "(($ac_try" in
79757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79758  *) ac_try_echo=$ac_try;;
79759esac
79760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79761$as_echo "$ac_try_echo") >&5
79762  (eval "$ac_link") 2>conftest.er1
79763  ac_status=$?
79764  grep -v '^ *+' conftest.er1 >conftest.err
79765  rm -f conftest.er1
79766  cat conftest.err >&5
79767  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79768  (exit $ac_status); } && {
79769	 test -z "$ac_c_werror_flag" ||
79770	 test ! -s conftest.err
79771       } && test -s conftest$ac_exeext && {
79772	 test "$cross_compiling" = yes ||
79773	 $as_test_x conftest$ac_exeext
79774       }; then
79775
79776cat >>confdefs.h <<\_ACEOF
79777#define HAVE_AIO_FSYNC 1
79778_ACEOF
79779 { $as_echo "$as_me:$LINENO: result: yes" >&5
79780$as_echo "yes" >&6; }
79781else
79782  $as_echo "$as_me: failed program was:" >&5
79783sed 's/^/| /' conftest.$ac_ext >&5
79784
79785	{ $as_echo "$as_me:$LINENO: result: no" >&5
79786$as_echo "no" >&6; }
79787fi
79788
79789rm -rf conftest.dSYM
79790rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79791      conftest$ac_exeext conftest.$ac_ext
79792
79793			{ $as_echo "$as_me:$LINENO: checking for aio_return" >&5
79794$as_echo_n "checking for aio_return... " >&6; }
79795			cat >conftest.$ac_ext <<_ACEOF
79796#include <aio.h>
79797int main() { struct aiocb a; return aio_return(&a); }
79798_ACEOF
79799rm -f conftest.$ac_objext conftest$ac_exeext
79800if { (ac_try="$ac_link"
79801case "(($ac_try" in
79802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79803  *) ac_try_echo=$ac_try;;
79804esac
79805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79806$as_echo "$ac_try_echo") >&5
79807  (eval "$ac_link") 2>conftest.er1
79808  ac_status=$?
79809  grep -v '^ *+' conftest.er1 >conftest.err
79810  rm -f conftest.er1
79811  cat conftest.err >&5
79812  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79813  (exit $ac_status); } && {
79814	 test -z "$ac_c_werror_flag" ||
79815	 test ! -s conftest.err
79816       } && test -s conftest$ac_exeext && {
79817	 test "$cross_compiling" = yes ||
79818	 $as_test_x conftest$ac_exeext
79819       }; then
79820
79821cat >>confdefs.h <<\_ACEOF
79822#define HAVE_AIO_RETURN 1
79823_ACEOF
79824 { $as_echo "$as_me:$LINENO: result: yes" >&5
79825$as_echo "yes" >&6; }
79826else
79827  $as_echo "$as_me: failed program was:" >&5
79828sed 's/^/| /' conftest.$ac_ext >&5
79829
79830	{ $as_echo "$as_me:$LINENO: result: no" >&5
79831$as_echo "no" >&6; }
79832fi
79833
79834rm -rf conftest.dSYM
79835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79836      conftest$ac_exeext conftest.$ac_ext
79837
79838			{ $as_echo "$as_me:$LINENO: checking for aio_error" >&5
79839$as_echo_n "checking for aio_error... " >&6; }
79840			cat >conftest.$ac_ext <<_ACEOF
79841#include <aio.h>
79842int main() { struct aiocb a; return aio_error(&a); }
79843_ACEOF
79844rm -f conftest.$ac_objext conftest$ac_exeext
79845if { (ac_try="$ac_link"
79846case "(($ac_try" in
79847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79848  *) ac_try_echo=$ac_try;;
79849esac
79850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79851$as_echo "$ac_try_echo") >&5
79852  (eval "$ac_link") 2>conftest.er1
79853  ac_status=$?
79854  grep -v '^ *+' conftest.er1 >conftest.err
79855  rm -f conftest.er1
79856  cat conftest.err >&5
79857  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79858  (exit $ac_status); } && {
79859	 test -z "$ac_c_werror_flag" ||
79860	 test ! -s conftest.err
79861       } && test -s conftest$ac_exeext && {
79862	 test "$cross_compiling" = yes ||
79863	 $as_test_x conftest$ac_exeext
79864       }; then
79865
79866cat >>confdefs.h <<\_ACEOF
79867#define HAVE_AIO_ERROR 1
79868_ACEOF
79869 { $as_echo "$as_me:$LINENO: result: yes" >&5
79870$as_echo "yes" >&6; }
79871else
79872  $as_echo "$as_me: failed program was:" >&5
79873sed 's/^/| /' conftest.$ac_ext >&5
79874
79875	{ $as_echo "$as_me:$LINENO: result: no" >&5
79876$as_echo "no" >&6; }
79877fi
79878
79879rm -rf conftest.dSYM
79880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79881      conftest$ac_exeext conftest.$ac_ext
79882
79883			{ $as_echo "$as_me:$LINENO: checking for aio_cancel" >&5
79884$as_echo_n "checking for aio_cancel... " >&6; }
79885			cat >conftest.$ac_ext <<_ACEOF
79886#include <aio.h>
79887int main() { struct aiocb a; return aio_cancel(1, &a); }
79888_ACEOF
79889rm -f conftest.$ac_objext conftest$ac_exeext
79890if { (ac_try="$ac_link"
79891case "(($ac_try" in
79892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79893  *) ac_try_echo=$ac_try;;
79894esac
79895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79896$as_echo "$ac_try_echo") >&5
79897  (eval "$ac_link") 2>conftest.er1
79898  ac_status=$?
79899  grep -v '^ *+' conftest.er1 >conftest.err
79900  rm -f conftest.er1
79901  cat conftest.err >&5
79902  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79903  (exit $ac_status); } && {
79904	 test -z "$ac_c_werror_flag" ||
79905	 test ! -s conftest.err
79906       } && test -s conftest$ac_exeext && {
79907	 test "$cross_compiling" = yes ||
79908	 $as_test_x conftest$ac_exeext
79909       }; then
79910
79911cat >>confdefs.h <<\_ACEOF
79912#define HAVE_AIO_CANCEL 1
79913_ACEOF
79914 { $as_echo "$as_me:$LINENO: result: yes" >&5
79915$as_echo "yes" >&6; }
79916else
79917  $as_echo "$as_me: failed program was:" >&5
79918sed 's/^/| /' conftest.$ac_ext >&5
79919
79920	{ $as_echo "$as_me:$LINENO: result: no" >&5
79921$as_echo "no" >&6; }
79922fi
79923
79924rm -rf conftest.dSYM
79925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79926      conftest$ac_exeext conftest.$ac_ext
79927
79928			{ $as_echo "$as_me:$LINENO: checking for aio_suspend" >&5
79929$as_echo_n "checking for aio_suspend... " >&6; }
79930			cat >conftest.$ac_ext <<_ACEOF
79931#include <aio.h>
79932int main() { struct aiocb a; return aio_suspend(&a, 1, NULL); }
79933_ACEOF
79934rm -f conftest.$ac_objext conftest$ac_exeext
79935if { (ac_try="$ac_link"
79936case "(($ac_try" in
79937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79938  *) ac_try_echo=$ac_try;;
79939esac
79940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79941$as_echo "$ac_try_echo") >&5
79942  (eval "$ac_link") 2>conftest.er1
79943  ac_status=$?
79944  grep -v '^ *+' conftest.er1 >conftest.err
79945  rm -f conftest.er1
79946  cat conftest.err >&5
79947  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79948  (exit $ac_status); } && {
79949	 test -z "$ac_c_werror_flag" ||
79950	 test ! -s conftest.err
79951       } && test -s conftest$ac_exeext && {
79952	 test "$cross_compiling" = yes ||
79953	 $as_test_x conftest$ac_exeext
79954       }; then
79955
79956cat >>confdefs.h <<\_ACEOF
79957#define HAVE_AIO_SUSPEND 1
79958_ACEOF
79959 { $as_echo "$as_me:$LINENO: result: yes" >&5
79960$as_echo "yes" >&6; }
79961else
79962  $as_echo "$as_me: failed program was:" >&5
79963sed 's/^/| /' conftest.$ac_ext >&5
79964
79965	{ $as_echo "$as_me:$LINENO: result: no" >&5
79966$as_echo "no" >&6; }
79967fi
79968
79969rm -rf conftest.dSYM
79970rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
79971      conftest$ac_exeext conftest.$ac_ext
79972		fi
79973
79974		if test x"$samba_cv_HAVE_AIO64" = x"yes"; then
79975			{ $as_echo "$as_me:$LINENO: checking for aio_read64" >&5
79976$as_echo_n "checking for aio_read64... " >&6; }
79977			cat >conftest.$ac_ext <<_ACEOF
79978#include <aio.h>
79979int main() { struct aiocb a; return aio_read64(&a); }
79980_ACEOF
79981rm -f conftest.$ac_objext conftest$ac_exeext
79982if { (ac_try="$ac_link"
79983case "(($ac_try" in
79984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
79985  *) ac_try_echo=$ac_try;;
79986esac
79987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
79988$as_echo "$ac_try_echo") >&5
79989  (eval "$ac_link") 2>conftest.er1
79990  ac_status=$?
79991  grep -v '^ *+' conftest.er1 >conftest.err
79992  rm -f conftest.er1
79993  cat conftest.err >&5
79994  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
79995  (exit $ac_status); } && {
79996	 test -z "$ac_c_werror_flag" ||
79997	 test ! -s conftest.err
79998       } && test -s conftest$ac_exeext && {
79999	 test "$cross_compiling" = yes ||
80000	 $as_test_x conftest$ac_exeext
80001       }; then
80002
80003cat >>confdefs.h <<\_ACEOF
80004#define HAVE_AIO_READ64 1
80005_ACEOF
80006 { $as_echo "$as_me:$LINENO: result: yes" >&5
80007$as_echo "yes" >&6; }
80008else
80009  $as_echo "$as_me: failed program was:" >&5
80010sed 's/^/| /' conftest.$ac_ext >&5
80011
80012	{ $as_echo "$as_me:$LINENO: result: no" >&5
80013$as_echo "no" >&6; }
80014fi
80015
80016rm -rf conftest.dSYM
80017rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
80018      conftest$ac_exeext conftest.$ac_ext
80019
80020			{ $as_echo "$as_me:$LINENO: checking for aio_write64" >&5
80021$as_echo_n "checking for aio_write64... " >&6; }
80022			cat >conftest.$ac_ext <<_ACEOF
80023#include <aio.h>
80024int main() { struct aiocb a; return aio_write64(&a); }
80025_ACEOF
80026rm -f conftest.$ac_objext conftest$ac_exeext
80027if { (ac_try="$ac_link"
80028case "(($ac_try" in
80029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
80030  *) ac_try_echo=$ac_try;;
80031esac
80032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
80033$as_echo "$ac_try_echo") >&5
80034  (eval "$ac_link") 2>conftest.er1
80035  ac_status=$?
80036  grep -v '^ *+' conftest.er1 >conftest.err
80037  rm -f conftest.er1
80038  cat conftest.err >&5
80039  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
80040  (exit $ac_status); } && {
80041	 test -z "$ac_c_werror_flag" ||
80042	 test ! -s conftest.err
80043       } && test -s conftest$ac_exeext && {
80044	 test "$cross_compiling" = yes ||
80045	 $as_test_x conftest$ac_exeext
80046       }; then
80047
80048cat >>confdefs.h <<\_ACEOF
80049#define HAVE_AIO_WRITE64 1
80050_ACEOF
80051 { $as_echo "$as_me:$LINENO: result: yes" >&5
80052$as_echo "yes" >&6; }
80053else
80054  $as_echo "$as_me: failed program was:" >&5
80055sed 's/^/| /' conftest.$ac_ext >&5
80056
80057	{ $as_echo "$as_me:$LINENO: result: no" >&5
80058$as_echo "no" >&6; }
80059fi
80060
80061rm -rf conftest.dSYM
80062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
80063      conftest$ac_exeext conftest.$ac_ext
80064
80065			{ $as_echo "$as_me:$LINENO: checking for aio_fsync64" >&5
80066$as_echo_n "checking for aio_fsync64... " >&6; }
80067			cat >conftest.$ac_ext <<_ACEOF
80068#include <aio.h>
80069int main() { struct aiocb a; return aio_fsync64(1, &a); }
80070_ACEOF
80071rm -f conftest.$ac_objext conftest$ac_exeext
80072if { (ac_try="$ac_link"
80073case "(($ac_try" in
80074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
80075  *) ac_try_echo=$ac_try;;
80076esac
80077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
80078$as_echo "$ac_try_echo") >&5
80079  (eval "$ac_link") 2>conftest.er1
80080  ac_status=$?
80081  grep -v '^ *+' conftest.er1 >conftest.err
80082  rm -f conftest.er1
80083  cat conftest.err >&5
80084  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
80085  (exit $ac_status); } && {
80086	 test -z "$ac_c_werror_flag" ||
80087	 test ! -s conftest.err
80088       } && test -s conftest$ac_exeext && {
80089	 test "$cross_compiling" = yes ||
80090	 $as_test_x conftest$ac_exeext
80091       }; then
80092
80093cat >>confdefs.h <<\_ACEOF
80094#define HAVE_AIO_FSYNC64 1
80095_ACEOF
80096 { $as_echo "$as_me:$LINENO: result: yes" >&5
80097$as_echo "yes" >&6; }
80098else
80099  $as_echo "$as_me: failed program was:" >&5
80100sed 's/^/| /' conftest.$ac_ext >&5
80101
80102	{ $as_echo "$as_me:$LINENO: result: no" >&5
80103$as_echo "no" >&6; }
80104fi
80105
80106rm -rf conftest.dSYM
80107rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
80108      conftest$ac_exeext conftest.$ac_ext
80109
80110			{ $as_echo "$as_me:$LINENO: checking for aio_return64" >&5
80111$as_echo_n "checking for aio_return64... " >&6; }
80112			cat >conftest.$ac_ext <<_ACEOF
80113#include <aio.h>
80114int main() { struct aiocb a; return aio_return64(&a); }
80115_ACEOF
80116rm -f conftest.$ac_objext conftest$ac_exeext
80117if { (ac_try="$ac_link"
80118case "(($ac_try" in
80119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
80120  *) ac_try_echo=$ac_try;;
80121esac
80122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
80123$as_echo "$ac_try_echo") >&5
80124  (eval "$ac_link") 2>conftest.er1
80125  ac_status=$?
80126  grep -v '^ *+' conftest.er1 >conftest.err
80127  rm -f conftest.er1
80128  cat conftest.err >&5
80129  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
80130  (exit $ac_status); } && {
80131	 test -z "$ac_c_werror_flag" ||
80132	 test ! -s conftest.err
80133       } && test -s conftest$ac_exeext && {
80134	 test "$cross_compiling" = yes ||
80135	 $as_test_x conftest$ac_exeext
80136       }; then
80137
80138cat >>confdefs.h <<\_ACEOF
80139#define HAVE_AIO_RETURN64 1
80140_ACEOF
80141 { $as_echo "$as_me:$LINENO: result: yes" >&5
80142$as_echo "yes" >&6; }
80143else
80144  $as_echo "$as_me: failed program was:" >&5
80145sed 's/^/| /' conftest.$ac_ext >&5
80146
80147	{ $as_echo "$as_me:$LINENO: result: no" >&5
80148$as_echo "no" >&6; }
80149fi
80150
80151rm -rf conftest.dSYM
80152rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
80153      conftest$ac_exeext conftest.$ac_ext
80154
80155			{ $as_echo "$as_me:$LINENO: checking for aio_error64" >&5
80156$as_echo_n "checking for aio_error64... " >&6; }
80157			cat >conftest.$ac_ext <<_ACEOF
80158#include <aio.h>
80159int main() { struct aiocb a; return aio_error64(&a); }
80160_ACEOF
80161rm -f conftest.$ac_objext conftest$ac_exeext
80162if { (ac_try="$ac_link"
80163case "(($ac_try" in
80164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
80165  *) ac_try_echo=$ac_try;;
80166esac
80167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
80168$as_echo "$ac_try_echo") >&5
80169  (eval "$ac_link") 2>conftest.er1
80170  ac_status=$?
80171  grep -v '^ *+' conftest.er1 >conftest.err
80172  rm -f conftest.er1
80173  cat conftest.err >&5
80174  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
80175  (exit $ac_status); } && {
80176	 test -z "$ac_c_werror_flag" ||
80177	 test ! -s conftest.err
80178       } && test -s conftest$ac_exeext && {
80179	 test "$cross_compiling" = yes ||
80180	 $as_test_x conftest$ac_exeext
80181       }; then
80182
80183cat >>confdefs.h <<\_ACEOF
80184#define HAVE_AIO_ERROR64 1
80185_ACEOF
80186 { $as_echo "$as_me:$LINENO: result: yes" >&5
80187$as_echo "yes" >&6; }
80188else
80189  $as_echo "$as_me: failed program was:" >&5
80190sed 's/^/| /' conftest.$ac_ext >&5
80191
80192	{ $as_echo "$as_me:$LINENO: result: no" >&5
80193$as_echo "no" >&6; }
80194fi
80195
80196rm -rf conftest.dSYM
80197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
80198      conftest$ac_exeext conftest.$ac_ext
80199
80200			{ $as_echo "$as_me:$LINENO: checking for aio_cancel64" >&5
80201$as_echo_n "checking for aio_cancel64... " >&6; }
80202			cat >conftest.$ac_ext <<_ACEOF
80203#include <aio.h>
80204int main() { struct aiocb a; return aio_cancel64(1, &a); }
80205_ACEOF
80206rm -f conftest.$ac_objext conftest$ac_exeext
80207if { (ac_try="$ac_link"
80208case "(($ac_try" in
80209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
80210  *) ac_try_echo=$ac_try;;
80211esac
80212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
80213$as_echo "$ac_try_echo") >&5
80214  (eval "$ac_link") 2>conftest.er1
80215  ac_status=$?
80216  grep -v '^ *+' conftest.er1 >conftest.err
80217  rm -f conftest.er1
80218  cat conftest.err >&5
80219  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
80220  (exit $ac_status); } && {
80221	 test -z "$ac_c_werror_flag" ||
80222	 test ! -s conftest.err
80223       } && test -s conftest$ac_exeext && {
80224	 test "$cross_compiling" = yes ||
80225	 $as_test_x conftest$ac_exeext
80226       }; then
80227
80228cat >>confdefs.h <<\_ACEOF
80229#define HAVE_AIO_CANCEL64 1
80230_ACEOF
80231 { $as_echo "$as_me:$LINENO: result: yes" >&5
80232$as_echo "yes" >&6; }
80233else
80234  $as_echo "$as_me: failed program was:" >&5
80235sed 's/^/| /' conftest.$ac_ext >&5
80236
80237	{ $as_echo "$as_me:$LINENO: result: no" >&5
80238$as_echo "no" >&6; }
80239fi
80240
80241rm -rf conftest.dSYM
80242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
80243      conftest$ac_exeext conftest.$ac_ext
80244
80245			{ $as_echo "$as_me:$LINENO: checking for aio_suspend64" >&5
80246$as_echo_n "checking for aio_suspend64... " >&6; }
80247			cat >conftest.$ac_ext <<_ACEOF
80248#include <aio.h>
80249int main() { struct aiocb a; return aio_suspend64(&a, 1, NULL); }
80250_ACEOF
80251rm -f conftest.$ac_objext conftest$ac_exeext
80252if { (ac_try="$ac_link"
80253case "(($ac_try" in
80254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
80255  *) ac_try_echo=$ac_try;;
80256esac
80257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
80258$as_echo "$ac_try_echo") >&5
80259  (eval "$ac_link") 2>conftest.er1
80260  ac_status=$?
80261  grep -v '^ *+' conftest.er1 >conftest.err
80262  rm -f conftest.er1
80263  cat conftest.err >&5
80264  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
80265  (exit $ac_status); } && {
80266	 test -z "$ac_c_werror_flag" ||
80267	 test ! -s conftest.err
80268       } && test -s conftest$ac_exeext && {
80269	 test "$cross_compiling" = yes ||
80270	 $as_test_x conftest$ac_exeext
80271       }; then
80272
80273cat >>confdefs.h <<\_ACEOF
80274#define HAVE_AIO_SUSPEND64 1
80275_ACEOF
80276 { $as_echo "$as_me:$LINENO: result: yes" >&5
80277$as_echo "yes" >&6; }
80278else
80279  $as_echo "$as_me: failed program was:" >&5
80280sed 's/^/| /' conftest.$ac_ext >&5
80281
80282	{ $as_echo "$as_me:$LINENO: result: no" >&5
80283$as_echo "no" >&6; }
80284fi
80285
80286rm -rf conftest.dSYM
80287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
80288      conftest$ac_exeext conftest.$ac_ext
80289		fi
80290            ;;
80291        esac
80292        ;;
80293  *)
80294    { $as_echo "$as_me:$LINENO: result: no" >&5
80295$as_echo "no" >&6; }
80296
80297cat >>confdefs.h <<\_ACEOF
80298#define HAVE_NO_AIO 1
80299_ACEOF
80300
80301    ;;
80302  esac
80303else
80304
80305cat >>confdefs.h <<\_ACEOF
80306#define HAVE_NO_AIO 1
80307_ACEOF
80308
80309  { $as_echo "$as_me:$LINENO: result: no" >&5
80310$as_echo "no" >&6; }
80311
80312fi
80313
80314
80315if test x"$samba_cv_HAVE_AIO" = x"yes"; then
80316	if test x"$samba_cv_msghdr_msg_control" = x"yes" -o \
80317		x"$samba_cv_msghdr_msg_acctright" = x"yes"; then
80318		default_shared_modules="$default_shared_modules vfs_aio_fork"
80319	fi
80320fi
80321
80322#################################################
80323# check for sendfile support
80324
80325with_sendfile_support=yes
80326{ $as_echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5
80327$as_echo_n "checking whether to check to support sendfile... " >&6; }
80328
80329# Check whether --with-sendfile-support was given.
80330if test "${with_sendfile_support+set}" = set; then
80331  withval=$with_sendfile_support;  case "$withval" in
80332  yes)
80333
80334	{ $as_echo "$as_me:$LINENO: result: yes" >&5
80335$as_echo "yes" >&6; };
80336
80337	case "$host_os" in
80338	*linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu)
80339		{ $as_echo "$as_me:$LINENO: checking for linux sendfile64 support" >&5
80340$as_echo_n "checking for linux sendfile64 support... " >&6; }
80341if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
80342  $as_echo_n "(cached) " >&6
80343else
80344
80345		cat >conftest.$ac_ext <<_ACEOF
80346/* confdefs.h.  */
80347_ACEOF
80348cat confdefs.h >>conftest.$ac_ext
80349cat >>conftest.$ac_ext <<_ACEOF
80350/* end confdefs.h.  */
80351#include <sys/sendfile.h>
80352int
80353main ()
80354{
80355\
80356int tofd, fromfd;
80357off64_t offset;
80358size_t total;
80359ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
80360
80361  ;
80362  return 0;
80363}
80364_ACEOF
80365rm -f conftest.$ac_objext conftest$ac_exeext
80366if { (ac_try="$ac_link"
80367case "(($ac_try" in
80368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
80369  *) ac_try_echo=$ac_try;;
80370esac
80371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
80372$as_echo "$ac_try_echo") >&5
80373  (eval "$ac_link") 2>conftest.er1
80374  ac_status=$?
80375  grep -v '^ *+' conftest.er1 >conftest.err
80376  rm -f conftest.er1
80377  cat conftest.err >&5
80378  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
80379  (exit $ac_status); } && {
80380	 test -z "$ac_c_werror_flag" ||
80381	 test ! -s conftest.err
80382       } && test -s conftest$ac_exeext && {
80383	 test "$cross_compiling" = yes ||
80384	 $as_test_x conftest$ac_exeext
80385       }; then
80386  samba_cv_HAVE_SENDFILE64=yes
80387else
80388  $as_echo "$as_me: failed program was:" >&5
80389sed 's/^/| /' conftest.$ac_ext >&5
80390
80391	samba_cv_HAVE_SENDFILE64=no
80392fi
80393
80394rm -rf conftest.dSYM
80395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
80396      conftest$ac_exeext conftest.$ac_ext
80397fi
80398{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
80399$as_echo "$samba_cv_HAVE_SENDFILE64" >&6; }
80400
80401		{ $as_echo "$as_me:$LINENO: checking for linux sendfile support" >&5
80402$as_echo_n "checking for linux sendfile support... " >&6; }
80403if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
80404  $as_echo_n "(cached) " >&6
80405else
80406
80407		cat >conftest.$ac_ext <<_ACEOF
80408/* confdefs.h.  */
80409_ACEOF
80410cat confdefs.h >>conftest.$ac_ext
80411cat >>conftest.$ac_ext <<_ACEOF
80412/* end confdefs.h.  */
80413#include <sys/sendfile.h>
80414int
80415main ()
80416{
80417\
80418int tofd, fromfd;
80419off_t offset;
80420size_t total;
80421ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
80422
80423  ;
80424  return 0;
80425}
80426_ACEOF
80427rm -f conftest.$ac_objext conftest$ac_exeext
80428if { (ac_try="$ac_link"
80429case "(($ac_try" in
80430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
80431  *) ac_try_echo=$ac_try;;
80432esac
80433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
80434$as_echo "$ac_try_echo") >&5
80435  (eval "$ac_link") 2>conftest.er1
80436  ac_status=$?
80437  grep -v '^ *+' conftest.er1 >conftest.err
80438  rm -f conftest.er1
80439  cat conftest.err >&5
80440  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
80441  (exit $ac_status); } && {
80442	 test -z "$ac_c_werror_flag" ||
80443	 test ! -s conftest.err
80444       } && test -s conftest$ac_exeext && {
80445	 test "$cross_compiling" = yes ||
80446	 $as_test_x conftest$ac_exeext
80447       }; then
80448  samba_cv_HAVE_SENDFILE=yes
80449else
80450  $as_echo "$as_me: failed program was:" >&5
80451sed 's/^/| /' conftest.$ac_ext >&5
80452
80453	samba_cv_HAVE_SENDFILE=no
80454fi
80455
80456rm -rf conftest.dSYM
80457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
80458      conftest$ac_exeext conftest.$ac_ext
80459fi
80460{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
80461$as_echo "$samba_cv_HAVE_SENDFILE" >&6; }
80462
80463# Try and cope with broken Linux sendfile....
80464		{ $as_echo "$as_me:$LINENO: checking for broken linux sendfile support" >&5
80465$as_echo_n "checking for broken linux sendfile support... " >&6; }
80466if test "${samba_cv_HAVE_BROKEN_LINUX_SENDFILE+set}" = set; then
80467  $as_echo_n "(cached) " >&6
80468else
80469
80470		cat >conftest.$ac_ext <<_ACEOF
80471/* confdefs.h.  */
80472_ACEOF
80473cat confdefs.h >>conftest.$ac_ext
80474cat >>conftest.$ac_ext <<_ACEOF
80475/* end confdefs.h.  */
80476\
80477#if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
80478#undef _FILE_OFFSET_BITS
80479#endif
80480#include <sys/sendfile.h>
80481int
80482main ()
80483{
80484\
80485int tofd, fromfd;
80486off_t offset;
80487size_t total;
80488ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
80489
80490  ;
80491  return 0;
80492}
80493_ACEOF
80494rm -f conftest.$ac_objext conftest$ac_exeext
80495if { (ac_try="$ac_link"
80496case "(($ac_try" in
80497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
80498  *) ac_try_echo=$ac_try;;
80499esac
80500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
80501$as_echo "$ac_try_echo") >&5
80502  (eval "$ac_link") 2>conftest.er1
80503  ac_status=$?
80504  grep -v '^ *+' conftest.er1 >conftest.err
80505  rm -f conftest.er1
80506  cat conftest.err >&5
80507  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
80508  (exit $ac_status); } && {
80509	 test -z "$ac_c_werror_flag" ||
80510	 test ! -s conftest.err
80511       } && test -s conftest$ac_exeext && {
80512	 test "$cross_compiling" = yes ||
80513	 $as_test_x conftest$ac_exeext
80514       }; then
80515  samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
80516else
80517  $as_echo "$as_me: failed program was:" >&5
80518sed 's/^/| /' conftest.$ac_ext >&5
80519
80520	samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
80521fi
80522
80523rm -rf conftest.dSYM
80524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
80525      conftest$ac_exeext conftest.$ac_ext
80526fi
80527{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&5
80528$as_echo "$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&6; }
80529
80530	if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
80531
80532cat >>confdefs.h <<\_ACEOF
80533#define HAVE_SENDFILE64 1
80534_ACEOF
80535
80536
80537cat >>confdefs.h <<\_ACEOF
80538#define LINUX_SENDFILE_API 1
80539_ACEOF
80540
80541
80542cat >>confdefs.h <<\_ACEOF
80543#define WITH_SENDFILE 1
80544_ACEOF
80545
80546	elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
80547
80548cat >>confdefs.h <<\_ACEOF
80549#define HAVE_SENDFILE 1
80550_ACEOF
80551
80552
80553cat >>confdefs.h <<\_ACEOF
80554#define LINUX_SENDFILE_API 1
80555_ACEOF
80556
80557
80558cat >>confdefs.h <<\_ACEOF
80559#define WITH_SENDFILE 1
80560_ACEOF
80561
80562	elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
80563
80564cat >>confdefs.h <<\_ACEOF
80565#define LINUX_BROKEN_SENDFILE_API 1
80566_ACEOF
80567
80568
80569cat >>confdefs.h <<\_ACEOF
80570#define WITH_SENDFILE 1
80571_ACEOF
80572
80573	else
80574		{ $as_echo "$as_me:$LINENO: result: no" >&5
80575$as_echo "no" >&6; };
80576	fi
80577
80578	;;
80579	*freebsd* | *dragonfly* )
80580		{ $as_echo "$as_me:$LINENO: checking for freebsd sendfile support" >&5
80581$as_echo_n "checking for freebsd sendfile support... " >&6; }
80582if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
80583  $as_echo_n "(cached) " >&6
80584else
80585
80586		cat >conftest.$ac_ext <<_ACEOF
80587/* confdefs.h.  */
80588_ACEOF
80589cat confdefs.h >>conftest.$ac_ext
80590cat >>conftest.$ac_ext <<_ACEOF
80591/* end confdefs.h.  */
80592\
80593#include <sys/types.h>
80594#include <unistd.h>
80595#include <sys/socket.h>
80596#include <sys/uio.h>
80597int
80598main ()
80599{
80600\
80601	int fromfd, tofd, ret, total=0;
80602	off_t offset, nwritten;
80603	struct sf_hdtr hdr;
80604	struct iovec hdtrl;
80605	hdr.headers = &hdtrl;
80606	hdr.hdr_cnt = 1;
80607	hdr.trailers = NULL;
80608	hdr.trl_cnt = 0;
80609	hdtrl.iov_base = NULL;
80610	hdtrl.iov_len = 0;
80611	ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
80612
80613  ;
80614  return 0;
80615}
80616_ACEOF
80617rm -f conftest.$ac_objext conftest$ac_exeext
80618if { (ac_try="$ac_link"
80619case "(($ac_try" in
80620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
80621  *) ac_try_echo=$ac_try;;
80622esac
80623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
80624$as_echo "$ac_try_echo") >&5
80625  (eval "$ac_link") 2>conftest.er1
80626  ac_status=$?
80627  grep -v '^ *+' conftest.er1 >conftest.err
80628  rm -f conftest.er1
80629  cat conftest.err >&5
80630  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
80631  (exit $ac_status); } && {
80632	 test -z "$ac_c_werror_flag" ||
80633	 test ! -s conftest.err
80634       } && test -s conftest$ac_exeext && {
80635	 test "$cross_compiling" = yes ||
80636	 $as_test_x conftest$ac_exeext
80637       }; then
80638  samba_cv_HAVE_SENDFILE=yes
80639else
80640  $as_echo "$as_me: failed program was:" >&5
80641sed 's/^/| /' conftest.$ac_ext >&5
80642
80643	samba_cv_HAVE_SENDFILE=no
80644fi
80645
80646rm -rf conftest.dSYM
80647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
80648      conftest$ac_exeext conftest.$ac_ext
80649fi
80650{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
80651$as_echo "$samba_cv_HAVE_SENDFILE" >&6; }
80652
80653	if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
80654
80655cat >>confdefs.h <<\_ACEOF
80656#define HAVE_SENDFILE 1
80657_ACEOF
80658
80659
80660cat >>confdefs.h <<\_ACEOF
80661#define FREEBSD_SENDFILE_API 1
80662_ACEOF
80663
80664
80665cat >>confdefs.h <<\_ACEOF
80666#define WITH_SENDFILE 1
80667_ACEOF
80668
80669	else
80670		{ $as_echo "$as_me:$LINENO: result: no" >&5
80671$as_echo "no" >&6; };
80672	fi
80673	;;
80674
80675	*hpux*)
80676		{ $as_echo "$as_me:$LINENO: checking for hpux sendfile64 support" >&5
80677$as_echo_n "checking for hpux sendfile64 support... " >&6; }
80678if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
80679  $as_echo_n "(cached) " >&6
80680else
80681
80682		cat >conftest.$ac_ext <<_ACEOF
80683/* confdefs.h.  */
80684_ACEOF
80685cat confdefs.h >>conftest.$ac_ext
80686cat >>conftest.$ac_ext <<_ACEOF
80687/* end confdefs.h.  */
80688\
80689#include <sys/socket.h>
80690#include <sys/uio.h>
80691int
80692main ()
80693{
80694\
80695	int fromfd, tofd;
80696	size_t total=0;
80697	struct iovec hdtrl[2];
80698	ssize_t nwritten;
80699	off64_t offset;
80700
80701	hdtrl[0].iov_base = 0;
80702	hdtrl[0].iov_len = 0;
80703
80704	nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
80705
80706  ;
80707  return 0;
80708}
80709_ACEOF
80710rm -f conftest.$ac_objext conftest$ac_exeext
80711if { (ac_try="$ac_link"
80712case "(($ac_try" in
80713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
80714  *) ac_try_echo=$ac_try;;
80715esac
80716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
80717$as_echo "$ac_try_echo") >&5
80718  (eval "$ac_link") 2>conftest.er1
80719  ac_status=$?
80720  grep -v '^ *+' conftest.er1 >conftest.err
80721  rm -f conftest.er1
80722  cat conftest.err >&5
80723  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
80724  (exit $ac_status); } && {
80725	 test -z "$ac_c_werror_flag" ||
80726	 test ! -s conftest.err
80727       } && test -s conftest$ac_exeext && {
80728	 test "$cross_compiling" = yes ||
80729	 $as_test_x conftest$ac_exeext
80730       }; then
80731  samba_cv_HAVE_SENDFILE64=yes
80732else
80733  $as_echo "$as_me: failed program was:" >&5
80734sed 's/^/| /' conftest.$ac_ext >&5
80735
80736	samba_cv_HAVE_SENDFILE64=no
80737fi
80738
80739rm -rf conftest.dSYM
80740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
80741      conftest$ac_exeext conftest.$ac_ext
80742fi
80743{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
80744$as_echo "$samba_cv_HAVE_SENDFILE64" >&6; }
80745	if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
80746
80747cat >>confdefs.h <<\_ACEOF
80748#define HAVE_SENDFILE64 1
80749_ACEOF
80750
80751
80752cat >>confdefs.h <<\_ACEOF
80753#define HPUX_SENDFILE_API 1
80754_ACEOF
80755
80756
80757cat >>confdefs.h <<\_ACEOF
80758#define WITH_SENDFILE 1
80759_ACEOF
80760
80761	else
80762		{ $as_echo "$as_me:$LINENO: result: no" >&5
80763$as_echo "no" >&6; };
80764	fi
80765
80766		{ $as_echo "$as_me:$LINENO: checking for hpux sendfile support" >&5
80767$as_echo_n "checking for hpux sendfile support... " >&6; }
80768if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
80769  $as_echo_n "(cached) " >&6
80770else
80771
80772		cat >conftest.$ac_ext <<_ACEOF
80773/* confdefs.h.  */
80774_ACEOF
80775cat confdefs.h >>conftest.$ac_ext
80776cat >>conftest.$ac_ext <<_ACEOF
80777/* end confdefs.h.  */
80778\
80779#include <sys/socket.h>
80780#include <sys/uio.h>
80781int
80782main ()
80783{
80784\
80785	int fromfd, tofd;
80786	size_t total=0;
80787	struct iovec hdtrl[2];
80788	ssize_t nwritten;
80789	off_t offset;
80790
80791	hdtrl[0].iov_base = 0;
80792	hdtrl[0].iov_len = 0;
80793
80794	nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
80795
80796  ;
80797  return 0;
80798}
80799_ACEOF
80800rm -f conftest.$ac_objext conftest$ac_exeext
80801if { (ac_try="$ac_link"
80802case "(($ac_try" in
80803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
80804  *) ac_try_echo=$ac_try;;
80805esac
80806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
80807$as_echo "$ac_try_echo") >&5
80808  (eval "$ac_link") 2>conftest.er1
80809  ac_status=$?
80810  grep -v '^ *+' conftest.er1 >conftest.err
80811  rm -f conftest.er1
80812  cat conftest.err >&5
80813  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
80814  (exit $ac_status); } && {
80815	 test -z "$ac_c_werror_flag" ||
80816	 test ! -s conftest.err
80817       } && test -s conftest$ac_exeext && {
80818	 test "$cross_compiling" = yes ||
80819	 $as_test_x conftest$ac_exeext
80820       }; then
80821  samba_cv_HAVE_SENDFILE=yes
80822else
80823  $as_echo "$as_me: failed program was:" >&5
80824sed 's/^/| /' conftest.$ac_ext >&5
80825
80826	samba_cv_HAVE_SENDFILE=no
80827fi
80828
80829rm -rf conftest.dSYM
80830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
80831      conftest$ac_exeext conftest.$ac_ext
80832fi
80833{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
80834$as_echo "$samba_cv_HAVE_SENDFILE" >&6; }
80835	if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
80836
80837cat >>confdefs.h <<\_ACEOF
80838#define HAVE_SENDFILE 1
80839_ACEOF
80840
80841
80842cat >>confdefs.h <<\_ACEOF
80843#define HPUX_SENDFILE_API 1
80844_ACEOF
80845
80846
80847cat >>confdefs.h <<\_ACEOF
80848#define WITH_SENDFILE 1
80849_ACEOF
80850
80851	else
80852		{ $as_echo "$as_me:$LINENO: result: no" >&5
80853$as_echo "no" >&6; };
80854	fi
80855	;;
80856
80857	*solaris*)
80858
80859{ $as_echo "$as_me:$LINENO: checking for sendfilev in -lsendfile" >&5
80860$as_echo_n "checking for sendfilev in -lsendfile... " >&6; }
80861if test "${ac_cv_lib_sendfile_sendfilev+set}" = set; then
80862  $as_echo_n "(cached) " >&6
80863else
80864  ac_check_lib_save_LIBS=$LIBS
80865LIBS="-lsendfile  $LIBS"
80866cat >conftest.$ac_ext <<_ACEOF
80867/* confdefs.h.  */
80868_ACEOF
80869cat confdefs.h >>conftest.$ac_ext
80870cat >>conftest.$ac_ext <<_ACEOF
80871/* end confdefs.h.  */
80872
80873/* Override any GCC internal prototype to avoid an error.
80874   Use char because int might match the return type of a GCC
80875   builtin and then its argument prototype would still apply.  */
80876#ifdef __cplusplus
80877extern "C"
80878#endif
80879char sendfilev ();
80880int
80881main ()
80882{
80883return sendfilev ();
80884  ;
80885  return 0;
80886}
80887_ACEOF
80888rm -f conftest.$ac_objext conftest$ac_exeext
80889if { (ac_try="$ac_link"
80890case "(($ac_try" in
80891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
80892  *) ac_try_echo=$ac_try;;
80893esac
80894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
80895$as_echo "$ac_try_echo") >&5
80896  (eval "$ac_link") 2>conftest.er1
80897  ac_status=$?
80898  grep -v '^ *+' conftest.er1 >conftest.err
80899  rm -f conftest.er1
80900  cat conftest.err >&5
80901  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
80902  (exit $ac_status); } && {
80903	 test -z "$ac_c_werror_flag" ||
80904	 test ! -s conftest.err
80905       } && test -s conftest$ac_exeext && {
80906	 test "$cross_compiling" = yes ||
80907	 $as_test_x conftest$ac_exeext
80908       }; then
80909  ac_cv_lib_sendfile_sendfilev=yes
80910else
80911  $as_echo "$as_me: failed program was:" >&5
80912sed 's/^/| /' conftest.$ac_ext >&5
80913
80914	ac_cv_lib_sendfile_sendfilev=no
80915fi
80916
80917rm -rf conftest.dSYM
80918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
80919      conftest$ac_exeext conftest.$ac_ext
80920LIBS=$ac_check_lib_save_LIBS
80921fi
80922{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sendfile_sendfilev" >&5
80923$as_echo "$ac_cv_lib_sendfile_sendfilev" >&6; }
80924if test "x$ac_cv_lib_sendfile_sendfilev" = x""yes; then
80925  cat >>confdefs.h <<_ACEOF
80926#define HAVE_LIBSENDFILE 1
80927_ACEOF
80928
80929  LIBS="-lsendfile $LIBS"
80930
80931fi
80932
80933		{ $as_echo "$as_me:$LINENO: checking for solaris sendfilev64 support" >&5
80934$as_echo_n "checking for solaris sendfilev64 support... " >&6; }
80935if test "${samba_cv_HAVE_SENDFILEV64+set}" = set; then
80936  $as_echo_n "(cached) " >&6
80937else
80938
80939		cat >conftest.$ac_ext <<_ACEOF
80940/* confdefs.h.  */
80941_ACEOF
80942cat confdefs.h >>conftest.$ac_ext
80943cat >>conftest.$ac_ext <<_ACEOF
80944/* end confdefs.h.  */
80945\
80946#include <sys/sendfile.h>
80947int
80948main ()
80949{
80950\
80951        int sfvcnt;
80952        size_t xferred;
80953        struct sendfilevec vec[2];
80954	ssize_t nwritten;
80955	int tofd;
80956
80957	sfvcnt = 2;
80958
80959	vec[0].sfv_fd = SFV_FD_SELF;
80960	vec[0].sfv_flag = 0;
80961	vec[0].sfv_off = 0;
80962	vec[0].sfv_len = 0;
80963
80964	vec[1].sfv_fd = 0;
80965	vec[1].sfv_flag = 0;
80966	vec[1].sfv_off = 0;
80967	vec[1].sfv_len = 0;
80968	nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
80969
80970  ;
80971  return 0;
80972}
80973_ACEOF
80974rm -f conftest.$ac_objext conftest$ac_exeext
80975if { (ac_try="$ac_link"
80976case "(($ac_try" in
80977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
80978  *) ac_try_echo=$ac_try;;
80979esac
80980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
80981$as_echo "$ac_try_echo") >&5
80982  (eval "$ac_link") 2>conftest.er1
80983  ac_status=$?
80984  grep -v '^ *+' conftest.er1 >conftest.err
80985  rm -f conftest.er1
80986  cat conftest.err >&5
80987  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
80988  (exit $ac_status); } && {
80989	 test -z "$ac_c_werror_flag" ||
80990	 test ! -s conftest.err
80991       } && test -s conftest$ac_exeext && {
80992	 test "$cross_compiling" = yes ||
80993	 $as_test_x conftest$ac_exeext
80994       }; then
80995  samba_cv_HAVE_SENDFILEV64=yes
80996else
80997  $as_echo "$as_me: failed program was:" >&5
80998sed 's/^/| /' conftest.$ac_ext >&5
80999
81000	samba_cv_HAVE_SENDFILEV64=no
81001fi
81002
81003rm -rf conftest.dSYM
81004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
81005      conftest$ac_exeext conftest.$ac_ext
81006fi
81007{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV64" >&5
81008$as_echo "$samba_cv_HAVE_SENDFILEV64" >&6; }
81009
81010	if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
81011
81012cat >>confdefs.h <<\_ACEOF
81013#define HAVE_SENDFILEV64 1
81014_ACEOF
81015
81016
81017cat >>confdefs.h <<\_ACEOF
81018#define SOLARIS_SENDFILE_API 1
81019_ACEOF
81020
81021
81022cat >>confdefs.h <<\_ACEOF
81023#define WITH_SENDFILE 1
81024_ACEOF
81025
81026	else
81027		{ $as_echo "$as_me:$LINENO: result: no" >&5
81028$as_echo "no" >&6; };
81029	fi
81030
81031		{ $as_echo "$as_me:$LINENO: checking for solaris sendfilev support" >&5
81032$as_echo_n "checking for solaris sendfilev support... " >&6; }
81033if test "${samba_cv_HAVE_SENDFILEV+set}" = set; then
81034  $as_echo_n "(cached) " >&6
81035else
81036
81037		cat >conftest.$ac_ext <<_ACEOF
81038/* confdefs.h.  */
81039_ACEOF
81040cat confdefs.h >>conftest.$ac_ext
81041cat >>conftest.$ac_ext <<_ACEOF
81042/* end confdefs.h.  */
81043\
81044#include <sys/sendfile.h>
81045int
81046main ()
81047{
81048\
81049        int sfvcnt;
81050        size_t xferred;
81051        struct sendfilevec vec[2];
81052	ssize_t nwritten;
81053	int tofd;
81054
81055	sfvcnt = 2;
81056
81057	vec[0].sfv_fd = SFV_FD_SELF;
81058	vec[0].sfv_flag = 0;
81059	vec[0].sfv_off = 0;
81060	vec[0].sfv_len = 0;
81061
81062	vec[1].sfv_fd = 0;
81063	vec[1].sfv_flag = 0;
81064	vec[1].sfv_off = 0;
81065	vec[1].sfv_len = 0;
81066	nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
81067
81068  ;
81069  return 0;
81070}
81071_ACEOF
81072rm -f conftest.$ac_objext conftest$ac_exeext
81073if { (ac_try="$ac_link"
81074case "(($ac_try" in
81075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81076  *) ac_try_echo=$ac_try;;
81077esac
81078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81079$as_echo "$ac_try_echo") >&5
81080  (eval "$ac_link") 2>conftest.er1
81081  ac_status=$?
81082  grep -v '^ *+' conftest.er1 >conftest.err
81083  rm -f conftest.er1
81084  cat conftest.err >&5
81085  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81086  (exit $ac_status); } && {
81087	 test -z "$ac_c_werror_flag" ||
81088	 test ! -s conftest.err
81089       } && test -s conftest$ac_exeext && {
81090	 test "$cross_compiling" = yes ||
81091	 $as_test_x conftest$ac_exeext
81092       }; then
81093  samba_cv_HAVE_SENDFILEV=yes
81094else
81095  $as_echo "$as_me: failed program was:" >&5
81096sed 's/^/| /' conftest.$ac_ext >&5
81097
81098	samba_cv_HAVE_SENDFILEV=no
81099fi
81100
81101rm -rf conftest.dSYM
81102rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
81103      conftest$ac_exeext conftest.$ac_ext
81104fi
81105{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV" >&5
81106$as_echo "$samba_cv_HAVE_SENDFILEV" >&6; }
81107
81108	if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
81109
81110cat >>confdefs.h <<\_ACEOF
81111#define HAVE_SENDFILEV 1
81112_ACEOF
81113
81114
81115cat >>confdefs.h <<\_ACEOF
81116#define SOLARIS_SENDFILE_API 1
81117_ACEOF
81118
81119
81120cat >>confdefs.h <<\_ACEOF
81121#define WITH_SENDFILE 1
81122_ACEOF
81123
81124	else
81125		{ $as_echo "$as_me:$LINENO: result: no" >&5
81126$as_echo "no" >&6; };
81127	fi
81128	;;
81129	*aix*)
81130		{ $as_echo "$as_me:$LINENO: checking for AIX send_file support" >&5
81131$as_echo_n "checking for AIX send_file support... " >&6; }
81132if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
81133  $as_echo_n "(cached) " >&6
81134else
81135
81136		cat >conftest.$ac_ext <<_ACEOF
81137/* confdefs.h.  */
81138_ACEOF
81139cat confdefs.h >>conftest.$ac_ext
81140cat >>conftest.$ac_ext <<_ACEOF
81141/* end confdefs.h.  */
81142\
81143#include <sys/socket.h>
81144int
81145main ()
81146{
81147\
81148	int fromfd, tofd;
81149	size_t total=0;
81150	struct sf_parms hdtrl;
81151	ssize_t nwritten;
81152	off64_t offset;
81153
81154	hdtrl.header_data = 0;
81155	hdtrl.header_length = 0;
81156	hdtrl.file_descriptor = fromfd;
81157	hdtrl.file_offset = 0;
81158	hdtrl.file_bytes = 0;
81159	hdtrl.trailer_data = 0;
81160	hdtrl.trailer_length = 0;
81161
81162	nwritten = send_file(&tofd, &hdtrl, 0);
81163
81164  ;
81165  return 0;
81166}
81167_ACEOF
81168rm -f conftest.$ac_objext conftest$ac_exeext
81169if { (ac_try="$ac_link"
81170case "(($ac_try" in
81171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81172  *) ac_try_echo=$ac_try;;
81173esac
81174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81175$as_echo "$ac_try_echo") >&5
81176  (eval "$ac_link") 2>conftest.er1
81177  ac_status=$?
81178  grep -v '^ *+' conftest.er1 >conftest.err
81179  rm -f conftest.er1
81180  cat conftest.err >&5
81181  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81182  (exit $ac_status); } && {
81183	 test -z "$ac_c_werror_flag" ||
81184	 test ! -s conftest.err
81185       } && test -s conftest$ac_exeext && {
81186	 test "$cross_compiling" = yes ||
81187	 $as_test_x conftest$ac_exeext
81188       }; then
81189  samba_cv_HAVE_SENDFILE=yes
81190else
81191  $as_echo "$as_me: failed program was:" >&5
81192sed 's/^/| /' conftest.$ac_ext >&5
81193
81194	samba_cv_HAVE_SENDFILE=no
81195fi
81196
81197rm -rf conftest.dSYM
81198rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
81199      conftest$ac_exeext conftest.$ac_ext
81200fi
81201{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
81202$as_echo "$samba_cv_HAVE_SENDFILE" >&6; }
81203	if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
81204
81205cat >>confdefs.h <<\_ACEOF
81206#define HAVE_SENDFILE 1
81207_ACEOF
81208
81209
81210cat >>confdefs.h <<\_ACEOF
81211#define AIX_SENDFILE_API 1
81212_ACEOF
81213
81214
81215cat >>confdefs.h <<\_ACEOF
81216#define WITH_SENDFILE 1
81217_ACEOF
81218
81219	else
81220		{ $as_echo "$as_me:$LINENO: result: no" >&5
81221$as_echo "no" >&6; };
81222	fi
81223	;;
81224	*)
81225	;;
81226        esac
81227        ;;
81228  *)
81229    { $as_echo "$as_me:$LINENO: result: no" >&5
81230$as_echo "no" >&6; }
81231    ;;
81232  esac
81233else
81234  { $as_echo "$as_me:$LINENO: result: yes" >&5
81235$as_echo "yes" >&6; }
81236
81237fi
81238
81239
81240############################################
81241# See if we have the Linux readahead syscall.
81242
81243{ $as_echo "$as_me:$LINENO: checking for Linux readahead" >&5
81244$as_echo_n "checking for Linux readahead... " >&6; }
81245if test "${samba_cv_HAVE_LINUX_READAHEAD+set}" = set; then
81246  $as_echo_n "(cached) " >&6
81247else
81248
81249    cat >conftest.$ac_ext <<_ACEOF
81250/* confdefs.h.  */
81251_ACEOF
81252cat confdefs.h >>conftest.$ac_ext
81253cat >>conftest.$ac_ext <<_ACEOF
81254/* end confdefs.h.  */
81255
81256#if defined(HAVE_UNISTD_H)
81257#include <unistd.h>
81258#endif
81259#include <fcntl.h>
81260int
81261main ()
81262{
81263ssize_t err = readahead(0,0,0x80000);
81264  ;
81265  return 0;
81266}
81267_ACEOF
81268rm -f conftest.$ac_objext conftest$ac_exeext
81269if { (ac_try="$ac_link"
81270case "(($ac_try" in
81271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81272  *) ac_try_echo=$ac_try;;
81273esac
81274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81275$as_echo "$ac_try_echo") >&5
81276  (eval "$ac_link") 2>conftest.er1
81277  ac_status=$?
81278  grep -v '^ *+' conftest.er1 >conftest.err
81279  rm -f conftest.er1
81280  cat conftest.err >&5
81281  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81282  (exit $ac_status); } && {
81283	 test -z "$ac_c_werror_flag" ||
81284	 test ! -s conftest.err
81285       } && test -s conftest$ac_exeext && {
81286	 test "$cross_compiling" = yes ||
81287	 $as_test_x conftest$ac_exeext
81288       }; then
81289  samba_cv_HAVE_LINUX_READAHEAD=yes
81290else
81291  $as_echo "$as_me: failed program was:" >&5
81292sed 's/^/| /' conftest.$ac_ext >&5
81293
81294	samba_cv_HAVE_LINUX_READAHEAD=no
81295fi
81296
81297rm -rf conftest.dSYM
81298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
81299      conftest$ac_exeext conftest.$ac_ext
81300fi
81301{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_LINUX_READAHEAD" >&5
81302$as_echo "$samba_cv_HAVE_LINUX_READAHEAD" >&6; }
81303
81304if test x"$samba_cv_HAVE_LINUX_READAHEAD" = x"yes"; then
81305
81306cat >>confdefs.h <<\_ACEOF
81307#define HAVE_LINUX_READAHEAD 1
81308_ACEOF
81309
81310fi
81311
81312
81313 { $as_echo "$as_me:$LINENO: checking for readahead declaration" >&5
81314$as_echo_n "checking for readahead declaration... " >&6; }
81315if test "${ac_cv_have_readahead_decl+set}" = set; then
81316  $as_echo_n "(cached) " >&6
81317else
81318
81319    cat >conftest.$ac_ext <<_ACEOF
81320/* confdefs.h.  */
81321_ACEOF
81322cat confdefs.h >>conftest.$ac_ext
81323cat >>conftest.$ac_ext <<_ACEOF
81324/* end confdefs.h.  */
81325#include <fcntl.h>
81326int
81327main ()
81328{
81329int i = (int)readahead
81330  ;
81331  return 0;
81332}
81333_ACEOF
81334rm -f conftest.$ac_objext
81335if { (ac_try="$ac_compile"
81336case "(($ac_try" in
81337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81338  *) ac_try_echo=$ac_try;;
81339esac
81340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81341$as_echo "$ac_try_echo") >&5
81342  (eval "$ac_compile") 2>conftest.er1
81343  ac_status=$?
81344  grep -v '^ *+' conftest.er1 >conftest.err
81345  rm -f conftest.er1
81346  cat conftest.err >&5
81347  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81348  (exit $ac_status); } && {
81349	 test -z "$ac_c_werror_flag" ||
81350	 test ! -s conftest.err
81351       } && test -s conftest.$ac_objext; then
81352  ac_cv_have_readahead_decl=yes
81353else
81354  $as_echo "$as_me: failed program was:" >&5
81355sed 's/^/| /' conftest.$ac_ext >&5
81356
81357	ac_cv_have_readahead_decl=no
81358fi
81359
81360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81361fi
81362{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_readahead_decl" >&5
81363$as_echo "$ac_cv_have_readahead_decl" >&6; }
81364 if test x"$ac_cv_have_readahead_decl" = x"yes"; then
81365
81366cat >>confdefs.h <<\_ACEOF
81367#define HAVE_READAHEAD_DECL 1
81368_ACEOF
81369
81370 fi
81371
81372
81373############################################
81374# See if we have the posix_fadvise syscall.
81375
81376{ $as_echo "$as_me:$LINENO: checking for posix_fadvise" >&5
81377$as_echo_n "checking for posix_fadvise... " >&6; }
81378if test "${samba_cv_HAVE_POSIX_FADVISE+set}" = set; then
81379  $as_echo_n "(cached) " >&6
81380else
81381
81382    cat >conftest.$ac_ext <<_ACEOF
81383/* confdefs.h.  */
81384_ACEOF
81385cat confdefs.h >>conftest.$ac_ext
81386cat >>conftest.$ac_ext <<_ACEOF
81387/* end confdefs.h.  */
81388
81389#if defined(HAVE_UNISTD_H)
81390#include <unistd.h>
81391#endif
81392#include <fcntl.h>
81393int
81394main ()
81395{
81396ssize_t err = posix_fadvise(0,0,0x80000,POSIX_FADV_WILLNEED);
81397  ;
81398  return 0;
81399}
81400_ACEOF
81401rm -f conftest.$ac_objext conftest$ac_exeext
81402if { (ac_try="$ac_link"
81403case "(($ac_try" in
81404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81405  *) ac_try_echo=$ac_try;;
81406esac
81407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81408$as_echo "$ac_try_echo") >&5
81409  (eval "$ac_link") 2>conftest.er1
81410  ac_status=$?
81411  grep -v '^ *+' conftest.er1 >conftest.err
81412  rm -f conftest.er1
81413  cat conftest.err >&5
81414  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81415  (exit $ac_status); } && {
81416	 test -z "$ac_c_werror_flag" ||
81417	 test ! -s conftest.err
81418       } && test -s conftest$ac_exeext && {
81419	 test "$cross_compiling" = yes ||
81420	 $as_test_x conftest$ac_exeext
81421       }; then
81422  samba_cv_HAVE_POSIX_FADVISE=yes
81423else
81424  $as_echo "$as_me: failed program was:" >&5
81425sed 's/^/| /' conftest.$ac_ext >&5
81426
81427	samba_cv_HAVE_POSIX_FADVISE=no
81428fi
81429
81430rm -rf conftest.dSYM
81431rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
81432      conftest$ac_exeext conftest.$ac_ext
81433fi
81434{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_FADVISE" >&5
81435$as_echo "$samba_cv_HAVE_POSIX_FADVISE" >&6; }
81436
81437if test x"$samba_cv_HAVE_POSIX_FADVISE" = x"yes"; then
81438
81439cat >>confdefs.h <<\_ACEOF
81440#define HAVE_POSIX_FADVISE 1
81441_ACEOF
81442
81443fi
81444
81445############################################
81446# See if we have the Linux splice syscall.
81447
81448case "$host_os" in
81449*linux*)
81450{ $as_echo "$as_me:$LINENO: checking for Linux splice" >&5
81451$as_echo_n "checking for Linux splice... " >&6; }
81452if test "${samba_cv_HAVE_LINUX_SPLICE+set}" = set; then
81453  $as_echo_n "(cached) " >&6
81454else
81455
81456    cat >conftest.$ac_ext <<_ACEOF
81457/* confdefs.h.  */
81458_ACEOF
81459cat confdefs.h >>conftest.$ac_ext
81460cat >>conftest.$ac_ext <<_ACEOF
81461/* end confdefs.h.  */
81462
81463#if defined(HAVE_UNISTD_H)
81464#include <unistd.h>
81465#endif
81466#include <fcntl.h>
81467int
81468main ()
81469{
81470long ret = splice(0,0,1,0,400,0);
81471  ;
81472  return 0;
81473}
81474_ACEOF
81475rm -f conftest.$ac_objext conftest$ac_exeext
81476if { (ac_try="$ac_link"
81477case "(($ac_try" in
81478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81479  *) ac_try_echo=$ac_try;;
81480esac
81481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81482$as_echo "$ac_try_echo") >&5
81483  (eval "$ac_link") 2>conftest.er1
81484  ac_status=$?
81485  grep -v '^ *+' conftest.er1 >conftest.err
81486  rm -f conftest.er1
81487  cat conftest.err >&5
81488  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81489  (exit $ac_status); } && {
81490	 test -z "$ac_c_werror_flag" ||
81491	 test ! -s conftest.err
81492       } && test -s conftest$ac_exeext && {
81493	 test "$cross_compiling" = yes ||
81494	 $as_test_x conftest$ac_exeext
81495       }; then
81496  samba_cv_HAVE_LINUX_SPLICE=yes
81497else
81498  $as_echo "$as_me: failed program was:" >&5
81499sed 's/^/| /' conftest.$ac_ext >&5
81500
81501	samba_cv_HAVE_LINUX_SPLICE=no
81502fi
81503
81504rm -rf conftest.dSYM
81505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
81506      conftest$ac_exeext conftest.$ac_ext
81507fi
81508{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_LINUX_SPLICE" >&5
81509$as_echo "$samba_cv_HAVE_LINUX_SPLICE" >&6; }
81510;;
81511*)
81512samba_cv_HAVE_LINUX_SPLICE=no
81513;;
81514esac
81515
81516if test x"$samba_cv_HAVE_LINUX_SPLICE" = x"yes"; then
81517
81518cat >>confdefs.h <<\_ACEOF
81519#define HAVE_LINUX_SPLICE 1
81520_ACEOF
81521
81522fi
81523
81524
81525 { $as_echo "$as_me:$LINENO: checking for splice declaration" >&5
81526$as_echo_n "checking for splice declaration... " >&6; }
81527if test "${ac_cv_have_splice_decl+set}" = set; then
81528  $as_echo_n "(cached) " >&6
81529else
81530
81531    cat >conftest.$ac_ext <<_ACEOF
81532/* confdefs.h.  */
81533_ACEOF
81534cat confdefs.h >>conftest.$ac_ext
81535cat >>conftest.$ac_ext <<_ACEOF
81536/* end confdefs.h.  */
81537#include <fcntl.h>
81538int
81539main ()
81540{
81541int i = (int)splice
81542  ;
81543  return 0;
81544}
81545_ACEOF
81546rm -f conftest.$ac_objext
81547if { (ac_try="$ac_compile"
81548case "(($ac_try" in
81549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81550  *) ac_try_echo=$ac_try;;
81551esac
81552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81553$as_echo "$ac_try_echo") >&5
81554  (eval "$ac_compile") 2>conftest.er1
81555  ac_status=$?
81556  grep -v '^ *+' conftest.er1 >conftest.err
81557  rm -f conftest.er1
81558  cat conftest.err >&5
81559  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81560  (exit $ac_status); } && {
81561	 test -z "$ac_c_werror_flag" ||
81562	 test ! -s conftest.err
81563       } && test -s conftest.$ac_objext; then
81564  ac_cv_have_splice_decl=yes
81565else
81566  $as_echo "$as_me: failed program was:" >&5
81567sed 's/^/| /' conftest.$ac_ext >&5
81568
81569	ac_cv_have_splice_decl=no
81570fi
81571
81572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81573fi
81574{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_splice_decl" >&5
81575$as_echo "$ac_cv_have_splice_decl" >&6; }
81576 if test x"$ac_cv_have_splice_decl" = x"yes"; then
81577
81578cat >>confdefs.h <<\_ACEOF
81579#define HAVE_SPLICE_DECL 1
81580_ACEOF
81581
81582 fi
81583
81584
81585############################################
81586# See if we have the a broken readlink syscall.
81587
81588{ $as_echo "$as_me:$LINENO: checking for a broken readlink syscall" >&5
81589$as_echo_n "checking for a broken readlink syscall... " >&6; }
81590if test "${samba_cv_HAVE_BROKEN_READLINK+set}" = set; then
81591  $as_echo_n "(cached) " >&6
81592else
81593
81594if test "$cross_compiling" = yes; then
81595  samba_cv_HAVE_BROKEN_READLINK=cross
81596else
81597  cat >conftest.$ac_ext <<_ACEOF
81598/* confdefs.h.  */
81599_ACEOF
81600cat confdefs.h >>conftest.$ac_ext
81601cat >>conftest.$ac_ext <<_ACEOF
81602/* end confdefs.h.  */
81603#include "${srcdir-.}/../tests/readlink.c"
81604_ACEOF
81605rm -f conftest$ac_exeext
81606if { (ac_try="$ac_link"
81607case "(($ac_try" in
81608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81609  *) ac_try_echo=$ac_try;;
81610esac
81611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81612$as_echo "$ac_try_echo") >&5
81613  (eval "$ac_link") 2>&5
81614  ac_status=$?
81615  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81616  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81617  { (case "(($ac_try" in
81618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81619  *) ac_try_echo=$ac_try;;
81620esac
81621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81622$as_echo "$ac_try_echo") >&5
81623  (eval "$ac_try") 2>&5
81624  ac_status=$?
81625  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81626  (exit $ac_status); }; }; then
81627  samba_cv_HAVE_BROKEN_READLINK=no
81628else
81629  $as_echo "$as_me: program exited with status $ac_status" >&5
81630$as_echo "$as_me: failed program was:" >&5
81631sed 's/^/| /' conftest.$ac_ext >&5
81632
81633( exit $ac_status )
81634samba_cv_HAVE_BROKEN_READLINK=yes
81635fi
81636rm -rf conftest.dSYM
81637rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
81638fi
81639
81640
81641
81642fi
81643{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READLINK" >&5
81644$as_echo "$samba_cv_HAVE_BROKEN_READLINK" >&6; }
81645if test x"$samba_cv_HAVE_BROKEN_READLINK" = x"yes"; then
81646
81647cat >>confdefs.h <<\_ACEOF
81648#define HAVE_BROKEN_READLINK 1
81649_ACEOF
81650
81651fi
81652
81653#################################################
81654# Check whether winbind is supported on this platform.  If so we need to
81655# build and install client programs, sbin programs and shared libraries
81656
81657{ $as_echo "$as_me:$LINENO: checking whether to build winbind" >&5
81658$as_echo_n "checking whether to build winbind... " >&6; }
81659
81660# Initially, the value of $host_os decides whether winbind is supported
81661
81662HAVE_WINBIND=yes
81663HAVE_WBCLIENT=no
81664
81665# Define external wbclient library to link against.  This disables winbind.
81666# We define this here so --with-winbind can override it.
81667
81668# Check whether --with-wbclient was given.
81669if test "${with_wbclient+set}" = set; then
81670  withval=$with_wbclient;
81671  case "$withval" in
81672        no)
81673		HAVE_WBCLIENT=no
81674		;;
81675	yes)
81676		HAVE_WBCLIENT=yes
81677		HAVE_WINBIND=no
81678		;;
81679        *)
81680		HAVE_WBCLIENT=yes
81681		HAVE_WINBIND=no
81682		WBCLIENT_INCLUDES="-I$withval/include"
81683		WBCLIENT_LDFLAGS="-L$withval/lib"
81684		;;
81685  esac
81686fi
81687
81688
81689
81690
81691
81692
81693
81694# Define the winbind shared library name and any specific linker flags
81695# it needs to be built with.
81696
81697WINBIND_NSS="../nsswitch/libnss_winbind.$SHLIBEXT"
81698WINBIND_WINS_NSS="../nsswitch/libnss_wins.$SHLIBEXT"
81699WINBIND_NSS_LDSHFLAGS=$LDSHFLAGS
81700NSSSONAMEVERSIONSUFFIX=""
81701
81702case "$host_os" in
81703	*linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu)
81704		NSSSONAMEVERSIONSUFFIX=".2"
81705		WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_linux.o"
81706		;;
81707	*freebsd[5-9]*)
81708		# FreeBSD winbind client is implemented as a wrapper around
81709		# the Linux version.
81710		NSSSONAMEVERSIONSUFFIX=".1"
81711		WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_freebsd.o \
81712		    ../nsswitch/winbind_nss_linux.o"
81713		WINBIND_NSS="../nsswitch/nss_winbind.$SHLIBEXT"
81714		WINBIND_WINS_NSS="../nsswitch/nss_wins.$SHLIBEXT"
81715		;;
81716
81717	*netbsd*[3-9]*)
81718		# NetBSD winbind client is implemented as a wrapper
81719		# around the Linux version. It needs getpwent_r() to
81720		# indicate libc's use of the correct nsdispatch API.
81721		#
81722		if test x"$ac_cv_func_getpwent_r" = x"yes"; then
81723			WINBIND_NSS_EXTRA_OBJS="\
81724			    ../nsswitch/winbind_nss_netbsd.o \
81725			    ../nsswitch/winbind_nss_linux.o"
81726			WINBIND_NSS="../nsswitch/nss_winbind.$SHLIBEXT"
81727			WINBIND_WINS_NSS="../nsswitch/nss_wins.$SHLIBEXT"
81728		else
81729			HAVE_WINBIND=no
81730			winbind_no_reason=", getpwent_r is missing on $host_os so winbind is unsupported"
81731		fi
81732		;;
81733	*irix*)
81734		# IRIX has differently named shared libraries
81735		WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_irix.o"
81736		WINBIND_NSS="../nsswitch/libns_winbind.$SHLIBEXT"
81737		WINBIND_WINS_NSS="../nsswitch/libns_wins.$SHLIBEXT"
81738		;;
81739	*solaris*)
81740		# Solaris winbind client is implemented as a wrapper around
81741		# the Linux version.
81742		NSSSONAMEVERSIONSUFFIX=".1"
81743		WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_solaris.o \
81744		    ../nsswitch/winbind_nss_linux.o"
81745		;;
81746	*hpux11*)
81747		WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_solaris.o"
81748		;;
81749	*aix*)
81750		# AIX has even differently named shared libraries.  No
81751		# WINS support has been implemented yet.
81752		WINBIND_NSS_EXTRA_OBJS="../nsswitch/winbind_nss_aix.o"
81753		WINBIND_NSS_LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-ewb_aix_init"
81754		WINBIND_NSS="../nsswitch/WINBIND"
81755		WINBIND_WINS_NSS=""
81756		;;
81757	*)
81758		HAVE_WINBIND=no
81759		winbind_no_reason=", unsupported on $host_os"
81760		;;
81761esac
81762
81763# Check the setting of --with-winbind
81764
81765
81766# Check whether --with-winbind was given.
81767if test "${with_winbind+set}" = set; then
81768  withval=$with_winbind;
81769  case "$withval" in
81770	yes)
81771		HAVE_WINBIND=yes
81772		HAVE_WBCLIENT=no
81773		;;
81774        no)
81775		HAVE_WINBIND=no
81776                winbind_reason=""
81777                ;;
81778  esac
81779fi
81780
81781
81782# We need unix domain sockets for winbind
81783
81784if test x"$HAVE_WINBIND" = x"yes"; then
81785	if test x"$libreplace_cv_HAVE_UNIXSOCKET" = x"no"; then
81786		winbind_no_reason=", no unix domain socket support on $host_os"
81787		HAVE_WINBIND=no
81788	fi
81789fi
81790
81791# Display test results
81792
81793if test x"$HAVE_WINBIND" = x"no"; then
81794	WINBIND_NSS=""
81795	WINBIND_WINS_NSS=""
81796fi
81797if test x"$HAVE_WBCLIENT" = x"yes"; then
81798        { $as_echo "$as_me:$LINENO: checking for wbcInterfaceDetails in -lwbclient" >&5
81799$as_echo_n "checking for wbcInterfaceDetails in -lwbclient... " >&6; }
81800if test "${ac_cv_lib_wbclient_wbcInterfaceDetails+set}" = set; then
81801  $as_echo_n "(cached) " >&6
81802else
81803  ac_check_lib_save_LIBS=$LIBS
81804LIBS="-lwbclient $WBCLIENT_LDFLAGS $LIBS"
81805cat >conftest.$ac_ext <<_ACEOF
81806/* confdefs.h.  */
81807_ACEOF
81808cat confdefs.h >>conftest.$ac_ext
81809cat >>conftest.$ac_ext <<_ACEOF
81810/* end confdefs.h.  */
81811
81812/* Override any GCC internal prototype to avoid an error.
81813   Use char because int might match the return type of a GCC
81814   builtin and then its argument prototype would still apply.  */
81815#ifdef __cplusplus
81816extern "C"
81817#endif
81818char wbcInterfaceDetails ();
81819int
81820main ()
81821{
81822return wbcInterfaceDetails ();
81823  ;
81824  return 0;
81825}
81826_ACEOF
81827rm -f conftest.$ac_objext conftest$ac_exeext
81828if { (ac_try="$ac_link"
81829case "(($ac_try" in
81830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81831  *) ac_try_echo=$ac_try;;
81832esac
81833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81834$as_echo "$ac_try_echo") >&5
81835  (eval "$ac_link") 2>conftest.er1
81836  ac_status=$?
81837  grep -v '^ *+' conftest.er1 >conftest.err
81838  rm -f conftest.er1
81839  cat conftest.err >&5
81840  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81841  (exit $ac_status); } && {
81842	 test -z "$ac_c_werror_flag" ||
81843	 test ! -s conftest.err
81844       } && test -s conftest$ac_exeext && {
81845	 test "$cross_compiling" = yes ||
81846	 $as_test_x conftest$ac_exeext
81847       }; then
81848  ac_cv_lib_wbclient_wbcInterfaceDetails=yes
81849else
81850  $as_echo "$as_me: failed program was:" >&5
81851sed 's/^/| /' conftest.$ac_ext >&5
81852
81853	ac_cv_lib_wbclient_wbcInterfaceDetails=no
81854fi
81855
81856rm -rf conftest.dSYM
81857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
81858      conftest$ac_exeext conftest.$ac_ext
81859LIBS=$ac_check_lib_save_LIBS
81860fi
81861{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wbclient_wbcInterfaceDetails" >&5
81862$as_echo "$ac_cv_lib_wbclient_wbcInterfaceDetails" >&6; }
81863if test "x$ac_cv_lib_wbclient_wbcInterfaceDetails" = x""yes; then
81864  LIBWBCLIENT_LIBS="-lwbclient"
81865else
81866  { { $as_echo "$as_me:$LINENO: error: Could not find wbclient" >&5
81867$as_echo "$as_me: error: Could not find wbclient" >&2;}
81868   { (exit 1); exit 1; }; }
81869fi
81870
81871	LIBWBCLIENT_LIBS="$LIBWBCLIENT_LIBS $WBCLIENT_LDFLAGS"
81872	{ $as_echo "$as_me:$LINENO: result: yes" >&5
81873$as_echo "yes" >&6; }
81874
81875cat >>confdefs.h <<\_ACEOF
81876#define WITH_WINBIND 1
81877_ACEOF
81878
81879	EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
81880else
81881	if test x"$enable_developer" = x"yes" -a x"$LINK_LIBWBCLIENT" = x"STATIC" ; then
81882		BUILD_LIBWBCLIENT_SHARED=no
81883	else
81884		BUILD_LIBWBCLIENT_SHARED=yes
81885	fi
81886
81887	LIBWBCLIENT_SHARED_TARGET=bin/libwbclient.$SHLIBEXT
81888	LIBWBCLIENT_STATIC_TARGET=bin/libwbclient.a
81889	LIBWBCLIENT_SOVER=0
81890	if test $BLDSHARED = true -a x"$HAVE_WINBIND" = x"yes" -a x"$BUILD_LIBWBCLIENT_SHARED" = x"yes"; then
81891		NSS_MODULES="${WINBIND_NSS} ${WINBIND_WINS_NSS}"
81892		## Only worry about libwbclient if we have shared
81893		# library support
81894		LIBWBCLIENT_SHARED=$LIBWBCLIENT_SHARED_TARGET
81895		LIBWBCLIENT=libwbclient
81896		INSTALL_LIBWBCLIENT=installlibwbclient
81897		UNINSTALL_LIBWBCLIENT=uninstalllibwbclient
81898		LIBWBCLIENT_LIBS="-lwbclient"
81899	else
81900		LIBWBCLIENT_STATIC=$LIBWBCLIENT_STATIC_TARGET
81901		LIBWBCLIENT_LIBS=$LIBWBCLIENT_STATIC_TARGET
81902	fi
81903fi
81904
81905if test x"$HAVE_WINBIND" = x"yes"; then
81906        { $as_echo "$as_me:$LINENO: result: yes" >&5
81907$as_echo "yes" >&6; }
81908
81909cat >>confdefs.h <<\_ACEOF
81910#define WITH_WINBIND 1
81911_ACEOF
81912
81913
81914	EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
81915	EXTRA_SBIN_PROGS="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
81916        if test $BLDSHARED = true -a x"$create_pam_modules" = x"yes"; then
81917		PAM_MODULES="$PAM_MODULES pam_winbind"
81918		INSTALL_PAM_MODULES="installpammodules"
81919		UNINSTALL_PAM_MODULES="uninstallpammodules"
81920	fi
81921else
81922        { $as_echo "$as_me:$LINENO: result: no$winbind_no_reason" >&5
81923$as_echo "no$winbind_no_reason" >&6; }
81924fi
81925
81926
81927
81928
81929
81930
81931
81932
81933
81934# Solaris 10 does have new member in nss_XbyY_key
81935{ $as_echo "$as_me:$LINENO: checking for union nss_XbyY_key.ipnode.af_family" >&5
81936$as_echo_n "checking for union nss_XbyY_key.ipnode.af_family... " >&6; }
81937if test "${ac_cv_member_union_nss_XbyY_key_ipnode_af_family+set}" = set; then
81938  $as_echo_n "(cached) " >&6
81939else
81940  cat >conftest.$ac_ext <<_ACEOF
81941/* confdefs.h.  */
81942_ACEOF
81943cat confdefs.h >>conftest.$ac_ext
81944cat >>conftest.$ac_ext <<_ACEOF
81945/* end confdefs.h.  */
81946#include <nss_dbdefs.h>
81947
81948int
81949main ()
81950{
81951static union nss_XbyY_key ac_aggr;
81952if (ac_aggr.ipnode.af_family)
81953return 0;
81954  ;
81955  return 0;
81956}
81957_ACEOF
81958rm -f conftest.$ac_objext
81959if { (ac_try="$ac_compile"
81960case "(($ac_try" in
81961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
81962  *) ac_try_echo=$ac_try;;
81963esac
81964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
81965$as_echo "$ac_try_echo") >&5
81966  (eval "$ac_compile") 2>conftest.er1
81967  ac_status=$?
81968  grep -v '^ *+' conftest.er1 >conftest.err
81969  rm -f conftest.er1
81970  cat conftest.err >&5
81971  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
81972  (exit $ac_status); } && {
81973	 test -z "$ac_c_werror_flag" ||
81974	 test ! -s conftest.err
81975       } && test -s conftest.$ac_objext; then
81976  ac_cv_member_union_nss_XbyY_key_ipnode_af_family=yes
81977else
81978  $as_echo "$as_me: failed program was:" >&5
81979sed 's/^/| /' conftest.$ac_ext >&5
81980
81981	cat >conftest.$ac_ext <<_ACEOF
81982/* confdefs.h.  */
81983_ACEOF
81984cat confdefs.h >>conftest.$ac_ext
81985cat >>conftest.$ac_ext <<_ACEOF
81986/* end confdefs.h.  */
81987#include <nss_dbdefs.h>
81988
81989int
81990main ()
81991{
81992static union nss_XbyY_key ac_aggr;
81993if (sizeof ac_aggr.ipnode.af_family)
81994return 0;
81995  ;
81996  return 0;
81997}
81998_ACEOF
81999rm -f conftest.$ac_objext
82000if { (ac_try="$ac_compile"
82001case "(($ac_try" in
82002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82003  *) ac_try_echo=$ac_try;;
82004esac
82005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82006$as_echo "$ac_try_echo") >&5
82007  (eval "$ac_compile") 2>conftest.er1
82008  ac_status=$?
82009  grep -v '^ *+' conftest.er1 >conftest.err
82010  rm -f conftest.er1
82011  cat conftest.err >&5
82012  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82013  (exit $ac_status); } && {
82014	 test -z "$ac_c_werror_flag" ||
82015	 test ! -s conftest.err
82016       } && test -s conftest.$ac_objext; then
82017  ac_cv_member_union_nss_XbyY_key_ipnode_af_family=yes
82018else
82019  $as_echo "$as_me: failed program was:" >&5
82020sed 's/^/| /' conftest.$ac_ext >&5
82021
82022	ac_cv_member_union_nss_XbyY_key_ipnode_af_family=no
82023fi
82024
82025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82026fi
82027
82028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82029fi
82030{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_union_nss_XbyY_key_ipnode_af_family" >&5
82031$as_echo "$ac_cv_member_union_nss_XbyY_key_ipnode_af_family" >&6; }
82032if test "x$ac_cv_member_union_nss_XbyY_key_ipnode_af_family" = x""yes; then
82033
82034cat >>confdefs.h <<\_ACEOF
82035#define HAVE_NSS_XBYY_KEY_IPNODE 1
82036_ACEOF
82037
82038fi
82039
82040
82041# Solaris has some extra fields in struct passwd that need to be
82042# initialised otherwise nscd crashes.
82043
82044{ $as_echo "$as_me:$LINENO: checking for struct passwd.pw_comment" >&5
82045$as_echo_n "checking for struct passwd.pw_comment... " >&6; }
82046if test "${ac_cv_member_struct_passwd_pw_comment+set}" = set; then
82047  $as_echo_n "(cached) " >&6
82048else
82049  cat >conftest.$ac_ext <<_ACEOF
82050/* confdefs.h.  */
82051_ACEOF
82052cat confdefs.h >>conftest.$ac_ext
82053cat >>conftest.$ac_ext <<_ACEOF
82054/* end confdefs.h.  */
82055#include <pwd.h>
82056
82057int
82058main ()
82059{
82060static struct passwd ac_aggr;
82061if (ac_aggr.pw_comment)
82062return 0;
82063  ;
82064  return 0;
82065}
82066_ACEOF
82067rm -f conftest.$ac_objext
82068if { (ac_try="$ac_compile"
82069case "(($ac_try" in
82070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82071  *) ac_try_echo=$ac_try;;
82072esac
82073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82074$as_echo "$ac_try_echo") >&5
82075  (eval "$ac_compile") 2>conftest.er1
82076  ac_status=$?
82077  grep -v '^ *+' conftest.er1 >conftest.err
82078  rm -f conftest.er1
82079  cat conftest.err >&5
82080  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82081  (exit $ac_status); } && {
82082	 test -z "$ac_c_werror_flag" ||
82083	 test ! -s conftest.err
82084       } && test -s conftest.$ac_objext; then
82085  ac_cv_member_struct_passwd_pw_comment=yes
82086else
82087  $as_echo "$as_me: failed program was:" >&5
82088sed 's/^/| /' conftest.$ac_ext >&5
82089
82090	cat >conftest.$ac_ext <<_ACEOF
82091/* confdefs.h.  */
82092_ACEOF
82093cat confdefs.h >>conftest.$ac_ext
82094cat >>conftest.$ac_ext <<_ACEOF
82095/* end confdefs.h.  */
82096#include <pwd.h>
82097
82098int
82099main ()
82100{
82101static struct passwd ac_aggr;
82102if (sizeof ac_aggr.pw_comment)
82103return 0;
82104  ;
82105  return 0;
82106}
82107_ACEOF
82108rm -f conftest.$ac_objext
82109if { (ac_try="$ac_compile"
82110case "(($ac_try" in
82111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82112  *) ac_try_echo=$ac_try;;
82113esac
82114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82115$as_echo "$ac_try_echo") >&5
82116  (eval "$ac_compile") 2>conftest.er1
82117  ac_status=$?
82118  grep -v '^ *+' conftest.er1 >conftest.err
82119  rm -f conftest.er1
82120  cat conftest.err >&5
82121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82122  (exit $ac_status); } && {
82123	 test -z "$ac_c_werror_flag" ||
82124	 test ! -s conftest.err
82125       } && test -s conftest.$ac_objext; then
82126  ac_cv_member_struct_passwd_pw_comment=yes
82127else
82128  $as_echo "$as_me: failed program was:" >&5
82129sed 's/^/| /' conftest.$ac_ext >&5
82130
82131	ac_cv_member_struct_passwd_pw_comment=no
82132fi
82133
82134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82135fi
82136
82137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82138fi
82139{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_comment" >&5
82140$as_echo "$ac_cv_member_struct_passwd_pw_comment" >&6; }
82141if test "x$ac_cv_member_struct_passwd_pw_comment" = x""yes; then
82142
82143cat >>confdefs.h <<\_ACEOF
82144#define HAVE_PASSWD_PW_COMMENT 1
82145_ACEOF
82146
82147fi
82148
82149
82150{ $as_echo "$as_me:$LINENO: checking for struct passwd.pw_age" >&5
82151$as_echo_n "checking for struct passwd.pw_age... " >&6; }
82152if test "${ac_cv_member_struct_passwd_pw_age+set}" = set; then
82153  $as_echo_n "(cached) " >&6
82154else
82155  cat >conftest.$ac_ext <<_ACEOF
82156/* confdefs.h.  */
82157_ACEOF
82158cat confdefs.h >>conftest.$ac_ext
82159cat >>conftest.$ac_ext <<_ACEOF
82160/* end confdefs.h.  */
82161#include <pwd.h>
82162
82163int
82164main ()
82165{
82166static struct passwd ac_aggr;
82167if (ac_aggr.pw_age)
82168return 0;
82169  ;
82170  return 0;
82171}
82172_ACEOF
82173rm -f conftest.$ac_objext
82174if { (ac_try="$ac_compile"
82175case "(($ac_try" in
82176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82177  *) ac_try_echo=$ac_try;;
82178esac
82179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82180$as_echo "$ac_try_echo") >&5
82181  (eval "$ac_compile") 2>conftest.er1
82182  ac_status=$?
82183  grep -v '^ *+' conftest.er1 >conftest.err
82184  rm -f conftest.er1
82185  cat conftest.err >&5
82186  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82187  (exit $ac_status); } && {
82188	 test -z "$ac_c_werror_flag" ||
82189	 test ! -s conftest.err
82190       } && test -s conftest.$ac_objext; then
82191  ac_cv_member_struct_passwd_pw_age=yes
82192else
82193  $as_echo "$as_me: failed program was:" >&5
82194sed 's/^/| /' conftest.$ac_ext >&5
82195
82196	cat >conftest.$ac_ext <<_ACEOF
82197/* confdefs.h.  */
82198_ACEOF
82199cat confdefs.h >>conftest.$ac_ext
82200cat >>conftest.$ac_ext <<_ACEOF
82201/* end confdefs.h.  */
82202#include <pwd.h>
82203
82204int
82205main ()
82206{
82207static struct passwd ac_aggr;
82208if (sizeof ac_aggr.pw_age)
82209return 0;
82210  ;
82211  return 0;
82212}
82213_ACEOF
82214rm -f conftest.$ac_objext
82215if { (ac_try="$ac_compile"
82216case "(($ac_try" in
82217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82218  *) ac_try_echo=$ac_try;;
82219esac
82220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82221$as_echo "$ac_try_echo") >&5
82222  (eval "$ac_compile") 2>conftest.er1
82223  ac_status=$?
82224  grep -v '^ *+' conftest.er1 >conftest.err
82225  rm -f conftest.er1
82226  cat conftest.err >&5
82227  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82228  (exit $ac_status); } && {
82229	 test -z "$ac_c_werror_flag" ||
82230	 test ! -s conftest.err
82231       } && test -s conftest.$ac_objext; then
82232  ac_cv_member_struct_passwd_pw_age=yes
82233else
82234  $as_echo "$as_me: failed program was:" >&5
82235sed 's/^/| /' conftest.$ac_ext >&5
82236
82237	ac_cv_member_struct_passwd_pw_age=no
82238fi
82239
82240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82241fi
82242
82243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82244fi
82245{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_age" >&5
82246$as_echo "$ac_cv_member_struct_passwd_pw_age" >&6; }
82247if test "x$ac_cv_member_struct_passwd_pw_age" = x""yes; then
82248
82249cat >>confdefs.h <<\_ACEOF
82250#define HAVE_PASSWD_PW_AGE 1
82251_ACEOF
82252
82253fi
82254
82255
82256# AIX 4.3.x and 5.1 do not have as many members in
82257# struct secmethod_table as AIX 5.2
82258{ $as_echo "$as_me:$LINENO: checking for struct secmethod_table.method_attrlist" >&5
82259$as_echo_n "checking for struct secmethod_table.method_attrlist... " >&6; }
82260if test "${ac_cv_member_struct_secmethod_table_method_attrlist+set}" = set; then
82261  $as_echo_n "(cached) " >&6
82262else
82263  cat >conftest.$ac_ext <<_ACEOF
82264/* confdefs.h.  */
82265_ACEOF
82266cat confdefs.h >>conftest.$ac_ext
82267cat >>conftest.$ac_ext <<_ACEOF
82268/* end confdefs.h.  */
82269#include <usersec.h>
82270
82271int
82272main ()
82273{
82274static struct secmethod_table ac_aggr;
82275if (ac_aggr.method_attrlist)
82276return 0;
82277  ;
82278  return 0;
82279}
82280_ACEOF
82281rm -f conftest.$ac_objext
82282if { (ac_try="$ac_compile"
82283case "(($ac_try" in
82284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82285  *) ac_try_echo=$ac_try;;
82286esac
82287eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82288$as_echo "$ac_try_echo") >&5
82289  (eval "$ac_compile") 2>conftest.er1
82290  ac_status=$?
82291  grep -v '^ *+' conftest.er1 >conftest.err
82292  rm -f conftest.er1
82293  cat conftest.err >&5
82294  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82295  (exit $ac_status); } && {
82296	 test -z "$ac_c_werror_flag" ||
82297	 test ! -s conftest.err
82298       } && test -s conftest.$ac_objext; then
82299  ac_cv_member_struct_secmethod_table_method_attrlist=yes
82300else
82301  $as_echo "$as_me: failed program was:" >&5
82302sed 's/^/| /' conftest.$ac_ext >&5
82303
82304	cat >conftest.$ac_ext <<_ACEOF
82305/* confdefs.h.  */
82306_ACEOF
82307cat confdefs.h >>conftest.$ac_ext
82308cat >>conftest.$ac_ext <<_ACEOF
82309/* end confdefs.h.  */
82310#include <usersec.h>
82311
82312int
82313main ()
82314{
82315static struct secmethod_table ac_aggr;
82316if (sizeof ac_aggr.method_attrlist)
82317return 0;
82318  ;
82319  return 0;
82320}
82321_ACEOF
82322rm -f conftest.$ac_objext
82323if { (ac_try="$ac_compile"
82324case "(($ac_try" in
82325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82326  *) ac_try_echo=$ac_try;;
82327esac
82328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82329$as_echo "$ac_try_echo") >&5
82330  (eval "$ac_compile") 2>conftest.er1
82331  ac_status=$?
82332  grep -v '^ *+' conftest.er1 >conftest.err
82333  rm -f conftest.er1
82334  cat conftest.err >&5
82335  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82336  (exit $ac_status); } && {
82337	 test -z "$ac_c_werror_flag" ||
82338	 test ! -s conftest.err
82339       } && test -s conftest.$ac_objext; then
82340  ac_cv_member_struct_secmethod_table_method_attrlist=yes
82341else
82342  $as_echo "$as_me: failed program was:" >&5
82343sed 's/^/| /' conftest.$ac_ext >&5
82344
82345	ac_cv_member_struct_secmethod_table_method_attrlist=no
82346fi
82347
82348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82349fi
82350
82351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82352fi
82353{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_secmethod_table_method_attrlist" >&5
82354$as_echo "$ac_cv_member_struct_secmethod_table_method_attrlist" >&6; }
82355if test "x$ac_cv_member_struct_secmethod_table_method_attrlist" = x""yes; then
82356
82357cat >>confdefs.h <<_ACEOF
82358#define HAVE_STRUCT_SECMETHOD_TABLE_METHOD_ATTRLIST 1
82359_ACEOF
82360
82361
82362fi
82363
82364{ $as_echo "$as_me:$LINENO: checking for struct secmethod_table.method_version" >&5
82365$as_echo_n "checking for struct secmethod_table.method_version... " >&6; }
82366if test "${ac_cv_member_struct_secmethod_table_method_version+set}" = set; then
82367  $as_echo_n "(cached) " >&6
82368else
82369  cat >conftest.$ac_ext <<_ACEOF
82370/* confdefs.h.  */
82371_ACEOF
82372cat confdefs.h >>conftest.$ac_ext
82373cat >>conftest.$ac_ext <<_ACEOF
82374/* end confdefs.h.  */
82375#include <usersec.h>
82376
82377int
82378main ()
82379{
82380static struct secmethod_table ac_aggr;
82381if (ac_aggr.method_version)
82382return 0;
82383  ;
82384  return 0;
82385}
82386_ACEOF
82387rm -f conftest.$ac_objext
82388if { (ac_try="$ac_compile"
82389case "(($ac_try" in
82390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82391  *) ac_try_echo=$ac_try;;
82392esac
82393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82394$as_echo "$ac_try_echo") >&5
82395  (eval "$ac_compile") 2>conftest.er1
82396  ac_status=$?
82397  grep -v '^ *+' conftest.er1 >conftest.err
82398  rm -f conftest.er1
82399  cat conftest.err >&5
82400  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82401  (exit $ac_status); } && {
82402	 test -z "$ac_c_werror_flag" ||
82403	 test ! -s conftest.err
82404       } && test -s conftest.$ac_objext; then
82405  ac_cv_member_struct_secmethod_table_method_version=yes
82406else
82407  $as_echo "$as_me: failed program was:" >&5
82408sed 's/^/| /' conftest.$ac_ext >&5
82409
82410	cat >conftest.$ac_ext <<_ACEOF
82411/* confdefs.h.  */
82412_ACEOF
82413cat confdefs.h >>conftest.$ac_ext
82414cat >>conftest.$ac_ext <<_ACEOF
82415/* end confdefs.h.  */
82416#include <usersec.h>
82417
82418int
82419main ()
82420{
82421static struct secmethod_table ac_aggr;
82422if (sizeof ac_aggr.method_version)
82423return 0;
82424  ;
82425  return 0;
82426}
82427_ACEOF
82428rm -f conftest.$ac_objext
82429if { (ac_try="$ac_compile"
82430case "(($ac_try" in
82431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82432  *) ac_try_echo=$ac_try;;
82433esac
82434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82435$as_echo "$ac_try_echo") >&5
82436  (eval "$ac_compile") 2>conftest.er1
82437  ac_status=$?
82438  grep -v '^ *+' conftest.er1 >conftest.err
82439  rm -f conftest.er1
82440  cat conftest.err >&5
82441  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82442  (exit $ac_status); } && {
82443	 test -z "$ac_c_werror_flag" ||
82444	 test ! -s conftest.err
82445       } && test -s conftest.$ac_objext; then
82446  ac_cv_member_struct_secmethod_table_method_version=yes
82447else
82448  $as_echo "$as_me: failed program was:" >&5
82449sed 's/^/| /' conftest.$ac_ext >&5
82450
82451	ac_cv_member_struct_secmethod_table_method_version=no
82452fi
82453
82454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82455fi
82456
82457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82458fi
82459{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_secmethod_table_method_version" >&5
82460$as_echo "$ac_cv_member_struct_secmethod_table_method_version" >&6; }
82461if test "x$ac_cv_member_struct_secmethod_table_method_version" = x""yes; then
82462
82463cat >>confdefs.h <<_ACEOF
82464#define HAVE_STRUCT_SECMETHOD_TABLE_METHOD_VERSION 1
82465_ACEOF
82466
82467
82468fi
82469
82470
82471{ $as_echo "$as_me:$LINENO: checking for SO_PEERCRED" >&5
82472$as_echo_n "checking for SO_PEERCRED... " >&6; }
82473if test "${samba_cv_HAVE_PEERCRED+set}" = set; then
82474  $as_echo_n "(cached) " >&6
82475else
82476
82477cat >conftest.$ac_ext <<_ACEOF
82478/* confdefs.h.  */
82479_ACEOF
82480cat confdefs.h >>conftest.$ac_ext
82481cat >>conftest.$ac_ext <<_ACEOF
82482/* end confdefs.h.  */
82483#include <sys/types.h>
82484#include <sys/socket.h>
82485int
82486main ()
82487{
82488struct ucred cred;
82489 socklen_t cred_len;
82490 int ret = getsockopt(0, SOL_SOCKET, SO_PEERCRED, &cred, &cred_len);
82491
82492  ;
82493  return 0;
82494}
82495_ACEOF
82496rm -f conftest.$ac_objext
82497if { (ac_try="$ac_compile"
82498case "(($ac_try" in
82499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82500  *) ac_try_echo=$ac_try;;
82501esac
82502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82503$as_echo "$ac_try_echo") >&5
82504  (eval "$ac_compile") 2>conftest.er1
82505  ac_status=$?
82506  grep -v '^ *+' conftest.er1 >conftest.err
82507  rm -f conftest.er1
82508  cat conftest.err >&5
82509  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82510  (exit $ac_status); } && {
82511	 test -z "$ac_c_werror_flag" ||
82512	 test ! -s conftest.err
82513       } && test -s conftest.$ac_objext; then
82514  samba_cv_HAVE_PEERCRED=yes
82515else
82516  $as_echo "$as_me: failed program was:" >&5
82517sed 's/^/| /' conftest.$ac_ext >&5
82518
82519	samba_cv_HAVE_PEERCRED=no
82520fi
82521
82522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82523fi
82524{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_PEERCRED" >&5
82525$as_echo "$samba_cv_HAVE_PEERCRED" >&6; }
82526if test x"$samba_cv_HAVE_PEERCRED" = x"yes"; then
82527
82528cat >>confdefs.h <<\_ACEOF
82529#define HAVE_PEERCRED 1
82530_ACEOF
82531
82532fi
82533
82534
82535#################################################
82536# Check to see if we should use the included popt
82537
82538
82539# Check whether --with-included-popt was given.
82540if test "${with_included_popt+set}" = set; then
82541  withval=$with_included_popt;
82542  case "$withval" in
82543	yes)
82544		INCLUDED_POPT=yes
82545		;;
82546        no)
82547		INCLUDED_POPT=no
82548                ;;
82549  esac
82550fi
82551
82552if test x"$INCLUDED_POPT" != x"yes"; then
82553    { $as_echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
82554$as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
82555if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
82556  $as_echo_n "(cached) " >&6
82557else
82558  ac_check_lib_save_LIBS=$LIBS
82559LIBS="-lpopt  $LIBS"
82560cat >conftest.$ac_ext <<_ACEOF
82561/* confdefs.h.  */
82562_ACEOF
82563cat confdefs.h >>conftest.$ac_ext
82564cat >>conftest.$ac_ext <<_ACEOF
82565/* end confdefs.h.  */
82566
82567/* Override any GCC internal prototype to avoid an error.
82568   Use char because int might match the return type of a GCC
82569   builtin and then its argument prototype would still apply.  */
82570#ifdef __cplusplus
82571extern "C"
82572#endif
82573char poptGetContext ();
82574int
82575main ()
82576{
82577return poptGetContext ();
82578  ;
82579  return 0;
82580}
82581_ACEOF
82582rm -f conftest.$ac_objext conftest$ac_exeext
82583if { (ac_try="$ac_link"
82584case "(($ac_try" in
82585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82586  *) ac_try_echo=$ac_try;;
82587esac
82588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82589$as_echo "$ac_try_echo") >&5
82590  (eval "$ac_link") 2>conftest.er1
82591  ac_status=$?
82592  grep -v '^ *+' conftest.er1 >conftest.err
82593  rm -f conftest.er1
82594  cat conftest.err >&5
82595  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82596  (exit $ac_status); } && {
82597	 test -z "$ac_c_werror_flag" ||
82598	 test ! -s conftest.err
82599       } && test -s conftest$ac_exeext && {
82600	 test "$cross_compiling" = yes ||
82601	 $as_test_x conftest$ac_exeext
82602       }; then
82603  ac_cv_lib_popt_poptGetContext=yes
82604else
82605  $as_echo "$as_me: failed program was:" >&5
82606sed 's/^/| /' conftest.$ac_ext >&5
82607
82608	ac_cv_lib_popt_poptGetContext=no
82609fi
82610
82611rm -rf conftest.dSYM
82612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
82613      conftest$ac_exeext conftest.$ac_ext
82614LIBS=$ac_check_lib_save_LIBS
82615fi
82616{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
82617$as_echo "$ac_cv_lib_popt_poptGetContext" >&6; }
82618if test "x$ac_cv_lib_popt_poptGetContext" = x""yes; then
82619  INCLUDED_POPT=no
82620else
82621  INCLUDED_POPT=yes
82622fi
82623
82624fi
82625
82626{ $as_echo "$as_me:$LINENO: checking whether to use included popt" >&5
82627$as_echo_n "checking whether to use included popt... " >&6; }
82628if test x"$INCLUDED_POPT" = x"yes"; then
82629    { $as_echo "$as_me:$LINENO: result: yes" >&5
82630$as_echo "yes" >&6; }
82631    BUILD_POPT='$(POPT_OBJ)'
82632    POPTLIBS='$(POPT_OBJ)'
82633    FLAGS1="-I\$(srcdir)/../lib/popt"
82634else
82635    { $as_echo "$as_me:$LINENO: result: no" >&5
82636$as_echo "no" >&6; }
82637	BUILD_POPT=""
82638    POPTLIBS="-lpopt"
82639fi
82640
82641
82642
82643
82644#################################################
82645# Check if user wants DNS service discovery support
82646
82647# Check whether --enable-dnssd was given.
82648if test "${enable_dnssd+set}" = set; then
82649  enableval=$enable_dnssd;
82650fi
82651
82652
82653
82654if test x"$enable_dnssd" = x"yes"; then
82655    have_dnssd_support=yes
82656
82657
82658for ac_header in dns_sd.h
82659do
82660as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
82661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
82662  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
82663$as_echo_n "checking for $ac_header... " >&6; }
82664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
82665  $as_echo_n "(cached) " >&6
82666fi
82667ac_res=`eval 'as_val=${'$as_ac_Header'}
82668		 $as_echo "$as_val"'`
82669	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
82670$as_echo "$ac_res" >&6; }
82671else
82672  # Is the header compilable?
82673{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
82674$as_echo_n "checking $ac_header usability... " >&6; }
82675cat >conftest.$ac_ext <<_ACEOF
82676/* confdefs.h.  */
82677_ACEOF
82678cat confdefs.h >>conftest.$ac_ext
82679cat >>conftest.$ac_ext <<_ACEOF
82680/* end confdefs.h.  */
82681$ac_includes_default
82682#include <$ac_header>
82683_ACEOF
82684rm -f conftest.$ac_objext
82685if { (ac_try="$ac_compile"
82686case "(($ac_try" in
82687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82688  *) ac_try_echo=$ac_try;;
82689esac
82690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82691$as_echo "$ac_try_echo") >&5
82692  (eval "$ac_compile") 2>conftest.er1
82693  ac_status=$?
82694  grep -v '^ *+' conftest.er1 >conftest.err
82695  rm -f conftest.er1
82696  cat conftest.err >&5
82697  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82698  (exit $ac_status); } && {
82699	 test -z "$ac_c_werror_flag" ||
82700	 test ! -s conftest.err
82701       } && test -s conftest.$ac_objext; then
82702  ac_header_compiler=yes
82703else
82704  $as_echo "$as_me: failed program was:" >&5
82705sed 's/^/| /' conftest.$ac_ext >&5
82706
82707	ac_header_compiler=no
82708fi
82709
82710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82711{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
82712$as_echo "$ac_header_compiler" >&6; }
82713
82714# Is the header present?
82715{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
82716$as_echo_n "checking $ac_header presence... " >&6; }
82717cat >conftest.$ac_ext <<_ACEOF
82718/* confdefs.h.  */
82719_ACEOF
82720cat confdefs.h >>conftest.$ac_ext
82721cat >>conftest.$ac_ext <<_ACEOF
82722/* end confdefs.h.  */
82723#include <$ac_header>
82724_ACEOF
82725if { (ac_try="$ac_cpp conftest.$ac_ext"
82726case "(($ac_try" in
82727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82728  *) ac_try_echo=$ac_try;;
82729esac
82730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82731$as_echo "$ac_try_echo") >&5
82732  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
82733  ac_status=$?
82734  grep -v '^ *+' conftest.er1 >conftest.err
82735  rm -f conftest.er1
82736  cat conftest.err >&5
82737  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82738  (exit $ac_status); } >/dev/null && {
82739	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
82740	 test ! -s conftest.err
82741       }; then
82742  ac_header_preproc=yes
82743else
82744  $as_echo "$as_me: failed program was:" >&5
82745sed 's/^/| /' conftest.$ac_ext >&5
82746
82747  ac_header_preproc=no
82748fi
82749
82750rm -f conftest.err conftest.$ac_ext
82751{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
82752$as_echo "$ac_header_preproc" >&6; }
82753
82754# So?  What about this header?
82755case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
82756  yes:no: )
82757    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
82758$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
82759    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
82760$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
82761    ac_header_preproc=yes
82762    ;;
82763  no:yes:* )
82764    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
82765$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
82766    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
82767$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
82768    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
82769$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
82770    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
82771$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
82772    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
82773$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
82774    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
82775$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
82776    ( cat <<\_ASBOX
82777## ---------------------------------------- ##
82778## Report this to samba-technical@samba.org ##
82779## ---------------------------------------- ##
82780_ASBOX
82781     ) | sed "s/^/$as_me: WARNING:     /" >&2
82782    ;;
82783esac
82784{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
82785$as_echo_n "checking for $ac_header... " >&6; }
82786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
82787  $as_echo_n "(cached) " >&6
82788else
82789  eval "$as_ac_Header=\$ac_header_preproc"
82790fi
82791ac_res=`eval 'as_val=${'$as_ac_Header'}
82792		 $as_echo "$as_val"'`
82793	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
82794$as_echo "$ac_res" >&6; }
82795
82796fi
82797as_val=`eval 'as_val=${'$as_ac_Header'}
82798		 $as_echo "$as_val"'`
82799   if test "x$as_val" = x""yes; then
82800  cat >>confdefs.h <<_ACEOF
82801#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
82802_ACEOF
82803
82804fi
82805
82806done
82807
82808    if test x"$ac_cv_header_dns_sd_h" != x"yes"; then
82809	have_dnssd_support=no
82810    fi
82811
82812    # On Darwin the DNSSD API is in libc, but on other platforms it's
82813    # probably in -ldns_sd
82814
82815for ac_func in DNSServiceRegister
82816do
82817as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
82818{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
82819$as_echo_n "checking for $ac_func... " >&6; }
82820if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
82821  $as_echo_n "(cached) " >&6
82822else
82823  cat >conftest.$ac_ext <<_ACEOF
82824/* confdefs.h.  */
82825_ACEOF
82826cat confdefs.h >>conftest.$ac_ext
82827cat >>conftest.$ac_ext <<_ACEOF
82828/* end confdefs.h.  */
82829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
82830   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
82831#define $ac_func innocuous_$ac_func
82832
82833/* System header to define __stub macros and hopefully few prototypes,
82834    which can conflict with char $ac_func (); below.
82835    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
82836    <limits.h> exists even on freestanding compilers.  */
82837
82838#ifdef __STDC__
82839# include <limits.h>
82840#else
82841# include <assert.h>
82842#endif
82843
82844#undef $ac_func
82845
82846/* Override any GCC internal prototype to avoid an error.
82847   Use char because int might match the return type of a GCC
82848   builtin and then its argument prototype would still apply.  */
82849#ifdef __cplusplus
82850extern "C"
82851#endif
82852char $ac_func ();
82853/* The GNU C library defines this for functions which it implements
82854    to always fail with ENOSYS.  Some functions are actually named
82855    something starting with __ and the normal name is an alias.  */
82856#if defined __stub_$ac_func || defined __stub___$ac_func
82857choke me
82858#endif
82859
82860int
82861main ()
82862{
82863return $ac_func ();
82864  ;
82865  return 0;
82866}
82867_ACEOF
82868rm -f conftest.$ac_objext conftest$ac_exeext
82869if { (ac_try="$ac_link"
82870case "(($ac_try" in
82871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82872  *) ac_try_echo=$ac_try;;
82873esac
82874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82875$as_echo "$ac_try_echo") >&5
82876  (eval "$ac_link") 2>conftest.er1
82877  ac_status=$?
82878  grep -v '^ *+' conftest.er1 >conftest.err
82879  rm -f conftest.er1
82880  cat conftest.err >&5
82881  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82882  (exit $ac_status); } && {
82883	 test -z "$ac_c_werror_flag" ||
82884	 test ! -s conftest.err
82885       } && test -s conftest$ac_exeext && {
82886	 test "$cross_compiling" = yes ||
82887	 $as_test_x conftest$ac_exeext
82888       }; then
82889  eval "$as_ac_var=yes"
82890else
82891  $as_echo "$as_me: failed program was:" >&5
82892sed 's/^/| /' conftest.$ac_ext >&5
82893
82894	eval "$as_ac_var=no"
82895fi
82896
82897rm -rf conftest.dSYM
82898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
82899      conftest$ac_exeext conftest.$ac_ext
82900fi
82901ac_res=`eval 'as_val=${'$as_ac_var'}
82902		 $as_echo "$as_val"'`
82903	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
82904$as_echo "$ac_res" >&6; }
82905as_val=`eval 'as_val=${'$as_ac_var'}
82906		 $as_echo "$as_val"'`
82907   if test "x$as_val" = x""yes; then
82908  cat >>confdefs.h <<_ACEOF
82909#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
82910_ACEOF
82911
82912fi
82913done
82914
82915
82916
82917
82918ac_check_lib_ext_save_LIBS=$LIBS
82919LIBS="-ldns_sd $DNSSD_LIBS  $LIBS"
82920
82921
82922
82923
82924        { $as_echo "$as_me:$LINENO: checking for DNSServiceRegister in -ldns_sd" >&5
82925$as_echo_n "checking for DNSServiceRegister in -ldns_sd... " >&6; }
82926if test "${ac_cv_lib_ext_dns_sd_DNSServiceRegister+set}" = set; then
82927  $as_echo_n "(cached) " >&6
82928else
82929  cat >conftest.$ac_ext <<_ACEOF
82930/* confdefs.h.  */
82931_ACEOF
82932cat confdefs.h >>conftest.$ac_ext
82933cat >>conftest.$ac_ext <<_ACEOF
82934/* end confdefs.h.  */
82935
82936/* Override any GCC internal prototype to avoid an error.
82937   Use char because int might match the return type of a GCC
82938   builtin and then its argument prototype would still apply.  */
82939#ifdef __cplusplus
82940extern "C"
82941#endif
82942char DNSServiceRegister ();
82943int
82944main ()
82945{
82946return DNSServiceRegister ();
82947  ;
82948  return 0;
82949}
82950_ACEOF
82951rm -f conftest.$ac_objext conftest$ac_exeext
82952if { (ac_try="$ac_link"
82953case "(($ac_try" in
82954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82955  *) ac_try_echo=$ac_try;;
82956esac
82957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
82958$as_echo "$ac_try_echo") >&5
82959  (eval "$ac_link") 2>conftest.er1
82960  ac_status=$?
82961  grep -v '^ *+' conftest.er1 >conftest.err
82962  rm -f conftest.er1
82963  cat conftest.err >&5
82964  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
82965  (exit $ac_status); } && {
82966	 test -z "$ac_c_werror_flag" ||
82967	 test ! -s conftest.err
82968       } && test -s conftest$ac_exeext && {
82969	 test "$cross_compiling" = yes ||
82970	 $as_test_x conftest$ac_exeext
82971       }; then
82972  ac_cv_lib_ext_dns_sd_DNSServiceRegister=yes;
82973		  ac_cv_lib_ext_dns_sd=yes
82974else
82975  $as_echo "$as_me: failed program was:" >&5
82976sed 's/^/| /' conftest.$ac_ext >&5
82977
82978	ac_cv_lib_ext_dns_sd_DNSServiceRegister=no;
82979		  ac_cv_lib_ext_dns_sd=no
82980fi
82981
82982rm -rf conftest.dSYM
82983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
82984      conftest$ac_exeext conftest.$ac_ext
82985
82986fi
82987{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_dns_sd_DNSServiceRegister" >&5
82988$as_echo "$ac_cv_lib_ext_dns_sd_DNSServiceRegister" >&6; }
82989    if test $ac_cv_lib_ext_dns_sd_DNSServiceRegister = yes; then
82990  cat >>confdefs.h <<_ACEOF
82991#define HAVE_DNSSERVICEREGISTER 1
82992_ACEOF
82993
82994fi
82995
82996LIBS=$ac_check_lib_ext_save_LIBS
82997
82998if test $ac_cv_lib_ext_dns_sd = yes; then
82999  cat >>confdefs.h <<_ACEOF
83000#define HAVE_LIBDNS_SD 1
83001_ACEOF
83002
83003		case "$DNSSD_LIBS" in
83004		    *-ldns_sd*)
83005			;;
83006		    *)
83007			DNSSD_LIBS="-ldns_sd $DNSSD_LIBS"
83008			;;
83009		esac
83010
83011
83012fi
83013
83014    if test x"$ac_cv_func_DNSServiceRegister" != x"yes" -a \
83015            x"$ac_cv_lib_ext_dns_sd_DNSServiceRegister" != x"yes"; then
83016	have_dnssd_support=no
83017    fi
83018
83019    if test x"$have_dnssd_support" = x"yes"; then
83020
83021cat >>confdefs.h <<\_ACEOF
83022#define WITH_DNSSD_SUPPORT 1
83023_ACEOF
83024
83025    else
83026    	if test x"$enable_dnssd" = x"yes"; then
83027	    { { $as_echo "$as_me:$LINENO: error: DNS service discovery support not available" >&5
83028$as_echo "$as_me: error: DNS service discovery support not available" >&2;}
83029   { (exit 1); exit 1; }; }
83030	fi
83031    fi
83032
83033fi
83034
83035#################################################
83036# Check if user wants avahi support
83037
83038# Check whether --enable-avahi was given.
83039if test "${enable_avahi+set}" = set; then
83040  enableval=$enable_avahi;
83041fi
83042
83043
83044if test x"$enable_avahi" != x"no"; then
83045    have_avahi_support=yes
83046
83047
83048for ac_header in avahi-common/watch.h
83049do
83050as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
83051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
83052  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
83053$as_echo_n "checking for $ac_header... " >&6; }
83054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
83055  $as_echo_n "(cached) " >&6
83056fi
83057ac_res=`eval 'as_val=${'$as_ac_Header'}
83058		 $as_echo "$as_val"'`
83059	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
83060$as_echo "$ac_res" >&6; }
83061else
83062  # Is the header compilable?
83063{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
83064$as_echo_n "checking $ac_header usability... " >&6; }
83065cat >conftest.$ac_ext <<_ACEOF
83066/* confdefs.h.  */
83067_ACEOF
83068cat confdefs.h >>conftest.$ac_ext
83069cat >>conftest.$ac_ext <<_ACEOF
83070/* end confdefs.h.  */
83071$ac_includes_default
83072#include <$ac_header>
83073_ACEOF
83074rm -f conftest.$ac_objext
83075if { (ac_try="$ac_compile"
83076case "(($ac_try" in
83077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
83078  *) ac_try_echo=$ac_try;;
83079esac
83080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
83081$as_echo "$ac_try_echo") >&5
83082  (eval "$ac_compile") 2>conftest.er1
83083  ac_status=$?
83084  grep -v '^ *+' conftest.er1 >conftest.err
83085  rm -f conftest.er1
83086  cat conftest.err >&5
83087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
83088  (exit $ac_status); } && {
83089	 test -z "$ac_c_werror_flag" ||
83090	 test ! -s conftest.err
83091       } && test -s conftest.$ac_objext; then
83092  ac_header_compiler=yes
83093else
83094  $as_echo "$as_me: failed program was:" >&5
83095sed 's/^/| /' conftest.$ac_ext >&5
83096
83097	ac_header_compiler=no
83098fi
83099
83100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
83101{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
83102$as_echo "$ac_header_compiler" >&6; }
83103
83104# Is the header present?
83105{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
83106$as_echo_n "checking $ac_header presence... " >&6; }
83107cat >conftest.$ac_ext <<_ACEOF
83108/* confdefs.h.  */
83109_ACEOF
83110cat confdefs.h >>conftest.$ac_ext
83111cat >>conftest.$ac_ext <<_ACEOF
83112/* end confdefs.h.  */
83113#include <$ac_header>
83114_ACEOF
83115if { (ac_try="$ac_cpp conftest.$ac_ext"
83116case "(($ac_try" in
83117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
83118  *) ac_try_echo=$ac_try;;
83119esac
83120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
83121$as_echo "$ac_try_echo") >&5
83122  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
83123  ac_status=$?
83124  grep -v '^ *+' conftest.er1 >conftest.err
83125  rm -f conftest.er1
83126  cat conftest.err >&5
83127  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
83128  (exit $ac_status); } >/dev/null && {
83129	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
83130	 test ! -s conftest.err
83131       }; then
83132  ac_header_preproc=yes
83133else
83134  $as_echo "$as_me: failed program was:" >&5
83135sed 's/^/| /' conftest.$ac_ext >&5
83136
83137  ac_header_preproc=no
83138fi
83139
83140rm -f conftest.err conftest.$ac_ext
83141{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
83142$as_echo "$ac_header_preproc" >&6; }
83143
83144# So?  What about this header?
83145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
83146  yes:no: )
83147    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
83148$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
83149    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
83150$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
83151    ac_header_preproc=yes
83152    ;;
83153  no:yes:* )
83154    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
83155$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
83156    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
83157$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
83158    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
83159$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
83160    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
83161$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
83162    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
83163$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
83164    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
83165$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
83166    ( cat <<\_ASBOX
83167## ---------------------------------------- ##
83168## Report this to samba-technical@samba.org ##
83169## ---------------------------------------- ##
83170_ASBOX
83171     ) | sed "s/^/$as_me: WARNING:     /" >&2
83172    ;;
83173esac
83174{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
83175$as_echo_n "checking for $ac_header... " >&6; }
83176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
83177  $as_echo_n "(cached) " >&6
83178else
83179  eval "$as_ac_Header=\$ac_header_preproc"
83180fi
83181ac_res=`eval 'as_val=${'$as_ac_Header'}
83182		 $as_echo "$as_val"'`
83183	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
83184$as_echo "$ac_res" >&6; }
83185
83186fi
83187as_val=`eval 'as_val=${'$as_ac_Header'}
83188		 $as_echo "$as_val"'`
83189   if test "x$as_val" = x""yes; then
83190  cat >>confdefs.h <<_ACEOF
83191#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
83192_ACEOF
83193
83194fi
83195
83196done
83197
83198    if test x"$ac_cv_header_avahi_common_watch_h" != x"yes"; then
83199	have_avahi_support=no
83200    fi
83201
83202
83203for ac_header in avahi-client/client.h
83204do
83205as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
83206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
83207  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
83208$as_echo_n "checking for $ac_header... " >&6; }
83209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
83210  $as_echo_n "(cached) " >&6
83211fi
83212ac_res=`eval 'as_val=${'$as_ac_Header'}
83213		 $as_echo "$as_val"'`
83214	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
83215$as_echo "$ac_res" >&6; }
83216else
83217  # Is the header compilable?
83218{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
83219$as_echo_n "checking $ac_header usability... " >&6; }
83220cat >conftest.$ac_ext <<_ACEOF
83221/* confdefs.h.  */
83222_ACEOF
83223cat confdefs.h >>conftest.$ac_ext
83224cat >>conftest.$ac_ext <<_ACEOF
83225/* end confdefs.h.  */
83226$ac_includes_default
83227#include <$ac_header>
83228_ACEOF
83229rm -f conftest.$ac_objext
83230if { (ac_try="$ac_compile"
83231case "(($ac_try" in
83232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
83233  *) ac_try_echo=$ac_try;;
83234esac
83235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
83236$as_echo "$ac_try_echo") >&5
83237  (eval "$ac_compile") 2>conftest.er1
83238  ac_status=$?
83239  grep -v '^ *+' conftest.er1 >conftest.err
83240  rm -f conftest.er1
83241  cat conftest.err >&5
83242  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
83243  (exit $ac_status); } && {
83244	 test -z "$ac_c_werror_flag" ||
83245	 test ! -s conftest.err
83246       } && test -s conftest.$ac_objext; then
83247  ac_header_compiler=yes
83248else
83249  $as_echo "$as_me: failed program was:" >&5
83250sed 's/^/| /' conftest.$ac_ext >&5
83251
83252	ac_header_compiler=no
83253fi
83254
83255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
83256{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
83257$as_echo "$ac_header_compiler" >&6; }
83258
83259# Is the header present?
83260{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
83261$as_echo_n "checking $ac_header presence... " >&6; }
83262cat >conftest.$ac_ext <<_ACEOF
83263/* confdefs.h.  */
83264_ACEOF
83265cat confdefs.h >>conftest.$ac_ext
83266cat >>conftest.$ac_ext <<_ACEOF
83267/* end confdefs.h.  */
83268#include <$ac_header>
83269_ACEOF
83270if { (ac_try="$ac_cpp conftest.$ac_ext"
83271case "(($ac_try" in
83272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
83273  *) ac_try_echo=$ac_try;;
83274esac
83275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
83276$as_echo "$ac_try_echo") >&5
83277  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
83278  ac_status=$?
83279  grep -v '^ *+' conftest.er1 >conftest.err
83280  rm -f conftest.er1
83281  cat conftest.err >&5
83282  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
83283  (exit $ac_status); } >/dev/null && {
83284	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
83285	 test ! -s conftest.err
83286       }; then
83287  ac_header_preproc=yes
83288else
83289  $as_echo "$as_me: failed program was:" >&5
83290sed 's/^/| /' conftest.$ac_ext >&5
83291
83292  ac_header_preproc=no
83293fi
83294
83295rm -f conftest.err conftest.$ac_ext
83296{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
83297$as_echo "$ac_header_preproc" >&6; }
83298
83299# So?  What about this header?
83300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
83301  yes:no: )
83302    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
83303$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
83304    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
83305$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
83306    ac_header_preproc=yes
83307    ;;
83308  no:yes:* )
83309    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
83310$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
83311    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
83312$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
83313    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
83314$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
83315    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
83316$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
83317    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
83318$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
83319    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
83320$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
83321    ( cat <<\_ASBOX
83322## ---------------------------------------- ##
83323## Report this to samba-technical@samba.org ##
83324## ---------------------------------------- ##
83325_ASBOX
83326     ) | sed "s/^/$as_me: WARNING:     /" >&2
83327    ;;
83328esac
83329{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
83330$as_echo_n "checking for $ac_header... " >&6; }
83331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
83332  $as_echo_n "(cached) " >&6
83333else
83334  eval "$as_ac_Header=\$ac_header_preproc"
83335fi
83336ac_res=`eval 'as_val=${'$as_ac_Header'}
83337		 $as_echo "$as_val"'`
83338	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
83339$as_echo "$ac_res" >&6; }
83340
83341fi
83342as_val=`eval 'as_val=${'$as_ac_Header'}
83343		 $as_echo "$as_val"'`
83344   if test "x$as_val" = x""yes; then
83345  cat >>confdefs.h <<_ACEOF
83346#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
83347_ACEOF
83348
83349fi
83350
83351done
83352
83353    if test x"$ac_cv_header_avahi_common_watch_h" != x"yes"; then
83354	have_avahi_support=no
83355    fi
83356
83357    save_LIBS="$LIBS"
83358    { $as_echo "$as_me:$LINENO: checking for avahi_client_new in -lavahi-client" >&5
83359$as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
83360if test "${ac_cv_lib_avahi_client_avahi_client_new+set}" = set; then
83361  $as_echo_n "(cached) " >&6
83362else
83363  ac_check_lib_save_LIBS=$LIBS
83364LIBS="-lavahi-client  $LIBS"
83365cat >conftest.$ac_ext <<_ACEOF
83366/* confdefs.h.  */
83367_ACEOF
83368cat confdefs.h >>conftest.$ac_ext
83369cat >>conftest.$ac_ext <<_ACEOF
83370/* end confdefs.h.  */
83371
83372/* Override any GCC internal prototype to avoid an error.
83373   Use char because int might match the return type of a GCC
83374   builtin and then its argument prototype would still apply.  */
83375#ifdef __cplusplus
83376extern "C"
83377#endif
83378char avahi_client_new ();
83379int
83380main ()
83381{
83382return avahi_client_new ();
83383  ;
83384  return 0;
83385}
83386_ACEOF
83387rm -f conftest.$ac_objext conftest$ac_exeext
83388if { (ac_try="$ac_link"
83389case "(($ac_try" in
83390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
83391  *) ac_try_echo=$ac_try;;
83392esac
83393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
83394$as_echo "$ac_try_echo") >&5
83395  (eval "$ac_link") 2>conftest.er1
83396  ac_status=$?
83397  grep -v '^ *+' conftest.er1 >conftest.err
83398  rm -f conftest.er1
83399  cat conftest.err >&5
83400  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
83401  (exit $ac_status); } && {
83402	 test -z "$ac_c_werror_flag" ||
83403	 test ! -s conftest.err
83404       } && test -s conftest$ac_exeext && {
83405	 test "$cross_compiling" = yes ||
83406	 $as_test_x conftest$ac_exeext
83407       }; then
83408  ac_cv_lib_avahi_client_avahi_client_new=yes
83409else
83410  $as_echo "$as_me: failed program was:" >&5
83411sed 's/^/| /' conftest.$ac_ext >&5
83412
83413	ac_cv_lib_avahi_client_avahi_client_new=no
83414fi
83415
83416rm -rf conftest.dSYM
83417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
83418      conftest$ac_exeext conftest.$ac_ext
83419LIBS=$ac_check_lib_save_LIBS
83420fi
83421{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
83422$as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
83423if test "x$ac_cv_lib_avahi_client_avahi_client_new" = x""yes; then
83424  have_avahi_client_new=yes
83425fi
83426
83427    { $as_echo "$as_me:$LINENO: checking for avahi_strerror in -lavahi-common" >&5
83428$as_echo_n "checking for avahi_strerror in -lavahi-common... " >&6; }
83429if test "${ac_cv_lib_avahi_common_avahi_strerror+set}" = set; then
83430  $as_echo_n "(cached) " >&6
83431else
83432  ac_check_lib_save_LIBS=$LIBS
83433LIBS="-lavahi-common  $LIBS"
83434cat >conftest.$ac_ext <<_ACEOF
83435/* confdefs.h.  */
83436_ACEOF
83437cat confdefs.h >>conftest.$ac_ext
83438cat >>conftest.$ac_ext <<_ACEOF
83439/* end confdefs.h.  */
83440
83441/* Override any GCC internal prototype to avoid an error.
83442   Use char because int might match the return type of a GCC
83443   builtin and then its argument prototype would still apply.  */
83444#ifdef __cplusplus
83445extern "C"
83446#endif
83447char avahi_strerror ();
83448int
83449main ()
83450{
83451return avahi_strerror ();
83452  ;
83453  return 0;
83454}
83455_ACEOF
83456rm -f conftest.$ac_objext conftest$ac_exeext
83457if { (ac_try="$ac_link"
83458case "(($ac_try" in
83459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
83460  *) ac_try_echo=$ac_try;;
83461esac
83462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
83463$as_echo "$ac_try_echo") >&5
83464  (eval "$ac_link") 2>conftest.er1
83465  ac_status=$?
83466  grep -v '^ *+' conftest.er1 >conftest.err
83467  rm -f conftest.er1
83468  cat conftest.err >&5
83469  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
83470  (exit $ac_status); } && {
83471	 test -z "$ac_c_werror_flag" ||
83472	 test ! -s conftest.err
83473       } && test -s conftest$ac_exeext && {
83474	 test "$cross_compiling" = yes ||
83475	 $as_test_x conftest$ac_exeext
83476       }; then
83477  ac_cv_lib_avahi_common_avahi_strerror=yes
83478else
83479  $as_echo "$as_me: failed program was:" >&5
83480sed 's/^/| /' conftest.$ac_ext >&5
83481
83482	ac_cv_lib_avahi_common_avahi_strerror=no
83483fi
83484
83485rm -rf conftest.dSYM
83486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
83487      conftest$ac_exeext conftest.$ac_ext
83488LIBS=$ac_check_lib_save_LIBS
83489fi
83490{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_avahi_common_avahi_strerror" >&5
83491$as_echo "$ac_cv_lib_avahi_common_avahi_strerror" >&6; }
83492if test "x$ac_cv_lib_avahi_common_avahi_strerror" = x""yes; then
83493  have_avahi_strerror=yes
83494fi
83495
83496    LIBS="$save_LIBS"
83497
83498    if test x"$have_avahi_client_new" != x"yes" -o \
83499       x"$have_avahi_strerror" != x"yes" ; then
83500	have_avahi_support=no
83501    fi
83502
83503    if test x"$have_avahi_support" = x"yes"; then
83504        AVAHI_LIBS="-lavahi-client -lavahi-common"
83505
83506
83507cat >>confdefs.h <<\_ACEOF
83508#define WITH_AVAHI_SUPPORT 1
83509_ACEOF
83510
83511	AVAHI_OBJ="lib/avahi.o smbd/avahi_register.o"
83512
83513    else
83514	if test x"$enable_avahi" = x"yes"; then
83515	    { { $as_echo "$as_me:$LINENO: error: avahi support not available" >&5
83516$as_echo "$as_me: error: avahi support not available" >&2;}
83517   { (exit 1); exit 1; }; }
83518	fi
83519    fi
83520fi
83521
83522
83523#################################################
83524# Set pthread stuff
83525
83526PTHREAD_CFLAGS=error
83527PTHREAD_LDFLAGS=error
83528
83529# If it's error, then the user didn't
83530# define it.
83531if test "x$PTHREAD_LDFLAGS" = xerror; then
83532  { $as_echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5
83533$as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; }
83534if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
83535  $as_echo_n "(cached) " >&6
83536else
83537  ac_check_lib_save_LIBS=$LIBS
83538LIBS="-lpthread  $LIBS"
83539cat >conftest.$ac_ext <<_ACEOF
83540/* confdefs.h.  */
83541_ACEOF
83542cat confdefs.h >>conftest.$ac_ext
83543cat >>conftest.$ac_ext <<_ACEOF
83544/* end confdefs.h.  */
83545
83546/* Override any GCC internal prototype to avoid an error.
83547   Use char because int might match the return type of a GCC
83548   builtin and then its argument prototype would still apply.  */
83549#ifdef __cplusplus
83550extern "C"
83551#endif
83552char pthread_attr_init ();
83553int
83554main ()
83555{
83556return pthread_attr_init ();
83557  ;
83558  return 0;
83559}
83560_ACEOF
83561rm -f conftest.$ac_objext conftest$ac_exeext
83562if { (ac_try="$ac_link"
83563case "(($ac_try" in
83564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
83565  *) ac_try_echo=$ac_try;;
83566esac
83567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
83568$as_echo "$ac_try_echo") >&5
83569  (eval "$ac_link") 2>conftest.er1
83570  ac_status=$?
83571  grep -v '^ *+' conftest.er1 >conftest.err
83572  rm -f conftest.er1
83573  cat conftest.err >&5
83574  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
83575  (exit $ac_status); } && {
83576	 test -z "$ac_c_werror_flag" ||
83577	 test ! -s conftest.err
83578       } && test -s conftest$ac_exeext && {
83579	 test "$cross_compiling" = yes ||
83580	 $as_test_x conftest$ac_exeext
83581       }; then
83582  ac_cv_lib_pthread_pthread_attr_init=yes
83583else
83584  $as_echo "$as_me: failed program was:" >&5
83585sed 's/^/| /' conftest.$ac_ext >&5
83586
83587	ac_cv_lib_pthread_pthread_attr_init=no
83588fi
83589
83590rm -rf conftest.dSYM
83591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
83592      conftest$ac_exeext conftest.$ac_ext
83593LIBS=$ac_check_lib_save_LIBS
83594fi
83595{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
83596$as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; }
83597if test "x$ac_cv_lib_pthread_pthread_attr_init" = x""yes; then
83598
83599	     PTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
83600	     if test "${HOST}" = "arm"; then
83601		PTHREAD_LDFLAGS="$LD_LIBRARY_PATH/../arm-brcm-linux-uclibcgnueabi/sysroot/usr/lib/libpthread.a"
83602	     else
83603		PTHREAD_LDFLAGS="-lpthread"
83604	     fi
83605fi
83606
83607fi
83608
83609if test "x$PTHREAD_LDFLAGS" = xerror; then
83610  { $as_echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthreads" >&5
83611$as_echo_n "checking for pthread_attr_init in -lpthreads... " >&6; }
83612if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then
83613  $as_echo_n "(cached) " >&6
83614else
83615  ac_check_lib_save_LIBS=$LIBS
83616LIBS="-lpthreads  $LIBS"
83617cat >conftest.$ac_ext <<_ACEOF
83618/* confdefs.h.  */
83619_ACEOF
83620cat confdefs.h >>conftest.$ac_ext
83621cat >>conftest.$ac_ext <<_ACEOF
83622/* end confdefs.h.  */
83623
83624/* Override any GCC internal prototype to avoid an error.
83625   Use char because int might match the return type of a GCC
83626   builtin and then its argument prototype would still apply.  */
83627#ifdef __cplusplus
83628extern "C"
83629#endif
83630char pthread_attr_init ();
83631int
83632main ()
83633{
83634return pthread_attr_init ();
83635  ;
83636  return 0;
83637}
83638_ACEOF
83639rm -f conftest.$ac_objext conftest$ac_exeext
83640if { (ac_try="$ac_link"
83641case "(($ac_try" in
83642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
83643  *) ac_try_echo=$ac_try;;
83644esac
83645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
83646$as_echo "$ac_try_echo") >&5
83647  (eval "$ac_link") 2>conftest.er1
83648  ac_status=$?
83649  grep -v '^ *+' conftest.er1 >conftest.err
83650  rm -f conftest.er1
83651  cat conftest.err >&5
83652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
83653  (exit $ac_status); } && {
83654	 test -z "$ac_c_werror_flag" ||
83655	 test ! -s conftest.err
83656       } && test -s conftest$ac_exeext && {
83657	 test "$cross_compiling" = yes ||
83658	 $as_test_x conftest$ac_exeext
83659       }; then
83660  ac_cv_lib_pthreads_pthread_attr_init=yes
83661else
83662  $as_echo "$as_me: failed program was:" >&5
83663sed 's/^/| /' conftest.$ac_ext >&5
83664
83665	ac_cv_lib_pthreads_pthread_attr_init=no
83666fi
83667
83668rm -rf conftest.dSYM
83669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
83670      conftest$ac_exeext conftest.$ac_ext
83671LIBS=$ac_check_lib_save_LIBS
83672fi
83673{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5
83674$as_echo "$ac_cv_lib_pthreads_pthread_attr_init" >&6; }
83675if test "x$ac_cv_lib_pthreads_pthread_attr_init" = x""yes; then
83676
83677	     PTHREAD_CFLAGS="-D_THREAD_SAFE"
83678	     PTHREAD_LDFLAGS="-lpthreads"
83679fi
83680
83681fi
83682
83683if test "x$PTHREAD_LDFLAGS" = xerror; then
83684   { $as_echo "$as_me:$LINENO: checking for pthread_attr_init in -lc_r" >&5
83685$as_echo_n "checking for pthread_attr_init in -lc_r... " >&6; }
83686if test "${ac_cv_lib_c_r_pthread_attr_init+set}" = set; then
83687  $as_echo_n "(cached) " >&6
83688else
83689  ac_check_lib_save_LIBS=$LIBS
83690LIBS="-lc_r  $LIBS"
83691cat >conftest.$ac_ext <<_ACEOF
83692/* confdefs.h.  */
83693_ACEOF
83694cat confdefs.h >>conftest.$ac_ext
83695cat >>conftest.$ac_ext <<_ACEOF
83696/* end confdefs.h.  */
83697
83698/* Override any GCC internal prototype to avoid an error.
83699   Use char because int might match the return type of a GCC
83700   builtin and then its argument prototype would still apply.  */
83701#ifdef __cplusplus
83702extern "C"
83703#endif
83704char pthread_attr_init ();
83705int
83706main ()
83707{
83708return pthread_attr_init ();
83709  ;
83710  return 0;
83711}
83712_ACEOF
83713rm -f conftest.$ac_objext conftest$ac_exeext
83714if { (ac_try="$ac_link"
83715case "(($ac_try" in
83716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
83717  *) ac_try_echo=$ac_try;;
83718esac
83719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
83720$as_echo "$ac_try_echo") >&5
83721  (eval "$ac_link") 2>conftest.er1
83722  ac_status=$?
83723  grep -v '^ *+' conftest.er1 >conftest.err
83724  rm -f conftest.er1
83725  cat conftest.err >&5
83726  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
83727  (exit $ac_status); } && {
83728	 test -z "$ac_c_werror_flag" ||
83729	 test ! -s conftest.err
83730       } && test -s conftest$ac_exeext && {
83731	 test "$cross_compiling" = yes ||
83732	 $as_test_x conftest$ac_exeext
83733       }; then
83734  ac_cv_lib_c_r_pthread_attr_init=yes
83735else
83736  $as_echo "$as_me: failed program was:" >&5
83737sed 's/^/| /' conftest.$ac_ext >&5
83738
83739	ac_cv_lib_c_r_pthread_attr_init=no
83740fi
83741
83742rm -rf conftest.dSYM
83743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
83744      conftest$ac_exeext conftest.$ac_ext
83745LIBS=$ac_check_lib_save_LIBS
83746fi
83747{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_attr_init" >&5
83748$as_echo "$ac_cv_lib_c_r_pthread_attr_init" >&6; }
83749if test "x$ac_cv_lib_c_r_pthread_attr_init" = x""yes; then
83750
83751		PTHREAD_CFLAGS="-D_THREAD_SAFE -pthread"
83752		PTHREAD_LDFLAGS="-pthread"
83753fi
83754
83755fi
83756
83757if test "x$PTHREAD_LDFLAGS" = xerror; then
83758   { $as_echo "$as_me:$LINENO: checking for pthread_attr_init" >&5
83759$as_echo_n "checking for pthread_attr_init... " >&6; }
83760if test "${ac_cv_func_pthread_attr_init+set}" = set; then
83761  $as_echo_n "(cached) " >&6
83762else
83763  cat >conftest.$ac_ext <<_ACEOF
83764/* confdefs.h.  */
83765_ACEOF
83766cat confdefs.h >>conftest.$ac_ext
83767cat >>conftest.$ac_ext <<_ACEOF
83768/* end confdefs.h.  */
83769/* Define pthread_attr_init to an innocuous variant, in case <limits.h> declares pthread_attr_init.
83770   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
83771#define pthread_attr_init innocuous_pthread_attr_init
83772
83773/* System header to define __stub macros and hopefully few prototypes,
83774    which can conflict with char pthread_attr_init (); below.
83775    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
83776    <limits.h> exists even on freestanding compilers.  */
83777
83778#ifdef __STDC__
83779# include <limits.h>
83780#else
83781# include <assert.h>
83782#endif
83783
83784#undef pthread_attr_init
83785
83786/* Override any GCC internal prototype to avoid an error.
83787   Use char because int might match the return type of a GCC
83788   builtin and then its argument prototype would still apply.  */
83789#ifdef __cplusplus
83790extern "C"
83791#endif
83792char pthread_attr_init ();
83793/* The GNU C library defines this for functions which it implements
83794    to always fail with ENOSYS.  Some functions are actually named
83795    something starting with __ and the normal name is an alias.  */
83796#if defined __stub_pthread_attr_init || defined __stub___pthread_attr_init
83797choke me
83798#endif
83799
83800int
83801main ()
83802{
83803return pthread_attr_init ();
83804  ;
83805  return 0;
83806}
83807_ACEOF
83808rm -f conftest.$ac_objext conftest$ac_exeext
83809if { (ac_try="$ac_link"
83810case "(($ac_try" in
83811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
83812  *) ac_try_echo=$ac_try;;
83813esac
83814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
83815$as_echo "$ac_try_echo") >&5
83816  (eval "$ac_link") 2>conftest.er1
83817  ac_status=$?
83818  grep -v '^ *+' conftest.er1 >conftest.err
83819  rm -f conftest.er1
83820  cat conftest.err >&5
83821  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
83822  (exit $ac_status); } && {
83823	 test -z "$ac_c_werror_flag" ||
83824	 test ! -s conftest.err
83825       } && test -s conftest$ac_exeext && {
83826	 test "$cross_compiling" = yes ||
83827	 $as_test_x conftest$ac_exeext
83828       }; then
83829  ac_cv_func_pthread_attr_init=yes
83830else
83831  $as_echo "$as_me: failed program was:" >&5
83832sed 's/^/| /' conftest.$ac_ext >&5
83833
83834	ac_cv_func_pthread_attr_init=no
83835fi
83836
83837rm -rf conftest.dSYM
83838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
83839      conftest$ac_exeext conftest.$ac_ext
83840fi
83841{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_init" >&5
83842$as_echo "$ac_cv_func_pthread_attr_init" >&6; }
83843if test "x$ac_cv_func_pthread_attr_init" = x""yes; then
83844
83845		 PTHREAD_CFLAGS="-D_REENTRANT"
83846		 PTHREAD_LDFLAGS="-lpthread"
83847fi
83848
83849fi
83850
83851# especially for HP-UX, where the AC_CHECK_FUNC macro fails to test for
83852# pthread_attr_init. On pthread_mutex_lock it works there...
83853if test "x$PTHREAD_LDFLAGS" = xerror; then
83854   { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
83855$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
83856if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
83857  $as_echo_n "(cached) " >&6
83858else
83859  ac_check_lib_save_LIBS=$LIBS
83860LIBS="-lpthread  $LIBS"
83861cat >conftest.$ac_ext <<_ACEOF
83862/* confdefs.h.  */
83863_ACEOF
83864cat confdefs.h >>conftest.$ac_ext
83865cat >>conftest.$ac_ext <<_ACEOF
83866/* end confdefs.h.  */
83867
83868/* Override any GCC internal prototype to avoid an error.
83869   Use char because int might match the return type of a GCC
83870   builtin and then its argument prototype would still apply.  */
83871#ifdef __cplusplus
83872extern "C"
83873#endif
83874char pthread_mutex_lock ();
83875int
83876main ()
83877{
83878return pthread_mutex_lock ();
83879  ;
83880  return 0;
83881}
83882_ACEOF
83883rm -f conftest.$ac_objext conftest$ac_exeext
83884if { (ac_try="$ac_link"
83885case "(($ac_try" in
83886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
83887  *) ac_try_echo=$ac_try;;
83888esac
83889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
83890$as_echo "$ac_try_echo") >&5
83891  (eval "$ac_link") 2>conftest.er1
83892  ac_status=$?
83893  grep -v '^ *+' conftest.er1 >conftest.err
83894  rm -f conftest.er1
83895  cat conftest.err >&5
83896  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
83897  (exit $ac_status); } && {
83898	 test -z "$ac_c_werror_flag" ||
83899	 test ! -s conftest.err
83900       } && test -s conftest$ac_exeext && {
83901	 test "$cross_compiling" = yes ||
83902	 $as_test_x conftest$ac_exeext
83903       }; then
83904  ac_cv_lib_pthread_pthread_mutex_lock=yes
83905else
83906  $as_echo "$as_me: failed program was:" >&5
83907sed 's/^/| /' conftest.$ac_ext >&5
83908
83909	ac_cv_lib_pthread_pthread_mutex_lock=no
83910fi
83911
83912rm -rf conftest.dSYM
83913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
83914      conftest$ac_exeext conftest.$ac_ext
83915LIBS=$ac_check_lib_save_LIBS
83916fi
83917{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
83918$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
83919if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
83920
83921		PTHREAD_CFLAGS="-D_REENTRANT"
83922		PTHREAD_LDFLAGS="-lpthread"
83923fi
83924
83925fi
83926
83927
83928
83929
83930samba_cv_HAVE_PTHREAD=no
83931if test x"$PTHREAD_CFLAGS" != xerror -a x"$PTHREAD_LDFLAGS" != xerror; then
83932	samba_cv_HAVE_PTHREAD=yes
83933	# now check for pthread.h with pthread-correct CFLAGS and LDFLAGS:
83934	ac_save_CFLAGS=$CFLAGS
83935	CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
83936	ac_save_LDFLAGS=$LDFLAGS
83937	LDFLAGS="$LDFLAGS $PTHREAD_LDFLAGS"
83938
83939for ac_header in pthread.h
83940do
83941as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
83942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
83943  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
83944$as_echo_n "checking for $ac_header... " >&6; }
83945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
83946  $as_echo_n "(cached) " >&6
83947fi
83948ac_res=`eval 'as_val=${'$as_ac_Header'}
83949		 $as_echo "$as_val"'`
83950	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
83951$as_echo "$ac_res" >&6; }
83952else
83953  # Is the header compilable?
83954{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
83955$as_echo_n "checking $ac_header usability... " >&6; }
83956cat >conftest.$ac_ext <<_ACEOF
83957/* confdefs.h.  */
83958_ACEOF
83959cat confdefs.h >>conftest.$ac_ext
83960cat >>conftest.$ac_ext <<_ACEOF
83961/* end confdefs.h.  */
83962$ac_includes_default
83963#include <$ac_header>
83964_ACEOF
83965rm -f conftest.$ac_objext
83966if { (ac_try="$ac_compile"
83967case "(($ac_try" in
83968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
83969  *) ac_try_echo=$ac_try;;
83970esac
83971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
83972$as_echo "$ac_try_echo") >&5
83973  (eval "$ac_compile") 2>conftest.er1
83974  ac_status=$?
83975  grep -v '^ *+' conftest.er1 >conftest.err
83976  rm -f conftest.er1
83977  cat conftest.err >&5
83978  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
83979  (exit $ac_status); } && {
83980	 test -z "$ac_c_werror_flag" ||
83981	 test ! -s conftest.err
83982       } && test -s conftest.$ac_objext; then
83983  ac_header_compiler=yes
83984else
83985  $as_echo "$as_me: failed program was:" >&5
83986sed 's/^/| /' conftest.$ac_ext >&5
83987
83988	ac_header_compiler=no
83989fi
83990
83991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
83992{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
83993$as_echo "$ac_header_compiler" >&6; }
83994
83995# Is the header present?
83996{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
83997$as_echo_n "checking $ac_header presence... " >&6; }
83998cat >conftest.$ac_ext <<_ACEOF
83999/* confdefs.h.  */
84000_ACEOF
84001cat confdefs.h >>conftest.$ac_ext
84002cat >>conftest.$ac_ext <<_ACEOF
84003/* end confdefs.h.  */
84004#include <$ac_header>
84005_ACEOF
84006if { (ac_try="$ac_cpp conftest.$ac_ext"
84007case "(($ac_try" in
84008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
84009  *) ac_try_echo=$ac_try;;
84010esac
84011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
84012$as_echo "$ac_try_echo") >&5
84013  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
84014  ac_status=$?
84015  grep -v '^ *+' conftest.er1 >conftest.err
84016  rm -f conftest.er1
84017  cat conftest.err >&5
84018  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
84019  (exit $ac_status); } >/dev/null && {
84020	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
84021	 test ! -s conftest.err
84022       }; then
84023  ac_header_preproc=yes
84024else
84025  $as_echo "$as_me: failed program was:" >&5
84026sed 's/^/| /' conftest.$ac_ext >&5
84027
84028  ac_header_preproc=no
84029fi
84030
84031rm -f conftest.err conftest.$ac_ext
84032{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
84033$as_echo "$ac_header_preproc" >&6; }
84034
84035# So?  What about this header?
84036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
84037  yes:no: )
84038    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
84039$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
84040    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
84041$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
84042    ac_header_preproc=yes
84043    ;;
84044  no:yes:* )
84045    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
84046$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
84047    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
84048$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
84049    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
84050$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
84051    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
84052$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
84053    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
84054$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
84055    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
84056$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
84057    ( cat <<\_ASBOX
84058## ---------------------------------------- ##
84059## Report this to samba-technical@samba.org ##
84060## ---------------------------------------- ##
84061_ASBOX
84062     ) | sed "s/^/$as_me: WARNING:     /" >&2
84063    ;;
84064esac
84065{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
84066$as_echo_n "checking for $ac_header... " >&6; }
84067if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
84068  $as_echo_n "(cached) " >&6
84069else
84070  eval "$as_ac_Header=\$ac_header_preproc"
84071fi
84072ac_res=`eval 'as_val=${'$as_ac_Header'}
84073		 $as_echo "$as_val"'`
84074	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
84075$as_echo "$ac_res" >&6; }
84076
84077fi
84078as_val=`eval 'as_val=${'$as_ac_Header'}
84079		 $as_echo "$as_val"'`
84080   if test "x$as_val" = x""yes; then
84081  cat >>confdefs.h <<_ACEOF
84082#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
84083_ACEOF
84084
84085fi
84086
84087done
84088
84089	CFLAGS=$ac_save_CFLAGS
84090	LDFLAGS=$ac_save_LDFLAGS
84091
84092cat >>confdefs.h <<\_ACEOF
84093#define HAVE_PTHREAD 1
84094_ACEOF
84095
84096fi
84097
84098#################################################
84099# Check if user wants pthreadpool support
84100
84101# Check whether --enable-pthreadpool was given.
84102if test "${enable_pthreadpool+set}" = set; then
84103  enableval=$enable_pthreadpool;
84104fi
84105
84106
84107if test x"$enable_pthreadpool" = xyes -a x"$samba_cv_HAVE_PTHREAD" != x"yes"; then
84108	{ { $as_echo "$as_me:$LINENO: error: pthreadpool support cannot be enabled when pthread support was found" >&5
84109$as_echo "$as_me: error: pthreadpool support cannot be enabled when pthread support was found" >&2;}
84110   { (exit 1); exit 1; }; }
84111fi
84112
84113if test x"$enable_pthreadpool" = x"yes" -a x"$samba_cv_HAVE_PTHREAD" = x"yes"; then
84114    LIBS="$LIBS $PTHREAD_LDFLAGS"
84115    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
84116
84117cat >>confdefs.h <<\_ACEOF
84118#define WITH_PTHREADPOOL 1
84119_ACEOF
84120
84121    PTHREADPOOL_OBJ="lib/pthreadpool.o"
84122
84123fi
84124
84125#################################################
84126# Check to see if we should use the included iniparser
84127
84128
84129# Check whether --with-included-iniparser was given.
84130if test "${with_included_iniparser+set}" = set; then
84131  withval=$with_included_iniparser;
84132  case "$withval" in
84133	yes)
84134		INCLUDED_INIPARSER=yes
84135		;;
84136        no)
84137		INCLUDED_INIPARSER=no
84138                ;;
84139  esac
84140fi
84141
84142if test x"$INCLUDED_INIPARSER" != x"yes"; then
84143    { $as_echo "$as_me:$LINENO: checking for iniparser_load in -liniparser" >&5
84144$as_echo_n "checking for iniparser_load in -liniparser... " >&6; }
84145if test "${ac_cv_lib_iniparser_iniparser_load+set}" = set; then
84146  $as_echo_n "(cached) " >&6
84147else
84148  ac_check_lib_save_LIBS=$LIBS
84149LIBS="-liniparser  $LIBS"
84150cat >conftest.$ac_ext <<_ACEOF
84151/* confdefs.h.  */
84152_ACEOF
84153cat confdefs.h >>conftest.$ac_ext
84154cat >>conftest.$ac_ext <<_ACEOF
84155/* end confdefs.h.  */
84156
84157/* Override any GCC internal prototype to avoid an error.
84158   Use char because int might match the return type of a GCC
84159   builtin and then its argument prototype would still apply.  */
84160#ifdef __cplusplus
84161extern "C"
84162#endif
84163char iniparser_load ();
84164int
84165main ()
84166{
84167return iniparser_load ();
84168  ;
84169  return 0;
84170}
84171_ACEOF
84172rm -f conftest.$ac_objext conftest$ac_exeext
84173if { (ac_try="$ac_link"
84174case "(($ac_try" in
84175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
84176  *) ac_try_echo=$ac_try;;
84177esac
84178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
84179$as_echo "$ac_try_echo") >&5
84180  (eval "$ac_link") 2>conftest.er1
84181  ac_status=$?
84182  grep -v '^ *+' conftest.er1 >conftest.err
84183  rm -f conftest.er1
84184  cat conftest.err >&5
84185  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
84186  (exit $ac_status); } && {
84187	 test -z "$ac_c_werror_flag" ||
84188	 test ! -s conftest.err
84189       } && test -s conftest$ac_exeext && {
84190	 test "$cross_compiling" = yes ||
84191	 $as_test_x conftest$ac_exeext
84192       }; then
84193  ac_cv_lib_iniparser_iniparser_load=yes
84194else
84195  $as_echo "$as_me: failed program was:" >&5
84196sed 's/^/| /' conftest.$ac_ext >&5
84197
84198	ac_cv_lib_iniparser_iniparser_load=no
84199fi
84200
84201rm -rf conftest.dSYM
84202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
84203      conftest$ac_exeext conftest.$ac_ext
84204LIBS=$ac_check_lib_save_LIBS
84205fi
84206{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iniparser_iniparser_load" >&5
84207$as_echo "$ac_cv_lib_iniparser_iniparser_load" >&6; }
84208if test "x$ac_cv_lib_iniparser_iniparser_load" = x""yes; then
84209  INCLUDED_INIPARSER=no
84210else
84211  INCLUDED_INIPARSER=yes
84212fi
84213
84214fi
84215
84216{ $as_echo "$as_me:$LINENO: checking whether to use included iniparser" >&5
84217$as_echo_n "checking whether to use included iniparser... " >&6; }
84218if test x"$INCLUDED_INIPARSER" = x"yes"; then
84219    { $as_echo "$as_me:$LINENO: result: yes" >&5
84220$as_echo "yes" >&6; }
84221    BUILD_INIPARSER='$(INIPARSER_OBJ)'
84222	INIPARSERLIBS=""
84223    FLAGS1="$FLAGS1 -I\$(srcdir)/iniparser/src"
84224else
84225    { $as_echo "$as_me:$LINENO: result: no" >&5
84226$as_echo "no" >&6; }
84227	BUILD_INIPARSER=""
84228    INIPARSERLIBS="-liniparser"
84229fi
84230
84231
84232
84233
84234
84235
84236# Checks for the vfs_fileid module
84237# Start
84238{ $as_echo "$as_me:$LINENO: checking for getmntent" >&5
84239$as_echo_n "checking for getmntent... " >&6; }
84240if test "${ac_cv_func_getmntent+set}" = set; then
84241  $as_echo_n "(cached) " >&6
84242else
84243  cat >conftest.$ac_ext <<_ACEOF
84244/* confdefs.h.  */
84245_ACEOF
84246cat confdefs.h >>conftest.$ac_ext
84247cat >>conftest.$ac_ext <<_ACEOF
84248/* end confdefs.h.  */
84249/* Define getmntent to an innocuous variant, in case <limits.h> declares getmntent.
84250   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
84251#define getmntent innocuous_getmntent
84252
84253/* System header to define __stub macros and hopefully few prototypes,
84254    which can conflict with char getmntent (); below.
84255    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
84256    <limits.h> exists even on freestanding compilers.  */
84257
84258#ifdef __STDC__
84259# include <limits.h>
84260#else
84261# include <assert.h>
84262#endif
84263
84264#undef getmntent
84265
84266/* Override any GCC internal prototype to avoid an error.
84267   Use char because int might match the return type of a GCC
84268   builtin and then its argument prototype would still apply.  */
84269#ifdef __cplusplus
84270extern "C"
84271#endif
84272char getmntent ();
84273/* The GNU C library defines this for functions which it implements
84274    to always fail with ENOSYS.  Some functions are actually named
84275    something starting with __ and the normal name is an alias.  */
84276#if defined __stub_getmntent || defined __stub___getmntent
84277choke me
84278#endif
84279
84280int
84281main ()
84282{
84283return getmntent ();
84284  ;
84285  return 0;
84286}
84287_ACEOF
84288rm -f conftest.$ac_objext conftest$ac_exeext
84289if { (ac_try="$ac_link"
84290case "(($ac_try" in
84291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
84292  *) ac_try_echo=$ac_try;;
84293esac
84294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
84295$as_echo "$ac_try_echo") >&5
84296  (eval "$ac_link") 2>conftest.er1
84297  ac_status=$?
84298  grep -v '^ *+' conftest.er1 >conftest.err
84299  rm -f conftest.er1
84300  cat conftest.err >&5
84301  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
84302  (exit $ac_status); } && {
84303	 test -z "$ac_c_werror_flag" ||
84304	 test ! -s conftest.err
84305       } && test -s conftest$ac_exeext && {
84306	 test "$cross_compiling" = yes ||
84307	 $as_test_x conftest$ac_exeext
84308       }; then
84309  ac_cv_func_getmntent=yes
84310else
84311  $as_echo "$as_me: failed program was:" >&5
84312sed 's/^/| /' conftest.$ac_ext >&5
84313
84314	ac_cv_func_getmntent=no
84315fi
84316
84317rm -rf conftest.dSYM
84318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
84319      conftest$ac_exeext conftest.$ac_ext
84320fi
84321{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getmntent" >&5
84322$as_echo "$ac_cv_func_getmntent" >&6; }
84323
84324
84325
84326for ac_header in sys/statfs.h
84327do
84328as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
84329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
84330  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
84331$as_echo_n "checking for $ac_header... " >&6; }
84332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
84333  $as_echo_n "(cached) " >&6
84334fi
84335ac_res=`eval 'as_val=${'$as_ac_Header'}
84336		 $as_echo "$as_val"'`
84337	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
84338$as_echo "$ac_res" >&6; }
84339else
84340  # Is the header compilable?
84341{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
84342$as_echo_n "checking $ac_header usability... " >&6; }
84343cat >conftest.$ac_ext <<_ACEOF
84344/* confdefs.h.  */
84345_ACEOF
84346cat confdefs.h >>conftest.$ac_ext
84347cat >>conftest.$ac_ext <<_ACEOF
84348/* end confdefs.h.  */
84349$ac_includes_default
84350#include <$ac_header>
84351_ACEOF
84352rm -f conftest.$ac_objext
84353if { (ac_try="$ac_compile"
84354case "(($ac_try" in
84355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
84356  *) ac_try_echo=$ac_try;;
84357esac
84358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
84359$as_echo "$ac_try_echo") >&5
84360  (eval "$ac_compile") 2>conftest.er1
84361  ac_status=$?
84362  grep -v '^ *+' conftest.er1 >conftest.err
84363  rm -f conftest.er1
84364  cat conftest.err >&5
84365  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
84366  (exit $ac_status); } && {
84367	 test -z "$ac_c_werror_flag" ||
84368	 test ! -s conftest.err
84369       } && test -s conftest.$ac_objext; then
84370  ac_header_compiler=yes
84371else
84372  $as_echo "$as_me: failed program was:" >&5
84373sed 's/^/| /' conftest.$ac_ext >&5
84374
84375	ac_header_compiler=no
84376fi
84377
84378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84379{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
84380$as_echo "$ac_header_compiler" >&6; }
84381
84382# Is the header present?
84383{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
84384$as_echo_n "checking $ac_header presence... " >&6; }
84385cat >conftest.$ac_ext <<_ACEOF
84386/* confdefs.h.  */
84387_ACEOF
84388cat confdefs.h >>conftest.$ac_ext
84389cat >>conftest.$ac_ext <<_ACEOF
84390/* end confdefs.h.  */
84391#include <$ac_header>
84392_ACEOF
84393if { (ac_try="$ac_cpp conftest.$ac_ext"
84394case "(($ac_try" in
84395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
84396  *) ac_try_echo=$ac_try;;
84397esac
84398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
84399$as_echo "$ac_try_echo") >&5
84400  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
84401  ac_status=$?
84402  grep -v '^ *+' conftest.er1 >conftest.err
84403  rm -f conftest.er1
84404  cat conftest.err >&5
84405  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
84406  (exit $ac_status); } >/dev/null && {
84407	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
84408	 test ! -s conftest.err
84409       }; then
84410  ac_header_preproc=yes
84411else
84412  $as_echo "$as_me: failed program was:" >&5
84413sed 's/^/| /' conftest.$ac_ext >&5
84414
84415  ac_header_preproc=no
84416fi
84417
84418rm -f conftest.err conftest.$ac_ext
84419{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
84420$as_echo "$ac_header_preproc" >&6; }
84421
84422# So?  What about this header?
84423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
84424  yes:no: )
84425    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
84426$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
84427    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
84428$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
84429    ac_header_preproc=yes
84430    ;;
84431  no:yes:* )
84432    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
84433$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
84434    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
84435$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
84436    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
84437$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
84438    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
84439$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
84440    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
84441$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
84442    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
84443$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
84444    ( cat <<\_ASBOX
84445## ---------------------------------------- ##
84446## Report this to samba-technical@samba.org ##
84447## ---------------------------------------- ##
84448_ASBOX
84449     ) | sed "s/^/$as_me: WARNING:     /" >&2
84450    ;;
84451esac
84452{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
84453$as_echo_n "checking for $ac_header... " >&6; }
84454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
84455  $as_echo_n "(cached) " >&6
84456else
84457  eval "$as_ac_Header=\$ac_header_preproc"
84458fi
84459ac_res=`eval 'as_val=${'$as_ac_Header'}
84460		 $as_echo "$as_val"'`
84461	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
84462$as_echo "$ac_res" >&6; }
84463
84464fi
84465as_val=`eval 'as_val=${'$as_ac_Header'}
84466		 $as_echo "$as_val"'`
84467   if test "x$as_val" = x""yes; then
84468  cat >>confdefs.h <<_ACEOF
84469#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
84470_ACEOF
84471
84472fi
84473
84474done
84475
84476
84477{ $as_echo "$as_me:$LINENO: checking vfs_fileid: checking for statfs() and struct statfs.f_fsid)" >&5
84478$as_echo_n "checking vfs_fileid: checking for statfs() and struct statfs.f_fsid)... " >&6; }
84479if test "${vfsfileid_cv_statfs+set}" = set; then
84480  $as_echo_n "(cached) " >&6
84481else
84482
84483	     if test "$cross_compiling" = yes; then
84484  vfsfileid_cv_statfs=cross
84485else
84486  cat >conftest.$ac_ext <<_ACEOF
84487/* confdefs.h.  */
84488_ACEOF
84489cat confdefs.h >>conftest.$ac_ext
84490cat >>conftest.$ac_ext <<_ACEOF
84491/* end confdefs.h.  */
84492
84493		#include <sys/types.h>
84494		#include <sys/statfs.h>
84495		int main(void)
84496		{
84497			struct statfs fsd;
84498			fsid_t fsid = fsd.f_fsid;
84499			return statfs (".", &fsd);
84500		}
84501_ACEOF
84502rm -f conftest$ac_exeext
84503if { (ac_try="$ac_link"
84504case "(($ac_try" in
84505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
84506  *) ac_try_echo=$ac_try;;
84507esac
84508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
84509$as_echo "$ac_try_echo") >&5
84510  (eval "$ac_link") 2>&5
84511  ac_status=$?
84512  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
84513  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
84514  { (case "(($ac_try" in
84515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
84516  *) ac_try_echo=$ac_try;;
84517esac
84518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
84519$as_echo "$ac_try_echo") >&5
84520  (eval "$ac_try") 2>&5
84521  ac_status=$?
84522  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
84523  (exit $ac_status); }; }; then
84524  vfsfileid_cv_statfs=yes
84525else
84526  $as_echo "$as_me: program exited with status $ac_status" >&5
84527$as_echo "$as_me: failed program was:" >&5
84528sed 's/^/| /' conftest.$ac_ext >&5
84529
84530( exit $ac_status )
84531vfsfileid_cv_statfs=no
84532fi
84533rm -rf conftest.dSYM
84534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
84535fi
84536
84537
84538
84539fi
84540
84541{ $as_echo "$as_me:$LINENO: result: $vfsfileid_cv_statfs" >&5
84542$as_echo "$vfsfileid_cv_statfs" >&6; }
84543
84544if test x"$ac_cv_func_getmntent" = x"yes" -a \
84545	x"$vfsfileid_cv_statfs" = x"yes"; then
84546	default_shared_modules="$default_shared_modules vfs_fileid"
84547fi
84548# End
84549# Checks for the vfs_fileid module
84550
84551
84552for i in `echo $default_static_modules | sed -e 's/,/ /g'`
84553do
84554	eval MODULE_DEFAULT_$i=STATIC
84555done
84556
84557for i in `echo $default_shared_modules | sed -e 's/,/ /g'`
84558do
84559		eval MODULE_DEFAULT_$i=STATIC
84560
84561	if test $BLDSHARED = true; then
84562		eval MODULE_DEFAULT_$i=SHARED
84563	fi
84564done
84565
84566MODULE_rpc_spoolss=STATIC
84567MODULE_rpc_srvsvc=STATIC
84568MODULE_idmap_tdb=STATIC
84569MODULE_idmap_passdb=STATIC
84570MODULE_idmap_nss=STATIC
84571
84572MODULE_nss_info_template=STATIC
84573
84574
84575# Check whether --with-static-modules was given.
84576if test "${with_static_modules+set}" = set; then
84577  withval=$with_static_modules;  if test $withval; then
84578	for i in `echo $withval | sed -e 's/,/ /g'`
84579	do
84580		eval MODULE_$i=STATIC
84581	done
84582fi
84583fi
84584
84585
84586
84587# Check whether --with-shared-modules was given.
84588if test "${with_shared_modules+set}" = set; then
84589  withval=$with_shared_modules;  if test $withval; then
84590	for i in `echo $withval | sed -e 's/,/ /g'`
84591	do
84592			eval MODULE_$i=SHARED
84593	done
84594fi
84595fi
84596
84597
84598if test x"$MODULE_DEFAULT_vfs_notify_fam" = xSTATIC -o \
84599		x"$MODULE_vfs_notify_fam" = xSTATIC ; then
84600	SMBD_FAM_LIBS="$SMB_FAM_LIBS"
84601
84602fi
84603
84604
84605	{ $as_echo "$as_me:$LINENO: checking how to build pdb_ldap" >&5
84606$as_echo_n "checking how to build pdb_ldap... " >&6; }
84607	if test "$MODULE_pdb_ldap"; then
84608		DEST=$MODULE_pdb_ldap
84609	elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_ldap"; then
84610		DEST=$MODULE_pdb
84611	else
84612		DEST=$MODULE_DEFAULT_pdb_ldap
84613	fi
84614
84615	if test x"$DEST" = xSHARED; then
84616
84617cat >>confdefs.h <<\_ACEOF
84618#define pdb_ldap_init init_samba_module
84619_ACEOF
84620
84621		PDB_MODULES="$PDB_MODULES "bin/ldapsam.$SHLIBEXT""
84622		{ $as_echo "$as_me:$LINENO: result: shared" >&5
84623$as_echo "shared" >&6; }
84624
84625		string_shared_modules="$string_shared_modules pdb_ldap"
84626	elif test x"$DEST" = xSTATIC; then
84627		init_static_modules_pdb="$init_static_modules_pdb  pdb_ldap_init();"
84628 		decl_static_modules_pdb="$decl_static_modules_pdb extern NTSTATUS pdb_ldap_init(void);"
84629		string_static_modules="$string_static_modules pdb_ldap"
84630		PDB_STATIC="$PDB_STATIC passdb/pdb_ldap.o passdb/pdb_nds.o"
84631
84632		 PASSDB_LIBS="$PASSDB_LIBS $LDAP_LIBS"
84633		{ $as_echo "$as_me:$LINENO: result: static" >&5
84634$as_echo "static" >&6; }
84635	else
84636	    string_ignored_modules="$string_ignored_modules pdb_ldap"
84637		{ $as_echo "$as_me:$LINENO: result: not" >&5
84638$as_echo "not" >&6; }
84639	fi
84640
84641
84642	{ $as_echo "$as_me:$LINENO: checking how to build pdb_ads" >&5
84643$as_echo_n "checking how to build pdb_ads... " >&6; }
84644	if test "$MODULE_pdb_ads"; then
84645		DEST=$MODULE_pdb_ads
84646	elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_ads"; then
84647		DEST=$MODULE_pdb
84648	else
84649		DEST=$MODULE_DEFAULT_pdb_ads
84650	fi
84651
84652	if test x"$DEST" = xSHARED; then
84653
84654cat >>confdefs.h <<\_ACEOF
84655#define pdb_ads_init init_samba_module
84656_ACEOF
84657
84658		PDB_MODULES="$PDB_MODULES "bin/ads.$SHLIBEXT""
84659		{ $as_echo "$as_me:$LINENO: result: shared" >&5
84660$as_echo "shared" >&6; }
84661
84662		string_shared_modules="$string_shared_modules pdb_ads"
84663	elif test x"$DEST" = xSTATIC; then
84664		init_static_modules_pdb="$init_static_modules_pdb  pdb_ads_init();"
84665 		decl_static_modules_pdb="$decl_static_modules_pdb extern NTSTATUS pdb_ads_init(void);"
84666		string_static_modules="$string_static_modules pdb_ads"
84667		PDB_STATIC="$PDB_STATIC passdb/pdb_ads.o \$(TLDAP_OBJ)"
84668
84669
84670		{ $as_echo "$as_me:$LINENO: result: static" >&5
84671$as_echo "static" >&6; }
84672	else
84673	    string_ignored_modules="$string_ignored_modules pdb_ads"
84674		{ $as_echo "$as_me:$LINENO: result: not" >&5
84675$as_echo "not" >&6; }
84676	fi
84677
84678
84679	{ $as_echo "$as_me:$LINENO: checking how to build pdb_smbpasswd" >&5
84680$as_echo_n "checking how to build pdb_smbpasswd... " >&6; }
84681	if test "$MODULE_pdb_smbpasswd"; then
84682		DEST=$MODULE_pdb_smbpasswd
84683	elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_smbpasswd"; then
84684		DEST=$MODULE_pdb
84685	else
84686		DEST=$MODULE_DEFAULT_pdb_smbpasswd
84687	fi
84688
84689	if test x"$DEST" = xSHARED; then
84690
84691cat >>confdefs.h <<\_ACEOF
84692#define pdb_smbpasswd_init init_samba_module
84693_ACEOF
84694
84695		PDB_MODULES="$PDB_MODULES "bin/smbpasswd.$SHLIBEXT""
84696		{ $as_echo "$as_me:$LINENO: result: shared" >&5
84697$as_echo "shared" >&6; }
84698
84699		string_shared_modules="$string_shared_modules pdb_smbpasswd"
84700	elif test x"$DEST" = xSTATIC; then
84701		init_static_modules_pdb="$init_static_modules_pdb  pdb_smbpasswd_init();"
84702 		decl_static_modules_pdb="$decl_static_modules_pdb extern NTSTATUS pdb_smbpasswd_init(void);"
84703		string_static_modules="$string_static_modules pdb_smbpasswd"
84704		PDB_STATIC="$PDB_STATIC passdb/pdb_smbpasswd.o"
84705
84706
84707		{ $as_echo "$as_me:$LINENO: result: static" >&5
84708$as_echo "static" >&6; }
84709	else
84710	    string_ignored_modules="$string_ignored_modules pdb_smbpasswd"
84711		{ $as_echo "$as_me:$LINENO: result: not" >&5
84712$as_echo "not" >&6; }
84713	fi
84714
84715
84716	{ $as_echo "$as_me:$LINENO: checking how to build pdb_tdbsam" >&5
84717$as_echo_n "checking how to build pdb_tdbsam... " >&6; }
84718	if test "$MODULE_pdb_tdbsam"; then
84719		DEST=$MODULE_pdb_tdbsam
84720	elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_tdbsam"; then
84721		DEST=$MODULE_pdb
84722	else
84723		DEST=$MODULE_DEFAULT_pdb_tdbsam
84724	fi
84725
84726	if test x"$DEST" = xSHARED; then
84727
84728cat >>confdefs.h <<\_ACEOF
84729#define pdb_tdbsam_init init_samba_module
84730_ACEOF
84731
84732		PDB_MODULES="$PDB_MODULES "bin/tdbsam.$SHLIBEXT""
84733		{ $as_echo "$as_me:$LINENO: result: shared" >&5
84734$as_echo "shared" >&6; }
84735
84736		string_shared_modules="$string_shared_modules pdb_tdbsam"
84737	elif test x"$DEST" = xSTATIC; then
84738		init_static_modules_pdb="$init_static_modules_pdb  pdb_tdbsam_init();"
84739 		decl_static_modules_pdb="$decl_static_modules_pdb extern NTSTATUS pdb_tdbsam_init(void);"
84740		string_static_modules="$string_static_modules pdb_tdbsam"
84741		PDB_STATIC="$PDB_STATIC passdb/pdb_tdb.o"
84742
84743
84744		{ $as_echo "$as_me:$LINENO: result: static" >&5
84745$as_echo "static" >&6; }
84746	else
84747	    string_ignored_modules="$string_ignored_modules pdb_tdbsam"
84748		{ $as_echo "$as_me:$LINENO: result: not" >&5
84749$as_echo "not" >&6; }
84750	fi
84751
84752
84753	{ $as_echo "$as_me:$LINENO: checking how to build pdb_wbc_sam" >&5
84754$as_echo_n "checking how to build pdb_wbc_sam... " >&6; }
84755	if test "$MODULE_pdb_wbc_sam"; then
84756		DEST=$MODULE_pdb_wbc_sam
84757	elif test "$MODULE_pdb" -a "$MODULE_DEFAULT_pdb_wbc_sam"; then
84758		DEST=$MODULE_pdb
84759	else
84760		DEST=$MODULE_DEFAULT_pdb_wbc_sam
84761	fi
84762
84763	if test x"$DEST" = xSHARED; then
84764
84765cat >>confdefs.h <<\_ACEOF
84766#define pdb_wbc_sam_init init_samba_module
84767_ACEOF
84768
84769		PDB_MODULES="$PDB_MODULES "bin/wbc_sam.$SHLIBEXT""
84770		{ $as_echo "$as_me:$LINENO: result: shared" >&5
84771$as_echo "shared" >&6; }
84772
84773		string_shared_modules="$string_shared_modules pdb_wbc_sam"
84774	elif test x"$DEST" = xSTATIC; then
84775		init_static_modules_pdb="$init_static_modules_pdb  pdb_wbc_sam_init();"
84776 		decl_static_modules_pdb="$decl_static_modules_pdb extern NTSTATUS pdb_wbc_sam_init(void);"
84777		string_static_modules="$string_static_modules pdb_wbc_sam"
84778		PDB_STATIC="$PDB_STATIC passdb/pdb_wbc_sam.o"
84779
84780
84781		{ $as_echo "$as_me:$LINENO: result: static" >&5
84782$as_echo "static" >&6; }
84783	else
84784	    string_ignored_modules="$string_ignored_modules pdb_wbc_sam"
84785		{ $as_echo "$as_me:$LINENO: result: not" >&5
84786$as_echo "not" >&6; }
84787	fi
84788
84789
84790
84791
84792
84793cat >>confdefs.h <<_ACEOF
84794#define static_init_pdb {$init_static_modules_pdb}
84795_ACEOF
84796
84797
84798cat >>confdefs.h <<_ACEOF
84799#define static_decl_pdb $decl_static_modules_pdb
84800_ACEOF
84801
84802    	rm -f passdb/pdb_interface.o
84803
84804
84805
84806
84807	{ $as_echo "$as_me:$LINENO: checking how to build rpc_lsarpc" >&5
84808$as_echo_n "checking how to build rpc_lsarpc... " >&6; }
84809	if test "$MODULE_rpc_lsarpc"; then
84810		DEST=$MODULE_rpc_lsarpc
84811	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_lsarpc"; then
84812		DEST=$MODULE_rpc
84813	else
84814		DEST=$MODULE_DEFAULT_rpc_lsarpc
84815	fi
84816
84817	if test x"$DEST" = xSHARED; then
84818
84819cat >>confdefs.h <<\_ACEOF
84820#define rpc_lsarpc_init init_samba_module
84821_ACEOF
84822
84823		RPC_MODULES="$RPC_MODULES "bin/librpc_lsarpc.$SHLIBEXT""
84824		{ $as_echo "$as_me:$LINENO: result: shared" >&5
84825$as_echo "shared" >&6; }
84826
84827		string_shared_modules="$string_shared_modules rpc_lsarpc"
84828	elif test x"$DEST" = xSTATIC; then
84829		init_static_modules_rpc="$init_static_modules_rpc  rpc_lsarpc_init();"
84830 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_lsarpc_init(void);"
84831		string_static_modules="$string_static_modules rpc_lsarpc"
84832		RPC_STATIC="$RPC_STATIC \$(RPC_LSA_OBJ)"
84833
84834
84835		{ $as_echo "$as_me:$LINENO: result: static" >&5
84836$as_echo "static" >&6; }
84837	else
84838	    string_ignored_modules="$string_ignored_modules rpc_lsarpc"
84839		{ $as_echo "$as_me:$LINENO: result: not" >&5
84840$as_echo "not" >&6; }
84841	fi
84842
84843
84844	{ $as_echo "$as_me:$LINENO: checking how to build rpc_winreg" >&5
84845$as_echo_n "checking how to build rpc_winreg... " >&6; }
84846	if test "$MODULE_rpc_winreg"; then
84847		DEST=$MODULE_rpc_winreg
84848	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_winreg"; then
84849		DEST=$MODULE_rpc
84850	else
84851		DEST=$MODULE_DEFAULT_rpc_winreg
84852	fi
84853
84854	if test x"$DEST" = xSHARED; then
84855
84856cat >>confdefs.h <<\_ACEOF
84857#define rpc_winreg_init init_samba_module
84858_ACEOF
84859
84860		RPC_MODULES="$RPC_MODULES "bin/librpc_winreg.$SHLIBEXT""
84861		{ $as_echo "$as_me:$LINENO: result: shared" >&5
84862$as_echo "shared" >&6; }
84863
84864		string_shared_modules="$string_shared_modules rpc_winreg"
84865	elif test x"$DEST" = xSTATIC; then
84866		init_static_modules_rpc="$init_static_modules_rpc  rpc_winreg_init();"
84867 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_winreg_init(void);"
84868		string_static_modules="$string_static_modules rpc_winreg"
84869		RPC_STATIC="$RPC_STATIC \$(RPC_REG_OBJ)"
84870
84871
84872		{ $as_echo "$as_me:$LINENO: result: static" >&5
84873$as_echo "static" >&6; }
84874	else
84875	    string_ignored_modules="$string_ignored_modules rpc_winreg"
84876		{ $as_echo "$as_me:$LINENO: result: not" >&5
84877$as_echo "not" >&6; }
84878	fi
84879
84880
84881	{ $as_echo "$as_me:$LINENO: checking how to build rpc_initshutdown" >&5
84882$as_echo_n "checking how to build rpc_initshutdown... " >&6; }
84883	if test "$MODULE_rpc_initshutdown"; then
84884		DEST=$MODULE_rpc_initshutdown
84885	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_initshutdown"; then
84886		DEST=$MODULE_rpc
84887	else
84888		DEST=$MODULE_DEFAULT_rpc_initshutdown
84889	fi
84890
84891	if test x"$DEST" = xSHARED; then
84892
84893cat >>confdefs.h <<\_ACEOF
84894#define rpc_initshutdown_init init_samba_module
84895_ACEOF
84896
84897		RPC_MODULES="$RPC_MODULES "bin/librpc_initshutdown.$SHLIBEXT""
84898		{ $as_echo "$as_me:$LINENO: result: shared" >&5
84899$as_echo "shared" >&6; }
84900
84901		string_shared_modules="$string_shared_modules rpc_initshutdown"
84902	elif test x"$DEST" = xSTATIC; then
84903		init_static_modules_rpc="$init_static_modules_rpc  rpc_initshutdown_init();"
84904 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_initshutdown_init(void);"
84905		string_static_modules="$string_static_modules rpc_initshutdown"
84906		RPC_STATIC="$RPC_STATIC \$(RPC_INITSHUTDOWN_OBJ)"
84907
84908
84909		{ $as_echo "$as_me:$LINENO: result: static" >&5
84910$as_echo "static" >&6; }
84911	else
84912	    string_ignored_modules="$string_ignored_modules rpc_initshutdown"
84913		{ $as_echo "$as_me:$LINENO: result: not" >&5
84914$as_echo "not" >&6; }
84915	fi
84916
84917
84918	{ $as_echo "$as_me:$LINENO: checking how to build rpc_dssetup" >&5
84919$as_echo_n "checking how to build rpc_dssetup... " >&6; }
84920	if test "$MODULE_rpc_dssetup"; then
84921		DEST=$MODULE_rpc_dssetup
84922	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_dssetup"; then
84923		DEST=$MODULE_rpc
84924	else
84925		DEST=$MODULE_DEFAULT_rpc_dssetup
84926	fi
84927
84928	if test x"$DEST" = xSHARED; then
84929
84930cat >>confdefs.h <<\_ACEOF
84931#define rpc_dssetup_init init_samba_module
84932_ACEOF
84933
84934		RPC_MODULES="$RPC_MODULES "bin/librpc_dssetup.$SHLIBEXT""
84935		{ $as_echo "$as_me:$LINENO: result: shared" >&5
84936$as_echo "shared" >&6; }
84937
84938		string_shared_modules="$string_shared_modules rpc_dssetup"
84939	elif test x"$DEST" = xSTATIC; then
84940		init_static_modules_rpc="$init_static_modules_rpc  rpc_dssetup_init();"
84941 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_dssetup_init(void);"
84942		string_static_modules="$string_static_modules rpc_dssetup"
84943		RPC_STATIC="$RPC_STATIC \$(RPC_DSSETUP_OBJ)"
84944
84945
84946		{ $as_echo "$as_me:$LINENO: result: static" >&5
84947$as_echo "static" >&6; }
84948	else
84949	    string_ignored_modules="$string_ignored_modules rpc_dssetup"
84950		{ $as_echo "$as_me:$LINENO: result: not" >&5
84951$as_echo "not" >&6; }
84952	fi
84953
84954
84955	{ $as_echo "$as_me:$LINENO: checking how to build rpc_wkssvc" >&5
84956$as_echo_n "checking how to build rpc_wkssvc... " >&6; }
84957	if test "$MODULE_rpc_wkssvc"; then
84958		DEST=$MODULE_rpc_wkssvc
84959	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_wkssvc"; then
84960		DEST=$MODULE_rpc
84961	else
84962		DEST=$MODULE_DEFAULT_rpc_wkssvc
84963	fi
84964
84965	if test x"$DEST" = xSHARED; then
84966
84967cat >>confdefs.h <<\_ACEOF
84968#define rpc_wkssvc_init init_samba_module
84969_ACEOF
84970
84971		RPC_MODULES="$RPC_MODULES "bin/librpc_wkssvc.$SHLIBEXT""
84972		{ $as_echo "$as_me:$LINENO: result: shared" >&5
84973$as_echo "shared" >&6; }
84974
84975		string_shared_modules="$string_shared_modules rpc_wkssvc"
84976	elif test x"$DEST" = xSTATIC; then
84977		init_static_modules_rpc="$init_static_modules_rpc  rpc_wkssvc_init();"
84978 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_wkssvc_init(void);"
84979		string_static_modules="$string_static_modules rpc_wkssvc"
84980		RPC_STATIC="$RPC_STATIC \$(RPC_WKS_OBJ)"
84981
84982
84983		{ $as_echo "$as_me:$LINENO: result: static" >&5
84984$as_echo "static" >&6; }
84985	else
84986	    string_ignored_modules="$string_ignored_modules rpc_wkssvc"
84987		{ $as_echo "$as_me:$LINENO: result: not" >&5
84988$as_echo "not" >&6; }
84989	fi
84990
84991
84992	{ $as_echo "$as_me:$LINENO: checking how to build rpc_svcctl" >&5
84993$as_echo_n "checking how to build rpc_svcctl... " >&6; }
84994	if test "$MODULE_rpc_svcctl"; then
84995		DEST=$MODULE_rpc_svcctl
84996	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_svcctl"; then
84997		DEST=$MODULE_rpc
84998	else
84999		DEST=$MODULE_DEFAULT_rpc_svcctl
85000	fi
85001
85002	if test x"$DEST" = xSHARED; then
85003
85004cat >>confdefs.h <<\_ACEOF
85005#define rpc_svcctl_init init_samba_module
85006_ACEOF
85007
85008		RPC_MODULES="$RPC_MODULES "bin/librpc_svcctl.$SHLIBEXT""
85009		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85010$as_echo "shared" >&6; }
85011
85012		string_shared_modules="$string_shared_modules rpc_svcctl"
85013	elif test x"$DEST" = xSTATIC; then
85014		init_static_modules_rpc="$init_static_modules_rpc  rpc_svcctl_init();"
85015 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_svcctl_init(void);"
85016		string_static_modules="$string_static_modules rpc_svcctl"
85017		RPC_STATIC="$RPC_STATIC \$(RPC_SVCCTL_OBJ)"
85018
85019
85020		{ $as_echo "$as_me:$LINENO: result: static" >&5
85021$as_echo "static" >&6; }
85022	else
85023	    string_ignored_modules="$string_ignored_modules rpc_svcctl"
85024		{ $as_echo "$as_me:$LINENO: result: not" >&5
85025$as_echo "not" >&6; }
85026	fi
85027
85028
85029	{ $as_echo "$as_me:$LINENO: checking how to build rpc_ntsvcs" >&5
85030$as_echo_n "checking how to build rpc_ntsvcs... " >&6; }
85031	if test "$MODULE_rpc_ntsvcs"; then
85032		DEST=$MODULE_rpc_ntsvcs
85033	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_ntsvcs"; then
85034		DEST=$MODULE_rpc
85035	else
85036		DEST=$MODULE_DEFAULT_rpc_ntsvcs
85037	fi
85038
85039	if test x"$DEST" = xSHARED; then
85040
85041cat >>confdefs.h <<\_ACEOF
85042#define rpc_ntsvcs_init init_samba_module
85043_ACEOF
85044
85045		RPC_MODULES="$RPC_MODULES "bin/librpc_ntsvcs.$SHLIBEXT""
85046		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85047$as_echo "shared" >&6; }
85048
85049		string_shared_modules="$string_shared_modules rpc_ntsvcs"
85050	elif test x"$DEST" = xSTATIC; then
85051		init_static_modules_rpc="$init_static_modules_rpc  rpc_ntsvcs_init();"
85052 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_ntsvcs_init(void);"
85053		string_static_modules="$string_static_modules rpc_ntsvcs"
85054		RPC_STATIC="$RPC_STATIC \$(RPC_NTSVCS_OBJ)"
85055
85056
85057		{ $as_echo "$as_me:$LINENO: result: static" >&5
85058$as_echo "static" >&6; }
85059	else
85060	    string_ignored_modules="$string_ignored_modules rpc_ntsvcs"
85061		{ $as_echo "$as_me:$LINENO: result: not" >&5
85062$as_echo "not" >&6; }
85063	fi
85064
85065
85066	{ $as_echo "$as_me:$LINENO: checking how to build rpc_netlogon" >&5
85067$as_echo_n "checking how to build rpc_netlogon... " >&6; }
85068	if test "$MODULE_rpc_netlogon"; then
85069		DEST=$MODULE_rpc_netlogon
85070	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_netlogon"; then
85071		DEST=$MODULE_rpc
85072	else
85073		DEST=$MODULE_DEFAULT_rpc_netlogon
85074	fi
85075
85076	if test x"$DEST" = xSHARED; then
85077
85078cat >>confdefs.h <<\_ACEOF
85079#define rpc_netlogon_init init_samba_module
85080_ACEOF
85081
85082		RPC_MODULES="$RPC_MODULES "bin/librpc_NETLOGON.$SHLIBEXT""
85083		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85084$as_echo "shared" >&6; }
85085
85086		string_shared_modules="$string_shared_modules rpc_netlogon"
85087	elif test x"$DEST" = xSTATIC; then
85088		init_static_modules_rpc="$init_static_modules_rpc  rpc_netlogon_init();"
85089 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_netlogon_init(void);"
85090		string_static_modules="$string_static_modules rpc_netlogon"
85091		RPC_STATIC="$RPC_STATIC \$(RPC_NETLOG_OBJ)"
85092
85093
85094		{ $as_echo "$as_me:$LINENO: result: static" >&5
85095$as_echo "static" >&6; }
85096	else
85097	    string_ignored_modules="$string_ignored_modules rpc_netlogon"
85098		{ $as_echo "$as_me:$LINENO: result: not" >&5
85099$as_echo "not" >&6; }
85100	fi
85101
85102
85103	{ $as_echo "$as_me:$LINENO: checking how to build rpc_netdfs" >&5
85104$as_echo_n "checking how to build rpc_netdfs... " >&6; }
85105	if test "$MODULE_rpc_netdfs"; then
85106		DEST=$MODULE_rpc_netdfs
85107	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_netdfs"; then
85108		DEST=$MODULE_rpc
85109	else
85110		DEST=$MODULE_DEFAULT_rpc_netdfs
85111	fi
85112
85113	if test x"$DEST" = xSHARED; then
85114
85115cat >>confdefs.h <<\_ACEOF
85116#define rpc_netdfs_init init_samba_module
85117_ACEOF
85118
85119		RPC_MODULES="$RPC_MODULES "bin/librpc_netdfs.$SHLIBEXT""
85120		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85121$as_echo "shared" >&6; }
85122
85123		string_shared_modules="$string_shared_modules rpc_netdfs"
85124	elif test x"$DEST" = xSTATIC; then
85125		init_static_modules_rpc="$init_static_modules_rpc  rpc_netdfs_init();"
85126 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_netdfs_init(void);"
85127		string_static_modules="$string_static_modules rpc_netdfs"
85128		RPC_STATIC="$RPC_STATIC \$(RPC_DFS_OBJ)"
85129
85130
85131		{ $as_echo "$as_me:$LINENO: result: static" >&5
85132$as_echo "static" >&6; }
85133	else
85134	    string_ignored_modules="$string_ignored_modules rpc_netdfs"
85135		{ $as_echo "$as_me:$LINENO: result: not" >&5
85136$as_echo "not" >&6; }
85137	fi
85138
85139
85140	{ $as_echo "$as_me:$LINENO: checking how to build rpc_srvsvc" >&5
85141$as_echo_n "checking how to build rpc_srvsvc... " >&6; }
85142	if test "$MODULE_rpc_srvsvc"; then
85143		DEST=$MODULE_rpc_srvsvc
85144	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_srvsvc"; then
85145		DEST=$MODULE_rpc
85146	else
85147		DEST=$MODULE_DEFAULT_rpc_srvsvc
85148	fi
85149
85150	if test x"$DEST" = xSHARED; then
85151
85152cat >>confdefs.h <<\_ACEOF
85153#define rpc_srvsvc_init init_samba_module
85154_ACEOF
85155
85156		RPC_MODULES="$RPC_MODULES "bin/librpc_svcsvc.$SHLIBEXT""
85157		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85158$as_echo "shared" >&6; }
85159
85160		string_shared_modules="$string_shared_modules rpc_srvsvc"
85161	elif test x"$DEST" = xSTATIC; then
85162		init_static_modules_rpc="$init_static_modules_rpc  rpc_srvsvc_init();"
85163 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_srvsvc_init(void);"
85164		string_static_modules="$string_static_modules rpc_srvsvc"
85165		RPC_STATIC="$RPC_STATIC \$(RPC_SVC_OBJ)"
85166
85167
85168		{ $as_echo "$as_me:$LINENO: result: static" >&5
85169$as_echo "static" >&6; }
85170	else
85171	    string_ignored_modules="$string_ignored_modules rpc_srvsvc"
85172		{ $as_echo "$as_me:$LINENO: result: not" >&5
85173$as_echo "not" >&6; }
85174	fi
85175
85176
85177	{ $as_echo "$as_me:$LINENO: checking how to build rpc_spoolss" >&5
85178$as_echo_n "checking how to build rpc_spoolss... " >&6; }
85179	if test "$MODULE_rpc_spoolss"; then
85180		DEST=$MODULE_rpc_spoolss
85181	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_spoolss"; then
85182		DEST=$MODULE_rpc
85183	else
85184		DEST=$MODULE_DEFAULT_rpc_spoolss
85185	fi
85186
85187	if test x"$DEST" = xSHARED; then
85188
85189cat >>confdefs.h <<\_ACEOF
85190#define rpc_spoolss_init init_samba_module
85191_ACEOF
85192
85193		RPC_MODULES="$RPC_MODULES "bin/librpc_spoolss.$SHLIBEXT""
85194		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85195$as_echo "shared" >&6; }
85196
85197		string_shared_modules="$string_shared_modules rpc_spoolss"
85198	elif test x"$DEST" = xSTATIC; then
85199		init_static_modules_rpc="$init_static_modules_rpc  rpc_spoolss_init();"
85200 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_spoolss_init(void);"
85201		string_static_modules="$string_static_modules rpc_spoolss"
85202		RPC_STATIC="$RPC_STATIC \$(RPC_SPOOLSS_OBJ)"
85203
85204
85205		{ $as_echo "$as_me:$LINENO: result: static" >&5
85206$as_echo "static" >&6; }
85207	else
85208	    string_ignored_modules="$string_ignored_modules rpc_spoolss"
85209		{ $as_echo "$as_me:$LINENO: result: not" >&5
85210$as_echo "not" >&6; }
85211	fi
85212
85213
85214	{ $as_echo "$as_me:$LINENO: checking how to build rpc_eventlog" >&5
85215$as_echo_n "checking how to build rpc_eventlog... " >&6; }
85216	if test "$MODULE_rpc_eventlog"; then
85217		DEST=$MODULE_rpc_eventlog
85218	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_eventlog"; then
85219		DEST=$MODULE_rpc
85220	else
85221		DEST=$MODULE_DEFAULT_rpc_eventlog
85222	fi
85223
85224	if test x"$DEST" = xSHARED; then
85225
85226cat >>confdefs.h <<\_ACEOF
85227#define rpc_eventlog_init init_samba_module
85228_ACEOF
85229
85230		RPC_MODULES="$RPC_MODULES "bin/librpc_eventlog.$SHLIBEXT""
85231		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85232$as_echo "shared" >&6; }
85233
85234		string_shared_modules="$string_shared_modules rpc_eventlog"
85235	elif test x"$DEST" = xSTATIC; then
85236		init_static_modules_rpc="$init_static_modules_rpc  rpc_eventlog_init();"
85237 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_eventlog_init(void);"
85238		string_static_modules="$string_static_modules rpc_eventlog"
85239		RPC_STATIC="$RPC_STATIC \$(RPC_EVENTLOG_OBJ)"
85240
85241
85242		{ $as_echo "$as_me:$LINENO: result: static" >&5
85243$as_echo "static" >&6; }
85244	else
85245	    string_ignored_modules="$string_ignored_modules rpc_eventlog"
85246		{ $as_echo "$as_me:$LINENO: result: not" >&5
85247$as_echo "not" >&6; }
85248	fi
85249
85250
85251	{ $as_echo "$as_me:$LINENO: checking how to build rpc_samr" >&5
85252$as_echo_n "checking how to build rpc_samr... " >&6; }
85253	if test "$MODULE_rpc_samr"; then
85254		DEST=$MODULE_rpc_samr
85255	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_samr"; then
85256		DEST=$MODULE_rpc
85257	else
85258		DEST=$MODULE_DEFAULT_rpc_samr
85259	fi
85260
85261	if test x"$DEST" = xSHARED; then
85262
85263cat >>confdefs.h <<\_ACEOF
85264#define rpc_samr_init init_samba_module
85265_ACEOF
85266
85267		RPC_MODULES="$RPC_MODULES "bin/librpc_samr.$SHLIBEXT""
85268		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85269$as_echo "shared" >&6; }
85270
85271		string_shared_modules="$string_shared_modules rpc_samr"
85272	elif test x"$DEST" = xSTATIC; then
85273		init_static_modules_rpc="$init_static_modules_rpc  rpc_samr_init();"
85274 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_samr_init(void);"
85275		string_static_modules="$string_static_modules rpc_samr"
85276		RPC_STATIC="$RPC_STATIC \$(RPC_SAMR_OBJ)"
85277
85278
85279		{ $as_echo "$as_me:$LINENO: result: static" >&5
85280$as_echo "static" >&6; }
85281	else
85282	    string_ignored_modules="$string_ignored_modules rpc_samr"
85283		{ $as_echo "$as_me:$LINENO: result: not" >&5
85284$as_echo "not" >&6; }
85285	fi
85286
85287
85288	{ $as_echo "$as_me:$LINENO: checking how to build rpc_rpcecho" >&5
85289$as_echo_n "checking how to build rpc_rpcecho... " >&6; }
85290	if test "$MODULE_rpc_rpcecho"; then
85291		DEST=$MODULE_rpc_rpcecho
85292	elif test "$MODULE_rpc" -a "$MODULE_DEFAULT_rpc_rpcecho"; then
85293		DEST=$MODULE_rpc
85294	else
85295		DEST=$MODULE_DEFAULT_rpc_rpcecho
85296	fi
85297
85298	if test x"$DEST" = xSHARED; then
85299
85300cat >>confdefs.h <<\_ACEOF
85301#define rpc_rpcecho_init init_samba_module
85302_ACEOF
85303
85304		RPC_MODULES="$RPC_MODULES "bin/librpc_rpcecho.$SHLIBEXT""
85305		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85306$as_echo "shared" >&6; }
85307
85308		string_shared_modules="$string_shared_modules rpc_rpcecho"
85309	elif test x"$DEST" = xSTATIC; then
85310		init_static_modules_rpc="$init_static_modules_rpc  rpc_rpcecho_init();"
85311 		decl_static_modules_rpc="$decl_static_modules_rpc extern NTSTATUS rpc_rpcecho_init(void);"
85312		string_static_modules="$string_static_modules rpc_rpcecho"
85313		RPC_STATIC="$RPC_STATIC \$(RPC_ECHO_OBJ)"
85314
85315
85316		{ $as_echo "$as_me:$LINENO: result: static" >&5
85317$as_echo "static" >&6; }
85318	else
85319	    string_ignored_modules="$string_ignored_modules rpc_rpcecho"
85320		{ $as_echo "$as_me:$LINENO: result: not" >&5
85321$as_echo "not" >&6; }
85322	fi
85323
85324
85325
85326
85327
85328cat >>confdefs.h <<_ACEOF
85329#define static_init_rpc {$init_static_modules_rpc}
85330_ACEOF
85331
85332
85333cat >>confdefs.h <<_ACEOF
85334#define static_decl_rpc $decl_static_modules_rpc
85335_ACEOF
85336
85337    	rm -f smbd/server.o
85338
85339
85340
85341	{ $as_echo "$as_me:$LINENO: checking how to build idmap_ldap" >&5
85342$as_echo_n "checking how to build idmap_ldap... " >&6; }
85343	if test "$MODULE_idmap_ldap"; then
85344		DEST=$MODULE_idmap_ldap
85345	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_ldap"; then
85346		DEST=$MODULE_idmap
85347	else
85348		DEST=$MODULE_DEFAULT_idmap_ldap
85349	fi
85350
85351	if test x"$DEST" = xSHARED; then
85352
85353cat >>confdefs.h <<\_ACEOF
85354#define idmap_ldap_init init_samba_module
85355_ACEOF
85356
85357		IDMAP_MODULES="$IDMAP_MODULES "bin/ldap.$SHLIBEXT""
85358		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85359$as_echo "shared" >&6; }
85360
85361		string_shared_modules="$string_shared_modules idmap_ldap"
85362	elif test x"$DEST" = xSTATIC; then
85363		init_static_modules_idmap="$init_static_modules_idmap  idmap_ldap_init();"
85364 		decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_ldap_init(void);"
85365		string_static_modules="$string_static_modules idmap_ldap"
85366		IDMAP_STATIC="$IDMAP_STATIC winbindd/idmap_ldap.o"
85367
85368
85369		{ $as_echo "$as_me:$LINENO: result: static" >&5
85370$as_echo "static" >&6; }
85371	else
85372	    string_ignored_modules="$string_ignored_modules idmap_ldap"
85373		{ $as_echo "$as_me:$LINENO: result: not" >&5
85374$as_echo "not" >&6; }
85375	fi
85376
85377
85378	{ $as_echo "$as_me:$LINENO: checking how to build idmap_tdb" >&5
85379$as_echo_n "checking how to build idmap_tdb... " >&6; }
85380	if test "$MODULE_idmap_tdb"; then
85381		DEST=$MODULE_idmap_tdb
85382	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_tdb"; then
85383		DEST=$MODULE_idmap
85384	else
85385		DEST=$MODULE_DEFAULT_idmap_tdb
85386	fi
85387
85388	if test x"$DEST" = xSHARED; then
85389
85390cat >>confdefs.h <<\_ACEOF
85391#define idmap_tdb_init init_samba_module
85392_ACEOF
85393
85394		IDMAP_MODULES="$IDMAP_MODULES "bin/tdb.$SHLIBEXT""
85395		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85396$as_echo "shared" >&6; }
85397
85398		string_shared_modules="$string_shared_modules idmap_tdb"
85399	elif test x"$DEST" = xSTATIC; then
85400		init_static_modules_idmap="$init_static_modules_idmap  idmap_tdb_init();"
85401 		decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_tdb_init(void);"
85402		string_static_modules="$string_static_modules idmap_tdb"
85403		IDMAP_STATIC="$IDMAP_STATIC winbindd/idmap_tdb.o"
85404
85405
85406		{ $as_echo "$as_me:$LINENO: result: static" >&5
85407$as_echo "static" >&6; }
85408	else
85409	    string_ignored_modules="$string_ignored_modules idmap_tdb"
85410		{ $as_echo "$as_me:$LINENO: result: not" >&5
85411$as_echo "not" >&6; }
85412	fi
85413
85414
85415	{ $as_echo "$as_me:$LINENO: checking how to build idmap_tdb2" >&5
85416$as_echo_n "checking how to build idmap_tdb2... " >&6; }
85417	if test "$MODULE_idmap_tdb2"; then
85418		DEST=$MODULE_idmap_tdb2
85419	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_tdb2"; then
85420		DEST=$MODULE_idmap
85421	else
85422		DEST=$MODULE_DEFAULT_idmap_tdb2
85423	fi
85424
85425	if test x"$DEST" = xSHARED; then
85426
85427cat >>confdefs.h <<\_ACEOF
85428#define idmap_tdb2_init init_samba_module
85429_ACEOF
85430
85431		IDMAP_MODULES="$IDMAP_MODULES "bin/tdb2.$SHLIBEXT""
85432		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85433$as_echo "shared" >&6; }
85434
85435		string_shared_modules="$string_shared_modules idmap_tdb2"
85436	elif test x"$DEST" = xSTATIC; then
85437		init_static_modules_idmap="$init_static_modules_idmap  idmap_tdb2_init();"
85438 		decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_tdb2_init(void);"
85439		string_static_modules="$string_static_modules idmap_tdb2"
85440		IDMAP_STATIC="$IDMAP_STATIC winbindd/idmap_tdb2.o"
85441
85442
85443		{ $as_echo "$as_me:$LINENO: result: static" >&5
85444$as_echo "static" >&6; }
85445	else
85446	    string_ignored_modules="$string_ignored_modules idmap_tdb2"
85447		{ $as_echo "$as_me:$LINENO: result: not" >&5
85448$as_echo "not" >&6; }
85449	fi
85450
85451
85452	{ $as_echo "$as_me:$LINENO: checking how to build idmap_passdb" >&5
85453$as_echo_n "checking how to build idmap_passdb... " >&6; }
85454	if test "$MODULE_idmap_passdb"; then
85455		DEST=$MODULE_idmap_passdb
85456	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_passdb"; then
85457		DEST=$MODULE_idmap
85458	else
85459		DEST=$MODULE_DEFAULT_idmap_passdb
85460	fi
85461
85462	if test x"$DEST" = xSHARED; then
85463
85464cat >>confdefs.h <<\_ACEOF
85465#define idmap_passdb_init init_samba_module
85466_ACEOF
85467
85468		IDMAP_MODULES="$IDMAP_MODULES "bin/passdb.$SHLIBEXT""
85469		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85470$as_echo "shared" >&6; }
85471
85472		string_shared_modules="$string_shared_modules idmap_passdb"
85473	elif test x"$DEST" = xSTATIC; then
85474		init_static_modules_idmap="$init_static_modules_idmap  idmap_passdb_init();"
85475 		decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_passdb_init(void);"
85476		string_static_modules="$string_static_modules idmap_passdb"
85477		IDMAP_STATIC="$IDMAP_STATIC winbindd/idmap_passdb.o"
85478
85479
85480		{ $as_echo "$as_me:$LINENO: result: static" >&5
85481$as_echo "static" >&6; }
85482	else
85483	    string_ignored_modules="$string_ignored_modules idmap_passdb"
85484		{ $as_echo "$as_me:$LINENO: result: not" >&5
85485$as_echo "not" >&6; }
85486	fi
85487
85488
85489	{ $as_echo "$as_me:$LINENO: checking how to build idmap_nss" >&5
85490$as_echo_n "checking how to build idmap_nss... " >&6; }
85491	if test "$MODULE_idmap_nss"; then
85492		DEST=$MODULE_idmap_nss
85493	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_nss"; then
85494		DEST=$MODULE_idmap
85495	else
85496		DEST=$MODULE_DEFAULT_idmap_nss
85497	fi
85498
85499	if test x"$DEST" = xSHARED; then
85500
85501cat >>confdefs.h <<\_ACEOF
85502#define idmap_nss_init init_samba_module
85503_ACEOF
85504
85505		IDMAP_MODULES="$IDMAP_MODULES "bin/nss.$SHLIBEXT""
85506		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85507$as_echo "shared" >&6; }
85508
85509		string_shared_modules="$string_shared_modules idmap_nss"
85510	elif test x"$DEST" = xSTATIC; then
85511		init_static_modules_idmap="$init_static_modules_idmap  idmap_nss_init();"
85512 		decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_nss_init(void);"
85513		string_static_modules="$string_static_modules idmap_nss"
85514		IDMAP_STATIC="$IDMAP_STATIC winbindd/idmap_nss.o"
85515
85516
85517		{ $as_echo "$as_me:$LINENO: result: static" >&5
85518$as_echo "static" >&6; }
85519	else
85520	    string_ignored_modules="$string_ignored_modules idmap_nss"
85521		{ $as_echo "$as_me:$LINENO: result: not" >&5
85522$as_echo "not" >&6; }
85523	fi
85524
85525
85526	{ $as_echo "$as_me:$LINENO: checking how to build idmap_rid" >&5
85527$as_echo_n "checking how to build idmap_rid... " >&6; }
85528	if test "$MODULE_idmap_rid"; then
85529		DEST=$MODULE_idmap_rid
85530	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_rid"; then
85531		DEST=$MODULE_idmap
85532	else
85533		DEST=$MODULE_DEFAULT_idmap_rid
85534	fi
85535
85536	if test x"$DEST" = xSHARED; then
85537
85538cat >>confdefs.h <<\_ACEOF
85539#define idmap_rid_init init_samba_module
85540_ACEOF
85541
85542		IDMAP_MODULES="$IDMAP_MODULES "bin/rid.$SHLIBEXT""
85543		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85544$as_echo "shared" >&6; }
85545
85546		string_shared_modules="$string_shared_modules idmap_rid"
85547	elif test x"$DEST" = xSTATIC; then
85548		init_static_modules_idmap="$init_static_modules_idmap  idmap_rid_init();"
85549 		decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_rid_init(void);"
85550		string_static_modules="$string_static_modules idmap_rid"
85551		IDMAP_STATIC="$IDMAP_STATIC winbindd/idmap_rid.o"
85552
85553
85554		{ $as_echo "$as_me:$LINENO: result: static" >&5
85555$as_echo "static" >&6; }
85556	else
85557	    string_ignored_modules="$string_ignored_modules idmap_rid"
85558		{ $as_echo "$as_me:$LINENO: result: not" >&5
85559$as_echo "not" >&6; }
85560	fi
85561
85562
85563	{ $as_echo "$as_me:$LINENO: checking how to build idmap_ad" >&5
85564$as_echo_n "checking how to build idmap_ad... " >&6; }
85565	if test "$MODULE_idmap_ad"; then
85566		DEST=$MODULE_idmap_ad
85567	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_ad"; then
85568		DEST=$MODULE_idmap
85569	else
85570		DEST=$MODULE_DEFAULT_idmap_ad
85571	fi
85572
85573	if test x"$DEST" = xSHARED; then
85574
85575cat >>confdefs.h <<\_ACEOF
85576#define idmap_ad_init init_samba_module
85577_ACEOF
85578
85579		IDMAP_MODULES="$IDMAP_MODULES "bin/ad.$SHLIBEXT""
85580		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85581$as_echo "shared" >&6; }
85582
85583		string_shared_modules="$string_shared_modules idmap_ad"
85584	elif test x"$DEST" = xSTATIC; then
85585		init_static_modules_idmap="$init_static_modules_idmap  idmap_ad_init();"
85586 		decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_ad_init(void);"
85587		string_static_modules="$string_static_modules idmap_ad"
85588		IDMAP_STATIC="$IDMAP_STATIC winbindd/idmap_ad.o"
85589
85590
85591		{ $as_echo "$as_me:$LINENO: result: static" >&5
85592$as_echo "static" >&6; }
85593	else
85594	    string_ignored_modules="$string_ignored_modules idmap_ad"
85595		{ $as_echo "$as_me:$LINENO: result: not" >&5
85596$as_echo "not" >&6; }
85597	fi
85598
85599
85600	{ $as_echo "$as_me:$LINENO: checking how to build idmap_hash" >&5
85601$as_echo_n "checking how to build idmap_hash... " >&6; }
85602	if test "$MODULE_idmap_hash"; then
85603		DEST=$MODULE_idmap_hash
85604	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_hash"; then
85605		DEST=$MODULE_idmap
85606	else
85607		DEST=$MODULE_DEFAULT_idmap_hash
85608	fi
85609
85610	if test x"$DEST" = xSHARED; then
85611
85612cat >>confdefs.h <<\_ACEOF
85613#define idmap_hash_init init_samba_module
85614_ACEOF
85615
85616		IDMAP_MODULES="$IDMAP_MODULES "bin/hash.$SHLIBEXT""
85617		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85618$as_echo "shared" >&6; }
85619
85620		string_shared_modules="$string_shared_modules idmap_hash"
85621	elif test x"$DEST" = xSTATIC; then
85622		init_static_modules_idmap="$init_static_modules_idmap  idmap_hash_init();"
85623 		decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_hash_init(void);"
85624		string_static_modules="$string_static_modules idmap_hash"
85625		IDMAP_STATIC="$IDMAP_STATIC \$(IDMAP_HASH_OBJ)"
85626
85627
85628		{ $as_echo "$as_me:$LINENO: result: static" >&5
85629$as_echo "static" >&6; }
85630	else
85631	    string_ignored_modules="$string_ignored_modules idmap_hash"
85632		{ $as_echo "$as_me:$LINENO: result: not" >&5
85633$as_echo "not" >&6; }
85634	fi
85635
85636
85637	{ $as_echo "$as_me:$LINENO: checking how to build idmap_adex" >&5
85638$as_echo_n "checking how to build idmap_adex... " >&6; }
85639	if test "$MODULE_idmap_adex"; then
85640		DEST=$MODULE_idmap_adex
85641	elif test "$MODULE_idmap" -a "$MODULE_DEFAULT_idmap_adex"; then
85642		DEST=$MODULE_idmap
85643	else
85644		DEST=$MODULE_DEFAULT_idmap_adex
85645	fi
85646
85647	if test x"$DEST" = xSHARED; then
85648
85649cat >>confdefs.h <<\_ACEOF
85650#define idmap_adex_init init_samba_module
85651_ACEOF
85652
85653		IDMAP_MODULES="$IDMAP_MODULES "bin/adex.$SHLIBEXT""
85654		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85655$as_echo "shared" >&6; }
85656
85657		string_shared_modules="$string_shared_modules idmap_adex"
85658	elif test x"$DEST" = xSTATIC; then
85659		init_static_modules_idmap="$init_static_modules_idmap  idmap_adex_init();"
85660 		decl_static_modules_idmap="$decl_static_modules_idmap extern NTSTATUS idmap_adex_init(void);"
85661		string_static_modules="$string_static_modules idmap_adex"
85662		IDMAP_STATIC="$IDMAP_STATIC \$(IDMAP_ADEX_OBJ)"
85663
85664
85665		{ $as_echo "$as_me:$LINENO: result: static" >&5
85666$as_echo "static" >&6; }
85667	else
85668	    string_ignored_modules="$string_ignored_modules idmap_adex"
85669		{ $as_echo "$as_me:$LINENO: result: not" >&5
85670$as_echo "not" >&6; }
85671	fi
85672
85673
85674
85675
85676
85677cat >>confdefs.h <<_ACEOF
85678#define static_init_idmap {$init_static_modules_idmap}
85679_ACEOF
85680
85681
85682cat >>confdefs.h <<_ACEOF
85683#define static_decl_idmap $decl_static_modules_idmap
85684_ACEOF
85685
85686    	rm -f winbindd/idmap.o
85687
85688
85689
85690	{ $as_echo "$as_me:$LINENO: checking how to build nss_info_template" >&5
85691$as_echo_n "checking how to build nss_info_template... " >&6; }
85692	if test "$MODULE_nss_info_template"; then
85693		DEST=$MODULE_nss_info_template
85694	elif test "$MODULE_nss_info" -a "$MODULE_DEFAULT_nss_info_template"; then
85695		DEST=$MODULE_nss_info
85696	else
85697		DEST=$MODULE_DEFAULT_nss_info_template
85698	fi
85699
85700	if test x"$DEST" = xSHARED; then
85701
85702cat >>confdefs.h <<\_ACEOF
85703#define nss_info_template_init init_samba_module
85704_ACEOF
85705
85706		NSS_INFO_MODULES="$NSS_INFO_MODULES "bin/template.$SHLIBEXT""
85707		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85708$as_echo "shared" >&6; }
85709
85710		string_shared_modules="$string_shared_modules nss_info_template"
85711	elif test x"$DEST" = xSTATIC; then
85712		init_static_modules_nss_info="$init_static_modules_nss_info  nss_info_template_init();"
85713 		decl_static_modules_nss_info="$decl_static_modules_nss_info extern NTSTATUS nss_info_template_init(void);"
85714		string_static_modules="$string_static_modules nss_info_template"
85715		NSS_INFO_STATIC="$NSS_INFO_STATIC winbindd/nss_info_template.o"
85716
85717
85718		{ $as_echo "$as_me:$LINENO: result: static" >&5
85719$as_echo "static" >&6; }
85720	else
85721	    string_ignored_modules="$string_ignored_modules nss_info_template"
85722		{ $as_echo "$as_me:$LINENO: result: not" >&5
85723$as_echo "not" >&6; }
85724	fi
85725
85726
85727
85728
85729
85730cat >>confdefs.h <<_ACEOF
85731#define static_init_nss_info {$init_static_modules_nss_info}
85732_ACEOF
85733
85734
85735cat >>confdefs.h <<_ACEOF
85736#define static_decl_nss_info $decl_static_modules_nss_info
85737_ACEOF
85738
85739    	rm -f winbindd/nss_info.o
85740
85741
85742
85743	{ $as_echo "$as_me:$LINENO: checking how to build charset_weird" >&5
85744$as_echo_n "checking how to build charset_weird... " >&6; }
85745	if test "$MODULE_charset_weird"; then
85746		DEST=$MODULE_charset_weird
85747	elif test "$MODULE_charset" -a "$MODULE_DEFAULT_charset_weird"; then
85748		DEST=$MODULE_charset
85749	else
85750		DEST=$MODULE_DEFAULT_charset_weird
85751	fi
85752
85753	if test x"$DEST" = xSHARED; then
85754
85755cat >>confdefs.h <<\_ACEOF
85756#define charset_weird_init init_samba_module
85757_ACEOF
85758
85759		CHARSET_MODULES="$CHARSET_MODULES "bin/weird.$SHLIBEXT""
85760		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85761$as_echo "shared" >&6; }
85762
85763		string_shared_modules="$string_shared_modules charset_weird"
85764	elif test x"$DEST" = xSTATIC; then
85765		init_static_modules_charset="$init_static_modules_charset  charset_weird_init();"
85766 		decl_static_modules_charset="$decl_static_modules_charset extern NTSTATUS charset_weird_init(void);"
85767		string_static_modules="$string_static_modules charset_weird"
85768		CHARSET_STATIC="$CHARSET_STATIC modules/weird.o"
85769
85770
85771		{ $as_echo "$as_me:$LINENO: result: static" >&5
85772$as_echo "static" >&6; }
85773	else
85774	    string_ignored_modules="$string_ignored_modules charset_weird"
85775		{ $as_echo "$as_me:$LINENO: result: not" >&5
85776$as_echo "not" >&6; }
85777	fi
85778
85779
85780	{ $as_echo "$as_me:$LINENO: checking how to build charset_CP850" >&5
85781$as_echo_n "checking how to build charset_CP850... " >&6; }
85782	if test "$MODULE_charset_CP850"; then
85783		DEST=$MODULE_charset_CP850
85784	elif test "$MODULE_charset" -a "$MODULE_DEFAULT_charset_CP850"; then
85785		DEST=$MODULE_charset
85786	else
85787		DEST=$MODULE_DEFAULT_charset_CP850
85788	fi
85789
85790	if test x"$DEST" = xSHARED; then
85791
85792cat >>confdefs.h <<\_ACEOF
85793#define charset_CP850_init init_samba_module
85794_ACEOF
85795
85796		CHARSET_MODULES="$CHARSET_MODULES "bin/CP850.$SHLIBEXT""
85797		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85798$as_echo "shared" >&6; }
85799
85800		string_shared_modules="$string_shared_modules charset_CP850"
85801	elif test x"$DEST" = xSTATIC; then
85802		init_static_modules_charset="$init_static_modules_charset  charset_CP850_init();"
85803 		decl_static_modules_charset="$decl_static_modules_charset extern NTSTATUS charset_CP850_init(void);"
85804		string_static_modules="$string_static_modules charset_CP850"
85805		CHARSET_STATIC="$CHARSET_STATIC modules/CP850.o"
85806
85807
85808		{ $as_echo "$as_me:$LINENO: result: static" >&5
85809$as_echo "static" >&6; }
85810	else
85811	    string_ignored_modules="$string_ignored_modules charset_CP850"
85812		{ $as_echo "$as_me:$LINENO: result: not" >&5
85813$as_echo "not" >&6; }
85814	fi
85815
85816
85817	{ $as_echo "$as_me:$LINENO: checking how to build charset_CP437" >&5
85818$as_echo_n "checking how to build charset_CP437... " >&6; }
85819	if test "$MODULE_charset_CP437"; then
85820		DEST=$MODULE_charset_CP437
85821	elif test "$MODULE_charset" -a "$MODULE_DEFAULT_charset_CP437"; then
85822		DEST=$MODULE_charset
85823	else
85824		DEST=$MODULE_DEFAULT_charset_CP437
85825	fi
85826
85827	if test x"$DEST" = xSHARED; then
85828
85829cat >>confdefs.h <<\_ACEOF
85830#define charset_CP437_init init_samba_module
85831_ACEOF
85832
85833		CHARSET_MODULES="$CHARSET_MODULES "bin/CP437.$SHLIBEXT""
85834		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85835$as_echo "shared" >&6; }
85836
85837		string_shared_modules="$string_shared_modules charset_CP437"
85838	elif test x"$DEST" = xSTATIC; then
85839		init_static_modules_charset="$init_static_modules_charset  charset_CP437_init();"
85840 		decl_static_modules_charset="$decl_static_modules_charset extern NTSTATUS charset_CP437_init(void);"
85841		string_static_modules="$string_static_modules charset_CP437"
85842		CHARSET_STATIC="$CHARSET_STATIC modules/CP437.o"
85843
85844
85845		{ $as_echo "$as_me:$LINENO: result: static" >&5
85846$as_echo "static" >&6; }
85847	else
85848	    string_ignored_modules="$string_ignored_modules charset_CP437"
85849		{ $as_echo "$as_me:$LINENO: result: not" >&5
85850$as_echo "not" >&6; }
85851	fi
85852
85853
85854	{ $as_echo "$as_me:$LINENO: checking how to build charset_macosxfs" >&5
85855$as_echo_n "checking how to build charset_macosxfs... " >&6; }
85856	if test "$MODULE_charset_macosxfs"; then
85857		DEST=$MODULE_charset_macosxfs
85858	elif test "$MODULE_charset" -a "$MODULE_DEFAULT_charset_macosxfs"; then
85859		DEST=$MODULE_charset
85860	else
85861		DEST=$MODULE_DEFAULT_charset_macosxfs
85862	fi
85863
85864	if test x"$DEST" = xSHARED; then
85865
85866cat >>confdefs.h <<\_ACEOF
85867#define charset_macosxfs_init init_samba_module
85868_ACEOF
85869
85870		CHARSET_MODULES="$CHARSET_MODULES "bin/macosxfs.$SHLIBEXT""
85871		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85872$as_echo "shared" >&6; }
85873
85874		string_shared_modules="$string_shared_modules charset_macosxfs"
85875	elif test x"$DEST" = xSTATIC; then
85876		init_static_modules_charset="$init_static_modules_charset  charset_macosxfs_init();"
85877 		decl_static_modules_charset="$decl_static_modules_charset extern NTSTATUS charset_macosxfs_init(void);"
85878		string_static_modules="$string_static_modules charset_macosxfs"
85879		CHARSET_STATIC="$CHARSET_STATIC modules/charset_macosxfs.o"
85880
85881
85882		{ $as_echo "$as_me:$LINENO: result: static" >&5
85883$as_echo "static" >&6; }
85884	else
85885	    string_ignored_modules="$string_ignored_modules charset_macosxfs"
85886		{ $as_echo "$as_me:$LINENO: result: not" >&5
85887$as_echo "not" >&6; }
85888	fi
85889
85890
85891
85892
85893
85894cat >>confdefs.h <<_ACEOF
85895#define static_init_charset {$init_static_modules_charset}
85896_ACEOF
85897
85898
85899cat >>confdefs.h <<_ACEOF
85900#define static_decl_charset $decl_static_modules_charset
85901_ACEOF
85902
85903    	rm -f lib/iconv.o
85904
85905
85906
85907	{ $as_echo "$as_me:$LINENO: checking how to build auth_sam" >&5
85908$as_echo_n "checking how to build auth_sam... " >&6; }
85909	if test "$MODULE_auth_sam"; then
85910		DEST=$MODULE_auth_sam
85911	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_sam"; then
85912		DEST=$MODULE_auth
85913	else
85914		DEST=$MODULE_DEFAULT_auth_sam
85915	fi
85916
85917	if test x"$DEST" = xSHARED; then
85918
85919cat >>confdefs.h <<\_ACEOF
85920#define auth_sam_init init_samba_module
85921_ACEOF
85922
85923		AUTH_MODULES="$AUTH_MODULES "bin/sam.$SHLIBEXT""
85924		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85925$as_echo "shared" >&6; }
85926
85927		string_shared_modules="$string_shared_modules auth_sam"
85928	elif test x"$DEST" = xSTATIC; then
85929		init_static_modules_auth="$init_static_modules_auth  auth_sam_init();"
85930 		decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_sam_init(void);"
85931		string_static_modules="$string_static_modules auth_sam"
85932		AUTH_STATIC="$AUTH_STATIC \$(AUTH_SAM_OBJ)"
85933
85934
85935		{ $as_echo "$as_me:$LINENO: result: static" >&5
85936$as_echo "static" >&6; }
85937	else
85938	    string_ignored_modules="$string_ignored_modules auth_sam"
85939		{ $as_echo "$as_me:$LINENO: result: not" >&5
85940$as_echo "not" >&6; }
85941	fi
85942
85943
85944	{ $as_echo "$as_me:$LINENO: checking how to build auth_unix" >&5
85945$as_echo_n "checking how to build auth_unix... " >&6; }
85946	if test "$MODULE_auth_unix"; then
85947		DEST=$MODULE_auth_unix
85948	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_unix"; then
85949		DEST=$MODULE_auth
85950	else
85951		DEST=$MODULE_DEFAULT_auth_unix
85952	fi
85953
85954	if test x"$DEST" = xSHARED; then
85955
85956cat >>confdefs.h <<\_ACEOF
85957#define auth_unix_init init_samba_module
85958_ACEOF
85959
85960		AUTH_MODULES="$AUTH_MODULES "bin/unix.$SHLIBEXT""
85961		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85962$as_echo "shared" >&6; }
85963
85964		string_shared_modules="$string_shared_modules auth_unix"
85965	elif test x"$DEST" = xSTATIC; then
85966		init_static_modules_auth="$init_static_modules_auth  auth_unix_init();"
85967 		decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_unix_init(void);"
85968		string_static_modules="$string_static_modules auth_unix"
85969		AUTH_STATIC="$AUTH_STATIC \$(AUTH_UNIX_OBJ)"
85970
85971
85972		{ $as_echo "$as_me:$LINENO: result: static" >&5
85973$as_echo "static" >&6; }
85974	else
85975	    string_ignored_modules="$string_ignored_modules auth_unix"
85976		{ $as_echo "$as_me:$LINENO: result: not" >&5
85977$as_echo "not" >&6; }
85978	fi
85979
85980
85981	{ $as_echo "$as_me:$LINENO: checking how to build auth_winbind" >&5
85982$as_echo_n "checking how to build auth_winbind... " >&6; }
85983	if test "$MODULE_auth_winbind"; then
85984		DEST=$MODULE_auth_winbind
85985	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_winbind"; then
85986		DEST=$MODULE_auth
85987	else
85988		DEST=$MODULE_DEFAULT_auth_winbind
85989	fi
85990
85991	if test x"$DEST" = xSHARED; then
85992
85993cat >>confdefs.h <<\_ACEOF
85994#define auth_winbind_init init_samba_module
85995_ACEOF
85996
85997		AUTH_MODULES="$AUTH_MODULES "bin/winbind.$SHLIBEXT""
85998		{ $as_echo "$as_me:$LINENO: result: shared" >&5
85999$as_echo "shared" >&6; }
86000
86001		string_shared_modules="$string_shared_modules auth_winbind"
86002	elif test x"$DEST" = xSTATIC; then
86003		init_static_modules_auth="$init_static_modules_auth  auth_winbind_init();"
86004 		decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_winbind_init(void);"
86005		string_static_modules="$string_static_modules auth_winbind"
86006		AUTH_STATIC="$AUTH_STATIC \$(AUTH_WINBIND_OBJ)"
86007
86008
86009		{ $as_echo "$as_me:$LINENO: result: static" >&5
86010$as_echo "static" >&6; }
86011	else
86012	    string_ignored_modules="$string_ignored_modules auth_winbind"
86013		{ $as_echo "$as_me:$LINENO: result: not" >&5
86014$as_echo "not" >&6; }
86015	fi
86016
86017
86018	{ $as_echo "$as_me:$LINENO: checking how to build auth_wbc" >&5
86019$as_echo_n "checking how to build auth_wbc... " >&6; }
86020	if test "$MODULE_auth_wbc"; then
86021		DEST=$MODULE_auth_wbc
86022	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_wbc"; then
86023		DEST=$MODULE_auth
86024	else
86025		DEST=$MODULE_DEFAULT_auth_wbc
86026	fi
86027
86028	if test x"$DEST" = xSHARED; then
86029
86030cat >>confdefs.h <<\_ACEOF
86031#define auth_wbc_init init_samba_module
86032_ACEOF
86033
86034		AUTH_MODULES="$AUTH_MODULES "bin/wbc.$SHLIBEXT""
86035		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86036$as_echo "shared" >&6; }
86037
86038		string_shared_modules="$string_shared_modules auth_wbc"
86039	elif test x"$DEST" = xSTATIC; then
86040		init_static_modules_auth="$init_static_modules_auth  auth_wbc_init();"
86041 		decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_wbc_init(void);"
86042		string_static_modules="$string_static_modules auth_wbc"
86043		AUTH_STATIC="$AUTH_STATIC \$(AUTH_WBC_OBJ)"
86044
86045
86046		{ $as_echo "$as_me:$LINENO: result: static" >&5
86047$as_echo "static" >&6; }
86048	else
86049	    string_ignored_modules="$string_ignored_modules auth_wbc"
86050		{ $as_echo "$as_me:$LINENO: result: not" >&5
86051$as_echo "not" >&6; }
86052	fi
86053
86054
86055	{ $as_echo "$as_me:$LINENO: checking how to build auth_server" >&5
86056$as_echo_n "checking how to build auth_server... " >&6; }
86057	if test "$MODULE_auth_server"; then
86058		DEST=$MODULE_auth_server
86059	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_server"; then
86060		DEST=$MODULE_auth
86061	else
86062		DEST=$MODULE_DEFAULT_auth_server
86063	fi
86064
86065	if test x"$DEST" = xSHARED; then
86066
86067cat >>confdefs.h <<\_ACEOF
86068#define auth_server_init init_samba_module
86069_ACEOF
86070
86071		AUTH_MODULES="$AUTH_MODULES "bin/smbserver.$SHLIBEXT""
86072		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86073$as_echo "shared" >&6; }
86074
86075		string_shared_modules="$string_shared_modules auth_server"
86076	elif test x"$DEST" = xSTATIC; then
86077		init_static_modules_auth="$init_static_modules_auth  auth_server_init();"
86078 		decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_server_init(void);"
86079		string_static_modules="$string_static_modules auth_server"
86080		AUTH_STATIC="$AUTH_STATIC \$(AUTH_SERVER_OBJ)"
86081
86082
86083		{ $as_echo "$as_me:$LINENO: result: static" >&5
86084$as_echo "static" >&6; }
86085	else
86086	    string_ignored_modules="$string_ignored_modules auth_server"
86087		{ $as_echo "$as_me:$LINENO: result: not" >&5
86088$as_echo "not" >&6; }
86089	fi
86090
86091
86092	{ $as_echo "$as_me:$LINENO: checking how to build auth_domain" >&5
86093$as_echo_n "checking how to build auth_domain... " >&6; }
86094	if test "$MODULE_auth_domain"; then
86095		DEST=$MODULE_auth_domain
86096	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_domain"; then
86097		DEST=$MODULE_auth
86098	else
86099		DEST=$MODULE_DEFAULT_auth_domain
86100	fi
86101
86102	if test x"$DEST" = xSHARED; then
86103
86104cat >>confdefs.h <<\_ACEOF
86105#define auth_domain_init init_samba_module
86106_ACEOF
86107
86108		AUTH_MODULES="$AUTH_MODULES "bin/domain.$SHLIBEXT""
86109		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86110$as_echo "shared" >&6; }
86111
86112		string_shared_modules="$string_shared_modules auth_domain"
86113	elif test x"$DEST" = xSTATIC; then
86114		init_static_modules_auth="$init_static_modules_auth  auth_domain_init();"
86115 		decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_domain_init(void);"
86116		string_static_modules="$string_static_modules auth_domain"
86117		AUTH_STATIC="$AUTH_STATIC \$(AUTH_DOMAIN_OBJ)"
86118
86119
86120		{ $as_echo "$as_me:$LINENO: result: static" >&5
86121$as_echo "static" >&6; }
86122	else
86123	    string_ignored_modules="$string_ignored_modules auth_domain"
86124		{ $as_echo "$as_me:$LINENO: result: not" >&5
86125$as_echo "not" >&6; }
86126	fi
86127
86128
86129	{ $as_echo "$as_me:$LINENO: checking how to build auth_builtin" >&5
86130$as_echo_n "checking how to build auth_builtin... " >&6; }
86131	if test "$MODULE_auth_builtin"; then
86132		DEST=$MODULE_auth_builtin
86133	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_builtin"; then
86134		DEST=$MODULE_auth
86135	else
86136		DEST=$MODULE_DEFAULT_auth_builtin
86137	fi
86138
86139	if test x"$DEST" = xSHARED; then
86140
86141cat >>confdefs.h <<\_ACEOF
86142#define auth_builtin_init init_samba_module
86143_ACEOF
86144
86145		AUTH_MODULES="$AUTH_MODULES "bin/builtin.$SHLIBEXT""
86146		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86147$as_echo "shared" >&6; }
86148
86149		string_shared_modules="$string_shared_modules auth_builtin"
86150	elif test x"$DEST" = xSTATIC; then
86151		init_static_modules_auth="$init_static_modules_auth  auth_builtin_init();"
86152 		decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_builtin_init(void);"
86153		string_static_modules="$string_static_modules auth_builtin"
86154		AUTH_STATIC="$AUTH_STATIC \$(AUTH_BUILTIN_OBJ)"
86155
86156
86157		{ $as_echo "$as_me:$LINENO: result: static" >&5
86158$as_echo "static" >&6; }
86159	else
86160	    string_ignored_modules="$string_ignored_modules auth_builtin"
86161		{ $as_echo "$as_me:$LINENO: result: not" >&5
86162$as_echo "not" >&6; }
86163	fi
86164
86165
86166	{ $as_echo "$as_me:$LINENO: checking how to build auth_script" >&5
86167$as_echo_n "checking how to build auth_script... " >&6; }
86168	if test "$MODULE_auth_script"; then
86169		DEST=$MODULE_auth_script
86170	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_script"; then
86171		DEST=$MODULE_auth
86172	else
86173		DEST=$MODULE_DEFAULT_auth_script
86174	fi
86175
86176	if test x"$DEST" = xSHARED; then
86177
86178cat >>confdefs.h <<\_ACEOF
86179#define auth_script_init init_samba_module
86180_ACEOF
86181
86182		AUTH_MODULES="$AUTH_MODULES "bin/script.$SHLIBEXT""
86183		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86184$as_echo "shared" >&6; }
86185
86186		string_shared_modules="$string_shared_modules auth_script"
86187	elif test x"$DEST" = xSTATIC; then
86188		init_static_modules_auth="$init_static_modules_auth  auth_script_init();"
86189 		decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_script_init(void);"
86190		string_static_modules="$string_static_modules auth_script"
86191		AUTH_STATIC="$AUTH_STATIC \$(AUTH_SCRIPT_OBJ)"
86192
86193
86194		{ $as_echo "$as_me:$LINENO: result: static" >&5
86195$as_echo "static" >&6; }
86196	else
86197	    string_ignored_modules="$string_ignored_modules auth_script"
86198		{ $as_echo "$as_me:$LINENO: result: not" >&5
86199$as_echo "not" >&6; }
86200	fi
86201
86202
86203	{ $as_echo "$as_me:$LINENO: checking how to build auth_netlogond" >&5
86204$as_echo_n "checking how to build auth_netlogond... " >&6; }
86205	if test "$MODULE_auth_netlogond"; then
86206		DEST=$MODULE_auth_netlogond
86207	elif test "$MODULE_auth" -a "$MODULE_DEFAULT_auth_netlogond"; then
86208		DEST=$MODULE_auth
86209	else
86210		DEST=$MODULE_DEFAULT_auth_netlogond
86211	fi
86212
86213	if test x"$DEST" = xSHARED; then
86214
86215cat >>confdefs.h <<\_ACEOF
86216#define auth_netlogond_init init_samba_module
86217_ACEOF
86218
86219		AUTH_MODULES="$AUTH_MODULES "bin/netlogond.$SHLIBEXT""
86220		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86221$as_echo "shared" >&6; }
86222
86223		string_shared_modules="$string_shared_modules auth_netlogond"
86224	elif test x"$DEST" = xSTATIC; then
86225		init_static_modules_auth="$init_static_modules_auth  auth_netlogond_init();"
86226 		decl_static_modules_auth="$decl_static_modules_auth extern NTSTATUS auth_netlogond_init(void);"
86227		string_static_modules="$string_static_modules auth_netlogond"
86228		AUTH_STATIC="$AUTH_STATIC \$(AUTH_NETLOGOND_OBJ)"
86229
86230
86231		{ $as_echo "$as_me:$LINENO: result: static" >&5
86232$as_echo "static" >&6; }
86233	else
86234	    string_ignored_modules="$string_ignored_modules auth_netlogond"
86235		{ $as_echo "$as_me:$LINENO: result: not" >&5
86236$as_echo "not" >&6; }
86237	fi
86238
86239
86240
86241
86242
86243cat >>confdefs.h <<_ACEOF
86244#define static_init_auth {$init_static_modules_auth}
86245_ACEOF
86246
86247
86248cat >>confdefs.h <<_ACEOF
86249#define static_decl_auth $decl_static_modules_auth
86250_ACEOF
86251
86252    	rm -f auth/auth.o
86253
86254
86255
86256	{ $as_echo "$as_me:$LINENO: checking how to build vfs_default" >&5
86257$as_echo_n "checking how to build vfs_default... " >&6; }
86258	if test "$MODULE_vfs_default"; then
86259		DEST=$MODULE_vfs_default
86260	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_default"; then
86261		DEST=$MODULE_vfs
86262	else
86263		DEST=$MODULE_DEFAULT_vfs_default
86264	fi
86265
86266	if test x"$DEST" = xSHARED; then
86267
86268cat >>confdefs.h <<\_ACEOF
86269#define vfs_default_init init_samba_module
86270_ACEOF
86271
86272		VFS_MODULES="$VFS_MODULES "bin/default.$SHLIBEXT""
86273		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86274$as_echo "shared" >&6; }
86275
86276		string_shared_modules="$string_shared_modules vfs_default"
86277	elif test x"$DEST" = xSTATIC; then
86278		init_static_modules_vfs="$init_static_modules_vfs  vfs_default_init();"
86279 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_default_init(void);"
86280		string_static_modules="$string_static_modules vfs_default"
86281		VFS_STATIC="$VFS_STATIC \$(VFS_DEFAULT_OBJ)"
86282
86283
86284		{ $as_echo "$as_me:$LINENO: result: static" >&5
86285$as_echo "static" >&6; }
86286	else
86287	    string_ignored_modules="$string_ignored_modules vfs_default"
86288		{ $as_echo "$as_me:$LINENO: result: not" >&5
86289$as_echo "not" >&6; }
86290	fi
86291
86292
86293	{ $as_echo "$as_me:$LINENO: checking how to build vfs_recycle" >&5
86294$as_echo_n "checking how to build vfs_recycle... " >&6; }
86295	if test "$MODULE_vfs_recycle"; then
86296		DEST=$MODULE_vfs_recycle
86297	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_recycle"; then
86298		DEST=$MODULE_vfs
86299	else
86300		DEST=$MODULE_DEFAULT_vfs_recycle
86301	fi
86302
86303	if test x"$DEST" = xSHARED; then
86304
86305cat >>confdefs.h <<\_ACEOF
86306#define vfs_recycle_init init_samba_module
86307_ACEOF
86308
86309		VFS_MODULES="$VFS_MODULES "bin/recycle.$SHLIBEXT""
86310		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86311$as_echo "shared" >&6; }
86312
86313		string_shared_modules="$string_shared_modules vfs_recycle"
86314	elif test x"$DEST" = xSTATIC; then
86315		init_static_modules_vfs="$init_static_modules_vfs  vfs_recycle_init();"
86316 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_recycle_init(void);"
86317		string_static_modules="$string_static_modules vfs_recycle"
86318		VFS_STATIC="$VFS_STATIC \$(VFS_RECYCLE_OBJ)"
86319
86320
86321		{ $as_echo "$as_me:$LINENO: result: static" >&5
86322$as_echo "static" >&6; }
86323	else
86324	    string_ignored_modules="$string_ignored_modules vfs_recycle"
86325		{ $as_echo "$as_me:$LINENO: result: not" >&5
86326$as_echo "not" >&6; }
86327	fi
86328
86329
86330	{ $as_echo "$as_me:$LINENO: checking how to build vfs_audit" >&5
86331$as_echo_n "checking how to build vfs_audit... " >&6; }
86332	if test "$MODULE_vfs_audit"; then
86333		DEST=$MODULE_vfs_audit
86334	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_audit"; then
86335		DEST=$MODULE_vfs
86336	else
86337		DEST=$MODULE_DEFAULT_vfs_audit
86338	fi
86339
86340	if test x"$DEST" = xSHARED; then
86341
86342cat >>confdefs.h <<\_ACEOF
86343#define vfs_audit_init init_samba_module
86344_ACEOF
86345
86346		VFS_MODULES="$VFS_MODULES "bin/audit.$SHLIBEXT""
86347		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86348$as_echo "shared" >&6; }
86349
86350		string_shared_modules="$string_shared_modules vfs_audit"
86351	elif test x"$DEST" = xSTATIC; then
86352		init_static_modules_vfs="$init_static_modules_vfs  vfs_audit_init();"
86353 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_audit_init(void);"
86354		string_static_modules="$string_static_modules vfs_audit"
86355		VFS_STATIC="$VFS_STATIC \$(VFS_AUDIT_OBJ)"
86356
86357
86358		{ $as_echo "$as_me:$LINENO: result: static" >&5
86359$as_echo "static" >&6; }
86360	else
86361	    string_ignored_modules="$string_ignored_modules vfs_audit"
86362		{ $as_echo "$as_me:$LINENO: result: not" >&5
86363$as_echo "not" >&6; }
86364	fi
86365
86366
86367	{ $as_echo "$as_me:$LINENO: checking how to build vfs_extd_audit" >&5
86368$as_echo_n "checking how to build vfs_extd_audit... " >&6; }
86369	if test "$MODULE_vfs_extd_audit"; then
86370		DEST=$MODULE_vfs_extd_audit
86371	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_extd_audit"; then
86372		DEST=$MODULE_vfs
86373	else
86374		DEST=$MODULE_DEFAULT_vfs_extd_audit
86375	fi
86376
86377	if test x"$DEST" = xSHARED; then
86378
86379cat >>confdefs.h <<\_ACEOF
86380#define vfs_extd_audit_init init_samba_module
86381_ACEOF
86382
86383		VFS_MODULES="$VFS_MODULES "bin/extd_audit.$SHLIBEXT""
86384		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86385$as_echo "shared" >&6; }
86386
86387		string_shared_modules="$string_shared_modules vfs_extd_audit"
86388	elif test x"$DEST" = xSTATIC; then
86389		init_static_modules_vfs="$init_static_modules_vfs  vfs_extd_audit_init();"
86390 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_extd_audit_init(void);"
86391		string_static_modules="$string_static_modules vfs_extd_audit"
86392		VFS_STATIC="$VFS_STATIC \$(VFS_EXTD_AUDIT_OBJ)"
86393
86394
86395		{ $as_echo "$as_me:$LINENO: result: static" >&5
86396$as_echo "static" >&6; }
86397	else
86398	    string_ignored_modules="$string_ignored_modules vfs_extd_audit"
86399		{ $as_echo "$as_me:$LINENO: result: not" >&5
86400$as_echo "not" >&6; }
86401	fi
86402
86403
86404	{ $as_echo "$as_me:$LINENO: checking how to build vfs_full_audit" >&5
86405$as_echo_n "checking how to build vfs_full_audit... " >&6; }
86406	if test "$MODULE_vfs_full_audit"; then
86407		DEST=$MODULE_vfs_full_audit
86408	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_full_audit"; then
86409		DEST=$MODULE_vfs
86410	else
86411		DEST=$MODULE_DEFAULT_vfs_full_audit
86412	fi
86413
86414	if test x"$DEST" = xSHARED; then
86415
86416cat >>confdefs.h <<\_ACEOF
86417#define vfs_full_audit_init init_samba_module
86418_ACEOF
86419
86420		VFS_MODULES="$VFS_MODULES "bin/full_audit.$SHLIBEXT""
86421		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86422$as_echo "shared" >&6; }
86423
86424		string_shared_modules="$string_shared_modules vfs_full_audit"
86425	elif test x"$DEST" = xSTATIC; then
86426		init_static_modules_vfs="$init_static_modules_vfs  vfs_full_audit_init();"
86427 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_full_audit_init(void);"
86428		string_static_modules="$string_static_modules vfs_full_audit"
86429		VFS_STATIC="$VFS_STATIC \$(VFS_FULL_AUDIT_OBJ)"
86430
86431
86432		{ $as_echo "$as_me:$LINENO: result: static" >&5
86433$as_echo "static" >&6; }
86434	else
86435	    string_ignored_modules="$string_ignored_modules vfs_full_audit"
86436		{ $as_echo "$as_me:$LINENO: result: not" >&5
86437$as_echo "not" >&6; }
86438	fi
86439
86440
86441	{ $as_echo "$as_me:$LINENO: checking how to build vfs_netatalk" >&5
86442$as_echo_n "checking how to build vfs_netatalk... " >&6; }
86443	if test "$MODULE_vfs_netatalk"; then
86444		DEST=$MODULE_vfs_netatalk
86445	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_netatalk"; then
86446		DEST=$MODULE_vfs
86447	else
86448		DEST=$MODULE_DEFAULT_vfs_netatalk
86449	fi
86450
86451	if test x"$DEST" = xSHARED; then
86452
86453cat >>confdefs.h <<\_ACEOF
86454#define vfs_netatalk_init init_samba_module
86455_ACEOF
86456
86457		VFS_MODULES="$VFS_MODULES "bin/netatalk.$SHLIBEXT""
86458		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86459$as_echo "shared" >&6; }
86460
86461		string_shared_modules="$string_shared_modules vfs_netatalk"
86462	elif test x"$DEST" = xSTATIC; then
86463		init_static_modules_vfs="$init_static_modules_vfs  vfs_netatalk_init();"
86464 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_netatalk_init(void);"
86465		string_static_modules="$string_static_modules vfs_netatalk"
86466		VFS_STATIC="$VFS_STATIC \$(VFS_NETATALK_OBJ)"
86467
86468
86469		{ $as_echo "$as_me:$LINENO: result: static" >&5
86470$as_echo "static" >&6; }
86471	else
86472	    string_ignored_modules="$string_ignored_modules vfs_netatalk"
86473		{ $as_echo "$as_me:$LINENO: result: not" >&5
86474$as_echo "not" >&6; }
86475	fi
86476
86477
86478	{ $as_echo "$as_me:$LINENO: checking how to build vfs_fake_perms" >&5
86479$as_echo_n "checking how to build vfs_fake_perms... " >&6; }
86480	if test "$MODULE_vfs_fake_perms"; then
86481		DEST=$MODULE_vfs_fake_perms
86482	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_fake_perms"; then
86483		DEST=$MODULE_vfs
86484	else
86485		DEST=$MODULE_DEFAULT_vfs_fake_perms
86486	fi
86487
86488	if test x"$DEST" = xSHARED; then
86489
86490cat >>confdefs.h <<\_ACEOF
86491#define vfs_fake_perms_init init_samba_module
86492_ACEOF
86493
86494		VFS_MODULES="$VFS_MODULES "bin/fake_perms.$SHLIBEXT""
86495		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86496$as_echo "shared" >&6; }
86497
86498		string_shared_modules="$string_shared_modules vfs_fake_perms"
86499	elif test x"$DEST" = xSTATIC; then
86500		init_static_modules_vfs="$init_static_modules_vfs  vfs_fake_perms_init();"
86501 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_fake_perms_init(void);"
86502		string_static_modules="$string_static_modules vfs_fake_perms"
86503		VFS_STATIC="$VFS_STATIC \$(VFS_FAKE_PERMS_OBJ)"
86504
86505
86506		{ $as_echo "$as_me:$LINENO: result: static" >&5
86507$as_echo "static" >&6; }
86508	else
86509	    string_ignored_modules="$string_ignored_modules vfs_fake_perms"
86510		{ $as_echo "$as_me:$LINENO: result: not" >&5
86511$as_echo "not" >&6; }
86512	fi
86513
86514
86515	{ $as_echo "$as_me:$LINENO: checking how to build vfs_default_quota" >&5
86516$as_echo_n "checking how to build vfs_default_quota... " >&6; }
86517	if test "$MODULE_vfs_default_quota"; then
86518		DEST=$MODULE_vfs_default_quota
86519	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_default_quota"; then
86520		DEST=$MODULE_vfs
86521	else
86522		DEST=$MODULE_DEFAULT_vfs_default_quota
86523	fi
86524
86525	if test x"$DEST" = xSHARED; then
86526
86527cat >>confdefs.h <<\_ACEOF
86528#define vfs_default_quota_init init_samba_module
86529_ACEOF
86530
86531		VFS_MODULES="$VFS_MODULES "bin/default_quota.$SHLIBEXT""
86532		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86533$as_echo "shared" >&6; }
86534
86535		string_shared_modules="$string_shared_modules vfs_default_quota"
86536	elif test x"$DEST" = xSTATIC; then
86537		init_static_modules_vfs="$init_static_modules_vfs  vfs_default_quota_init();"
86538 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_default_quota_init(void);"
86539		string_static_modules="$string_static_modules vfs_default_quota"
86540		VFS_STATIC="$VFS_STATIC \$(VFS_DEFAULT_QUOTA_OBJ)"
86541
86542
86543		{ $as_echo "$as_me:$LINENO: result: static" >&5
86544$as_echo "static" >&6; }
86545	else
86546	    string_ignored_modules="$string_ignored_modules vfs_default_quota"
86547		{ $as_echo "$as_me:$LINENO: result: not" >&5
86548$as_echo "not" >&6; }
86549	fi
86550
86551
86552	{ $as_echo "$as_me:$LINENO: checking how to build vfs_readonly" >&5
86553$as_echo_n "checking how to build vfs_readonly... " >&6; }
86554	if test "$MODULE_vfs_readonly"; then
86555		DEST=$MODULE_vfs_readonly
86556	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_readonly"; then
86557		DEST=$MODULE_vfs
86558	else
86559		DEST=$MODULE_DEFAULT_vfs_readonly
86560	fi
86561
86562	if test x"$DEST" = xSHARED; then
86563
86564cat >>confdefs.h <<\_ACEOF
86565#define vfs_readonly_init init_samba_module
86566_ACEOF
86567
86568		VFS_MODULES="$VFS_MODULES "bin/readonly.$SHLIBEXT""
86569		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86570$as_echo "shared" >&6; }
86571
86572		string_shared_modules="$string_shared_modules vfs_readonly"
86573	elif test x"$DEST" = xSTATIC; then
86574		init_static_modules_vfs="$init_static_modules_vfs  vfs_readonly_init();"
86575 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_readonly_init(void);"
86576		string_static_modules="$string_static_modules vfs_readonly"
86577		VFS_STATIC="$VFS_STATIC \$(VFS_READONLY_OBJ)"
86578
86579
86580		{ $as_echo "$as_me:$LINENO: result: static" >&5
86581$as_echo "static" >&6; }
86582	else
86583	    string_ignored_modules="$string_ignored_modules vfs_readonly"
86584		{ $as_echo "$as_me:$LINENO: result: not" >&5
86585$as_echo "not" >&6; }
86586	fi
86587
86588
86589	{ $as_echo "$as_me:$LINENO: checking how to build vfs_cap" >&5
86590$as_echo_n "checking how to build vfs_cap... " >&6; }
86591	if test "$MODULE_vfs_cap"; then
86592		DEST=$MODULE_vfs_cap
86593	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_cap"; then
86594		DEST=$MODULE_vfs
86595	else
86596		DEST=$MODULE_DEFAULT_vfs_cap
86597	fi
86598
86599	if test x"$DEST" = xSHARED; then
86600
86601cat >>confdefs.h <<\_ACEOF
86602#define vfs_cap_init init_samba_module
86603_ACEOF
86604
86605		VFS_MODULES="$VFS_MODULES "bin/cap.$SHLIBEXT""
86606		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86607$as_echo "shared" >&6; }
86608
86609		string_shared_modules="$string_shared_modules vfs_cap"
86610	elif test x"$DEST" = xSTATIC; then
86611		init_static_modules_vfs="$init_static_modules_vfs  vfs_cap_init();"
86612 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_cap_init(void);"
86613		string_static_modules="$string_static_modules vfs_cap"
86614		VFS_STATIC="$VFS_STATIC \$(VFS_CAP_OBJ)"
86615
86616
86617		{ $as_echo "$as_me:$LINENO: result: static" >&5
86618$as_echo "static" >&6; }
86619	else
86620	    string_ignored_modules="$string_ignored_modules vfs_cap"
86621		{ $as_echo "$as_me:$LINENO: result: not" >&5
86622$as_echo "not" >&6; }
86623	fi
86624
86625
86626	{ $as_echo "$as_me:$LINENO: checking how to build vfs_expand_msdfs" >&5
86627$as_echo_n "checking how to build vfs_expand_msdfs... " >&6; }
86628	if test "$MODULE_vfs_expand_msdfs"; then
86629		DEST=$MODULE_vfs_expand_msdfs
86630	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_expand_msdfs"; then
86631		DEST=$MODULE_vfs
86632	else
86633		DEST=$MODULE_DEFAULT_vfs_expand_msdfs
86634	fi
86635
86636	if test x"$DEST" = xSHARED; then
86637
86638cat >>confdefs.h <<\_ACEOF
86639#define vfs_expand_msdfs_init init_samba_module
86640_ACEOF
86641
86642		VFS_MODULES="$VFS_MODULES "bin/expand_msdfs.$SHLIBEXT""
86643		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86644$as_echo "shared" >&6; }
86645
86646		string_shared_modules="$string_shared_modules vfs_expand_msdfs"
86647	elif test x"$DEST" = xSTATIC; then
86648		init_static_modules_vfs="$init_static_modules_vfs  vfs_expand_msdfs_init();"
86649 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_expand_msdfs_init(void);"
86650		string_static_modules="$string_static_modules vfs_expand_msdfs"
86651		VFS_STATIC="$VFS_STATIC \$(VFS_EXPAND_MSDFS_OBJ)"
86652
86653
86654		{ $as_echo "$as_me:$LINENO: result: static" >&5
86655$as_echo "static" >&6; }
86656	else
86657	    string_ignored_modules="$string_ignored_modules vfs_expand_msdfs"
86658		{ $as_echo "$as_me:$LINENO: result: not" >&5
86659$as_echo "not" >&6; }
86660	fi
86661
86662
86663	{ $as_echo "$as_me:$LINENO: checking how to build vfs_shadow_copy" >&5
86664$as_echo_n "checking how to build vfs_shadow_copy... " >&6; }
86665	if test "$MODULE_vfs_shadow_copy"; then
86666		DEST=$MODULE_vfs_shadow_copy
86667	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_shadow_copy"; then
86668		DEST=$MODULE_vfs
86669	else
86670		DEST=$MODULE_DEFAULT_vfs_shadow_copy
86671	fi
86672
86673	if test x"$DEST" = xSHARED; then
86674
86675cat >>confdefs.h <<\_ACEOF
86676#define vfs_shadow_copy_init init_samba_module
86677_ACEOF
86678
86679		VFS_MODULES="$VFS_MODULES "bin/shadow_copy.$SHLIBEXT""
86680		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86681$as_echo "shared" >&6; }
86682
86683		string_shared_modules="$string_shared_modules vfs_shadow_copy"
86684	elif test x"$DEST" = xSTATIC; then
86685		init_static_modules_vfs="$init_static_modules_vfs  vfs_shadow_copy_init();"
86686 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_shadow_copy_init(void);"
86687		string_static_modules="$string_static_modules vfs_shadow_copy"
86688		VFS_STATIC="$VFS_STATIC \$(VFS_SHADOW_COPY_OBJ)"
86689
86690
86691		{ $as_echo "$as_me:$LINENO: result: static" >&5
86692$as_echo "static" >&6; }
86693	else
86694	    string_ignored_modules="$string_ignored_modules vfs_shadow_copy"
86695		{ $as_echo "$as_me:$LINENO: result: not" >&5
86696$as_echo "not" >&6; }
86697	fi
86698
86699
86700	{ $as_echo "$as_me:$LINENO: checking how to build vfs_shadow_copy2" >&5
86701$as_echo_n "checking how to build vfs_shadow_copy2... " >&6; }
86702	if test "$MODULE_vfs_shadow_copy2"; then
86703		DEST=$MODULE_vfs_shadow_copy2
86704	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_shadow_copy2"; then
86705		DEST=$MODULE_vfs
86706	else
86707		DEST=$MODULE_DEFAULT_vfs_shadow_copy2
86708	fi
86709
86710	if test x"$DEST" = xSHARED; then
86711
86712cat >>confdefs.h <<\_ACEOF
86713#define vfs_shadow_copy2_init init_samba_module
86714_ACEOF
86715
86716		VFS_MODULES="$VFS_MODULES "bin/shadow_copy2.$SHLIBEXT""
86717		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86718$as_echo "shared" >&6; }
86719
86720		string_shared_modules="$string_shared_modules vfs_shadow_copy2"
86721	elif test x"$DEST" = xSTATIC; then
86722		init_static_modules_vfs="$init_static_modules_vfs  vfs_shadow_copy2_init();"
86723 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_shadow_copy2_init(void);"
86724		string_static_modules="$string_static_modules vfs_shadow_copy2"
86725		VFS_STATIC="$VFS_STATIC \$(VFS_SHADOW_COPY2_OBJ)"
86726
86727
86728		{ $as_echo "$as_me:$LINENO: result: static" >&5
86729$as_echo "static" >&6; }
86730	else
86731	    string_ignored_modules="$string_ignored_modules vfs_shadow_copy2"
86732		{ $as_echo "$as_me:$LINENO: result: not" >&5
86733$as_echo "not" >&6; }
86734	fi
86735
86736
86737	{ $as_echo "$as_me:$LINENO: checking how to build vfs_afsacl" >&5
86738$as_echo_n "checking how to build vfs_afsacl... " >&6; }
86739	if test "$MODULE_vfs_afsacl"; then
86740		DEST=$MODULE_vfs_afsacl
86741	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_afsacl"; then
86742		DEST=$MODULE_vfs
86743	else
86744		DEST=$MODULE_DEFAULT_vfs_afsacl
86745	fi
86746
86747	if test x"$DEST" = xSHARED; then
86748
86749cat >>confdefs.h <<\_ACEOF
86750#define vfs_afsacl_init init_samba_module
86751_ACEOF
86752
86753		VFS_MODULES="$VFS_MODULES "bin/afsacl.$SHLIBEXT""
86754		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86755$as_echo "shared" >&6; }
86756
86757		string_shared_modules="$string_shared_modules vfs_afsacl"
86758	elif test x"$DEST" = xSTATIC; then
86759		init_static_modules_vfs="$init_static_modules_vfs  vfs_afsacl_init();"
86760 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_afsacl_init(void);"
86761		string_static_modules="$string_static_modules vfs_afsacl"
86762		VFS_STATIC="$VFS_STATIC \$(VFS_AFSACL_OBJ)"
86763
86764
86765		{ $as_echo "$as_me:$LINENO: result: static" >&5
86766$as_echo "static" >&6; }
86767	else
86768	    string_ignored_modules="$string_ignored_modules vfs_afsacl"
86769		{ $as_echo "$as_me:$LINENO: result: not" >&5
86770$as_echo "not" >&6; }
86771	fi
86772
86773
86774	{ $as_echo "$as_me:$LINENO: checking how to build vfs_xattr_tdb" >&5
86775$as_echo_n "checking how to build vfs_xattr_tdb... " >&6; }
86776	if test "$MODULE_vfs_xattr_tdb"; then
86777		DEST=$MODULE_vfs_xattr_tdb
86778	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_xattr_tdb"; then
86779		DEST=$MODULE_vfs
86780	else
86781		DEST=$MODULE_DEFAULT_vfs_xattr_tdb
86782	fi
86783
86784	if test x"$DEST" = xSHARED; then
86785
86786cat >>confdefs.h <<\_ACEOF
86787#define vfs_xattr_tdb_init init_samba_module
86788_ACEOF
86789
86790		VFS_MODULES="$VFS_MODULES "bin/xattr_tdb.$SHLIBEXT""
86791		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86792$as_echo "shared" >&6; }
86793
86794		string_shared_modules="$string_shared_modules vfs_xattr_tdb"
86795	elif test x"$DEST" = xSTATIC; then
86796		init_static_modules_vfs="$init_static_modules_vfs  vfs_xattr_tdb_init();"
86797 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_xattr_tdb_init(void);"
86798		string_static_modules="$string_static_modules vfs_xattr_tdb"
86799		VFS_STATIC="$VFS_STATIC \$(VFS_XATTR_TDB_OBJ)"
86800
86801
86802		{ $as_echo "$as_me:$LINENO: result: static" >&5
86803$as_echo "static" >&6; }
86804	else
86805	    string_ignored_modules="$string_ignored_modules vfs_xattr_tdb"
86806		{ $as_echo "$as_me:$LINENO: result: not" >&5
86807$as_echo "not" >&6; }
86808	fi
86809
86810
86811	{ $as_echo "$as_me:$LINENO: checking how to build vfs_posixacl" >&5
86812$as_echo_n "checking how to build vfs_posixacl... " >&6; }
86813	if test "$MODULE_vfs_posixacl"; then
86814		DEST=$MODULE_vfs_posixacl
86815	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_posixacl"; then
86816		DEST=$MODULE_vfs
86817	else
86818		DEST=$MODULE_DEFAULT_vfs_posixacl
86819	fi
86820
86821	if test x"$DEST" = xSHARED; then
86822
86823cat >>confdefs.h <<\_ACEOF
86824#define vfs_posixacl_init init_samba_module
86825_ACEOF
86826
86827		VFS_MODULES="$VFS_MODULES "bin/posixacl.$SHLIBEXT""
86828		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86829$as_echo "shared" >&6; }
86830
86831		string_shared_modules="$string_shared_modules vfs_posixacl"
86832	elif test x"$DEST" = xSTATIC; then
86833		init_static_modules_vfs="$init_static_modules_vfs  vfs_posixacl_init();"
86834 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_posixacl_init(void);"
86835		string_static_modules="$string_static_modules vfs_posixacl"
86836		VFS_STATIC="$VFS_STATIC \$(VFS_POSIXACL_OBJ)"
86837
86838
86839		{ $as_echo "$as_me:$LINENO: result: static" >&5
86840$as_echo "static" >&6; }
86841	else
86842	    string_ignored_modules="$string_ignored_modules vfs_posixacl"
86843		{ $as_echo "$as_me:$LINENO: result: not" >&5
86844$as_echo "not" >&6; }
86845	fi
86846
86847
86848	{ $as_echo "$as_me:$LINENO: checking how to build vfs_aixacl" >&5
86849$as_echo_n "checking how to build vfs_aixacl... " >&6; }
86850	if test "$MODULE_vfs_aixacl"; then
86851		DEST=$MODULE_vfs_aixacl
86852	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_aixacl"; then
86853		DEST=$MODULE_vfs
86854	else
86855		DEST=$MODULE_DEFAULT_vfs_aixacl
86856	fi
86857
86858	if test x"$DEST" = xSHARED; then
86859
86860cat >>confdefs.h <<\_ACEOF
86861#define vfs_aixacl_init init_samba_module
86862_ACEOF
86863
86864		VFS_MODULES="$VFS_MODULES "bin/aixacl.$SHLIBEXT""
86865		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86866$as_echo "shared" >&6; }
86867
86868		string_shared_modules="$string_shared_modules vfs_aixacl"
86869	elif test x"$DEST" = xSTATIC; then
86870		init_static_modules_vfs="$init_static_modules_vfs  vfs_aixacl_init();"
86871 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_aixacl_init(void);"
86872		string_static_modules="$string_static_modules vfs_aixacl"
86873		VFS_STATIC="$VFS_STATIC \$(VFS_AIXACL_OBJ)"
86874
86875
86876		{ $as_echo "$as_me:$LINENO: result: static" >&5
86877$as_echo "static" >&6; }
86878	else
86879	    string_ignored_modules="$string_ignored_modules vfs_aixacl"
86880		{ $as_echo "$as_me:$LINENO: result: not" >&5
86881$as_echo "not" >&6; }
86882	fi
86883
86884
86885	{ $as_echo "$as_me:$LINENO: checking how to build vfs_aixacl2" >&5
86886$as_echo_n "checking how to build vfs_aixacl2... " >&6; }
86887	if test "$MODULE_vfs_aixacl2"; then
86888		DEST=$MODULE_vfs_aixacl2
86889	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_aixacl2"; then
86890		DEST=$MODULE_vfs
86891	else
86892		DEST=$MODULE_DEFAULT_vfs_aixacl2
86893	fi
86894
86895	if test x"$DEST" = xSHARED; then
86896
86897cat >>confdefs.h <<\_ACEOF
86898#define vfs_aixacl2_init init_samba_module
86899_ACEOF
86900
86901		VFS_MODULES="$VFS_MODULES "bin/aixacl2.$SHLIBEXT""
86902		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86903$as_echo "shared" >&6; }
86904
86905		string_shared_modules="$string_shared_modules vfs_aixacl2"
86906	elif test x"$DEST" = xSTATIC; then
86907		init_static_modules_vfs="$init_static_modules_vfs  vfs_aixacl2_init();"
86908 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_aixacl2_init(void);"
86909		string_static_modules="$string_static_modules vfs_aixacl2"
86910		VFS_STATIC="$VFS_STATIC \$(VFS_AIXACL2_OBJ)"
86911
86912
86913		{ $as_echo "$as_me:$LINENO: result: static" >&5
86914$as_echo "static" >&6; }
86915	else
86916	    string_ignored_modules="$string_ignored_modules vfs_aixacl2"
86917		{ $as_echo "$as_me:$LINENO: result: not" >&5
86918$as_echo "not" >&6; }
86919	fi
86920
86921
86922	{ $as_echo "$as_me:$LINENO: checking how to build vfs_solarisacl" >&5
86923$as_echo_n "checking how to build vfs_solarisacl... " >&6; }
86924	if test "$MODULE_vfs_solarisacl"; then
86925		DEST=$MODULE_vfs_solarisacl
86926	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_solarisacl"; then
86927		DEST=$MODULE_vfs
86928	else
86929		DEST=$MODULE_DEFAULT_vfs_solarisacl
86930	fi
86931
86932	if test x"$DEST" = xSHARED; then
86933
86934cat >>confdefs.h <<\_ACEOF
86935#define vfs_solarisacl_init init_samba_module
86936_ACEOF
86937
86938		VFS_MODULES="$VFS_MODULES "bin/solarisacl.$SHLIBEXT""
86939		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86940$as_echo "shared" >&6; }
86941
86942		string_shared_modules="$string_shared_modules vfs_solarisacl"
86943	elif test x"$DEST" = xSTATIC; then
86944		init_static_modules_vfs="$init_static_modules_vfs  vfs_solarisacl_init();"
86945 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_solarisacl_init(void);"
86946		string_static_modules="$string_static_modules vfs_solarisacl"
86947		VFS_STATIC="$VFS_STATIC \$(VFS_SOLARISACL_OBJ)"
86948
86949
86950		{ $as_echo "$as_me:$LINENO: result: static" >&5
86951$as_echo "static" >&6; }
86952	else
86953	    string_ignored_modules="$string_ignored_modules vfs_solarisacl"
86954		{ $as_echo "$as_me:$LINENO: result: not" >&5
86955$as_echo "not" >&6; }
86956	fi
86957
86958
86959	{ $as_echo "$as_me:$LINENO: checking how to build vfs_irixacl" >&5
86960$as_echo_n "checking how to build vfs_irixacl... " >&6; }
86961	if test "$MODULE_vfs_irixacl"; then
86962		DEST=$MODULE_vfs_irixacl
86963	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_irixacl"; then
86964		DEST=$MODULE_vfs
86965	else
86966		DEST=$MODULE_DEFAULT_vfs_irixacl
86967	fi
86968
86969	if test x"$DEST" = xSHARED; then
86970
86971cat >>confdefs.h <<\_ACEOF
86972#define vfs_irixacl_init init_samba_module
86973_ACEOF
86974
86975		VFS_MODULES="$VFS_MODULES "bin/irixacl.$SHLIBEXT""
86976		{ $as_echo "$as_me:$LINENO: result: shared" >&5
86977$as_echo "shared" >&6; }
86978
86979		string_shared_modules="$string_shared_modules vfs_irixacl"
86980	elif test x"$DEST" = xSTATIC; then
86981		init_static_modules_vfs="$init_static_modules_vfs  vfs_irixacl_init();"
86982 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_irixacl_init(void);"
86983		string_static_modules="$string_static_modules vfs_irixacl"
86984		VFS_STATIC="$VFS_STATIC \$(VFS_IRIXACL_OBJ)"
86985
86986
86987		{ $as_echo "$as_me:$LINENO: result: static" >&5
86988$as_echo "static" >&6; }
86989	else
86990	    string_ignored_modules="$string_ignored_modules vfs_irixacl"
86991		{ $as_echo "$as_me:$LINENO: result: not" >&5
86992$as_echo "not" >&6; }
86993	fi
86994
86995
86996	{ $as_echo "$as_me:$LINENO: checking how to build vfs_hpuxacl" >&5
86997$as_echo_n "checking how to build vfs_hpuxacl... " >&6; }
86998	if test "$MODULE_vfs_hpuxacl"; then
86999		DEST=$MODULE_vfs_hpuxacl
87000	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_hpuxacl"; then
87001		DEST=$MODULE_vfs
87002	else
87003		DEST=$MODULE_DEFAULT_vfs_hpuxacl
87004	fi
87005
87006	if test x"$DEST" = xSHARED; then
87007
87008cat >>confdefs.h <<\_ACEOF
87009#define vfs_hpuxacl_init init_samba_module
87010_ACEOF
87011
87012		VFS_MODULES="$VFS_MODULES "bin/hpuxacl.$SHLIBEXT""
87013		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87014$as_echo "shared" >&6; }
87015
87016		string_shared_modules="$string_shared_modules vfs_hpuxacl"
87017	elif test x"$DEST" = xSTATIC; then
87018		init_static_modules_vfs="$init_static_modules_vfs  vfs_hpuxacl_init();"
87019 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_hpuxacl_init(void);"
87020		string_static_modules="$string_static_modules vfs_hpuxacl"
87021		VFS_STATIC="$VFS_STATIC \$(VFS_HPUXACL_OBJ)"
87022
87023
87024		{ $as_echo "$as_me:$LINENO: result: static" >&5
87025$as_echo "static" >&6; }
87026	else
87027	    string_ignored_modules="$string_ignored_modules vfs_hpuxacl"
87028		{ $as_echo "$as_me:$LINENO: result: not" >&5
87029$as_echo "not" >&6; }
87030	fi
87031
87032
87033	{ $as_echo "$as_me:$LINENO: checking how to build vfs_tru64acl" >&5
87034$as_echo_n "checking how to build vfs_tru64acl... " >&6; }
87035	if test "$MODULE_vfs_tru64acl"; then
87036		DEST=$MODULE_vfs_tru64acl
87037	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_tru64acl"; then
87038		DEST=$MODULE_vfs
87039	else
87040		DEST=$MODULE_DEFAULT_vfs_tru64acl
87041	fi
87042
87043	if test x"$DEST" = xSHARED; then
87044
87045cat >>confdefs.h <<\_ACEOF
87046#define vfs_tru64acl_init init_samba_module
87047_ACEOF
87048
87049		VFS_MODULES="$VFS_MODULES "bin/tru64acl.$SHLIBEXT""
87050		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87051$as_echo "shared" >&6; }
87052
87053		string_shared_modules="$string_shared_modules vfs_tru64acl"
87054	elif test x"$DEST" = xSTATIC; then
87055		init_static_modules_vfs="$init_static_modules_vfs  vfs_tru64acl_init();"
87056 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_tru64acl_init(void);"
87057		string_static_modules="$string_static_modules vfs_tru64acl"
87058		VFS_STATIC="$VFS_STATIC \$(VFS_TRU64ACL_OBJ)"
87059
87060
87061		{ $as_echo "$as_me:$LINENO: result: static" >&5
87062$as_echo "static" >&6; }
87063	else
87064	    string_ignored_modules="$string_ignored_modules vfs_tru64acl"
87065		{ $as_echo "$as_me:$LINENO: result: not" >&5
87066$as_echo "not" >&6; }
87067	fi
87068
87069
87070	{ $as_echo "$as_me:$LINENO: checking how to build vfs_catia" >&5
87071$as_echo_n "checking how to build vfs_catia... " >&6; }
87072	if test "$MODULE_vfs_catia"; then
87073		DEST=$MODULE_vfs_catia
87074	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_catia"; then
87075		DEST=$MODULE_vfs
87076	else
87077		DEST=$MODULE_DEFAULT_vfs_catia
87078	fi
87079
87080	if test x"$DEST" = xSHARED; then
87081
87082cat >>confdefs.h <<\_ACEOF
87083#define vfs_catia_init init_samba_module
87084_ACEOF
87085
87086		VFS_MODULES="$VFS_MODULES "bin/catia.$SHLIBEXT""
87087		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87088$as_echo "shared" >&6; }
87089
87090		string_shared_modules="$string_shared_modules vfs_catia"
87091	elif test x"$DEST" = xSTATIC; then
87092		init_static_modules_vfs="$init_static_modules_vfs  vfs_catia_init();"
87093 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_catia_init(void);"
87094		string_static_modules="$string_static_modules vfs_catia"
87095		VFS_STATIC="$VFS_STATIC \$(VFS_CATIA_OBJ)"
87096
87097
87098		{ $as_echo "$as_me:$LINENO: result: static" >&5
87099$as_echo "static" >&6; }
87100	else
87101	    string_ignored_modules="$string_ignored_modules vfs_catia"
87102		{ $as_echo "$as_me:$LINENO: result: not" >&5
87103$as_echo "not" >&6; }
87104	fi
87105
87106
87107	{ $as_echo "$as_me:$LINENO: checking how to build vfs_streams_xattr" >&5
87108$as_echo_n "checking how to build vfs_streams_xattr... " >&6; }
87109	if test "$MODULE_vfs_streams_xattr"; then
87110		DEST=$MODULE_vfs_streams_xattr
87111	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_streams_xattr"; then
87112		DEST=$MODULE_vfs
87113	else
87114		DEST=$MODULE_DEFAULT_vfs_streams_xattr
87115	fi
87116
87117	if test x"$DEST" = xSHARED; then
87118
87119cat >>confdefs.h <<\_ACEOF
87120#define vfs_streams_xattr_init init_samba_module
87121_ACEOF
87122
87123		VFS_MODULES="$VFS_MODULES "bin/streams_xattr.$SHLIBEXT""
87124		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87125$as_echo "shared" >&6; }
87126
87127		string_shared_modules="$string_shared_modules vfs_streams_xattr"
87128	elif test x"$DEST" = xSTATIC; then
87129		init_static_modules_vfs="$init_static_modules_vfs  vfs_streams_xattr_init();"
87130 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_streams_xattr_init(void);"
87131		string_static_modules="$string_static_modules vfs_streams_xattr"
87132		VFS_STATIC="$VFS_STATIC \$(VFS_STREAMS_XATTR_OBJ)"
87133
87134
87135		{ $as_echo "$as_me:$LINENO: result: static" >&5
87136$as_echo "static" >&6; }
87137	else
87138	    string_ignored_modules="$string_ignored_modules vfs_streams_xattr"
87139		{ $as_echo "$as_me:$LINENO: result: not" >&5
87140$as_echo "not" >&6; }
87141	fi
87142
87143
87144	{ $as_echo "$as_me:$LINENO: checking how to build vfs_streams_depot" >&5
87145$as_echo_n "checking how to build vfs_streams_depot... " >&6; }
87146	if test "$MODULE_vfs_streams_depot"; then
87147		DEST=$MODULE_vfs_streams_depot
87148	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_streams_depot"; then
87149		DEST=$MODULE_vfs
87150	else
87151		DEST=$MODULE_DEFAULT_vfs_streams_depot
87152	fi
87153
87154	if test x"$DEST" = xSHARED; then
87155
87156cat >>confdefs.h <<\_ACEOF
87157#define vfs_streams_depot_init init_samba_module
87158_ACEOF
87159
87160		VFS_MODULES="$VFS_MODULES "bin/streams_depot.$SHLIBEXT""
87161		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87162$as_echo "shared" >&6; }
87163
87164		string_shared_modules="$string_shared_modules vfs_streams_depot"
87165	elif test x"$DEST" = xSTATIC; then
87166		init_static_modules_vfs="$init_static_modules_vfs  vfs_streams_depot_init();"
87167 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_streams_depot_init(void);"
87168		string_static_modules="$string_static_modules vfs_streams_depot"
87169		VFS_STATIC="$VFS_STATIC \$(VFS_STREAMS_DEPOT_OBJ)"
87170
87171
87172		{ $as_echo "$as_me:$LINENO: result: static" >&5
87173$as_echo "static" >&6; }
87174	else
87175	    string_ignored_modules="$string_ignored_modules vfs_streams_depot"
87176		{ $as_echo "$as_me:$LINENO: result: not" >&5
87177$as_echo "not" >&6; }
87178	fi
87179
87180
87181	{ $as_echo "$as_me:$LINENO: checking how to build vfs_cacheprime" >&5
87182$as_echo_n "checking how to build vfs_cacheprime... " >&6; }
87183	if test "$MODULE_vfs_cacheprime"; then
87184		DEST=$MODULE_vfs_cacheprime
87185	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_cacheprime"; then
87186		DEST=$MODULE_vfs
87187	else
87188		DEST=$MODULE_DEFAULT_vfs_cacheprime
87189	fi
87190
87191	if test x"$DEST" = xSHARED; then
87192
87193cat >>confdefs.h <<\_ACEOF
87194#define vfs_cacheprime_init init_samba_module
87195_ACEOF
87196
87197		VFS_MODULES="$VFS_MODULES "bin/cacheprime.$SHLIBEXT""
87198		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87199$as_echo "shared" >&6; }
87200
87201		string_shared_modules="$string_shared_modules vfs_cacheprime"
87202	elif test x"$DEST" = xSTATIC; then
87203		init_static_modules_vfs="$init_static_modules_vfs  vfs_cacheprime_init();"
87204 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_cacheprime_init(void);"
87205		string_static_modules="$string_static_modules vfs_cacheprime"
87206		VFS_STATIC="$VFS_STATIC \$(VFS_CACHEPRIME_OBJ)"
87207
87208
87209		{ $as_echo "$as_me:$LINENO: result: static" >&5
87210$as_echo "static" >&6; }
87211	else
87212	    string_ignored_modules="$string_ignored_modules vfs_cacheprime"
87213		{ $as_echo "$as_me:$LINENO: result: not" >&5
87214$as_echo "not" >&6; }
87215	fi
87216
87217
87218	{ $as_echo "$as_me:$LINENO: checking how to build vfs_prealloc" >&5
87219$as_echo_n "checking how to build vfs_prealloc... " >&6; }
87220	if test "$MODULE_vfs_prealloc"; then
87221		DEST=$MODULE_vfs_prealloc
87222	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_prealloc"; then
87223		DEST=$MODULE_vfs
87224	else
87225		DEST=$MODULE_DEFAULT_vfs_prealloc
87226	fi
87227
87228	if test x"$DEST" = xSHARED; then
87229
87230cat >>confdefs.h <<\_ACEOF
87231#define vfs_prealloc_init init_samba_module
87232_ACEOF
87233
87234		VFS_MODULES="$VFS_MODULES "bin/prealloc.$SHLIBEXT""
87235		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87236$as_echo "shared" >&6; }
87237
87238		string_shared_modules="$string_shared_modules vfs_prealloc"
87239	elif test x"$DEST" = xSTATIC; then
87240		init_static_modules_vfs="$init_static_modules_vfs  vfs_prealloc_init();"
87241 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_prealloc_init(void);"
87242		string_static_modules="$string_static_modules vfs_prealloc"
87243		VFS_STATIC="$VFS_STATIC \$(VFS_PREALLOC_OBJ)"
87244
87245
87246		{ $as_echo "$as_me:$LINENO: result: static" >&5
87247$as_echo "static" >&6; }
87248	else
87249	    string_ignored_modules="$string_ignored_modules vfs_prealloc"
87250		{ $as_echo "$as_me:$LINENO: result: not" >&5
87251$as_echo "not" >&6; }
87252	fi
87253
87254
87255	{ $as_echo "$as_me:$LINENO: checking how to build vfs_commit" >&5
87256$as_echo_n "checking how to build vfs_commit... " >&6; }
87257	if test "$MODULE_vfs_commit"; then
87258		DEST=$MODULE_vfs_commit
87259	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_commit"; then
87260		DEST=$MODULE_vfs
87261	else
87262		DEST=$MODULE_DEFAULT_vfs_commit
87263	fi
87264
87265	if test x"$DEST" = xSHARED; then
87266
87267cat >>confdefs.h <<\_ACEOF
87268#define vfs_commit_init init_samba_module
87269_ACEOF
87270
87271		VFS_MODULES="$VFS_MODULES "bin/commit.$SHLIBEXT""
87272		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87273$as_echo "shared" >&6; }
87274
87275		string_shared_modules="$string_shared_modules vfs_commit"
87276	elif test x"$DEST" = xSTATIC; then
87277		init_static_modules_vfs="$init_static_modules_vfs  vfs_commit_init();"
87278 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_commit_init(void);"
87279		string_static_modules="$string_static_modules vfs_commit"
87280		VFS_STATIC="$VFS_STATIC \$(VFS_COMMIT_OBJ)"
87281
87282
87283		{ $as_echo "$as_me:$LINENO: result: static" >&5
87284$as_echo "static" >&6; }
87285	else
87286	    string_ignored_modules="$string_ignored_modules vfs_commit"
87287		{ $as_echo "$as_me:$LINENO: result: not" >&5
87288$as_echo "not" >&6; }
87289	fi
87290
87291
87292	{ $as_echo "$as_me:$LINENO: checking how to build vfs_gpfs" >&5
87293$as_echo_n "checking how to build vfs_gpfs... " >&6; }
87294	if test "$MODULE_vfs_gpfs"; then
87295		DEST=$MODULE_vfs_gpfs
87296	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_gpfs"; then
87297		DEST=$MODULE_vfs
87298	else
87299		DEST=$MODULE_DEFAULT_vfs_gpfs
87300	fi
87301
87302	if test x"$DEST" = xSHARED; then
87303
87304cat >>confdefs.h <<\_ACEOF
87305#define vfs_gpfs_init init_samba_module
87306_ACEOF
87307
87308		VFS_MODULES="$VFS_MODULES "bin/gpfs.$SHLIBEXT""
87309		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87310$as_echo "shared" >&6; }
87311
87312		string_shared_modules="$string_shared_modules vfs_gpfs"
87313	elif test x"$DEST" = xSTATIC; then
87314		init_static_modules_vfs="$init_static_modules_vfs  vfs_gpfs_init();"
87315 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_gpfs_init(void);"
87316		string_static_modules="$string_static_modules vfs_gpfs"
87317		VFS_STATIC="$VFS_STATIC \$(VFS_GPFS_OBJ)"
87318
87319
87320		{ $as_echo "$as_me:$LINENO: result: static" >&5
87321$as_echo "static" >&6; }
87322	else
87323	    string_ignored_modules="$string_ignored_modules vfs_gpfs"
87324		{ $as_echo "$as_me:$LINENO: result: not" >&5
87325$as_echo "not" >&6; }
87326	fi
87327
87328
87329	{ $as_echo "$as_me:$LINENO: checking how to build vfs_readahead" >&5
87330$as_echo_n "checking how to build vfs_readahead... " >&6; }
87331	if test "$MODULE_vfs_readahead"; then
87332		DEST=$MODULE_vfs_readahead
87333	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_readahead"; then
87334		DEST=$MODULE_vfs
87335	else
87336		DEST=$MODULE_DEFAULT_vfs_readahead
87337	fi
87338
87339	if test x"$DEST" = xSHARED; then
87340
87341cat >>confdefs.h <<\_ACEOF
87342#define vfs_readahead_init init_samba_module
87343_ACEOF
87344
87345		VFS_MODULES="$VFS_MODULES "bin/readahead.$SHLIBEXT""
87346		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87347$as_echo "shared" >&6; }
87348
87349		string_shared_modules="$string_shared_modules vfs_readahead"
87350	elif test x"$DEST" = xSTATIC; then
87351		init_static_modules_vfs="$init_static_modules_vfs  vfs_readahead_init();"
87352 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_readahead_init(void);"
87353		string_static_modules="$string_static_modules vfs_readahead"
87354		VFS_STATIC="$VFS_STATIC \$(VFS_READAHEAD_OBJ)"
87355
87356
87357		{ $as_echo "$as_me:$LINENO: result: static" >&5
87358$as_echo "static" >&6; }
87359	else
87360	    string_ignored_modules="$string_ignored_modules vfs_readahead"
87361		{ $as_echo "$as_me:$LINENO: result: not" >&5
87362$as_echo "not" >&6; }
87363	fi
87364
87365
87366	{ $as_echo "$as_me:$LINENO: checking how to build vfs_tsmsm" >&5
87367$as_echo_n "checking how to build vfs_tsmsm... " >&6; }
87368	if test "$MODULE_vfs_tsmsm"; then
87369		DEST=$MODULE_vfs_tsmsm
87370	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_tsmsm"; then
87371		DEST=$MODULE_vfs
87372	else
87373		DEST=$MODULE_DEFAULT_vfs_tsmsm
87374	fi
87375
87376	if test x"$DEST" = xSHARED; then
87377
87378cat >>confdefs.h <<\_ACEOF
87379#define vfs_tsmsm_init init_samba_module
87380_ACEOF
87381
87382		VFS_MODULES="$VFS_MODULES "bin/tsmsm.$SHLIBEXT""
87383		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87384$as_echo "shared" >&6; }
87385
87386		string_shared_modules="$string_shared_modules vfs_tsmsm"
87387	elif test x"$DEST" = xSTATIC; then
87388		init_static_modules_vfs="$init_static_modules_vfs  vfs_tsmsm_init();"
87389 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_tsmsm_init(void);"
87390		string_static_modules="$string_static_modules vfs_tsmsm"
87391		VFS_STATIC="$VFS_STATIC \$(VFS_TSMSM_OBJ)"
87392
87393
87394		{ $as_echo "$as_me:$LINENO: result: static" >&5
87395$as_echo "static" >&6; }
87396	else
87397	    string_ignored_modules="$string_ignored_modules vfs_tsmsm"
87398		{ $as_echo "$as_me:$LINENO: result: not" >&5
87399$as_echo "not" >&6; }
87400	fi
87401
87402
87403	{ $as_echo "$as_me:$LINENO: checking how to build vfs_fileid" >&5
87404$as_echo_n "checking how to build vfs_fileid... " >&6; }
87405	if test "$MODULE_vfs_fileid"; then
87406		DEST=$MODULE_vfs_fileid
87407	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_fileid"; then
87408		DEST=$MODULE_vfs
87409	else
87410		DEST=$MODULE_DEFAULT_vfs_fileid
87411	fi
87412
87413	if test x"$DEST" = xSHARED; then
87414
87415cat >>confdefs.h <<\_ACEOF
87416#define vfs_fileid_init init_samba_module
87417_ACEOF
87418
87419		VFS_MODULES="$VFS_MODULES "bin/fileid.$SHLIBEXT""
87420		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87421$as_echo "shared" >&6; }
87422
87423		string_shared_modules="$string_shared_modules vfs_fileid"
87424	elif test x"$DEST" = xSTATIC; then
87425		init_static_modules_vfs="$init_static_modules_vfs  vfs_fileid_init();"
87426 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_fileid_init(void);"
87427		string_static_modules="$string_static_modules vfs_fileid"
87428		VFS_STATIC="$VFS_STATIC \$(VFS_FILEID_OBJ)"
87429
87430
87431		{ $as_echo "$as_me:$LINENO: result: static" >&5
87432$as_echo "static" >&6; }
87433	else
87434	    string_ignored_modules="$string_ignored_modules vfs_fileid"
87435		{ $as_echo "$as_me:$LINENO: result: not" >&5
87436$as_echo "not" >&6; }
87437	fi
87438
87439
87440	{ $as_echo "$as_me:$LINENO: checking how to build vfs_aio_fork" >&5
87441$as_echo_n "checking how to build vfs_aio_fork... " >&6; }
87442	if test "$MODULE_vfs_aio_fork"; then
87443		DEST=$MODULE_vfs_aio_fork
87444	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_aio_fork"; then
87445		DEST=$MODULE_vfs
87446	else
87447		DEST=$MODULE_DEFAULT_vfs_aio_fork
87448	fi
87449
87450	if test x"$DEST" = xSHARED; then
87451
87452cat >>confdefs.h <<\_ACEOF
87453#define vfs_aio_fork_init init_samba_module
87454_ACEOF
87455
87456		VFS_MODULES="$VFS_MODULES "bin/aio_fork.$SHLIBEXT""
87457		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87458$as_echo "shared" >&6; }
87459
87460		string_shared_modules="$string_shared_modules vfs_aio_fork"
87461	elif test x"$DEST" = xSTATIC; then
87462		init_static_modules_vfs="$init_static_modules_vfs  vfs_aio_fork_init();"
87463 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_aio_fork_init(void);"
87464		string_static_modules="$string_static_modules vfs_aio_fork"
87465		VFS_STATIC="$VFS_STATIC \$(VFS_AIO_FORK_OBJ)"
87466
87467
87468		{ $as_echo "$as_me:$LINENO: result: static" >&5
87469$as_echo "static" >&6; }
87470	else
87471	    string_ignored_modules="$string_ignored_modules vfs_aio_fork"
87472		{ $as_echo "$as_me:$LINENO: result: not" >&5
87473$as_echo "not" >&6; }
87474	fi
87475
87476
87477	{ $as_echo "$as_me:$LINENO: checking how to build vfs_preopen" >&5
87478$as_echo_n "checking how to build vfs_preopen... " >&6; }
87479	if test "$MODULE_vfs_preopen"; then
87480		DEST=$MODULE_vfs_preopen
87481	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_preopen"; then
87482		DEST=$MODULE_vfs
87483	else
87484		DEST=$MODULE_DEFAULT_vfs_preopen
87485	fi
87486
87487	if test x"$DEST" = xSHARED; then
87488
87489cat >>confdefs.h <<\_ACEOF
87490#define vfs_preopen_init init_samba_module
87491_ACEOF
87492
87493		VFS_MODULES="$VFS_MODULES "bin/preopen.$SHLIBEXT""
87494		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87495$as_echo "shared" >&6; }
87496
87497		string_shared_modules="$string_shared_modules vfs_preopen"
87498	elif test x"$DEST" = xSTATIC; then
87499		init_static_modules_vfs="$init_static_modules_vfs  vfs_preopen_init();"
87500 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_preopen_init(void);"
87501		string_static_modules="$string_static_modules vfs_preopen"
87502		VFS_STATIC="$VFS_STATIC \$(VFS_PREOPEN_OBJ)"
87503
87504
87505		{ $as_echo "$as_me:$LINENO: result: static" >&5
87506$as_echo "static" >&6; }
87507	else
87508	    string_ignored_modules="$string_ignored_modules vfs_preopen"
87509		{ $as_echo "$as_me:$LINENO: result: not" >&5
87510$as_echo "not" >&6; }
87511	fi
87512
87513
87514	{ $as_echo "$as_me:$LINENO: checking how to build vfs_syncops" >&5
87515$as_echo_n "checking how to build vfs_syncops... " >&6; }
87516	if test "$MODULE_vfs_syncops"; then
87517		DEST=$MODULE_vfs_syncops
87518	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_syncops"; then
87519		DEST=$MODULE_vfs
87520	else
87521		DEST=$MODULE_DEFAULT_vfs_syncops
87522	fi
87523
87524	if test x"$DEST" = xSHARED; then
87525
87526cat >>confdefs.h <<\_ACEOF
87527#define vfs_syncops_init init_samba_module
87528_ACEOF
87529
87530		VFS_MODULES="$VFS_MODULES "bin/syncops.$SHLIBEXT""
87531		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87532$as_echo "shared" >&6; }
87533
87534		string_shared_modules="$string_shared_modules vfs_syncops"
87535	elif test x"$DEST" = xSTATIC; then
87536		init_static_modules_vfs="$init_static_modules_vfs  vfs_syncops_init();"
87537 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_syncops_init(void);"
87538		string_static_modules="$string_static_modules vfs_syncops"
87539		VFS_STATIC="$VFS_STATIC \$(VFS_SYNCOPS_OBJ)"
87540
87541
87542		{ $as_echo "$as_me:$LINENO: result: static" >&5
87543$as_echo "static" >&6; }
87544	else
87545	    string_ignored_modules="$string_ignored_modules vfs_syncops"
87546		{ $as_echo "$as_me:$LINENO: result: not" >&5
87547$as_echo "not" >&6; }
87548	fi
87549
87550
87551	{ $as_echo "$as_me:$LINENO: checking how to build vfs_zfsacl" >&5
87552$as_echo_n "checking how to build vfs_zfsacl... " >&6; }
87553	if test "$MODULE_vfs_zfsacl"; then
87554		DEST=$MODULE_vfs_zfsacl
87555	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_zfsacl"; then
87556		DEST=$MODULE_vfs
87557	else
87558		DEST=$MODULE_DEFAULT_vfs_zfsacl
87559	fi
87560
87561	if test x"$DEST" = xSHARED; then
87562
87563cat >>confdefs.h <<\_ACEOF
87564#define vfs_zfsacl_init init_samba_module
87565_ACEOF
87566
87567		VFS_MODULES="$VFS_MODULES "bin/zfsacl.$SHLIBEXT""
87568		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87569$as_echo "shared" >&6; }
87570
87571		string_shared_modules="$string_shared_modules vfs_zfsacl"
87572	elif test x"$DEST" = xSTATIC; then
87573		init_static_modules_vfs="$init_static_modules_vfs  vfs_zfsacl_init();"
87574 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_zfsacl_init(void);"
87575		string_static_modules="$string_static_modules vfs_zfsacl"
87576		VFS_STATIC="$VFS_STATIC \$(VFS_ZFSACL_OBJ)"
87577
87578
87579		{ $as_echo "$as_me:$LINENO: result: static" >&5
87580$as_echo "static" >&6; }
87581	else
87582	    string_ignored_modules="$string_ignored_modules vfs_zfsacl"
87583		{ $as_echo "$as_me:$LINENO: result: not" >&5
87584$as_echo "not" >&6; }
87585	fi
87586
87587
87588	{ $as_echo "$as_me:$LINENO: checking how to build vfs_notify_fam" >&5
87589$as_echo_n "checking how to build vfs_notify_fam... " >&6; }
87590	if test "$MODULE_vfs_notify_fam"; then
87591		DEST=$MODULE_vfs_notify_fam
87592	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_notify_fam"; then
87593		DEST=$MODULE_vfs
87594	else
87595		DEST=$MODULE_DEFAULT_vfs_notify_fam
87596	fi
87597
87598	if test x"$DEST" = xSHARED; then
87599
87600cat >>confdefs.h <<\_ACEOF
87601#define vfs_notify_fam_init init_samba_module
87602_ACEOF
87603
87604		VFS_MODULES="$VFS_MODULES "bin/notify_fam.$SHLIBEXT""
87605		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87606$as_echo "shared" >&6; }
87607
87608		string_shared_modules="$string_shared_modules vfs_notify_fam"
87609	elif test x"$DEST" = xSTATIC; then
87610		init_static_modules_vfs="$init_static_modules_vfs  vfs_notify_fam_init();"
87611 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_notify_fam_init(void);"
87612		string_static_modules="$string_static_modules vfs_notify_fam"
87613		VFS_STATIC="$VFS_STATIC \$(VFS_NOTIFY_FAM_OBJ)"
87614
87615
87616		{ $as_echo "$as_me:$LINENO: result: static" >&5
87617$as_echo "static" >&6; }
87618	else
87619	    string_ignored_modules="$string_ignored_modules vfs_notify_fam"
87620		{ $as_echo "$as_me:$LINENO: result: not" >&5
87621$as_echo "not" >&6; }
87622	fi
87623
87624
87625	{ $as_echo "$as_me:$LINENO: checking how to build vfs_acl_xattr" >&5
87626$as_echo_n "checking how to build vfs_acl_xattr... " >&6; }
87627	if test "$MODULE_vfs_acl_xattr"; then
87628		DEST=$MODULE_vfs_acl_xattr
87629	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_acl_xattr"; then
87630		DEST=$MODULE_vfs
87631	else
87632		DEST=$MODULE_DEFAULT_vfs_acl_xattr
87633	fi
87634
87635	if test x"$DEST" = xSHARED; then
87636
87637cat >>confdefs.h <<\_ACEOF
87638#define vfs_acl_xattr_init init_samba_module
87639_ACEOF
87640
87641		VFS_MODULES="$VFS_MODULES "bin/acl_xattr.$SHLIBEXT""
87642		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87643$as_echo "shared" >&6; }
87644
87645		string_shared_modules="$string_shared_modules vfs_acl_xattr"
87646	elif test x"$DEST" = xSTATIC; then
87647		init_static_modules_vfs="$init_static_modules_vfs  vfs_acl_xattr_init();"
87648 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_acl_xattr_init(void);"
87649		string_static_modules="$string_static_modules vfs_acl_xattr"
87650		VFS_STATIC="$VFS_STATIC \$(VFS_ACL_XATTR_OBJ)"
87651
87652
87653		{ $as_echo "$as_me:$LINENO: result: static" >&5
87654$as_echo "static" >&6; }
87655	else
87656	    string_ignored_modules="$string_ignored_modules vfs_acl_xattr"
87657		{ $as_echo "$as_me:$LINENO: result: not" >&5
87658$as_echo "not" >&6; }
87659	fi
87660
87661
87662	{ $as_echo "$as_me:$LINENO: checking how to build vfs_acl_tdb" >&5
87663$as_echo_n "checking how to build vfs_acl_tdb... " >&6; }
87664	if test "$MODULE_vfs_acl_tdb"; then
87665		DEST=$MODULE_vfs_acl_tdb
87666	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_acl_tdb"; then
87667		DEST=$MODULE_vfs
87668	else
87669		DEST=$MODULE_DEFAULT_vfs_acl_tdb
87670	fi
87671
87672	if test x"$DEST" = xSHARED; then
87673
87674cat >>confdefs.h <<\_ACEOF
87675#define vfs_acl_tdb_init init_samba_module
87676_ACEOF
87677
87678		VFS_MODULES="$VFS_MODULES "bin/acl_tdb.$SHLIBEXT""
87679		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87680$as_echo "shared" >&6; }
87681
87682		string_shared_modules="$string_shared_modules vfs_acl_tdb"
87683	elif test x"$DEST" = xSTATIC; then
87684		init_static_modules_vfs="$init_static_modules_vfs  vfs_acl_tdb_init();"
87685 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_acl_tdb_init(void);"
87686		string_static_modules="$string_static_modules vfs_acl_tdb"
87687		VFS_STATIC="$VFS_STATIC \$(VFS_ACL_TDB_OBJ)"
87688
87689
87690		{ $as_echo "$as_me:$LINENO: result: static" >&5
87691$as_echo "static" >&6; }
87692	else
87693	    string_ignored_modules="$string_ignored_modules vfs_acl_tdb"
87694		{ $as_echo "$as_me:$LINENO: result: not" >&5
87695$as_echo "not" >&6; }
87696	fi
87697
87698
87699	{ $as_echo "$as_me:$LINENO: checking how to build vfs_smb_traffic_analyzer" >&5
87700$as_echo_n "checking how to build vfs_smb_traffic_analyzer... " >&6; }
87701	if test "$MODULE_vfs_smb_traffic_analyzer"; then
87702		DEST=$MODULE_vfs_smb_traffic_analyzer
87703	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_smb_traffic_analyzer"; then
87704		DEST=$MODULE_vfs
87705	else
87706		DEST=$MODULE_DEFAULT_vfs_smb_traffic_analyzer
87707	fi
87708
87709	if test x"$DEST" = xSHARED; then
87710
87711cat >>confdefs.h <<\_ACEOF
87712#define vfs_smb_traffic_analyzer_init init_samba_module
87713_ACEOF
87714
87715		VFS_MODULES="$VFS_MODULES "bin/smb_traffic_analyzer.$SHLIBEXT""
87716		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87717$as_echo "shared" >&6; }
87718
87719		string_shared_modules="$string_shared_modules vfs_smb_traffic_analyzer"
87720	elif test x"$DEST" = xSTATIC; then
87721		init_static_modules_vfs="$init_static_modules_vfs  vfs_smb_traffic_analyzer_init();"
87722 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_smb_traffic_analyzer_init(void);"
87723		string_static_modules="$string_static_modules vfs_smb_traffic_analyzer"
87724		VFS_STATIC="$VFS_STATIC \$(VFS_SMB_TRAFFIC_ANALYZER_OBJ)"
87725
87726
87727		{ $as_echo "$as_me:$LINENO: result: static" >&5
87728$as_echo "static" >&6; }
87729	else
87730	    string_ignored_modules="$string_ignored_modules vfs_smb_traffic_analyzer"
87731		{ $as_echo "$as_me:$LINENO: result: not" >&5
87732$as_echo "not" >&6; }
87733	fi
87734
87735
87736	{ $as_echo "$as_me:$LINENO: checking how to build vfs_onefs" >&5
87737$as_echo_n "checking how to build vfs_onefs... " >&6; }
87738	if test "$MODULE_vfs_onefs"; then
87739		DEST=$MODULE_vfs_onefs
87740	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_onefs"; then
87741		DEST=$MODULE_vfs
87742	else
87743		DEST=$MODULE_DEFAULT_vfs_onefs
87744	fi
87745
87746	if test x"$DEST" = xSHARED; then
87747
87748cat >>confdefs.h <<\_ACEOF
87749#define vfs_onefs_init init_samba_module
87750_ACEOF
87751
87752		VFS_MODULES="$VFS_MODULES "bin/onefs.$SHLIBEXT""
87753		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87754$as_echo "shared" >&6; }
87755
87756		string_shared_modules="$string_shared_modules vfs_onefs"
87757	elif test x"$DEST" = xSTATIC; then
87758		init_static_modules_vfs="$init_static_modules_vfs  vfs_onefs_init();"
87759 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_onefs_init(void);"
87760		string_static_modules="$string_static_modules vfs_onefs"
87761		VFS_STATIC="$VFS_STATIC \$(VFS_ONEFS)"
87762
87763
87764		{ $as_echo "$as_me:$LINENO: result: static" >&5
87765$as_echo "static" >&6; }
87766	else
87767	    string_ignored_modules="$string_ignored_modules vfs_onefs"
87768		{ $as_echo "$as_me:$LINENO: result: not" >&5
87769$as_echo "not" >&6; }
87770	fi
87771
87772
87773	{ $as_echo "$as_me:$LINENO: checking how to build vfs_onefs_shadow_copy" >&5
87774$as_echo_n "checking how to build vfs_onefs_shadow_copy... " >&6; }
87775	if test "$MODULE_vfs_onefs_shadow_copy"; then
87776		DEST=$MODULE_vfs_onefs_shadow_copy
87777	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_onefs_shadow_copy"; then
87778		DEST=$MODULE_vfs
87779	else
87780		DEST=$MODULE_DEFAULT_vfs_onefs_shadow_copy
87781	fi
87782
87783	if test x"$DEST" = xSHARED; then
87784
87785cat >>confdefs.h <<\_ACEOF
87786#define vfs_onefs_shadow_copy_init init_samba_module
87787_ACEOF
87788
87789		VFS_MODULES="$VFS_MODULES "bin/onefs_shadow_copy.$SHLIBEXT""
87790		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87791$as_echo "shared" >&6; }
87792
87793		string_shared_modules="$string_shared_modules vfs_onefs_shadow_copy"
87794	elif test x"$DEST" = xSTATIC; then
87795		init_static_modules_vfs="$init_static_modules_vfs  vfs_onefs_shadow_copy_init();"
87796 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_onefs_shadow_copy_init(void);"
87797		string_static_modules="$string_static_modules vfs_onefs_shadow_copy"
87798		VFS_STATIC="$VFS_STATIC \$(VFS_ONEFS_SHADOW_COPY)"
87799
87800
87801		{ $as_echo "$as_me:$LINENO: result: static" >&5
87802$as_echo "static" >&6; }
87803	else
87804	    string_ignored_modules="$string_ignored_modules vfs_onefs_shadow_copy"
87805		{ $as_echo "$as_me:$LINENO: result: not" >&5
87806$as_echo "not" >&6; }
87807	fi
87808
87809
87810	{ $as_echo "$as_me:$LINENO: checking how to build vfs_dirsort" >&5
87811$as_echo_n "checking how to build vfs_dirsort... " >&6; }
87812	if test "$MODULE_vfs_dirsort"; then
87813		DEST=$MODULE_vfs_dirsort
87814	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_dirsort"; then
87815		DEST=$MODULE_vfs
87816	else
87817		DEST=$MODULE_DEFAULT_vfs_dirsort
87818	fi
87819
87820	if test x"$DEST" = xSHARED; then
87821
87822cat >>confdefs.h <<\_ACEOF
87823#define vfs_dirsort_init init_samba_module
87824_ACEOF
87825
87826		VFS_MODULES="$VFS_MODULES "bin/dirsort.$SHLIBEXT""
87827		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87828$as_echo "shared" >&6; }
87829
87830		string_shared_modules="$string_shared_modules vfs_dirsort"
87831	elif test x"$DEST" = xSTATIC; then
87832		init_static_modules_vfs="$init_static_modules_vfs  vfs_dirsort_init();"
87833 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_dirsort_init(void);"
87834		string_static_modules="$string_static_modules vfs_dirsort"
87835		VFS_STATIC="$VFS_STATIC \$(VFS_DIRSORT_OBJ)"
87836
87837
87838		{ $as_echo "$as_me:$LINENO: result: static" >&5
87839$as_echo "static" >&6; }
87840	else
87841	    string_ignored_modules="$string_ignored_modules vfs_dirsort"
87842		{ $as_echo "$as_me:$LINENO: result: not" >&5
87843$as_echo "not" >&6; }
87844	fi
87845
87846
87847	{ $as_echo "$as_me:$LINENO: checking how to build vfs_scannedonly" >&5
87848$as_echo_n "checking how to build vfs_scannedonly... " >&6; }
87849	if test "$MODULE_vfs_scannedonly"; then
87850		DEST=$MODULE_vfs_scannedonly
87851	elif test "$MODULE_vfs" -a "$MODULE_DEFAULT_vfs_scannedonly"; then
87852		DEST=$MODULE_vfs
87853	else
87854		DEST=$MODULE_DEFAULT_vfs_scannedonly
87855	fi
87856
87857	if test x"$DEST" = xSHARED; then
87858
87859cat >>confdefs.h <<\_ACEOF
87860#define vfs_scannedonly_init init_samba_module
87861_ACEOF
87862
87863		VFS_MODULES="$VFS_MODULES "bin/scannedonly.$SHLIBEXT""
87864		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87865$as_echo "shared" >&6; }
87866
87867		string_shared_modules="$string_shared_modules vfs_scannedonly"
87868	elif test x"$DEST" = xSTATIC; then
87869		init_static_modules_vfs="$init_static_modules_vfs  vfs_scannedonly_init();"
87870 		decl_static_modules_vfs="$decl_static_modules_vfs extern NTSTATUS vfs_scannedonly_init(void);"
87871		string_static_modules="$string_static_modules vfs_scannedonly"
87872		VFS_STATIC="$VFS_STATIC \$(VFS_SCANNEDONLY_OBJ)"
87873
87874
87875		{ $as_echo "$as_me:$LINENO: result: static" >&5
87876$as_echo "static" >&6; }
87877	else
87878	    string_ignored_modules="$string_ignored_modules vfs_scannedonly"
87879		{ $as_echo "$as_me:$LINENO: result: not" >&5
87880$as_echo "not" >&6; }
87881	fi
87882
87883
87884
87885
87886
87887
87888cat >>confdefs.h <<_ACEOF
87889#define static_init_vfs {$init_static_modules_vfs}
87890_ACEOF
87891
87892
87893cat >>confdefs.h <<_ACEOF
87894#define static_decl_vfs $decl_static_modules_vfs
87895_ACEOF
87896
87897    	rm -f smbd/vfs.o
87898
87899
87900
87901	{ $as_echo "$as_me:$LINENO: checking how to build perfcount_onefs" >&5
87902$as_echo_n "checking how to build perfcount_onefs... " >&6; }
87903	if test "$MODULE_perfcount_onefs"; then
87904		DEST=$MODULE_perfcount_onefs
87905	elif test "$MODULE_perfcount" -a "$MODULE_DEFAULT_perfcount_onefs"; then
87906		DEST=$MODULE_perfcount
87907	else
87908		DEST=$MODULE_DEFAULT_perfcount_onefs
87909	fi
87910
87911	if test x"$DEST" = xSHARED; then
87912
87913cat >>confdefs.h <<\_ACEOF
87914#define perfcount_onefs_init init_samba_module
87915_ACEOF
87916
87917		PERFCOUNT_MODULES="$PERFCOUNT_MODULES "bin/pc_onefs.$SHLIBEXT""
87918		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87919$as_echo "shared" >&6; }
87920
87921		string_shared_modules="$string_shared_modules perfcount_onefs"
87922	elif test x"$DEST" = xSTATIC; then
87923		init_static_modules_perfcount="$init_static_modules_perfcount  perfcount_onefs_init();"
87924 		decl_static_modules_perfcount="$decl_static_modules_perfcount extern NTSTATUS perfcount_onefs_init(void);"
87925		string_static_modules="$string_static_modules perfcount_onefs"
87926		PERFCOUNT_STATIC="$PERFCOUNT_STATIC \$(PERFCOUNT_ONEFS)"
87927
87928
87929		{ $as_echo "$as_me:$LINENO: result: static" >&5
87930$as_echo "static" >&6; }
87931	else
87932	    string_ignored_modules="$string_ignored_modules perfcount_onefs"
87933		{ $as_echo "$as_me:$LINENO: result: not" >&5
87934$as_echo "not" >&6; }
87935	fi
87936
87937
87938	{ $as_echo "$as_me:$LINENO: checking how to build perfcount_test" >&5
87939$as_echo_n "checking how to build perfcount_test... " >&6; }
87940	if test "$MODULE_perfcount_test"; then
87941		DEST=$MODULE_perfcount_test
87942	elif test "$MODULE_perfcount" -a "$MODULE_DEFAULT_perfcount_test"; then
87943		DEST=$MODULE_perfcount
87944	else
87945		DEST=$MODULE_DEFAULT_perfcount_test
87946	fi
87947
87948	if test x"$DEST" = xSHARED; then
87949
87950cat >>confdefs.h <<\_ACEOF
87951#define perfcount_test_init init_samba_module
87952_ACEOF
87953
87954		PERFCOUNT_MODULES="$PERFCOUNT_MODULES "bin/pc_test.$SHLIBEXT""
87955		{ $as_echo "$as_me:$LINENO: result: shared" >&5
87956$as_echo "shared" >&6; }
87957
87958		string_shared_modules="$string_shared_modules perfcount_test"
87959	elif test x"$DEST" = xSTATIC; then
87960		init_static_modules_perfcount="$init_static_modules_perfcount  perfcount_test_init();"
87961 		decl_static_modules_perfcount="$decl_static_modules_perfcount extern NTSTATUS perfcount_test_init(void);"
87962		string_static_modules="$string_static_modules perfcount_test"
87963		PERFCOUNT_STATIC="$PERFCOUNT_STATIC \$(PERFCOUNT_TEST)"
87964
87965
87966		{ $as_echo "$as_me:$LINENO: result: static" >&5
87967$as_echo "static" >&6; }
87968	else
87969	    string_ignored_modules="$string_ignored_modules perfcount_test"
87970		{ $as_echo "$as_me:$LINENO: result: not" >&5
87971$as_echo "not" >&6; }
87972	fi
87973
87974
87975
87976
87977
87978cat >>confdefs.h <<_ACEOF
87979#define static_init_perfcount {$init_static_modules_perfcount}
87980_ACEOF
87981
87982
87983cat >>confdefs.h <<_ACEOF
87984#define static_decl_perfcount $decl_static_modules_perfcount
87985_ACEOF
87986
87987    	rm -f smbd/perfcount.o
87988
87989
87990
87991	{ $as_echo "$as_me:$LINENO: checking how to build gpext_registry" >&5
87992$as_echo_n "checking how to build gpext_registry... " >&6; }
87993	if test "$MODULE_gpext_registry"; then
87994		DEST=$MODULE_gpext_registry
87995	elif test "$MODULE_gpext" -a "$MODULE_DEFAULT_gpext_registry"; then
87996		DEST=$MODULE_gpext
87997	else
87998		DEST=$MODULE_DEFAULT_gpext_registry
87999	fi
88000
88001	if test x"$DEST" = xSHARED; then
88002
88003cat >>confdefs.h <<\_ACEOF
88004#define gpext_registry_init init_samba_module
88005_ACEOF
88006
88007		GPEXT_MODULES="$GPEXT_MODULES "bin/registry.$SHLIBEXT""
88008		{ $as_echo "$as_me:$LINENO: result: shared" >&5
88009$as_echo "shared" >&6; }
88010
88011		string_shared_modules="$string_shared_modules gpext_registry"
88012	elif test x"$DEST" = xSTATIC; then
88013		init_static_modules_gpext="$init_static_modules_gpext  gpext_registry_init();"
88014 		decl_static_modules_gpext="$decl_static_modules_gpext extern NTSTATUS gpext_registry_init(void);"
88015		string_static_modules="$string_static_modules gpext_registry"
88016		GPEXT_STATIC="$GPEXT_STATIC libgpo/gpext/registry.o"
88017
88018
88019		{ $as_echo "$as_me:$LINENO: result: static" >&5
88020$as_echo "static" >&6; }
88021	else
88022	    string_ignored_modules="$string_ignored_modules gpext_registry"
88023		{ $as_echo "$as_me:$LINENO: result: not" >&5
88024$as_echo "not" >&6; }
88025	fi
88026
88027
88028	{ $as_echo "$as_me:$LINENO: checking how to build gpext_scripts" >&5
88029$as_echo_n "checking how to build gpext_scripts... " >&6; }
88030	if test "$MODULE_gpext_scripts"; then
88031		DEST=$MODULE_gpext_scripts
88032	elif test "$MODULE_gpext" -a "$MODULE_DEFAULT_gpext_scripts"; then
88033		DEST=$MODULE_gpext
88034	else
88035		DEST=$MODULE_DEFAULT_gpext_scripts
88036	fi
88037
88038	if test x"$DEST" = xSHARED; then
88039
88040cat >>confdefs.h <<\_ACEOF
88041#define gpext_scripts_init init_samba_module
88042_ACEOF
88043
88044		GPEXT_MODULES="$GPEXT_MODULES "bin/scripts.$SHLIBEXT""
88045		{ $as_echo "$as_me:$LINENO: result: shared" >&5
88046$as_echo "shared" >&6; }
88047
88048		string_shared_modules="$string_shared_modules gpext_scripts"
88049	elif test x"$DEST" = xSTATIC; then
88050		init_static_modules_gpext="$init_static_modules_gpext  gpext_scripts_init();"
88051 		decl_static_modules_gpext="$decl_static_modules_gpext extern NTSTATUS gpext_scripts_init(void);"
88052		string_static_modules="$string_static_modules gpext_scripts"
88053		GPEXT_STATIC="$GPEXT_STATIC libgpo/gpext/scripts.o"
88054
88055
88056		{ $as_echo "$as_me:$LINENO: result: static" >&5
88057$as_echo "static" >&6; }
88058	else
88059	    string_ignored_modules="$string_ignored_modules gpext_scripts"
88060		{ $as_echo "$as_me:$LINENO: result: not" >&5
88061$as_echo "not" >&6; }
88062	fi
88063
88064
88065	{ $as_echo "$as_me:$LINENO: checking how to build gpext_security" >&5
88066$as_echo_n "checking how to build gpext_security... " >&6; }
88067	if test "$MODULE_gpext_security"; then
88068		DEST=$MODULE_gpext_security
88069	elif test "$MODULE_gpext" -a "$MODULE_DEFAULT_gpext_security"; then
88070		DEST=$MODULE_gpext
88071	else
88072		DEST=$MODULE_DEFAULT_gpext_security
88073	fi
88074
88075	if test x"$DEST" = xSHARED; then
88076
88077cat >>confdefs.h <<\_ACEOF
88078#define gpext_security_init init_samba_module
88079_ACEOF
88080
88081		GPEXT_MODULES="$GPEXT_MODULES "bin/security.$SHLIBEXT""
88082		{ $as_echo "$as_me:$LINENO: result: shared" >&5
88083$as_echo "shared" >&6; }
88084
88085		string_shared_modules="$string_shared_modules gpext_security"
88086	elif test x"$DEST" = xSTATIC; then
88087		init_static_modules_gpext="$init_static_modules_gpext  gpext_security_init();"
88088 		decl_static_modules_gpext="$decl_static_modules_gpext extern NTSTATUS gpext_security_init(void);"
88089		string_static_modules="$string_static_modules gpext_security"
88090		GPEXT_STATIC="$GPEXT_STATIC libgpo/gpext/security.o"
88091
88092
88093		{ $as_echo "$as_me:$LINENO: result: static" >&5
88094$as_echo "static" >&6; }
88095	else
88096	    string_ignored_modules="$string_ignored_modules gpext_security"
88097		{ $as_echo "$as_me:$LINENO: result: not" >&5
88098$as_echo "not" >&6; }
88099	fi
88100
88101
88102
88103
88104
88105cat >>confdefs.h <<_ACEOF
88106#define static_init_gpext {$init_static_modules_gpext}
88107_ACEOF
88108
88109
88110cat >>confdefs.h <<_ACEOF
88111#define static_decl_gpext $decl_static_modules_gpext
88112_ACEOF
88113
88114    	rm -f libgpo/gpext/gpext.o
88115
88116
88117
88118cat >>confdefs.h <<_ACEOF
88119#define STRING_STATIC_MODULES "$string_static_modules"
88120_ACEOF
88121
88122
88123#################################################
88124# do extra things if we are running insure
88125
88126if test "${ac_cv_prog_CC}" = "insure"; then
88127	CPPFLAGS="$CPPFLAGS -D__INSURE__"
88128fi
88129
88130#################################################
88131# If run from the build farm, enable NASTY hacks
88132#################################################
88133{ $as_echo "$as_me:$LINENO: checking whether to enable build farm hacks" >&5
88134$as_echo_n "checking whether to enable build farm hacks... " >&6; }
88135if test x"$RUN_FROM_BUILD_FARM" = x"yes"; then
88136	{ $as_echo "$as_me:$LINENO: result: yes" >&5
88137$as_echo "yes" >&6; }
88138
88139cat >>confdefs.h <<\_ACEOF
88140#define ENABLE_BUILD_FARM_HACKS 1
88141_ACEOF
88142
88143else
88144	{ $as_echo "$as_me:$LINENO: result: no" >&5
88145$as_echo "no" >&6; }
88146fi
88147
88148#################################################
88149# check for bad librt/libpthread interactions
88150
88151if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes" -o \
88152    x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes" -o \
88153    x"$samba_cv_HAVE_AIO64" = x"yes" -o \
88154    x"$samba_cv_HAVE_AIO" = x"yes" ; then
88155
88156
88157    rt_signal_notify_works=yes
88158    rt_signal_lease_works=yes
88159    rt_signal_aio_works=yes
88160
88161    { $as_echo "$as_me:$LINENO: checking if sigaction works with realtime signals" >&5
88162$as_echo_n "checking if sigaction works with realtime signals... " >&6; }
88163    if test "$cross_compiling" = yes; then
88164
88165	    { $as_echo "$as_me:$LINENO: result: cross" >&5
88166$as_echo "cross" >&6; }
88167
88168	    # cross compiling, I hope you know what you are doing
88169	    true
88170
88171
88172else
88173  cat >conftest.$ac_ext <<_ACEOF
88174/* confdefs.h.  */
88175_ACEOF
88176cat confdefs.h >>conftest.$ac_ext
88177cat >>conftest.$ac_ext <<_ACEOF
88178/* end confdefs.h.  */
88179
88180#include <sys/types.h>
88181#include <fcntl.h>
88182#include <signal.h>
88183
88184#ifndef SIGRTMIN
88185#define SIGRTMIN NSIG
88186#endif
88187/* from smbd/notify_kernel.c */
88188#ifndef RT_SIGNAL_NOTIFY
88189#define RT_SIGNAL_NOTIFY (SIGRTMIN+2)
88190#endif
88191
88192/* from smbd/aio.c */
88193#ifndef RT_SIGNAL_AIO
88194#define RT_SIGNAL_AIO (SIGRTMIN+3)
88195#endif
88196
88197/* from smbd/oplock_linux.c */
88198#ifndef RT_SIGNAL_LEASE
88199#define RT_SIGNAL_LEASE (SIGRTMIN+1)
88200#endif
88201
88202static void signal_handler(int sig, siginfo_t *info, void *unused)
88203{
88204    int do_nothing = 0;
88205}
88206
88207int main(void)
88208{
88209    int result = 0;
88210    struct sigaction act = {0};
88211
88212    act.sa_sigaction = signal_handler;
88213    act.sa_flags = SA_SIGINFO;
88214    sigemptyset( &act.sa_mask );
88215
88216    if (sigaction(RT_SIGNAL_LEASE, &act, 0) != 0) {
88217	    /* Failed to setup RT_SIGNAL_LEASE handler */
88218	    result += 1;
88219    }
88220
88221    if (sigaction(RT_SIGNAL_NOTIFY, &act, 0) != 0) {
88222	    /* Failed to setup RT_SIGNAL_NOTIFY handler */
88223	    result += 10;
88224    }
88225
88226    if (sigaction(RT_SIGNAL_AIO, &act, 0) != 0) {
88227	    /* Failed to setup RT_SIGNAL_AIO handler */
88228	    result += 100;
88229    }
88230
88231    /* zero on success */
88232    return result;
88233}
88234
88235_ACEOF
88236rm -f conftest$ac_exeext
88237if { (ac_try="$ac_link"
88238case "(($ac_try" in
88239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
88240  *) ac_try_echo=$ac_try;;
88241esac
88242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
88243$as_echo "$ac_try_echo") >&5
88244  (eval "$ac_link") 2>&5
88245  ac_status=$?
88246  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88247  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
88248  { (case "(($ac_try" in
88249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
88250  *) ac_try_echo=$ac_try;;
88251esac
88252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
88253$as_echo "$ac_try_echo") >&5
88254  (eval "$ac_try") 2>&5
88255  ac_status=$?
88256  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88257  (exit $ac_status); }; }; then
88258
88259	    { $as_echo "$as_me:$LINENO: result: yes" >&5
88260$as_echo "yes" >&6; }
88261
88262	    # no RT_SIGNAL bug, we are golden
88263
88264    { $as_echo "$as_me:$LINENO: checking if libpthread is linked" >&5
88265$as_echo_n "checking if libpthread is linked... " >&6; }
88266    cat >conftest.$ac_ext <<_ACEOF
88267/* confdefs.h.  */
88268_ACEOF
88269cat confdefs.h >>conftest.$ac_ext
88270cat >>conftest.$ac_ext <<_ACEOF
88271/* end confdefs.h.  */
88272
88273int
88274main ()
88275{
88276return pthread_create(0, 0, 0, 0);
88277  ;
88278  return 0;
88279}
88280_ACEOF
88281rm -f conftest.$ac_objext conftest$ac_exeext
88282if { (ac_try="$ac_link"
88283case "(($ac_try" in
88284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
88285  *) ac_try_echo=$ac_try;;
88286esac
88287eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
88288$as_echo "$ac_try_echo") >&5
88289  (eval "$ac_link") 2>conftest.er1
88290  ac_status=$?
88291  grep -v '^ *+' conftest.er1 >conftest.err
88292  rm -f conftest.er1
88293  cat conftest.err >&5
88294  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88295  (exit $ac_status); } && {
88296	 test -z "$ac_c_werror_flag" ||
88297	 test ! -s conftest.err
88298       } && test -s conftest$ac_exeext && {
88299	 test "$cross_compiling" = yes ||
88300	 $as_test_x conftest$ac_exeext
88301       }; then
88302
88303	    { $as_echo "$as_me:$LINENO: result: yes" >&5
88304$as_echo "yes" >&6; }
88305
88306		    { $as_echo "$as_me:$LINENO: WARNING: using libpthreads - this may degrade performance" >&5
88307$as_echo "$as_me: WARNING: using libpthreads - this may degrade performance" >&2;}
88308
88309
88310else
88311  $as_echo "$as_me: failed program was:" >&5
88312sed 's/^/| /' conftest.$ac_ext >&5
88313
88314
88315	    { $as_echo "$as_me:$LINENO: result: no" >&5
88316$as_echo "no" >&6; }
88317
88318
88319fi
88320
88321rm -rf conftest.dSYM
88322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
88323      conftest$ac_exeext conftest.$ac_ext
88324
88325
88326
88327
88328else
88329  $as_echo "$as_me: program exited with status $ac_status" >&5
88330$as_echo "$as_me: failed program was:" >&5
88331sed 's/^/| /' conftest.$ac_ext >&5
88332
88333( exit $ac_status )
88334
88335	    { $as_echo "$as_me:$LINENO: result: no" >&5
88336$as_echo "no" >&6; }
88337	    case "$ac_status" in
88338		1|11|101|111)  rt_signal_lease_ok=no ;;
88339	    esac
88340	    case "$ac_status" in
88341		10|11|110|111)  rt_signal_notify_ok=no ;;
88342	    esac
88343	    case "$ac_status" in
88344		100|110|101|111)  rt_signal_aio_ok=no ;;
88345	    esac
88346
88347	    # no RT_SIGNAL bug, we are golden
88348
88349    { $as_echo "$as_me:$LINENO: checking if libpthread is linked" >&5
88350$as_echo_n "checking if libpthread is linked... " >&6; }
88351    cat >conftest.$ac_ext <<_ACEOF
88352/* confdefs.h.  */
88353_ACEOF
88354cat confdefs.h >>conftest.$ac_ext
88355cat >>conftest.$ac_ext <<_ACEOF
88356/* end confdefs.h.  */
88357
88358int
88359main ()
88360{
88361return pthread_create(0, 0, 0, 0);
88362  ;
88363  return 0;
88364}
88365_ACEOF
88366rm -f conftest.$ac_objext conftest$ac_exeext
88367if { (ac_try="$ac_link"
88368case "(($ac_try" in
88369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
88370  *) ac_try_echo=$ac_try;;
88371esac
88372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
88373$as_echo "$ac_try_echo") >&5
88374  (eval "$ac_link") 2>conftest.er1
88375  ac_status=$?
88376  grep -v '^ *+' conftest.er1 >conftest.err
88377  rm -f conftest.er1
88378  cat conftest.err >&5
88379  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88380  (exit $ac_status); } && {
88381	 test -z "$ac_c_werror_flag" ||
88382	 test ! -s conftest.err
88383       } && test -s conftest$ac_exeext && {
88384	 test "$cross_compiling" = yes ||
88385	 $as_test_x conftest$ac_exeext
88386       }; then
88387
88388	    { $as_echo "$as_me:$LINENO: result: yes" >&5
88389$as_echo "yes" >&6; }
88390
88391		    { $as_echo "$as_me:$LINENO: WARNING: using libpthreads - this may degrade performance" >&5
88392$as_echo "$as_me: WARNING: using libpthreads - this may degrade performance" >&2;}
88393
88394
88395else
88396  $as_echo "$as_me: failed program was:" >&5
88397sed 's/^/| /' conftest.$ac_ext >&5
88398
88399
88400	    { $as_echo "$as_me:$LINENO: result: no" >&5
88401$as_echo "no" >&6; }
88402
88403
88404fi
88405
88406rm -rf conftest.dSYM
88407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
88408      conftest$ac_exeext conftest.$ac_ext
88409
88410
88411
88412
88413fi
88414rm -rf conftest.dSYM
88415rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
88416fi
88417
88418
88419
88420
88421fi
88422
88423# Check whether --enable-merged-build was given.
88424if test "${enable_merged_build+set}" = set; then
88425  enableval=$enable_merged_build;  enable_merged_build=$enableval
88426else
88427   enable_merged_build=auto
88428fi
88429
88430
88431if test x"$enable_merged_build" = x"yes" -a \
88432	x"$merged_build_possible" = x"no" ; then
88433	{ { $as_echo "$as_me:$LINENO: error: Merged build required but not possible" >&5
88434$as_echo "$as_me: error: Merged build required but not possible" >&2;}
88435   { (exit 1); exit 1; }; }
88436fi
88437
88438
88439
88440
88441
88442if test x$enable_merged_build = xauto; then
88443	# Check for python
88444
88445
88446
88447
88448
88449
88450
88451
88452
88453	if test -z "$PYTHON_VER"; then
88454		for ac_prog in python2.6 python2.5 python2.4 python
88455do
88456  # Extract the first word of "$ac_prog", so it can be a program name with args.
88457set dummy $ac_prog; ac_word=$2
88458{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
88459$as_echo_n "checking for $ac_word... " >&6; }
88460if test "${ac_cv_path_PYTHON+set}" = set; then
88461  $as_echo_n "(cached) " >&6
88462else
88463  case $PYTHON in
88464  [\\/]* | ?:[\\/]*)
88465  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
88466  ;;
88467  *)
88468  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
88469for as_dir in $PATH
88470do
88471  IFS=$as_save_IFS
88472  test -z "$as_dir" && as_dir=.
88473  for ac_exec_ext in '' $ac_executable_extensions; do
88474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
88475    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
88476    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88477    break 2
88478  fi
88479done
88480done
88481IFS=$as_save_IFS
88482
88483  ;;
88484esac
88485fi
88486PYTHON=$ac_cv_path_PYTHON
88487if test -n "$PYTHON"; then
88488  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
88489$as_echo "$PYTHON" >&6; }
88490else
88491  { $as_echo "$as_me:$LINENO: result: no" >&5
88492$as_echo "no" >&6; }
88493fi
88494
88495
88496  test -n "$PYTHON" && break
88497done
88498
88499	else
88500		# Extract the first word of "python[$PYTHON_VER]", so it can be a program name with args.
88501set dummy python$PYTHON_VER; ac_word=$2
88502{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
88503$as_echo_n "checking for $ac_word... " >&6; }
88504if test "${ac_cv_path_PYTHON+set}" = set; then
88505  $as_echo_n "(cached) " >&6
88506else
88507  case $PYTHON in
88508  [\\/]* | ?:[\\/]*)
88509  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
88510  ;;
88511  *)
88512  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
88513for as_dir in $PATH
88514do
88515  IFS=$as_save_IFS
88516  test -z "$as_dir" && as_dir=.
88517  for ac_exec_ext in '' $ac_executable_extensions; do
88518  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
88519    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
88520    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88521    break 2
88522  fi
88523done
88524done
88525IFS=$as_save_IFS
88526
88527  ;;
88528esac
88529fi
88530PYTHON=$ac_cv_path_PYTHON
88531if test -n "$PYTHON"; then
88532  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
88533$as_echo "$PYTHON" >&6; }
88534else
88535  { $as_echo "$as_me:$LINENO: result: no" >&5
88536$as_echo "no" >&6; }
88537fi
88538
88539
88540	fi
88541	if test -z "$PYTHON"; then
88542		working_python=no
88543		{ $as_echo "$as_me:$LINENO: WARNING: No python found" >&5
88544$as_echo "$as_me: WARNING: No python found" >&2;}
88545	fi
88546
88547		working_python=no
88548
88549	if test -z "$PYTHON_VER"; then
88550		for ac_prog in python2.6-config python2.5-config python2.4-config python-config
88551do
88552  # Extract the first word of "$ac_prog", so it can be a program name with args.
88553set dummy $ac_prog; ac_word=$2
88554{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
88555$as_echo_n "checking for $ac_word... " >&6; }
88556if test "${ac_cv_path_PYTHON_CONFIG+set}" = set; then
88557  $as_echo_n "(cached) " >&6
88558else
88559  case $PYTHON_CONFIG in
88560  [\\/]* | ?:[\\/]*)
88561  ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
88562  ;;
88563  *)
88564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
88565for as_dir in $PATH
88566do
88567  IFS=$as_save_IFS
88568  test -z "$as_dir" && as_dir=.
88569  for ac_exec_ext in '' $ac_executable_extensions; do
88570  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
88571    ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
88572    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88573    break 2
88574  fi
88575done
88576done
88577IFS=$as_save_IFS
88578
88579  ;;
88580esac
88581fi
88582PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
88583if test -n "$PYTHON_CONFIG"; then
88584  { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
88585$as_echo "$PYTHON_CONFIG" >&6; }
88586else
88587  { $as_echo "$as_me:$LINENO: result: no" >&5
88588$as_echo "no" >&6; }
88589fi
88590
88591
88592  test -n "$PYTHON_CONFIG" && break
88593done
88594
88595	else
88596		# Extract the first word of "python[$PYTHON_VER]-config", so it can be a program name with args.
88597set dummy python$PYTHON_VER-config; ac_word=$2
88598{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
88599$as_echo_n "checking for $ac_word... " >&6; }
88600if test "${ac_cv_path_PYTHON_CONFIG+set}" = set; then
88601  $as_echo_n "(cached) " >&6
88602else
88603  case $PYTHON_CONFIG in
88604  [\\/]* | ?:[\\/]*)
88605  ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
88606  ;;
88607  *)
88608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
88609for as_dir in $PATH
88610do
88611  IFS=$as_save_IFS
88612  test -z "$as_dir" && as_dir=.
88613  for ac_exec_ext in '' $ac_executable_extensions; do
88614  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
88615    ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
88616    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
88617    break 2
88618  fi
88619done
88620done
88621IFS=$as_save_IFS
88622
88623  ;;
88624esac
88625fi
88626PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
88627if test -n "$PYTHON_CONFIG"; then
88628  { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
88629$as_echo "$PYTHON_CONFIG" >&6; }
88630else
88631  { $as_echo "$as_me:$LINENO: result: no" >&5
88632$as_echo "no" >&6; }
88633fi
88634
88635
88636	fi
88637
88638	if test -z "$PYTHON_CONFIG"; then
88639		{ $as_echo "$as_me:$LINENO: WARNING: No python-config found" >&5
88640$as_echo "$as_me: WARNING: No python-config found" >&2;}
88641	else
88642
88643	if test $working_python = no; then
88644		ac_save_LIBS="$LIBS"
88645		ac_save_CFLAGS="$CFLAGS"
88646		LIBS="$LIBS `$PYTHON_CONFIG --ldflags`"
88647		CFLAGS="$CFLAGS `$PYTHON_CONFIG --includes`"
88648
88649		cat >conftest.$ac_ext <<_ACEOF
88650/* confdefs.h.  */
88651_ACEOF
88652cat confdefs.h >>conftest.$ac_ext
88653cat >>conftest.$ac_ext <<_ACEOF
88654/* end confdefs.h.  */
88655
88656                                #undef HAVE_UINTPTR_T
88657				/* we have our own configure tests */
88658				#include <Python.h>
88659
88660int
88661main ()
88662{
88663
88664				Py_InitModule(NULL, NULL);
88665
88666  ;
88667  return 0;
88668}
88669_ACEOF
88670rm -f conftest.$ac_objext conftest$ac_exeext
88671if { (ac_try="$ac_link"
88672case "(($ac_try" in
88673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
88674  *) ac_try_echo=$ac_try;;
88675esac
88676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
88677$as_echo "$ac_try_echo") >&5
88678  (eval "$ac_link") 2>conftest.er1
88679  ac_status=$?
88680  grep -v '^ *+' conftest.er1 >conftest.err
88681  rm -f conftest.er1
88682  cat conftest.err >&5
88683  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88684  (exit $ac_status); } && {
88685	 test -z "$ac_c_werror_flag" ||
88686	 test ! -s conftest.err
88687       } && test -s conftest$ac_exeext && {
88688	 test "$cross_compiling" = yes ||
88689	 $as_test_x conftest$ac_exeext
88690       }; then
88691
88692				PYTHON_LDFLAGS="`$PYTHON_CONFIG --ldflags`"
88693				PYTHON_CFLAGS="`$PYTHON_CONFIG --includes`"
88694				working_python=yes
88695
88696else
88697  $as_echo "$as_me: failed program was:" >&5
88698sed 's/^/| /' conftest.$ac_ext >&5
88699
88700
88701fi
88702
88703rm -rf conftest.dSYM
88704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
88705      conftest$ac_exeext conftest.$ac_ext
88706		LIBS="$ac_save_LIBS"
88707		CFLAGS="$ac_save_CFLAGS"
88708	fi
88709
88710
88711	if test $working_python = no; then
88712		ac_save_LIBS="$LIBS"
88713		ac_save_CFLAGS="$CFLAGS"
88714		LIBS="$LIBS `$PYTHON_CONFIG --ldflags`"
88715		CFLAGS="$CFLAGS `$PYTHON_CONFIG --cflags`"
88716
88717		cat >conftest.$ac_ext <<_ACEOF
88718/* confdefs.h.  */
88719_ACEOF
88720cat confdefs.h >>conftest.$ac_ext
88721cat >>conftest.$ac_ext <<_ACEOF
88722/* end confdefs.h.  */
88723
88724                                #undef HAVE_UINTPTR_T
88725				/* we have our own configure tests */
88726				#include <Python.h>
88727
88728int
88729main ()
88730{
88731
88732				Py_InitModule(NULL, NULL);
88733
88734  ;
88735  return 0;
88736}
88737_ACEOF
88738rm -f conftest.$ac_objext conftest$ac_exeext
88739if { (ac_try="$ac_link"
88740case "(($ac_try" in
88741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
88742  *) ac_try_echo=$ac_try;;
88743esac
88744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
88745$as_echo "$ac_try_echo") >&5
88746  (eval "$ac_link") 2>conftest.er1
88747  ac_status=$?
88748  grep -v '^ *+' conftest.er1 >conftest.err
88749  rm -f conftest.er1
88750  cat conftest.err >&5
88751  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88752  (exit $ac_status); } && {
88753	 test -z "$ac_c_werror_flag" ||
88754	 test ! -s conftest.err
88755       } && test -s conftest$ac_exeext && {
88756	 test "$cross_compiling" = yes ||
88757	 $as_test_x conftest$ac_exeext
88758       }; then
88759
88760				PYTHON_LDFLAGS="`$PYTHON_CONFIG --ldflags`"
88761				PYTHON_CFLAGS="`$PYTHON_CONFIG --cflags`"
88762				working_python=yes
88763
88764else
88765  $as_echo "$as_me: failed program was:" >&5
88766sed 's/^/| /' conftest.$ac_ext >&5
88767
88768
88769fi
88770
88771rm -rf conftest.dSYM
88772rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
88773      conftest$ac_exeext conftest.$ac_ext
88774		LIBS="$ac_save_LIBS"
88775		CFLAGS="$ac_save_CFLAGS"
88776	fi
88777
88778		if test x$working_python = xno; then
88779			# It seems the library path isn't included on some systems
88780			base=`$PYTHON_CONFIG --prefix`
88781
88782	if test $working_python = no; then
88783		ac_save_LIBS="$LIBS"
88784		ac_save_CFLAGS="$CFLAGS"
88785		LIBS="$LIBS `echo -n -L${base}/lib " "; $PYTHON_CONFIG --ldflags`"
88786		CFLAGS="$CFLAGS `$PYTHON_CONFIG --includes`"
88787
88788		cat >conftest.$ac_ext <<_ACEOF
88789/* confdefs.h.  */
88790_ACEOF
88791cat confdefs.h >>conftest.$ac_ext
88792cat >>conftest.$ac_ext <<_ACEOF
88793/* end confdefs.h.  */
88794
88795                                #undef HAVE_UINTPTR_T
88796				/* we have our own configure tests */
88797				#include <Python.h>
88798
88799int
88800main ()
88801{
88802
88803				Py_InitModule(NULL, NULL);
88804
88805  ;
88806  return 0;
88807}
88808_ACEOF
88809rm -f conftest.$ac_objext conftest$ac_exeext
88810if { (ac_try="$ac_link"
88811case "(($ac_try" in
88812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
88813  *) ac_try_echo=$ac_try;;
88814esac
88815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
88816$as_echo "$ac_try_echo") >&5
88817  (eval "$ac_link") 2>conftest.er1
88818  ac_status=$?
88819  grep -v '^ *+' conftest.er1 >conftest.err
88820  rm -f conftest.er1
88821  cat conftest.err >&5
88822  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88823  (exit $ac_status); } && {
88824	 test -z "$ac_c_werror_flag" ||
88825	 test ! -s conftest.err
88826       } && test -s conftest$ac_exeext && {
88827	 test "$cross_compiling" = yes ||
88828	 $as_test_x conftest$ac_exeext
88829       }; then
88830
88831				PYTHON_LDFLAGS="`echo -n -L${base}/lib " "; $PYTHON_CONFIG --ldflags`"
88832				PYTHON_CFLAGS="`$PYTHON_CONFIG --includes`"
88833				working_python=yes
88834
88835else
88836  $as_echo "$as_me: failed program was:" >&5
88837sed 's/^/| /' conftest.$ac_ext >&5
88838
88839
88840fi
88841
88842rm -rf conftest.dSYM
88843rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
88844      conftest$ac_exeext conftest.$ac_ext
88845		LIBS="$ac_save_LIBS"
88846		CFLAGS="$ac_save_CFLAGS"
88847	fi
88848
88849
88850	if test $working_python = no; then
88851		ac_save_LIBS="$LIBS"
88852		ac_save_CFLAGS="$CFLAGS"
88853		LIBS="$LIBS `echo -n -L${base}/lib " "; $PYTHON_CONFIG --ldflags`"
88854		CFLAGS="$CFLAGS `$PYTHON_CONFIG --cflags`"
88855
88856		cat >conftest.$ac_ext <<_ACEOF
88857/* confdefs.h.  */
88858_ACEOF
88859cat confdefs.h >>conftest.$ac_ext
88860cat >>conftest.$ac_ext <<_ACEOF
88861/* end confdefs.h.  */
88862
88863                                #undef HAVE_UINTPTR_T
88864				/* we have our own configure tests */
88865				#include <Python.h>
88866
88867int
88868main ()
88869{
88870
88871				Py_InitModule(NULL, NULL);
88872
88873  ;
88874  return 0;
88875}
88876_ACEOF
88877rm -f conftest.$ac_objext conftest$ac_exeext
88878if { (ac_try="$ac_link"
88879case "(($ac_try" in
88880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
88881  *) ac_try_echo=$ac_try;;
88882esac
88883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
88884$as_echo "$ac_try_echo") >&5
88885  (eval "$ac_link") 2>conftest.er1
88886  ac_status=$?
88887  grep -v '^ *+' conftest.er1 >conftest.err
88888  rm -f conftest.er1
88889  cat conftest.err >&5
88890  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88891  (exit $ac_status); } && {
88892	 test -z "$ac_c_werror_flag" ||
88893	 test ! -s conftest.err
88894       } && test -s conftest$ac_exeext && {
88895	 test "$cross_compiling" = yes ||
88896	 $as_test_x conftest$ac_exeext
88897       }; then
88898
88899				PYTHON_LDFLAGS="`echo -n -L${base}/lib " "; $PYTHON_CONFIG --ldflags`"
88900				PYTHON_CFLAGS="`$PYTHON_CONFIG --cflags`"
88901				working_python=yes
88902
88903else
88904  $as_echo "$as_me: failed program was:" >&5
88905sed 's/^/| /' conftest.$ac_ext >&5
88906
88907
88908fi
88909
88910rm -rf conftest.dSYM
88911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
88912      conftest$ac_exeext conftest.$ac_ext
88913		LIBS="$ac_save_LIBS"
88914		CFLAGS="$ac_save_CFLAGS"
88915	fi
88916
88917		fi
88918	fi
88919
88920	if test x$PYTHON != x
88921	then
88922		DISTUTILS_CFLAGS=`$PYTHON -c "from distutils import sysconfig; \
88923					      print '-I%s -I%s %s' % ( \
88924							sysconfig.get_python_inc(), \
88925							sysconfig.get_python_inc(plat_specific=1), \
88926							sysconfig.get_config_var('CFLAGS'))"`
88927		DISTUTILS_LDFLAGS=`$PYTHON -c "from distutils import sysconfig; \
88928					       print '%s %s -lpython%s -L%s %s -L%s' % ( \
88929							sysconfig.get_config_var('LIBS'), \
88930							sysconfig.get_config_var('SYSLIBS'), \
88931							sysconfig.get_config_var('VERSION'), \
88932							sysconfig.get_config_var('LIBDIR'), \
88933							sysconfig.get_config_var('LDFLAGS'), \
88934							sysconfig.get_config_var('LIBPL'))"`
88935
88936	if test $working_python = no; then
88937		ac_save_LIBS="$LIBS"
88938		ac_save_CFLAGS="$CFLAGS"
88939		LIBS="$LIBS $DISTUTILS_LDFLAGS"
88940		CFLAGS="$CFLAGS $DISTUTILS_CFLAGS"
88941
88942		cat >conftest.$ac_ext <<_ACEOF
88943/* confdefs.h.  */
88944_ACEOF
88945cat confdefs.h >>conftest.$ac_ext
88946cat >>conftest.$ac_ext <<_ACEOF
88947/* end confdefs.h.  */
88948
88949                                #undef HAVE_UINTPTR_T
88950				/* we have our own configure tests */
88951				#include <Python.h>
88952
88953int
88954main ()
88955{
88956
88957				Py_InitModule(NULL, NULL);
88958
88959  ;
88960  return 0;
88961}
88962_ACEOF
88963rm -f conftest.$ac_objext conftest$ac_exeext
88964if { (ac_try="$ac_link"
88965case "(($ac_try" in
88966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
88967  *) ac_try_echo=$ac_try;;
88968esac
88969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
88970$as_echo "$ac_try_echo") >&5
88971  (eval "$ac_link") 2>conftest.er1
88972  ac_status=$?
88973  grep -v '^ *+' conftest.er1 >conftest.err
88974  rm -f conftest.er1
88975  cat conftest.err >&5
88976  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
88977  (exit $ac_status); } && {
88978	 test -z "$ac_c_werror_flag" ||
88979	 test ! -s conftest.err
88980       } && test -s conftest$ac_exeext && {
88981	 test "$cross_compiling" = yes ||
88982	 $as_test_x conftest$ac_exeext
88983       }; then
88984
88985				PYTHON_LDFLAGS="$DISTUTILS_LDFLAGS"
88986				PYTHON_CFLAGS="$DISTUTILS_CFLAGS"
88987				working_python=yes
88988
88989else
88990  $as_echo "$as_me: failed program was:" >&5
88991sed 's/^/| /' conftest.$ac_ext >&5
88992
88993
88994fi
88995
88996rm -rf conftest.dSYM
88997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
88998      conftest$ac_exeext conftest.$ac_ext
88999		LIBS="$ac_save_LIBS"
89000		CFLAGS="$ac_save_CFLAGS"
89001	fi
89002
89003	fi
89004
89005	{ $as_echo "$as_me:$LINENO: checking working python module support" >&5
89006$as_echo_n "checking working python module support... " >&6; }
89007	if test $working_python = yes; then
89008		{ $as_echo "$as_me:$LINENO: result: yes" >&5
89009$as_echo "yes" >&6; }
89010		true
89011	else
89012		{ $as_echo "$as_me:$LINENO: result: no" >&5
89013$as_echo "no" >&6; }
89014		merged_build_possible=no
89015	fi
89016
89017
89018	{ $as_echo "$as_me:$LINENO: checking whether it would be possible to do a merged build" >&5
89019$as_echo_n "checking whether it would be possible to do a merged build... " >&6; }
89020	{ $as_echo "$as_me:$LINENO: result: $merged_build_possible" >&5
89021$as_echo "$merged_build_possible" >&6; }
89022
89023	# Enable merged build automatically if possible, when in developer mode
89024	# Don't enable  merged build automatically in 3.4.0.
89025	#if test "x$developer" = xyes; then
89026	#	enable_merged_build=$merged_build_possible
89027	#fi
89028fi
89029
89030if test x$enable_merged_build = xyes; then
89031	MERGED_BUILD=1
89032	saved_USESHARED="$USESHARED"
89033	USESHARED="false"
89034
89035smbtorture4_path="bin/smbtorture4"
89036smbtorture4_option="-t bin/smbtorture4"
89037
89038
89039
89040
89041
89042
89043
89044
89045
89046
89047
89048
89049
89050
89051
89052
89053
89054
89055
89056
89057
89058
89059
89060
89061
89062
89063
89064
89065
89066
89067
89068
89069
89070
89071	if test -z "$PYTHON_VER"; then
89072		for ac_prog in python2.6 python2.5 python2.4 python
89073do
89074  # Extract the first word of "$ac_prog", so it can be a program name with args.
89075set dummy $ac_prog; ac_word=$2
89076{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
89077$as_echo_n "checking for $ac_word... " >&6; }
89078if test "${ac_cv_path_PYTHON+set}" = set; then
89079  $as_echo_n "(cached) " >&6
89080else
89081  case $PYTHON in
89082  [\\/]* | ?:[\\/]*)
89083  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
89084  ;;
89085  *)
89086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
89087for as_dir in $PATH
89088do
89089  IFS=$as_save_IFS
89090  test -z "$as_dir" && as_dir=.
89091  for ac_exec_ext in '' $ac_executable_extensions; do
89092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
89093    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
89094    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
89095    break 2
89096  fi
89097done
89098done
89099IFS=$as_save_IFS
89100
89101  ;;
89102esac
89103fi
89104PYTHON=$ac_cv_path_PYTHON
89105if test -n "$PYTHON"; then
89106  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
89107$as_echo "$PYTHON" >&6; }
89108else
89109  { $as_echo "$as_me:$LINENO: result: no" >&5
89110$as_echo "no" >&6; }
89111fi
89112
89113
89114  test -n "$PYTHON" && break
89115done
89116
89117	else
89118		# Extract the first word of "python[$PYTHON_VER]", so it can be a program name with args.
89119set dummy python$PYTHON_VER; ac_word=$2
89120{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
89121$as_echo_n "checking for $ac_word... " >&6; }
89122if test "${ac_cv_path_PYTHON+set}" = set; then
89123  $as_echo_n "(cached) " >&6
89124else
89125  case $PYTHON in
89126  [\\/]* | ?:[\\/]*)
89127  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
89128  ;;
89129  *)
89130  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
89131for as_dir in $PATH
89132do
89133  IFS=$as_save_IFS
89134  test -z "$as_dir" && as_dir=.
89135  for ac_exec_ext in '' $ac_executable_extensions; do
89136  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
89137    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
89138    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
89139    break 2
89140  fi
89141done
89142done
89143IFS=$as_save_IFS
89144
89145  ;;
89146esac
89147fi
89148PYTHON=$ac_cv_path_PYTHON
89149if test -n "$PYTHON"; then
89150  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
89151$as_echo "$PYTHON" >&6; }
89152else
89153  { $as_echo "$as_me:$LINENO: result: no" >&5
89154$as_echo "no" >&6; }
89155fi
89156
89157
89158	fi
89159	if test -z "$PYTHON"; then
89160		working_python=no
89161		{ $as_echo "$as_me:$LINENO: WARNING: No python found" >&5
89162$as_echo "$as_me: WARNING: No python found" >&2;}
89163	fi
89164
89165		working_python=no
89166
89167	if test -z "$PYTHON_VER"; then
89168		for ac_prog in python2.6-config python2.5-config python2.4-config python-config
89169do
89170  # Extract the first word of "$ac_prog", so it can be a program name with args.
89171set dummy $ac_prog; ac_word=$2
89172{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
89173$as_echo_n "checking for $ac_word... " >&6; }
89174if test "${ac_cv_path_PYTHON_CONFIG+set}" = set; then
89175  $as_echo_n "(cached) " >&6
89176else
89177  case $PYTHON_CONFIG in
89178  [\\/]* | ?:[\\/]*)
89179  ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
89180  ;;
89181  *)
89182  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
89183for as_dir in $PATH
89184do
89185  IFS=$as_save_IFS
89186  test -z "$as_dir" && as_dir=.
89187  for ac_exec_ext in '' $ac_executable_extensions; do
89188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
89189    ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
89190    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
89191    break 2
89192  fi
89193done
89194done
89195IFS=$as_save_IFS
89196
89197  ;;
89198esac
89199fi
89200PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
89201if test -n "$PYTHON_CONFIG"; then
89202  { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
89203$as_echo "$PYTHON_CONFIG" >&6; }
89204else
89205  { $as_echo "$as_me:$LINENO: result: no" >&5
89206$as_echo "no" >&6; }
89207fi
89208
89209
89210  test -n "$PYTHON_CONFIG" && break
89211done
89212
89213	else
89214		# Extract the first word of "python[$PYTHON_VER]-config", so it can be a program name with args.
89215set dummy python$PYTHON_VER-config; ac_word=$2
89216{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
89217$as_echo_n "checking for $ac_word... " >&6; }
89218if test "${ac_cv_path_PYTHON_CONFIG+set}" = set; then
89219  $as_echo_n "(cached) " >&6
89220else
89221  case $PYTHON_CONFIG in
89222  [\\/]* | ?:[\\/]*)
89223  ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
89224  ;;
89225  *)
89226  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
89227for as_dir in $PATH
89228do
89229  IFS=$as_save_IFS
89230  test -z "$as_dir" && as_dir=.
89231  for ac_exec_ext in '' $ac_executable_extensions; do
89232  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
89233    ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
89234    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
89235    break 2
89236  fi
89237done
89238done
89239IFS=$as_save_IFS
89240
89241  ;;
89242esac
89243fi
89244PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
89245if test -n "$PYTHON_CONFIG"; then
89246  { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
89247$as_echo "$PYTHON_CONFIG" >&6; }
89248else
89249  { $as_echo "$as_me:$LINENO: result: no" >&5
89250$as_echo "no" >&6; }
89251fi
89252
89253
89254	fi
89255
89256	if test -z "$PYTHON_CONFIG"; then
89257		{ $as_echo "$as_me:$LINENO: WARNING: No python-config found" >&5
89258$as_echo "$as_me: WARNING: No python-config found" >&2;}
89259	else
89260
89261	if test $working_python = no; then
89262		ac_save_LIBS="$LIBS"
89263		ac_save_CFLAGS="$CFLAGS"
89264		LIBS="$LIBS `$PYTHON_CONFIG --ldflags`"
89265		CFLAGS="$CFLAGS `$PYTHON_CONFIG --includes`"
89266
89267		cat >conftest.$ac_ext <<_ACEOF
89268/* confdefs.h.  */
89269_ACEOF
89270cat confdefs.h >>conftest.$ac_ext
89271cat >>conftest.$ac_ext <<_ACEOF
89272/* end confdefs.h.  */
89273
89274                                #undef HAVE_UINTPTR_T
89275				/* we have our own configure tests */
89276				#include <Python.h>
89277
89278int
89279main ()
89280{
89281
89282				Py_InitModule(NULL, NULL);
89283
89284  ;
89285  return 0;
89286}
89287_ACEOF
89288rm -f conftest.$ac_objext conftest$ac_exeext
89289if { (ac_try="$ac_link"
89290case "(($ac_try" in
89291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89292  *) ac_try_echo=$ac_try;;
89293esac
89294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
89295$as_echo "$ac_try_echo") >&5
89296  (eval "$ac_link") 2>conftest.er1
89297  ac_status=$?
89298  grep -v '^ *+' conftest.er1 >conftest.err
89299  rm -f conftest.er1
89300  cat conftest.err >&5
89301  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
89302  (exit $ac_status); } && {
89303	 test -z "$ac_c_werror_flag" ||
89304	 test ! -s conftest.err
89305       } && test -s conftest$ac_exeext && {
89306	 test "$cross_compiling" = yes ||
89307	 $as_test_x conftest$ac_exeext
89308       }; then
89309
89310				PYTHON_LDFLAGS="`$PYTHON_CONFIG --ldflags`"
89311				PYTHON_CFLAGS="`$PYTHON_CONFIG --includes`"
89312				working_python=yes
89313
89314else
89315  $as_echo "$as_me: failed program was:" >&5
89316sed 's/^/| /' conftest.$ac_ext >&5
89317
89318
89319fi
89320
89321rm -rf conftest.dSYM
89322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
89323      conftest$ac_exeext conftest.$ac_ext
89324		LIBS="$ac_save_LIBS"
89325		CFLAGS="$ac_save_CFLAGS"
89326	fi
89327
89328
89329	if test $working_python = no; then
89330		ac_save_LIBS="$LIBS"
89331		ac_save_CFLAGS="$CFLAGS"
89332		LIBS="$LIBS `$PYTHON_CONFIG --ldflags`"
89333		CFLAGS="$CFLAGS `$PYTHON_CONFIG --cflags`"
89334
89335		cat >conftest.$ac_ext <<_ACEOF
89336/* confdefs.h.  */
89337_ACEOF
89338cat confdefs.h >>conftest.$ac_ext
89339cat >>conftest.$ac_ext <<_ACEOF
89340/* end confdefs.h.  */
89341
89342                                #undef HAVE_UINTPTR_T
89343				/* we have our own configure tests */
89344				#include <Python.h>
89345
89346int
89347main ()
89348{
89349
89350				Py_InitModule(NULL, NULL);
89351
89352  ;
89353  return 0;
89354}
89355_ACEOF
89356rm -f conftest.$ac_objext conftest$ac_exeext
89357if { (ac_try="$ac_link"
89358case "(($ac_try" in
89359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89360  *) ac_try_echo=$ac_try;;
89361esac
89362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
89363$as_echo "$ac_try_echo") >&5
89364  (eval "$ac_link") 2>conftest.er1
89365  ac_status=$?
89366  grep -v '^ *+' conftest.er1 >conftest.err
89367  rm -f conftest.er1
89368  cat conftest.err >&5
89369  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
89370  (exit $ac_status); } && {
89371	 test -z "$ac_c_werror_flag" ||
89372	 test ! -s conftest.err
89373       } && test -s conftest$ac_exeext && {
89374	 test "$cross_compiling" = yes ||
89375	 $as_test_x conftest$ac_exeext
89376       }; then
89377
89378				PYTHON_LDFLAGS="`$PYTHON_CONFIG --ldflags`"
89379				PYTHON_CFLAGS="`$PYTHON_CONFIG --cflags`"
89380				working_python=yes
89381
89382else
89383  $as_echo "$as_me: failed program was:" >&5
89384sed 's/^/| /' conftest.$ac_ext >&5
89385
89386
89387fi
89388
89389rm -rf conftest.dSYM
89390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
89391      conftest$ac_exeext conftest.$ac_ext
89392		LIBS="$ac_save_LIBS"
89393		CFLAGS="$ac_save_CFLAGS"
89394	fi
89395
89396		if test x$working_python = xno; then
89397			# It seems the library path isn't included on some systems
89398			base=`$PYTHON_CONFIG --prefix`
89399
89400	if test $working_python = no; then
89401		ac_save_LIBS="$LIBS"
89402		ac_save_CFLAGS="$CFLAGS"
89403		LIBS="$LIBS `echo -n -L${base}/lib " "; $PYTHON_CONFIG --ldflags`"
89404		CFLAGS="$CFLAGS `$PYTHON_CONFIG --includes`"
89405
89406		cat >conftest.$ac_ext <<_ACEOF
89407/* confdefs.h.  */
89408_ACEOF
89409cat confdefs.h >>conftest.$ac_ext
89410cat >>conftest.$ac_ext <<_ACEOF
89411/* end confdefs.h.  */
89412
89413                                #undef HAVE_UINTPTR_T
89414				/* we have our own configure tests */
89415				#include <Python.h>
89416
89417int
89418main ()
89419{
89420
89421				Py_InitModule(NULL, NULL);
89422
89423  ;
89424  return 0;
89425}
89426_ACEOF
89427rm -f conftest.$ac_objext conftest$ac_exeext
89428if { (ac_try="$ac_link"
89429case "(($ac_try" in
89430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89431  *) ac_try_echo=$ac_try;;
89432esac
89433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
89434$as_echo "$ac_try_echo") >&5
89435  (eval "$ac_link") 2>conftest.er1
89436  ac_status=$?
89437  grep -v '^ *+' conftest.er1 >conftest.err
89438  rm -f conftest.er1
89439  cat conftest.err >&5
89440  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
89441  (exit $ac_status); } && {
89442	 test -z "$ac_c_werror_flag" ||
89443	 test ! -s conftest.err
89444       } && test -s conftest$ac_exeext && {
89445	 test "$cross_compiling" = yes ||
89446	 $as_test_x conftest$ac_exeext
89447       }; then
89448
89449				PYTHON_LDFLAGS="`echo -n -L${base}/lib " "; $PYTHON_CONFIG --ldflags`"
89450				PYTHON_CFLAGS="`$PYTHON_CONFIG --includes`"
89451				working_python=yes
89452
89453else
89454  $as_echo "$as_me: failed program was:" >&5
89455sed 's/^/| /' conftest.$ac_ext >&5
89456
89457
89458fi
89459
89460rm -rf conftest.dSYM
89461rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
89462      conftest$ac_exeext conftest.$ac_ext
89463		LIBS="$ac_save_LIBS"
89464		CFLAGS="$ac_save_CFLAGS"
89465	fi
89466
89467
89468	if test $working_python = no; then
89469		ac_save_LIBS="$LIBS"
89470		ac_save_CFLAGS="$CFLAGS"
89471		LIBS="$LIBS `echo -n -L${base}/lib " "; $PYTHON_CONFIG --ldflags`"
89472		CFLAGS="$CFLAGS `$PYTHON_CONFIG --cflags`"
89473
89474		cat >conftest.$ac_ext <<_ACEOF
89475/* confdefs.h.  */
89476_ACEOF
89477cat confdefs.h >>conftest.$ac_ext
89478cat >>conftest.$ac_ext <<_ACEOF
89479/* end confdefs.h.  */
89480
89481                                #undef HAVE_UINTPTR_T
89482				/* we have our own configure tests */
89483				#include <Python.h>
89484
89485int
89486main ()
89487{
89488
89489				Py_InitModule(NULL, NULL);
89490
89491  ;
89492  return 0;
89493}
89494_ACEOF
89495rm -f conftest.$ac_objext conftest$ac_exeext
89496if { (ac_try="$ac_link"
89497case "(($ac_try" in
89498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89499  *) ac_try_echo=$ac_try;;
89500esac
89501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
89502$as_echo "$ac_try_echo") >&5
89503  (eval "$ac_link") 2>conftest.er1
89504  ac_status=$?
89505  grep -v '^ *+' conftest.er1 >conftest.err
89506  rm -f conftest.er1
89507  cat conftest.err >&5
89508  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
89509  (exit $ac_status); } && {
89510	 test -z "$ac_c_werror_flag" ||
89511	 test ! -s conftest.err
89512       } && test -s conftest$ac_exeext && {
89513	 test "$cross_compiling" = yes ||
89514	 $as_test_x conftest$ac_exeext
89515       }; then
89516
89517				PYTHON_LDFLAGS="`echo -n -L${base}/lib " "; $PYTHON_CONFIG --ldflags`"
89518				PYTHON_CFLAGS="`$PYTHON_CONFIG --cflags`"
89519				working_python=yes
89520
89521else
89522  $as_echo "$as_me: failed program was:" >&5
89523sed 's/^/| /' conftest.$ac_ext >&5
89524
89525
89526fi
89527
89528rm -rf conftest.dSYM
89529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
89530      conftest$ac_exeext conftest.$ac_ext
89531		LIBS="$ac_save_LIBS"
89532		CFLAGS="$ac_save_CFLAGS"
89533	fi
89534
89535		fi
89536	fi
89537
89538	if test x$PYTHON != x
89539	then
89540		DISTUTILS_CFLAGS=`$PYTHON -c "from distutils import sysconfig; \
89541					      print '-I%s -I%s %s' % ( \
89542							sysconfig.get_python_inc(), \
89543							sysconfig.get_python_inc(plat_specific=1), \
89544							sysconfig.get_config_var('CFLAGS'))"`
89545		DISTUTILS_LDFLAGS=`$PYTHON -c "from distutils import sysconfig; \
89546					       print '%s %s -lpython%s -L%s %s -L%s' % ( \
89547							sysconfig.get_config_var('LIBS'), \
89548							sysconfig.get_config_var('SYSLIBS'), \
89549							sysconfig.get_config_var('VERSION'), \
89550							sysconfig.get_config_var('LIBDIR'), \
89551							sysconfig.get_config_var('LDFLAGS'), \
89552							sysconfig.get_config_var('LIBPL'))"`
89553
89554	if test $working_python = no; then
89555		ac_save_LIBS="$LIBS"
89556		ac_save_CFLAGS="$CFLAGS"
89557		LIBS="$LIBS $DISTUTILS_LDFLAGS"
89558		CFLAGS="$CFLAGS $DISTUTILS_CFLAGS"
89559
89560		cat >conftest.$ac_ext <<_ACEOF
89561/* confdefs.h.  */
89562_ACEOF
89563cat confdefs.h >>conftest.$ac_ext
89564cat >>conftest.$ac_ext <<_ACEOF
89565/* end confdefs.h.  */
89566
89567                                #undef HAVE_UINTPTR_T
89568				/* we have our own configure tests */
89569				#include <Python.h>
89570
89571int
89572main ()
89573{
89574
89575				Py_InitModule(NULL, NULL);
89576
89577  ;
89578  return 0;
89579}
89580_ACEOF
89581rm -f conftest.$ac_objext conftest$ac_exeext
89582if { (ac_try="$ac_link"
89583case "(($ac_try" in
89584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89585  *) ac_try_echo=$ac_try;;
89586esac
89587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
89588$as_echo "$ac_try_echo") >&5
89589  (eval "$ac_link") 2>conftest.er1
89590  ac_status=$?
89591  grep -v '^ *+' conftest.er1 >conftest.err
89592  rm -f conftest.er1
89593  cat conftest.err >&5
89594  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
89595  (exit $ac_status); } && {
89596	 test -z "$ac_c_werror_flag" ||
89597	 test ! -s conftest.err
89598       } && test -s conftest$ac_exeext && {
89599	 test "$cross_compiling" = yes ||
89600	 $as_test_x conftest$ac_exeext
89601       }; then
89602
89603				PYTHON_LDFLAGS="$DISTUTILS_LDFLAGS"
89604				PYTHON_CFLAGS="$DISTUTILS_CFLAGS"
89605				working_python=yes
89606
89607else
89608  $as_echo "$as_me: failed program was:" >&5
89609sed 's/^/| /' conftest.$ac_ext >&5
89610
89611
89612fi
89613
89614rm -rf conftest.dSYM
89615rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
89616      conftest$ac_exeext conftest.$ac_ext
89617		LIBS="$ac_save_LIBS"
89618		CFLAGS="$ac_save_CFLAGS"
89619	fi
89620
89621	fi
89622
89623	{ $as_echo "$as_me:$LINENO: checking working python module support" >&5
89624$as_echo_n "checking working python module support... " >&6; }
89625	if test $working_python = yes; then
89626		{ $as_echo "$as_me:$LINENO: result: yes" >&5
89627$as_echo "yes" >&6; }
89628
89629
89630MAKE_SETTINGS="$MAKE_SETTINGS
89631EXT_LIB_PYTHON_LIBS = $PYTHON_LDFLAGS
89632EXT_LIB_PYTHON_CFLAGS = $PYTHON_CFLAGS
89633EXT_LIB_PYTHON_CPPFLAGS =
89634EXT_LIB_PYTHON_LDFLAGS =
89635"
89636
89637
89638
89639	MAKE_SETTINGS="$MAKE_SETTINGS
89640EXT_LIB_PYTHON_ENABLE = YES
89641"
89642SMB_INFO_ENABLES="$SMB_INFO_ENABLES
89643\$enabled{\"EXT_LIB_PYTHON\"} = \"YES\";"
89644
89645
89646	MAKE_SETTINGS="$MAKE_SETTINGS
89647LIBPYTHON_ENABLE = YES
89648"
89649SMB_INFO_ENABLES="$SMB_INFO_ENABLES
89650\$enabled{\"LIBPYTHON\"} = \"YES\";"
89651
89652
89653	else
89654		{ $as_echo "$as_me:$LINENO: result: no" >&5
89655$as_echo "no" >&6; }
89656
89657{ { $as_echo "$as_me:$LINENO: error: Python not found. Please install Python 2.x and its development headers/libraries." >&5
89658$as_echo "$as_me: error: Python not found. Please install Python 2.x and its development headers/libraries." >&2;}
89659   { (exit 1); exit 1; }; }
89660
89661	fi
89662
89663
89664{ $as_echo "$as_me:$LINENO: checking python library directory" >&5
89665$as_echo_n "checking python library directory... " >&6; }
89666pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1, 0, '\\${prefix}')"`
89667{ $as_echo "$as_me:$LINENO: result: $pythondir" >&5
89668$as_echo "$pythondir" >&6; }
89669
89670
89671
89672
89673MAKE_SETTINGS="$MAKE_SETTINGS
89674LIBREPLACE_EXT_LIBS = ${LIBDL} ${CRYPT_LIBS}
89675LIBREPLACE_EXT_CFLAGS =
89676LIBREPLACE_EXT_CPPFLAGS =
89677LIBREPLACE_EXT_LDFLAGS =
89678"
89679
89680
89681
89682	MAKE_SETTINGS="$MAKE_SETTINGS
89683LIBREPLACE_EXT_ENABLE =
89684"
89685SMB_INFO_ENABLES="$SMB_INFO_ENABLES
89686\$enabled{\"LIBREPLACE_EXT\"} = \"\";"
89687
89688
89689
89690MAKE_SETTINGS="$MAKE_SETTINGS
89691LIBREPLACE_NETWORK_LIBS = ${LIBREPLACE_NETWORK_LIBS}
89692LIBREPLACE_NETWORK_CFLAGS =
89693LIBREPLACE_NETWORK_CPPFLAGS =
89694LIBREPLACE_NETWORK_LDFLAGS =
89695"
89696
89697
89698
89699	MAKE_SETTINGS="$MAKE_SETTINGS
89700LIBREPLACE_NETWORK_ENABLE =
89701"
89702SMB_INFO_ENABLES="$SMB_INFO_ENABLES
89703\$enabled{\"LIBREPLACE_NETWORK\"} = \"\";"
89704
89705
89706
89707MAKE_SETTINGS="$MAKE_SETTINGS
89708LIBREPLACE_CFLAGS = -I../lib/replace
89709LIBREPLACE_ENABLE = YES
89710LIBREPLACE_OBJ_FILES = ${LIBREPLACE_OBJS}
89711"
89712
89713SMB_INFO_SUBSYSTEMS="$SMB_INFO_SUBSYSTEMS
89714###################################
89715# Start Subsystem LIBREPLACE
89716[SUBSYSTEM::LIBREPLACE]
89717PRIVATE_DEPENDENCIES = LIBREPLACE_EXT LIBREPLACE_NETWORK
89718CFLAGS = \$(LIBREPLACE_CFLAGS)
89719ENABLE = YES
89720# End Subsystem LIBREPLACE
89721###################################
89722"
89723
89724
89725LIBREPLACE_HOSTCC_OBJS=`echo ${LIBREPLACE_OBJS} |sed -e 's/\.o/\.ho/g'`
89726
89727
89728MAKE_SETTINGS="$MAKE_SETTINGS
89729LIBREPLACE_HOSTCC_CFLAGS = -I../lib/replace
89730LIBREPLACE_HOSTCC_ENABLE = YES
89731LIBREPLACE_HOSTCC_OBJ_FILES = ${LIBREPLACE_HOSTCC_OBJS}
89732"
89733
89734SMB_INFO_SUBSYSTEMS="$SMB_INFO_SUBSYSTEMS
89735###################################
89736# Start Subsystem LIBREPLACE_HOSTCC
89737[SUBSYSTEM::LIBREPLACE_HOSTCC]
89738PRIVATE_DEPENDENCIES =
89739CFLAGS = \$(LIBREPLACE_HOSTCC_CFLAGS)
89740ENABLE = YES
89741# End Subsystem LIBREPLACE_HOSTCC
89742###################################
89743"
89744
89745
89746###############################################
89747# Readline included by default unless explicitly asked not to
89748test "${with_readline+set}" != "set" && with_readline=yes
89749
89750EXTERNAL_READLINE=no
89751# test for where we get readline() from
89752{ $as_echo "$as_me:$LINENO: checking whether to use readline" >&5
89753$as_echo_n "checking whether to use readline... " >&6; }
89754
89755# Check whether --with-readline was given.
89756if test "${with_readline+set}" = set; then
89757  withval=$with_readline;   case "$with_readline" in
89758  yes)
89759    { $as_echo "$as_me:$LINENO: result: yes" >&5
89760$as_echo "yes" >&6; }
89761
89762
89763
89764
89765for ac_header in readline.h history.h readline/readline.h
89766do
89767as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
89768if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
89769  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
89770$as_echo_n "checking for $ac_header... " >&6; }
89771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
89772  $as_echo_n "(cached) " >&6
89773fi
89774ac_res=`eval 'as_val=${'$as_ac_Header'}
89775		 $as_echo "$as_val"'`
89776	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
89777$as_echo "$ac_res" >&6; }
89778else
89779  # Is the header compilable?
89780{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
89781$as_echo_n "checking $ac_header usability... " >&6; }
89782cat >conftest.$ac_ext <<_ACEOF
89783/* confdefs.h.  */
89784_ACEOF
89785cat confdefs.h >>conftest.$ac_ext
89786cat >>conftest.$ac_ext <<_ACEOF
89787/* end confdefs.h.  */
89788$ac_includes_default
89789#include <$ac_header>
89790_ACEOF
89791rm -f conftest.$ac_objext
89792if { (ac_try="$ac_compile"
89793case "(($ac_try" in
89794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89795  *) ac_try_echo=$ac_try;;
89796esac
89797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
89798$as_echo "$ac_try_echo") >&5
89799  (eval "$ac_compile") 2>conftest.er1
89800  ac_status=$?
89801  grep -v '^ *+' conftest.er1 >conftest.err
89802  rm -f conftest.er1
89803  cat conftest.err >&5
89804  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
89805  (exit $ac_status); } && {
89806	 test -z "$ac_c_werror_flag" ||
89807	 test ! -s conftest.err
89808       } && test -s conftest.$ac_objext; then
89809  ac_header_compiler=yes
89810else
89811  $as_echo "$as_me: failed program was:" >&5
89812sed 's/^/| /' conftest.$ac_ext >&5
89813
89814	ac_header_compiler=no
89815fi
89816
89817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89818{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
89819$as_echo "$ac_header_compiler" >&6; }
89820
89821# Is the header present?
89822{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
89823$as_echo_n "checking $ac_header presence... " >&6; }
89824cat >conftest.$ac_ext <<_ACEOF
89825/* confdefs.h.  */
89826_ACEOF
89827cat confdefs.h >>conftest.$ac_ext
89828cat >>conftest.$ac_ext <<_ACEOF
89829/* end confdefs.h.  */
89830#include <$ac_header>
89831_ACEOF
89832if { (ac_try="$ac_cpp conftest.$ac_ext"
89833case "(($ac_try" in
89834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89835  *) ac_try_echo=$ac_try;;
89836esac
89837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
89838$as_echo "$ac_try_echo") >&5
89839  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
89840  ac_status=$?
89841  grep -v '^ *+' conftest.er1 >conftest.err
89842  rm -f conftest.er1
89843  cat conftest.err >&5
89844  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
89845  (exit $ac_status); } >/dev/null && {
89846	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
89847	 test ! -s conftest.err
89848       }; then
89849  ac_header_preproc=yes
89850else
89851  $as_echo "$as_me: failed program was:" >&5
89852sed 's/^/| /' conftest.$ac_ext >&5
89853
89854  ac_header_preproc=no
89855fi
89856
89857rm -f conftest.err conftest.$ac_ext
89858{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
89859$as_echo "$ac_header_preproc" >&6; }
89860
89861# So?  What about this header?
89862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
89863  yes:no: )
89864    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
89865$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
89866    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
89867$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
89868    ac_header_preproc=yes
89869    ;;
89870  no:yes:* )
89871    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
89872$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
89873    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
89874$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
89875    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
89876$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
89877    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
89878$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
89879    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
89880$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
89881    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
89882$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
89883    ( cat <<\_ASBOX
89884## ---------------------------------------- ##
89885## Report this to samba-technical@samba.org ##
89886## ---------------------------------------- ##
89887_ASBOX
89888     ) | sed "s/^/$as_me: WARNING:     /" >&2
89889    ;;
89890esac
89891{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
89892$as_echo_n "checking for $ac_header... " >&6; }
89893if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
89894  $as_echo_n "(cached) " >&6
89895else
89896  eval "$as_ac_Header=\$ac_header_preproc"
89897fi
89898ac_res=`eval 'as_val=${'$as_ac_Header'}
89899		 $as_echo "$as_val"'`
89900	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
89901$as_echo "$ac_res" >&6; }
89902
89903fi
89904as_val=`eval 'as_val=${'$as_ac_Header'}
89905		 $as_echo "$as_val"'`
89906   if test "x$as_val" = x""yes; then
89907  cat >>confdefs.h <<_ACEOF
89908#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
89909_ACEOF
89910
89911fi
89912
89913done
89914
89915
89916for ac_header in readline/history.h
89917do
89918as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
89919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
89920  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
89921$as_echo_n "checking for $ac_header... " >&6; }
89922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
89923  $as_echo_n "(cached) " >&6
89924fi
89925ac_res=`eval 'as_val=${'$as_ac_Header'}
89926		 $as_echo "$as_val"'`
89927	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
89928$as_echo "$ac_res" >&6; }
89929else
89930  # Is the header compilable?
89931{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
89932$as_echo_n "checking $ac_header usability... " >&6; }
89933cat >conftest.$ac_ext <<_ACEOF
89934/* confdefs.h.  */
89935_ACEOF
89936cat confdefs.h >>conftest.$ac_ext
89937cat >>conftest.$ac_ext <<_ACEOF
89938/* end confdefs.h.  */
89939$ac_includes_default
89940#include <$ac_header>
89941_ACEOF
89942rm -f conftest.$ac_objext
89943if { (ac_try="$ac_compile"
89944case "(($ac_try" in
89945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89946  *) ac_try_echo=$ac_try;;
89947esac
89948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
89949$as_echo "$ac_try_echo") >&5
89950  (eval "$ac_compile") 2>conftest.er1
89951  ac_status=$?
89952  grep -v '^ *+' conftest.er1 >conftest.err
89953  rm -f conftest.er1
89954  cat conftest.err >&5
89955  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
89956  (exit $ac_status); } && {
89957	 test -z "$ac_c_werror_flag" ||
89958	 test ! -s conftest.err
89959       } && test -s conftest.$ac_objext; then
89960  ac_header_compiler=yes
89961else
89962  $as_echo "$as_me: failed program was:" >&5
89963sed 's/^/| /' conftest.$ac_ext >&5
89964
89965	ac_header_compiler=no
89966fi
89967
89968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89969{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
89970$as_echo "$ac_header_compiler" >&6; }
89971
89972# Is the header present?
89973{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
89974$as_echo_n "checking $ac_header presence... " >&6; }
89975cat >conftest.$ac_ext <<_ACEOF
89976/* confdefs.h.  */
89977_ACEOF
89978cat confdefs.h >>conftest.$ac_ext
89979cat >>conftest.$ac_ext <<_ACEOF
89980/* end confdefs.h.  */
89981#include <$ac_header>
89982_ACEOF
89983if { (ac_try="$ac_cpp conftest.$ac_ext"
89984case "(($ac_try" in
89985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
89986  *) ac_try_echo=$ac_try;;
89987esac
89988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
89989$as_echo "$ac_try_echo") >&5
89990  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
89991  ac_status=$?
89992  grep -v '^ *+' conftest.er1 >conftest.err
89993  rm -f conftest.er1
89994  cat conftest.err >&5
89995  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
89996  (exit $ac_status); } >/dev/null && {
89997	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
89998	 test ! -s conftest.err
89999       }; then
90000  ac_header_preproc=yes
90001else
90002  $as_echo "$as_me: failed program was:" >&5
90003sed 's/^/| /' conftest.$ac_ext >&5
90004
90005  ac_header_preproc=no
90006fi
90007
90008rm -f conftest.err conftest.$ac_ext
90009{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
90010$as_echo "$ac_header_preproc" >&6; }
90011
90012# So?  What about this header?
90013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
90014  yes:no: )
90015    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
90016$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
90017    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
90018$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
90019    ac_header_preproc=yes
90020    ;;
90021  no:yes:* )
90022    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
90023$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
90024    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
90025$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
90026    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
90027$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
90028    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
90029$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
90030    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
90031$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
90032    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
90033$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
90034    ( cat <<\_ASBOX
90035## ---------------------------------------- ##
90036## Report this to samba-technical@samba.org ##
90037## ---------------------------------------- ##
90038_ASBOX
90039     ) | sed "s/^/$as_me: WARNING:     /" >&2
90040    ;;
90041esac
90042{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
90043$as_echo_n "checking for $ac_header... " >&6; }
90044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
90045  $as_echo_n "(cached) " >&6
90046else
90047  eval "$as_ac_Header=\$ac_header_preproc"
90048fi
90049ac_res=`eval 'as_val=${'$as_ac_Header'}
90050		 $as_echo "$as_val"'`
90051	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
90052$as_echo "$ac_res" >&6; }
90053
90054fi
90055as_val=`eval 'as_val=${'$as_ac_Header'}
90056		 $as_echo "$as_val"'`
90057   if test "x$as_val" = x""yes; then
90058  cat >>confdefs.h <<_ACEOF
90059#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
90060_ACEOF
90061
90062fi
90063
90064done
90065
90066
90067
90068
90069for ac_header in readline.h readline/readline.h
90070do
90071as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
90072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
90073  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
90074$as_echo_n "checking for $ac_header... " >&6; }
90075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
90076  $as_echo_n "(cached) " >&6
90077fi
90078ac_res=`eval 'as_val=${'$as_ac_Header'}
90079		 $as_echo "$as_val"'`
90080	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
90081$as_echo "$ac_res" >&6; }
90082else
90083  # Is the header compilable?
90084{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
90085$as_echo_n "checking $ac_header usability... " >&6; }
90086cat >conftest.$ac_ext <<_ACEOF
90087/* confdefs.h.  */
90088_ACEOF
90089cat confdefs.h >>conftest.$ac_ext
90090cat >>conftest.$ac_ext <<_ACEOF
90091/* end confdefs.h.  */
90092$ac_includes_default
90093#include <$ac_header>
90094_ACEOF
90095rm -f conftest.$ac_objext
90096if { (ac_try="$ac_compile"
90097case "(($ac_try" in
90098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90099  *) ac_try_echo=$ac_try;;
90100esac
90101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90102$as_echo "$ac_try_echo") >&5
90103  (eval "$ac_compile") 2>conftest.er1
90104  ac_status=$?
90105  grep -v '^ *+' conftest.er1 >conftest.err
90106  rm -f conftest.er1
90107  cat conftest.err >&5
90108  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90109  (exit $ac_status); } && {
90110	 test -z "$ac_c_werror_flag" ||
90111	 test ! -s conftest.err
90112       } && test -s conftest.$ac_objext; then
90113  ac_header_compiler=yes
90114else
90115  $as_echo "$as_me: failed program was:" >&5
90116sed 's/^/| /' conftest.$ac_ext >&5
90117
90118	ac_header_compiler=no
90119fi
90120
90121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90122{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
90123$as_echo "$ac_header_compiler" >&6; }
90124
90125# Is the header present?
90126{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
90127$as_echo_n "checking $ac_header presence... " >&6; }
90128cat >conftest.$ac_ext <<_ACEOF
90129/* confdefs.h.  */
90130_ACEOF
90131cat confdefs.h >>conftest.$ac_ext
90132cat >>conftest.$ac_ext <<_ACEOF
90133/* end confdefs.h.  */
90134#include <$ac_header>
90135_ACEOF
90136if { (ac_try="$ac_cpp conftest.$ac_ext"
90137case "(($ac_try" in
90138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90139  *) ac_try_echo=$ac_try;;
90140esac
90141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90142$as_echo "$ac_try_echo") >&5
90143  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
90144  ac_status=$?
90145  grep -v '^ *+' conftest.er1 >conftest.err
90146  rm -f conftest.er1
90147  cat conftest.err >&5
90148  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90149  (exit $ac_status); } >/dev/null && {
90150	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
90151	 test ! -s conftest.err
90152       }; then
90153  ac_header_preproc=yes
90154else
90155  $as_echo "$as_me: failed program was:" >&5
90156sed 's/^/| /' conftest.$ac_ext >&5
90157
90158  ac_header_preproc=no
90159fi
90160
90161rm -f conftest.err conftest.$ac_ext
90162{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
90163$as_echo "$ac_header_preproc" >&6; }
90164
90165# So?  What about this header?
90166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
90167  yes:no: )
90168    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
90169$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
90170    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
90171$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
90172    ac_header_preproc=yes
90173    ;;
90174  no:yes:* )
90175    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
90176$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
90177    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
90178$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
90179    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
90180$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
90181    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
90182$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
90183    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
90184$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
90185    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
90186$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
90187    ( cat <<\_ASBOX
90188## ---------------------------------------- ##
90189## Report this to samba-technical@samba.org ##
90190## ---------------------------------------- ##
90191_ASBOX
90192     ) | sed "s/^/$as_me: WARNING:     /" >&2
90193    ;;
90194esac
90195{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
90196$as_echo_n "checking for $ac_header... " >&6; }
90197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
90198  $as_echo_n "(cached) " >&6
90199else
90200  eval "$as_ac_Header=\$ac_header_preproc"
90201fi
90202ac_res=`eval 'as_val=${'$as_ac_Header'}
90203		 $as_echo "$as_val"'`
90204	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
90205$as_echo "$ac_res" >&6; }
90206
90207fi
90208as_val=`eval 'as_val=${'$as_ac_Header'}
90209		 $as_echo "$as_val"'`
90210   if test "x$as_val" = x""yes; then
90211  cat >>confdefs.h <<_ACEOF
90212#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
90213_ACEOF
90214
90215      for termlib in ncurses curses termcap terminfo termlib tinfo; do
90216       as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
90217{ $as_echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
90218$as_echo_n "checking for tgetent in -l${termlib}... " >&6; }
90219if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
90220  $as_echo_n "(cached) " >&6
90221else
90222  ac_check_lib_save_LIBS=$LIBS
90223LIBS="-l${termlib}  $LIBS"
90224cat >conftest.$ac_ext <<_ACEOF
90225/* confdefs.h.  */
90226_ACEOF
90227cat confdefs.h >>conftest.$ac_ext
90228cat >>conftest.$ac_ext <<_ACEOF
90229/* end confdefs.h.  */
90230
90231/* Override any GCC internal prototype to avoid an error.
90232   Use char because int might match the return type of a GCC
90233   builtin and then its argument prototype would still apply.  */
90234#ifdef __cplusplus
90235extern "C"
90236#endif
90237char tgetent ();
90238int
90239main ()
90240{
90241return tgetent ();
90242  ;
90243  return 0;
90244}
90245_ACEOF
90246rm -f conftest.$ac_objext conftest$ac_exeext
90247if { (ac_try="$ac_link"
90248case "(($ac_try" in
90249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90250  *) ac_try_echo=$ac_try;;
90251esac
90252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90253$as_echo "$ac_try_echo") >&5
90254  (eval "$ac_link") 2>conftest.er1
90255  ac_status=$?
90256  grep -v '^ *+' conftest.er1 >conftest.err
90257  rm -f conftest.er1
90258  cat conftest.err >&5
90259  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90260  (exit $ac_status); } && {
90261	 test -z "$ac_c_werror_flag" ||
90262	 test ! -s conftest.err
90263       } && test -s conftest$ac_exeext && {
90264	 test "$cross_compiling" = yes ||
90265	 $as_test_x conftest$ac_exeext
90266       }; then
90267  eval "$as_ac_Lib=yes"
90268else
90269  $as_echo "$as_me: failed program was:" >&5
90270sed 's/^/| /' conftest.$ac_ext >&5
90271
90272	eval "$as_ac_Lib=no"
90273fi
90274
90275rm -rf conftest.dSYM
90276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
90277      conftest$ac_exeext conftest.$ac_ext
90278LIBS=$ac_check_lib_save_LIBS
90279fi
90280ac_res=`eval 'as_val=${'$as_ac_Lib'}
90281		 $as_echo "$as_val"'`
90282	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
90283$as_echo "$ac_res" >&6; }
90284as_val=`eval 'as_val=${'$as_ac_Lib'}
90285		 $as_echo "$as_val"'`
90286   if test "x$as_val" = x""yes; then
90287  TERMLIBS="-l${termlib}"; break
90288fi
90289
90290      done
90291      { $as_echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
90292$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
90293if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
90294  $as_echo_n "(cached) " >&6
90295else
90296  ac_check_lib_save_LIBS=$LIBS
90297LIBS="-lreadline $TERMLIBS $LIBS"
90298cat >conftest.$ac_ext <<_ACEOF
90299/* confdefs.h.  */
90300_ACEOF
90301cat confdefs.h >>conftest.$ac_ext
90302cat >>conftest.$ac_ext <<_ACEOF
90303/* end confdefs.h.  */
90304
90305/* Override any GCC internal prototype to avoid an error.
90306   Use char because int might match the return type of a GCC
90307   builtin and then its argument prototype would still apply.  */
90308#ifdef __cplusplus
90309extern "C"
90310#endif
90311char rl_callback_handler_install ();
90312int
90313main ()
90314{
90315return rl_callback_handler_install ();
90316  ;
90317  return 0;
90318}
90319_ACEOF
90320rm -f conftest.$ac_objext conftest$ac_exeext
90321if { (ac_try="$ac_link"
90322case "(($ac_try" in
90323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90324  *) ac_try_echo=$ac_try;;
90325esac
90326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90327$as_echo "$ac_try_echo") >&5
90328  (eval "$ac_link") 2>conftest.er1
90329  ac_status=$?
90330  grep -v '^ *+' conftest.er1 >conftest.err
90331  rm -f conftest.er1
90332  cat conftest.err >&5
90333  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90334  (exit $ac_status); } && {
90335	 test -z "$ac_c_werror_flag" ||
90336	 test ! -s conftest.err
90337       } && test -s conftest$ac_exeext && {
90338	 test "$cross_compiling" = yes ||
90339	 $as_test_x conftest$ac_exeext
90340       }; then
90341  ac_cv_lib_readline_rl_callback_handler_install=yes
90342else
90343  $as_echo "$as_me: failed program was:" >&5
90344sed 's/^/| /' conftest.$ac_ext >&5
90345
90346	ac_cv_lib_readline_rl_callback_handler_install=no
90347fi
90348
90349rm -rf conftest.dSYM
90350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
90351      conftest$ac_exeext conftest.$ac_ext
90352LIBS=$ac_check_lib_save_LIBS
90353fi
90354{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
90355$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
90356if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then
90357  TERMLIBS="-lreadline $TERMLIBS"
90358       EXTERNAL_READLINE=yes
90359       break
90360else
90361  TERMLIBS=
90362fi
90363
90364fi
90365
90366done
90367
90368    ;;
90369  no)
90370    { $as_echo "$as_me:$LINENO: result: no" >&5
90371$as_echo "no" >&6; }
90372    ;;
90373  *)
90374    { $as_echo "$as_me:$LINENO: result: yes" >&5
90375$as_echo "yes" >&6; }
90376
90377    # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
90378    # alternate readline path
90379    _ldflags=${LDFLAGS}
90380    _cppflags=${CPPFLAGS}
90381
90382    # Add additional search path
90383    LDFLAGS="-L$with_readline/lib $LDFLAGS"
90384    CPPFLAGS="-I$with_readline/include $CPPFLAGS"
90385
90386
90387
90388
90389for ac_header in readline.h history.h readline/readline.h
90390do
90391as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
90392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
90393  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
90394$as_echo_n "checking for $ac_header... " >&6; }
90395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
90396  $as_echo_n "(cached) " >&6
90397fi
90398ac_res=`eval 'as_val=${'$as_ac_Header'}
90399		 $as_echo "$as_val"'`
90400	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
90401$as_echo "$ac_res" >&6; }
90402else
90403  # Is the header compilable?
90404{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
90405$as_echo_n "checking $ac_header usability... " >&6; }
90406cat >conftest.$ac_ext <<_ACEOF
90407/* confdefs.h.  */
90408_ACEOF
90409cat confdefs.h >>conftest.$ac_ext
90410cat >>conftest.$ac_ext <<_ACEOF
90411/* end confdefs.h.  */
90412$ac_includes_default
90413#include <$ac_header>
90414_ACEOF
90415rm -f conftest.$ac_objext
90416if { (ac_try="$ac_compile"
90417case "(($ac_try" in
90418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90419  *) ac_try_echo=$ac_try;;
90420esac
90421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90422$as_echo "$ac_try_echo") >&5
90423  (eval "$ac_compile") 2>conftest.er1
90424  ac_status=$?
90425  grep -v '^ *+' conftest.er1 >conftest.err
90426  rm -f conftest.er1
90427  cat conftest.err >&5
90428  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90429  (exit $ac_status); } && {
90430	 test -z "$ac_c_werror_flag" ||
90431	 test ! -s conftest.err
90432       } && test -s conftest.$ac_objext; then
90433  ac_header_compiler=yes
90434else
90435  $as_echo "$as_me: failed program was:" >&5
90436sed 's/^/| /' conftest.$ac_ext >&5
90437
90438	ac_header_compiler=no
90439fi
90440
90441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90442{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
90443$as_echo "$ac_header_compiler" >&6; }
90444
90445# Is the header present?
90446{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
90447$as_echo_n "checking $ac_header presence... " >&6; }
90448cat >conftest.$ac_ext <<_ACEOF
90449/* confdefs.h.  */
90450_ACEOF
90451cat confdefs.h >>conftest.$ac_ext
90452cat >>conftest.$ac_ext <<_ACEOF
90453/* end confdefs.h.  */
90454#include <$ac_header>
90455_ACEOF
90456if { (ac_try="$ac_cpp conftest.$ac_ext"
90457case "(($ac_try" in
90458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90459  *) ac_try_echo=$ac_try;;
90460esac
90461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90462$as_echo "$ac_try_echo") >&5
90463  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
90464  ac_status=$?
90465  grep -v '^ *+' conftest.er1 >conftest.err
90466  rm -f conftest.er1
90467  cat conftest.err >&5
90468  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90469  (exit $ac_status); } >/dev/null && {
90470	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
90471	 test ! -s conftest.err
90472       }; then
90473  ac_header_preproc=yes
90474else
90475  $as_echo "$as_me: failed program was:" >&5
90476sed 's/^/| /' conftest.$ac_ext >&5
90477
90478  ac_header_preproc=no
90479fi
90480
90481rm -f conftest.err conftest.$ac_ext
90482{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
90483$as_echo "$ac_header_preproc" >&6; }
90484
90485# So?  What about this header?
90486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
90487  yes:no: )
90488    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
90489$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
90490    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
90491$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
90492    ac_header_preproc=yes
90493    ;;
90494  no:yes:* )
90495    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
90496$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
90497    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
90498$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
90499    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
90500$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
90501    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
90502$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
90503    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
90504$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
90505    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
90506$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
90507    ( cat <<\_ASBOX
90508## ---------------------------------------- ##
90509## Report this to samba-technical@samba.org ##
90510## ---------------------------------------- ##
90511_ASBOX
90512     ) | sed "s/^/$as_me: WARNING:     /" >&2
90513    ;;
90514esac
90515{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
90516$as_echo_n "checking for $ac_header... " >&6; }
90517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
90518  $as_echo_n "(cached) " >&6
90519else
90520  eval "$as_ac_Header=\$ac_header_preproc"
90521fi
90522ac_res=`eval 'as_val=${'$as_ac_Header'}
90523		 $as_echo "$as_val"'`
90524	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
90525$as_echo "$ac_res" >&6; }
90526
90527fi
90528as_val=`eval 'as_val=${'$as_ac_Header'}
90529		 $as_echo "$as_val"'`
90530   if test "x$as_val" = x""yes; then
90531  cat >>confdefs.h <<_ACEOF
90532#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
90533_ACEOF
90534
90535fi
90536
90537done
90538
90539
90540for ac_header in readline/history.h
90541do
90542as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
90543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
90544  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
90545$as_echo_n "checking for $ac_header... " >&6; }
90546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
90547  $as_echo_n "(cached) " >&6
90548fi
90549ac_res=`eval 'as_val=${'$as_ac_Header'}
90550		 $as_echo "$as_val"'`
90551	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
90552$as_echo "$ac_res" >&6; }
90553else
90554  # Is the header compilable?
90555{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
90556$as_echo_n "checking $ac_header usability... " >&6; }
90557cat >conftest.$ac_ext <<_ACEOF
90558/* confdefs.h.  */
90559_ACEOF
90560cat confdefs.h >>conftest.$ac_ext
90561cat >>conftest.$ac_ext <<_ACEOF
90562/* end confdefs.h.  */
90563$ac_includes_default
90564#include <$ac_header>
90565_ACEOF
90566rm -f conftest.$ac_objext
90567if { (ac_try="$ac_compile"
90568case "(($ac_try" in
90569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90570  *) ac_try_echo=$ac_try;;
90571esac
90572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90573$as_echo "$ac_try_echo") >&5
90574  (eval "$ac_compile") 2>conftest.er1
90575  ac_status=$?
90576  grep -v '^ *+' conftest.er1 >conftest.err
90577  rm -f conftest.er1
90578  cat conftest.err >&5
90579  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90580  (exit $ac_status); } && {
90581	 test -z "$ac_c_werror_flag" ||
90582	 test ! -s conftest.err
90583       } && test -s conftest.$ac_objext; then
90584  ac_header_compiler=yes
90585else
90586  $as_echo "$as_me: failed program was:" >&5
90587sed 's/^/| /' conftest.$ac_ext >&5
90588
90589	ac_header_compiler=no
90590fi
90591
90592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90593{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
90594$as_echo "$ac_header_compiler" >&6; }
90595
90596# Is the header present?
90597{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
90598$as_echo_n "checking $ac_header presence... " >&6; }
90599cat >conftest.$ac_ext <<_ACEOF
90600/* confdefs.h.  */
90601_ACEOF
90602cat confdefs.h >>conftest.$ac_ext
90603cat >>conftest.$ac_ext <<_ACEOF
90604/* end confdefs.h.  */
90605#include <$ac_header>
90606_ACEOF
90607if { (ac_try="$ac_cpp conftest.$ac_ext"
90608case "(($ac_try" in
90609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90610  *) ac_try_echo=$ac_try;;
90611esac
90612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90613$as_echo "$ac_try_echo") >&5
90614  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
90615  ac_status=$?
90616  grep -v '^ *+' conftest.er1 >conftest.err
90617  rm -f conftest.er1
90618  cat conftest.err >&5
90619  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90620  (exit $ac_status); } >/dev/null && {
90621	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
90622	 test ! -s conftest.err
90623       }; then
90624  ac_header_preproc=yes
90625else
90626  $as_echo "$as_me: failed program was:" >&5
90627sed 's/^/| /' conftest.$ac_ext >&5
90628
90629  ac_header_preproc=no
90630fi
90631
90632rm -f conftest.err conftest.$ac_ext
90633{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
90634$as_echo "$ac_header_preproc" >&6; }
90635
90636# So?  What about this header?
90637case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
90638  yes:no: )
90639    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
90640$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
90641    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
90642$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
90643    ac_header_preproc=yes
90644    ;;
90645  no:yes:* )
90646    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
90647$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
90648    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
90649$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
90650    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
90651$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
90652    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
90653$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
90654    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
90655$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
90656    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
90657$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
90658    ( cat <<\_ASBOX
90659## ---------------------------------------- ##
90660## Report this to samba-technical@samba.org ##
90661## ---------------------------------------- ##
90662_ASBOX
90663     ) | sed "s/^/$as_me: WARNING:     /" >&2
90664    ;;
90665esac
90666{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
90667$as_echo_n "checking for $ac_header... " >&6; }
90668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
90669  $as_echo_n "(cached) " >&6
90670else
90671  eval "$as_ac_Header=\$ac_header_preproc"
90672fi
90673ac_res=`eval 'as_val=${'$as_ac_Header'}
90674		 $as_echo "$as_val"'`
90675	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
90676$as_echo "$ac_res" >&6; }
90677
90678fi
90679as_val=`eval 'as_val=${'$as_ac_Header'}
90680		 $as_echo "$as_val"'`
90681   if test "x$as_val" = x""yes; then
90682  cat >>confdefs.h <<_ACEOF
90683#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
90684_ACEOF
90685
90686fi
90687
90688done
90689
90690
90691
90692
90693for ac_header in readline.h readline/readline.h
90694do
90695as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
90696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
90697  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
90698$as_echo_n "checking for $ac_header... " >&6; }
90699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
90700  $as_echo_n "(cached) " >&6
90701fi
90702ac_res=`eval 'as_val=${'$as_ac_Header'}
90703		 $as_echo "$as_val"'`
90704	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
90705$as_echo "$ac_res" >&6; }
90706else
90707  # Is the header compilable?
90708{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
90709$as_echo_n "checking $ac_header usability... " >&6; }
90710cat >conftest.$ac_ext <<_ACEOF
90711/* confdefs.h.  */
90712_ACEOF
90713cat confdefs.h >>conftest.$ac_ext
90714cat >>conftest.$ac_ext <<_ACEOF
90715/* end confdefs.h.  */
90716$ac_includes_default
90717#include <$ac_header>
90718_ACEOF
90719rm -f conftest.$ac_objext
90720if { (ac_try="$ac_compile"
90721case "(($ac_try" in
90722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90723  *) ac_try_echo=$ac_try;;
90724esac
90725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90726$as_echo "$ac_try_echo") >&5
90727  (eval "$ac_compile") 2>conftest.er1
90728  ac_status=$?
90729  grep -v '^ *+' conftest.er1 >conftest.err
90730  rm -f conftest.er1
90731  cat conftest.err >&5
90732  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90733  (exit $ac_status); } && {
90734	 test -z "$ac_c_werror_flag" ||
90735	 test ! -s conftest.err
90736       } && test -s conftest.$ac_objext; then
90737  ac_header_compiler=yes
90738else
90739  $as_echo "$as_me: failed program was:" >&5
90740sed 's/^/| /' conftest.$ac_ext >&5
90741
90742	ac_header_compiler=no
90743fi
90744
90745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90746{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
90747$as_echo "$ac_header_compiler" >&6; }
90748
90749# Is the header present?
90750{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
90751$as_echo_n "checking $ac_header presence... " >&6; }
90752cat >conftest.$ac_ext <<_ACEOF
90753/* confdefs.h.  */
90754_ACEOF
90755cat confdefs.h >>conftest.$ac_ext
90756cat >>conftest.$ac_ext <<_ACEOF
90757/* end confdefs.h.  */
90758#include <$ac_header>
90759_ACEOF
90760if { (ac_try="$ac_cpp conftest.$ac_ext"
90761case "(($ac_try" in
90762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90763  *) ac_try_echo=$ac_try;;
90764esac
90765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90766$as_echo "$ac_try_echo") >&5
90767  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
90768  ac_status=$?
90769  grep -v '^ *+' conftest.er1 >conftest.err
90770  rm -f conftest.er1
90771  cat conftest.err >&5
90772  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90773  (exit $ac_status); } >/dev/null && {
90774	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
90775	 test ! -s conftest.err
90776       }; then
90777  ac_header_preproc=yes
90778else
90779  $as_echo "$as_me: failed program was:" >&5
90780sed 's/^/| /' conftest.$ac_ext >&5
90781
90782  ac_header_preproc=no
90783fi
90784
90785rm -f conftest.err conftest.$ac_ext
90786{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
90787$as_echo "$ac_header_preproc" >&6; }
90788
90789# So?  What about this header?
90790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
90791  yes:no: )
90792    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
90793$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
90794    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
90795$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
90796    ac_header_preproc=yes
90797    ;;
90798  no:yes:* )
90799    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
90800$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
90801    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
90802$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
90803    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
90804$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
90805    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
90806$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
90807    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
90808$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
90809    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
90810$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
90811    ( cat <<\_ASBOX
90812## ---------------------------------------- ##
90813## Report this to samba-technical@samba.org ##
90814## ---------------------------------------- ##
90815_ASBOX
90816     ) | sed "s/^/$as_me: WARNING:     /" >&2
90817    ;;
90818esac
90819{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
90820$as_echo_n "checking for $ac_header... " >&6; }
90821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
90822  $as_echo_n "(cached) " >&6
90823else
90824  eval "$as_ac_Header=\$ac_header_preproc"
90825fi
90826ac_res=`eval 'as_val=${'$as_ac_Header'}
90827		 $as_echo "$as_val"'`
90828	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
90829$as_echo "$ac_res" >&6; }
90830
90831fi
90832as_val=`eval 'as_val=${'$as_ac_Header'}
90833		 $as_echo "$as_val"'`
90834   if test "x$as_val" = x""yes; then
90835  cat >>confdefs.h <<_ACEOF
90836#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
90837_ACEOF
90838
90839      for termlib in ncurses curses termcap terminfo termlib; do
90840       as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
90841{ $as_echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
90842$as_echo_n "checking for tgetent in -l${termlib}... " >&6; }
90843if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
90844  $as_echo_n "(cached) " >&6
90845else
90846  ac_check_lib_save_LIBS=$LIBS
90847LIBS="-l${termlib}  $LIBS"
90848cat >conftest.$ac_ext <<_ACEOF
90849/* confdefs.h.  */
90850_ACEOF
90851cat confdefs.h >>conftest.$ac_ext
90852cat >>conftest.$ac_ext <<_ACEOF
90853/* end confdefs.h.  */
90854
90855/* Override any GCC internal prototype to avoid an error.
90856   Use char because int might match the return type of a GCC
90857   builtin and then its argument prototype would still apply.  */
90858#ifdef __cplusplus
90859extern "C"
90860#endif
90861char tgetent ();
90862int
90863main ()
90864{
90865return tgetent ();
90866  ;
90867  return 0;
90868}
90869_ACEOF
90870rm -f conftest.$ac_objext conftest$ac_exeext
90871if { (ac_try="$ac_link"
90872case "(($ac_try" in
90873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90874  *) ac_try_echo=$ac_try;;
90875esac
90876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90877$as_echo "$ac_try_echo") >&5
90878  (eval "$ac_link") 2>conftest.er1
90879  ac_status=$?
90880  grep -v '^ *+' conftest.er1 >conftest.err
90881  rm -f conftest.er1
90882  cat conftest.err >&5
90883  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90884  (exit $ac_status); } && {
90885	 test -z "$ac_c_werror_flag" ||
90886	 test ! -s conftest.err
90887       } && test -s conftest$ac_exeext && {
90888	 test "$cross_compiling" = yes ||
90889	 $as_test_x conftest$ac_exeext
90890       }; then
90891  eval "$as_ac_Lib=yes"
90892else
90893  $as_echo "$as_me: failed program was:" >&5
90894sed 's/^/| /' conftest.$ac_ext >&5
90895
90896	eval "$as_ac_Lib=no"
90897fi
90898
90899rm -rf conftest.dSYM
90900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
90901      conftest$ac_exeext conftest.$ac_ext
90902LIBS=$ac_check_lib_save_LIBS
90903fi
90904ac_res=`eval 'as_val=${'$as_ac_Lib'}
90905		 $as_echo "$as_val"'`
90906	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
90907$as_echo "$ac_res" >&6; }
90908as_val=`eval 'as_val=${'$as_ac_Lib'}
90909		 $as_echo "$as_val"'`
90910   if test "x$as_val" = x""yes; then
90911  TERMLIBS="-l${termlib}"; break
90912fi
90913
90914      done
90915      { $as_echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
90916$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
90917if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
90918  $as_echo_n "(cached) " >&6
90919else
90920  ac_check_lib_save_LIBS=$LIBS
90921LIBS="-lreadline $TERMLIBS $LIBS"
90922cat >conftest.$ac_ext <<_ACEOF
90923/* confdefs.h.  */
90924_ACEOF
90925cat confdefs.h >>conftest.$ac_ext
90926cat >>conftest.$ac_ext <<_ACEOF
90927/* end confdefs.h.  */
90928
90929/* Override any GCC internal prototype to avoid an error.
90930   Use char because int might match the return type of a GCC
90931   builtin and then its argument prototype would still apply.  */
90932#ifdef __cplusplus
90933extern "C"
90934#endif
90935char rl_callback_handler_install ();
90936int
90937main ()
90938{
90939return rl_callback_handler_install ();
90940  ;
90941  return 0;
90942}
90943_ACEOF
90944rm -f conftest.$ac_objext conftest$ac_exeext
90945if { (ac_try="$ac_link"
90946case "(($ac_try" in
90947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
90948  *) ac_try_echo=$ac_try;;
90949esac
90950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
90951$as_echo "$ac_try_echo") >&5
90952  (eval "$ac_link") 2>conftest.er1
90953  ac_status=$?
90954  grep -v '^ *+' conftest.er1 >conftest.err
90955  rm -f conftest.er1
90956  cat conftest.err >&5
90957  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
90958  (exit $ac_status); } && {
90959	 test -z "$ac_c_werror_flag" ||
90960	 test ! -s conftest.err
90961       } && test -s conftest$ac_exeext && {
90962	 test "$cross_compiling" = yes ||
90963	 $as_test_x conftest$ac_exeext
90964       }; then
90965  ac_cv_lib_readline_rl_callback_handler_install=yes
90966else
90967  $as_echo "$as_me: failed program was:" >&5
90968sed 's/^/| /' conftest.$ac_ext >&5
90969
90970	ac_cv_lib_readline_rl_callback_handler_install=no
90971fi
90972
90973rm -rf conftest.dSYM
90974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
90975      conftest$ac_exeext conftest.$ac_ext
90976LIBS=$ac_check_lib_save_LIBS
90977fi
90978{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
90979$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
90980if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then
90981  TERMLDFLAGS="-L$with_readline/lib"
90982       TERMCPPFLAGS="-I$with_readline/include"
90983       LDFLAGS="-L$with_readline/lib $LDFLAGS"
90984       CPPFLAGS="-I$with_readline/include $CPPFLAGS"
90985       TERMLIBS="-lreadline $TERMLIBS"
90986       EXTERNAL_READLINE=yes
90987       break
90988else
90989  TERMLIBS= CPPFLAGS=$_cppflags
90990fi
90991
90992fi
90993
90994done
90995
90996
90997    ;;
90998  esac
90999else
91000  { $as_echo "$as_me:$LINENO: result: no" >&5
91001$as_echo "no" >&6; }
91002
91003fi
91004
91005
91006# The readline API changed slightly from readline3 to readline4, so
91007# code will generate warnings on one of them unless we have a few
91008# special cases.
91009{ $as_echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
91010$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
91011if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
91012  $as_echo_n "(cached) " >&6
91013else
91014  ac_check_lib_save_LIBS=$LIBS
91015LIBS="-lreadline $TERMLIBS $LIBS"
91016cat >conftest.$ac_ext <<_ACEOF
91017/* confdefs.h.  */
91018_ACEOF
91019cat confdefs.h >>conftest.$ac_ext
91020cat >>conftest.$ac_ext <<_ACEOF
91021/* end confdefs.h.  */
91022
91023/* Override any GCC internal prototype to avoid an error.
91024   Use char because int might match the return type of a GCC
91025   builtin and then its argument prototype would still apply.  */
91026#ifdef __cplusplus
91027extern "C"
91028#endif
91029char rl_completion_matches ();
91030int
91031main ()
91032{
91033return rl_completion_matches ();
91034  ;
91035  return 0;
91036}
91037_ACEOF
91038rm -f conftest.$ac_objext conftest$ac_exeext
91039if { (ac_try="$ac_link"
91040case "(($ac_try" in
91041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91042  *) ac_try_echo=$ac_try;;
91043esac
91044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91045$as_echo "$ac_try_echo") >&5
91046  (eval "$ac_link") 2>conftest.er1
91047  ac_status=$?
91048  grep -v '^ *+' conftest.er1 >conftest.err
91049  rm -f conftest.er1
91050  cat conftest.err >&5
91051  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91052  (exit $ac_status); } && {
91053	 test -z "$ac_c_werror_flag" ||
91054	 test ! -s conftest.err
91055       } && test -s conftest$ac_exeext && {
91056	 test "$cross_compiling" = yes ||
91057	 $as_test_x conftest$ac_exeext
91058       }; then
91059  ac_cv_lib_readline_rl_completion_matches=yes
91060else
91061  $as_echo "$as_me: failed program was:" >&5
91062sed 's/^/| /' conftest.$ac_ext >&5
91063
91064	ac_cv_lib_readline_rl_completion_matches=no
91065fi
91066
91067rm -rf conftest.dSYM
91068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
91069      conftest$ac_exeext conftest.$ac_ext
91070LIBS=$ac_check_lib_save_LIBS
91071fi
91072{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
91073$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
91074if test "x$ac_cv_lib_readline_rl_completion_matches" = x""yes; then
91075
91076cat >>confdefs.h <<\_ACEOF
91077#define HAVE_NEW_LIBREADLINE 1
91078_ACEOF
91079
91080fi
91081
91082
91083# not all readline libs have rl_event_hook or history_list
91084{ $as_echo "$as_me:$LINENO: checking whether rl_event_hook is declared" >&5
91085$as_echo_n "checking whether rl_event_hook is declared... " >&6; }
91086if test "${ac_cv_have_decl_rl_event_hook+set}" = set; then
91087  $as_echo_n "(cached) " >&6
91088else
91089  cat >conftest.$ac_ext <<_ACEOF
91090/* confdefs.h.  */
91091_ACEOF
91092cat confdefs.h >>conftest.$ac_ext
91093cat >>conftest.$ac_ext <<_ACEOF
91094/* end confdefs.h.  */
91095
91096    #include <stdio.h>
91097    #include <readline/readline.h>
91098
91099
91100int
91101main ()
91102{
91103#ifndef rl_event_hook
91104  (void) rl_event_hook;
91105#endif
91106
91107  ;
91108  return 0;
91109}
91110_ACEOF
91111rm -f conftest.$ac_objext
91112if { (ac_try="$ac_compile"
91113case "(($ac_try" in
91114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91115  *) ac_try_echo=$ac_try;;
91116esac
91117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91118$as_echo "$ac_try_echo") >&5
91119  (eval "$ac_compile") 2>conftest.er1
91120  ac_status=$?
91121  grep -v '^ *+' conftest.er1 >conftest.err
91122  rm -f conftest.er1
91123  cat conftest.err >&5
91124  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91125  (exit $ac_status); } && {
91126	 test -z "$ac_c_werror_flag" ||
91127	 test ! -s conftest.err
91128       } && test -s conftest.$ac_objext; then
91129  ac_cv_have_decl_rl_event_hook=yes
91130else
91131  $as_echo "$as_me: failed program was:" >&5
91132sed 's/^/| /' conftest.$ac_ext >&5
91133
91134	ac_cv_have_decl_rl_event_hook=no
91135fi
91136
91137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91138fi
91139{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_event_hook" >&5
91140$as_echo "$ac_cv_have_decl_rl_event_hook" >&6; }
91141if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then
91142
91143cat >>confdefs.h <<_ACEOF
91144#define HAVE_DECL_RL_EVENT_HOOK 1
91145_ACEOF
91146
91147
91148else
91149  cat >>confdefs.h <<_ACEOF
91150#define HAVE_DECL_RL_EVENT_HOOK 0
91151_ACEOF
91152
91153
91154fi
91155
91156
91157{ $as_echo "$as_me:$LINENO: checking for history_list in -lreadline" >&5
91158$as_echo_n "checking for history_list in -lreadline... " >&6; }
91159if test "${ac_cv_lib_readline_history_list+set}" = set; then
91160  $as_echo_n "(cached) " >&6
91161else
91162  ac_check_lib_save_LIBS=$LIBS
91163LIBS="-lreadline $TERMLIBS $LIBS"
91164cat >conftest.$ac_ext <<_ACEOF
91165/* confdefs.h.  */
91166_ACEOF
91167cat confdefs.h >>conftest.$ac_ext
91168cat >>conftest.$ac_ext <<_ACEOF
91169/* end confdefs.h.  */
91170
91171/* Override any GCC internal prototype to avoid an error.
91172   Use char because int might match the return type of a GCC
91173   builtin and then its argument prototype would still apply.  */
91174#ifdef __cplusplus
91175extern "C"
91176#endif
91177char history_list ();
91178int
91179main ()
91180{
91181return history_list ();
91182  ;
91183  return 0;
91184}
91185_ACEOF
91186rm -f conftest.$ac_objext conftest$ac_exeext
91187if { (ac_try="$ac_link"
91188case "(($ac_try" in
91189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91190  *) ac_try_echo=$ac_try;;
91191esac
91192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91193$as_echo "$ac_try_echo") >&5
91194  (eval "$ac_link") 2>conftest.er1
91195  ac_status=$?
91196  grep -v '^ *+' conftest.er1 >conftest.err
91197  rm -f conftest.er1
91198  cat conftest.err >&5
91199  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91200  (exit $ac_status); } && {
91201	 test -z "$ac_c_werror_flag" ||
91202	 test ! -s conftest.err
91203       } && test -s conftest$ac_exeext && {
91204	 test "$cross_compiling" = yes ||
91205	 $as_test_x conftest$ac_exeext
91206       }; then
91207  ac_cv_lib_readline_history_list=yes
91208else
91209  $as_echo "$as_me: failed program was:" >&5
91210sed 's/^/| /' conftest.$ac_ext >&5
91211
91212	ac_cv_lib_readline_history_list=no
91213fi
91214
91215rm -rf conftest.dSYM
91216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
91217      conftest$ac_exeext conftest.$ac_ext
91218LIBS=$ac_check_lib_save_LIBS
91219fi
91220{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history_list" >&5
91221$as_echo "$ac_cv_lib_readline_history_list" >&6; }
91222if test "x$ac_cv_lib_readline_history_list" = x""yes; then
91223
91224cat >>confdefs.h <<\_ACEOF
91225#define HAVE_HISTORY_LIST 1
91226_ACEOF
91227
91228fi
91229
91230
91231{ $as_echo "$as_me:$LINENO: checking whether to use extern readline" >&5
91232$as_echo_n "checking whether to use extern readline... " >&6; }
91233if test x"$EXTERNAL_READLINE" = x"yes"; then
91234	{ $as_echo "$as_me:$LINENO: result: yes" >&5
91235$as_echo "yes" >&6; }
91236
91237cat >>confdefs.h <<\_ACEOF
91238#define HAVE_LIBREADLINE 1
91239_ACEOF
91240
91241
91242MAKE_SETTINGS="$MAKE_SETTINGS
91243SMBREADLINE_CFLAGS =
91244SMBREADLINE_ENABLE = YES
91245SMBREADLINE_OBJ_FILES = \$(smbreadlinesrcdir)/smbreadline.o
91246"
91247
91248SMB_INFO_SUBSYSTEMS="$SMB_INFO_SUBSYSTEMS
91249###################################
91250# Start Subsystem SMBREADLINE
91251[SUBSYSTEM::SMBREADLINE]
91252PRIVATE_DEPENDENCIES = READLINE
91253CFLAGS = \$(SMBREADLINE_CFLAGS)
91254ENABLE = YES
91255# End Subsystem SMBREADLINE
91256###################################
91257"
91258
91259
91260MAKE_SETTINGS="$MAKE_SETTINGS
91261READLINE_LIBS = ${TERMLIBS}
91262READLINE_CFLAGS =
91263READLINE_CPPFLAGS =
91264READLINE_LDFLAGS =
91265"
91266
91267
91268
91269	MAKE_SETTINGS="$MAKE_SETTINGS
91270READLINE_ENABLE = YES
91271"
91272SMB_INFO_ENABLES="$SMB_INFO_ENABLES
91273\$enabled{\"READLINE\"} = \"YES\";"
91274
91275else
91276
91277MAKE_SETTINGS="$MAKE_SETTINGS
91278SMBREADLINE_CFLAGS =
91279SMBREADLINE_ENABLE = YES
91280SMBREADLINE_OBJ_FILES = \$(smbreadlinesrcdir)/smbreadline.o
91281"
91282
91283SMB_INFO_SUBSYSTEMS="$SMB_INFO_SUBSYSTEMS
91284###################################
91285# Start Subsystem SMBREADLINE
91286[SUBSYSTEM::SMBREADLINE]
91287PRIVATE_DEPENDENCIES =
91288CFLAGS = \$(SMBREADLINE_CFLAGS)
91289ENABLE = YES
91290# End Subsystem SMBREADLINE
91291###################################
91292"
91293
91294	{ $as_echo "$as_me:$LINENO: result: no" >&5
91295$as_echo "no" >&6; }
91296fi
91297
91298
91299
91300
91301
91302
91303{ $as_echo "$as_me:$LINENO: checking for u_char" >&5
91304$as_echo_n "checking for u_char... " >&6; }
91305if test "${ac_cv_type_u_char+set}" = set; then
91306  $as_echo_n "(cached) " >&6
91307else
91308  ac_cv_type_u_char=no
91309cat >conftest.$ac_ext <<_ACEOF
91310/* confdefs.h.  */
91311_ACEOF
91312cat confdefs.h >>conftest.$ac_ext
91313cat >>conftest.$ac_ext <<_ACEOF
91314/* end confdefs.h.  */
91315$ac_includes_default
91316int
91317main ()
91318{
91319if (sizeof (u_char))
91320       return 0;
91321  ;
91322  return 0;
91323}
91324_ACEOF
91325rm -f conftest.$ac_objext
91326if { (ac_try="$ac_compile"
91327case "(($ac_try" in
91328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91329  *) ac_try_echo=$ac_try;;
91330esac
91331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91332$as_echo "$ac_try_echo") >&5
91333  (eval "$ac_compile") 2>conftest.er1
91334  ac_status=$?
91335  grep -v '^ *+' conftest.er1 >conftest.err
91336  rm -f conftest.er1
91337  cat conftest.err >&5
91338  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91339  (exit $ac_status); } && {
91340	 test -z "$ac_c_werror_flag" ||
91341	 test ! -s conftest.err
91342       } && test -s conftest.$ac_objext; then
91343  cat >conftest.$ac_ext <<_ACEOF
91344/* confdefs.h.  */
91345_ACEOF
91346cat confdefs.h >>conftest.$ac_ext
91347cat >>conftest.$ac_ext <<_ACEOF
91348/* end confdefs.h.  */
91349$ac_includes_default
91350int
91351main ()
91352{
91353if (sizeof ((u_char)))
91354	  return 0;
91355  ;
91356  return 0;
91357}
91358_ACEOF
91359rm -f conftest.$ac_objext
91360if { (ac_try="$ac_compile"
91361case "(($ac_try" in
91362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91363  *) ac_try_echo=$ac_try;;
91364esac
91365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91366$as_echo "$ac_try_echo") >&5
91367  (eval "$ac_compile") 2>conftest.er1
91368  ac_status=$?
91369  grep -v '^ *+' conftest.er1 >conftest.err
91370  rm -f conftest.er1
91371  cat conftest.err >&5
91372  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91373  (exit $ac_status); } && {
91374	 test -z "$ac_c_werror_flag" ||
91375	 test ! -s conftest.err
91376       } && test -s conftest.$ac_objext; then
91377  :
91378else
91379  $as_echo "$as_me: failed program was:" >&5
91380sed 's/^/| /' conftest.$ac_ext >&5
91381
91382	ac_cv_type_u_char=yes
91383fi
91384
91385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91386else
91387  $as_echo "$as_me: failed program was:" >&5
91388sed 's/^/| /' conftest.$ac_ext >&5
91389
91390
91391fi
91392
91393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91394fi
91395{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
91396$as_echo "$ac_cv_type_u_char" >&6; }
91397if test "x$ac_cv_type_u_char" = x""yes; then
91398  :
91399else
91400
91401cat >>confdefs.h <<_ACEOF
91402#define u_char uint8_t
91403_ACEOF
91404
91405fi
91406
91407{ $as_echo "$as_me:$LINENO: checking for u_int32_t" >&5
91408$as_echo_n "checking for u_int32_t... " >&6; }
91409if test "${ac_cv_type_u_int32_t+set}" = set; then
91410  $as_echo_n "(cached) " >&6
91411else
91412  ac_cv_type_u_int32_t=no
91413cat >conftest.$ac_ext <<_ACEOF
91414/* confdefs.h.  */
91415_ACEOF
91416cat confdefs.h >>conftest.$ac_ext
91417cat >>conftest.$ac_ext <<_ACEOF
91418/* end confdefs.h.  */
91419$ac_includes_default
91420int
91421main ()
91422{
91423if (sizeof (u_int32_t))
91424       return 0;
91425  ;
91426  return 0;
91427}
91428_ACEOF
91429rm -f conftest.$ac_objext
91430if { (ac_try="$ac_compile"
91431case "(($ac_try" in
91432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91433  *) ac_try_echo=$ac_try;;
91434esac
91435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91436$as_echo "$ac_try_echo") >&5
91437  (eval "$ac_compile") 2>conftest.er1
91438  ac_status=$?
91439  grep -v '^ *+' conftest.er1 >conftest.err
91440  rm -f conftest.er1
91441  cat conftest.err >&5
91442  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91443  (exit $ac_status); } && {
91444	 test -z "$ac_c_werror_flag" ||
91445	 test ! -s conftest.err
91446       } && test -s conftest.$ac_objext; then
91447  cat >conftest.$ac_ext <<_ACEOF
91448/* confdefs.h.  */
91449_ACEOF
91450cat confdefs.h >>conftest.$ac_ext
91451cat >>conftest.$ac_ext <<_ACEOF
91452/* end confdefs.h.  */
91453$ac_includes_default
91454int
91455main ()
91456{
91457if (sizeof ((u_int32_t)))
91458	  return 0;
91459  ;
91460  return 0;
91461}
91462_ACEOF
91463rm -f conftest.$ac_objext
91464if { (ac_try="$ac_compile"
91465case "(($ac_try" in
91466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91467  *) ac_try_echo=$ac_try;;
91468esac
91469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91470$as_echo "$ac_try_echo") >&5
91471  (eval "$ac_compile") 2>conftest.er1
91472  ac_status=$?
91473  grep -v '^ *+' conftest.er1 >conftest.err
91474  rm -f conftest.er1
91475  cat conftest.err >&5
91476  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91477  (exit $ac_status); } && {
91478	 test -z "$ac_c_werror_flag" ||
91479	 test ! -s conftest.err
91480       } && test -s conftest.$ac_objext; then
91481  :
91482else
91483  $as_echo "$as_me: failed program was:" >&5
91484sed 's/^/| /' conftest.$ac_ext >&5
91485
91486	ac_cv_type_u_int32_t=yes
91487fi
91488
91489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91490else
91491  $as_echo "$as_me: failed program was:" >&5
91492sed 's/^/| /' conftest.$ac_ext >&5
91493
91494
91495fi
91496
91497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91498fi
91499{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
91500$as_echo "$ac_cv_type_u_int32_t" >&6; }
91501if test "x$ac_cv_type_u_int32_t" = x""yes; then
91502  :
91503else
91504
91505cat >>confdefs.h <<_ACEOF
91506#define u_int32_t uint32_t
91507_ACEOF
91508
91509fi
91510
91511
91512
91513for ac_header in err.h
91514do
91515as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
91516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
91517  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
91518$as_echo_n "checking for $ac_header... " >&6; }
91519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
91520  $as_echo_n "(cached) " >&6
91521fi
91522ac_res=`eval 'as_val=${'$as_ac_Header'}
91523		 $as_echo "$as_val"'`
91524	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
91525$as_echo "$ac_res" >&6; }
91526else
91527  # Is the header compilable?
91528{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
91529$as_echo_n "checking $ac_header usability... " >&6; }
91530cat >conftest.$ac_ext <<_ACEOF
91531/* confdefs.h.  */
91532_ACEOF
91533cat confdefs.h >>conftest.$ac_ext
91534cat >>conftest.$ac_ext <<_ACEOF
91535/* end confdefs.h.  */
91536$ac_includes_default
91537#include <$ac_header>
91538_ACEOF
91539rm -f conftest.$ac_objext
91540if { (ac_try="$ac_compile"
91541case "(($ac_try" in
91542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91543  *) ac_try_echo=$ac_try;;
91544esac
91545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91546$as_echo "$ac_try_echo") >&5
91547  (eval "$ac_compile") 2>conftest.er1
91548  ac_status=$?
91549  grep -v '^ *+' conftest.er1 >conftest.err
91550  rm -f conftest.er1
91551  cat conftest.err >&5
91552  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91553  (exit $ac_status); } && {
91554	 test -z "$ac_c_werror_flag" ||
91555	 test ! -s conftest.err
91556       } && test -s conftest.$ac_objext; then
91557  ac_header_compiler=yes
91558else
91559  $as_echo "$as_me: failed program was:" >&5
91560sed 's/^/| /' conftest.$ac_ext >&5
91561
91562	ac_header_compiler=no
91563fi
91564
91565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91566{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
91567$as_echo "$ac_header_compiler" >&6; }
91568
91569# Is the header present?
91570{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
91571$as_echo_n "checking $ac_header presence... " >&6; }
91572cat >conftest.$ac_ext <<_ACEOF
91573/* confdefs.h.  */
91574_ACEOF
91575cat confdefs.h >>conftest.$ac_ext
91576cat >>conftest.$ac_ext <<_ACEOF
91577/* end confdefs.h.  */
91578#include <$ac_header>
91579_ACEOF
91580if { (ac_try="$ac_cpp conftest.$ac_ext"
91581case "(($ac_try" in
91582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91583  *) ac_try_echo=$ac_try;;
91584esac
91585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91586$as_echo "$ac_try_echo") >&5
91587  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
91588  ac_status=$?
91589  grep -v '^ *+' conftest.er1 >conftest.err
91590  rm -f conftest.er1
91591  cat conftest.err >&5
91592  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91593  (exit $ac_status); } >/dev/null && {
91594	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
91595	 test ! -s conftest.err
91596       }; then
91597  ac_header_preproc=yes
91598else
91599  $as_echo "$as_me: failed program was:" >&5
91600sed 's/^/| /' conftest.$ac_ext >&5
91601
91602  ac_header_preproc=no
91603fi
91604
91605rm -f conftest.err conftest.$ac_ext
91606{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
91607$as_echo "$ac_header_preproc" >&6; }
91608
91609# So?  What about this header?
91610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
91611  yes:no: )
91612    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
91613$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
91614    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
91615$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
91616    ac_header_preproc=yes
91617    ;;
91618  no:yes:* )
91619    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
91620$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
91621    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
91622$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
91623    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
91624$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
91625    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
91626$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
91627    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
91628$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
91629    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
91630$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
91631    ( cat <<\_ASBOX
91632## ---------------------------------------- ##
91633## Report this to samba-technical@samba.org ##
91634## ---------------------------------------- ##
91635_ASBOX
91636     ) | sed "s/^/$as_me: WARNING:     /" >&2
91637    ;;
91638esac
91639{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
91640$as_echo_n "checking for $ac_header... " >&6; }
91641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
91642  $as_echo_n "(cached) " >&6
91643else
91644  eval "$as_ac_Header=\$ac_header_preproc"
91645fi
91646ac_res=`eval 'as_val=${'$as_ac_Header'}
91647		 $as_echo "$as_val"'`
91648	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
91649$as_echo "$ac_res" >&6; }
91650
91651fi
91652as_val=`eval 'as_val=${'$as_ac_Header'}
91653		 $as_echo "$as_val"'`
91654   if test "x$as_val" = x""yes; then
91655  cat >>confdefs.h <<_ACEOF
91656#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
91657_ACEOF
91658
91659else
91660   cp heimdal/lib/roken/err.hin heimdal_build/err.h
91661fi
91662
91663done
91664
91665
91666
91667for ac_header in ifaddrs.h
91668do
91669as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
91670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
91671  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
91672$as_echo_n "checking for $ac_header... " >&6; }
91673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
91674  $as_echo_n "(cached) " >&6
91675fi
91676ac_res=`eval 'as_val=${'$as_ac_Header'}
91677		 $as_echo "$as_val"'`
91678	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
91679$as_echo "$ac_res" >&6; }
91680else
91681  # Is the header compilable?
91682{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
91683$as_echo_n "checking $ac_header usability... " >&6; }
91684cat >conftest.$ac_ext <<_ACEOF
91685/* confdefs.h.  */
91686_ACEOF
91687cat confdefs.h >>conftest.$ac_ext
91688cat >>conftest.$ac_ext <<_ACEOF
91689/* end confdefs.h.  */
91690$ac_includes_default
91691#include <$ac_header>
91692_ACEOF
91693rm -f conftest.$ac_objext
91694if { (ac_try="$ac_compile"
91695case "(($ac_try" in
91696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91697  *) ac_try_echo=$ac_try;;
91698esac
91699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91700$as_echo "$ac_try_echo") >&5
91701  (eval "$ac_compile") 2>conftest.er1
91702  ac_status=$?
91703  grep -v '^ *+' conftest.er1 >conftest.err
91704  rm -f conftest.er1
91705  cat conftest.err >&5
91706  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91707  (exit $ac_status); } && {
91708	 test -z "$ac_c_werror_flag" ||
91709	 test ! -s conftest.err
91710       } && test -s conftest.$ac_objext; then
91711  ac_header_compiler=yes
91712else
91713  $as_echo "$as_me: failed program was:" >&5
91714sed 's/^/| /' conftest.$ac_ext >&5
91715
91716	ac_header_compiler=no
91717fi
91718
91719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91720{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
91721$as_echo "$ac_header_compiler" >&6; }
91722
91723# Is the header present?
91724{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
91725$as_echo_n "checking $ac_header presence... " >&6; }
91726cat >conftest.$ac_ext <<_ACEOF
91727/* confdefs.h.  */
91728_ACEOF
91729cat confdefs.h >>conftest.$ac_ext
91730cat >>conftest.$ac_ext <<_ACEOF
91731/* end confdefs.h.  */
91732#include <$ac_header>
91733_ACEOF
91734if { (ac_try="$ac_cpp conftest.$ac_ext"
91735case "(($ac_try" in
91736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91737  *) ac_try_echo=$ac_try;;
91738esac
91739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91740$as_echo "$ac_try_echo") >&5
91741  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
91742  ac_status=$?
91743  grep -v '^ *+' conftest.er1 >conftest.err
91744  rm -f conftest.er1
91745  cat conftest.err >&5
91746  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91747  (exit $ac_status); } >/dev/null && {
91748	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
91749	 test ! -s conftest.err
91750       }; then
91751  ac_header_preproc=yes
91752else
91753  $as_echo "$as_me: failed program was:" >&5
91754sed 's/^/| /' conftest.$ac_ext >&5
91755
91756  ac_header_preproc=no
91757fi
91758
91759rm -f conftest.err conftest.$ac_ext
91760{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
91761$as_echo "$ac_header_preproc" >&6; }
91762
91763# So?  What about this header?
91764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
91765  yes:no: )
91766    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
91767$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
91768    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
91769$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
91770    ac_header_preproc=yes
91771    ;;
91772  no:yes:* )
91773    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
91774$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
91775    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
91776$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
91777    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
91778$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
91779    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
91780$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
91781    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
91782$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
91783    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
91784$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
91785    ( cat <<\_ASBOX
91786## ---------------------------------------- ##
91787## Report this to samba-technical@samba.org ##
91788## ---------------------------------------- ##
91789_ASBOX
91790     ) | sed "s/^/$as_me: WARNING:     /" >&2
91791    ;;
91792esac
91793{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
91794$as_echo_n "checking for $ac_header... " >&6; }
91795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
91796  $as_echo_n "(cached) " >&6
91797else
91798  eval "$as_ac_Header=\$ac_header_preproc"
91799fi
91800ac_res=`eval 'as_val=${'$as_ac_Header'}
91801		 $as_echo "$as_val"'`
91802	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
91803$as_echo "$ac_res" >&6; }
91804
91805fi
91806as_val=`eval 'as_val=${'$as_ac_Header'}
91807		 $as_echo "$as_val"'`
91808   if test "x$as_val" = x""yes; then
91809  cat >>confdefs.h <<_ACEOF
91810#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
91811_ACEOF
91812
91813else
91814   cp heimdal_build/ifaddrs.hin heimdal_build/ifaddrs.h
91815fi
91816
91817done
91818
91819
91820
91821
91822
91823
91824
91825
91826
91827
91828
91829
91830
91831
91832
91833
91834
91835
91836
91837
91838
91839
91840
91841
91842
91843for ac_header in 				\
91844	crypt.h					\
91845	curses.h				\
91846	errno.h					\
91847	inttypes.h				\
91848	netdb.h					\
91849	signal.h				\
91850	sys/bswap.h				\
91851	sys/file.h				\
91852	sys/stropts.h				\
91853	sys/timeb.h				\
91854	sys/times.h				\
91855	sys/uio.h				\
91856	sys/un.h				\
91857	sys/utsname.h				\
91858	term.h					\
91859	termcap.h				\
91860	time.h					\
91861	timezone.h				\
91862	ttyname.h				\
91863	netinet/in.h				\
91864	netinet/in6.h				\
91865	netinet6/in6.h				\
91866	libintl.h
91867
91868do
91869as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
91870if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
91871  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
91872$as_echo_n "checking for $ac_header... " >&6; }
91873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
91874  $as_echo_n "(cached) " >&6
91875fi
91876ac_res=`eval 'as_val=${'$as_ac_Header'}
91877		 $as_echo "$as_val"'`
91878	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
91879$as_echo "$ac_res" >&6; }
91880else
91881  # Is the header compilable?
91882{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
91883$as_echo_n "checking $ac_header usability... " >&6; }
91884cat >conftest.$ac_ext <<_ACEOF
91885/* confdefs.h.  */
91886_ACEOF
91887cat confdefs.h >>conftest.$ac_ext
91888cat >>conftest.$ac_ext <<_ACEOF
91889/* end confdefs.h.  */
91890$ac_includes_default
91891#include <$ac_header>
91892_ACEOF
91893rm -f conftest.$ac_objext
91894if { (ac_try="$ac_compile"
91895case "(($ac_try" in
91896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91897  *) ac_try_echo=$ac_try;;
91898esac
91899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91900$as_echo "$ac_try_echo") >&5
91901  (eval "$ac_compile") 2>conftest.er1
91902  ac_status=$?
91903  grep -v '^ *+' conftest.er1 >conftest.err
91904  rm -f conftest.er1
91905  cat conftest.err >&5
91906  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91907  (exit $ac_status); } && {
91908	 test -z "$ac_c_werror_flag" ||
91909	 test ! -s conftest.err
91910       } && test -s conftest.$ac_objext; then
91911  ac_header_compiler=yes
91912else
91913  $as_echo "$as_me: failed program was:" >&5
91914sed 's/^/| /' conftest.$ac_ext >&5
91915
91916	ac_header_compiler=no
91917fi
91918
91919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91920{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
91921$as_echo "$ac_header_compiler" >&6; }
91922
91923# Is the header present?
91924{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
91925$as_echo_n "checking $ac_header presence... " >&6; }
91926cat >conftest.$ac_ext <<_ACEOF
91927/* confdefs.h.  */
91928_ACEOF
91929cat confdefs.h >>conftest.$ac_ext
91930cat >>conftest.$ac_ext <<_ACEOF
91931/* end confdefs.h.  */
91932#include <$ac_header>
91933_ACEOF
91934if { (ac_try="$ac_cpp conftest.$ac_ext"
91935case "(($ac_try" in
91936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
91937  *) ac_try_echo=$ac_try;;
91938esac
91939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
91940$as_echo "$ac_try_echo") >&5
91941  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
91942  ac_status=$?
91943  grep -v '^ *+' conftest.er1 >conftest.err
91944  rm -f conftest.er1
91945  cat conftest.err >&5
91946  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
91947  (exit $ac_status); } >/dev/null && {
91948	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
91949	 test ! -s conftest.err
91950       }; then
91951  ac_header_preproc=yes
91952else
91953  $as_echo "$as_me: failed program was:" >&5
91954sed 's/^/| /' conftest.$ac_ext >&5
91955
91956  ac_header_preproc=no
91957fi
91958
91959rm -f conftest.err conftest.$ac_ext
91960{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
91961$as_echo "$ac_header_preproc" >&6; }
91962
91963# So?  What about this header?
91964case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
91965  yes:no: )
91966    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
91967$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
91968    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
91969$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
91970    ac_header_preproc=yes
91971    ;;
91972  no:yes:* )
91973    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
91974$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
91975    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
91976$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
91977    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
91978$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
91979    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
91980$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
91981    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
91982$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
91983    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
91984$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
91985    ( cat <<\_ASBOX
91986## ---------------------------------------- ##
91987## Report this to samba-technical@samba.org ##
91988## ---------------------------------------- ##
91989_ASBOX
91990     ) | sed "s/^/$as_me: WARNING:     /" >&2
91991    ;;
91992esac
91993{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
91994$as_echo_n "checking for $ac_header... " >&6; }
91995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
91996  $as_echo_n "(cached) " >&6
91997else
91998  eval "$as_ac_Header=\$ac_header_preproc"
91999fi
92000ac_res=`eval 'as_val=${'$as_ac_Header'}
92001		 $as_echo "$as_val"'`
92002	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
92003$as_echo "$ac_res" >&6; }
92004
92005fi
92006as_val=`eval 'as_val=${'$as_ac_Header'}
92007		 $as_echo "$as_val"'`
92008   if test "x$as_val" = x""yes; then
92009  cat >>confdefs.h <<_ACEOF
92010#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
92011_ACEOF
92012
92013fi
92014
92015done
92016
92017
92018
92019
92020
92021
92022
92023
92024
92025
92026
92027
92028
92029
92030
92031
92032
92033
92034
92035
92036
92037
92038
92039
92040
92041
92042
92043
92044
92045
92046
92047
92048
92049
92050
92051
92052
92053
92054for ac_func in 				\
92055	atexit					\
92056	cgetent					\
92057	getprogname				\
92058	setprogname				\
92059	inet_aton				\
92060	gethostname				\
92061	getnameinfo				\
92062	iruserok				\
92063	putenv					\
92064	rcmd					\
92065	readv					\
92066	sendmsg					\
92067	setitimer				\
92068	socket					\
92069	strlwr					\
92070	strncasecmp				\
92071	strptime				\
92072	strsep					\
92073	strsep_copy				\
92074	strtok_r				\
92075	strupr					\
92076	swab					\
92077	umask					\
92078	uname					\
92079	unsetenv				\
92080	closefrom				\
92081	hstrerror				\
92082	err					\
92083	warn					\
92084	errx					\
92085	warnx					\
92086	flock					\
92087	getipnodebyname				\
92088	getipnodebyaddr				\
92089	freehostent				\
92090	writev
92091
92092do
92093as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
92094{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
92095$as_echo_n "checking for $ac_func... " >&6; }
92096if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
92097  $as_echo_n "(cached) " >&6
92098else
92099  cat >conftest.$ac_ext <<_ACEOF
92100/* confdefs.h.  */
92101_ACEOF
92102cat confdefs.h >>conftest.$ac_ext
92103cat >>conftest.$ac_ext <<_ACEOF
92104/* end confdefs.h.  */
92105/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
92106   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
92107#define $ac_func innocuous_$ac_func
92108
92109/* System header to define __stub macros and hopefully few prototypes,
92110    which can conflict with char $ac_func (); below.
92111    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
92112    <limits.h> exists even on freestanding compilers.  */
92113
92114#ifdef __STDC__
92115# include <limits.h>
92116#else
92117# include <assert.h>
92118#endif
92119
92120#undef $ac_func
92121
92122/* Override any GCC internal prototype to avoid an error.
92123   Use char because int might match the return type of a GCC
92124   builtin and then its argument prototype would still apply.  */
92125#ifdef __cplusplus
92126extern "C"
92127#endif
92128char $ac_func ();
92129/* The GNU C library defines this for functions which it implements
92130    to always fail with ENOSYS.  Some functions are actually named
92131    something starting with __ and the normal name is an alias.  */
92132#if defined __stub_$ac_func || defined __stub___$ac_func
92133choke me
92134#endif
92135
92136int
92137main ()
92138{
92139return $ac_func ();
92140  ;
92141  return 0;
92142}
92143_ACEOF
92144rm -f conftest.$ac_objext conftest$ac_exeext
92145if { (ac_try="$ac_link"
92146case "(($ac_try" in
92147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
92148  *) ac_try_echo=$ac_try;;
92149esac
92150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
92151$as_echo "$ac_try_echo") >&5
92152  (eval "$ac_link") 2>conftest.er1
92153  ac_status=$?
92154  grep -v '^ *+' conftest.er1 >conftest.err
92155  rm -f conftest.er1
92156  cat conftest.err >&5
92157  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
92158  (exit $ac_status); } && {
92159	 test -z "$ac_c_werror_flag" ||
92160	 test ! -s conftest.err
92161       } && test -s conftest$ac_exeext && {
92162	 test "$cross_compiling" = yes ||
92163	 $as_test_x conftest$ac_exeext
92164       }; then
92165  eval "$as_ac_var=yes"
92166else
92167  $as_echo "$as_me: failed program was:" >&5
92168sed 's/^/| /' conftest.$ac_ext >&5
92169
92170	eval "$as_ac_var=no"
92171fi
92172
92173rm -rf conftest.dSYM
92174rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
92175      conftest$ac_exeext conftest.$ac_ext
92176fi
92177ac_res=`eval 'as_val=${'$as_ac_var'}
92178		 $as_echo "$as_val"'`
92179	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
92180$as_echo "$ac_res" >&6; }
92181as_val=`eval 'as_val=${'$as_ac_var'}
92182		 $as_echo "$as_val"'`
92183   if test "x$as_val" = x""yes; then
92184  cat >>confdefs.h <<_ACEOF
92185#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
92186_ACEOF
92187
92188fi
92189done
92190
92191
92192
92193
92194{ $as_echo "$as_me:$LINENO: checking for bswap16" >&5
92195$as_echo_n "checking for bswap16... " >&6; }
92196if test "${ac_cv_love_func_bswap16+set}" = set; then
92197  $as_echo_n "(cached) " >&6
92198else
92199
92200cat >conftest.$ac_ext <<_ACEOF
92201/* confdefs.h.  */
92202_ACEOF
92203cat confdefs.h >>conftest.$ac_ext
92204cat >>conftest.$ac_ext <<_ACEOF
92205/* end confdefs.h.  */
92206#ifdef HAVE_SYS_BSWAP_H
92207#include <sys/bswap.h>
92208#endif
92209int
92210main ()
92211{
92212bswap16(0)
92213  ;
92214  return 0;
92215}
92216_ACEOF
92217rm -f conftest.$ac_objext conftest$ac_exeext
92218if { (ac_try="$ac_link"
92219case "(($ac_try" in
92220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
92221  *) ac_try_echo=$ac_try;;
92222esac
92223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
92224$as_echo "$ac_try_echo") >&5
92225  (eval "$ac_link") 2>conftest.er1
92226  ac_status=$?
92227  grep -v '^ *+' conftest.er1 >conftest.err
92228  rm -f conftest.er1
92229  cat conftest.err >&5
92230  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
92231  (exit $ac_status); } && {
92232	 test -z "$ac_c_werror_flag" ||
92233	 test ! -s conftest.err
92234       } && test -s conftest$ac_exeext && {
92235	 test "$cross_compiling" = yes ||
92236	 $as_test_x conftest$ac_exeext
92237       }; then
92238  eval "ac_cv_love_func_bswap16=yes"
92239else
92240  $as_echo "$as_me: failed program was:" >&5
92241sed 's/^/| /' conftest.$ac_ext >&5
92242
92243	eval "ac_cv_love_func_bswap16=no"
92244fi
92245
92246rm -rf conftest.dSYM
92247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
92248      conftest$ac_exeext conftest.$ac_ext
92249fi
92250
92251
92252eval "ac_res=\$ac_cv_love_func_bswap16"
92253
92254if false; then
92255
92256for ac_func in bswap16
92257do
92258as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
92259{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
92260$as_echo_n "checking for $ac_func... " >&6; }
92261if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
92262  $as_echo_n "(cached) " >&6
92263else
92264  cat >conftest.$ac_ext <<_ACEOF
92265/* confdefs.h.  */
92266_ACEOF
92267cat confdefs.h >>conftest.$ac_ext
92268cat >>conftest.$ac_ext <<_ACEOF
92269/* end confdefs.h.  */
92270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
92271   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
92272#define $ac_func innocuous_$ac_func
92273
92274/* System header to define __stub macros and hopefully few prototypes,
92275    which can conflict with char $ac_func (); below.
92276    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
92277    <limits.h> exists even on freestanding compilers.  */
92278
92279#ifdef __STDC__
92280# include <limits.h>
92281#else
92282# include <assert.h>
92283#endif
92284
92285#undef $ac_func
92286
92287/* Override any GCC internal prototype to avoid an error.
92288   Use char because int might match the return type of a GCC
92289   builtin and then its argument prototype would still apply.  */
92290#ifdef __cplusplus
92291extern "C"
92292#endif
92293char $ac_func ();
92294/* The GNU C library defines this for functions which it implements
92295    to always fail with ENOSYS.  Some functions are actually named
92296    something starting with __ and the normal name is an alias.  */
92297#if defined __stub_$ac_func || defined __stub___$ac_func
92298choke me
92299#endif
92300
92301int
92302main ()
92303{
92304return $ac_func ();
92305  ;
92306  return 0;
92307}
92308_ACEOF
92309rm -f conftest.$ac_objext conftest$ac_exeext
92310if { (ac_try="$ac_link"
92311case "(($ac_try" in
92312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
92313  *) ac_try_echo=$ac_try;;
92314esac
92315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
92316$as_echo "$ac_try_echo") >&5
92317  (eval "$ac_link") 2>conftest.er1
92318  ac_status=$?
92319  grep -v '^ *+' conftest.er1 >conftest.err
92320  rm -f conftest.er1
92321  cat conftest.err >&5
92322  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
92323  (exit $ac_status); } && {
92324	 test -z "$ac_c_werror_flag" ||
92325	 test ! -s conftest.err
92326       } && test -s conftest$ac_exeext && {
92327	 test "$cross_compiling" = yes ||
92328	 $as_test_x conftest$ac_exeext
92329       }; then
92330  eval "$as_ac_var=yes"
92331else
92332  $as_echo "$as_me: failed program was:" >&5
92333sed 's/^/| /' conftest.$ac_ext >&5
92334
92335	eval "$as_ac_var=no"
92336fi
92337
92338rm -rf conftest.dSYM
92339rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
92340      conftest$ac_exeext conftest.$ac_ext
92341fi
92342ac_res=`eval 'as_val=${'$as_ac_var'}
92343		 $as_echo "$as_val"'`
92344	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
92345$as_echo "$ac_res" >&6; }
92346as_val=`eval 'as_val=${'$as_ac_var'}
92347		 $as_echo "$as_val"'`
92348   if test "x$as_val" = x""yes; then
92349  cat >>confdefs.h <<_ACEOF
92350#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
92351_ACEOF
92352
92353fi
92354done
92355
92356fi
92357# bswap16
92358eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
92359
92360case "$ac_res" in
92361	yes)
92362	cat >>confdefs.h <<_ACEOF
92363#define $ac_tr_func 1
92364_ACEOF
92365
92366	{ $as_echo "$as_me:$LINENO: result: yes" >&5
92367$as_echo "yes" >&6; }
92368	;;
92369	no)
92370	{ $as_echo "$as_me:$LINENO: result: no" >&5
92371$as_echo "no" >&6; }
92372	;;
92373esac
92374
92375
92376
92377
92378
92379
92380{ $as_echo "$as_me:$LINENO: checking for bswap32" >&5
92381$as_echo_n "checking for bswap32... " >&6; }
92382if test "${ac_cv_love_func_bswap32+set}" = set; then
92383  $as_echo_n "(cached) " >&6
92384else
92385
92386cat >conftest.$ac_ext <<_ACEOF
92387/* confdefs.h.  */
92388_ACEOF
92389cat confdefs.h >>conftest.$ac_ext
92390cat >>conftest.$ac_ext <<_ACEOF
92391/* end confdefs.h.  */
92392#ifdef HAVE_SYS_BSWAP_H
92393#include <sys/bswap.h>
92394#endif
92395int
92396main ()
92397{
92398bswap32(0)
92399  ;
92400  return 0;
92401}
92402_ACEOF
92403rm -f conftest.$ac_objext conftest$ac_exeext
92404if { (ac_try="$ac_link"
92405case "(($ac_try" in
92406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
92407  *) ac_try_echo=$ac_try;;
92408esac
92409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
92410$as_echo "$ac_try_echo") >&5
92411  (eval "$ac_link") 2>conftest.er1
92412  ac_status=$?
92413  grep -v '^ *+' conftest.er1 >conftest.err
92414  rm -f conftest.er1
92415  cat conftest.err >&5
92416  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
92417  (exit $ac_status); } && {
92418	 test -z "$ac_c_werror_flag" ||
92419	 test ! -s conftest.err
92420       } && test -s conftest$ac_exeext && {
92421	 test "$cross_compiling" = yes ||
92422	 $as_test_x conftest$ac_exeext
92423       }; then
92424  eval "ac_cv_love_func_bswap32=yes"
92425else
92426  $as_echo "$as_me: failed program was:" >&5
92427sed 's/^/| /' conftest.$ac_ext >&5
92428
92429	eval "ac_cv_love_func_bswap32=no"
92430fi
92431
92432rm -rf conftest.dSYM
92433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
92434      conftest$ac_exeext conftest.$ac_ext
92435fi
92436
92437
92438eval "ac_res=\$ac_cv_love_func_bswap32"
92439
92440if false; then
92441
92442for ac_func in bswap32
92443do
92444as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
92445{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
92446$as_echo_n "checking for $ac_func... " >&6; }
92447if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
92448  $as_echo_n "(cached) " >&6
92449else
92450  cat >conftest.$ac_ext <<_ACEOF
92451/* confdefs.h.  */
92452_ACEOF
92453cat confdefs.h >>conftest.$ac_ext
92454cat >>conftest.$ac_ext <<_ACEOF
92455/* end confdefs.h.  */
92456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
92457   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
92458#define $ac_func innocuous_$ac_func
92459
92460/* System header to define __stub macros and hopefully few prototypes,
92461    which can conflict with char $ac_func (); below.
92462    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
92463    <limits.h> exists even on freestanding compilers.  */
92464
92465#ifdef __STDC__
92466# include <limits.h>
92467#else
92468# include <assert.h>
92469#endif
92470
92471#undef $ac_func
92472
92473/* Override any GCC internal prototype to avoid an error.
92474   Use char because int might match the return type of a GCC
92475   builtin and then its argument prototype would still apply.  */
92476#ifdef __cplusplus
92477extern "C"
92478#endif
92479char $ac_func ();
92480/* The GNU C library defines this for functions which it implements
92481    to always fail with ENOSYS.  Some functions are actually named
92482    something starting with __ and the normal name is an alias.  */
92483#if defined __stub_$ac_func || defined __stub___$ac_func
92484choke me
92485#endif
92486
92487int
92488main ()
92489{
92490return $ac_func ();
92491  ;
92492  return 0;
92493}
92494_ACEOF
92495rm -f conftest.$ac_objext conftest$ac_exeext
92496if { (ac_try="$ac_link"
92497case "(($ac_try" in
92498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
92499  *) ac_try_echo=$ac_try;;
92500esac
92501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
92502$as_echo "$ac_try_echo") >&5
92503  (eval "$ac_link") 2>conftest.er1
92504  ac_status=$?
92505  grep -v '^ *+' conftest.er1 >conftest.err
92506  rm -f conftest.er1
92507  cat conftest.err >&5
92508  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
92509  (exit $ac_status); } && {
92510	 test -z "$ac_c_werror_flag" ||
92511	 test ! -s conftest.err
92512       } && test -s conftest$ac_exeext && {
92513	 test "$cross_compiling" = yes ||
92514	 $as_test_x conftest$ac_exeext
92515       }; then
92516  eval "$as_ac_var=yes"
92517else
92518  $as_echo "$as_me: failed program was:" >&5
92519sed 's/^/| /' conftest.$ac_ext >&5
92520
92521	eval "$as_ac_var=no"
92522fi
92523
92524rm -rf conftest.dSYM
92525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
92526      conftest$ac_exeext conftest.$ac_ext
92527fi
92528ac_res=`eval 'as_val=${'$as_ac_var'}
92529		 $as_echo "$as_val"'`
92530	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
92531$as_echo "$ac_res" >&6; }
92532as_val=`eval 'as_val=${'$as_ac_var'}
92533		 $as_echo "$as_val"'`
92534   if test "x$as_val" = x""yes; then
92535  cat >>confdefs.h <<_ACEOF
92536#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
92537_ACEOF
92538
92539fi
92540done
92541
92542fi
92543# bswap32
92544eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
92545
92546case "$ac_res" in
92547	yes)
92548	cat >>confdefs.h <<_ACEOF
92549#define $ac_tr_func 1
92550_ACEOF
92551
92552	{ $as_echo "$as_me:$LINENO: result: yes" >&5
92553$as_echo "yes" >&6; }
92554	;;
92555	no)
92556	{ $as_echo "$as_me:$LINENO: result: no" >&5
92557$as_echo "no" >&6; }
92558	;;
92559esac
92560
92561
92562
92563
92564
92565
92566
92567{ $as_echo "$as_me:$LINENO: checking for struct winsize" >&5
92568$as_echo_n "checking for struct winsize... " >&6; }
92569if test "${ac_cv_struct_winsize+set}" = set; then
92570  $as_echo_n "(cached) " >&6
92571else
92572
92573ac_cv_struct_winsize=no
92574for i in sys/termios.h sys/ioctl.h; do
92575cat >conftest.$ac_ext <<_ACEOF
92576/* confdefs.h.  */
92577_ACEOF
92578cat confdefs.h >>conftest.$ac_ext
92579cat >>conftest.$ac_ext <<_ACEOF
92580/* end confdefs.h.  */
92581#include <$i>
92582
92583_ACEOF
92584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
92585  $EGREP "struct[ 	]*winsize" >/dev/null 2>&1; then
92586  ac_cv_struct_winsize=yes; break
92587fi
92588rm -f conftest*
92589done
92590
92591fi
92592
92593if test "$ac_cv_struct_winsize" = "yes"; then
92594
92595cat >>confdefs.h <<\_ACEOF
92596#define HAVE_STRUCT_WINSIZE 1
92597_ACEOF
92598
92599fi
92600{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
92601$as_echo "$ac_cv_struct_winsize" >&6; }
92602cat >conftest.$ac_ext <<_ACEOF
92603/* confdefs.h.  */
92604_ACEOF
92605cat confdefs.h >>conftest.$ac_ext
92606cat >>conftest.$ac_ext <<_ACEOF
92607/* end confdefs.h.  */
92608#include <termios.h>
92609
92610_ACEOF
92611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
92612  $EGREP "ws_xpixel" >/dev/null 2>&1; then
92613
92614cat >>confdefs.h <<\_ACEOF
92615#define HAVE_WS_XPIXEL 1
92616_ACEOF
92617
92618fi
92619rm -f conftest*
92620
92621cat >conftest.$ac_ext <<_ACEOF
92622/* confdefs.h.  */
92623_ACEOF
92624cat confdefs.h >>conftest.$ac_ext
92625cat >>conftest.$ac_ext <<_ACEOF
92626/* end confdefs.h.  */
92627#include <termios.h>
92628
92629_ACEOF
92630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
92631  $EGREP "ws_ypixel" >/dev/null 2>&1; then
92632
92633cat >>confdefs.h <<\_ACEOF
92634#define HAVE_WS_YPIXEL 1
92635_ACEOF
92636
92637fi
92638rm -f conftest*
92639
92640
92641
92642{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
92643$as_echo_n "checking return type of signal handlers... " >&6; }
92644if test "${ac_cv_type_signal+set}" = set; then
92645  $as_echo_n "(cached) " >&6
92646else
92647  cat >conftest.$ac_ext <<_ACEOF
92648/* confdefs.h.  */
92649_ACEOF
92650cat confdefs.h >>conftest.$ac_ext
92651cat >>conftest.$ac_ext <<_ACEOF
92652/* end confdefs.h.  */
92653#include <sys/types.h>
92654#include <signal.h>
92655
92656int
92657main ()
92658{
92659return *(signal (0, 0)) (0) == 1;
92660  ;
92661  return 0;
92662}
92663_ACEOF
92664rm -f conftest.$ac_objext
92665if { (ac_try="$ac_compile"
92666case "(($ac_try" in
92667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
92668  *) ac_try_echo=$ac_try;;
92669esac
92670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
92671$as_echo "$ac_try_echo") >&5
92672  (eval "$ac_compile") 2>conftest.er1
92673  ac_status=$?
92674  grep -v '^ *+' conftest.er1 >conftest.err
92675  rm -f conftest.er1
92676  cat conftest.err >&5
92677  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
92678  (exit $ac_status); } && {
92679	 test -z "$ac_c_werror_flag" ||
92680	 test ! -s conftest.err
92681       } && test -s conftest.$ac_objext; then
92682  ac_cv_type_signal=int
92683else
92684  $as_echo "$as_me: failed program was:" >&5
92685sed 's/^/| /' conftest.$ac_ext >&5
92686
92687	ac_cv_type_signal=void
92688fi
92689
92690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
92691fi
92692{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
92693$as_echo "$ac_cv_type_signal" >&6; }
92694
92695cat >>confdefs.h <<_ACEOF
92696#define RETSIGTYPE $ac_cv_type_signal
92697_ACEOF
92698
92699
92700if test "$ac_cv_type_signal" = "void" ; then
92701
92702cat >>confdefs.h <<\_ACEOF
92703#define VOID_RETSIGTYPE 1
92704_ACEOF
92705
92706fi
92707
92708
92709
92710
92711
92712
92713# This is what autoupdate's m4 run will expand.  It fires
92714# the warning (with _au_warn_XXX), outputs it into the
92715# updated configure.ac (with AC_DIAGNOSE), and then outputs
92716# the replacement expansion.
92717
92718
92719# This is an auxiliary macro that is also run when
92720# autoupdate runs m4.  It simply calls m4_warning, but
92721# we need a wrapper so that each warning is emitted only
92722# once.  We break the quoting in m4_warning's argument in
92723# order to expand this macro's arguments, not AU_DEFUN's.
92724
92725
92726# Finally, this is the expansion that is picked up by
92727# autoconf.  It tells the user to run autoupdate, and
92728# then outputs the replacement expansion.  We do not care
92729# about autoupdate's warning because that contains
92730# information on what to do *after* running autoupdate.
92731
92732
92733
92734
92735{ $as_echo "$as_me:$LINENO: checking for h_errno" >&5
92736$as_echo_n "checking for h_errno... " >&6; }
92737if test "${ac_cv_var_h_errno+set}" = set; then
92738  $as_echo_n "(cached) " >&6
92739else
92740
92741
92742	cat >conftest.$ac_ext <<_ACEOF
92743/* confdefs.h.  */
92744_ACEOF
92745cat confdefs.h >>conftest.$ac_ext
92746cat >>conftest.$ac_ext <<_ACEOF
92747/* end confdefs.h.  */
92748#ifdef HAVE_SYS_TYPES_H
92749#include <sys/types.h>
92750#endif
92751#ifdef HAVE_NETDB_H
92752#include <netdb.h>
92753#endif
92754	void * foo(void) { return &h_errno; }
92755int
92756main ()
92757{
92758foo()
92759  ;
92760  return 0;
92761}
92762_ACEOF
92763rm -f conftest.$ac_objext conftest$ac_exeext
92764if { (ac_try="$ac_link"
92765case "(($ac_try" in
92766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
92767  *) ac_try_echo=$ac_try;;
92768esac
92769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
92770$as_echo "$ac_try_echo") >&5
92771  (eval "$ac_link") 2>conftest.er1
92772  ac_status=$?
92773  grep -v '^ *+' conftest.er1 >conftest.err
92774  rm -f conftest.er1
92775  cat conftest.err >&5
92776  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
92777  (exit $ac_status); } && {
92778	 test -z "$ac_c_werror_flag" ||
92779	 test ! -s conftest.err
92780       } && test -s conftest$ac_exeext && {
92781	 test "$cross_compiling" = yes ||
92782	 $as_test_x conftest$ac_exeext
92783       }; then
92784  ac_cv_var_h_errno=yes
92785else
92786  $as_echo "$as_me: failed program was:" >&5
92787sed 's/^/| /' conftest.$ac_ext >&5
92788
92789	ac_cv_var_h_errno=no
92790fi
92791
92792rm -rf conftest.dSYM
92793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
92794      conftest$ac_exeext conftest.$ac_ext
92795if test "$ac_cv_var_h_errno" != yes ; then
92796cat >conftest.$ac_ext <<_ACEOF
92797/* confdefs.h.  */
92798_ACEOF
92799cat confdefs.h >>conftest.$ac_ext
92800cat >>conftest.$ac_ext <<_ACEOF
92801/* end confdefs.h.  */
92802extern int h_errno;
92803int foo(void) { return h_errno; }
92804int
92805main ()
92806{
92807foo()
92808  ;
92809  return 0;
92810}
92811_ACEOF
92812rm -f conftest.$ac_objext conftest$ac_exeext
92813if { (ac_try="$ac_link"
92814case "(($ac_try" in
92815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
92816  *) ac_try_echo=$ac_try;;
92817esac
92818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
92819$as_echo "$ac_try_echo") >&5
92820  (eval "$ac_link") 2>conftest.er1
92821  ac_status=$?
92822  grep -v '^ *+' conftest.er1 >conftest.err
92823  rm -f conftest.er1
92824  cat conftest.err >&5
92825  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
92826  (exit $ac_status); } && {
92827	 test -z "$ac_c_werror_flag" ||
92828	 test ! -s conftest.err
92829       } && test -s conftest$ac_exeext && {
92830	 test "$cross_compiling" = yes ||
92831	 $as_test_x conftest$ac_exeext
92832       }; then
92833  ac_cv_var_h_errno=yes
92834else
92835  $as_echo "$as_me: failed program was:" >&5
92836sed 's/^/| /' conftest.$ac_ext >&5
92837
92838	ac_cv_var_h_errno=no
92839fi
92840
92841rm -rf conftest.dSYM
92842rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
92843      conftest$ac_exeext conftest.$ac_ext
92844fi
92845
92846fi
92847
92848ac_foo=`eval echo \\$ac_cv_var_h_errno`
92849{ $as_echo "$as_me:$LINENO: result: $ac_foo" >&5
92850$as_echo "$ac_foo" >&6; }
92851if test "$ac_foo" = yes; then
92852
92853cat >>confdefs.h <<_ACEOF
92854#define HAVE_H_ERRNO 1
92855_ACEOF
92856
92857	{ $as_echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
92858$as_echo_n "checking whether h_errno is declared... " >&6; }
92859if test "${ac_cv_have_decl_h_errno+set}" = set; then
92860  $as_echo_n "(cached) " >&6
92861else
92862  cat >conftest.$ac_ext <<_ACEOF
92863/* confdefs.h.  */
92864_ACEOF
92865cat confdefs.h >>conftest.$ac_ext
92866cat >>conftest.$ac_ext <<_ACEOF
92867/* end confdefs.h.  */
92868#ifdef HAVE_SYS_TYPES_H
92869#include <sys/types.h>
92870#endif
92871#ifdef HAVE_NETDB_H
92872#include <netdb.h>
92873#endif
92874
92875int
92876main ()
92877{
92878#ifndef h_errno
92879  (void) h_errno;
92880#endif
92881
92882  ;
92883  return 0;
92884}
92885_ACEOF
92886rm -f conftest.$ac_objext
92887if { (ac_try="$ac_compile"
92888case "(($ac_try" in
92889  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
92890  *) ac_try_echo=$ac_try;;
92891esac
92892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
92893$as_echo "$ac_try_echo") >&5
92894  (eval "$ac_compile") 2>conftest.er1
92895  ac_status=$?
92896  grep -v '^ *+' conftest.er1 >conftest.err
92897  rm -f conftest.er1
92898  cat conftest.err >&5
92899  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
92900  (exit $ac_status); } && {
92901	 test -z "$ac_c_werror_flag" ||
92902	 test ! -s conftest.err
92903       } && test -s conftest.$ac_objext; then
92904  ac_cv_have_decl_h_errno=yes
92905else
92906  $as_echo "$as_me: failed program was:" >&5
92907sed 's/^/| /' conftest.$ac_ext >&5
92908
92909	ac_cv_have_decl_h_errno=no
92910fi
92911
92912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
92913fi
92914{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
92915$as_echo "$ac_cv_have_decl_h_errno" >&6; }
92916if test "x$ac_cv_have_decl_h_errno" = x""yes; then
92917
92918cat >>confdefs.h <<_ACEOF
92919#define HAVE_DECL_H_ERRNO 1
92920_ACEOF
92921
92922
92923else
92924  cat >>confdefs.h <<_ACEOF
92925#define HAVE_DECL_H_ERRNO 0
92926_ACEOF
92927
92928
92929fi
92930
92931
92932fi
92933
92934
92935
92936
92937
92938
92939
92940
92941
92942
92943
92944
92945
92946
92947
92948
92949
92950for ac_header in pty.h util.h libutil.h
92951do
92952as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
92953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
92954  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
92955$as_echo_n "checking for $ac_header... " >&6; }
92956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
92957  $as_echo_n "(cached) " >&6
92958fi
92959ac_res=`eval 'as_val=${'$as_ac_Header'}
92960		 $as_echo "$as_val"'`
92961	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
92962$as_echo "$ac_res" >&6; }
92963else
92964  # Is the header compilable?
92965{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
92966$as_echo_n "checking $ac_header usability... " >&6; }
92967cat >conftest.$ac_ext <<_ACEOF
92968/* confdefs.h.  */
92969_ACEOF
92970cat confdefs.h >>conftest.$ac_ext
92971cat >>conftest.$ac_ext <<_ACEOF
92972/* end confdefs.h.  */
92973$ac_includes_default
92974#include <$ac_header>
92975_ACEOF
92976rm -f conftest.$ac_objext
92977if { (ac_try="$ac_compile"
92978case "(($ac_try" in
92979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
92980  *) ac_try_echo=$ac_try;;
92981esac
92982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
92983$as_echo "$ac_try_echo") >&5
92984  (eval "$ac_compile") 2>conftest.er1
92985  ac_status=$?
92986  grep -v '^ *+' conftest.er1 >conftest.err
92987  rm -f conftest.er1
92988  cat conftest.err >&5
92989  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
92990  (exit $ac_status); } && {
92991	 test -z "$ac_c_werror_flag" ||
92992	 test ! -s conftest.err
92993       } && test -s conftest.$ac_objext; then
92994  ac_header_compiler=yes
92995else
92996  $as_echo "$as_me: failed program was:" >&5
92997sed 's/^/| /' conftest.$ac_ext >&5
92998
92999	ac_header_compiler=no
93000fi
93001
93002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93003{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
93004$as_echo "$ac_header_compiler" >&6; }
93005
93006# Is the header present?
93007{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
93008$as_echo_n "checking $ac_header presence... " >&6; }
93009cat >conftest.$ac_ext <<_ACEOF
93010/* confdefs.h.  */
93011_ACEOF
93012cat confdefs.h >>conftest.$ac_ext
93013cat >>conftest.$ac_ext <<_ACEOF
93014/* end confdefs.h.  */
93015#include <$ac_header>
93016_ACEOF
93017if { (ac_try="$ac_cpp conftest.$ac_ext"
93018case "(($ac_try" in
93019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93020  *) ac_try_echo=$ac_try;;
93021esac
93022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
93023$as_echo "$ac_try_echo") >&5
93024  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
93025  ac_status=$?
93026  grep -v '^ *+' conftest.er1 >conftest.err
93027  rm -f conftest.er1
93028  cat conftest.err >&5
93029  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93030  (exit $ac_status); } >/dev/null && {
93031	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
93032	 test ! -s conftest.err
93033       }; then
93034  ac_header_preproc=yes
93035else
93036  $as_echo "$as_me: failed program was:" >&5
93037sed 's/^/| /' conftest.$ac_ext >&5
93038
93039  ac_header_preproc=no
93040fi
93041
93042rm -f conftest.err conftest.$ac_ext
93043{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
93044$as_echo "$ac_header_preproc" >&6; }
93045
93046# So?  What about this header?
93047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
93048  yes:no: )
93049    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
93050$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
93051    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
93052$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
93053    ac_header_preproc=yes
93054    ;;
93055  no:yes:* )
93056    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
93057$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
93058    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
93059$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
93060    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
93061$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
93062    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
93063$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
93064    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
93065$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
93066    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
93067$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
93068    ( cat <<\_ASBOX
93069## ---------------------------------------- ##
93070## Report this to samba-technical@samba.org ##
93071## ---------------------------------------- ##
93072_ASBOX
93073     ) | sed "s/^/$as_me: WARNING:     /" >&2
93074    ;;
93075esac
93076{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
93077$as_echo_n "checking for $ac_header... " >&6; }
93078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
93079  $as_echo_n "(cached) " >&6
93080else
93081  eval "$as_ac_Header=\$ac_header_preproc"
93082fi
93083ac_res=`eval 'as_val=${'$as_ac_Header'}
93084		 $as_echo "$as_val"'`
93085	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
93086$as_echo "$ac_res" >&6; }
93087
93088fi
93089as_val=`eval 'as_val=${'$as_ac_Header'}
93090		 $as_echo "$as_val"'`
93091   if test "x$as_val" = x""yes; then
93092  cat >>confdefs.h <<_ACEOF
93093#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
93094_ACEOF
93095
93096fi
93097
93098done
93099
93100
93101
93102
93103
93104ac_check_lib_ext_save_LIBS=$LIBS
93105LIBS="-lutil $OPENPTY_LIBS  $LIBS"
93106
93107
93108
93109
93110        { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
93111$as_echo_n "checking for openpty in -lutil... " >&6; }
93112if test "${ac_cv_lib_ext_util_openpty+set}" = set; then
93113  $as_echo_n "(cached) " >&6
93114else
93115  cat >conftest.$ac_ext <<_ACEOF
93116/* confdefs.h.  */
93117_ACEOF
93118cat confdefs.h >>conftest.$ac_ext
93119cat >>conftest.$ac_ext <<_ACEOF
93120/* end confdefs.h.  */
93121
93122/* Override any GCC internal prototype to avoid an error.
93123   Use char because int might match the return type of a GCC
93124   builtin and then its argument prototype would still apply.  */
93125#ifdef __cplusplus
93126extern "C"
93127#endif
93128char openpty ();
93129int
93130main ()
93131{
93132return openpty ();
93133  ;
93134  return 0;
93135}
93136_ACEOF
93137rm -f conftest.$ac_objext conftest$ac_exeext
93138if { (ac_try="$ac_link"
93139case "(($ac_try" in
93140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93141  *) ac_try_echo=$ac_try;;
93142esac
93143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
93144$as_echo "$ac_try_echo") >&5
93145  (eval "$ac_link") 2>conftest.er1
93146  ac_status=$?
93147  grep -v '^ *+' conftest.er1 >conftest.err
93148  rm -f conftest.er1
93149  cat conftest.err >&5
93150  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93151  (exit $ac_status); } && {
93152	 test -z "$ac_c_werror_flag" ||
93153	 test ! -s conftest.err
93154       } && test -s conftest$ac_exeext && {
93155	 test "$cross_compiling" = yes ||
93156	 $as_test_x conftest$ac_exeext
93157       }; then
93158  ac_cv_lib_ext_util_openpty=yes;
93159		  ac_cv_lib_ext_util=yes
93160else
93161  $as_echo "$as_me: failed program was:" >&5
93162sed 's/^/| /' conftest.$ac_ext >&5
93163
93164	ac_cv_lib_ext_util_openpty=no;
93165		  ac_cv_lib_ext_util=no
93166fi
93167
93168rm -rf conftest.dSYM
93169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
93170      conftest$ac_exeext conftest.$ac_ext
93171
93172fi
93173{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_util_openpty" >&5
93174$as_echo "$ac_cv_lib_ext_util_openpty" >&6; }
93175    if test $ac_cv_lib_ext_util_openpty = yes; then
93176  cat >>confdefs.h <<_ACEOF
93177#define HAVE_OPENPTY 1
93178_ACEOF
93179
93180fi
93181
93182LIBS=$ac_check_lib_ext_save_LIBS
93183
93184if test $ac_cv_lib_ext_util = yes; then
93185  cat >>confdefs.h <<_ACEOF
93186#define HAVE_LIBUTIL 1
93187_ACEOF
93188
93189		case "$OPENPTY_LIBS" in
93190		    *-lutil*)
93191			;;
93192		    *)
93193			OPENPTY_LIBS="-lutil $OPENPTY_LIBS"
93194			;;
93195		esac
93196
93197
93198fi
93199
93200
93201
93202	MAKE_SETTINGS="$MAKE_SETTINGS
93203OPENPTY_ENABLE = YES
93204"
93205SMB_INFO_ENABLES="$SMB_INFO_ENABLES
93206\$enabled{\"OPENPTY\"} = \"YES\";"
93207
93208
93209
93210MAKE_SETTINGS="$MAKE_SETTINGS
93211OPENPTY_LIBS = ${OPENPTY_LIBS}
93212OPENPTY_CFLAGS = ${OPENPTY_CFLAGS}
93213OPENPTY_CPPFLAGS = ${OPENPTY_CPPFLAGS}
93214OPENPTY_LDFLAGS = ${OPENPTY_LDFLAGS}
93215"
93216
93217
93218
93219
93220
93221
93222ac_check_lib_ext_save_LIBS=$LIBS
93223LIBS="-lintl $INTL_LIBS  $LIBS"
93224
93225
93226
93227
93228        { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
93229$as_echo_n "checking for gettext in -lintl... " >&6; }
93230if test "${ac_cv_lib_ext_intl_gettext+set}" = set; then
93231  $as_echo_n "(cached) " >&6
93232else
93233  cat >conftest.$ac_ext <<_ACEOF
93234/* confdefs.h.  */
93235_ACEOF
93236cat confdefs.h >>conftest.$ac_ext
93237cat >>conftest.$ac_ext <<_ACEOF
93238/* end confdefs.h.  */
93239
93240/* Override any GCC internal prototype to avoid an error.
93241   Use char because int might match the return type of a GCC
93242   builtin and then its argument prototype would still apply.  */
93243#ifdef __cplusplus
93244extern "C"
93245#endif
93246char gettext ();
93247int
93248main ()
93249{
93250return gettext ();
93251  ;
93252  return 0;
93253}
93254_ACEOF
93255rm -f conftest.$ac_objext conftest$ac_exeext
93256if { (ac_try="$ac_link"
93257case "(($ac_try" in
93258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93259  *) ac_try_echo=$ac_try;;
93260esac
93261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
93262$as_echo "$ac_try_echo") >&5
93263  (eval "$ac_link") 2>conftest.er1
93264  ac_status=$?
93265  grep -v '^ *+' conftest.er1 >conftest.err
93266  rm -f conftest.er1
93267  cat conftest.err >&5
93268  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93269  (exit $ac_status); } && {
93270	 test -z "$ac_c_werror_flag" ||
93271	 test ! -s conftest.err
93272       } && test -s conftest$ac_exeext && {
93273	 test "$cross_compiling" = yes ||
93274	 $as_test_x conftest$ac_exeext
93275       }; then
93276  ac_cv_lib_ext_intl_gettext=yes;
93277		  ac_cv_lib_ext_intl=yes
93278else
93279  $as_echo "$as_me: failed program was:" >&5
93280sed 's/^/| /' conftest.$ac_ext >&5
93281
93282	ac_cv_lib_ext_intl_gettext=no;
93283		  ac_cv_lib_ext_intl=no
93284fi
93285
93286rm -rf conftest.dSYM
93287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
93288      conftest$ac_exeext conftest.$ac_ext
93289
93290fi
93291{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_intl_gettext" >&5
93292$as_echo "$ac_cv_lib_ext_intl_gettext" >&6; }
93293    if test $ac_cv_lib_ext_intl_gettext = yes; then
93294  cat >>confdefs.h <<_ACEOF
93295#define HAVE_GETTEXT 1
93296_ACEOF
93297
93298fi
93299
93300LIBS=$ac_check_lib_ext_save_LIBS
93301
93302if test $ac_cv_lib_ext_intl = yes; then
93303  cat >>confdefs.h <<_ACEOF
93304#define HAVE_LIBINTL 1
93305_ACEOF
93306
93307		case "$INTL_LIBS" in
93308		    *-lintl*)
93309			;;
93310		    *)
93311			INTL_LIBS="-lintl $INTL_LIBS"
93312			;;
93313		esac
93314
93315
93316fi
93317
93318
93319
93320	MAKE_SETTINGS="$MAKE_SETTINGS
93321INTL_ENABLE = YES
93322"
93323SMB_INFO_ENABLES="$SMB_INFO_ENABLES
93324\$enabled{\"INTL\"} = \"YES\";"
93325
93326
93327
93328MAKE_SETTINGS="$MAKE_SETTINGS
93329INTL_LIBS = $INTL_LIBS
93330INTL_CFLAGS =
93331INTL_CPPFLAGS =
93332INTL_LDFLAGS =
93333"
93334
93335
93336
93337smb_save_LIBS=$LIBS
93338RESOLV_LIBS=""
93339LIBS=""
93340
93341
93342
93343
93344
93345for ac_header in arpa/nameser.h dns.h
93346do
93347as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
93348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
93349  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
93350$as_echo_n "checking for $ac_header... " >&6; }
93351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
93352  $as_echo_n "(cached) " >&6
93353fi
93354ac_res=`eval 'as_val=${'$as_ac_Header'}
93355		 $as_echo "$as_val"'`
93356	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
93357$as_echo "$ac_res" >&6; }
93358else
93359  # Is the header compilable?
93360{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
93361$as_echo_n "checking $ac_header usability... " >&6; }
93362cat >conftest.$ac_ext <<_ACEOF
93363/* confdefs.h.  */
93364_ACEOF
93365cat confdefs.h >>conftest.$ac_ext
93366cat >>conftest.$ac_ext <<_ACEOF
93367/* end confdefs.h.  */
93368$ac_includes_default
93369#include <$ac_header>
93370_ACEOF
93371rm -f conftest.$ac_objext
93372if { (ac_try="$ac_compile"
93373case "(($ac_try" in
93374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93375  *) ac_try_echo=$ac_try;;
93376esac
93377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
93378$as_echo "$ac_try_echo") >&5
93379  (eval "$ac_compile") 2>conftest.er1
93380  ac_status=$?
93381  grep -v '^ *+' conftest.er1 >conftest.err
93382  rm -f conftest.er1
93383  cat conftest.err >&5
93384  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93385  (exit $ac_status); } && {
93386	 test -z "$ac_c_werror_flag" ||
93387	 test ! -s conftest.err
93388       } && test -s conftest.$ac_objext; then
93389  ac_header_compiler=yes
93390else
93391  $as_echo "$as_me: failed program was:" >&5
93392sed 's/^/| /' conftest.$ac_ext >&5
93393
93394	ac_header_compiler=no
93395fi
93396
93397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93398{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
93399$as_echo "$ac_header_compiler" >&6; }
93400
93401# Is the header present?
93402{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
93403$as_echo_n "checking $ac_header presence... " >&6; }
93404cat >conftest.$ac_ext <<_ACEOF
93405/* confdefs.h.  */
93406_ACEOF
93407cat confdefs.h >>conftest.$ac_ext
93408cat >>conftest.$ac_ext <<_ACEOF
93409/* end confdefs.h.  */
93410#include <$ac_header>
93411_ACEOF
93412if { (ac_try="$ac_cpp conftest.$ac_ext"
93413case "(($ac_try" in
93414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93415  *) ac_try_echo=$ac_try;;
93416esac
93417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
93418$as_echo "$ac_try_echo") >&5
93419  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
93420  ac_status=$?
93421  grep -v '^ *+' conftest.er1 >conftest.err
93422  rm -f conftest.er1
93423  cat conftest.err >&5
93424  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93425  (exit $ac_status); } >/dev/null && {
93426	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
93427	 test ! -s conftest.err
93428       }; then
93429  ac_header_preproc=yes
93430else
93431  $as_echo "$as_me: failed program was:" >&5
93432sed 's/^/| /' conftest.$ac_ext >&5
93433
93434  ac_header_preproc=no
93435fi
93436
93437rm -f conftest.err conftest.$ac_ext
93438{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
93439$as_echo "$ac_header_preproc" >&6; }
93440
93441# So?  What about this header?
93442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
93443  yes:no: )
93444    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
93445$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
93446    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
93447$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
93448    ac_header_preproc=yes
93449    ;;
93450  no:yes:* )
93451    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
93452$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
93453    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
93454$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
93455    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
93456$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
93457    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
93458$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
93459    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
93460$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
93461    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
93462$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
93463    ( cat <<\_ASBOX
93464## ---------------------------------------- ##
93465## Report this to samba-technical@samba.org ##
93466## ---------------------------------------- ##
93467_ASBOX
93468     ) | sed "s/^/$as_me: WARNING:     /" >&2
93469    ;;
93470esac
93471{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
93472$as_echo_n "checking for $ac_header... " >&6; }
93473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
93474  $as_echo_n "(cached) " >&6
93475else
93476  eval "$as_ac_Header=\$ac_header_preproc"
93477fi
93478ac_res=`eval 'as_val=${'$as_ac_Header'}
93479		 $as_echo "$as_val"'`
93480	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
93481$as_echo "$ac_res" >&6; }
93482
93483fi
93484as_val=`eval 'as_val=${'$as_ac_Header'}
93485		 $as_echo "$as_val"'`
93486   if test "x$as_val" = x""yes; then
93487  cat >>confdefs.h <<_ACEOF
93488#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
93489_ACEOF
93490
93491fi
93492
93493done
93494
93495
93496
93497for ac_header in resolv.h
93498do
93499as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
93500{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
93501$as_echo_n "checking for $ac_header... " >&6; }
93502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
93503  $as_echo_n "(cached) " >&6
93504else
93505  cat >conftest.$ac_ext <<_ACEOF
93506/* confdefs.h.  */
93507_ACEOF
93508cat confdefs.h >>conftest.$ac_ext
93509cat >>conftest.$ac_ext <<_ACEOF
93510/* end confdefs.h.  */
93511$ac_includes_default
93512#ifdef HAVE_SYS_TYPES_H
93513#include <sys/types.h>
93514#endif
93515#ifdef HAVE_NETINET_IN_H
93516#include <netinet/in.h>
93517#endif
93518#ifdef HAVE_ARPA_NAMESER_H
93519#include <arpa/nameser.h>
93520#endif
93521
93522
93523#include <$ac_header>
93524_ACEOF
93525rm -f conftest.$ac_objext
93526if { (ac_try="$ac_compile"
93527case "(($ac_try" in
93528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93529  *) ac_try_echo=$ac_try;;
93530esac
93531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
93532$as_echo "$ac_try_echo") >&5
93533  (eval "$ac_compile") 2>conftest.er1
93534  ac_status=$?
93535  grep -v '^ *+' conftest.er1 >conftest.err
93536  rm -f conftest.er1
93537  cat conftest.err >&5
93538  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93539  (exit $ac_status); } && {
93540	 test -z "$ac_c_werror_flag" ||
93541	 test ! -s conftest.err
93542       } && test -s conftest.$ac_objext; then
93543  eval "$as_ac_Header=yes"
93544else
93545  $as_echo "$as_me: failed program was:" >&5
93546sed 's/^/| /' conftest.$ac_ext >&5
93547
93548	eval "$as_ac_Header=no"
93549fi
93550
93551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93552fi
93553ac_res=`eval 'as_val=${'$as_ac_Header'}
93554		 $as_echo "$as_val"'`
93555	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
93556$as_echo "$ac_res" >&6; }
93557as_val=`eval 'as_val=${'$as_ac_Header'}
93558		 $as_echo "$as_val"'`
93559   if test "x$as_val" = x""yes; then
93560  cat >>confdefs.h <<_ACEOF
93561#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
93562_ACEOF
93563
93564fi
93565
93566done
93567
93568
93569
93570
93571
93572
93573{ $as_echo "$as_me:$LINENO: checking for res_search" >&5
93574$as_echo_n "checking for res_search... " >&6; }
93575if test "${ac_cv_funclib_res_search+set}" = set; then
93576  $as_echo_n "(cached) " >&6
93577else
93578
93579if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
93580	ac_save_LIBS="$LIBS"
93581	for ac_lib in "" resolv; do
93582		case "$ac_lib" in
93583		"") ;;
93584		yes) ac_lib="" ;;
93585		no) continue ;;
93586		-l*) ;;
93587		*) ac_lib="-l$ac_lib" ;;
93588		esac
93589		LIBS=" $ac_lib  $ac_save_LIBS"
93590		cat >conftest.$ac_ext <<_ACEOF
93591/* confdefs.h.  */
93592_ACEOF
93593cat confdefs.h >>conftest.$ac_ext
93594cat >>conftest.$ac_ext <<_ACEOF
93595/* end confdefs.h.  */
93596
93597#include <stdio.h>
93598#ifdef HAVE_SYS_TYPES_H
93599#include <sys/types.h>
93600#endif
93601#ifdef HAVE_NETINET_IN_H
93602#include <netinet/in.h>
93603#endif
93604#ifdef HAVE_ARPA_NAMESER_H
93605#include <arpa/nameser.h>
93606#endif
93607#ifdef HAVE_RESOLV_H
93608#include <resolv.h>
93609#endif
93610
93611int
93612main ()
93613{
93614res_search(0,0,0,0,0)
93615  ;
93616  return 0;
93617}
93618_ACEOF
93619rm -f conftest.$ac_objext conftest$ac_exeext
93620if { (ac_try="$ac_link"
93621case "(($ac_try" in
93622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93623  *) ac_try_echo=$ac_try;;
93624esac
93625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
93626$as_echo "$ac_try_echo") >&5
93627  (eval "$ac_link") 2>conftest.er1
93628  ac_status=$?
93629  grep -v '^ *+' conftest.er1 >conftest.err
93630  rm -f conftest.er1
93631  cat conftest.err >&5
93632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93633  (exit $ac_status); } && {
93634	 test -z "$ac_c_werror_flag" ||
93635	 test ! -s conftest.err
93636       } && test -s conftest$ac_exeext && {
93637	 test "$cross_compiling" = yes ||
93638	 $as_test_x conftest$ac_exeext
93639       }; then
93640  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
93641else
93642  $as_echo "$as_me: failed program was:" >&5
93643sed 's/^/| /' conftest.$ac_ext >&5
93644
93645
93646fi
93647
93648rm -rf conftest.dSYM
93649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
93650      conftest$ac_exeext conftest.$ac_ext
93651	done
93652	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
93653	LIBS="$ac_save_LIBS"
93654fi
93655
93656fi
93657
93658
93659eval "ac_res=\$ac_cv_funclib_res_search"
93660
93661if false; then
93662
93663for ac_func in res_search
93664do
93665as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
93666{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
93667$as_echo_n "checking for $ac_func... " >&6; }
93668if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
93669  $as_echo_n "(cached) " >&6
93670else
93671  cat >conftest.$ac_ext <<_ACEOF
93672/* confdefs.h.  */
93673_ACEOF
93674cat confdefs.h >>conftest.$ac_ext
93675cat >>conftest.$ac_ext <<_ACEOF
93676/* end confdefs.h.  */
93677/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
93678   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
93679#define $ac_func innocuous_$ac_func
93680
93681/* System header to define __stub macros and hopefully few prototypes,
93682    which can conflict with char $ac_func (); below.
93683    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
93684    <limits.h> exists even on freestanding compilers.  */
93685
93686#ifdef __STDC__
93687# include <limits.h>
93688#else
93689# include <assert.h>
93690#endif
93691
93692#undef $ac_func
93693
93694/* Override any GCC internal prototype to avoid an error.
93695   Use char because int might match the return type of a GCC
93696   builtin and then its argument prototype would still apply.  */
93697#ifdef __cplusplus
93698extern "C"
93699#endif
93700char $ac_func ();
93701/* The GNU C library defines this for functions which it implements
93702    to always fail with ENOSYS.  Some functions are actually named
93703    something starting with __ and the normal name is an alias.  */
93704#if defined __stub_$ac_func || defined __stub___$ac_func
93705choke me
93706#endif
93707
93708int
93709main ()
93710{
93711return $ac_func ();
93712  ;
93713  return 0;
93714}
93715_ACEOF
93716rm -f conftest.$ac_objext conftest$ac_exeext
93717if { (ac_try="$ac_link"
93718case "(($ac_try" in
93719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93720  *) ac_try_echo=$ac_try;;
93721esac
93722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
93723$as_echo "$ac_try_echo") >&5
93724  (eval "$ac_link") 2>conftest.er1
93725  ac_status=$?
93726  grep -v '^ *+' conftest.er1 >conftest.err
93727  rm -f conftest.er1
93728  cat conftest.err >&5
93729  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93730  (exit $ac_status); } && {
93731	 test -z "$ac_c_werror_flag" ||
93732	 test ! -s conftest.err
93733       } && test -s conftest$ac_exeext && {
93734	 test "$cross_compiling" = yes ||
93735	 $as_test_x conftest$ac_exeext
93736       }; then
93737  eval "$as_ac_var=yes"
93738else
93739  $as_echo "$as_me: failed program was:" >&5
93740sed 's/^/| /' conftest.$ac_ext >&5
93741
93742	eval "$as_ac_var=no"
93743fi
93744
93745rm -rf conftest.dSYM
93746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
93747      conftest$ac_exeext conftest.$ac_ext
93748fi
93749ac_res=`eval 'as_val=${'$as_ac_var'}
93750		 $as_echo "$as_val"'`
93751	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
93752$as_echo "$ac_res" >&6; }
93753as_val=`eval 'as_val=${'$as_ac_var'}
93754		 $as_echo "$as_val"'`
93755   if test "x$as_val" = x""yes; then
93756  cat >>confdefs.h <<_ACEOF
93757#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
93758_ACEOF
93759
93760fi
93761done
93762
93763fi
93764# res_search
93765eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
93766eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
93767eval "LIB_res_search=$ac_res"
93768
93769case "$ac_res" in
93770	yes)
93771	eval "ac_cv_func_res_search=yes"
93772	eval "LIB_res_search="
93773	cat >>confdefs.h <<_ACEOF
93774#define $ac_tr_func 1
93775_ACEOF
93776
93777	{ $as_echo "$as_me:$LINENO: result: yes" >&5
93778$as_echo "yes" >&6; }
93779	;;
93780	no)
93781	eval "ac_cv_func_res_search=no"
93782	eval "LIB_res_search="
93783	{ $as_echo "$as_me:$LINENO: result: no" >&5
93784$as_echo "no" >&6; }
93785	;;
93786	*)
93787	eval "ac_cv_func_res_search=yes"
93788	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
93789	cat >>confdefs.h <<_ACEOF
93790#define $ac_tr_func 1
93791_ACEOF
93792
93793	cat >>confdefs.h <<_ACEOF
93794#define $ac_tr_lib 1
93795_ACEOF
93796
93797	{ $as_echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
93798$as_echo "yes, in $ac_res" >&6; }
93799	;;
93800esac
93801
93802
93803if test -n "$LIB_res_search"; then
93804	LIBS="$LIB_res_search $LIBS"
93805fi
93806
93807
93808
93809
93810
93811
93812{ $as_echo "$as_me:$LINENO: checking for res_nsearch" >&5
93813$as_echo_n "checking for res_nsearch... " >&6; }
93814if test "${ac_cv_funclib_res_nsearch+set}" = set; then
93815  $as_echo_n "(cached) " >&6
93816else
93817
93818if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
93819	ac_save_LIBS="$LIBS"
93820	for ac_lib in "" resolv; do
93821		case "$ac_lib" in
93822		"") ;;
93823		yes) ac_lib="" ;;
93824		no) continue ;;
93825		-l*) ;;
93826		*) ac_lib="-l$ac_lib" ;;
93827		esac
93828		LIBS=" $ac_lib  $ac_save_LIBS"
93829		cat >conftest.$ac_ext <<_ACEOF
93830/* confdefs.h.  */
93831_ACEOF
93832cat confdefs.h >>conftest.$ac_ext
93833cat >>conftest.$ac_ext <<_ACEOF
93834/* end confdefs.h.  */
93835
93836#include <stdio.h>
93837#ifdef HAVE_SYS_TYPES_H
93838#include <sys/types.h>
93839#endif
93840#ifdef HAVE_NETINET_IN_H
93841#include <netinet/in.h>
93842#endif
93843#ifdef HAVE_ARPA_NAMESER_H
93844#include <arpa/nameser.h>
93845#endif
93846#ifdef HAVE_RESOLV_H
93847#include <resolv.h>
93848#endif
93849
93850int
93851main ()
93852{
93853res_nsearch(0,0,0,0,0,0)
93854  ;
93855  return 0;
93856}
93857_ACEOF
93858rm -f conftest.$ac_objext conftest$ac_exeext
93859if { (ac_try="$ac_link"
93860case "(($ac_try" in
93861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93862  *) ac_try_echo=$ac_try;;
93863esac
93864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
93865$as_echo "$ac_try_echo") >&5
93866  (eval "$ac_link") 2>conftest.er1
93867  ac_status=$?
93868  grep -v '^ *+' conftest.er1 >conftest.err
93869  rm -f conftest.er1
93870  cat conftest.err >&5
93871  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93872  (exit $ac_status); } && {
93873	 test -z "$ac_c_werror_flag" ||
93874	 test ! -s conftest.err
93875       } && test -s conftest$ac_exeext && {
93876	 test "$cross_compiling" = yes ||
93877	 $as_test_x conftest$ac_exeext
93878       }; then
93879  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
93880else
93881  $as_echo "$as_me: failed program was:" >&5
93882sed 's/^/| /' conftest.$ac_ext >&5
93883
93884
93885fi
93886
93887rm -rf conftest.dSYM
93888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
93889      conftest$ac_exeext conftest.$ac_ext
93890	done
93891	eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
93892	LIBS="$ac_save_LIBS"
93893fi
93894
93895fi
93896
93897
93898eval "ac_res=\$ac_cv_funclib_res_nsearch"
93899
93900if false; then
93901
93902for ac_func in res_nsearch
93903do
93904as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
93905{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
93906$as_echo_n "checking for $ac_func... " >&6; }
93907if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
93908  $as_echo_n "(cached) " >&6
93909else
93910  cat >conftest.$ac_ext <<_ACEOF
93911/* confdefs.h.  */
93912_ACEOF
93913cat confdefs.h >>conftest.$ac_ext
93914cat >>conftest.$ac_ext <<_ACEOF
93915/* end confdefs.h.  */
93916/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
93917   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
93918#define $ac_func innocuous_$ac_func
93919
93920/* System header to define __stub macros and hopefully few prototypes,
93921    which can conflict with char $ac_func (); below.
93922    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
93923    <limits.h> exists even on freestanding compilers.  */
93924
93925#ifdef __STDC__
93926# include <limits.h>
93927#else
93928# include <assert.h>
93929#endif
93930
93931#undef $ac_func
93932
93933/* Override any GCC internal prototype to avoid an error.
93934   Use char because int might match the return type of a GCC
93935   builtin and then its argument prototype would still apply.  */
93936#ifdef __cplusplus
93937extern "C"
93938#endif
93939char $ac_func ();
93940/* The GNU C library defines this for functions which it implements
93941    to always fail with ENOSYS.  Some functions are actually named
93942    something starting with __ and the normal name is an alias.  */
93943#if defined __stub_$ac_func || defined __stub___$ac_func
93944choke me
93945#endif
93946
93947int
93948main ()
93949{
93950return $ac_func ();
93951  ;
93952  return 0;
93953}
93954_ACEOF
93955rm -f conftest.$ac_objext conftest$ac_exeext
93956if { (ac_try="$ac_link"
93957case "(($ac_try" in
93958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93959  *) ac_try_echo=$ac_try;;
93960esac
93961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
93962$as_echo "$ac_try_echo") >&5
93963  (eval "$ac_link") 2>conftest.er1
93964  ac_status=$?
93965  grep -v '^ *+' conftest.er1 >conftest.err
93966  rm -f conftest.er1
93967  cat conftest.err >&5
93968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93969  (exit $ac_status); } && {
93970	 test -z "$ac_c_werror_flag" ||
93971	 test ! -s conftest.err
93972       } && test -s conftest$ac_exeext && {
93973	 test "$cross_compiling" = yes ||
93974	 $as_test_x conftest$ac_exeext
93975       }; then
93976  eval "$as_ac_var=yes"
93977else
93978  $as_echo "$as_me: failed program was:" >&5
93979sed 's/^/| /' conftest.$ac_ext >&5
93980
93981	eval "$as_ac_var=no"
93982fi
93983
93984rm -rf conftest.dSYM
93985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
93986      conftest$ac_exeext conftest.$ac_ext
93987fi
93988ac_res=`eval 'as_val=${'$as_ac_var'}
93989		 $as_echo "$as_val"'`
93990	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
93991$as_echo "$ac_res" >&6; }
93992as_val=`eval 'as_val=${'$as_ac_var'}
93993		 $as_echo "$as_val"'`
93994   if test "x$as_val" = x""yes; then
93995  cat >>confdefs.h <<_ACEOF
93996#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
93997_ACEOF
93998
93999fi
94000done
94001
94002fi
94003# res_nsearch
94004eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
94005eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
94006eval "LIB_res_nsearch=$ac_res"
94007
94008case "$ac_res" in
94009	yes)
94010	eval "ac_cv_func_res_nsearch=yes"
94011	eval "LIB_res_nsearch="
94012	cat >>confdefs.h <<_ACEOF
94013#define $ac_tr_func 1
94014_ACEOF
94015
94016	{ $as_echo "$as_me:$LINENO: result: yes" >&5
94017$as_echo "yes" >&6; }
94018	;;
94019	no)
94020	eval "ac_cv_func_res_nsearch=no"
94021	eval "LIB_res_nsearch="
94022	{ $as_echo "$as_me:$LINENO: result: no" >&5
94023$as_echo "no" >&6; }
94024	;;
94025	*)
94026	eval "ac_cv_func_res_nsearch=yes"
94027	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
94028	cat >>confdefs.h <<_ACEOF
94029#define $ac_tr_func 1
94030_ACEOF
94031
94032	cat >>confdefs.h <<_ACEOF
94033#define $ac_tr_lib 1
94034_ACEOF
94035
94036	{ $as_echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
94037$as_echo "yes, in $ac_res" >&6; }
94038	;;
94039esac
94040
94041
94042if test -n "$LIB_res_nsearch"; then
94043	LIBS="$LIB_res_nsearch $LIBS"
94044fi
94045
94046
94047
94048
94049
94050
94051{ $as_echo "$as_me:$LINENO: checking for res_ndestroy" >&5
94052$as_echo_n "checking for res_ndestroy... " >&6; }
94053if test "${ac_cv_funclib_res_ndestroy+set}" = set; then
94054  $as_echo_n "(cached) " >&6
94055else
94056
94057if eval "test \"\$ac_cv_func_res_ndestroy\" != yes" ; then
94058	ac_save_LIBS="$LIBS"
94059	for ac_lib in "" resolv; do
94060		case "$ac_lib" in
94061		"") ;;
94062		yes) ac_lib="" ;;
94063		no) continue ;;
94064		-l*) ;;
94065		*) ac_lib="-l$ac_lib" ;;
94066		esac
94067		LIBS=" $ac_lib  $ac_save_LIBS"
94068		cat >conftest.$ac_ext <<_ACEOF
94069/* confdefs.h.  */
94070_ACEOF
94071cat confdefs.h >>conftest.$ac_ext
94072cat >>conftest.$ac_ext <<_ACEOF
94073/* end confdefs.h.  */
94074
94075#include <stdio.h>
94076#ifdef HAVE_SYS_TYPES_H
94077#include <sys/types.h>
94078#endif
94079#ifdef HAVE_NETINET_IN_H
94080#include <netinet/in.h>
94081#endif
94082#ifdef HAVE_ARPA_NAMESER_H
94083#include <arpa/nameser.h>
94084#endif
94085#ifdef HAVE_RESOLV_H
94086#include <resolv.h>
94087#endif
94088
94089int
94090main ()
94091{
94092res_ndestroy(0)
94093  ;
94094  return 0;
94095}
94096_ACEOF
94097rm -f conftest.$ac_objext conftest$ac_exeext
94098if { (ac_try="$ac_link"
94099case "(($ac_try" in
94100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94101  *) ac_try_echo=$ac_try;;
94102esac
94103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
94104$as_echo "$ac_try_echo") >&5
94105  (eval "$ac_link") 2>conftest.er1
94106  ac_status=$?
94107  grep -v '^ *+' conftest.er1 >conftest.err
94108  rm -f conftest.er1
94109  cat conftest.err >&5
94110  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
94111  (exit $ac_status); } && {
94112	 test -z "$ac_c_werror_flag" ||
94113	 test ! -s conftest.err
94114       } && test -s conftest$ac_exeext && {
94115	 test "$cross_compiling" = yes ||
94116	 $as_test_x conftest$ac_exeext
94117       }; then
94118  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_ndestroy=$ac_lib; else ac_cv_funclib_res_ndestroy=yes; fi";break
94119else
94120  $as_echo "$as_me: failed program was:" >&5
94121sed 's/^/| /' conftest.$ac_ext >&5
94122
94123
94124fi
94125
94126rm -rf conftest.dSYM
94127rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
94128      conftest$ac_exeext conftest.$ac_ext
94129	done
94130	eval "ac_cv_funclib_res_ndestroy=\${ac_cv_funclib_res_ndestroy-no}"
94131	LIBS="$ac_save_LIBS"
94132fi
94133
94134fi
94135
94136
94137eval "ac_res=\$ac_cv_funclib_res_ndestroy"
94138
94139if false; then
94140
94141for ac_func in res_ndestroy
94142do
94143as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
94144{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
94145$as_echo_n "checking for $ac_func... " >&6; }
94146if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
94147  $as_echo_n "(cached) " >&6
94148else
94149  cat >conftest.$ac_ext <<_ACEOF
94150/* confdefs.h.  */
94151_ACEOF
94152cat confdefs.h >>conftest.$ac_ext
94153cat >>conftest.$ac_ext <<_ACEOF
94154/* end confdefs.h.  */
94155/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
94156   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
94157#define $ac_func innocuous_$ac_func
94158
94159/* System header to define __stub macros and hopefully few prototypes,
94160    which can conflict with char $ac_func (); below.
94161    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
94162    <limits.h> exists even on freestanding compilers.  */
94163
94164#ifdef __STDC__
94165# include <limits.h>
94166#else
94167# include <assert.h>
94168#endif
94169
94170#undef $ac_func
94171
94172/* Override any GCC internal prototype to avoid an error.
94173   Use char because int might match the return type of a GCC
94174   builtin and then its argument prototype would still apply.  */
94175#ifdef __cplusplus
94176extern "C"
94177#endif
94178char $ac_func ();
94179/* The GNU C library defines this for functions which it implements
94180    to always fail with ENOSYS.  Some functions are actually named
94181    something starting with __ and the normal name is an alias.  */
94182#if defined __stub_$ac_func || defined __stub___$ac_func
94183choke me
94184#endif
94185
94186int
94187main ()
94188{
94189return $ac_func ();
94190  ;
94191  return 0;
94192}
94193_ACEOF
94194rm -f conftest.$ac_objext conftest$ac_exeext
94195if { (ac_try="$ac_link"
94196case "(($ac_try" in
94197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94198  *) ac_try_echo=$ac_try;;
94199esac
94200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
94201$as_echo "$ac_try_echo") >&5
94202  (eval "$ac_link") 2>conftest.er1
94203  ac_status=$?
94204  grep -v '^ *+' conftest.er1 >conftest.err
94205  rm -f conftest.er1
94206  cat conftest.err >&5
94207  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
94208  (exit $ac_status); } && {
94209	 test -z "$ac_c_werror_flag" ||
94210	 test ! -s conftest.err
94211       } && test -s conftest$ac_exeext && {
94212	 test "$cross_compiling" = yes ||
94213	 $as_test_x conftest$ac_exeext
94214       }; then
94215  eval "$as_ac_var=yes"
94216else
94217  $as_echo "$as_me: failed program was:" >&5
94218sed 's/^/| /' conftest.$ac_ext >&5
94219
94220	eval "$as_ac_var=no"
94221fi
94222
94223rm -rf conftest.dSYM
94224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
94225      conftest$ac_exeext conftest.$ac_ext
94226fi
94227ac_res=`eval 'as_val=${'$as_ac_var'}
94228		 $as_echo "$as_val"'`
94229	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
94230$as_echo "$ac_res" >&6; }
94231as_val=`eval 'as_val=${'$as_ac_var'}
94232		 $as_echo "$as_val"'`
94233   if test "x$as_val" = x""yes; then
94234  cat >>confdefs.h <<_ACEOF
94235#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
94236_ACEOF
94237
94238fi
94239done
94240
94241fi
94242# res_ndestroy
94243eval "ac_tr_func=HAVE_`echo res_ndestroy | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
94244eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
94245eval "LIB_res_ndestroy=$ac_res"
94246
94247case "$ac_res" in
94248	yes)
94249	eval "ac_cv_func_res_ndestroy=yes"
94250	eval "LIB_res_ndestroy="
94251	cat >>confdefs.h <<_ACEOF
94252#define $ac_tr_func 1
94253_ACEOF
94254
94255	{ $as_echo "$as_me:$LINENO: result: yes" >&5
94256$as_echo "yes" >&6; }
94257	;;
94258	no)
94259	eval "ac_cv_func_res_ndestroy=no"
94260	eval "LIB_res_ndestroy="
94261	{ $as_echo "$as_me:$LINENO: result: no" >&5
94262$as_echo "no" >&6; }
94263	;;
94264	*)
94265	eval "ac_cv_func_res_ndestroy=yes"
94266	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
94267	cat >>confdefs.h <<_ACEOF
94268#define $ac_tr_func 1
94269_ACEOF
94270
94271	cat >>confdefs.h <<_ACEOF
94272#define $ac_tr_lib 1
94273_ACEOF
94274
94275	{ $as_echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
94276$as_echo "yes, in $ac_res" >&6; }
94277	;;
94278esac
94279
94280
94281if test -n "$LIB_res_ndestroy"; then
94282	LIBS="$LIB_res_ndestroy $LIBS"
94283fi
94284
94285
94286
94287
94288
94289{ $as_echo "$as_me:$LINENO: checking for dns_search" >&5
94290$as_echo_n "checking for dns_search... " >&6; }
94291if test "${ac_cv_funclib_dns_search+set}" = set; then
94292  $as_echo_n "(cached) " >&6
94293else
94294
94295if eval "test \"\$ac_cv_func_dns_search\" != yes" ; then
94296	ac_save_LIBS="$LIBS"
94297	for ac_lib in "" ; do
94298		case "$ac_lib" in
94299		"") ;;
94300		yes) ac_lib="" ;;
94301		no) continue ;;
94302		-l*) ;;
94303		*) ac_lib="-l$ac_lib" ;;
94304		esac
94305		LIBS=" $ac_lib  $ac_save_LIBS"
94306		cat >conftest.$ac_ext <<_ACEOF
94307/* confdefs.h.  */
94308_ACEOF
94309cat confdefs.h >>conftest.$ac_ext
94310cat >>conftest.$ac_ext <<_ACEOF
94311/* end confdefs.h.  */
94312
94313#ifdef HAVE_DNS_H
94314#include <dns.h>
94315#endif
94316
94317int
94318main ()
94319{
94320dns_search(0,0,0,0,0,0,0,0)
94321  ;
94322  return 0;
94323}
94324_ACEOF
94325rm -f conftest.$ac_objext conftest$ac_exeext
94326if { (ac_try="$ac_link"
94327case "(($ac_try" in
94328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94329  *) ac_try_echo=$ac_try;;
94330esac
94331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
94332$as_echo "$ac_try_echo") >&5
94333  (eval "$ac_link") 2>conftest.er1
94334  ac_status=$?
94335  grep -v '^ *+' conftest.er1 >conftest.err
94336  rm -f conftest.er1
94337  cat conftest.err >&5
94338  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
94339  (exit $ac_status); } && {
94340	 test -z "$ac_c_werror_flag" ||
94341	 test ! -s conftest.err
94342       } && test -s conftest$ac_exeext && {
94343	 test "$cross_compiling" = yes ||
94344	 $as_test_x conftest$ac_exeext
94345       }; then
94346  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dns_search=$ac_lib; else ac_cv_funclib_dns_search=yes; fi";break
94347else
94348  $as_echo "$as_me: failed program was:" >&5
94349sed 's/^/| /' conftest.$ac_ext >&5
94350
94351
94352fi
94353
94354rm -rf conftest.dSYM
94355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
94356      conftest$ac_exeext conftest.$ac_ext
94357	done
94358	eval "ac_cv_funclib_dns_search=\${ac_cv_funclib_dns_search-no}"
94359	LIBS="$ac_save_LIBS"
94360fi
94361
94362fi
94363
94364
94365eval "ac_res=\$ac_cv_funclib_dns_search"
94366
94367if false; then
94368
94369for ac_func in dns_search
94370do
94371as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
94372{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
94373$as_echo_n "checking for $ac_func... " >&6; }
94374if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
94375  $as_echo_n "(cached) " >&6
94376else
94377  cat >conftest.$ac_ext <<_ACEOF
94378/* confdefs.h.  */
94379_ACEOF
94380cat confdefs.h >>conftest.$ac_ext
94381cat >>conftest.$ac_ext <<_ACEOF
94382/* end confdefs.h.  */
94383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
94384   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
94385#define $ac_func innocuous_$ac_func
94386
94387/* System header to define __stub macros and hopefully few prototypes,
94388    which can conflict with char $ac_func (); below.
94389    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
94390    <limits.h> exists even on freestanding compilers.  */
94391
94392#ifdef __STDC__
94393# include <limits.h>
94394#else
94395# include <assert.h>
94396#endif
94397
94398#undef $ac_func
94399
94400/* Override any GCC internal prototype to avoid an error.
94401   Use char because int might match the return type of a GCC
94402   builtin and then its argument prototype would still apply.  */
94403#ifdef __cplusplus
94404extern "C"
94405#endif
94406char $ac_func ();
94407/* The GNU C library defines this for functions which it implements
94408    to always fail with ENOSYS.  Some functions are actually named
94409    something starting with __ and the normal name is an alias.  */
94410#if defined __stub_$ac_func || defined __stub___$ac_func
94411choke me
94412#endif
94413
94414int
94415main ()
94416{
94417return $ac_func ();
94418  ;
94419  return 0;
94420}
94421_ACEOF
94422rm -f conftest.$ac_objext conftest$ac_exeext
94423if { (ac_try="$ac_link"
94424case "(($ac_try" in
94425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94426  *) ac_try_echo=$ac_try;;
94427esac
94428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
94429$as_echo "$ac_try_echo") >&5
94430  (eval "$ac_link") 2>conftest.er1
94431  ac_status=$?
94432  grep -v '^ *+' conftest.er1 >conftest.err
94433  rm -f conftest.er1
94434  cat conftest.err >&5
94435  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
94436  (exit $ac_status); } && {
94437	 test -z "$ac_c_werror_flag" ||
94438	 test ! -s conftest.err
94439       } && test -s conftest$ac_exeext && {
94440	 test "$cross_compiling" = yes ||
94441	 $as_test_x conftest$ac_exeext
94442       }; then
94443  eval "$as_ac_var=yes"
94444else
94445  $as_echo "$as_me: failed program was:" >&5
94446sed 's/^/| /' conftest.$ac_ext >&5
94447
94448	eval "$as_ac_var=no"
94449fi
94450
94451rm -rf conftest.dSYM
94452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
94453      conftest$ac_exeext conftest.$ac_ext
94454fi
94455ac_res=`eval 'as_val=${'$as_ac_var'}
94456		 $as_echo "$as_val"'`
94457	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
94458$as_echo "$ac_res" >&6; }
94459as_val=`eval 'as_val=${'$as_ac_var'}
94460		 $as_echo "$as_val"'`
94461   if test "x$as_val" = x""yes; then
94462  cat >>confdefs.h <<_ACEOF
94463#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
94464_ACEOF
94465
94466fi
94467done
94468
94469fi
94470# dns_search
94471eval "ac_tr_func=HAVE_`echo dns_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
94472eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
94473eval "LIB_dns_search=$ac_res"
94474
94475case "$ac_res" in
94476	yes)
94477	eval "ac_cv_func_dns_search=yes"
94478	eval "LIB_dns_search="
94479	cat >>confdefs.h <<_ACEOF
94480#define $ac_tr_func 1
94481_ACEOF
94482
94483	{ $as_echo "$as_me:$LINENO: result: yes" >&5
94484$as_echo "yes" >&6; }
94485	;;
94486	no)
94487	eval "ac_cv_func_dns_search=no"
94488	eval "LIB_dns_search="
94489	{ $as_echo "$as_me:$LINENO: result: no" >&5
94490$as_echo "no" >&6; }
94491	;;
94492	*)
94493	eval "ac_cv_func_dns_search=yes"
94494	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
94495	cat >>confdefs.h <<_ACEOF
94496#define $ac_tr_func 1
94497_ACEOF
94498
94499	cat >>confdefs.h <<_ACEOF
94500#define $ac_tr_lib 1
94501_ACEOF
94502
94503	{ $as_echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
94504$as_echo "yes, in $ac_res" >&6; }
94505	;;
94506esac
94507
94508
94509
94510
94511
94512
94513
94514
94515{ $as_echo "$as_me:$LINENO: checking for dn_expand" >&5
94516$as_echo_n "checking for dn_expand... " >&6; }
94517if test "${ac_cv_funclib_dn_expand+set}" = set; then
94518  $as_echo_n "(cached) " >&6
94519else
94520
94521if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
94522	ac_save_LIBS="$LIBS"
94523	for ac_lib in "" resolv; do
94524		case "$ac_lib" in
94525		"") ;;
94526		yes) ac_lib="" ;;
94527		no) continue ;;
94528		-l*) ;;
94529		*) ac_lib="-l$ac_lib" ;;
94530		esac
94531		LIBS=" $ac_lib  $ac_save_LIBS"
94532		cat >conftest.$ac_ext <<_ACEOF
94533/* confdefs.h.  */
94534_ACEOF
94535cat confdefs.h >>conftest.$ac_ext
94536cat >>conftest.$ac_ext <<_ACEOF
94537/* end confdefs.h.  */
94538
94539#include <stdio.h>
94540#ifdef HAVE_SYS_TYPES_H
94541#include <sys/types.h>
94542#endif
94543#ifdef HAVE_NETINET_IN_H
94544#include <netinet/in.h>
94545#endif
94546#ifdef HAVE_ARPA_NAMESER_H
94547#include <arpa/nameser.h>
94548#endif
94549#ifdef HAVE_RESOLV_H
94550#include <resolv.h>
94551#endif
94552
94553int
94554main ()
94555{
94556dn_expand(0,0,0,0,0)
94557  ;
94558  return 0;
94559}
94560_ACEOF
94561rm -f conftest.$ac_objext conftest$ac_exeext
94562if { (ac_try="$ac_link"
94563case "(($ac_try" in
94564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94565  *) ac_try_echo=$ac_try;;
94566esac
94567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
94568$as_echo "$ac_try_echo") >&5
94569  (eval "$ac_link") 2>conftest.er1
94570  ac_status=$?
94571  grep -v '^ *+' conftest.er1 >conftest.err
94572  rm -f conftest.er1
94573  cat conftest.err >&5
94574  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
94575  (exit $ac_status); } && {
94576	 test -z "$ac_c_werror_flag" ||
94577	 test ! -s conftest.err
94578       } && test -s conftest$ac_exeext && {
94579	 test "$cross_compiling" = yes ||
94580	 $as_test_x conftest$ac_exeext
94581       }; then
94582  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
94583else
94584  $as_echo "$as_me: failed program was:" >&5
94585sed 's/^/| /' conftest.$ac_ext >&5
94586
94587
94588fi
94589
94590rm -rf conftest.dSYM
94591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
94592      conftest$ac_exeext conftest.$ac_ext
94593	done
94594	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
94595	LIBS="$ac_save_LIBS"
94596fi
94597
94598fi
94599
94600
94601eval "ac_res=\$ac_cv_funclib_dn_expand"
94602
94603if false; then
94604
94605for ac_func in dn_expand
94606do
94607as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
94608{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
94609$as_echo_n "checking for $ac_func... " >&6; }
94610if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
94611  $as_echo_n "(cached) " >&6
94612else
94613  cat >conftest.$ac_ext <<_ACEOF
94614/* confdefs.h.  */
94615_ACEOF
94616cat confdefs.h >>conftest.$ac_ext
94617cat >>conftest.$ac_ext <<_ACEOF
94618/* end confdefs.h.  */
94619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
94620   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
94621#define $ac_func innocuous_$ac_func
94622
94623/* System header to define __stub macros and hopefully few prototypes,
94624    which can conflict with char $ac_func (); below.
94625    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
94626    <limits.h> exists even on freestanding compilers.  */
94627
94628#ifdef __STDC__
94629# include <limits.h>
94630#else
94631# include <assert.h>
94632#endif
94633
94634#undef $ac_func
94635
94636/* Override any GCC internal prototype to avoid an error.
94637   Use char because int might match the return type of a GCC
94638   builtin and then its argument prototype would still apply.  */
94639#ifdef __cplusplus
94640extern "C"
94641#endif
94642char $ac_func ();
94643/* The GNU C library defines this for functions which it implements
94644    to always fail with ENOSYS.  Some functions are actually named
94645    something starting with __ and the normal name is an alias.  */
94646#if defined __stub_$ac_func || defined __stub___$ac_func
94647choke me
94648#endif
94649
94650int
94651main ()
94652{
94653return $ac_func ();
94654  ;
94655  return 0;
94656}
94657_ACEOF
94658rm -f conftest.$ac_objext conftest$ac_exeext
94659if { (ac_try="$ac_link"
94660case "(($ac_try" in
94661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94662  *) ac_try_echo=$ac_try;;
94663esac
94664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
94665$as_echo "$ac_try_echo") >&5
94666  (eval "$ac_link") 2>conftest.er1
94667  ac_status=$?
94668  grep -v '^ *+' conftest.er1 >conftest.err
94669  rm -f conftest.er1
94670  cat conftest.err >&5
94671  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
94672  (exit $ac_status); } && {
94673	 test -z "$ac_c_werror_flag" ||
94674	 test ! -s conftest.err
94675       } && test -s conftest$ac_exeext && {
94676	 test "$cross_compiling" = yes ||
94677	 $as_test_x conftest$ac_exeext
94678       }; then
94679  eval "$as_ac_var=yes"
94680else
94681  $as_echo "$as_me: failed program was:" >&5
94682sed 's/^/| /' conftest.$ac_ext >&5
94683
94684	eval "$as_ac_var=no"
94685fi
94686
94687rm -rf conftest.dSYM
94688rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
94689      conftest$ac_exeext conftest.$ac_ext
94690fi
94691ac_res=`eval 'as_val=${'$as_ac_var'}
94692		 $as_echo "$as_val"'`
94693	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
94694$as_echo "$ac_res" >&6; }
94695as_val=`eval 'as_val=${'$as_ac_var'}
94696		 $as_echo "$as_val"'`
94697   if test "x$as_val" = x""yes; then
94698  cat >>confdefs.h <<_ACEOF
94699#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
94700_ACEOF
94701
94702fi
94703done
94704
94705fi
94706# dn_expand
94707eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
94708eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
94709eval "LIB_dn_expand=$ac_res"
94710
94711case "$ac_res" in
94712	yes)
94713	eval "ac_cv_func_dn_expand=yes"
94714	eval "LIB_dn_expand="
94715	cat >>confdefs.h <<_ACEOF
94716#define $ac_tr_func 1
94717_ACEOF
94718
94719	{ $as_echo "$as_me:$LINENO: result: yes" >&5
94720$as_echo "yes" >&6; }
94721	;;
94722	no)
94723	eval "ac_cv_func_dn_expand=no"
94724	eval "LIB_dn_expand="
94725	{ $as_echo "$as_me:$LINENO: result: no" >&5
94726$as_echo "no" >&6; }
94727	;;
94728	*)
94729	eval "ac_cv_func_dn_expand=yes"
94730	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
94731	cat >>confdefs.h <<_ACEOF
94732#define $ac_tr_func 1
94733_ACEOF
94734
94735	cat >>confdefs.h <<_ACEOF
94736#define $ac_tr_lib 1
94737_ACEOF
94738
94739	{ $as_echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
94740$as_echo "yes, in $ac_res" >&6; }
94741	;;
94742esac
94743
94744
94745if test -n "$LIB_dn_expand"; then
94746	LIBS="$LIB_dn_expand $LIBS"
94747fi
94748
94749
94750
94751{ $as_echo "$as_me:$LINENO: checking for _res" >&5
94752$as_echo_n "checking for _res... " >&6; }
94753if test "${ac_cv_var__res+set}" = set; then
94754  $as_echo_n "(cached) " >&6
94755else
94756
94757
94758	cat >conftest.$ac_ext <<_ACEOF
94759/* confdefs.h.  */
94760_ACEOF
94761cat confdefs.h >>conftest.$ac_ext
94762cat >>conftest.$ac_ext <<_ACEOF
94763/* end confdefs.h.  */
94764#include <stdio.h>
94765#ifdef HAVE_SYS_TYPES_H
94766#include <sys/types.h>
94767#endif
94768#ifdef HAVE_NETINET_IN_H
94769#include <netinet/in.h>
94770#endif
94771#ifdef HAVE_ARPA_NAMESER_H
94772#include <arpa/nameser.h>
94773#endif
94774#ifdef HAVE_RESOLV_H
94775#include <resolv.h>
94776#endif
94777	void * foo(void) { return &_res; }
94778int
94779main ()
94780{
94781foo()
94782  ;
94783  return 0;
94784}
94785_ACEOF
94786rm -f conftest.$ac_objext conftest$ac_exeext
94787if { (ac_try="$ac_link"
94788case "(($ac_try" in
94789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94790  *) ac_try_echo=$ac_try;;
94791esac
94792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
94793$as_echo "$ac_try_echo") >&5
94794  (eval "$ac_link") 2>conftest.er1
94795  ac_status=$?
94796  grep -v '^ *+' conftest.er1 >conftest.err
94797  rm -f conftest.er1
94798  cat conftest.err >&5
94799  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
94800  (exit $ac_status); } && {
94801	 test -z "$ac_c_werror_flag" ||
94802	 test ! -s conftest.err
94803       } && test -s conftest$ac_exeext && {
94804	 test "$cross_compiling" = yes ||
94805	 $as_test_x conftest$ac_exeext
94806       }; then
94807  ac_cv_var__res=yes
94808else
94809  $as_echo "$as_me: failed program was:" >&5
94810sed 's/^/| /' conftest.$ac_ext >&5
94811
94812	ac_cv_var__res=no
94813fi
94814
94815rm -rf conftest.dSYM
94816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
94817      conftest$ac_exeext conftest.$ac_ext
94818if test "$ac_cv_var__res" != yes ; then
94819cat >conftest.$ac_ext <<_ACEOF
94820/* confdefs.h.  */
94821_ACEOF
94822cat confdefs.h >>conftest.$ac_ext
94823cat >>conftest.$ac_ext <<_ACEOF
94824/* end confdefs.h.  */
94825extern int _res;
94826int foo(void) { return _res; }
94827int
94828main ()
94829{
94830foo()
94831  ;
94832  return 0;
94833}
94834_ACEOF
94835rm -f conftest.$ac_objext conftest$ac_exeext
94836if { (ac_try="$ac_link"
94837case "(($ac_try" in
94838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94839  *) ac_try_echo=$ac_try;;
94840esac
94841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
94842$as_echo "$ac_try_echo") >&5
94843  (eval "$ac_link") 2>conftest.er1
94844  ac_status=$?
94845  grep -v '^ *+' conftest.er1 >conftest.err
94846  rm -f conftest.er1
94847  cat conftest.err >&5
94848  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
94849  (exit $ac_status); } && {
94850	 test -z "$ac_c_werror_flag" ||
94851	 test ! -s conftest.err
94852       } && test -s conftest$ac_exeext && {
94853	 test "$cross_compiling" = yes ||
94854	 $as_test_x conftest$ac_exeext
94855       }; then
94856  ac_cv_var__res=yes
94857else
94858  $as_echo "$as_me: failed program was:" >&5
94859sed 's/^/| /' conftest.$ac_ext >&5
94860
94861	ac_cv_var__res=no
94862fi
94863
94864rm -rf conftest.dSYM
94865rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
94866      conftest$ac_exeext conftest.$ac_ext
94867fi
94868
94869fi
94870
94871ac_foo=`eval echo \\$ac_cv_var__res`
94872{ $as_echo "$as_me:$LINENO: result: $ac_foo" >&5
94873$as_echo "$ac_foo" >&6; }
94874if test "$ac_foo" = yes; then
94875
94876cat >>confdefs.h <<_ACEOF
94877#define HAVE__RES 1
94878_ACEOF
94879
94880	{ $as_echo "$as_me:$LINENO: checking whether _res is declared" >&5
94881$as_echo_n "checking whether _res is declared... " >&6; }
94882if test "${ac_cv_have_decl__res+set}" = set; then
94883  $as_echo_n "(cached) " >&6
94884else
94885  cat >conftest.$ac_ext <<_ACEOF
94886/* confdefs.h.  */
94887_ACEOF
94888cat confdefs.h >>conftest.$ac_ext
94889cat >>conftest.$ac_ext <<_ACEOF
94890/* end confdefs.h.  */
94891#include <stdio.h>
94892#ifdef HAVE_SYS_TYPES_H
94893#include <sys/types.h>
94894#endif
94895#ifdef HAVE_NETINET_IN_H
94896#include <netinet/in.h>
94897#endif
94898#ifdef HAVE_ARPA_NAMESER_H
94899#include <arpa/nameser.h>
94900#endif
94901#ifdef HAVE_RESOLV_H
94902#include <resolv.h>
94903#endif
94904
94905int
94906main ()
94907{
94908#ifndef _res
94909  (void) _res;
94910#endif
94911
94912  ;
94913  return 0;
94914}
94915_ACEOF
94916rm -f conftest.$ac_objext
94917if { (ac_try="$ac_compile"
94918case "(($ac_try" in
94919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94920  *) ac_try_echo=$ac_try;;
94921esac
94922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
94923$as_echo "$ac_try_echo") >&5
94924  (eval "$ac_compile") 2>conftest.er1
94925  ac_status=$?
94926  grep -v '^ *+' conftest.er1 >conftest.err
94927  rm -f conftest.er1
94928  cat conftest.err >&5
94929  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
94930  (exit $ac_status); } && {
94931	 test -z "$ac_c_werror_flag" ||
94932	 test ! -s conftest.err
94933       } && test -s conftest.$ac_objext; then
94934  ac_cv_have_decl__res=yes
94935else
94936  $as_echo "$as_me: failed program was:" >&5
94937sed 's/^/| /' conftest.$ac_ext >&5
94938
94939	ac_cv_have_decl__res=no
94940fi
94941
94942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
94943fi
94944{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__res" >&5
94945$as_echo "$ac_cv_have_decl__res" >&6; }
94946if test "x$ac_cv_have_decl__res" = x""yes; then
94947
94948cat >>confdefs.h <<_ACEOF
94949#define HAVE_DECL__RES 1
94950_ACEOF
94951
94952
94953else
94954  cat >>confdefs.h <<_ACEOF
94955#define HAVE_DECL__RES 0
94956_ACEOF
94957
94958
94959fi
94960
94961
94962fi
94963
94964
94965
94966
94967
94968	MAKE_SETTINGS="$MAKE_SETTINGS
94969RESOLV_ENABLE = YES
94970"
94971SMB_INFO_ENABLES="$SMB_INFO_ENABLES
94972\$enabled{\"RESOLV\"} = \"YES\";"
94973
94974
94975if test x"$LIBS" != "x"; then
94976	RESOLV_LIBS=$LIBS
94977fi
94978
94979LIBS=$smb_save_LIBS
94980
94981
94982MAKE_SETTINGS="$MAKE_SETTINGS
94983RESOLV_LIBS = ${RESOLV_LIBS}
94984RESOLV_CFLAGS = ${RESOLV_CFLAGS}
94985RESOLV_CPPFLAGS = ${RESOLV_CPPFLAGS}
94986RESOLV_LDFLAGS = ${RESOLV_LDFLAGS}
94987"
94988
94989
94990
94991
94992# these are disabled unless heimdal is found below
94993
94994	MAKE_SETTINGS="$MAKE_SETTINGS
94995KERBEROS_LIB_ENABLE = NO
94996"
94997SMB_INFO_ENABLES="$SMB_INFO_ENABLES
94998\$enabled{\"KERBEROS_LIB\"} = \"NO\";"
94999
95000
95001	MAKE_SETTINGS="$MAKE_SETTINGS
95002asn1_compile_ENABLE = NO
95003"
95004SMB_INFO_ENABLES="$SMB_INFO_ENABLES
95005\$enabled{\"asn1_compile\"} = \"NO\";"
95006
95007
95008	MAKE_SETTINGS="$MAKE_SETTINGS
95009compile_et_ENABLE = NO
95010"
95011SMB_INFO_ENABLES="$SMB_INFO_ENABLES
95012\$enabled{\"compile_et\"} = \"NO\";"
95013
95014
95015#
95016# We need bison -y and flex in new versions
95017# Otherwise we get random runtime failures
95018#
95019LEX_YACC_COMBINATIONS=""
95020LEX_YACC_COMBINATIONS="$LEX_YACC_COMBINATIONS flex-2.5.33:bison-2.3"
95021LEX_YACC_COMBINATIONS="$LEX_YACC_COMBINATIONS flex-2.5.34:bison-2.3"
95022
95023for ac_prog in flex lex
95024do
95025  # Extract the first word of "$ac_prog", so it can be a program name with args.
95026set dummy $ac_prog; ac_word=$2
95027{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
95028$as_echo_n "checking for $ac_word... " >&6; }
95029if test "${ac_cv_prog_LEX+set}" = set; then
95030  $as_echo_n "(cached) " >&6
95031else
95032  if test -n "$LEX"; then
95033  ac_cv_prog_LEX="$LEX" # Let the user override the test.
95034else
95035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95036for as_dir in $PATH
95037do
95038  IFS=$as_save_IFS
95039  test -z "$as_dir" && as_dir=.
95040  for ac_exec_ext in '' $ac_executable_extensions; do
95041  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95042    ac_cv_prog_LEX="$ac_prog"
95043    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
95044    break 2
95045  fi
95046done
95047done
95048IFS=$as_save_IFS
95049
95050fi
95051fi
95052LEX=$ac_cv_prog_LEX
95053if test -n "$LEX"; then
95054  { $as_echo "$as_me:$LINENO: result: $LEX" >&5
95055$as_echo "$LEX" >&6; }
95056else
95057  { $as_echo "$as_me:$LINENO: result: no" >&5
95058$as_echo "no" >&6; }
95059fi
95060
95061
95062  test -n "$LEX" && break
95063done
95064test -n "$LEX" || LEX=":"
95065
95066if test "x$LEX" != "x:"; then
95067  cat >conftest.l <<_ACEOF
95068%%
95069a { ECHO; }
95070b { REJECT; }
95071c { yymore (); }
95072d { yyless (1); }
95073e { yyless (input () != 0); }
95074f { unput (yytext[0]); }
95075. { BEGIN INITIAL; }
95076%%
95077#ifdef YYTEXT_POINTER
95078extern char *yytext;
95079#endif
95080int
95081main (void)
95082{
95083  return ! yylex () + ! yywrap ();
95084}
95085_ACEOF
95086{ (ac_try="$LEX conftest.l"
95087case "(($ac_try" in
95088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95089  *) ac_try_echo=$ac_try;;
95090esac
95091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
95092$as_echo "$ac_try_echo") >&5
95093  (eval "$LEX conftest.l") 2>&5
95094  ac_status=$?
95095  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95096  (exit $ac_status); }
95097{ $as_echo "$as_me:$LINENO: checking lex output file root" >&5
95098$as_echo_n "checking lex output file root... " >&6; }
95099if test "${ac_cv_prog_lex_root+set}" = set; then
95100  $as_echo_n "(cached) " >&6
95101else
95102
95103if test -f lex.yy.c; then
95104  ac_cv_prog_lex_root=lex.yy
95105elif test -f lexyy.c; then
95106  ac_cv_prog_lex_root=lexyy
95107else
95108  { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
95109$as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
95110   { (exit 1); exit 1; }; }
95111fi
95112fi
95113{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
95114$as_echo "$ac_cv_prog_lex_root" >&6; }
95115LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
95116
95117if test -z "${LEXLIB+set}"; then
95118  { $as_echo "$as_me:$LINENO: checking lex library" >&5
95119$as_echo_n "checking lex library... " >&6; }
95120if test "${ac_cv_lib_lex+set}" = set; then
95121  $as_echo_n "(cached) " >&6
95122else
95123
95124    ac_save_LIBS=$LIBS
95125    ac_cv_lib_lex='none needed'
95126    for ac_lib in '' -lfl -ll; do
95127      LIBS="$ac_lib $ac_save_LIBS"
95128      cat >conftest.$ac_ext <<_ACEOF
95129`cat $LEX_OUTPUT_ROOT.c`
95130_ACEOF
95131rm -f conftest.$ac_objext conftest$ac_exeext
95132if { (ac_try="$ac_link"
95133case "(($ac_try" in
95134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95135  *) ac_try_echo=$ac_try;;
95136esac
95137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
95138$as_echo "$ac_try_echo") >&5
95139  (eval "$ac_link") 2>conftest.er1
95140  ac_status=$?
95141  grep -v '^ *+' conftest.er1 >conftest.err
95142  rm -f conftest.er1
95143  cat conftest.err >&5
95144  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95145  (exit $ac_status); } && {
95146	 test -z "$ac_c_werror_flag" ||
95147	 test ! -s conftest.err
95148       } && test -s conftest$ac_exeext && {
95149	 test "$cross_compiling" = yes ||
95150	 $as_test_x conftest$ac_exeext
95151       }; then
95152  ac_cv_lib_lex=$ac_lib
95153else
95154  $as_echo "$as_me: failed program was:" >&5
95155sed 's/^/| /' conftest.$ac_ext >&5
95156
95157
95158fi
95159
95160rm -rf conftest.dSYM
95161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95162      conftest$ac_exeext conftest.$ac_ext
95163      test "$ac_cv_lib_lex" != 'none needed' && break
95164    done
95165    LIBS=$ac_save_LIBS
95166
95167fi
95168{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
95169$as_echo "$ac_cv_lib_lex" >&6; }
95170  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
95171fi
95172
95173
95174{ $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
95175$as_echo_n "checking whether yytext is a pointer... " >&6; }
95176if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
95177  $as_echo_n "(cached) " >&6
95178else
95179  # POSIX says lex can declare yytext either as a pointer or an array; the
95180# default is implementation-dependent.  Figure out which it is, since
95181# not all implementations provide the %pointer and %array declarations.
95182ac_cv_prog_lex_yytext_pointer=no
95183ac_save_LIBS=$LIBS
95184LIBS="$LEXLIB $ac_save_LIBS"
95185cat >conftest.$ac_ext <<_ACEOF
95186#define YYTEXT_POINTER 1
95187`cat $LEX_OUTPUT_ROOT.c`
95188_ACEOF
95189rm -f conftest.$ac_objext conftest$ac_exeext
95190if { (ac_try="$ac_link"
95191case "(($ac_try" in
95192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95193  *) ac_try_echo=$ac_try;;
95194esac
95195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
95196$as_echo "$ac_try_echo") >&5
95197  (eval "$ac_link") 2>conftest.er1
95198  ac_status=$?
95199  grep -v '^ *+' conftest.er1 >conftest.err
95200  rm -f conftest.er1
95201  cat conftest.err >&5
95202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95203  (exit $ac_status); } && {
95204	 test -z "$ac_c_werror_flag" ||
95205	 test ! -s conftest.err
95206       } && test -s conftest$ac_exeext && {
95207	 test "$cross_compiling" = yes ||
95208	 $as_test_x conftest$ac_exeext
95209       }; then
95210  ac_cv_prog_lex_yytext_pointer=yes
95211else
95212  $as_echo "$as_me: failed program was:" >&5
95213sed 's/^/| /' conftest.$ac_ext >&5
95214
95215
95216fi
95217
95218rm -rf conftest.dSYM
95219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95220      conftest$ac_exeext conftest.$ac_ext
95221LIBS=$ac_save_LIBS
95222
95223fi
95224{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
95225$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
95226if test $ac_cv_prog_lex_yytext_pointer = yes; then
95227
95228cat >>confdefs.h <<\_ACEOF
95229#define YYTEXT_POINTER 1
95230_ACEOF
95231
95232fi
95233rm -f conftest.l $LEX_OUTPUT_ROOT.c
95234
95235fi
95236LEX_BASENAME=`basename "$LEX"`
95237if test x"$LEX_BASENAME" = x"flex"; then
95238	# "flex 2.5.33"
95239	FLEX_VERSION=`$LEX --version | cut -d ' ' -f2`
95240	{ $as_echo "$as_me:$LINENO: checking flex version" >&5
95241$as_echo_n "checking flex version... " >&6; }
95242	{ $as_echo "$as_me:$LINENO: result: $FLEX_VERSION" >&5
95243$as_echo "$FLEX_VERSION" >&6; }
95244	FLEX_MAJOR=`echo $FLEX_VERSION | cut -d '.' -f1`
95245	FLEX_MINOR=`echo $FLEX_VERSION | cut -d '.' -f2`
95246	FLEX_RELEASE=`echo $FLEX_VERSION | cut -d '.' -f3`
95247
95248	LEX_VERSION="flex-$FLEX_MAJOR.$FLEX_MINOR.$FLEX_RELEASE"
95249fi
95250
95251for ac_prog in 'bison -y' byacc
95252do
95253  # Extract the first word of "$ac_prog", so it can be a program name with args.
95254set dummy $ac_prog; ac_word=$2
95255{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
95256$as_echo_n "checking for $ac_word... " >&6; }
95257if test "${ac_cv_prog_YACC+set}" = set; then
95258  $as_echo_n "(cached) " >&6
95259else
95260  if test -n "$YACC"; then
95261  ac_cv_prog_YACC="$YACC" # Let the user override the test.
95262else
95263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95264for as_dir in $PATH
95265do
95266  IFS=$as_save_IFS
95267  test -z "$as_dir" && as_dir=.
95268  for ac_exec_ext in '' $ac_executable_extensions; do
95269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95270    ac_cv_prog_YACC="$ac_prog"
95271    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
95272    break 2
95273  fi
95274done
95275done
95276IFS=$as_save_IFS
95277
95278fi
95279fi
95280YACC=$ac_cv_prog_YACC
95281if test -n "$YACC"; then
95282  { $as_echo "$as_me:$LINENO: result: $YACC" >&5
95283$as_echo "$YACC" >&6; }
95284else
95285  { $as_echo "$as_me:$LINENO: result: no" >&5
95286$as_echo "no" >&6; }
95287fi
95288
95289
95290  test -n "$YACC" && break
95291done
95292test -n "$YACC" || YACC="yacc"
95293
95294YACC_BASENAME=`basename "$YACC"`
95295if test x"$YACC_BASENAME" = x"bison -y"; then
95296	# bison (GNU Bison) 2.3
95297	BISON_VERSION=`$YACC --version | head -1 | cut -d ' ' -f4`
95298	{ $as_echo "$as_me:$LINENO: checking bison version" >&5
95299$as_echo_n "checking bison version... " >&6; }
95300	{ $as_echo "$as_me:$LINENO: result: $BISON_VERSION" >&5
95301$as_echo "$BISON_VERSION" >&6; }
95302	BISON_MAJOR=`echo $BISON_VERSION | cut -d '.' -f1`
95303	BISON_MINOR=`echo $BISON_VERSION | cut -d '.' -f2`
95304
95305	YACC_VERSION="bison-$BISON_MAJOR.$BISON_MINOR"
95306fi
95307
95308{ $as_echo "$as_me:$LINENO: checking working LEX YACC combination" >&5
95309$as_echo_n "checking working LEX YACC combination... " >&6; }
95310LEX_YACC="no"
95311if test x"$LEX_VERSION" != x"" -a x"$YACC_VERSION" != x""; then
95312	V="$LEX_VERSION:$YACC_VERSION"
95313	for C in $LEX_YACC_COMBINATIONS; do
95314		if test x"$V" = x"$C"; then
95315			LEX_YACC=$V
95316			break;
95317		fi
95318	done
95319fi
95320if test x"$LEX_YACC" = x"no"; then
95321	LEX=false
95322	YACC=false
95323fi
95324{ $as_echo "$as_me:$LINENO: result: $LEX_YACC" >&5
95325$as_echo "$LEX_YACC" >&6; }
95326
95327# Portions of heimdal kerberos are unpacked into source/heimdal
95328# of the samba source tree.
95329
95330# if we ever get to using a host kerberos, we might add conditionals here
95331
95332cat >>confdefs.h <<\_ACEOF
95333#define HAVE_COM_ERR 1
95334_ACEOF
95335
95336HAVE_COM_ERR=YES
95337
95338cat >>confdefs.h <<\_ACEOF
95339#define HAVE_KRB5 1
95340_ACEOF
95341
95342HAVE_KRB5=YES
95343
95344cat >>confdefs.h <<\_ACEOF
95345#define HAVE_GSSAPI 1
95346_ACEOF
95347
95348HAVE_GSSAPI=YES
95349
95350	MAKE_SETTINGS="$MAKE_SETTINGS
95351KERBEROS_LIB_ENABLE = YES
95352"
95353SMB_INFO_ENABLES="$SMB_INFO_ENABLES
95354\$enabled{\"KERBEROS_LIB\"} = \"YES\";"
95355
95356
95357	MAKE_SETTINGS="$MAKE_SETTINGS
95358asn1_compile_ENABLE = YES
95359"
95360SMB_INFO_ENABLES="$SMB_INFO_ENABLES
95361\$enabled{\"asn1_compile\"} = \"YES\";"
95362
95363
95364	MAKE_SETTINGS="$MAKE_SETTINGS
95365compile_et_ENABLE = YES
95366"
95367SMB_INFO_ENABLES="$SMB_INFO_ENABLES
95368\$enabled{\"compile_et\"} = \"YES\";"
95369
95370
95371# only add closefrom if needed
95372
95373	MAKE_SETTINGS="$MAKE_SETTINGS
95374HEIMDAL_ROKEN_CLOSEFROM_ENABLE = NO
95375"
95376SMB_INFO_ENABLES="$SMB_INFO_ENABLES
95377\$enabled{\"HEIMDAL_ROKEN_CLOSEFROM\"} = \"NO\";"
95378
95379
95380	MAKE_SETTINGS="$MAKE_SETTINGS
95381HEIMDAL_ROKEN_CLOSEFROM_H_ENABLE = NO
95382"
95383SMB_INFO_ENABLES="$SMB_INFO_ENABLES
95384\$enabled{\"HEIMDAL_ROKEN_CLOSEFROM_H\"} = \"NO\";"
95385
95386if test t$ac_cv_func_closefrom != tyes; then
95387
95388	MAKE_SETTINGS="$MAKE_SETTINGS
95389HEIMDAL_ROKEN_CLOSEFROM_ENABLE = YES
95390"
95391SMB_INFO_ENABLES="$SMB_INFO_ENABLES
95392\$enabled{\"HEIMDAL_ROKEN_CLOSEFROM\"} = \"YES\";"
95393
95394
95395	MAKE_SETTINGS="$MAKE_SETTINGS
95396HEIMDAL_ROKEN_CLOSEFROM_H_ENABLE = YES
95397"
95398SMB_INFO_ENABLES="$SMB_INFO_ENABLES
95399\$enabled{\"HEIMDAL_ROKEN_CLOSEFROM_H\"} = \"YES\";"
95400
95401fi
95402
95403# only add getprogname if needed
95404
95405	MAKE_SETTINGS="$MAKE_SETTINGS
95406HEIMDAL_ROKEN_PROGNAME_ENABLE = NO
95407"
95408SMB_INFO_ENABLES="$SMB_INFO_ENABLES
95409\$enabled{\"HEIMDAL_ROKEN_PROGNAME\"} = \"NO\";"
95410
95411
95412	MAKE_SETTINGS="$MAKE_SETTINGS
95413HEIMDAL_ROKEN_PROGNAME_H_ENABLE = NO
95414"
95415SMB_INFO_ENABLES="$SMB_INFO_ENABLES
95416\$enabled{\"HEIMDAL_ROKEN_PROGNAME_H\"} = \"NO\";"
95417
95418if test t$ac_cv_func_getprogname != tyes; then
95419
95420	MAKE_SETTINGS="$MAKE_SETTINGS
95421HEIMDAL_ROKEN_PROGNAME_ENABLE = YES
95422"
95423SMB_INFO_ENABLES="$SMB_INFO_ENABLES
95424\$enabled{\"HEIMDAL_ROKEN_PROGNAME\"} = \"YES\";"
95425
95426
95427	MAKE_SETTINGS="$MAKE_SETTINGS
95428HEIMDAL_ROKEN_PROGNAME_H_ENABLE = YES
95429"
95430SMB_INFO_ENABLES="$SMB_INFO_ENABLES
95431\$enabled{\"HEIMDAL_ROKEN_PROGNAME_H\"} = \"YES\";"
95432
95433fi
95434
95435VPATH="$VPATH:\$(HEIMDAL_VPATH)"
95436
95437
95438cat >>confdefs.h <<\_ACEOF
95439#define SAMBA4_INTERNAL_HEIMDAL 1
95440_ACEOF
95441
95442
95443
95444SMB_INFO_EXT_LIBS="$SMB_INFO_EXT_LIBS
95445mkinclude heimdal_build/internal.mk
95446"
95447
95448
95449
95450for ac_header in execinfo.h
95451do
95452as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
95453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
95454  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
95455$as_echo_n "checking for $ac_header... " >&6; }
95456if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
95457  $as_echo_n "(cached) " >&6
95458fi
95459ac_res=`eval 'as_val=${'$as_ac_Header'}
95460		 $as_echo "$as_val"'`
95461	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
95462$as_echo "$ac_res" >&6; }
95463else
95464  # Is the header compilable?
95465{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
95466$as_echo_n "checking $ac_header usability... " >&6; }
95467cat >conftest.$ac_ext <<_ACEOF
95468/* confdefs.h.  */
95469_ACEOF
95470cat confdefs.h >>conftest.$ac_ext
95471cat >>conftest.$ac_ext <<_ACEOF
95472/* end confdefs.h.  */
95473$ac_includes_default
95474#include <$ac_header>
95475_ACEOF
95476rm -f conftest.$ac_objext
95477if { (ac_try="$ac_compile"
95478case "(($ac_try" in
95479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95480  *) ac_try_echo=$ac_try;;
95481esac
95482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
95483$as_echo "$ac_try_echo") >&5
95484  (eval "$ac_compile") 2>conftest.er1
95485  ac_status=$?
95486  grep -v '^ *+' conftest.er1 >conftest.err
95487  rm -f conftest.er1
95488  cat conftest.err >&5
95489  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95490  (exit $ac_status); } && {
95491	 test -z "$ac_c_werror_flag" ||
95492	 test ! -s conftest.err
95493       } && test -s conftest.$ac_objext; then
95494  ac_header_compiler=yes
95495else
95496  $as_echo "$as_me: failed program was:" >&5
95497sed 's/^/| /' conftest.$ac_ext >&5
95498
95499	ac_header_compiler=no
95500fi
95501
95502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
95503{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
95504$as_echo "$ac_header_compiler" >&6; }
95505
95506# Is the header present?
95507{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
95508$as_echo_n "checking $ac_header presence... " >&6; }
95509cat >conftest.$ac_ext <<_ACEOF
95510/* confdefs.h.  */
95511_ACEOF
95512cat confdefs.h >>conftest.$ac_ext
95513cat >>conftest.$ac_ext <<_ACEOF
95514/* end confdefs.h.  */
95515#include <$ac_header>
95516_ACEOF
95517if { (ac_try="$ac_cpp conftest.$ac_ext"
95518case "(($ac_try" in
95519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95520  *) ac_try_echo=$ac_try;;
95521esac
95522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
95523$as_echo "$ac_try_echo") >&5
95524  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
95525  ac_status=$?
95526  grep -v '^ *+' conftest.er1 >conftest.err
95527  rm -f conftest.er1
95528  cat conftest.err >&5
95529  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95530  (exit $ac_status); } >/dev/null && {
95531	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
95532	 test ! -s conftest.err
95533       }; then
95534  ac_header_preproc=yes
95535else
95536  $as_echo "$as_me: failed program was:" >&5
95537sed 's/^/| /' conftest.$ac_ext >&5
95538
95539  ac_header_preproc=no
95540fi
95541
95542rm -f conftest.err conftest.$ac_ext
95543{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
95544$as_echo "$ac_header_preproc" >&6; }
95545
95546# So?  What about this header?
95547case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
95548  yes:no: )
95549    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
95550$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
95551    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
95552$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
95553    ac_header_preproc=yes
95554    ;;
95555  no:yes:* )
95556    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
95557$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
95558    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
95559$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
95560    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
95561$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
95562    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
95563$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
95564    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
95565$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
95566    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
95567$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
95568    ( cat <<\_ASBOX
95569## ---------------------------------------- ##
95570## Report this to samba-technical@samba.org ##
95571## ---------------------------------------- ##
95572_ASBOX
95573     ) | sed "s/^/$as_me: WARNING:     /" >&2
95574    ;;
95575esac
95576{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
95577$as_echo_n "checking for $ac_header... " >&6; }
95578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
95579  $as_echo_n "(cached) " >&6
95580else
95581  eval "$as_ac_Header=\$ac_header_preproc"
95582fi
95583ac_res=`eval 'as_val=${'$as_ac_Header'}
95584		 $as_echo "$as_val"'`
95585	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
95586$as_echo "$ac_res" >&6; }
95587
95588fi
95589as_val=`eval 'as_val=${'$as_ac_Header'}
95590		 $as_echo "$as_val"'`
95591   if test "x$as_val" = x""yes; then
95592  cat >>confdefs.h <<_ACEOF
95593#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
95594_ACEOF
95595
95596fi
95597
95598done
95599
95600{ $as_echo "$as_me:$LINENO: checking for library containing backtrace" >&5
95601$as_echo_n "checking for library containing backtrace... " >&6; }
95602if test "${ac_cv_search_ext_backtrace+set}" = set; then
95603  $as_echo_n "(cached) " >&6
95604else
95605
95606ac_func_search_ext_save_LIBS=$LIBS
95607ac_cv_search_ext_backtrace=no
95608cat >conftest.$ac_ext <<_ACEOF
95609/* confdefs.h.  */
95610_ACEOF
95611cat confdefs.h >>conftest.$ac_ext
95612cat >>conftest.$ac_ext <<_ACEOF
95613/* end confdefs.h.  */
95614
95615/* Override any GCC internal prototype to avoid an error.
95616   Use char because int might match the return type of a GCC
95617   builtin and then its argument prototype would still apply.  */
95618#ifdef __cplusplus
95619extern "C"
95620#endif
95621char backtrace ();
95622int
95623main ()
95624{
95625return backtrace ();
95626  ;
95627  return 0;
95628}
95629_ACEOF
95630rm -f conftest.$ac_objext conftest$ac_exeext
95631if { (ac_try="$ac_link"
95632case "(($ac_try" in
95633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95634  *) ac_try_echo=$ac_try;;
95635esac
95636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
95637$as_echo "$ac_try_echo") >&5
95638  (eval "$ac_link") 2>conftest.er1
95639  ac_status=$?
95640  grep -v '^ *+' conftest.er1 >conftest.err
95641  rm -f conftest.er1
95642  cat conftest.err >&5
95643  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95644  (exit $ac_status); } && {
95645	 test -z "$ac_c_werror_flag" ||
95646	 test ! -s conftest.err
95647       } && test -s conftest$ac_exeext && {
95648	 test "$cross_compiling" = yes ||
95649	 $as_test_x conftest$ac_exeext
95650       }; then
95651  ac_cv_search_ext_backtrace="none required"
95652else
95653  $as_echo "$as_me: failed program was:" >&5
95654sed 's/^/| /' conftest.$ac_ext >&5
95655
95656
95657fi
95658
95659rm -rf conftest.dSYM
95660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95661      conftest$ac_exeext conftest.$ac_ext
95662if test "$ac_cv_search_ext_backtrace" = no; then
95663  for ac_lib in execinfo; do
95664    LIBS="-l$ac_lib $EXECINFO_LIBS  $ac_func_search_save_ext_LIBS"
95665    cat >conftest.$ac_ext <<_ACEOF
95666/* confdefs.h.  */
95667_ACEOF
95668cat confdefs.h >>conftest.$ac_ext
95669cat >>conftest.$ac_ext <<_ACEOF
95670/* end confdefs.h.  */
95671
95672/* Override any GCC internal prototype to avoid an error.
95673   Use char because int might match the return type of a GCC
95674   builtin and then its argument prototype would still apply.  */
95675#ifdef __cplusplus
95676extern "C"
95677#endif
95678char backtrace ();
95679int
95680main ()
95681{
95682return backtrace ();
95683  ;
95684  return 0;
95685}
95686_ACEOF
95687rm -f conftest.$ac_objext conftest$ac_exeext
95688if { (ac_try="$ac_link"
95689case "(($ac_try" in
95690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95691  *) ac_try_echo=$ac_try;;
95692esac
95693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
95694$as_echo "$ac_try_echo") >&5
95695  (eval "$ac_link") 2>conftest.er1
95696  ac_status=$?
95697  grep -v '^ *+' conftest.er1 >conftest.err
95698  rm -f conftest.er1
95699  cat conftest.err >&5
95700  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95701  (exit $ac_status); } && {
95702	 test -z "$ac_c_werror_flag" ||
95703	 test ! -s conftest.err
95704       } && test -s conftest$ac_exeext && {
95705	 test "$cross_compiling" = yes ||
95706	 $as_test_x conftest$ac_exeext
95707       }; then
95708  ac_cv_search_ext_backtrace="-l$ac_lib"
95709break
95710else
95711  $as_echo "$as_me: failed program was:" >&5
95712sed 's/^/| /' conftest.$ac_ext >&5
95713
95714
95715fi
95716
95717rm -rf conftest.dSYM
95718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95719      conftest$ac_exeext conftest.$ac_ext
95720  done
95721fi
95722LIBS=$ac_func_search_ext_save_LIBS
95723fi
95724{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_ext_backtrace" >&5
95725$as_echo "$ac_cv_search_ext_backtrace" >&6; }
95726if test "$ac_cv_search_ext_backtrace" != no; then
95727  test "$ac_cv_search_ext_backtrace" = "none required" || EXECINFO_LIBS="$ac_cv_search_ext_backtrace $EXECINFO_LIBS"
95728
95729fi
95730
95731
95732
95733
95734    ac_check_func_ext_save_LIBS=$LIBS
95735    LIBS="$EXECINFO_LIBS $LIBS"
95736        { $as_echo "$as_me:$LINENO: checking for backtrace" >&5
95737$as_echo_n "checking for backtrace... " >&6; }
95738if test "${ac_cv_func_ext_backtrace+set}" = set; then
95739  $as_echo_n "(cached) " >&6
95740else
95741  cat >conftest.$ac_ext <<_ACEOF
95742/* confdefs.h.  */
95743_ACEOF
95744cat confdefs.h >>conftest.$ac_ext
95745cat >>conftest.$ac_ext <<_ACEOF
95746/* end confdefs.h.  */
95747/* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
95748   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
95749#define backtrace innocuous_backtrace
95750
95751/* System header to define __stub macros and hopefully few prototypes,
95752    which can conflict with char backtrace (); below.
95753    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
95754    <limits.h> exists even on freestanding compilers.  */
95755
95756#ifdef __STDC__
95757# include <limits.h>
95758#else
95759# include <assert.h>
95760#endif
95761
95762#undef backtrace
95763
95764/* Override any GCC internal prototype to avoid an error.
95765   Use char because int might match the return type of a GCC
95766   builtin and then its argument prototype would still apply.  */
95767#ifdef __cplusplus
95768extern "C"
95769#endif
95770char backtrace ();
95771/* The GNU C library defines this for functions which it implements
95772    to always fail with ENOSYS.  Some functions are actually named
95773    something starting with __ and the normal name is an alias.  */
95774#if defined __stub_backtrace || defined __stub___backtrace
95775choke me
95776#endif
95777
95778int
95779main ()
95780{
95781return backtrace ();
95782  ;
95783  return 0;
95784}
95785_ACEOF
95786rm -f conftest.$ac_objext conftest$ac_exeext
95787if { (ac_try="$ac_link"
95788case "(($ac_try" in
95789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95790  *) ac_try_echo=$ac_try;;
95791esac
95792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
95793$as_echo "$ac_try_echo") >&5
95794  (eval "$ac_link") 2>conftest.er1
95795  ac_status=$?
95796  grep -v '^ *+' conftest.er1 >conftest.err
95797  rm -f conftest.er1
95798  cat conftest.err >&5
95799  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95800  (exit $ac_status); } && {
95801	 test -z "$ac_c_werror_flag" ||
95802	 test ! -s conftest.err
95803       } && test -s conftest$ac_exeext && {
95804	 test "$cross_compiling" = yes ||
95805	 $as_test_x conftest$ac_exeext
95806       }; then
95807  ac_cv_func_ext_backtrace=yes
95808else
95809  $as_echo "$as_me: failed program was:" >&5
95810sed 's/^/| /' conftest.$ac_ext >&5
95811
95812	ac_cv_func_ext_backtrace=no
95813fi
95814
95815rm -rf conftest.dSYM
95816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
95817      conftest$ac_exeext conftest.$ac_ext
95818fi
95819{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_backtrace" >&5
95820$as_echo "$ac_cv_func_ext_backtrace" >&6; }
95821    LIBS=$ac_check_func_ext_save_LIBS
95822    if test $ac_cv_func_ext_backtrace = yes; then
95823  cat >>confdefs.h <<_ACEOF
95824#define HAVE_BACKTRACE 1
95825_ACEOF
95826
95827fi
95828
95829
95830
95831if test x"$ac_cv_header_execinfo_h" = x"yes" -a x"$ac_cv_func_ext_backtrace" = x"yes";then
95832
95833	MAKE_SETTINGS="$MAKE_SETTINGS
95834EXECINFO_ENABLE = YES
95835"
95836SMB_INFO_ENABLES="$SMB_INFO_ENABLES
95837\$enabled{\"EXECINFO\"} = \"YES\";"
95838
95839	EXECINFO_CFLAGS="$CFLAGS"
95840	EXECINFO_CPPFLAGS="$CPPFLAGS"
95841	EXECINFO_LDFLAGS="$LDFLAGS"
95842
95843  ac_new_flags=""
95844  l=""
95845  for i in $EXECINFO_LDFLAGS; do
95846    case $l$i in
95847    -L/usr/lib) ;;
95848    -L/usr/lib/) ;;
95849    -L/usr/lib64) ;;
95850    -L/usr/lib64/) ;;
95851    -Wl,-rpath,/usr/lib) l="";;
95852    -Wl,-rpath,/usr/lib/) l="";;
95853    -Wl,-rpath,/usr/lib64) l="";;
95854    -Wl,-rpath,/usr/lib64/) l="";;
95855    -Wl,-rpath) l=$i;;
95856    -Wl,-rpath-Wl,/usr/lib) l="";;
95857    -Wl,-rpath-Wl,/usr/lib/) l="";;
95858    -Wl,-rpath-Wl,/usr/lib64) l="";;
95859    -Wl,-rpath-Wl,/usr/lib64/) l="";;
95860    *)
95861    	s=" "
95862        if test x"$ac_new_flags" = x""; then
95863            s="";
95864	fi
95865        if test x"$l" = x""; then
95866            ac_new_flags="$ac_new_flags$s$i";
95867        else
95868            ac_new_flags="$ac_new_flags$s$l $i";
95869        fi
95870        l=""
95871        ;;
95872    esac
95873  done
95874  EXECINFO_LDFLAGS=$ac_new_flags
95875
95876
95877  ac_new_flags=""
95878  for i in $EXECINFO_CFLAGS; do
95879    case $i in
95880    -I/usr/include|-I/usr/include/) ;;
95881    *) ac_new_flags="$ac_new_flags $i" ;;
95882    esac
95883  done
95884  EXECINFO_CFLAGS=$ac_new_flags
95885
95886
95887  ac_new_flags=""
95888  for i in $EXECINFO_CPPFLAGS; do
95889    case $i in
95890    -I/usr/include|-I/usr/include/) ;;
95891    *) ac_new_flags="$ac_new_flags $i" ;;
95892    esac
95893  done
95894  EXECINFO_CPPFLAGS=$ac_new_flags
95895
95896else
95897
95898	MAKE_SETTINGS="$MAKE_SETTINGS
95899EXECINFO_ENABLE = NO
95900"
95901SMB_INFO_ENABLES="$SMB_INFO_ENABLES
95902\$enabled{\"EXECINFO\"} = \"NO\";"
95903
95904fi
95905
95906
95907MAKE_SETTINGS="$MAKE_SETTINGS
95908EXECINFO_LIBS = ${EXECINFO_LIBS}
95909EXECINFO_CFLAGS = ${EXECINFO_CFLAGS}
95910EXECINFO_CPPFLAGS = ${EXECINFO_CPPFLAGS}
95911EXECINFO_LDFLAGS = ${EXECINFO_LDFLAGS}
95912"
95913
95914
95915
95916
95917
95918
95919for ac_func in sigprocmask sigblock sigaction
95920do
95921as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
95922{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
95923$as_echo_n "checking for $ac_func... " >&6; }
95924if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
95925  $as_echo_n "(cached) " >&6
95926else
95927  cat >conftest.$ac_ext <<_ACEOF
95928/* confdefs.h.  */
95929_ACEOF
95930cat confdefs.h >>conftest.$ac_ext
95931cat >>conftest.$ac_ext <<_ACEOF
95932/* end confdefs.h.  */
95933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
95934   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
95935#define $ac_func innocuous_$ac_func
95936
95937/* System header to define __stub macros and hopefully few prototypes,
95938    which can conflict with char $ac_func (); below.
95939    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
95940    <limits.h> exists even on freestanding compilers.  */
95941
95942#ifdef __STDC__
95943# include <limits.h>
95944#else
95945# include <assert.h>
95946#endif
95947
95948#undef $ac_func
95949
95950/* Override any GCC internal prototype to avoid an error.
95951   Use char because int might match the return type of a GCC
95952   builtin and then its argument prototype would still apply.  */
95953#ifdef __cplusplus
95954extern "C"
95955#endif
95956char $ac_func ();
95957/* The GNU C library defines this for functions which it implements
95958    to always fail with ENOSYS.  Some functions are actually named
95959    something starting with __ and the normal name is an alias.  */
95960#if defined __stub_$ac_func || defined __stub___$ac_func
95961choke me
95962#endif
95963
95964int
95965main ()
95966{
95967return $ac_func ();
95968  ;
95969  return 0;
95970}
95971_ACEOF
95972rm -f conftest.$ac_objext conftest$ac_exeext
95973if { (ac_try="$ac_link"
95974case "(($ac_try" in
95975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
95976  *) ac_try_echo=$ac_try;;
95977esac
95978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
95979$as_echo "$ac_try_echo") >&5
95980  (eval "$ac_link") 2>conftest.er1
95981  ac_status=$?
95982  grep -v '^ *+' conftest.er1 >conftest.err
95983  rm -f conftest.er1
95984  cat conftest.err >&5
95985  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
95986  (exit $ac_status); } && {
95987	 test -z "$ac_c_werror_flag" ||
95988	 test ! -s conftest.err
95989       } && test -s conftest$ac_exeext && {
95990	 test "$cross_compiling" = yes ||
95991	 $as_test_x conftest$ac_exeext
95992       }; then
95993  eval "$as_ac_var=yes"
95994else
95995  $as_echo "$as_me: failed program was:" >&5
95996sed 's/^/| /' conftest.$ac_ext >&5
95997
95998	eval "$as_ac_var=no"
95999fi
96000
96001rm -rf conftest.dSYM
96002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
96003      conftest$ac_exeext conftest.$ac_ext
96004fi
96005ac_res=`eval 'as_val=${'$as_ac_var'}
96006		 $as_echo "$as_val"'`
96007	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
96008$as_echo "$ac_res" >&6; }
96009as_val=`eval 'as_val=${'$as_ac_var'}
96010		 $as_echo "$as_val"'`
96011   if test "x$as_val" = x""yes; then
96012  cat >>confdefs.h <<_ACEOF
96013#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
96014_ACEOF
96015
96016fi
96017done
96018
96019
96020
96021for ac_func in setsid
96022do
96023as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
96024{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
96025$as_echo_n "checking for $ac_func... " >&6; }
96026if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
96027  $as_echo_n "(cached) " >&6
96028else
96029  cat >conftest.$ac_ext <<_ACEOF
96030/* confdefs.h.  */
96031_ACEOF
96032cat confdefs.h >>conftest.$ac_ext
96033cat >>conftest.$ac_ext <<_ACEOF
96034/* end confdefs.h.  */
96035/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
96036   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
96037#define $ac_func innocuous_$ac_func
96038
96039/* System header to define __stub macros and hopefully few prototypes,
96040    which can conflict with char $ac_func (); below.
96041    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
96042    <limits.h> exists even on freestanding compilers.  */
96043
96044#ifdef __STDC__
96045# include <limits.h>
96046#else
96047# include <assert.h>
96048#endif
96049
96050#undef $ac_func
96051
96052/* Override any GCC internal prototype to avoid an error.
96053   Use char because int might match the return type of a GCC
96054   builtin and then its argument prototype would still apply.  */
96055#ifdef __cplusplus
96056extern "C"
96057#endif
96058char $ac_func ();
96059/* The GNU C library defines this for functions which it implements
96060    to always fail with ENOSYS.  Some functions are actually named
96061    something starting with __ and the normal name is an alias.  */
96062#if defined __stub_$ac_func || defined __stub___$ac_func
96063choke me
96064#endif
96065
96066int
96067main ()
96068{
96069return $ac_func ();
96070  ;
96071  return 0;
96072}
96073_ACEOF
96074rm -f conftest.$ac_objext conftest$ac_exeext
96075if { (ac_try="$ac_link"
96076case "(($ac_try" in
96077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96078  *) ac_try_echo=$ac_try;;
96079esac
96080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96081$as_echo "$ac_try_echo") >&5
96082  (eval "$ac_link") 2>conftest.er1
96083  ac_status=$?
96084  grep -v '^ *+' conftest.er1 >conftest.err
96085  rm -f conftest.er1
96086  cat conftest.err >&5
96087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96088  (exit $ac_status); } && {
96089	 test -z "$ac_c_werror_flag" ||
96090	 test ! -s conftest.err
96091       } && test -s conftest$ac_exeext && {
96092	 test "$cross_compiling" = yes ||
96093	 $as_test_x conftest$ac_exeext
96094       }; then
96095  eval "$as_ac_var=yes"
96096else
96097  $as_echo "$as_me: failed program was:" >&5
96098sed 's/^/| /' conftest.$ac_ext >&5
96099
96100	eval "$as_ac_var=no"
96101fi
96102
96103rm -rf conftest.dSYM
96104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
96105      conftest$ac_exeext conftest.$ac_ext
96106fi
96107ac_res=`eval 'as_val=${'$as_ac_var'}
96108		 $as_echo "$as_val"'`
96109	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
96110$as_echo "$ac_res" >&6; }
96111as_val=`eval 'as_val=${'$as_ac_var'}
96112		 $as_echo "$as_val"'`
96113   if test "x$as_val" = x""yes; then
96114  cat >>confdefs.h <<_ACEOF
96115#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
96116_ACEOF
96117
96118fi
96119done
96120
96121
96122#################################################
96123# these tests are taken from the GNU fileutils package
96124{ $as_echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
96125$as_echo "$as_me: checking how to get filesystem space usage..." >&6;}
96126
96127
96128
96129for ac_header in sys/statfs.h sys/statvfs.h sys/vfs.h
96130do
96131as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
96132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
96133  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
96134$as_echo_n "checking for $ac_header... " >&6; }
96135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
96136  $as_echo_n "(cached) " >&6
96137fi
96138ac_res=`eval 'as_val=${'$as_ac_Header'}
96139		 $as_echo "$as_val"'`
96140	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
96141$as_echo "$ac_res" >&6; }
96142else
96143  # Is the header compilable?
96144{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
96145$as_echo_n "checking $ac_header usability... " >&6; }
96146cat >conftest.$ac_ext <<_ACEOF
96147/* confdefs.h.  */
96148_ACEOF
96149cat confdefs.h >>conftest.$ac_ext
96150cat >>conftest.$ac_ext <<_ACEOF
96151/* end confdefs.h.  */
96152$ac_includes_default
96153#include <$ac_header>
96154_ACEOF
96155rm -f conftest.$ac_objext
96156if { (ac_try="$ac_compile"
96157case "(($ac_try" in
96158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96159  *) ac_try_echo=$ac_try;;
96160esac
96161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96162$as_echo "$ac_try_echo") >&5
96163  (eval "$ac_compile") 2>conftest.er1
96164  ac_status=$?
96165  grep -v '^ *+' conftest.er1 >conftest.err
96166  rm -f conftest.er1
96167  cat conftest.err >&5
96168  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96169  (exit $ac_status); } && {
96170	 test -z "$ac_c_werror_flag" ||
96171	 test ! -s conftest.err
96172       } && test -s conftest.$ac_objext; then
96173  ac_header_compiler=yes
96174else
96175  $as_echo "$as_me: failed program was:" >&5
96176sed 's/^/| /' conftest.$ac_ext >&5
96177
96178	ac_header_compiler=no
96179fi
96180
96181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
96182{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
96183$as_echo "$ac_header_compiler" >&6; }
96184
96185# Is the header present?
96186{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
96187$as_echo_n "checking $ac_header presence... " >&6; }
96188cat >conftest.$ac_ext <<_ACEOF
96189/* confdefs.h.  */
96190_ACEOF
96191cat confdefs.h >>conftest.$ac_ext
96192cat >>conftest.$ac_ext <<_ACEOF
96193/* end confdefs.h.  */
96194#include <$ac_header>
96195_ACEOF
96196if { (ac_try="$ac_cpp conftest.$ac_ext"
96197case "(($ac_try" in
96198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96199  *) ac_try_echo=$ac_try;;
96200esac
96201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96202$as_echo "$ac_try_echo") >&5
96203  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
96204  ac_status=$?
96205  grep -v '^ *+' conftest.er1 >conftest.err
96206  rm -f conftest.er1
96207  cat conftest.err >&5
96208  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96209  (exit $ac_status); } >/dev/null && {
96210	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
96211	 test ! -s conftest.err
96212       }; then
96213  ac_header_preproc=yes
96214else
96215  $as_echo "$as_me: failed program was:" >&5
96216sed 's/^/| /' conftest.$ac_ext >&5
96217
96218  ac_header_preproc=no
96219fi
96220
96221rm -f conftest.err conftest.$ac_ext
96222{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
96223$as_echo "$ac_header_preproc" >&6; }
96224
96225# So?  What about this header?
96226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
96227  yes:no: )
96228    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
96229$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
96230    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
96231$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
96232    ac_header_preproc=yes
96233    ;;
96234  no:yes:* )
96235    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
96236$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
96237    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
96238$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
96239    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
96240$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
96241    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
96242$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
96243    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
96244$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
96245    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
96246$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
96247    ( cat <<\_ASBOX
96248## ---------------------------------------- ##
96249## Report this to samba-technical@samba.org ##
96250## ---------------------------------------- ##
96251_ASBOX
96252     ) | sed "s/^/$as_me: WARNING:     /" >&2
96253    ;;
96254esac
96255{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
96256$as_echo_n "checking for $ac_header... " >&6; }
96257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
96258  $as_echo_n "(cached) " >&6
96259else
96260  eval "$as_ac_Header=\$ac_header_preproc"
96261fi
96262ac_res=`eval 'as_val=${'$as_ac_Header'}
96263		 $as_echo "$as_val"'`
96264	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
96265$as_echo "$ac_res" >&6; }
96266
96267fi
96268as_val=`eval 'as_val=${'$as_ac_Header'}
96269		 $as_echo "$as_val"'`
96270   if test "x$as_val" = x""yes; then
96271  cat >>confdefs.h <<_ACEOF
96272#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
96273_ACEOF
96274
96275fi
96276
96277done
96278
96279
96280
96281for ac_header in sys/mount.h
96282do
96283as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
96284{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
96285$as_echo_n "checking for $ac_header... " >&6; }
96286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
96287  $as_echo_n "(cached) " >&6
96288else
96289  cat >conftest.$ac_ext <<_ACEOF
96290/* confdefs.h.  */
96291_ACEOF
96292cat confdefs.h >>conftest.$ac_ext
96293cat >>conftest.$ac_ext <<_ACEOF
96294/* end confdefs.h.  */
96295$ac_includes_default
96296#ifdef HAVE_SYS_PARAM_H
96297#include <sys/param.h>
96298#endif
96299
96300#include <$ac_header>
96301_ACEOF
96302rm -f conftest.$ac_objext
96303if { (ac_try="$ac_compile"
96304case "(($ac_try" in
96305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96306  *) ac_try_echo=$ac_try;;
96307esac
96308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96309$as_echo "$ac_try_echo") >&5
96310  (eval "$ac_compile") 2>conftest.er1
96311  ac_status=$?
96312  grep -v '^ *+' conftest.er1 >conftest.err
96313  rm -f conftest.er1
96314  cat conftest.err >&5
96315  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96316  (exit $ac_status); } && {
96317	 test -z "$ac_c_werror_flag" ||
96318	 test ! -s conftest.err
96319       } && test -s conftest.$ac_objext; then
96320  eval "$as_ac_Header=yes"
96321else
96322  $as_echo "$as_me: failed program was:" >&5
96323sed 's/^/| /' conftest.$ac_ext >&5
96324
96325	eval "$as_ac_Header=no"
96326fi
96327
96328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
96329fi
96330ac_res=`eval 'as_val=${'$as_ac_Header'}
96331		 $as_echo "$as_val"'`
96332	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
96333$as_echo "$ac_res" >&6; }
96334as_val=`eval 'as_val=${'$as_ac_Header'}
96335		 $as_echo "$as_val"'`
96336   if test "x$as_val" = x""yes; then
96337  cat >>confdefs.h <<_ACEOF
96338#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
96339_ACEOF
96340
96341fi
96342
96343done
96344
96345
96346space=no
96347
96348# Test for statvfs64.
96349if test $space = no; then
96350  # SVR4
96351  { $as_echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
96352$as_echo_n "checking statvfs64 function (SVR4)... " >&6; }
96353if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
96354  $as_echo_n "(cached) " >&6
96355else
96356  if test "$cross_compiling" = yes; then
96357  fu_cv_sys_stat_statvfs64=cross
96358else
96359  cat >conftest.$ac_ext <<_ACEOF
96360/* confdefs.h.  */
96361_ACEOF
96362cat confdefs.h >>conftest.$ac_ext
96363cat >>conftest.$ac_ext <<_ACEOF
96364/* end confdefs.h.  */
96365
96366#if defined(HAVE_UNISTD_H)
96367#include <unistd.h>
96368#endif
96369#include <sys/types.h>
96370#include <sys/statvfs.h>
96371  main ()
96372  {
96373    struct statvfs64 fsd;
96374    exit (statvfs64 (".", &fsd));
96375  }
96376_ACEOF
96377rm -f conftest$ac_exeext
96378if { (ac_try="$ac_link"
96379case "(($ac_try" in
96380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96381  *) ac_try_echo=$ac_try;;
96382esac
96383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96384$as_echo "$ac_try_echo") >&5
96385  (eval "$ac_link") 2>&5
96386  ac_status=$?
96387  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96388  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
96389  { (case "(($ac_try" in
96390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96391  *) ac_try_echo=$ac_try;;
96392esac
96393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96394$as_echo "$ac_try_echo") >&5
96395  (eval "$ac_try") 2>&5
96396  ac_status=$?
96397  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96398  (exit $ac_status); }; }; then
96399  fu_cv_sys_stat_statvfs64=yes
96400else
96401  $as_echo "$as_me: program exited with status $ac_status" >&5
96402$as_echo "$as_me: failed program was:" >&5
96403sed 's/^/| /' conftest.$ac_ext >&5
96404
96405( exit $ac_status )
96406fu_cv_sys_stat_statvfs64=no
96407fi
96408rm -rf conftest.dSYM
96409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
96410fi
96411
96412
96413fi
96414{ $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
96415$as_echo "$fu_cv_sys_stat_statvfs64" >&6; }
96416  if test $fu_cv_sys_stat_statvfs64 = yes; then
96417    space=yes
96418
96419cat >>confdefs.h <<\_ACEOF
96420#define STAT_STATVFS64 1
96421_ACEOF
96422
96423  fi
96424fi
96425
96426# Perform only the link test since it seems there are no variants of the
96427# statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
96428# because that got a false positive on SCO OSR5.  Adding the declaration
96429# of a `struct statvfs' causes this test to fail (as it should) on such
96430# systems.  That system is reported to work fine with STAT_STATFS4 which
96431# is what it gets when this test fails.
96432if test $space = no; then
96433  # SVR4
96434  { $as_echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
96435$as_echo_n "checking statvfs function (SVR4)... " >&6; }
96436if test "${fu_cv_sys_stat_statvfs+set}" = set; then
96437  $as_echo_n "(cached) " >&6
96438else
96439  cat >conftest.$ac_ext <<_ACEOF
96440/* confdefs.h.  */
96441_ACEOF
96442cat confdefs.h >>conftest.$ac_ext
96443cat >>conftest.$ac_ext <<_ACEOF
96444/* end confdefs.h.  */
96445#include <sys/types.h>
96446#include <sys/statvfs.h>
96447int
96448main ()
96449{
96450struct statvfs fsd; statvfs (0, &fsd);
96451  ;
96452  return 0;
96453}
96454_ACEOF
96455rm -f conftest.$ac_objext conftest$ac_exeext
96456if { (ac_try="$ac_link"
96457case "(($ac_try" in
96458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96459  *) ac_try_echo=$ac_try;;
96460esac
96461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96462$as_echo "$ac_try_echo") >&5
96463  (eval "$ac_link") 2>conftest.er1
96464  ac_status=$?
96465  grep -v '^ *+' conftest.er1 >conftest.err
96466  rm -f conftest.er1
96467  cat conftest.err >&5
96468  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96469  (exit $ac_status); } && {
96470	 test -z "$ac_c_werror_flag" ||
96471	 test ! -s conftest.err
96472       } && test -s conftest$ac_exeext && {
96473	 test "$cross_compiling" = yes ||
96474	 $as_test_x conftest$ac_exeext
96475       }; then
96476  fu_cv_sys_stat_statvfs=yes
96477else
96478  $as_echo "$as_me: failed program was:" >&5
96479sed 's/^/| /' conftest.$ac_ext >&5
96480
96481	fu_cv_sys_stat_statvfs=no
96482fi
96483
96484rm -rf conftest.dSYM
96485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
96486      conftest$ac_exeext conftest.$ac_ext
96487fi
96488{ $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
96489$as_echo "$fu_cv_sys_stat_statvfs" >&6; }
96490  if test $fu_cv_sys_stat_statvfs = yes; then
96491    space=yes
96492
96493cat >>confdefs.h <<\_ACEOF
96494#define STAT_STATVFS 1
96495_ACEOF
96496
96497  fi
96498fi
96499
96500# fsusage.c assumes that statvfs has an f_frsize entry. Some weird
96501# systems use f_bsize.
96502{ $as_echo "$as_me:$LINENO: checking that statvfs.f_frsize works" >&5
96503$as_echo_n "checking that statvfs.f_frsize works... " >&6; }
96504if test "${samba_cv_frsize+set}" = set; then
96505  $as_echo_n "(cached) " >&6
96506else
96507
96508    cat >conftest.$ac_ext <<_ACEOF
96509/* confdefs.h.  */
96510_ACEOF
96511cat confdefs.h >>conftest.$ac_ext
96512cat >>conftest.$ac_ext <<_ACEOF
96513/* end confdefs.h.  */
96514#include <sys/types.h>
96515#include <sys/statvfs.h>
96516int
96517main ()
96518{
96519struct statvfs buf; buf.f_frsize = 0
96520  ;
96521  return 0;
96522}
96523_ACEOF
96524rm -f conftest.$ac_objext
96525if { (ac_try="$ac_compile"
96526case "(($ac_try" in
96527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96528  *) ac_try_echo=$ac_try;;
96529esac
96530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96531$as_echo "$ac_try_echo") >&5
96532  (eval "$ac_compile") 2>conftest.er1
96533  ac_status=$?
96534  grep -v '^ *+' conftest.er1 >conftest.err
96535  rm -f conftest.er1
96536  cat conftest.err >&5
96537  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96538  (exit $ac_status); } && {
96539	 test -z "$ac_c_werror_flag" ||
96540	 test ! -s conftest.err
96541       } && test -s conftest.$ac_objext; then
96542  samba_cv_frsize=yes
96543else
96544  $as_echo "$as_me: failed program was:" >&5
96545sed 's/^/| /' conftest.$ac_ext >&5
96546
96547	samba_cv_frsize=no
96548fi
96549
96550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
96551fi
96552{ $as_echo "$as_me:$LINENO: result: $samba_cv_frsize" >&5
96553$as_echo "$samba_cv_frsize" >&6; }
96554if test x"$samba_cv_frsize" = x"yes"; then
96555
96556cat >>confdefs.h <<\_ACEOF
96557#define HAVE_FRSIZE 1
96558_ACEOF
96559
96560fi
96561
96562if test $space = no; then
96563  # DEC Alpha running OSF/1
96564  { $as_echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
96565$as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
96566  if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
96567  $as_echo_n "(cached) " >&6
96568else
96569  if test "$cross_compiling" = yes; then
96570  fu_cv_sys_stat_statfs3_osf1=no
96571else
96572  cat >conftest.$ac_ext <<_ACEOF
96573/* confdefs.h.  */
96574_ACEOF
96575cat confdefs.h >>conftest.$ac_ext
96576cat >>conftest.$ac_ext <<_ACEOF
96577/* end confdefs.h.  */
96578
96579#include <sys/param.h>
96580#include <sys/types.h>
96581#include <sys/mount.h>
96582  main ()
96583  {
96584    struct statfs fsd;
96585    fsd.f_fsize = 0;
96586    exit (statfs (".", &fsd, sizeof (struct statfs)));
96587  }
96588_ACEOF
96589rm -f conftest$ac_exeext
96590if { (ac_try="$ac_link"
96591case "(($ac_try" in
96592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96593  *) ac_try_echo=$ac_try;;
96594esac
96595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96596$as_echo "$ac_try_echo") >&5
96597  (eval "$ac_link") 2>&5
96598  ac_status=$?
96599  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96600  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
96601  { (case "(($ac_try" in
96602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96603  *) ac_try_echo=$ac_try;;
96604esac
96605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96606$as_echo "$ac_try_echo") >&5
96607  (eval "$ac_try") 2>&5
96608  ac_status=$?
96609  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96610  (exit $ac_status); }; }; then
96611  fu_cv_sys_stat_statfs3_osf1=yes
96612else
96613  $as_echo "$as_me: program exited with status $ac_status" >&5
96614$as_echo "$as_me: failed program was:" >&5
96615sed 's/^/| /' conftest.$ac_ext >&5
96616
96617( exit $ac_status )
96618fu_cv_sys_stat_statfs3_osf1=no
96619fi
96620rm -rf conftest.dSYM
96621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
96622fi
96623
96624
96625fi
96626
96627  { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
96628$as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
96629  if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
96630    space=yes
96631
96632cat >>confdefs.h <<\_ACEOF
96633#define STAT_STATFS3_OSF1 1
96634_ACEOF
96635
96636  fi
96637fi
96638
96639if test $space = no; then
96640# AIX
96641  { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
96642$as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
96643  if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
96644  $as_echo_n "(cached) " >&6
96645else
96646  if test "$cross_compiling" = yes; then
96647  fu_cv_sys_stat_statfs2_bsize=no
96648else
96649  cat >conftest.$ac_ext <<_ACEOF
96650/* confdefs.h.  */
96651_ACEOF
96652cat confdefs.h >>conftest.$ac_ext
96653cat >>conftest.$ac_ext <<_ACEOF
96654/* end confdefs.h.  */
96655
96656#ifdef HAVE_SYS_PARAM_H
96657#include <sys/param.h>
96658#endif
96659#ifdef HAVE_SYS_MOUNT_H
96660#include <sys/mount.h>
96661#endif
96662#ifdef HAVE_SYS_VFS_H
96663#include <sys/vfs.h>
96664#endif
96665  main ()
96666  {
96667  struct statfs fsd;
96668  fsd.f_bsize = 0;
96669  exit (statfs (".", &fsd));
96670  }
96671_ACEOF
96672rm -f conftest$ac_exeext
96673if { (ac_try="$ac_link"
96674case "(($ac_try" in
96675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96676  *) ac_try_echo=$ac_try;;
96677esac
96678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96679$as_echo "$ac_try_echo") >&5
96680  (eval "$ac_link") 2>&5
96681  ac_status=$?
96682  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96683  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
96684  { (case "(($ac_try" in
96685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96686  *) ac_try_echo=$ac_try;;
96687esac
96688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96689$as_echo "$ac_try_echo") >&5
96690  (eval "$ac_try") 2>&5
96691  ac_status=$?
96692  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96693  (exit $ac_status); }; }; then
96694  fu_cv_sys_stat_statfs2_bsize=yes
96695else
96696  $as_echo "$as_me: program exited with status $ac_status" >&5
96697$as_echo "$as_me: failed program was:" >&5
96698sed 's/^/| /' conftest.$ac_ext >&5
96699
96700( exit $ac_status )
96701fu_cv_sys_stat_statfs2_bsize=no
96702fi
96703rm -rf conftest.dSYM
96704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
96705fi
96706
96707
96708fi
96709
96710  { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
96711$as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
96712  if test $fu_cv_sys_stat_statfs2_bsize = yes; then
96713    space=yes
96714
96715cat >>confdefs.h <<\_ACEOF
96716#define STAT_STATFS2_BSIZE 1
96717_ACEOF
96718
96719  fi
96720fi
96721
96722if test $space = no; then
96723# SVR3
96724  { $as_echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
96725$as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
96726  if test "${fu_cv_sys_stat_statfs4+set}" = set; then
96727  $as_echo_n "(cached) " >&6
96728else
96729  if test "$cross_compiling" = yes; then
96730  fu_cv_sys_stat_statfs4=no
96731else
96732  cat >conftest.$ac_ext <<_ACEOF
96733/* confdefs.h.  */
96734_ACEOF
96735cat confdefs.h >>conftest.$ac_ext
96736cat >>conftest.$ac_ext <<_ACEOF
96737/* end confdefs.h.  */
96738#include <sys/types.h>
96739#include <sys/statfs.h>
96740  main ()
96741  {
96742  struct statfs fsd;
96743  exit (statfs (".", &fsd, sizeof fsd, 0));
96744  }
96745_ACEOF
96746rm -f conftest$ac_exeext
96747if { (ac_try="$ac_link"
96748case "(($ac_try" in
96749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96750  *) ac_try_echo=$ac_try;;
96751esac
96752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96753$as_echo "$ac_try_echo") >&5
96754  (eval "$ac_link") 2>&5
96755  ac_status=$?
96756  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96757  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
96758  { (case "(($ac_try" in
96759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96760  *) ac_try_echo=$ac_try;;
96761esac
96762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96763$as_echo "$ac_try_echo") >&5
96764  (eval "$ac_try") 2>&5
96765  ac_status=$?
96766  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96767  (exit $ac_status); }; }; then
96768  fu_cv_sys_stat_statfs4=yes
96769else
96770  $as_echo "$as_me: program exited with status $ac_status" >&5
96771$as_echo "$as_me: failed program was:" >&5
96772sed 's/^/| /' conftest.$ac_ext >&5
96773
96774( exit $ac_status )
96775fu_cv_sys_stat_statfs4=no
96776fi
96777rm -rf conftest.dSYM
96778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
96779fi
96780
96781
96782fi
96783
96784  { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
96785$as_echo "$fu_cv_sys_stat_statfs4" >&6; }
96786  if test $fu_cv_sys_stat_statfs4 = yes; then
96787    space=yes
96788
96789cat >>confdefs.h <<\_ACEOF
96790#define STAT_STATFS4 1
96791_ACEOF
96792
96793  fi
96794fi
96795
96796if test $space = no; then
96797# 4.4BSD and NetBSD
96798  { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
96799$as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
96800  if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
96801  $as_echo_n "(cached) " >&6
96802else
96803  if test "$cross_compiling" = yes; then
96804  fu_cv_sys_stat_statfs2_fsize=no
96805else
96806  cat >conftest.$ac_ext <<_ACEOF
96807/* confdefs.h.  */
96808_ACEOF
96809cat confdefs.h >>conftest.$ac_ext
96810cat >>conftest.$ac_ext <<_ACEOF
96811/* end confdefs.h.  */
96812#include <sys/types.h>
96813#ifdef HAVE_SYS_PARAM_H
96814#include <sys/param.h>
96815#endif
96816#ifdef HAVE_SYS_MOUNT_H
96817#include <sys/mount.h>
96818#endif
96819  main ()
96820  {
96821  struct statfs fsd;
96822  fsd.f_fsize = 0;
96823  exit (statfs (".", &fsd));
96824  }
96825_ACEOF
96826rm -f conftest$ac_exeext
96827if { (ac_try="$ac_link"
96828case "(($ac_try" in
96829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96830  *) ac_try_echo=$ac_try;;
96831esac
96832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96833$as_echo "$ac_try_echo") >&5
96834  (eval "$ac_link") 2>&5
96835  ac_status=$?
96836  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96837  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
96838  { (case "(($ac_try" in
96839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96840  *) ac_try_echo=$ac_try;;
96841esac
96842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96843$as_echo "$ac_try_echo") >&5
96844  (eval "$ac_try") 2>&5
96845  ac_status=$?
96846  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96847  (exit $ac_status); }; }; then
96848  fu_cv_sys_stat_statfs2_fsize=yes
96849else
96850  $as_echo "$as_me: program exited with status $ac_status" >&5
96851$as_echo "$as_me: failed program was:" >&5
96852sed 's/^/| /' conftest.$ac_ext >&5
96853
96854( exit $ac_status )
96855fu_cv_sys_stat_statfs2_fsize=no
96856fi
96857rm -rf conftest.dSYM
96858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
96859fi
96860
96861
96862fi
96863
96864  { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
96865$as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
96866  if test $fu_cv_sys_stat_statfs2_fsize = yes; then
96867    space=yes
96868
96869cat >>confdefs.h <<\_ACEOF
96870#define STAT_STATFS2_FSIZE 1
96871_ACEOF
96872
96873  fi
96874fi
96875
96876if test $space = no; then
96877  # Ultrix
96878  { $as_echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
96879$as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
96880  if test "${fu_cv_sys_stat_fs_data+set}" = set; then
96881  $as_echo_n "(cached) " >&6
96882else
96883  if test "$cross_compiling" = yes; then
96884  fu_cv_sys_stat_fs_data=no
96885else
96886  cat >conftest.$ac_ext <<_ACEOF
96887/* confdefs.h.  */
96888_ACEOF
96889cat confdefs.h >>conftest.$ac_ext
96890cat >>conftest.$ac_ext <<_ACEOF
96891/* end confdefs.h.  */
96892#include <sys/types.h>
96893#ifdef HAVE_SYS_PARAM_H
96894#include <sys/param.h>
96895#endif
96896#ifdef HAVE_SYS_MOUNT_H
96897#include <sys/mount.h>
96898#endif
96899#ifdef HAVE_SYS_FS_TYPES_H
96900#include <sys/fs_types.h>
96901#endif
96902  main ()
96903  {
96904  struct fs_data fsd;
96905  /* Ultrix's statfs returns 1 for success,
96906     0 for not mounted, -1 for failure.  */
96907  exit (statfs (".", &fsd) != 1);
96908  }
96909_ACEOF
96910rm -f conftest$ac_exeext
96911if { (ac_try="$ac_link"
96912case "(($ac_try" in
96913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96914  *) ac_try_echo=$ac_try;;
96915esac
96916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96917$as_echo "$ac_try_echo") >&5
96918  (eval "$ac_link") 2>&5
96919  ac_status=$?
96920  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96921  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
96922  { (case "(($ac_try" in
96923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96924  *) ac_try_echo=$ac_try;;
96925esac
96926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96927$as_echo "$ac_try_echo") >&5
96928  (eval "$ac_try") 2>&5
96929  ac_status=$?
96930  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96931  (exit $ac_status); }; }; then
96932  fu_cv_sys_stat_fs_data=yes
96933else
96934  $as_echo "$as_me: program exited with status $ac_status" >&5
96935$as_echo "$as_me: failed program was:" >&5
96936sed 's/^/| /' conftest.$ac_ext >&5
96937
96938( exit $ac_status )
96939fu_cv_sys_stat_fs_data=no
96940fi
96941rm -rf conftest.dSYM
96942rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
96943fi
96944
96945
96946fi
96947
96948  { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
96949$as_echo "$fu_cv_sys_stat_fs_data" >&6; }
96950  if test $fu_cv_sys_stat_fs_data = yes; then
96951    space=yes
96952
96953cat >>confdefs.h <<\_ACEOF
96954#define STAT_STATFS2_FS_DATA 1
96955_ACEOF
96956
96957  fi
96958fi
96959
96960
96961
96962
96963for ac_header in sys/attributes.h attr/xattr.h sys/xattr.h
96964do
96965as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
96966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
96967  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
96968$as_echo_n "checking for $ac_header... " >&6; }
96969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
96970  $as_echo_n "(cached) " >&6
96971fi
96972ac_res=`eval 'as_val=${'$as_ac_Header'}
96973		 $as_echo "$as_val"'`
96974	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
96975$as_echo "$ac_res" >&6; }
96976else
96977  # Is the header compilable?
96978{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
96979$as_echo_n "checking $ac_header usability... " >&6; }
96980cat >conftest.$ac_ext <<_ACEOF
96981/* confdefs.h.  */
96982_ACEOF
96983cat confdefs.h >>conftest.$ac_ext
96984cat >>conftest.$ac_ext <<_ACEOF
96985/* end confdefs.h.  */
96986$ac_includes_default
96987#include <$ac_header>
96988_ACEOF
96989rm -f conftest.$ac_objext
96990if { (ac_try="$ac_compile"
96991case "(($ac_try" in
96992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
96993  *) ac_try_echo=$ac_try;;
96994esac
96995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
96996$as_echo "$ac_try_echo") >&5
96997  (eval "$ac_compile") 2>conftest.er1
96998  ac_status=$?
96999  grep -v '^ *+' conftest.er1 >conftest.err
97000  rm -f conftest.er1
97001  cat conftest.err >&5
97002  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97003  (exit $ac_status); } && {
97004	 test -z "$ac_c_werror_flag" ||
97005	 test ! -s conftest.err
97006       } && test -s conftest.$ac_objext; then
97007  ac_header_compiler=yes
97008else
97009  $as_echo "$as_me: failed program was:" >&5
97010sed 's/^/| /' conftest.$ac_ext >&5
97011
97012	ac_header_compiler=no
97013fi
97014
97015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97016{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
97017$as_echo "$ac_header_compiler" >&6; }
97018
97019# Is the header present?
97020{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
97021$as_echo_n "checking $ac_header presence... " >&6; }
97022cat >conftest.$ac_ext <<_ACEOF
97023/* confdefs.h.  */
97024_ACEOF
97025cat confdefs.h >>conftest.$ac_ext
97026cat >>conftest.$ac_ext <<_ACEOF
97027/* end confdefs.h.  */
97028#include <$ac_header>
97029_ACEOF
97030if { (ac_try="$ac_cpp conftest.$ac_ext"
97031case "(($ac_try" in
97032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97033  *) ac_try_echo=$ac_try;;
97034esac
97035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97036$as_echo "$ac_try_echo") >&5
97037  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
97038  ac_status=$?
97039  grep -v '^ *+' conftest.er1 >conftest.err
97040  rm -f conftest.er1
97041  cat conftest.err >&5
97042  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97043  (exit $ac_status); } >/dev/null && {
97044	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
97045	 test ! -s conftest.err
97046       }; then
97047  ac_header_preproc=yes
97048else
97049  $as_echo "$as_me: failed program was:" >&5
97050sed 's/^/| /' conftest.$ac_ext >&5
97051
97052  ac_header_preproc=no
97053fi
97054
97055rm -f conftest.err conftest.$ac_ext
97056{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
97057$as_echo "$ac_header_preproc" >&6; }
97058
97059# So?  What about this header?
97060case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
97061  yes:no: )
97062    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
97063$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
97064    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
97065$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
97066    ac_header_preproc=yes
97067    ;;
97068  no:yes:* )
97069    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
97070$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
97071    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
97072$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
97073    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
97074$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
97075    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
97076$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
97077    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
97078$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
97079    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
97080$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
97081    ( cat <<\_ASBOX
97082## ---------------------------------------- ##
97083## Report this to samba-technical@samba.org ##
97084## ---------------------------------------- ##
97085_ASBOX
97086     ) | sed "s/^/$as_me: WARNING:     /" >&2
97087    ;;
97088esac
97089{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
97090$as_echo_n "checking for $ac_header... " >&6; }
97091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
97092  $as_echo_n "(cached) " >&6
97093else
97094  eval "$as_ac_Header=\$ac_header_preproc"
97095fi
97096ac_res=`eval 'as_val=${'$as_ac_Header'}
97097		 $as_echo "$as_val"'`
97098	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
97099$as_echo "$ac_res" >&6; }
97100
97101fi
97102as_val=`eval 'as_val=${'$as_ac_Header'}
97103		 $as_echo "$as_val"'`
97104   if test "x$as_val" = x""yes; then
97105  cat >>confdefs.h <<_ACEOF
97106#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
97107_ACEOF
97108
97109fi
97110
97111done
97112
97113{ $as_echo "$as_me:$LINENO: checking for library containing flistxattr" >&5
97114$as_echo_n "checking for library containing flistxattr... " >&6; }
97115if test "${ac_cv_search_ext_flistxattr+set}" = set; then
97116  $as_echo_n "(cached) " >&6
97117else
97118
97119ac_func_search_ext_save_LIBS=$LIBS
97120ac_cv_search_ext_flistxattr=no
97121cat >conftest.$ac_ext <<_ACEOF
97122/* confdefs.h.  */
97123_ACEOF
97124cat confdefs.h >>conftest.$ac_ext
97125cat >>conftest.$ac_ext <<_ACEOF
97126/* end confdefs.h.  */
97127
97128/* Override any GCC internal prototype to avoid an error.
97129   Use char because int might match the return type of a GCC
97130   builtin and then its argument prototype would still apply.  */
97131#ifdef __cplusplus
97132extern "C"
97133#endif
97134char flistxattr ();
97135int
97136main ()
97137{
97138return flistxattr ();
97139  ;
97140  return 0;
97141}
97142_ACEOF
97143rm -f conftest.$ac_objext conftest$ac_exeext
97144if { (ac_try="$ac_link"
97145case "(($ac_try" in
97146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97147  *) ac_try_echo=$ac_try;;
97148esac
97149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97150$as_echo "$ac_try_echo") >&5
97151  (eval "$ac_link") 2>conftest.er1
97152  ac_status=$?
97153  grep -v '^ *+' conftest.er1 >conftest.err
97154  rm -f conftest.er1
97155  cat conftest.err >&5
97156  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97157  (exit $ac_status); } && {
97158	 test -z "$ac_c_werror_flag" ||
97159	 test ! -s conftest.err
97160       } && test -s conftest$ac_exeext && {
97161	 test "$cross_compiling" = yes ||
97162	 $as_test_x conftest$ac_exeext
97163       }; then
97164  ac_cv_search_ext_flistxattr="none required"
97165else
97166  $as_echo "$as_me: failed program was:" >&5
97167sed 's/^/| /' conftest.$ac_ext >&5
97168
97169
97170fi
97171
97172rm -rf conftest.dSYM
97173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
97174      conftest$ac_exeext conftest.$ac_ext
97175if test "$ac_cv_search_ext_flistxattr" = no; then
97176  for ac_lib in attr; do
97177    LIBS="-l$ac_lib $XATTR_LIBS  $ac_func_search_save_ext_LIBS"
97178    cat >conftest.$ac_ext <<_ACEOF
97179/* confdefs.h.  */
97180_ACEOF
97181cat confdefs.h >>conftest.$ac_ext
97182cat >>conftest.$ac_ext <<_ACEOF
97183/* end confdefs.h.  */
97184
97185/* Override any GCC internal prototype to avoid an error.
97186   Use char because int might match the return type of a GCC
97187   builtin and then its argument prototype would still apply.  */
97188#ifdef __cplusplus
97189extern "C"
97190#endif
97191char flistxattr ();
97192int
97193main ()
97194{
97195return flistxattr ();
97196  ;
97197  return 0;
97198}
97199_ACEOF
97200rm -f conftest.$ac_objext conftest$ac_exeext
97201if { (ac_try="$ac_link"
97202case "(($ac_try" in
97203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97204  *) ac_try_echo=$ac_try;;
97205esac
97206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97207$as_echo "$ac_try_echo") >&5
97208  (eval "$ac_link") 2>conftest.er1
97209  ac_status=$?
97210  grep -v '^ *+' conftest.er1 >conftest.err
97211  rm -f conftest.er1
97212  cat conftest.err >&5
97213  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97214  (exit $ac_status); } && {
97215	 test -z "$ac_c_werror_flag" ||
97216	 test ! -s conftest.err
97217       } && test -s conftest$ac_exeext && {
97218	 test "$cross_compiling" = yes ||
97219	 $as_test_x conftest$ac_exeext
97220       }; then
97221  ac_cv_search_ext_flistxattr="-l$ac_lib"
97222break
97223else
97224  $as_echo "$as_me: failed program was:" >&5
97225sed 's/^/| /' conftest.$ac_ext >&5
97226
97227
97228fi
97229
97230rm -rf conftest.dSYM
97231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
97232      conftest$ac_exeext conftest.$ac_ext
97233  done
97234fi
97235LIBS=$ac_func_search_ext_save_LIBS
97236fi
97237{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_ext_flistxattr" >&5
97238$as_echo "$ac_cv_search_ext_flistxattr" >&6; }
97239if test "$ac_cv_search_ext_flistxattr" != no; then
97240  test "$ac_cv_search_ext_flistxattr" = "none required" || XATTR_LIBS="$ac_cv_search_ext_flistxattr $XATTR_LIBS"
97241
97242fi
97243
97244
97245
97246
97247    ac_check_func_ext_save_LIBS=$LIBS
97248    LIBS="$XATTR_LIBS $LIBS"
97249        { $as_echo "$as_me:$LINENO: checking for flistxattr" >&5
97250$as_echo_n "checking for flistxattr... " >&6; }
97251if test "${ac_cv_func_ext_flistxattr+set}" = set; then
97252  $as_echo_n "(cached) " >&6
97253else
97254  cat >conftest.$ac_ext <<_ACEOF
97255/* confdefs.h.  */
97256_ACEOF
97257cat confdefs.h >>conftest.$ac_ext
97258cat >>conftest.$ac_ext <<_ACEOF
97259/* end confdefs.h.  */
97260/* Define flistxattr to an innocuous variant, in case <limits.h> declares flistxattr.
97261   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
97262#define flistxattr innocuous_flistxattr
97263
97264/* System header to define __stub macros and hopefully few prototypes,
97265    which can conflict with char flistxattr (); below.
97266    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
97267    <limits.h> exists even on freestanding compilers.  */
97268
97269#ifdef __STDC__
97270# include <limits.h>
97271#else
97272# include <assert.h>
97273#endif
97274
97275#undef flistxattr
97276
97277/* Override any GCC internal prototype to avoid an error.
97278   Use char because int might match the return type of a GCC
97279   builtin and then its argument prototype would still apply.  */
97280#ifdef __cplusplus
97281extern "C"
97282#endif
97283char flistxattr ();
97284/* The GNU C library defines this for functions which it implements
97285    to always fail with ENOSYS.  Some functions are actually named
97286    something starting with __ and the normal name is an alias.  */
97287#if defined __stub_flistxattr || defined __stub___flistxattr
97288choke me
97289#endif
97290
97291int
97292main ()
97293{
97294return flistxattr ();
97295  ;
97296  return 0;
97297}
97298_ACEOF
97299rm -f conftest.$ac_objext conftest$ac_exeext
97300if { (ac_try="$ac_link"
97301case "(($ac_try" in
97302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97303  *) ac_try_echo=$ac_try;;
97304esac
97305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97306$as_echo "$ac_try_echo") >&5
97307  (eval "$ac_link") 2>conftest.er1
97308  ac_status=$?
97309  grep -v '^ *+' conftest.er1 >conftest.err
97310  rm -f conftest.er1
97311  cat conftest.err >&5
97312  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97313  (exit $ac_status); } && {
97314	 test -z "$ac_c_werror_flag" ||
97315	 test ! -s conftest.err
97316       } && test -s conftest$ac_exeext && {
97317	 test "$cross_compiling" = yes ||
97318	 $as_test_x conftest$ac_exeext
97319       }; then
97320  ac_cv_func_ext_flistxattr=yes
97321else
97322  $as_echo "$as_me: failed program was:" >&5
97323sed 's/^/| /' conftest.$ac_ext >&5
97324
97325	ac_cv_func_ext_flistxattr=no
97326fi
97327
97328rm -rf conftest.dSYM
97329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
97330      conftest$ac_exeext conftest.$ac_ext
97331fi
97332{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_flistxattr" >&5
97333$as_echo "$ac_cv_func_ext_flistxattr" >&6; }
97334    LIBS=$ac_check_func_ext_save_LIBS
97335    if test $ac_cv_func_ext_flistxattr = yes; then
97336  cat >>confdefs.h <<_ACEOF
97337#define HAVE_FLISTXATTR 1
97338_ACEOF
97339
97340fi
97341
97342
97343MAKE_SETTINGS="$MAKE_SETTINGS
97344XATTR_LIBS = ${XATTR_LIBS}
97345XATTR_CFLAGS = ${XATTR_CFLAGS}
97346XATTR_CPPFLAGS = ${XATTR_CPPFLAGS}
97347XATTR_LDFLAGS = ${XATTR_LDFLAGS}
97348"
97349
97350
97351if test x"$ac_cv_func_ext_flistxattr" = x"yes"; then
97352	{ $as_echo "$as_me:$LINENO: checking whether xattr interface takes additional options" >&5
97353$as_echo_n "checking whether xattr interface takes additional options... " >&6; }
97354if test "${smb_attr_cv_xattr_add_opt+set}" = set; then
97355  $as_echo_n "(cached) " >&6
97356else
97357  old_LIBS=$LIBS
97358	 LIBS="$LIBS $XATTRLIBS"
97359	 cat >conftest.$ac_ext <<_ACEOF
97360/* confdefs.h.  */
97361_ACEOF
97362cat confdefs.h >>conftest.$ac_ext
97363cat >>conftest.$ac_ext <<_ACEOF
97364/* end confdefs.h.  */
97365
97366	 	#include <sys/types.h>
97367		#if HAVE_ATTR_XATTR_H
97368		#include <attr/xattr.h>
97369		#elif HAVE_SYS_XATTR_H
97370		#include <sys/xattr.h>
97371		#endif
97372		#ifndef NULL
97373		#define NULL ((void *)0)
97374		#endif
97375
97376int
97377main ()
97378{
97379
97380		getxattr(NULL, NULL, NULL, 0, 0, 0);
97381
97382  ;
97383  return 0;
97384}
97385_ACEOF
97386rm -f conftest.$ac_objext
97387if { (ac_try="$ac_compile"
97388case "(($ac_try" in
97389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97390  *) ac_try_echo=$ac_try;;
97391esac
97392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97393$as_echo "$ac_try_echo") >&5
97394  (eval "$ac_compile") 2>conftest.er1
97395  ac_status=$?
97396  grep -v '^ *+' conftest.er1 >conftest.err
97397  rm -f conftest.er1
97398  cat conftest.err >&5
97399  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97400  (exit $ac_status); } && {
97401	 test -z "$ac_c_werror_flag" ||
97402	 test ! -s conftest.err
97403       } && test -s conftest.$ac_objext; then
97404  smb_attr_cv_xattr_add_opt=yes
97405else
97406  $as_echo "$as_me: failed program was:" >&5
97407sed 's/^/| /' conftest.$ac_ext >&5
97408
97409	smb_attr_cv_xattr_add_opt=no
97410fi
97411
97412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97413	  LIBS=$old_LIBS
97414fi
97415{ $as_echo "$as_me:$LINENO: result: $smb_attr_cv_xattr_add_opt" >&5
97416$as_echo "$smb_attr_cv_xattr_add_opt" >&6; }
97417	if test x"$smb_attr_cv_xattr_add_opt" = x"yes"; then
97418
97419cat >>confdefs.h <<\_ACEOF
97420#define XATTR_ADDITIONAL_OPTIONS 1
97421_ACEOF
97422
97423	fi
97424
97425cat >>confdefs.h <<\_ACEOF
97426#define HAVE_XATTR_SUPPORT 1
97427_ACEOF
97428
97429
97430	MAKE_SETTINGS="$MAKE_SETTINGS
97431XATTR_ENABLE = YES
97432"
97433SMB_INFO_ENABLES="$SMB_INFO_ENABLES
97434\$enabled{\"XATTR\"} = \"YES\";"
97435
97436fi
97437
97438
97439{ $as_echo "$as_me:$LINENO: checking for irix specific capabilities" >&5
97440$as_echo_n "checking for irix specific capabilities... " >&6; }
97441if test "${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}" = set; then
97442  $as_echo_n "(cached) " >&6
97443else
97444
97445if test "$cross_compiling" = yes; then
97446  samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
97447else
97448  cat >conftest.$ac_ext <<_ACEOF
97449/* confdefs.h.  */
97450_ACEOF
97451cat confdefs.h >>conftest.$ac_ext
97452cat >>conftest.$ac_ext <<_ACEOF
97453/* end confdefs.h.  */
97454#include <sys/types.h>
97455#include <sys/capability.h>
97456main() {
97457 cap_t cap;
97458 if ((cap = cap_get_proc()) == NULL)
97459   exit(1);
97460 cap->cap_effective |= CAP_NETWORK_MGT;
97461 cap->cap_inheritable |= CAP_NETWORK_MGT;
97462 cap_set_proc(cap);
97463 exit(0);
97464}
97465
97466_ACEOF
97467rm -f conftest$ac_exeext
97468if { (ac_try="$ac_link"
97469case "(($ac_try" in
97470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97471  *) ac_try_echo=$ac_try;;
97472esac
97473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97474$as_echo "$ac_try_echo") >&5
97475  (eval "$ac_link") 2>&5
97476  ac_status=$?
97477  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97478  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
97479  { (case "(($ac_try" in
97480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97481  *) ac_try_echo=$ac_try;;
97482esac
97483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97484$as_echo "$ac_try_echo") >&5
97485  (eval "$ac_try") 2>&5
97486  ac_status=$?
97487  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97488  (exit $ac_status); }; }; then
97489  samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
97490else
97491  $as_echo "$as_me: program exited with status $ac_status" >&5
97492$as_echo "$as_me: failed program was:" >&5
97493sed 's/^/| /' conftest.$ac_ext >&5
97494
97495( exit $ac_status )
97496samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
97497fi
97498rm -rf conftest.dSYM
97499rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97500fi
97501
97502
97503fi
97504{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&5
97505$as_echo "$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&6; }
97506if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
97507
97508cat >>confdefs.h <<\_ACEOF
97509#define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
97510_ACEOF
97511
97512fi
97513
97514{ $as_echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
97515$as_echo_n "checking if gettimeofday takes tz argument... " >&6; }
97516if test "${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
97517  $as_echo_n "(cached) " >&6
97518else
97519
97520if test "$cross_compiling" = yes; then
97521  samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
97522else
97523  cat >conftest.$ac_ext <<_ACEOF
97524/* confdefs.h.  */
97525_ACEOF
97526cat confdefs.h >>conftest.$ac_ext
97527cat >>conftest.$ac_ext <<_ACEOF
97528/* end confdefs.h.  */
97529
97530#include <sys/time.h>
97531#include <unistd.h>
97532main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
97533_ACEOF
97534rm -f conftest$ac_exeext
97535if { (ac_try="$ac_link"
97536case "(($ac_try" in
97537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97538  *) ac_try_echo=$ac_try;;
97539esac
97540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97541$as_echo "$ac_try_echo") >&5
97542  (eval "$ac_link") 2>&5
97543  ac_status=$?
97544  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97545  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
97546  { (case "(($ac_try" in
97547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97548  *) ac_try_echo=$ac_try;;
97549esac
97550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97551$as_echo "$ac_try_echo") >&5
97552  (eval "$ac_try") 2>&5
97553  ac_status=$?
97554  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97555  (exit $ac_status); }; }; then
97556  samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
97557else
97558  $as_echo "$as_me: program exited with status $ac_status" >&5
97559$as_echo "$as_me: failed program was:" >&5
97560sed 's/^/| /' conftest.$ac_ext >&5
97561
97562( exit $ac_status )
97563samba_cv_HAVE_GETTIMEOFDAY_TZ=no
97564fi
97565rm -rf conftest.dSYM
97566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97567fi
97568
97569
97570fi
97571{ $as_echo "$as_me:$LINENO: result: $samba_cv_HAVE_GETTIMEOFDAY_TZ" >&5
97572$as_echo "$samba_cv_HAVE_GETTIMEOFDAY_TZ" >&6; }
97573if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
97574
97575cat >>confdefs.h <<\_ACEOF
97576#define HAVE_GETTIMEOFDAY_TZ 1
97577_ACEOF
97578
97579fi
97580
97581
97582INCLUDED_POPT=auto
97583
97584# Check whether --with-included-popt was given.
97585if test "${with_included_popt+set}" = set; then
97586  withval=$with_included_popt;  INCLUDED_POPT=$withval
97587fi
97588
97589
97590
97591
97592
97593if test x"$INCLUDED_POPT" != x"yes"; then
97594
97595for ac_header in popt.h
97596do
97597as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
97598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
97599  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
97600$as_echo_n "checking for $ac_header... " >&6; }
97601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
97602  $as_echo_n "(cached) " >&6
97603fi
97604ac_res=`eval 'as_val=${'$as_ac_Header'}
97605		 $as_echo "$as_val"'`
97606	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
97607$as_echo "$ac_res" >&6; }
97608else
97609  # Is the header compilable?
97610{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
97611$as_echo_n "checking $ac_header usability... " >&6; }
97612cat >conftest.$ac_ext <<_ACEOF
97613/* confdefs.h.  */
97614_ACEOF
97615cat confdefs.h >>conftest.$ac_ext
97616cat >>conftest.$ac_ext <<_ACEOF
97617/* end confdefs.h.  */
97618$ac_includes_default
97619#include <$ac_header>
97620_ACEOF
97621rm -f conftest.$ac_objext
97622if { (ac_try="$ac_compile"
97623case "(($ac_try" in
97624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97625  *) ac_try_echo=$ac_try;;
97626esac
97627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97628$as_echo "$ac_try_echo") >&5
97629  (eval "$ac_compile") 2>conftest.er1
97630  ac_status=$?
97631  grep -v '^ *+' conftest.er1 >conftest.err
97632  rm -f conftest.er1
97633  cat conftest.err >&5
97634  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97635  (exit $ac_status); } && {
97636	 test -z "$ac_c_werror_flag" ||
97637	 test ! -s conftest.err
97638       } && test -s conftest.$ac_objext; then
97639  ac_header_compiler=yes
97640else
97641  $as_echo "$as_me: failed program was:" >&5
97642sed 's/^/| /' conftest.$ac_ext >&5
97643
97644	ac_header_compiler=no
97645fi
97646
97647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97648{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
97649$as_echo "$ac_header_compiler" >&6; }
97650
97651# Is the header present?
97652{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
97653$as_echo_n "checking $ac_header presence... " >&6; }
97654cat >conftest.$ac_ext <<_ACEOF
97655/* confdefs.h.  */
97656_ACEOF
97657cat confdefs.h >>conftest.$ac_ext
97658cat >>conftest.$ac_ext <<_ACEOF
97659/* end confdefs.h.  */
97660#include <$ac_header>
97661_ACEOF
97662if { (ac_try="$ac_cpp conftest.$ac_ext"
97663case "(($ac_try" in
97664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97665  *) ac_try_echo=$ac_try;;
97666esac
97667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97668$as_echo "$ac_try_echo") >&5
97669  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
97670  ac_status=$?
97671  grep -v '^ *+' conftest.er1 >conftest.err
97672  rm -f conftest.er1
97673  cat conftest.err >&5
97674  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97675  (exit $ac_status); } >/dev/null && {
97676	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
97677	 test ! -s conftest.err
97678       }; then
97679  ac_header_preproc=yes
97680else
97681  $as_echo "$as_me: failed program was:" >&5
97682sed 's/^/| /' conftest.$ac_ext >&5
97683
97684  ac_header_preproc=no
97685fi
97686
97687rm -f conftest.err conftest.$ac_ext
97688{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
97689$as_echo "$ac_header_preproc" >&6; }
97690
97691# So?  What about this header?
97692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
97693  yes:no: )
97694    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
97695$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
97696    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
97697$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
97698    ac_header_preproc=yes
97699    ;;
97700  no:yes:* )
97701    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
97702$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
97703    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
97704$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
97705    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
97706$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
97707    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
97708$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
97709    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
97710$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
97711    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
97712$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
97713    ( cat <<\_ASBOX
97714## ---------------------------------------- ##
97715## Report this to samba-technical@samba.org ##
97716## ---------------------------------------- ##
97717_ASBOX
97718     ) | sed "s/^/$as_me: WARNING:     /" >&2
97719    ;;
97720esac
97721{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
97722$as_echo_n "checking for $ac_header... " >&6; }
97723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
97724  $as_echo_n "(cached) " >&6
97725else
97726  eval "$as_ac_Header=\$ac_header_preproc"
97727fi
97728ac_res=`eval 'as_val=${'$as_ac_Header'}
97729		 $as_echo "$as_val"'`
97730	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
97731$as_echo "$ac_res" >&6; }
97732
97733fi
97734as_val=`eval 'as_val=${'$as_ac_Header'}
97735		 $as_echo "$as_val"'`
97736   if test "x$as_val" = x""yes; then
97737  cat >>confdefs.h <<_ACEOF
97738#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
97739_ACEOF
97740
97741fi
97742
97743done
97744
97745	{ $as_echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
97746$as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
97747if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
97748  $as_echo_n "(cached) " >&6
97749else
97750  ac_check_lib_save_LIBS=$LIBS
97751LIBS="-lpopt  $LIBS"
97752cat >conftest.$ac_ext <<_ACEOF
97753/* confdefs.h.  */
97754_ACEOF
97755cat confdefs.h >>conftest.$ac_ext
97756cat >>conftest.$ac_ext <<_ACEOF
97757/* end confdefs.h.  */
97758
97759/* Override any GCC internal prototype to avoid an error.
97760   Use char because int might match the return type of a GCC
97761   builtin and then its argument prototype would still apply.  */
97762#ifdef __cplusplus
97763extern "C"
97764#endif
97765char poptGetContext ();
97766int
97767main ()
97768{
97769return poptGetContext ();
97770  ;
97771  return 0;
97772}
97773_ACEOF
97774rm -f conftest.$ac_objext conftest$ac_exeext
97775if { (ac_try="$ac_link"
97776case "(($ac_try" in
97777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97778  *) ac_try_echo=$ac_try;;
97779esac
97780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97781$as_echo "$ac_try_echo") >&5
97782  (eval "$ac_link") 2>conftest.er1
97783  ac_status=$?
97784  grep -v '^ *+' conftest.er1 >conftest.err
97785  rm -f conftest.er1
97786  cat conftest.err >&5
97787  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97788  (exit $ac_status); } && {
97789	 test -z "$ac_c_werror_flag" ||
97790	 test ! -s conftest.err
97791       } && test -s conftest$ac_exeext && {
97792	 test "$cross_compiling" = yes ||
97793	 $as_test_x conftest$ac_exeext
97794       }; then
97795  ac_cv_lib_popt_poptGetContext=yes
97796else
97797  $as_echo "$as_me: failed program was:" >&5
97798sed 's/^/| /' conftest.$ac_ext >&5
97799
97800	ac_cv_lib_popt_poptGetContext=no
97801fi
97802
97803rm -rf conftest.dSYM
97804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
97805      conftest$ac_exeext conftest.$ac_ext
97806LIBS=$ac_check_lib_save_LIBS
97807fi
97808{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
97809$as_echo "$ac_cv_lib_popt_poptGetContext" >&6; }
97810if test "x$ac_cv_lib_popt_poptGetContext" = x""yes; then
97811   POPT_LIBS="-lpopt"
97812fi
97813
97814	if test x"$ac_cv_header_popt_h" = x"no" -o x"$ac_cv_lib_popt_poptGetContext" = x"no"; then
97815		INCLUDED_POPT=yes
97816		POPT_CFLAGS=""
97817	else
97818		INCLUDED_POPT=no
97819	fi
97820fi
97821
97822{ $as_echo "$as_me:$LINENO: checking whether to use included popt" >&5
97823$as_echo_n "checking whether to use included popt... " >&6; }
97824{ $as_echo "$as_me:$LINENO: result: $INCLUDED_POPT" >&5
97825$as_echo "$INCLUDED_POPT" >&6; }
97826if test x"$INCLUDED_POPT" != x"no"; then
97827			poptdir=""
97828	poptpaths="$srcdir $srcdir/lib/popt $srcdir/popt $srcdir/../popt $srcdir/../lib/popt"
97829	for d in $poptpaths; do
97830		if test -f "$d/popt.c"; then
97831			poptdir="$d"
97832			POPT_CFLAGS="-I$d"
97833
97834			break
97835		fi
97836	done
97837        if test x"$poptdir" = "x"; then
97838		{ { $as_echo "$as_me:$LINENO: error: cannot find popt source in $poptpaths" >&5
97839$as_echo "$as_me: error: cannot find popt source in $poptpaths" >&2;}
97840   { (exit 1); exit 1; }; }
97841	fi
97842	POPT_OBJ="popt.o findme.o poptconfig.o popthelp.o poptparse.o"
97843
97844
97845
97846for ac_header in float.h alloca.h
97847do
97848as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
97849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
97850  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
97851$as_echo_n "checking for $ac_header... " >&6; }
97852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
97853  $as_echo_n "(cached) " >&6
97854fi
97855ac_res=`eval 'as_val=${'$as_ac_Header'}
97856		 $as_echo "$as_val"'`
97857	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
97858$as_echo "$ac_res" >&6; }
97859else
97860  # Is the header compilable?
97861{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
97862$as_echo_n "checking $ac_header usability... " >&6; }
97863cat >conftest.$ac_ext <<_ACEOF
97864/* confdefs.h.  */
97865_ACEOF
97866cat confdefs.h >>conftest.$ac_ext
97867cat >>conftest.$ac_ext <<_ACEOF
97868/* end confdefs.h.  */
97869$ac_includes_default
97870#include <$ac_header>
97871_ACEOF
97872rm -f conftest.$ac_objext
97873if { (ac_try="$ac_compile"
97874case "(($ac_try" in
97875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97876  *) ac_try_echo=$ac_try;;
97877esac
97878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97879$as_echo "$ac_try_echo") >&5
97880  (eval "$ac_compile") 2>conftest.er1
97881  ac_status=$?
97882  grep -v '^ *+' conftest.er1 >conftest.err
97883  rm -f conftest.er1
97884  cat conftest.err >&5
97885  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97886  (exit $ac_status); } && {
97887	 test -z "$ac_c_werror_flag" ||
97888	 test ! -s conftest.err
97889       } && test -s conftest.$ac_objext; then
97890  ac_header_compiler=yes
97891else
97892  $as_echo "$as_me: failed program was:" >&5
97893sed 's/^/| /' conftest.$ac_ext >&5
97894
97895	ac_header_compiler=no
97896fi
97897
97898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97899{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
97900$as_echo "$ac_header_compiler" >&6; }
97901
97902# Is the header present?
97903{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
97904$as_echo_n "checking $ac_header presence... " >&6; }
97905cat >conftest.$ac_ext <<_ACEOF
97906/* confdefs.h.  */
97907_ACEOF
97908cat confdefs.h >>conftest.$ac_ext
97909cat >>conftest.$ac_ext <<_ACEOF
97910/* end confdefs.h.  */
97911#include <$ac_header>
97912_ACEOF
97913if { (ac_try="$ac_cpp conftest.$ac_ext"
97914case "(($ac_try" in
97915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
97916  *) ac_try_echo=$ac_try;;
97917esac
97918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97919$as_echo "$ac_try_echo") >&5
97920  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
97921  ac_status=$?
97922  grep -v '^ *+' conftest.er1 >conftest.err
97923  rm -f conftest.er1
97924  cat conftest.err >&5
97925  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
97926  (exit $ac_status); } >/dev/null && {
97927	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
97928	 test ! -s conftest.err
97929       }; then
97930  ac_header_preproc=yes
97931else
97932  $as_echo "$as_me: failed program was:" >&5
97933sed 's/^/| /' conftest.$ac_ext >&5
97934
97935  ac_header_preproc=no
97936fi
97937
97938rm -f conftest.err conftest.$ac_ext
97939{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
97940$as_echo "$ac_header_preproc" >&6; }
97941
97942# So?  What about this header?
97943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
97944  yes:no: )
97945    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
97946$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
97947    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
97948$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
97949    ac_header_preproc=yes
97950    ;;
97951  no:yes:* )
97952    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
97953$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
97954    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
97955$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
97956    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
97957$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
97958    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
97959$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
97960    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
97961$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
97962    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
97963$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
97964    ( cat <<\_ASBOX
97965## ---------------------------------------- ##
97966## Report this to samba-technical@samba.org ##
97967## ---------------------------------------- ##
97968_ASBOX
97969     ) | sed "s/^/$as_me: WARNING:     /" >&2
97970    ;;
97971esac
97972{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
97973$as_echo_n "checking for $ac_header... " >&6; }
97974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
97975  $as_echo_n "(cached) " >&6
97976else
97977  eval "$as_ac_Header=\$ac_header_preproc"
97978fi
97979ac_res=`eval 'as_val=${'$as_ac_Header'}
97980		 $as_echo "$as_val"'`
97981	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
97982$as_echo "$ac_res" >&6; }
97983
97984fi
97985as_val=`eval 'as_val=${'$as_ac_Header'}
97986		 $as_echo "$as_val"'`
97987   if test "x$as_val" = x""yes; then
97988  cat >>confdefs.h <<_ACEOF
97989#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
97990_ACEOF
97991
97992fi
97993
97994done
97995
97996fi
97997
97998
97999if test x"$POPT_OBJ" = "x"; then
98000
98001MAKE_SETTINGS="$MAKE_SETTINGS
98002LIBPOPT_LIBS = ${POPT_LIBS}
98003LIBPOPT_CFLAGS =
98004LIBPOPT_CPPFLAGS =
98005LIBPOPT_LDFLAGS =
98006"
98007
98008
98009else
98010
98011SMB_INFO_EXT_LIBS="$SMB_INFO_EXT_LIBS
98012mkinclude ../lib/popt/config.mk
98013"
98014
98015fi
98016
98017
98018
98019
98020
98021
98022ICONV_FOUND=no
98023LOOK_DIRS="/usr /usr/local /sw"
98024
98025# Check whether --with-libiconv was given.
98026if test "${with_libiconv+set}" = set; then
98027  withval=$with_libiconv;
98028  if test "$withval" = "no" ; then
98029    { { $as_echo "$as_me:$LINENO: error: I won't take no for an answer" >&5
98030$as_echo "$as_me: error: I won't take no for an answer" >&2;}
98031   { (exit 1); exit 1; }; }
98032  else
98033     if test "$withval" != "yes" ; then
98034
98035	save_CPPFLAGS="$CPPFLAGS"
98036	save_LDFLAGS="$LDFLAGS"
98037	save_LIBS="$LIBS"
98038	CPPFLAGS="-I$withval/include"
98039	LDFLAGS="-L$withval/lib"
98040	LIBS=-liconv
98041
98042
98043  { $as_echo "$as_me:$LINENO: checking Whether iconv.h is present" >&5
98044$as_echo_n "checking Whether iconv.h is present... " >&6; }
98045  if test "$cross_compiling" = yes; then
98046  { $as_echo "$as_me:$LINENO: result: cross" >&5
98047$as_echo "cross" >&6; };
98048        LIBS=-lgiconv
98049
98050  { $as_echo "$as_me:$LINENO: checking Whether giconv.h is present" >&5
98051$as_echo_n "checking Whether giconv.h is present... " >&6; }
98052  if test "$cross_compiling" = yes; then
98053  { $as_echo "$as_me:$LINENO: result: cross" >&5
98054$as_echo "cross" >&6; }; { { $as_echo "$as_me:$LINENO: error: No iconv library found in $withval" >&5
98055$as_echo "$as_me: error: No iconv library found in $withval" >&2;}
98056   { (exit 1); exit 1; }; }
98057else
98058  cat >conftest.$ac_ext <<_ACEOF
98059/* confdefs.h.  */
98060_ACEOF
98061cat confdefs.h >>conftest.$ac_ext
98062cat >>conftest.$ac_ext <<_ACEOF
98063/* end confdefs.h.  */
98064#include <stdlib.h>
98065#include <giconv.h>
98066
98067int main()
98068{
98069   iconv_t cd = iconv_open("ASCII","UCS-2LE");
98070   if (cd == 0 || cd == (iconv_t)-1) return -1;
98071   return 0;
98072}
98073
98074_ACEOF
98075rm -f conftest$ac_exeext
98076if { (ac_try="$ac_link"
98077case "(($ac_try" in
98078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98079  *) ac_try_echo=$ac_try;;
98080esac
98081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98082$as_echo "$ac_try_echo") >&5
98083  (eval "$ac_link") 2>&5
98084  ac_status=$?
98085  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98086  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
98087  { (case "(($ac_try" in
98088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98089  *) ac_try_echo=$ac_try;;
98090esac
98091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98092$as_echo "$ac_try_echo") >&5
98093  (eval "$ac_try") 2>&5
98094  ac_status=$?
98095  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98096  (exit $ac_status); }; }; then
98097  { $as_echo "$as_me:$LINENO: result: yes" >&5
98098$as_echo "yes" >&6; };
98099cat >>confdefs.h <<\_ACEOF
98100#define HAVE_GICONV_H 1
98101_ACEOF
98102
98103		ICONV_FOUND=yes;
98104		ICONV_CPPFLAGS="$CPPFLAGS"
98105		ICONV_LIBS="$LIBS"
98106		ICONV_LDFLAGS="$LDFLAGS"
98107
98108else
98109  $as_echo "$as_me: program exited with status $ac_status" >&5
98110$as_echo "$as_me: failed program was:" >&5
98111sed 's/^/| /' conftest.$ac_ext >&5
98112
98113( exit $ac_status )
98114{ $as_echo "$as_me:$LINENO: result: no" >&5
98115$as_echo "no" >&6; }; { { $as_echo "$as_me:$LINENO: error: No iconv library found in $withval" >&5
98116$as_echo "$as_me: error: No iconv library found in $withval" >&2;}
98117   { (exit 1); exit 1; }; }
98118fi
98119rm -rf conftest.dSYM
98120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
98121fi
98122
98123
98124
98125
98126else
98127  cat >conftest.$ac_ext <<_ACEOF
98128/* confdefs.h.  */
98129_ACEOF
98130cat confdefs.h >>conftest.$ac_ext
98131cat >>conftest.$ac_ext <<_ACEOF
98132/* end confdefs.h.  */
98133#include <stdlib.h>
98134#include <iconv.h>
98135
98136int main()
98137{
98138   iconv_t cd = iconv_open("ASCII","UCS-2LE");
98139   if (cd == 0 || cd == (iconv_t)-1) return -1;
98140   return 0;
98141}
98142
98143_ACEOF
98144rm -f conftest$ac_exeext
98145if { (ac_try="$ac_link"
98146case "(($ac_try" in
98147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98148  *) ac_try_echo=$ac_try;;
98149esac
98150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98151$as_echo "$ac_try_echo") >&5
98152  (eval "$ac_link") 2>&5
98153  ac_status=$?
98154  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98155  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
98156  { (case "(($ac_try" in
98157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98158  *) ac_try_echo=$ac_try;;
98159esac
98160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98161$as_echo "$ac_try_echo") >&5
98162  (eval "$ac_try") 2>&5
98163  ac_status=$?
98164  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98165  (exit $ac_status); }; }; then
98166  { $as_echo "$as_me:$LINENO: result: yes" >&5
98167$as_echo "yes" >&6; };
98168cat >>confdefs.h <<\_ACEOF
98169#define HAVE_ICONV_H 1
98170_ACEOF
98171
98172		ICONV_FOUND=yes;
98173		ICONV_CPPFLAGS="$CPPFLAGS"
98174		ICONV_LIBS="$LIBS"
98175		ICONV_LDFLAGS="$LDFLAGS"
98176
98177else
98178  $as_echo "$as_me: program exited with status $ac_status" >&5
98179$as_echo "$as_me: failed program was:" >&5
98180sed 's/^/| /' conftest.$ac_ext >&5
98181
98182( exit $ac_status )
98183{ $as_echo "$as_me:$LINENO: result: no" >&5
98184$as_echo "no" >&6; };
98185        LIBS=-lgiconv
98186
98187  { $as_echo "$as_me:$LINENO: checking Whether giconv.h is present" >&5
98188$as_echo_n "checking Whether giconv.h is present... " >&6; }
98189  if test "$cross_compiling" = yes; then
98190  { $as_echo "$as_me:$LINENO: result: cross" >&5
98191$as_echo "cross" >&6; }; { { $as_echo "$as_me:$LINENO: error: No iconv library found in $withval" >&5
98192$as_echo "$as_me: error: No iconv library found in $withval" >&2;}
98193   { (exit 1); exit 1; }; }
98194else
98195  cat >conftest.$ac_ext <<_ACEOF
98196/* confdefs.h.  */
98197_ACEOF
98198cat confdefs.h >>conftest.$ac_ext
98199cat >>conftest.$ac_ext <<_ACEOF
98200/* end confdefs.h.  */
98201#include <stdlib.h>
98202#include <giconv.h>
98203
98204int main()
98205{
98206   iconv_t cd = iconv_open("ASCII","UCS-2LE");
98207   if (cd == 0 || cd == (iconv_t)-1) return -1;
98208   return 0;
98209}
98210
98211_ACEOF
98212rm -f conftest$ac_exeext
98213if { (ac_try="$ac_link"
98214case "(($ac_try" in
98215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98216  *) ac_try_echo=$ac_try;;
98217esac
98218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98219$as_echo "$ac_try_echo") >&5
98220  (eval "$ac_link") 2>&5
98221  ac_status=$?
98222  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98223  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
98224  { (case "(($ac_try" in
98225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98226  *) ac_try_echo=$ac_try;;
98227esac
98228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98229$as_echo "$ac_try_echo") >&5
98230  (eval "$ac_try") 2>&5
98231  ac_status=$?
98232  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98233  (exit $ac_status); }; }; then
98234  { $as_echo "$as_me:$LINENO: result: yes" >&5
98235$as_echo "yes" >&6; };
98236cat >>confdefs.h <<\_ACEOF
98237#define HAVE_GICONV_H 1
98238_ACEOF
98239
98240		ICONV_FOUND=yes;
98241		ICONV_CPPFLAGS="$CPPFLAGS"
98242		ICONV_LIBS="$LIBS"
98243		ICONV_LDFLAGS="$LDFLAGS"
98244
98245else
98246  $as_echo "$as_me: program exited with status $ac_status" >&5
98247$as_echo "$as_me: failed program was:" >&5
98248sed 's/^/| /' conftest.$ac_ext >&5
98249
98250( exit $ac_status )
98251{ $as_echo "$as_me:$LINENO: result: no" >&5
98252$as_echo "no" >&6; }; { { $as_echo "$as_me:$LINENO: error: No iconv library found in $withval" >&5
98253$as_echo "$as_me: error: No iconv library found in $withval" >&2;}
98254   { (exit 1); exit 1; }; }
98255fi
98256rm -rf conftest.dSYM
98257rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
98258fi
98259
98260
98261
98262
98263fi
98264rm -rf conftest.dSYM
98265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
98266fi
98267
98268
98269
98270
98271	CPPFLAGS="$save_CPPFLAGS"
98272	LDFLAGS="$save_LDFLAGS"
98273	LIBS="$save_LIBS"
98274
98275     fi
98276  fi
98277
98278fi
98279
98280
98281if test x$ICONV_FOUND = xno; then
98282
98283  { $as_echo "$as_me:$LINENO: checking Whether iconv.h is present" >&5
98284$as_echo_n "checking Whether iconv.h is present... " >&6; }
98285  if test "$cross_compiling" = yes; then
98286  { $as_echo "$as_me:$LINENO: result: cross" >&5
98287$as_echo "cross" >&6; };
98288else
98289  cat >conftest.$ac_ext <<_ACEOF
98290/* confdefs.h.  */
98291_ACEOF
98292cat confdefs.h >>conftest.$ac_ext
98293cat >>conftest.$ac_ext <<_ACEOF
98294/* end confdefs.h.  */
98295#include <stdlib.h>
98296#include <iconv.h>
98297
98298int main()
98299{
98300   iconv_t cd = iconv_open("ASCII","UCS-2LE");
98301   if (cd == 0 || cd == (iconv_t)-1) return -1;
98302   return 0;
98303}
98304
98305_ACEOF
98306rm -f conftest$ac_exeext
98307if { (ac_try="$ac_link"
98308case "(($ac_try" in
98309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98310  *) ac_try_echo=$ac_try;;
98311esac
98312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98313$as_echo "$ac_try_echo") >&5
98314  (eval "$ac_link") 2>&5
98315  ac_status=$?
98316  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98317  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
98318  { (case "(($ac_try" in
98319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98320  *) ac_try_echo=$ac_try;;
98321esac
98322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98323$as_echo "$ac_try_echo") >&5
98324  (eval "$ac_try") 2>&5
98325  ac_status=$?
98326  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98327  (exit $ac_status); }; }; then
98328  { $as_echo "$as_me:$LINENO: result: yes" >&5
98329$as_echo "yes" >&6; };
98330cat >>confdefs.h <<\_ACEOF
98331#define HAVE_ICONV_H 1
98332_ACEOF
98333 ICONV_FOUND=yes
98334else
98335  $as_echo "$as_me: program exited with status $ac_status" >&5
98336$as_echo "$as_me: failed program was:" >&5
98337sed 's/^/| /' conftest.$ac_ext >&5
98338
98339( exit $ac_status )
98340{ $as_echo "$as_me:$LINENO: result: no" >&5
98341$as_echo "no" >&6; };
98342fi
98343rm -rf conftest.dSYM
98344rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
98345fi
98346
98347
98348
98349fi
98350
98351for i in $LOOK_DIRS ; do
98352	if test x$ICONV_FOUND = xyes; then
98353		break
98354	fi
98355
98356
98357	save_CPPFLAGS="$CPPFLAGS"
98358	save_LDFLAGS="$LDFLAGS"
98359	save_LIBS="$LIBS"
98360	CPPFLAGS="-I$i/include"
98361	LDFLAGS="-L$i/lib"
98362	LIBS=-liconv
98363
98364
98365  { $as_echo "$as_me:$LINENO: checking Whether iconv.h is present" >&5
98366$as_echo_n "checking Whether iconv.h is present... " >&6; }
98367  if test "$cross_compiling" = yes; then
98368  { $as_echo "$as_me:$LINENO: result: cross" >&5
98369$as_echo "cross" >&6; };
98370        LIBS=-lgiconv
98371
98372  { $as_echo "$as_me:$LINENO: checking Whether giconv.h is present" >&5
98373$as_echo_n "checking Whether giconv.h is present... " >&6; }
98374  if test "$cross_compiling" = yes; then
98375  { $as_echo "$as_me:$LINENO: result: cross" >&5
98376$as_echo "cross" >&6; };
98377else
98378  cat >conftest.$ac_ext <<_ACEOF
98379/* confdefs.h.  */
98380_ACEOF
98381cat confdefs.h >>conftest.$ac_ext
98382cat >>conftest.$ac_ext <<_ACEOF
98383/* end confdefs.h.  */
98384#include <stdlib.h>
98385#include <giconv.h>
98386
98387int main()
98388{
98389   iconv_t cd = iconv_open("ASCII","UCS-2LE");
98390   if (cd == 0 || cd == (iconv_t)-1) return -1;
98391   return 0;
98392}
98393
98394_ACEOF
98395rm -f conftest$ac_exeext
98396if { (ac_try="$ac_link"
98397case "(($ac_try" in
98398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98399  *) ac_try_echo=$ac_try;;
98400esac
98401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98402$as_echo "$ac_try_echo") >&5
98403  (eval "$ac_link") 2>&5
98404  ac_status=$?
98405  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98406  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
98407  { (case "(($ac_try" in
98408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98409  *) ac_try_echo=$ac_try;;
98410esac
98411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98412$as_echo "$ac_try_echo") >&5
98413  (eval "$ac_try") 2>&5
98414  ac_status=$?
98415  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98416  (exit $ac_status); }; }; then
98417  { $as_echo "$as_me:$LINENO: result: yes" >&5
98418$as_echo "yes" >&6; };
98419cat >>confdefs.h <<\_ACEOF
98420#define HAVE_GICONV_H 1
98421_ACEOF
98422
98423		ICONV_FOUND=yes
98424		ICONV_CPPFLAGS="$CPPFLAGS"
98425		ICONV_LIBS="$LIBS"
98426		ICONV_LDFLAGS="$LDFLAGS"
98427
98428else
98429  $as_echo "$as_me: program exited with status $ac_status" >&5
98430$as_echo "$as_me: failed program was:" >&5
98431sed 's/^/| /' conftest.$ac_ext >&5
98432
98433( exit $ac_status )
98434{ $as_echo "$as_me:$LINENO: result: no" >&5
98435$as_echo "no" >&6; };
98436fi
98437rm -rf conftest.dSYM
98438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
98439fi
98440
98441
98442
98443
98444else
98445  cat >conftest.$ac_ext <<_ACEOF
98446/* confdefs.h.  */
98447_ACEOF
98448cat confdefs.h >>conftest.$ac_ext
98449cat >>conftest.$ac_ext <<_ACEOF
98450/* end confdefs.h.  */
98451#include <stdlib.h>
98452#include <iconv.h>
98453
98454int main()
98455{
98456   iconv_t cd = iconv_open("ASCII","UCS-2LE");
98457   if (cd == 0 || cd == (iconv_t)-1) return -1;
98458   return 0;
98459}
98460
98461_ACEOF
98462rm -f conftest$ac_exeext
98463if { (ac_try="$ac_link"
98464case "(($ac_try" in
98465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98466  *) ac_try_echo=$ac_try;;
98467esac
98468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98469$as_echo "$ac_try_echo") >&5
98470  (eval "$ac_link") 2>&5
98471  ac_status=$?
98472  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98473  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
98474  { (case "(($ac_try" in
98475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98476  *) ac_try_echo=$ac_try;;
98477esac
98478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98479$as_echo "$ac_try_echo") >&5
98480  (eval "$ac_try") 2>&5
98481  ac_status=$?
98482  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98483  (exit $ac_status); }; }; then
98484  { $as_echo "$as_me:$LINENO: result: yes" >&5
98485$as_echo "yes" >&6; };
98486cat >>confdefs.h <<\_ACEOF
98487#define HAVE_ICONV_H 1
98488_ACEOF
98489
98490		ICONV_FOUND=yes
98491		ICONV_CPPFLAGS="$CPPFLAGS"
98492		ICONV_LIBS="$LIBS"
98493		ICONV_LDFLAGS="$LDFLAGS"
98494
98495else
98496  $as_echo "$as_me: program exited with status $ac_status" >&5
98497$as_echo "$as_me: failed program was:" >&5
98498sed 's/^/| /' conftest.$ac_ext >&5
98499
98500( exit $ac_status )
98501{ $as_echo "$as_me:$LINENO: result: no" >&5
98502$as_echo "no" >&6; };
98503        LIBS=-lgiconv
98504
98505  { $as_echo "$as_me:$LINENO: checking Whether giconv.h is present" >&5
98506$as_echo_n "checking Whether giconv.h is present... " >&6; }
98507  if test "$cross_compiling" = yes; then
98508  { $as_echo "$as_me:$LINENO: result: cross" >&5
98509$as_echo "cross" >&6; };
98510else
98511  cat >conftest.$ac_ext <<_ACEOF
98512/* confdefs.h.  */
98513_ACEOF
98514cat confdefs.h >>conftest.$ac_ext
98515cat >>conftest.$ac_ext <<_ACEOF
98516/* end confdefs.h.  */
98517#include <stdlib.h>
98518#include <giconv.h>
98519
98520int main()
98521{
98522   iconv_t cd = iconv_open("ASCII","UCS-2LE");
98523   if (cd == 0 || cd == (iconv_t)-1) return -1;
98524   return 0;
98525}
98526
98527_ACEOF
98528rm -f conftest$ac_exeext
98529if { (ac_try="$ac_link"
98530case "(($ac_try" in
98531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98532  *) ac_try_echo=$ac_try;;
98533esac
98534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98535$as_echo "$ac_try_echo") >&5
98536  (eval "$ac_link") 2>&5
98537  ac_status=$?
98538  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98539  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
98540  { (case "(($ac_try" in
98541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98542  *) ac_try_echo=$ac_try;;
98543esac
98544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98545$as_echo "$ac_try_echo") >&5
98546  (eval "$ac_try") 2>&5
98547  ac_status=$?
98548  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98549  (exit $ac_status); }; }; then
98550  { $as_echo "$as_me:$LINENO: result: yes" >&5
98551$as_echo "yes" >&6; };
98552cat >>confdefs.h <<\_ACEOF
98553#define HAVE_GICONV_H 1
98554_ACEOF
98555
98556		ICONV_FOUND=yes
98557		ICONV_CPPFLAGS="$CPPFLAGS"
98558		ICONV_LIBS="$LIBS"
98559		ICONV_LDFLAGS="$LDFLAGS"
98560
98561else
98562  $as_echo "$as_me: program exited with status $ac_status" >&5
98563$as_echo "$as_me: failed program was:" >&5
98564sed 's/^/| /' conftest.$ac_ext >&5
98565
98566( exit $ac_status )
98567{ $as_echo "$as_me:$LINENO: result: no" >&5
98568$as_echo "no" >&6; };
98569fi
98570rm -rf conftest.dSYM
98571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
98572fi
98573
98574
98575
98576
98577fi
98578rm -rf conftest.dSYM
98579rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
98580fi
98581
98582
98583
98584
98585	CPPFLAGS="$save_CPPFLAGS"
98586	LDFLAGS="$save_LDFLAGS"
98587	LIBS="$save_LIBS"
98588
98589done
98590
98591if test x"$ICONV_FOUND" = x"no"; then
98592    { $as_echo "$as_me:$LINENO: WARNING: Sufficient support for iconv function was not found.
98593    Install libiconv from http://www.gnu.org/software/libiconv/ for better charset compatibility!" >&5
98594$as_echo "$as_me: WARNING: Sufficient support for iconv function was not found.
98595    Install libiconv from http://www.gnu.org/software/libiconv/ for better charset compatibility!" >&2;}
98596
98597	MAKE_SETTINGS="$MAKE_SETTINGS
98598ICONV_ENABLE = NO
98599"
98600SMB_INFO_ENABLES="$SMB_INFO_ENABLES
98601\$enabled{\"ICONV\"} = \"NO\";"
98602
98603else
98604
98605cat >>confdefs.h <<\_ACEOF
98606#define HAVE_NATIVE_ICONV 1
98607_ACEOF
98608
98609
98610	MAKE_SETTINGS="$MAKE_SETTINGS
98611ICONV_ENABLE = YES
98612"
98613SMB_INFO_ENABLES="$SMB_INFO_ENABLES
98614\$enabled{\"ICONV\"} = \"YES\";"
98615
98616fi
98617
98618
98619MAKE_SETTINGS="$MAKE_SETTINGS
98620ICONV_LIBS = ${ICONV_LIBS}
98621ICONV_CFLAGS = ${ICONV_CFLAGS}
98622ICONV_CPPFLAGS = ${ICONV_CPPFLAGS}
98623ICONV_LDFLAGS = ${ICONV_LDFLAGS}
98624"
98625
98626
98627
98628
98629for ac_func in writev
98630do
98631as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
98632{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
98633$as_echo_n "checking for $ac_func... " >&6; }
98634if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
98635  $as_echo_n "(cached) " >&6
98636else
98637  cat >conftest.$ac_ext <<_ACEOF
98638/* confdefs.h.  */
98639_ACEOF
98640cat confdefs.h >>conftest.$ac_ext
98641cat >>conftest.$ac_ext <<_ACEOF
98642/* end confdefs.h.  */
98643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
98644   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
98645#define $ac_func innocuous_$ac_func
98646
98647/* System header to define __stub macros and hopefully few prototypes,
98648    which can conflict with char $ac_func (); below.
98649    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
98650    <limits.h> exists even on freestanding compilers.  */
98651
98652#ifdef __STDC__
98653# include <limits.h>
98654#else
98655# include <assert.h>
98656#endif
98657
98658#undef $ac_func
98659
98660/* Override any GCC internal prototype to avoid an error.
98661   Use char because int might match the return type of a GCC
98662   builtin and then its argument prototype would still apply.  */
98663#ifdef __cplusplus
98664extern "C"
98665#endif
98666char $ac_func ();
98667/* The GNU C library defines this for functions which it implements
98668    to always fail with ENOSYS.  Some functions are actually named
98669    something starting with __ and the normal name is an alias.  */
98670#if defined __stub_$ac_func || defined __stub___$ac_func
98671choke me
98672#endif
98673
98674int
98675main ()
98676{
98677return $ac_func ();
98678  ;
98679  return 0;
98680}
98681_ACEOF
98682rm -f conftest.$ac_objext conftest$ac_exeext
98683if { (ac_try="$ac_link"
98684case "(($ac_try" in
98685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98686  *) ac_try_echo=$ac_try;;
98687esac
98688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98689$as_echo "$ac_try_echo") >&5
98690  (eval "$ac_link") 2>conftest.er1
98691  ac_status=$?
98692  grep -v '^ *+' conftest.er1 >conftest.err
98693  rm -f conftest.er1
98694  cat conftest.err >&5
98695  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98696  (exit $ac_status); } && {
98697	 test -z "$ac_c_werror_flag" ||
98698	 test ! -s conftest.err
98699       } && test -s conftest$ac_exeext && {
98700	 test "$cross_compiling" = yes ||
98701	 $as_test_x conftest$ac_exeext
98702       }; then
98703  eval "$as_ac_var=yes"
98704else
98705  $as_echo "$as_me: failed program was:" >&5
98706sed 's/^/| /' conftest.$ac_ext >&5
98707
98708	eval "$as_ac_var=no"
98709fi
98710
98711rm -rf conftest.dSYM
98712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98713      conftest$ac_exeext conftest.$ac_ext
98714fi
98715ac_res=`eval 'as_val=${'$as_ac_var'}
98716		 $as_echo "$as_val"'`
98717	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
98718$as_echo "$ac_res" >&6; }
98719as_val=`eval 'as_val=${'$as_ac_var'}
98720		 $as_echo "$as_val"'`
98721   if test "x$as_val" = x""yes; then
98722  cat >>confdefs.h <<_ACEOF
98723#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
98724_ACEOF
98725
98726fi
98727done
98728
98729
98730for ac_func in readv
98731do
98732as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
98733{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
98734$as_echo_n "checking for $ac_func... " >&6; }
98735if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
98736  $as_echo_n "(cached) " >&6
98737else
98738  cat >conftest.$ac_ext <<_ACEOF
98739/* confdefs.h.  */
98740_ACEOF
98741cat confdefs.h >>conftest.$ac_ext
98742cat >>conftest.$ac_ext <<_ACEOF
98743/* end confdefs.h.  */
98744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
98745   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
98746#define $ac_func innocuous_$ac_func
98747
98748/* System header to define __stub macros and hopefully few prototypes,
98749    which can conflict with char $ac_func (); below.
98750    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
98751    <limits.h> exists even on freestanding compilers.  */
98752
98753#ifdef __STDC__
98754# include <limits.h>
98755#else
98756# include <assert.h>
98757#endif
98758
98759#undef $ac_func
98760
98761/* Override any GCC internal prototype to avoid an error.
98762   Use char because int might match the return type of a GCC
98763   builtin and then its argument prototype would still apply.  */
98764#ifdef __cplusplus
98765extern "C"
98766#endif
98767char $ac_func ();
98768/* The GNU C library defines this for functions which it implements
98769    to always fail with ENOSYS.  Some functions are actually named
98770    something starting with __ and the normal name is an alias.  */
98771#if defined __stub_$ac_func || defined __stub___$ac_func
98772choke me
98773#endif
98774
98775int
98776main ()
98777{
98778return $ac_func ();
98779  ;
98780  return 0;
98781}
98782_ACEOF
98783rm -f conftest.$ac_objext conftest$ac_exeext
98784if { (ac_try="$ac_link"
98785case "(($ac_try" in
98786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98787  *) ac_try_echo=$ac_try;;
98788esac
98789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98790$as_echo "$ac_try_echo") >&5
98791  (eval "$ac_link") 2>conftest.er1
98792  ac_status=$?
98793  grep -v '^ *+' conftest.er1 >conftest.err
98794  rm -f conftest.er1
98795  cat conftest.err >&5
98796  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98797  (exit $ac_status); } && {
98798	 test -z "$ac_c_werror_flag" ||
98799	 test ! -s conftest.err
98800       } && test -s conftest$ac_exeext && {
98801	 test "$cross_compiling" = yes ||
98802	 $as_test_x conftest$ac_exeext
98803       }; then
98804  eval "$as_ac_var=yes"
98805else
98806  $as_echo "$as_me: failed program was:" >&5
98807sed 's/^/| /' conftest.$ac_ext >&5
98808
98809	eval "$as_ac_var=no"
98810fi
98811
98812rm -rf conftest.dSYM
98813rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
98814      conftest$ac_exeext conftest.$ac_ext
98815fi
98816ac_res=`eval 'as_val=${'$as_ac_var'}
98817		 $as_echo "$as_val"'`
98818	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
98819$as_echo "$ac_res" >&6; }
98820as_val=`eval 'as_val=${'$as_ac_var'}
98821		 $as_echo "$as_val"'`
98822   if test "x$as_val" = x""yes; then
98823  cat >>confdefs.h <<_ACEOF
98824#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
98825_ACEOF
98826
98827fi
98828done
98829
98830
98831############################################
98832# check for unix domain sockets
98833# done by AC_LIBREPLACE_NETWORK_CHECKS
98834
98835	MAKE_SETTINGS="$MAKE_SETTINGS
98836socket_unix_ENABLE = NO
98837"
98838SMB_INFO_ENABLES="$SMB_INFO_ENABLES
98839\$enabled{\"socket_unix\"} = \"NO\";"
98840
98841if test x"$libreplace_cv_HAVE_UNIXSOCKET" = x"yes"; then
98842
98843	MAKE_SETTINGS="$MAKE_SETTINGS
98844socket_unix_ENABLE = YES
98845"
98846SMB_INFO_ENABLES="$SMB_INFO_ENABLES
98847\$enabled{\"socket_unix\"} = \"YES\";"
98848
98849fi
98850
98851############################################
98852# check for ipv6
98853# done by AC_LIBREPLACE_NETWORK_CHECKS
98854
98855	MAKE_SETTINGS="$MAKE_SETTINGS
98856socket_ipv6_ENABLE = NO
98857"
98858SMB_INFO_ENABLES="$SMB_INFO_ENABLES
98859\$enabled{\"socket_ipv6\"} = \"NO\";"
98860
98861if test x"$libreplace_cv_HAVE_IPV6" = x"yes"; then
98862
98863	MAKE_SETTINGS="$MAKE_SETTINGS
98864socket_ipv6_ENABLE = YES
98865"
98866SMB_INFO_ENABLES="$SMB_INFO_ENABLES
98867\$enabled{\"socket_ipv6\"} = \"YES\";"
98868
98869fi
98870
98871case "$host_os" in
98872	*linux*)
98873
98874	MAKE_SETTINGS="$MAKE_SETTINGS
98875nsstest_ENABLE = YES
98876"
98877SMB_INFO_ENABLES="$SMB_INFO_ENABLES
98878\$enabled{\"nsstest\"} = \"YES\";"
98879
98880	;;
98881	*)
98882
98883	MAKE_SETTINGS="$MAKE_SETTINGS
98884nsstest_ENABLE = NO
98885"
98886SMB_INFO_ENABLES="$SMB_INFO_ENABLES
98887\$enabled{\"nsstest\"} = \"NO\";"
98888
98889	;;
98890esac
98891
98892# Check whether ExtUtils::ExtMaker is available
98893
98894if perl -e "use ExtUtils::MakeMaker" 2>/dev/null; then
98895	HAVE_PERL_EXTUTILS_MAKEMAKER=1
98896else
98897	HAVE_PERL_EXTUTILS_MAKEMAKER=0
98898fi
98899
98900
98901
98902
98903
98904for ac_header in zlib.h
98905do
98906as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
98907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
98908  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
98909$as_echo_n "checking for $ac_header... " >&6; }
98910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
98911  $as_echo_n "(cached) " >&6
98912fi
98913ac_res=`eval 'as_val=${'$as_ac_Header'}
98914		 $as_echo "$as_val"'`
98915	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
98916$as_echo "$ac_res" >&6; }
98917else
98918  # Is the header compilable?
98919{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
98920$as_echo_n "checking $ac_header usability... " >&6; }
98921cat >conftest.$ac_ext <<_ACEOF
98922/* confdefs.h.  */
98923_ACEOF
98924cat confdefs.h >>conftest.$ac_ext
98925cat >>conftest.$ac_ext <<_ACEOF
98926/* end confdefs.h.  */
98927$ac_includes_default
98928#include <$ac_header>
98929_ACEOF
98930rm -f conftest.$ac_objext
98931if { (ac_try="$ac_compile"
98932case "(($ac_try" in
98933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98934  *) ac_try_echo=$ac_try;;
98935esac
98936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98937$as_echo "$ac_try_echo") >&5
98938  (eval "$ac_compile") 2>conftest.er1
98939  ac_status=$?
98940  grep -v '^ *+' conftest.er1 >conftest.err
98941  rm -f conftest.er1
98942  cat conftest.err >&5
98943  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98944  (exit $ac_status); } && {
98945	 test -z "$ac_c_werror_flag" ||
98946	 test ! -s conftest.err
98947       } && test -s conftest.$ac_objext; then
98948  ac_header_compiler=yes
98949else
98950  $as_echo "$as_me: failed program was:" >&5
98951sed 's/^/| /' conftest.$ac_ext >&5
98952
98953	ac_header_compiler=no
98954fi
98955
98956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
98957{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
98958$as_echo "$ac_header_compiler" >&6; }
98959
98960# Is the header present?
98961{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
98962$as_echo_n "checking $ac_header presence... " >&6; }
98963cat >conftest.$ac_ext <<_ACEOF
98964/* confdefs.h.  */
98965_ACEOF
98966cat confdefs.h >>conftest.$ac_ext
98967cat >>conftest.$ac_ext <<_ACEOF
98968/* end confdefs.h.  */
98969#include <$ac_header>
98970_ACEOF
98971if { (ac_try="$ac_cpp conftest.$ac_ext"
98972case "(($ac_try" in
98973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
98974  *) ac_try_echo=$ac_try;;
98975esac
98976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
98977$as_echo "$ac_try_echo") >&5
98978  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
98979  ac_status=$?
98980  grep -v '^ *+' conftest.er1 >conftest.err
98981  rm -f conftest.er1
98982  cat conftest.err >&5
98983  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
98984  (exit $ac_status); } >/dev/null && {
98985	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
98986	 test ! -s conftest.err
98987       }; then
98988  ac_header_preproc=yes
98989else
98990  $as_echo "$as_me: failed program was:" >&5
98991sed 's/^/| /' conftest.$ac_ext >&5
98992
98993  ac_header_preproc=no
98994fi
98995
98996rm -f conftest.err conftest.$ac_ext
98997{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
98998$as_echo "$ac_header_preproc" >&6; }
98999
99000# So?  What about this header?
99001case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
99002  yes:no: )
99003    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
99004$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
99005    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
99006$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
99007    ac_header_preproc=yes
99008    ;;
99009  no:yes:* )
99010    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
99011$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
99012    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
99013$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
99014    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
99015$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
99016    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
99017$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
99018    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
99019$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
99020    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
99021$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
99022    ( cat <<\_ASBOX
99023## ---------------------------------------- ##
99024## Report this to samba-technical@samba.org ##
99025## ---------------------------------------- ##
99026_ASBOX
99027     ) | sed "s/^/$as_me: WARNING:     /" >&2
99028    ;;
99029esac
99030{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
99031$as_echo_n "checking for $ac_header... " >&6; }
99032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
99033  $as_echo_n "(cached) " >&6
99034else
99035  eval "$as_ac_Header=\$ac_header_preproc"
99036fi
99037ac_res=`eval 'as_val=${'$as_ac_Header'}
99038		 $as_echo "$as_val"'`
99039	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
99040$as_echo "$ac_res" >&6; }
99041
99042fi
99043as_val=`eval 'as_val=${'$as_ac_Header'}
99044		 $as_echo "$as_val"'`
99045   if test "x$as_val" = x""yes; then
99046  cat >>confdefs.h <<_ACEOF
99047#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
99048_ACEOF
99049
99050fi
99051
99052done
99053
99054
99055
99056
99057
99058ac_check_lib_ext_save_LIBS=$LIBS
99059LIBS="-lz $ZLIB_LIBS  $LIBS"
99060
99061
99062
99063
99064        { $as_echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
99065$as_echo_n "checking for zlibVersion in -lz... " >&6; }
99066if test "${ac_cv_lib_ext_z_zlibVersion+set}" = set; then
99067  $as_echo_n "(cached) " >&6
99068else
99069  cat >conftest.$ac_ext <<_ACEOF
99070/* confdefs.h.  */
99071_ACEOF
99072cat confdefs.h >>conftest.$ac_ext
99073cat >>conftest.$ac_ext <<_ACEOF
99074/* end confdefs.h.  */
99075
99076/* Override any GCC internal prototype to avoid an error.
99077   Use char because int might match the return type of a GCC
99078   builtin and then its argument prototype would still apply.  */
99079#ifdef __cplusplus
99080extern "C"
99081#endif
99082char zlibVersion ();
99083int
99084main ()
99085{
99086return zlibVersion ();
99087  ;
99088  return 0;
99089}
99090_ACEOF
99091rm -f conftest.$ac_objext conftest$ac_exeext
99092if { (ac_try="$ac_link"
99093case "(($ac_try" in
99094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99095  *) ac_try_echo=$ac_try;;
99096esac
99097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99098$as_echo "$ac_try_echo") >&5
99099  (eval "$ac_link") 2>conftest.er1
99100  ac_status=$?
99101  grep -v '^ *+' conftest.er1 >conftest.err
99102  rm -f conftest.er1
99103  cat conftest.err >&5
99104  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99105  (exit $ac_status); } && {
99106	 test -z "$ac_c_werror_flag" ||
99107	 test ! -s conftest.err
99108       } && test -s conftest$ac_exeext && {
99109	 test "$cross_compiling" = yes ||
99110	 $as_test_x conftest$ac_exeext
99111       }; then
99112  ac_cv_lib_ext_z_zlibVersion=yes;
99113		  ac_cv_lib_ext_z=yes
99114else
99115  $as_echo "$as_me: failed program was:" >&5
99116sed 's/^/| /' conftest.$ac_ext >&5
99117
99118	ac_cv_lib_ext_z_zlibVersion=no;
99119		  ac_cv_lib_ext_z=no
99120fi
99121
99122rm -rf conftest.dSYM
99123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99124      conftest$ac_exeext conftest.$ac_ext
99125
99126fi
99127{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_z_zlibVersion" >&5
99128$as_echo "$ac_cv_lib_ext_z_zlibVersion" >&6; }
99129    if test $ac_cv_lib_ext_z_zlibVersion = yes; then
99130  cat >>confdefs.h <<_ACEOF
99131#define HAVE_ZLIBVERSION 1
99132_ACEOF
99133
99134fi
99135
99136LIBS=$ac_check_lib_ext_save_LIBS
99137
99138if test $ac_cv_lib_ext_z = yes; then
99139  cat >>confdefs.h <<_ACEOF
99140#define HAVE_LIBZ 1
99141_ACEOF
99142
99143		case "$ZLIB_LIBS" in
99144		    *-lz*)
99145			;;
99146		    *)
99147			ZLIB_LIBS="-lz $ZLIB_LIBS"
99148			;;
99149		esac
99150
99151
99152fi
99153
99154
99155{ $as_echo "$as_me:$LINENO: checking for zlib >= 1.2.3" >&5
99156$as_echo_n "checking for zlib >= 1.2.3... " >&6; }
99157if test "${samba_cv_zlib_1_2_3+set}" = set; then
99158  $as_echo_n "(cached) " >&6
99159else
99160
99161	cat >conftest.$ac_ext <<_ACEOF
99162/* confdefs.h.  */
99163_ACEOF
99164cat confdefs.h >>conftest.$ac_ext
99165cat >>conftest.$ac_ext <<_ACEOF
99166/* end confdefs.h.  */
99167
99168		#include <zlib.h>
99169
99170int
99171main ()
99172{
99173
99174		#if (ZLIB_VERNUM >= 0x1230)
99175		#else
99176		#error "ZLIB_VERNUM < 0x1230"
99177		#endif
99178
99179  ;
99180  return 0;
99181}
99182_ACEOF
99183rm -f conftest.$ac_objext
99184if { (ac_try="$ac_compile"
99185case "(($ac_try" in
99186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99187  *) ac_try_echo=$ac_try;;
99188esac
99189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99190$as_echo "$ac_try_echo") >&5
99191  (eval "$ac_compile") 2>conftest.er1
99192  ac_status=$?
99193  grep -v '^ *+' conftest.er1 >conftest.err
99194  rm -f conftest.er1
99195  cat conftest.err >&5
99196  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99197  (exit $ac_status); } && {
99198	 test -z "$ac_c_werror_flag" ||
99199	 test ! -s conftest.err
99200       } && test -s conftest.$ac_objext; then
99201
99202		samba_cv_zlib_1_2_3=yes
99203
99204else
99205  $as_echo "$as_me: failed program was:" >&5
99206sed 's/^/| /' conftest.$ac_ext >&5
99207
99208
99209		samba_cv_zlib_1_2_3=no
99210
99211fi
99212
99213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
99214
99215fi
99216{ $as_echo "$as_me:$LINENO: result: $samba_cv_zlib_1_2_3" >&5
99217$as_echo "$samba_cv_zlib_1_2_3" >&6; }
99218
99219if test x"$ac_cv_header_zlib_h" = x"yes" -a \
99220	x"$ac_cv_lib_ext_z_zlibVersion" = x"yes" -a \
99221	x"$samba_cv_zlib_1_2_3" = x"yes"; then
99222
99223
99224MAKE_SETTINGS="$MAKE_SETTINGS
99225ZLIB_LIBS = ${ZLIB_LIBS}
99226ZLIB_CFLAGS =
99227ZLIB_CPPFLAGS =
99228ZLIB_LDFLAGS =
99229"
99230
99231
99232
99233else
99234
99235
99236SMB_INFO_EXT_LIBS="$SMB_INFO_EXT_LIBS
99237mkinclude lib/zlib.mk
99238"
99239
99240
99241fi
99242
99243
99244
99245ac_config_files="$ac_config_files ../source4/lib/registry/registry.pc"
99246
99247ac_config_files="$ac_config_files ../source4/librpc/dcerpc.pc"
99248
99249ac_config_files="$ac_config_files ../librpc/ndr.pc"
99250
99251ac_config_files="$ac_config_files ../lib/torture/torture.pc"
99252
99253ac_config_files="$ac_config_files ../source4/auth/gensec/gensec.pc"
99254
99255ac_config_files="$ac_config_files ../source4/param/samba-hostconfig.pc"
99256
99257ac_config_files="$ac_config_files ../source4/librpc/dcerpc_samr.pc"
99258
99259ac_config_files="$ac_config_files ../source4/librpc/dcerpc_atsvc.pc"
99260
99261
99262# Minimum and exact required versions for various libraries
99263# if we use the ones installed in the system.
99264
99265
99266
99267
99268
99269
99270
99271
99272	if test -z "$PKG_CONFIG"; then
99273		# Extract the first word of "pkg-config", so it can be a program name with args.
99274set dummy pkg-config; ac_word=$2
99275{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
99276$as_echo_n "checking for $ac_word... " >&6; }
99277if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
99278  $as_echo_n "(cached) " >&6
99279else
99280  case $PKG_CONFIG in
99281  [\\/]* | ?:[\\/]*)
99282  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
99283  ;;
99284  *)
99285  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99286for as_dir in $PATH
99287do
99288  IFS=$as_save_IFS
99289  test -z "$as_dir" && as_dir=.
99290  for ac_exec_ext in '' $ac_executable_extensions; do
99291  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
99292    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
99293    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
99294    break 2
99295  fi
99296done
99297done
99298IFS=$as_save_IFS
99299
99300  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
99301  ;;
99302esac
99303fi
99304PKG_CONFIG=$ac_cv_path_PKG_CONFIG
99305if test -n "$PKG_CONFIG"; then
99306  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
99307$as_echo "$PKG_CONFIG" >&6; }
99308else
99309  { $as_echo "$as_me:$LINENO: result: no" >&5
99310$as_echo "no" >&6; }
99311fi
99312
99313
99314	fi
99315
99316	if test "$PKG_CONFIG" = "no" ; then
99317		echo "*** The pkg-config script could not be found. Make sure it is"
99318		echo "*** in your path, or set the PKG_CONFIG environment variable"
99319		echo "*** to the full path to pkg-config."
99320		echo "*** Or see http://pkg-config.freedesktop.org/ to get pkg-config."
99321			ac_cv_LIBTALLOC_found=no
99322	else
99323		SAMBA_PKG_CONFIG_MIN_VERSION="0.9.0"
99324		if $PKG_CONFIG --atleast-pkgconfig-version $SAMBA_PKG_CONFIG_MIN_VERSION; then
99325			{ $as_echo "$as_me:$LINENO: checking for talloc >= 2.0.1" >&5
99326$as_echo_n "checking for talloc >= 2.0.1... " >&6; }
99327
99328			if $PKG_CONFIG --exists 'talloc >= 2.0.1' ; then
99329				{ $as_echo "$as_me:$LINENO: result: yes" >&5
99330$as_echo "yes" >&6; }
99331
99332				LIBTALLOC_CFLAGS="`$PKG_CONFIG --cflags 'talloc >= 2.0.1'`"
99333				OLD_CFLAGS="$CFLAGS"
99334				CFLAGS="$CFLAGS $LIBTALLOC_CFLAGS"
99335				{ $as_echo "$as_me:$LINENO: checking that the C compiler can use the LIBTALLOC_CFLAGS" >&5
99336$as_echo_n "checking that the C compiler can use the LIBTALLOC_CFLAGS... " >&6; }
99337				if test "$cross_compiling" = yes; then
99338  { $as_echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
99339$as_echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
99340else
99341  cat >conftest.$ac_ext <<_ACEOF
99342/* confdefs.h.  */
99343_ACEOF
99344cat confdefs.h >>conftest.$ac_ext
99345cat >>conftest.$ac_ext <<_ACEOF
99346/* end confdefs.h.  */
99347#include "${srcdir-.}/../tests/trivial.c"
99348_ACEOF
99349rm -f conftest$ac_exeext
99350if { (ac_try="$ac_link"
99351case "(($ac_try" in
99352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99353  *) ac_try_echo=$ac_try;;
99354esac
99355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99356$as_echo "$ac_try_echo") >&5
99357  (eval "$ac_link") 2>&5
99358  ac_status=$?
99359  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99360  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
99361  { (case "(($ac_try" in
99362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99363  *) ac_try_echo=$ac_try;;
99364esac
99365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99366$as_echo "$ac_try_echo") >&5
99367  (eval "$ac_try") 2>&5
99368  ac_status=$?
99369  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99370  (exit $ac_status); }; }; then
99371
99372	MAKE_SETTINGS="$MAKE_SETTINGS
99373LIBTALLOC_ENABLE = YES
99374"
99375SMB_INFO_ENABLES="$SMB_INFO_ENABLES
99376\$enabled{\"LIBTALLOC\"} = \"YES\";"
99377
99378					{ $as_echo "$as_me:$LINENO: result: yes" >&5
99379$as_echo "yes" >&6; }
99380else
99381  $as_echo "$as_me: program exited with status $ac_status" >&5
99382$as_echo "$as_me: failed program was:" >&5
99383sed 's/^/| /' conftest.$ac_ext >&5
99384
99385( exit $ac_status )
99386{ $as_echo "$as_me:$LINENO: result: no" >&5
99387$as_echo "no" >&6; }
99388fi
99389rm -rf conftest.dSYM
99390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
99391fi
99392
99393
99394				CFLAGS="$OLD_CFLAGS"
99395
99396				ac_cv_LIBTALLOC_libs_only_other="`$PKG_CONFIG --libs-only-other 'talloc >= 2.0.1'` `$PKG_CONFIG --libs-only-L 'talloc >= 2.0.1'`"
99397
99398  ac_new_flags=""
99399  l=""
99400  for i in $ac_cv_LIBTALLOC_libs_only_other; do
99401    case $l$i in
99402    -L/usr/lib) ;;
99403    -L/usr/lib/) ;;
99404    -L/usr/lib64) ;;
99405    -L/usr/lib64/) ;;
99406    -Wl,-rpath,/usr/lib) l="";;
99407    -Wl,-rpath,/usr/lib/) l="";;
99408    -Wl,-rpath,/usr/lib64) l="";;
99409    -Wl,-rpath,/usr/lib64/) l="";;
99410    -Wl,-rpath) l=$i;;
99411    -Wl,-rpath-Wl,/usr/lib) l="";;
99412    -Wl,-rpath-Wl,/usr/lib/) l="";;
99413    -Wl,-rpath-Wl,/usr/lib64) l="";;
99414    -Wl,-rpath-Wl,/usr/lib64/) l="";;
99415    *)
99416    	s=" "
99417        if test x"$ac_new_flags" = x""; then
99418            s="";
99419	fi
99420        if test x"$l" = x""; then
99421            ac_new_flags="$ac_new_flags$s$i";
99422        else
99423            ac_new_flags="$ac_new_flags$s$l $i";
99424        fi
99425        l=""
99426        ;;
99427    esac
99428  done
99429  ac_cv_LIBTALLOC_libs_only_other=$ac_new_flags
99430
99431				ac_cv_LIBTALLOC_includedir_only="`$PKG_CONFIG --cflags-only-I 'talloc >= 2.0.1'`"
99432
99433  ac_new_flags=""
99434  for i in $ac_cv_LIBTALLOC_includedir_only; do
99435    case $i in
99436    -I/usr/include|-I/usr/include/) ;;
99437    *) ac_new_flags="$ac_new_flags $i" ;;
99438    esac
99439  done
99440  ac_cv_LIBTALLOC_includedir_only=$ac_new_flags
99441
99442
99443MAKE_SETTINGS="$MAKE_SETTINGS
99444LIBTALLOC_LIBS = `$PKG_CONFIG --libs-only-l 'talloc >= 2.0.1'`
99445LIBTALLOC_CFLAGS = `$PKG_CONFIG --cflags-only-other 'talloc >= 2.0.1'`
99446LIBTALLOC_CPPFLAGS = $ac_cv_LIBTALLOC_includedir_only
99447LIBTALLOC_LDFLAGS = $ac_cv_LIBTALLOC_libs_only_other
99448"
99449
99450
99451				ac_cv_LIBTALLOC_found=yes
99452
99453			else
99454				{ $as_echo "$as_me:$LINENO: result: no" >&5
99455$as_echo "no" >&6; }
99456				$PKG_CONFIG --errors-to-stdout --print-errors 'talloc >= 2.0.1'
99457				ac_cv_LIBTALLOC_found=no
99458			fi
99459		else
99460			echo "*** Your version of pkg-config is too old. You need version $SAMBA_PKG_CONFIG_MIN_VERSION or newer."
99461			echo "*** See http://pkg-config.freedesktop.org/"
99462			ac_cv_LIBTALLOC_found=no
99463		fi
99464	fi
99465	if test x$ac_cv_LIBTALLOC_found = x"yes"; then
99466		echo -n ""
99467	else
99468
99469
99470SMB_INFO_EXT_LIBS="$SMB_INFO_EXT_LIBS
99471mkinclude ../lib/talloc/config.mk
99472"
99473
99474
99475
99476	fi
99477
99478# Tallocdir isn't always set by the Samba3 c
99479tallocdir=../lib/talloc
99480
99481CFLAGS="$CFLAGS -I../lib/talloc"
99482
99483
99484
99485	if test -z "$PKG_CONFIG"; then
99486		# Extract the first word of "pkg-config", so it can be a program name with args.
99487set dummy pkg-config; ac_word=$2
99488{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
99489$as_echo_n "checking for $ac_word... " >&6; }
99490if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
99491  $as_echo_n "(cached) " >&6
99492else
99493  case $PKG_CONFIG in
99494  [\\/]* | ?:[\\/]*)
99495  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
99496  ;;
99497  *)
99498  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99499for as_dir in $PATH
99500do
99501  IFS=$as_save_IFS
99502  test -z "$as_dir" && as_dir=.
99503  for ac_exec_ext in '' $ac_executable_extensions; do
99504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
99505    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
99506    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
99507    break 2
99508  fi
99509done
99510done
99511IFS=$as_save_IFS
99512
99513  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
99514  ;;
99515esac
99516fi
99517PKG_CONFIG=$ac_cv_path_PKG_CONFIG
99518if test -n "$PKG_CONFIG"; then
99519  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
99520$as_echo "$PKG_CONFIG" >&6; }
99521else
99522  { $as_echo "$as_me:$LINENO: result: no" >&5
99523$as_echo "no" >&6; }
99524fi
99525
99526
99527	fi
99528
99529	if test "$PKG_CONFIG" = "no" ; then
99530		echo "*** The pkg-config script could not be found. Make sure it is"
99531		echo "*** in your path, or set the PKG_CONFIG environment variable"
99532		echo "*** to the full path to pkg-config."
99533		echo "*** Or see http://pkg-config.freedesktop.org/ to get pkg-config."
99534			ac_cv_LIBTDB_found=no
99535	else
99536		SAMBA_PKG_CONFIG_MIN_VERSION="0.9.0"
99537		if $PKG_CONFIG --atleast-pkgconfig-version $SAMBA_PKG_CONFIG_MIN_VERSION; then
99538			{ $as_echo "$as_me:$LINENO: checking for tdb >= 1.2.1" >&5
99539$as_echo_n "checking for tdb >= 1.2.1... " >&6; }
99540
99541			if $PKG_CONFIG --exists 'tdb >= 1.2.1' ; then
99542				{ $as_echo "$as_me:$LINENO: result: yes" >&5
99543$as_echo "yes" >&6; }
99544
99545				LIBTDB_CFLAGS="`$PKG_CONFIG --cflags 'tdb >= 1.2.1'`"
99546				OLD_CFLAGS="$CFLAGS"
99547				CFLAGS="$CFLAGS $LIBTDB_CFLAGS"
99548				{ $as_echo "$as_me:$LINENO: checking that the C compiler can use the LIBTDB_CFLAGS" >&5
99549$as_echo_n "checking that the C compiler can use the LIBTDB_CFLAGS... " >&6; }
99550				if test "$cross_compiling" = yes; then
99551  { $as_echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
99552$as_echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
99553else
99554  cat >conftest.$ac_ext <<_ACEOF
99555/* confdefs.h.  */
99556_ACEOF
99557cat confdefs.h >>conftest.$ac_ext
99558cat >>conftest.$ac_ext <<_ACEOF
99559/* end confdefs.h.  */
99560#include "${srcdir-.}/../tests/trivial.c"
99561_ACEOF
99562rm -f conftest$ac_exeext
99563if { (ac_try="$ac_link"
99564case "(($ac_try" in
99565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99566  *) ac_try_echo=$ac_try;;
99567esac
99568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99569$as_echo "$ac_try_echo") >&5
99570  (eval "$ac_link") 2>&5
99571  ac_status=$?
99572  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99573  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
99574  { (case "(($ac_try" in
99575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99576  *) ac_try_echo=$ac_try;;
99577esac
99578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99579$as_echo "$ac_try_echo") >&5
99580  (eval "$ac_try") 2>&5
99581  ac_status=$?
99582  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99583  (exit $ac_status); }; }; then
99584
99585	MAKE_SETTINGS="$MAKE_SETTINGS
99586LIBTDB_ENABLE = YES
99587"
99588SMB_INFO_ENABLES="$SMB_INFO_ENABLES
99589\$enabled{\"LIBTDB\"} = \"YES\";"
99590
99591					{ $as_echo "$as_me:$LINENO: result: yes" >&5
99592$as_echo "yes" >&6; }
99593else
99594  $as_echo "$as_me: program exited with status $ac_status" >&5
99595$as_echo "$as_me: failed program was:" >&5
99596sed 's/^/| /' conftest.$ac_ext >&5
99597
99598( exit $ac_status )
99599{ $as_echo "$as_me:$LINENO: result: no" >&5
99600$as_echo "no" >&6; }
99601fi
99602rm -rf conftest.dSYM
99603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
99604fi
99605
99606
99607				CFLAGS="$OLD_CFLAGS"
99608
99609				ac_cv_LIBTDB_libs_only_other="`$PKG_CONFIG --libs-only-other 'tdb >= 1.2.1'` `$PKG_CONFIG --libs-only-L 'tdb >= 1.2.1'`"
99610
99611  ac_new_flags=""
99612  l=""
99613  for i in $ac_cv_LIBTDB_libs_only_other; do
99614    case $l$i in
99615    -L/usr/lib) ;;
99616    -L/usr/lib/) ;;
99617    -L/usr/lib64) ;;
99618    -L/usr/lib64/) ;;
99619    -Wl,-rpath,/usr/lib) l="";;
99620    -Wl,-rpath,/usr/lib/) l="";;
99621    -Wl,-rpath,/usr/lib64) l="";;
99622    -Wl,-rpath,/usr/lib64/) l="";;
99623    -Wl,-rpath) l=$i;;
99624    -Wl,-rpath-Wl,/usr/lib) l="";;
99625    -Wl,-rpath-Wl,/usr/lib/) l="";;
99626    -Wl,-rpath-Wl,/usr/lib64) l="";;
99627    -Wl,-rpath-Wl,/usr/lib64/) l="";;
99628    *)
99629    	s=" "
99630        if test x"$ac_new_flags" = x""; then
99631            s="";
99632	fi
99633        if test x"$l" = x""; then
99634            ac_new_flags="$ac_new_flags$s$i";
99635        else
99636            ac_new_flags="$ac_new_flags$s$l $i";
99637        fi
99638        l=""
99639        ;;
99640    esac
99641  done
99642  ac_cv_LIBTDB_libs_only_other=$ac_new_flags
99643
99644				ac_cv_LIBTDB_includedir_only="`$PKG_CONFIG --cflags-only-I 'tdb >= 1.2.1'`"
99645
99646  ac_new_flags=""
99647  for i in $ac_cv_LIBTDB_includedir_only; do
99648    case $i in
99649    -I/usr/include|-I/usr/include/) ;;
99650    *) ac_new_flags="$ac_new_flags $i" ;;
99651    esac
99652  done
99653  ac_cv_LIBTDB_includedir_only=$ac_new_flags
99654
99655
99656MAKE_SETTINGS="$MAKE_SETTINGS
99657LIBTDB_LIBS = `$PKG_CONFIG --libs-only-l 'tdb >= 1.2.1'`
99658LIBTDB_CFLAGS = `$PKG_CONFIG --cflags-only-other 'tdb >= 1.2.1'`
99659LIBTDB_CPPFLAGS = $ac_cv_LIBTDB_includedir_only
99660LIBTDB_LDFLAGS = $ac_cv_LIBTDB_libs_only_other
99661"
99662
99663
99664				ac_cv_LIBTDB_found=yes
99665
99666			else
99667				{ $as_echo "$as_me:$LINENO: result: no" >&5
99668$as_echo "no" >&6; }
99669				$PKG_CONFIG --errors-to-stdout --print-errors 'tdb >= 1.2.1'
99670				ac_cv_LIBTDB_found=no
99671			fi
99672		else
99673			echo "*** Your version of pkg-config is too old. You need version $SAMBA_PKG_CONFIG_MIN_VERSION or newer."
99674			echo "*** See http://pkg-config.freedesktop.org/"
99675			ac_cv_LIBTDB_found=no
99676		fi
99677	fi
99678	if test x$ac_cv_LIBTDB_found = x"yes"; then
99679		echo -n ""
99680	else
99681
99682		tdbdir=""
99683tdbpaths=". lib/tdb tdb ../tdb ../lib/tdb"
99684for d in $tdbpaths; do
99685	if test -f "$srcdir/$d/common/tdb.c"; then
99686		tdbdir="$d"
99687
99688		break;
99689	fi
99690done
99691if test x"$tdbdir" = "x"; then
99692   { { $as_echo "$as_me:$LINENO: error: cannot find tdb source in $tdbpaths" >&5
99693$as_echo "$as_me: error: cannot find tdb source in $tdbpaths" >&2;}
99694   { (exit 1); exit 1; }; }
99695fi
99696TDB_OBJ="common/tdb.o common/dump.o common/transaction.o common/error.o common/traverse.o"
99697TDB_OBJ="$TDB_OBJ common/freelist.o common/freelistcheck.o common/io.o common/lock.o common/open.o common/check.o"
99698
99699
99700
99701TDB_LIBS=""
99702
99703
99704TDB_CFLAGS="-I$tdbdir/include"
99705
99706
99707
99708
99709
99710
99711
99712for ac_func in mmap pread pwrite getpagesize utime
99713do
99714as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
99715{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
99716$as_echo_n "checking for $ac_func... " >&6; }
99717if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
99718  $as_echo_n "(cached) " >&6
99719else
99720  cat >conftest.$ac_ext <<_ACEOF
99721/* confdefs.h.  */
99722_ACEOF
99723cat confdefs.h >>conftest.$ac_ext
99724cat >>conftest.$ac_ext <<_ACEOF
99725/* end confdefs.h.  */
99726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
99727   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
99728#define $ac_func innocuous_$ac_func
99729
99730/* System header to define __stub macros and hopefully few prototypes,
99731    which can conflict with char $ac_func (); below.
99732    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
99733    <limits.h> exists even on freestanding compilers.  */
99734
99735#ifdef __STDC__
99736# include <limits.h>
99737#else
99738# include <assert.h>
99739#endif
99740
99741#undef $ac_func
99742
99743/* Override any GCC internal prototype to avoid an error.
99744   Use char because int might match the return type of a GCC
99745   builtin and then its argument prototype would still apply.  */
99746#ifdef __cplusplus
99747extern "C"
99748#endif
99749char $ac_func ();
99750/* The GNU C library defines this for functions which it implements
99751    to always fail with ENOSYS.  Some functions are actually named
99752    something starting with __ and the normal name is an alias.  */
99753#if defined __stub_$ac_func || defined __stub___$ac_func
99754choke me
99755#endif
99756
99757int
99758main ()
99759{
99760return $ac_func ();
99761  ;
99762  return 0;
99763}
99764_ACEOF
99765rm -f conftest.$ac_objext conftest$ac_exeext
99766if { (ac_try="$ac_link"
99767case "(($ac_try" in
99768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99769  *) ac_try_echo=$ac_try;;
99770esac
99771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99772$as_echo "$ac_try_echo") >&5
99773  (eval "$ac_link") 2>conftest.er1
99774  ac_status=$?
99775  grep -v '^ *+' conftest.er1 >conftest.err
99776  rm -f conftest.er1
99777  cat conftest.err >&5
99778  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99779  (exit $ac_status); } && {
99780	 test -z "$ac_c_werror_flag" ||
99781	 test ! -s conftest.err
99782       } && test -s conftest$ac_exeext && {
99783	 test "$cross_compiling" = yes ||
99784	 $as_test_x conftest$ac_exeext
99785       }; then
99786  eval "$as_ac_var=yes"
99787else
99788  $as_echo "$as_me: failed program was:" >&5
99789sed 's/^/| /' conftest.$ac_ext >&5
99790
99791	eval "$as_ac_var=no"
99792fi
99793
99794rm -rf conftest.dSYM
99795rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
99796      conftest$ac_exeext conftest.$ac_ext
99797fi
99798ac_res=`eval 'as_val=${'$as_ac_var'}
99799		 $as_echo "$as_val"'`
99800	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
99801$as_echo "$ac_res" >&6; }
99802as_val=`eval 'as_val=${'$as_ac_var'}
99803		 $as_echo "$as_val"'`
99804   if test "x$as_val" = x""yes; then
99805  cat >>confdefs.h <<_ACEOF
99806#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
99807_ACEOF
99808
99809fi
99810done
99811
99812
99813
99814
99815for ac_header in getopt.h sys/select.h sys/time.h
99816do
99817as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
99818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
99819  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
99820$as_echo_n "checking for $ac_header... " >&6; }
99821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
99822  $as_echo_n "(cached) " >&6
99823fi
99824ac_res=`eval 'as_val=${'$as_ac_Header'}
99825		 $as_echo "$as_val"'`
99826	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
99827$as_echo "$ac_res" >&6; }
99828else
99829  # Is the header compilable?
99830{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
99831$as_echo_n "checking $ac_header usability... " >&6; }
99832cat >conftest.$ac_ext <<_ACEOF
99833/* confdefs.h.  */
99834_ACEOF
99835cat confdefs.h >>conftest.$ac_ext
99836cat >>conftest.$ac_ext <<_ACEOF
99837/* end confdefs.h.  */
99838$ac_includes_default
99839#include <$ac_header>
99840_ACEOF
99841rm -f conftest.$ac_objext
99842if { (ac_try="$ac_compile"
99843case "(($ac_try" in
99844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99845  *) ac_try_echo=$ac_try;;
99846esac
99847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99848$as_echo "$ac_try_echo") >&5
99849  (eval "$ac_compile") 2>conftest.er1
99850  ac_status=$?
99851  grep -v '^ *+' conftest.er1 >conftest.err
99852  rm -f conftest.er1
99853  cat conftest.err >&5
99854  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99855  (exit $ac_status); } && {
99856	 test -z "$ac_c_werror_flag" ||
99857	 test ! -s conftest.err
99858       } && test -s conftest.$ac_objext; then
99859  ac_header_compiler=yes
99860else
99861  $as_echo "$as_me: failed program was:" >&5
99862sed 's/^/| /' conftest.$ac_ext >&5
99863
99864	ac_header_compiler=no
99865fi
99866
99867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
99868{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
99869$as_echo "$ac_header_compiler" >&6; }
99870
99871# Is the header present?
99872{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
99873$as_echo_n "checking $ac_header presence... " >&6; }
99874cat >conftest.$ac_ext <<_ACEOF
99875/* confdefs.h.  */
99876_ACEOF
99877cat confdefs.h >>conftest.$ac_ext
99878cat >>conftest.$ac_ext <<_ACEOF
99879/* end confdefs.h.  */
99880#include <$ac_header>
99881_ACEOF
99882if { (ac_try="$ac_cpp conftest.$ac_ext"
99883case "(($ac_try" in
99884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99885  *) ac_try_echo=$ac_try;;
99886esac
99887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99888$as_echo "$ac_try_echo") >&5
99889  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
99890  ac_status=$?
99891  grep -v '^ *+' conftest.er1 >conftest.err
99892  rm -f conftest.er1
99893  cat conftest.err >&5
99894  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
99895  (exit $ac_status); } >/dev/null && {
99896	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
99897	 test ! -s conftest.err
99898       }; then
99899  ac_header_preproc=yes
99900else
99901  $as_echo "$as_me: failed program was:" >&5
99902sed 's/^/| /' conftest.$ac_ext >&5
99903
99904  ac_header_preproc=no
99905fi
99906
99907rm -f conftest.err conftest.$ac_ext
99908{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
99909$as_echo "$ac_header_preproc" >&6; }
99910
99911# So?  What about this header?
99912case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
99913  yes:no: )
99914    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
99915$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
99916    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
99917$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
99918    ac_header_preproc=yes
99919    ;;
99920  no:yes:* )
99921    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
99922$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
99923    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
99924$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
99925    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
99926$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
99927    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
99928$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
99929    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
99930$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
99931    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
99932$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
99933    ( cat <<\_ASBOX
99934## ---------------------------------------- ##
99935## Report this to samba-technical@samba.org ##
99936## ---------------------------------------- ##
99937_ASBOX
99938     ) | sed "s/^/$as_me: WARNING:     /" >&2
99939    ;;
99940esac
99941{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
99942$as_echo_n "checking for $ac_header... " >&6; }
99943if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
99944  $as_echo_n "(cached) " >&6
99945else
99946  eval "$as_ac_Header=\$ac_header_preproc"
99947fi
99948ac_res=`eval 'as_val=${'$as_ac_Header'}
99949		 $as_echo "$as_val"'`
99950	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
99951$as_echo "$ac_res" >&6; }
99952
99953fi
99954as_val=`eval 'as_val=${'$as_ac_Header'}
99955		 $as_echo "$as_val"'`
99956   if test "x$as_val" = x""yes; then
99957  cat >>confdefs.h <<_ACEOF
99958#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
99959_ACEOF
99960
99961fi
99962
99963done
99964
99965
99966
99967 { $as_echo "$as_me:$LINENO: checking for pread declaration" >&5
99968$as_echo_n "checking for pread declaration... " >&6; }
99969if test "${ac_cv_have_pread_decl+set}" = set; then
99970  $as_echo_n "(cached) " >&6
99971else
99972
99973    cat >conftest.$ac_ext <<_ACEOF
99974/* confdefs.h.  */
99975_ACEOF
99976cat confdefs.h >>conftest.$ac_ext
99977cat >>conftest.$ac_ext <<_ACEOF
99978/* end confdefs.h.  */
99979#include <unistd.h>
99980int
99981main ()
99982{
99983int i = (int)pread
99984  ;
99985  return 0;
99986}
99987_ACEOF
99988rm -f conftest.$ac_objext
99989if { (ac_try="$ac_compile"
99990case "(($ac_try" in
99991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
99992  *) ac_try_echo=$ac_try;;
99993esac
99994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
99995$as_echo "$ac_try_echo") >&5
99996  (eval "$ac_compile") 2>conftest.er1
99997  ac_status=$?
99998  grep -v '^ *+' conftest.er1 >conftest.err
99999  rm -f conftest.er1
100000  cat conftest.err >&5
100001  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
100002  (exit $ac_status); } && {
100003	 test -z "$ac_c_werror_flag" ||
100004	 test ! -s conftest.err
100005       } && test -s conftest.$ac_objext; then
100006  ac_cv_have_pread_decl=yes
100007else
100008  $as_echo "$as_me: failed program was:" >&5
100009sed 's/^/| /' conftest.$ac_ext >&5
100010
100011	ac_cv_have_pread_decl=no
100012fi
100013
100014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
100015fi
100016{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_pread_decl" >&5
100017$as_echo "$ac_cv_have_pread_decl" >&6; }
100018 if test x"$ac_cv_have_pread_decl" = x"yes"; then
100019
100020cat >>confdefs.h <<\_ACEOF
100021#define HAVE_PREAD_DECL 1
100022_ACEOF
100023
100024 fi
100025
100026
100027 { $as_echo "$as_me:$LINENO: checking for pwrite declaration" >&5
100028$as_echo_n "checking for pwrite declaration... " >&6; }
100029if test "${ac_cv_have_pwrite_decl+set}" = set; then
100030  $as_echo_n "(cached) " >&6
100031else
100032
100033    cat >conftest.$ac_ext <<_ACEOF
100034/* confdefs.h.  */
100035_ACEOF
100036cat confdefs.h >>conftest.$ac_ext
100037cat >>conftest.$ac_ext <<_ACEOF
100038/* end confdefs.h.  */
100039#include <unistd.h>
100040int
100041main ()
100042{
100043int i = (int)pwrite
100044  ;
100045  return 0;
100046}
100047_ACEOF
100048rm -f conftest.$ac_objext
100049if { (ac_try="$ac_compile"
100050case "(($ac_try" in
100051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
100052  *) ac_try_echo=$ac_try;;
100053esac
100054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
100055$as_echo "$ac_try_echo") >&5
100056  (eval "$ac_compile") 2>conftest.er1
100057  ac_status=$?
100058  grep -v '^ *+' conftest.er1 >conftest.err
100059  rm -f conftest.er1
100060  cat conftest.err >&5
100061  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
100062  (exit $ac_status); } && {
100063	 test -z "$ac_c_werror_flag" ||
100064	 test ! -s conftest.err
100065       } && test -s conftest.$ac_objext; then
100066  ac_cv_have_pwrite_decl=yes
100067else
100068  $as_echo "$as_me: failed program was:" >&5
100069sed 's/^/| /' conftest.$ac_ext >&5
100070
100071	ac_cv_have_pwrite_decl=no
100072fi
100073
100074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
100075fi
100076{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_pwrite_decl" >&5
100077$as_echo "$ac_cv_have_pwrite_decl" >&6; }
100078 if test x"$ac_cv_have_pwrite_decl" = x"yes"; then
100079
100080cat >>confdefs.h <<\_ACEOF
100081#define HAVE_PWRITE_DECL 1
100082_ACEOF
100083
100084 fi
100085
100086
100087if test x"$VERSIONSCRIPT" != "x"; then
100088    EXPORTSFILE=tdb.exports
100089
100090fi
100091
100092
100093SMB_INFO_EXT_LIBS="$SMB_INFO_EXT_LIBS
100094mkinclude ../lib/tdb/config.mk
100095"
100096
100097
100098
100099	fi
100100
100101
100102
100103SMB_INFO_EXT_LIBS="$SMB_INFO_EXT_LIBS
100104mkinclude ../lib/tdb/python.mk
100105"
100106
100107
100108
100109
100110	if test -z "$PKG_CONFIG"; then
100111		# Extract the first word of "pkg-config", so it can be a program name with args.
100112set dummy pkg-config; ac_word=$2
100113{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
100114$as_echo_n "checking for $ac_word... " >&6; }
100115if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
100116  $as_echo_n "(cached) " >&6
100117else
100118  case $PKG_CONFIG in
100119  [\\/]* | ?:[\\/]*)
100120  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
100121  ;;
100122  *)
100123  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100124for as_dir in $PATH
100125do
100126  IFS=$as_save_IFS
100127  test -z "$as_dir" && as_dir=.
100128  for ac_exec_ext in '' $ac_executable_extensions; do
100129  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
100130    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
100131    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
100132    break 2
100133  fi
100134done
100135done
100136IFS=$as_save_IFS
100137
100138  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
100139  ;;
100140esac
100141fi
100142PKG_CONFIG=$ac_cv_path_PKG_CONFIG
100143if test -n "$PKG_CONFIG"; then
100144  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
100145$as_echo "$PKG_CONFIG" >&6; }
100146else
100147  { $as_echo "$as_me:$LINENO: result: no" >&5
100148$as_echo "no" >&6; }
100149fi
100150
100151
100152	fi
100153
100154	if test "$PKG_CONFIG" = "no" ; then
100155		echo "*** The pkg-config script could not be found. Make sure it is"
100156		echo "*** in your path, or set the PKG_CONFIG environment variable"
100157		echo "*** to the full path to pkg-config."
100158		echo "*** Or see http://pkg-config.freedesktop.org/ to get pkg-config."
100159			ac_cv_LIBTEVENT_found=no
100160	else
100161		SAMBA_PKG_CONFIG_MIN_VERSION="0.9.0"
100162		if $PKG_CONFIG --atleast-pkgconfig-version $SAMBA_PKG_CONFIG_MIN_VERSION; then
100163			{ $as_echo "$as_me:$LINENO: checking for tevent = 0.9.8" >&5
100164$as_echo_n "checking for tevent = 0.9.8... " >&6; }
100165
100166			if $PKG_CONFIG --exists 'tevent = 0.9.8' ; then
100167				{ $as_echo "$as_me:$LINENO: result: yes" >&5
100168$as_echo "yes" >&6; }
100169
100170				LIBTEVENT_CFLAGS="`$PKG_CONFIG --cflags 'tevent = 0.9.8'`"
100171				OLD_CFLAGS="$CFLAGS"
100172				CFLAGS="$CFLAGS $LIBTEVENT_CFLAGS"
100173				{ $as_echo "$as_me:$LINENO: checking that the C compiler can use the LIBTEVENT_CFLAGS" >&5
100174$as_echo_n "checking that the C compiler can use the LIBTEVENT_CFLAGS... " >&6; }
100175				if test "$cross_compiling" = yes; then
100176  { $as_echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
100177$as_echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
100178else
100179  cat >conftest.$ac_ext <<_ACEOF
100180/* confdefs.h.  */
100181_ACEOF
100182cat confdefs.h >>conftest.$ac_ext
100183cat >>conftest.$ac_ext <<_ACEOF
100184/* end confdefs.h.  */
100185#include "${srcdir-.}/../tests/trivial.c"
100186_ACEOF
100187rm -f conftest$ac_exeext
100188if { (ac_try="$ac_link"
100189case "(($ac_try" in
100190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
100191  *) ac_try_echo=$ac_try;;
100192esac
100193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
100194$as_echo "$ac_try_echo") >&5
100195  (eval "$ac_link") 2>&5
100196  ac_status=$?
100197  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
100198  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
100199  { (case "(($ac_try" in
100200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
100201  *) ac_try_echo=$ac_try;;
100202esac
100203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
100204$as_echo "$ac_try_echo") >&5
100205  (eval "$ac_try") 2>&5
100206  ac_status=$?
100207  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
100208  (exit $ac_status); }; }; then
100209
100210	MAKE_SETTINGS="$MAKE_SETTINGS
100211LIBTEVENT_ENABLE = YES
100212"
100213SMB_INFO_ENABLES="$SMB_INFO_ENABLES
100214\$enabled{\"LIBTEVENT\"} = \"YES\";"
100215
100216					{ $as_echo "$as_me:$LINENO: result: yes" >&5
100217$as_echo "yes" >&6; }
100218else
100219  $as_echo "$as_me: program exited with status $ac_status" >&5
100220$as_echo "$as_me: failed program was:" >&5
100221sed 's/^/| /' conftest.$ac_ext >&5
100222
100223( exit $ac_status )
100224{ $as_echo "$as_me:$LINENO: result: no" >&5
100225$as_echo "no" >&6; }
100226fi
100227rm -rf conftest.dSYM
100228rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
100229fi
100230
100231
100232				CFLAGS="$OLD_CFLAGS"
100233
100234				ac_cv_LIBTEVENT_libs_only_other="`$PKG_CONFIG --libs-only-other 'tevent = 0.9.8'` `$PKG_CONFIG --libs-only-L 'tevent = 0.9.8'`"
100235
100236  ac_new_flags=""
100237  l=""
100238  for i in $ac_cv_LIBTEVENT_libs_only_other; do
100239    case $l$i in
100240    -L/usr/lib) ;;
100241    -L/usr/lib/) ;;
100242    -L/usr/lib64) ;;
100243    -L/usr/lib64/) ;;
100244    -Wl,-rpath,/usr/lib) l="";;
100245    -Wl,-rpath,/usr/lib/) l="";;
100246    -Wl,-rpath,/usr/lib64) l="";;
100247    -Wl,-rpath,/usr/lib64/) l="";;
100248    -Wl,-rpath) l=$i;;
100249    -Wl,-rpath-Wl,/usr/lib) l="";;
100250    -Wl,-rpath-Wl,/usr/lib/) l="";;
100251    -Wl,-rpath-Wl,/usr/lib64) l="";;
100252    -Wl,-rpath-Wl,/usr/lib64/) l="";;
100253    *)
100254    	s=" "
100255        if test x"$ac_new_flags" = x""; then
100256            s="";
100257	fi
100258        if test x"$l" = x""; then
100259            ac_new_flags="$ac_new_flags$s$i";
100260        else
100261            ac_new_flags="$ac_new_flags$s$l $i";
100262        fi
100263        l=""
100264        ;;
100265    esac
100266  done
100267  ac_cv_LIBTEVENT_libs_only_other=$ac_new_flags
100268
100269				ac_cv_LIBTEVENT_includedir_only="`$PKG_CONFIG --cflags-only-I 'tevent = 0.9.8'`"
100270
100271  ac_new_flags=""
100272  for i in $ac_cv_LIBTEVENT_includedir_only; do
100273    case $i in
100274    -I/usr/include|-I/usr/include/) ;;
100275    *) ac_new_flags="$ac_new_flags $i" ;;
100276    esac
100277  done
100278  ac_cv_LIBTEVENT_includedir_only=$ac_new_flags
100279
100280
100281MAKE_SETTINGS="$MAKE_SETTINGS
100282LIBTEVENT_LIBS = `$PKG_CONFIG --libs-only-l 'tevent = 0.9.8'`
100283LIBTEVENT_CFLAGS = `$PKG_CONFIG --cflags-only-other 'tevent = 0.9.8'`
100284LIBTEVENT_CPPFLAGS = $ac_cv_LIBTEVENT_includedir_only
100285LIBTEVENT_LDFLAGS = $ac_cv_LIBTEVENT_libs_only_other
100286"
100287
100288
100289				ac_cv_LIBTEVENT_found=yes
100290
100291			else
100292				{ $as_echo "$as_me:$LINENO: result: no" >&5
100293$as_echo "no" >&6; }
100294				$PKG_CONFIG --errors-to-stdout --print-errors 'tevent = 0.9.8'
100295				ac_cv_LIBTEVENT_found=no
100296			fi
100297		else
100298			echo "*** Your version of pkg-config is too old. You need version $SAMBA_PKG_CONFIG_MIN_VERSION or newer."
100299			echo "*** See http://pkg-config.freedesktop.org/"
100300			ac_cv_LIBTEVENT_found=no
100301		fi
100302	fi
100303	if test x$ac_cv_LIBTEVENT_found = x"yes"; then
100304		echo -n ""
100305	else
100306
100307teventdir="\$(libteventsrcdir)"
100308
100309
100310
100311if test x"$teventdir" = "x"; then
100312	teventdir=""
100313	teventpaths="$srcdir $srcdir/../lib/tevent $srcdir/tevent $srcdir/../tevent"
100314	for d in $teventpaths; do
100315		if test -f "$d/tevent.c"; then
100316			teventdir="$d"
100317			break;
100318		fi
100319	done
100320	if test x"$teventdir" = "x"; then
100321	   { { $as_echo "$as_me:$LINENO: error: cannot find libtevent source in $teventpaths" >&5
100322$as_echo "$as_me: error: cannot find libtevent source in $teventpaths" >&2;}
100323   { (exit 1); exit 1; }; }
100324	fi
100325fi
100326
100327TEVENT_OBJ=""
100328TEVENT_CFLAGS=""
100329TEVENT_LIBS=""
100330
100331
100332
100333
100334TEVENT_CFLAGS="-I$teventdir"
100335
100336TEVENT_OBJ="tevent.o tevent_debug.o tevent_util.o"
100337TEVENT_OBJ="$TEVENT_OBJ tevent_fd.o tevent_timed.o tevent_immediate.o tevent_signal.o"
100338TEVENT_OBJ="$TEVENT_OBJ tevent_req.o tevent_wakeup.o tevent_queue.o"
100339TEVENT_OBJ="$TEVENT_OBJ tevent_standard.o tevent_select.o"
100340
100341
100342for ac_header in sys/epoll.h
100343do
100344as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
100345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
100346  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
100347$as_echo_n "checking for $ac_header... " >&6; }
100348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
100349  $as_echo_n "(cached) " >&6
100350fi
100351ac_res=`eval 'as_val=${'$as_ac_Header'}
100352		 $as_echo "$as_val"'`
100353	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
100354$as_echo "$ac_res" >&6; }
100355else
100356  # Is the header compilable?
100357{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
100358$as_echo_n "checking $ac_header usability... " >&6; }
100359cat >conftest.$ac_ext <<_ACEOF
100360/* confdefs.h.  */
100361_ACEOF
100362cat confdefs.h >>conftest.$ac_ext
100363cat >>conftest.$ac_ext <<_ACEOF
100364/* end confdefs.h.  */
100365$ac_includes_default
100366#include <$ac_header>
100367_ACEOF
100368rm -f conftest.$ac_objext
100369if { (ac_try="$ac_compile"
100370case "(($ac_try" in
100371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
100372  *) ac_try_echo=$ac_try;;
100373esac
100374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
100375$as_echo "$ac_try_echo") >&5
100376  (eval "$ac_compile") 2>conftest.er1
100377  ac_status=$?
100378  grep -v '^ *+' conftest.er1 >conftest.err
100379  rm -f conftest.er1
100380  cat conftest.err >&5
100381  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
100382  (exit $ac_status); } && {
100383	 test -z "$ac_c_werror_flag" ||
100384	 test ! -s conftest.err
100385       } && test -s conftest.$ac_objext; then
100386  ac_header_compiler=yes
100387else
100388  $as_echo "$as_me: failed program was:" >&5
100389sed 's/^/| /' conftest.$ac_ext >&5
100390
100391	ac_header_compiler=no
100392fi
100393
100394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
100395{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
100396$as_echo "$ac_header_compiler" >&6; }
100397
100398# Is the header present?
100399{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
100400$as_echo_n "checking $ac_header presence... " >&6; }
100401cat >conftest.$ac_ext <<_ACEOF
100402/* confdefs.h.  */
100403_ACEOF
100404cat confdefs.h >>conftest.$ac_ext
100405cat >>conftest.$ac_ext <<_ACEOF
100406/* end confdefs.h.  */
100407#include <$ac_header>
100408_ACEOF
100409if { (ac_try="$ac_cpp conftest.$ac_ext"
100410case "(($ac_try" in
100411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
100412  *) ac_try_echo=$ac_try;;
100413esac
100414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
100415$as_echo "$ac_try_echo") >&5
100416  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
100417  ac_status=$?
100418  grep -v '^ *+' conftest.er1 >conftest.err
100419  rm -f conftest.er1
100420  cat conftest.err >&5
100421  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
100422  (exit $ac_status); } >/dev/null && {
100423	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
100424	 test ! -s conftest.err
100425       }; then
100426  ac_header_preproc=yes
100427else
100428  $as_echo "$as_me: failed program was:" >&5
100429sed 's/^/| /' conftest.$ac_ext >&5
100430
100431  ac_header_preproc=no
100432fi
100433
100434rm -f conftest.err conftest.$ac_ext
100435{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
100436$as_echo "$ac_header_preproc" >&6; }
100437
100438# So?  What about this header?
100439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
100440  yes:no: )
100441    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
100442$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
100443    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
100444$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
100445    ac_header_preproc=yes
100446    ;;
100447  no:yes:* )
100448    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
100449$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
100450    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
100451$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
100452    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
100453$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
100454    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
100455$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
100456    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
100457$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
100458    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
100459$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
100460    ( cat <<\_ASBOX
100461## ---------------------------------------- ##
100462## Report this to samba-technical@samba.org ##
100463## ---------------------------------------- ##
100464_ASBOX
100465     ) | sed "s/^/$as_me: WARNING:     /" >&2
100466    ;;
100467esac
100468{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
100469$as_echo_n "checking for $ac_header... " >&6; }
100470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
100471  $as_echo_n "(cached) " >&6
100472else
100473  eval "$as_ac_Header=\$ac_header_preproc"
100474fi
100475ac_res=`eval 'as_val=${'$as_ac_Header'}
100476		 $as_echo "$as_val"'`
100477	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
100478$as_echo "$ac_res" >&6; }
100479
100480fi
100481as_val=`eval 'as_val=${'$as_ac_Header'}
100482		 $as_echo "$as_val"'`
100483   if test "x$as_val" = x""yes; then
100484  cat >>confdefs.h <<_ACEOF
100485#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
100486_ACEOF
100487
100488fi
100489
100490done
100491
100492
100493for ac_func in epoll_create
100494do
100495as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
100496{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
100497$as_echo_n "checking for $ac_func... " >&6; }
100498if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
100499  $as_echo_n "(cached) " >&6
100500else
100501  cat >conftest.$ac_ext <<_ACEOF
100502/* confdefs.h.  */
100503_ACEOF
100504cat confdefs.h >>conftest.$ac_ext
100505cat >>conftest.$ac_ext <<_ACEOF
100506/* end confdefs.h.  */
100507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
100508   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
100509#define $ac_func innocuous_$ac_func
100510
100511/* System header to define __stub macros and hopefully few prototypes,
100512    which can conflict with char $ac_func (); below.
100513    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
100514    <limits.h> exists even on freestanding compilers.  */
100515
100516#ifdef __STDC__
100517# include <limits.h>
100518#else
100519# include <assert.h>
100520#endif
100521
100522#undef $ac_func
100523
100524/* Override any GCC internal prototype to avoid an error.
100525   Use char because int might match the return type of a GCC
100526   builtin and then its argument prototype would still apply.  */
100527#ifdef __cplusplus
100528extern "C"
100529#endif
100530char $ac_func ();
100531/* The GNU C library defines this for functions which it implements
100532    to always fail with ENOSYS.  Some functions are actually named
100533    something starting with __ and the normal name is an alias.  */
100534#if defined __stub_$ac_func || defined __stub___$ac_func
100535choke me
100536#endif
100537
100538int
100539main ()
100540{
100541return $ac_func ();
100542  ;
100543  return 0;
100544}
100545_ACEOF
100546rm -f conftest.$ac_objext conftest$ac_exeext
100547if { (ac_try="$ac_link"
100548case "(($ac_try" in
100549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
100550  *) ac_try_echo=$ac_try;;
100551esac
100552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
100553$as_echo "$ac_try_echo") >&5
100554  (eval "$ac_link") 2>conftest.er1
100555  ac_status=$?
100556  grep -v '^ *+' conftest.er1 >conftest.err
100557  rm -f conftest.er1
100558  cat conftest.err >&5
100559  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
100560  (exit $ac_status); } && {
100561	 test -z "$ac_c_werror_flag" ||
100562	 test ! -s conftest.err
100563       } && test -s conftest$ac_exeext && {
100564	 test "$cross_compiling" = yes ||
100565	 $as_test_x conftest$ac_exeext
100566       }; then
100567  eval "$as_ac_var=yes"
100568else
100569  $as_echo "$as_me: failed program was:" >&5
100570sed 's/^/| /' conftest.$ac_ext >&5
100571
100572	eval "$as_ac_var=no"
100573fi
100574
100575rm -rf conftest.dSYM
100576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
100577      conftest$ac_exeext conftest.$ac_ext
100578fi
100579ac_res=`eval 'as_val=${'$as_ac_var'}
100580		 $as_echo "$as_val"'`
100581	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
100582$as_echo "$ac_res" >&6; }
100583as_val=`eval 'as_val=${'$as_ac_var'}
100584		 $as_echo "$as_val"'`
100585   if test "x$as_val" = x""yes; then
100586  cat >>confdefs.h <<_ACEOF
100587#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
100588_ACEOF
100589
100590fi
100591done
100592
100593if test x"$ac_cv_header_sys_epoll_h" = x"yes" -a x"$ac_cv_func_epoll_create" = x"yes"; then
100594   TEVENT_OBJ="$TEVENT_OBJ tevent_epoll.o"
100595
100596cat >>confdefs.h <<\_ACEOF
100597#define HAVE_EPOLL 1
100598_ACEOF
100599
100600fi
100601
100602if test x"$VERSIONSCRIPT" != "x"; then
100603    EXPORTSFILE=tevent.exports
100604
100605fi
100606
100607
100608
100609
100610MAKE_SETTINGS="$MAKE_SETTINGS
100611LIBTEVENT_EXT_LIBS = ${TEVENT_LIBS}
100612LIBTEVENT_EXT_CFLAGS =
100613LIBTEVENT_EXT_CPPFLAGS =
100614LIBTEVENT_EXT_LDFLAGS =
100615"
100616
100617
100618
100619	MAKE_SETTINGS="$MAKE_SETTINGS
100620LIBTEVENT_EXT_ENABLE =
100621"
100622SMB_INFO_ENABLES="$SMB_INFO_ENABLES
100623\$enabled{\"LIBTEVENT_EXT\"} = \"\";"
100624
100625
100626
100627MAKE_SETTINGS="$MAKE_SETTINGS
100628LIBTEVENT_CFLAGS = ${TEVENT_CFLAGS}
100629LIBTEVENT_ENABLE = YES
100630LIBTEVENT_OBJ_FILES = \$(addprefix \$(libteventsrcdir)/, ${TEVENT_OBJ})
100631"
100632
100633SMB_INFO_SUBSYSTEMS="$SMB_INFO_SUBSYSTEMS
100634###################################
100635# Start Subsystem LIBTEVENT
100636[SUBSYSTEM::LIBTEVENT]
100637PRIVATE_DEPENDENCIES = LIBTEVENT_EXT
100638CFLAGS = \$(LIBTEVENT_CFLAGS)
100639ENABLE = YES
100640# End Subsystem LIBTEVENT
100641###################################
100642"
100643
100644
100645
100646	fi
100647
100648
100649
100650
100651	if test -z "$PKG_CONFIG"; then
100652		# Extract the first word of "pkg-config", so it can be a program name with args.
100653set dummy pkg-config; ac_word=$2
100654{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
100655$as_echo_n "checking for $ac_word... " >&6; }
100656if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
100657  $as_echo_n "(cached) " >&6
100658else
100659  case $PKG_CONFIG in
100660  [\\/]* | ?:[\\/]*)
100661  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
100662  ;;
100663  *)
100664  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100665for as_dir in $PATH
100666do
100667  IFS=$as_save_IFS
100668  test -z "$as_dir" && as_dir=.
100669  for ac_exec_ext in '' $ac_executable_extensions; do
100670  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
100671    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
100672    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
100673    break 2
100674  fi
100675done
100676done
100677IFS=$as_save_IFS
100678
100679  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
100680  ;;
100681esac
100682fi
100683PKG_CONFIG=$ac_cv_path_PKG_CONFIG
100684if test -n "$PKG_CONFIG"; then
100685  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
100686$as_echo "$PKG_CONFIG" >&6; }
100687else
100688  { $as_echo "$as_me:$LINENO: result: no" >&5
100689$as_echo "no" >&6; }
100690fi
100691
100692
100693	fi
100694
100695	if test "$PKG_CONFIG" = "no" ; then
100696		echo "*** The pkg-config script could not be found. Make sure it is"
100697		echo "*** in your path, or set the PKG_CONFIG environment variable"
100698		echo "*** to the full path to pkg-config."
100699		echo "*** Or see http://pkg-config.freedesktop.org/ to get pkg-config."
100700			ac_cv_LIBLDB_found=no
100701	else
100702		SAMBA_PKG_CONFIG_MIN_VERSION="0.9.0"
100703		if $PKG_CONFIG --atleast-pkgconfig-version $SAMBA_PKG_CONFIG_MIN_VERSION; then
100704			{ $as_echo "$as_me:$LINENO: checking for ldb = 0.9.10" >&5
100705$as_echo_n "checking for ldb = 0.9.10... " >&6; }
100706
100707			if $PKG_CONFIG --exists 'ldb = 0.9.10' ; then
100708				{ $as_echo "$as_me:$LINENO: result: yes" >&5
100709$as_echo "yes" >&6; }
100710
100711				LIBLDB_CFLAGS="`$PKG_CONFIG --cflags 'ldb = 0.9.10'`"
100712				OLD_CFLAGS="$CFLAGS"
100713				CFLAGS="$CFLAGS $LIBLDB_CFLAGS"
100714				{ $as_echo "$as_me:$LINENO: checking that the C compiler can use the LIBLDB_CFLAGS" >&5
100715$as_echo_n "checking that the C compiler can use the LIBLDB_CFLAGS... " >&6; }
100716				if test "$cross_compiling" = yes; then
100717  { $as_echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
100718$as_echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
100719else
100720  cat >conftest.$ac_ext <<_ACEOF
100721/* confdefs.h.  */
100722_ACEOF
100723cat confdefs.h >>conftest.$ac_ext
100724cat >>conftest.$ac_ext <<_ACEOF
100725/* end confdefs.h.  */
100726#include "${srcdir-.}/../tests/trivial.c"
100727_ACEOF
100728rm -f conftest$ac_exeext
100729if { (ac_try="$ac_link"
100730case "(($ac_try" in
100731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
100732  *) ac_try_echo=$ac_try;;
100733esac
100734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
100735$as_echo "$ac_try_echo") >&5
100736  (eval "$ac_link") 2>&5
100737  ac_status=$?
100738  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
100739  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
100740  { (case "(($ac_try" in
100741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
100742  *) ac_try_echo=$ac_try;;
100743esac
100744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
100745$as_echo "$ac_try_echo") >&5
100746  (eval "$ac_try") 2>&5
100747  ac_status=$?
100748  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
100749  (exit $ac_status); }; }; then
100750
100751	MAKE_SETTINGS="$MAKE_SETTINGS
100752LIBLDB_ENABLE = YES
100753"
100754SMB_INFO_ENABLES="$SMB_INFO_ENABLES
100755\$enabled{\"LIBLDB\"} = \"YES\";"
100756
100757					{ $as_echo "$as_me:$LINENO: result: yes" >&5
100758$as_echo "yes" >&6; }
100759else
100760  $as_echo "$as_me: program exited with status $ac_status" >&5
100761$as_echo "$as_me: failed program was:" >&5
100762sed 's/^/| /' conftest.$ac_ext >&5
100763
100764( exit $ac_status )
100765{ $as_echo "$as_me:$LINENO: result: no" >&5
100766$as_echo "no" >&6; }
100767fi
100768rm -rf conftest.dSYM
100769rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
100770fi
100771
100772
100773				CFLAGS="$OLD_CFLAGS"
100774
100775				ac_cv_LIBLDB_libs_only_other="`$PKG_CONFIG --libs-only-other 'ldb = 0.9.10'` `$PKG_CONFIG --libs-only-L 'ldb = 0.9.10'`"
100776
100777  ac_new_flags=""
100778  l=""
100779  for i in $ac_cv_LIBLDB_libs_only_other; do
100780    case $l$i in
100781    -L/usr/lib) ;;
100782    -L/usr/lib/) ;;
100783    -L/usr/lib64) ;;
100784    -L/usr/lib64/) ;;
100785    -Wl,-rpath,/usr/lib) l="";;
100786    -Wl,-rpath,/usr/lib/) l="";;
100787    -Wl,-rpath,/usr/lib64) l="";;
100788    -Wl,-rpath,/usr/lib64/) l="";;
100789    -Wl,-rpath) l=$i;;
100790    -Wl,-rpath-Wl,/usr/lib) l="";;
100791    -Wl,-rpath-Wl,/usr/lib/) l="";;
100792    -Wl,-rpath-Wl,/usr/lib64) l="";;
100793    -Wl,-rpath-Wl,/usr/lib64/) l="";;
100794    *)
100795    	s=" "
100796        if test x"$ac_new_flags" = x""; then
100797            s="";
100798	fi
100799        if test x"$l" = x""; then
100800            ac_new_flags="$ac_new_flags$s$i";
100801        else
100802            ac_new_flags="$ac_new_flags$s$l $i";
100803        fi
100804        l=""
100805        ;;
100806    esac
100807  done
100808  ac_cv_LIBLDB_libs_only_other=$ac_new_flags
100809
100810				ac_cv_LIBLDB_includedir_only="`$PKG_CONFIG --cflags-only-I 'ldb = 0.9.10'`"
100811
100812  ac_new_flags=""
100813  for i in $ac_cv_LIBLDB_includedir_only; do
100814    case $i in
100815    -I/usr/include|-I/usr/include/) ;;
100816    *) ac_new_flags="$ac_new_flags $i" ;;
100817    esac
100818  done
100819  ac_cv_LIBLDB_includedir_only=$ac_new_flags
100820
100821
100822MAKE_SETTINGS="$MAKE_SETTINGS
100823LIBLDB_LIBS = `$PKG_CONFIG --libs-only-l 'ldb = 0.9.10'`
100824LIBLDB_CFLAGS = `$PKG_CONFIG --cflags-only-other 'ldb = 0.9.10'`
100825LIBLDB_CPPFLAGS = $ac_cv_LIBLDB_includedir_only
100826LIBLDB_LDFLAGS = $ac_cv_LIBLDB_libs_only_other
100827"
100828
100829
100830				ac_cv_LIBLDB_found=yes
100831
100832			else
100833				{ $as_echo "$as_me:$LINENO: result: no" >&5
100834$as_echo "no" >&6; }
100835				$PKG_CONFIG --errors-to-stdout --print-errors 'ldb = 0.9.10'
100836				ac_cv_LIBLDB_found=no
100837			fi
100838		else
100839			echo "*** Your version of pkg-config is too old. You need version $SAMBA_PKG_CONFIG_MIN_VERSION or newer."
100840			echo "*** See http://pkg-config.freedesktop.org/"
100841			ac_cv_LIBLDB_found=no
100842		fi
100843	fi
100844	if test x$ac_cv_LIBLDB_found = x"yes"; then
100845
100846
100847SMB_INFO_EXT_LIBS="$SMB_INFO_EXT_LIBS
100848mkinclude lib/ldb/ldb_ildap/config.mk
100849"
100850
100851
100852SMB_INFO_EXT_LIBS="$SMB_INFO_EXT_LIBS
100853mkinclude lib/ldb/tools/config.mk
100854"
100855
100856		define_ldb_modulesdir=no
100857
100858	else
100859
100860		# Here we need to do some tricks
100861		# with AC_CONFIG_COMMANDS_PRE
100862		# as that's the deferrs the commands
100863		# to location after $prefix and $exec_prefix
100864		# have usefull values and directly before
100865		# creating config.status.
100866		#
100867		# The 'eval eval echo' trick is used to
100868		# actually get the raw absolute directory
100869		# path as this is needed in config.h
100870		define_ldb_modulesdir=yes
100871
100872		ldbdir="\$(abspath \$(srcdir)/../source4/lib/ldb)"
100873
100874		########################################################
100875# Compile with SQLITE3 support?
100876
100877SQLITE3_LIBS=""
100878with_sqlite3_support=no
100879{ $as_echo "$as_me:$LINENO: checking for SQLITE3 support" >&5
100880$as_echo_n "checking for SQLITE3 support... " >&6; }
100881
100882
100883# Check whether --with-sqlite3 was given.
100884if test "${with_sqlite3+set}" = set; then
100885  withval=$with_sqlite3;  case "$withval" in
100886    yes|no|auto)
100887	with_sqlite3_support=$withval
100888	;;
100889  esac
100890fi
100891
100892
100893{ $as_echo "$as_me:$LINENO: result: $with_sqlite3_support" >&5
100894$as_echo "$with_sqlite3_support" >&6; }
100895
100896if test x"$with_sqlite3_support" != x"no"; then
100897  ##################################################################
100898  # first test for sqlite3.h
100899
100900for ac_header in sqlite3.h
100901do
100902as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
100903if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
100904  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
100905$as_echo_n "checking for $ac_header... " >&6; }
100906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
100907  $as_echo_n "(cached) " >&6
100908fi
100909ac_res=`eval 'as_val=${'$as_ac_Header'}
100910		 $as_echo "$as_val"'`
100911	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
100912$as_echo "$ac_res" >&6; }
100913else
100914  # Is the header compilable?
100915{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
100916$as_echo_n "checking $ac_header usability... " >&6; }
100917cat >conftest.$ac_ext <<_ACEOF
100918/* confdefs.h.  */
100919_ACEOF
100920cat confdefs.h >>conftest.$ac_ext
100921cat >>conftest.$ac_ext <<_ACEOF
100922/* end confdefs.h.  */
100923$ac_includes_default
100924#include <$ac_header>
100925_ACEOF
100926rm -f conftest.$ac_objext
100927if { (ac_try="$ac_compile"
100928case "(($ac_try" in
100929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
100930  *) ac_try_echo=$ac_try;;
100931esac
100932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
100933$as_echo "$ac_try_echo") >&5
100934  (eval "$ac_compile") 2>conftest.er1
100935  ac_status=$?
100936  grep -v '^ *+' conftest.er1 >conftest.err
100937  rm -f conftest.er1
100938  cat conftest.err >&5
100939  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
100940  (exit $ac_status); } && {
100941	 test -z "$ac_c_werror_flag" ||
100942	 test ! -s conftest.err
100943       } && test -s conftest.$ac_objext; then
100944  ac_header_compiler=yes
100945else
100946  $as_echo "$as_me: failed program was:" >&5
100947sed 's/^/| /' conftest.$ac_ext >&5
100948
100949	ac_header_compiler=no
100950fi
100951
100952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
100953{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
100954$as_echo "$ac_header_compiler" >&6; }
100955
100956# Is the header present?
100957{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
100958$as_echo_n "checking $ac_header presence... " >&6; }
100959cat >conftest.$ac_ext <<_ACEOF
100960/* confdefs.h.  */
100961_ACEOF
100962cat confdefs.h >>conftest.$ac_ext
100963cat >>conftest.$ac_ext <<_ACEOF
100964/* end confdefs.h.  */
100965#include <$ac_header>
100966_ACEOF
100967if { (ac_try="$ac_cpp conftest.$ac_ext"
100968case "(($ac_try" in
100969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
100970  *) ac_try_echo=$ac_try;;
100971esac
100972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
100973$as_echo "$ac_try_echo") >&5
100974  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
100975  ac_status=$?
100976  grep -v '^ *+' conftest.er1 >conftest.err
100977  rm -f conftest.er1
100978  cat conftest.err >&5
100979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
100980  (exit $ac_status); } >/dev/null && {
100981	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
100982	 test ! -s conftest.err
100983       }; then
100984  ac_header_preproc=yes
100985else
100986  $as_echo "$as_me: failed program was:" >&5
100987sed 's/^/| /' conftest.$ac_ext >&5
100988
100989  ac_header_preproc=no
100990fi
100991
100992rm -f conftest.err conftest.$ac_ext
100993{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
100994$as_echo "$ac_header_preproc" >&6; }
100995
100996# So?  What about this header?
100997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
100998  yes:no: )
100999    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
101000$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
101001    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
101002$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
101003    ac_header_preproc=yes
101004    ;;
101005  no:yes:* )
101006    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
101007$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
101008    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
101009$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
101010    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
101011$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
101012    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
101013$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
101014    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
101015$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
101016    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
101017$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
101018    ( cat <<\_ASBOX
101019## ---------------------------------------- ##
101020## Report this to samba-technical@samba.org ##
101021## ---------------------------------------- ##
101022_ASBOX
101023     ) | sed "s/^/$as_me: WARNING:     /" >&2
101024    ;;
101025esac
101026{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
101027$as_echo_n "checking for $ac_header... " >&6; }
101028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
101029  $as_echo_n "(cached) " >&6
101030else
101031  eval "$as_ac_Header=\$ac_header_preproc"
101032fi
101033ac_res=`eval 'as_val=${'$as_ac_Header'}
101034		 $as_echo "$as_val"'`
101035	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
101036$as_echo "$ac_res" >&6; }
101037
101038fi
101039as_val=`eval 'as_val=${'$as_ac_Header'}
101040		 $as_echo "$as_val"'`
101041   if test "x$as_val" = x""yes; then
101042  cat >>confdefs.h <<_ACEOF
101043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
101044_ACEOF
101045
101046fi
101047
101048done
101049
101050
101051  if test x"$ac_cv_header_sqlite3_h" != x"yes"; then
101052	if test x"$with_sqlite3_support" = x"yes"; then
101053	 { { $as_echo "$as_me:$LINENO: error: sqlite3.h is needed for SQLITE3 support" >&5
101054$as_echo "$as_me: error: sqlite3.h is needed for SQLITE3 support" >&2;}
101055   { (exit 1); exit 1; }; }
101056	else
101057	 { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h is needed for SQLITE3 support" >&5
101058$as_echo "$as_me: WARNING: sqlite3.h is needed for SQLITE3 support" >&2;}
101059	fi
101060
101061	with_sqlite3_support=no
101062  fi
101063fi
101064
101065if test x"$with_sqlite3_support" != x"no"; then
101066  ac_save_LIBS=$LIBS
101067
101068  ########################################################
101069  # now see if we can find the sqlite3 libs in standard paths
101070
101071
101072
101073ac_check_lib_ext_save_LIBS=$LIBS
101074LIBS="-lsqlite3 $SQLITE3_LIBS  $LIBS"
101075
101076
101077
101078
101079        { $as_echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
101080$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
101081if test "${ac_cv_lib_ext_sqlite3_sqlite3_open+set}" = set; then
101082  $as_echo_n "(cached) " >&6
101083else
101084  cat >conftest.$ac_ext <<_ACEOF
101085/* confdefs.h.  */
101086_ACEOF
101087cat confdefs.h >>conftest.$ac_ext
101088cat >>conftest.$ac_ext <<_ACEOF
101089/* end confdefs.h.  */
101090
101091/* Override any GCC internal prototype to avoid an error.
101092   Use char because int might match the return type of a GCC
101093   builtin and then its argument prototype would still apply.  */
101094#ifdef __cplusplus
101095extern "C"
101096#endif
101097char sqlite3_open ();
101098int
101099main ()
101100{
101101return sqlite3_open ();
101102  ;
101103  return 0;
101104}
101105_ACEOF
101106rm -f conftest.$ac_objext conftest$ac_exeext
101107if { (ac_try="$ac_link"
101108case "(($ac_try" in
101109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101110  *) ac_try_echo=$ac_try;;
101111esac
101112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101113$as_echo "$ac_try_echo") >&5
101114  (eval "$ac_link") 2>conftest.er1
101115  ac_status=$?
101116  grep -v '^ *+' conftest.er1 >conftest.err
101117  rm -f conftest.er1
101118  cat conftest.err >&5
101119  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
101120  (exit $ac_status); } && {
101121	 test -z "$ac_c_werror_flag" ||
101122	 test ! -s conftest.err
101123       } && test -s conftest$ac_exeext && {
101124	 test "$cross_compiling" = yes ||
101125	 $as_test_x conftest$ac_exeext
101126       }; then
101127  ac_cv_lib_ext_sqlite3_sqlite3_open=yes;
101128		  ac_cv_lib_ext_sqlite3=yes
101129else
101130  $as_echo "$as_me: failed program was:" >&5
101131sed 's/^/| /' conftest.$ac_ext >&5
101132
101133	ac_cv_lib_ext_sqlite3_sqlite3_open=no;
101134		  ac_cv_lib_ext_sqlite3=no
101135fi
101136
101137rm -rf conftest.dSYM
101138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
101139      conftest$ac_exeext conftest.$ac_ext
101140
101141fi
101142{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_sqlite3_sqlite3_open" >&5
101143$as_echo "$ac_cv_lib_ext_sqlite3_sqlite3_open" >&6; }
101144    if test $ac_cv_lib_ext_sqlite3_sqlite3_open = yes; then
101145  cat >>confdefs.h <<_ACEOF
101146#define HAVE_SQLITE3_OPEN 1
101147_ACEOF
101148
101149fi
101150
101151LIBS=$ac_check_lib_ext_save_LIBS
101152
101153if test $ac_cv_lib_ext_sqlite3 = yes; then
101154  cat >>confdefs.h <<_ACEOF
101155#define HAVE_LIBSQLITE3 1
101156_ACEOF
101157
101158		case "$SQLITE3_LIBS" in
101159		    *-lsqlite3*)
101160			;;
101161		    *)
101162			SQLITE3_LIBS="-lsqlite3 $SQLITE3_LIBS"
101163			;;
101164		esac
101165
101166
101167fi
101168
101169
101170  if test x"$ac_cv_lib_ext_sqlite3_sqlite3_open" = x"yes"; then
101171
101172cat >>confdefs.h <<\_ACEOF
101173#define HAVE_SQLITE3 1
101174_ACEOF
101175
101176
101177cat >>confdefs.h <<\_ACEOF
101178#define HAVE_LDB_SQLITE3 1
101179_ACEOF
101180
101181    { $as_echo "$as_me:$LINENO: checking whether SQLITE3 support is used" >&5
101182$as_echo_n "checking whether SQLITE3 support is used... " >&6; }
101183    { $as_echo "$as_me:$LINENO: result: yes" >&5
101184$as_echo "yes" >&6; }
101185    with_sqlite3_support=yes
101186
101187	MAKE_SETTINGS="$MAKE_SETTINGS
101188SQLITE3_ENABLE = YES
101189"
101190SMB_INFO_ENABLES="$SMB_INFO_ENABLES
101191\$enabled{\"SQLITE3\"} = \"YES\";"
101192
101193  else
101194    if test x"$with_sqlite3_support" = x"yes"; then
101195	{ { $as_echo "$as_me:$LINENO: error: libsqlite3 is needed for SQLITE3 support" >&5
101196$as_echo "$as_me: error: libsqlite3 is needed for SQLITE3 support" >&2;}
101197   { (exit 1); exit 1; }; }
101198    else
101199	{ $as_echo "$as_me:$LINENO: WARNING: libsqlite3 is needed for SQLITE3 support" >&5
101200$as_echo "$as_me: WARNING: libsqlite3 is needed for SQLITE3 support" >&2;}
101201    fi
101202
101203    SQLITE3_LIBS=""
101204    with_sqlite3_support=no
101205  fi
101206
101207  LIBS=$ac_save_LIBS;
101208fi
101209
101210
101211MAKE_SETTINGS="$MAKE_SETTINGS
101212SQLITE3_LIBS = ${SQLITE3_LIBS}
101213SQLITE3_CFLAGS = ${SQLITE3_CFLAGS}
101214SQLITE3_CPPFLAGS = ${SQLITE3_CPPFLAGS}
101215SQLITE3_LDFLAGS = ${SQLITE3_LDFLAGS}
101216"
101217
101218
101219
101220
101221	MAKE_SETTINGS="$MAKE_SETTINGS
101222ldb_sqlite3_ENABLE = $with_sqlite3_support
101223"
101224SMB_INFO_ENABLES="$SMB_INFO_ENABLES
101225\$enabled{\"ldb_sqlite3\"} = \"$with_sqlite3_support\";"
101226
101227
101228
101229SMB_INFO_EXT_LIBS="$SMB_INFO_EXT_LIBS
101230mkinclude lib/ldb/config.mk
101231"
101232
101233		ac_config_files="$ac_config_files ../source4/lib/ldb/ldb.pc"
101234
101235
101236
101237	fi
101238
101239
101240SMB_INFO_EXT_LIBS="$SMB_INFO_EXT_LIBS
101241mkinclude lib/ldb/python.mk
101242"
101243
101244
101245# Not sure why we need this..
101246
101247	MAKE_SETTINGS="$MAKE_SETTINGS
101248swig_ldb_ENABLE = YES
101249"
101250SMB_INFO_ENABLES="$SMB_INFO_ENABLES
101251\$enabled{\"swig_ldb\"} = \"YES\";"
101252
101253
101254# Don't build wbinfo twice
101255
101256	MAKE_SETTINGS="$MAKE_SETTINGS
101257wbinfo_ENABLE = NO
101258"
101259SMB_INFO_ENABLES="$SMB_INFO_ENABLES
101260\$enabled{\"wbinfo\"} = \"NO\";"
101261
101262
101263###############################
101264# start SMB_EXT_LIB_GNUTLS
101265# check for gnutls/gnutls.h and -lgnutls
101266
101267use_gnutls=auto
101268# Check whether --enable-gnutls was given.
101269if test "${enable_gnutls+set}" = set; then
101270  enableval=$enable_gnutls; if test x$enable_gnutls = xno; then
101271        use_gnutls=no
101272    fi
101273fi
101274
101275
101276
101277if test x$use_gnutls = xauto && pkg-config --exists gnutls; then
101278
101279
101280	if test -z "$PKG_CONFIG"; then
101281		# Extract the first word of "pkg-config", so it can be a program name with args.
101282set dummy pkg-config; ac_word=$2
101283{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
101284$as_echo_n "checking for $ac_word... " >&6; }
101285if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
101286  $as_echo_n "(cached) " >&6
101287else
101288  case $PKG_CONFIG in
101289  [\\/]* | ?:[\\/]*)
101290  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
101291  ;;
101292  *)
101293  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101294for as_dir in $PATH
101295do
101296  IFS=$as_save_IFS
101297  test -z "$as_dir" && as_dir=.
101298  for ac_exec_ext in '' $ac_executable_extensions; do
101299  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
101300    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
101301    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
101302    break 2
101303  fi
101304done
101305done
101306IFS=$as_save_IFS
101307
101308  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
101309  ;;
101310esac
101311fi
101312PKG_CONFIG=$ac_cv_path_PKG_CONFIG
101313if test -n "$PKG_CONFIG"; then
101314  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
101315$as_echo "$PKG_CONFIG" >&6; }
101316else
101317  { $as_echo "$as_me:$LINENO: result: no" >&5
101318$as_echo "no" >&6; }
101319fi
101320
101321
101322	fi
101323
101324	if test "$PKG_CONFIG" = "no" ; then
101325		echo "*** The pkg-config script could not be found. Make sure it is"
101326		echo "*** in your path, or set the PKG_CONFIG environment variable"
101327		echo "*** to the full path to pkg-config."
101328		echo "*** Or see http://pkg-config.freedesktop.org/ to get pkg-config."
101329			ac_cv_GNUTLS_found=no
101330	else
101331		SAMBA_PKG_CONFIG_MIN_VERSION="0.9.0"
101332		if $PKG_CONFIG --atleast-pkgconfig-version $SAMBA_PKG_CONFIG_MIN_VERSION; then
101333			{ $as_echo "$as_me:$LINENO: checking for gnutls >= 1.4.0" >&5
101334$as_echo_n "checking for gnutls >= 1.4.0... " >&6; }
101335
101336			if $PKG_CONFIG --exists 'gnutls >= 1.4.0' ; then
101337				{ $as_echo "$as_me:$LINENO: result: yes" >&5
101338$as_echo "yes" >&6; }
101339
101340				GNUTLS_CFLAGS="`$PKG_CONFIG --cflags 'gnutls >= 1.4.0'`"
101341				OLD_CFLAGS="$CFLAGS"
101342				CFLAGS="$CFLAGS $GNUTLS_CFLAGS"
101343				{ $as_echo "$as_me:$LINENO: checking that the C compiler can use the GNUTLS_CFLAGS" >&5
101344$as_echo_n "checking that the C compiler can use the GNUTLS_CFLAGS... " >&6; }
101345				if test "$cross_compiling" = yes; then
101346  { $as_echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
101347$as_echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
101348else
101349  cat >conftest.$ac_ext <<_ACEOF
101350/* confdefs.h.  */
101351_ACEOF
101352cat confdefs.h >>conftest.$ac_ext
101353cat >>conftest.$ac_ext <<_ACEOF
101354/* end confdefs.h.  */
101355#include "${srcdir-.}/../tests/trivial.c"
101356_ACEOF
101357rm -f conftest$ac_exeext
101358if { (ac_try="$ac_link"
101359case "(($ac_try" in
101360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101361  *) ac_try_echo=$ac_try;;
101362esac
101363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101364$as_echo "$ac_try_echo") >&5
101365  (eval "$ac_link") 2>&5
101366  ac_status=$?
101367  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
101368  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
101369  { (case "(($ac_try" in
101370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101371  *) ac_try_echo=$ac_try;;
101372esac
101373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101374$as_echo "$ac_try_echo") >&5
101375  (eval "$ac_try") 2>&5
101376  ac_status=$?
101377  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
101378  (exit $ac_status); }; }; then
101379
101380	MAKE_SETTINGS="$MAKE_SETTINGS
101381GNUTLS_ENABLE = YES
101382"
101383SMB_INFO_ENABLES="$SMB_INFO_ENABLES
101384\$enabled{\"GNUTLS\"} = \"YES\";"
101385
101386					{ $as_echo "$as_me:$LINENO: result: yes" >&5
101387$as_echo "yes" >&6; }
101388else
101389  $as_echo "$as_me: program exited with status $ac_status" >&5
101390$as_echo "$as_me: failed program was:" >&5
101391sed 's/^/| /' conftest.$ac_ext >&5
101392
101393( exit $ac_status )
101394{ $as_echo "$as_me:$LINENO: result: no" >&5
101395$as_echo "no" >&6; }
101396fi
101397rm -rf conftest.dSYM
101398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
101399fi
101400
101401
101402				CFLAGS="$OLD_CFLAGS"
101403
101404				ac_cv_GNUTLS_libs_only_other="`$PKG_CONFIG --libs-only-other 'gnutls >= 1.4.0'` `$PKG_CONFIG --libs-only-L 'gnutls >= 1.4.0'`"
101405
101406  ac_new_flags=""
101407  l=""
101408  for i in $ac_cv_GNUTLS_libs_only_other; do
101409    case $l$i in
101410    -L/usr/lib) ;;
101411    -L/usr/lib/) ;;
101412    -L/usr/lib64) ;;
101413    -L/usr/lib64/) ;;
101414    -Wl,-rpath,/usr/lib) l="";;
101415    -Wl,-rpath,/usr/lib/) l="";;
101416    -Wl,-rpath,/usr/lib64) l="";;
101417    -Wl,-rpath,/usr/lib64/) l="";;
101418    -Wl,-rpath) l=$i;;
101419    -Wl,-rpath-Wl,/usr/lib) l="";;
101420    -Wl,-rpath-Wl,/usr/lib/) l="";;
101421    -Wl,-rpath-Wl,/usr/lib64) l="";;
101422    -Wl,-rpath-Wl,/usr/lib64/) l="";;
101423    *)
101424    	s=" "
101425        if test x"$ac_new_flags" = x""; then
101426            s="";
101427	fi
101428        if test x"$l" = x""; then
101429            ac_new_flags="$ac_new_flags$s$i";
101430        else
101431            ac_new_flags="$ac_new_flags$s$l $i";
101432        fi
101433        l=""
101434        ;;
101435    esac
101436  done
101437  ac_cv_GNUTLS_libs_only_other=$ac_new_flags
101438
101439				ac_cv_GNUTLS_includedir_only="`$PKG_CONFIG --cflags-only-I 'gnutls >= 1.4.0'`"
101440
101441  ac_new_flags=""
101442  for i in $ac_cv_GNUTLS_includedir_only; do
101443    case $i in
101444    -I/usr/include|-I/usr/include/) ;;
101445    *) ac_new_flags="$ac_new_flags $i" ;;
101446    esac
101447  done
101448  ac_cv_GNUTLS_includedir_only=$ac_new_flags
101449
101450
101451MAKE_SETTINGS="$MAKE_SETTINGS
101452GNUTLS_LIBS = `$PKG_CONFIG --libs-only-l 'gnutls >= 1.4.0'`
101453GNUTLS_CFLAGS = `$PKG_CONFIG --cflags-only-other 'gnutls >= 1.4.0'`
101454GNUTLS_CPPFLAGS = $ac_cv_GNUTLS_includedir_only
101455GNUTLS_LDFLAGS = $ac_cv_GNUTLS_libs_only_other
101456"
101457
101458
101459				ac_cv_GNUTLS_found=yes
101460
101461			else
101462				{ $as_echo "$as_me:$LINENO: result: no" >&5
101463$as_echo "no" >&6; }
101464				$PKG_CONFIG --errors-to-stdout --print-errors 'gnutls >= 1.4.0'
101465				ac_cv_GNUTLS_found=no
101466			fi
101467		else
101468			echo "*** Your version of pkg-config is too old. You need version $SAMBA_PKG_CONFIG_MIN_VERSION or newer."
101469			echo "*** See http://pkg-config.freedesktop.org/"
101470			ac_cv_GNUTLS_found=no
101471		fi
101472	fi
101473	if test x$ac_cv_GNUTLS_found = x"yes"; then
101474		use_gnutls=yes
101475	else
101476		use_gnutls=no
101477	fi
101478
101479fi
101480
101481if test x$use_gnutls = xauto; then
101482
101483for ac_header in gnutls/gnutls.h
101484do
101485as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
101486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
101487  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
101488$as_echo_n "checking for $ac_header... " >&6; }
101489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
101490  $as_echo_n "(cached) " >&6
101491fi
101492ac_res=`eval 'as_val=${'$as_ac_Header'}
101493		 $as_echo "$as_val"'`
101494	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
101495$as_echo "$ac_res" >&6; }
101496else
101497  # Is the header compilable?
101498{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
101499$as_echo_n "checking $ac_header usability... " >&6; }
101500cat >conftest.$ac_ext <<_ACEOF
101501/* confdefs.h.  */
101502_ACEOF
101503cat confdefs.h >>conftest.$ac_ext
101504cat >>conftest.$ac_ext <<_ACEOF
101505/* end confdefs.h.  */
101506$ac_includes_default
101507#include <$ac_header>
101508_ACEOF
101509rm -f conftest.$ac_objext
101510if { (ac_try="$ac_compile"
101511case "(($ac_try" in
101512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101513  *) ac_try_echo=$ac_try;;
101514esac
101515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101516$as_echo "$ac_try_echo") >&5
101517  (eval "$ac_compile") 2>conftest.er1
101518  ac_status=$?
101519  grep -v '^ *+' conftest.er1 >conftest.err
101520  rm -f conftest.er1
101521  cat conftest.err >&5
101522  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
101523  (exit $ac_status); } && {
101524	 test -z "$ac_c_werror_flag" ||
101525	 test ! -s conftest.err
101526       } && test -s conftest.$ac_objext; then
101527  ac_header_compiler=yes
101528else
101529  $as_echo "$as_me: failed program was:" >&5
101530sed 's/^/| /' conftest.$ac_ext >&5
101531
101532	ac_header_compiler=no
101533fi
101534
101535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
101536{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
101537$as_echo "$ac_header_compiler" >&6; }
101538
101539# Is the header present?
101540{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
101541$as_echo_n "checking $ac_header presence... " >&6; }
101542cat >conftest.$ac_ext <<_ACEOF
101543/* confdefs.h.  */
101544_ACEOF
101545cat confdefs.h >>conftest.$ac_ext
101546cat >>conftest.$ac_ext <<_ACEOF
101547/* end confdefs.h.  */
101548#include <$ac_header>
101549_ACEOF
101550if { (ac_try="$ac_cpp conftest.$ac_ext"
101551case "(($ac_try" in
101552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101553  *) ac_try_echo=$ac_try;;
101554esac
101555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101556$as_echo "$ac_try_echo") >&5
101557  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
101558  ac_status=$?
101559  grep -v '^ *+' conftest.er1 >conftest.err
101560  rm -f conftest.er1
101561  cat conftest.err >&5
101562  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
101563  (exit $ac_status); } >/dev/null && {
101564	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
101565	 test ! -s conftest.err
101566       }; then
101567  ac_header_preproc=yes
101568else
101569  $as_echo "$as_me: failed program was:" >&5
101570sed 's/^/| /' conftest.$ac_ext >&5
101571
101572  ac_header_preproc=no
101573fi
101574
101575rm -f conftest.err conftest.$ac_ext
101576{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
101577$as_echo "$ac_header_preproc" >&6; }
101578
101579# So?  What about this header?
101580case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
101581  yes:no: )
101582    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
101583$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
101584    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
101585$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
101586    ac_header_preproc=yes
101587    ;;
101588  no:yes:* )
101589    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
101590$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
101591    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
101592$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
101593    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
101594$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
101595    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
101596$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
101597    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
101598$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
101599    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
101600$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
101601    ( cat <<\_ASBOX
101602## ---------------------------------------- ##
101603## Report this to samba-technical@samba.org ##
101604## ---------------------------------------- ##
101605_ASBOX
101606     ) | sed "s/^/$as_me: WARNING:     /" >&2
101607    ;;
101608esac
101609{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
101610$as_echo_n "checking for $ac_header... " >&6; }
101611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
101612  $as_echo_n "(cached) " >&6
101613else
101614  eval "$as_ac_Header=\$ac_header_preproc"
101615fi
101616ac_res=`eval 'as_val=${'$as_ac_Header'}
101617		 $as_echo "$as_val"'`
101618	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
101619$as_echo "$ac_res" >&6; }
101620
101621fi
101622as_val=`eval 'as_val=${'$as_ac_Header'}
101623		 $as_echo "$as_val"'`
101624   if test "x$as_val" = x""yes; then
101625  cat >>confdefs.h <<_ACEOF
101626#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
101627_ACEOF
101628
101629fi
101630
101631done
101632
101633
101634
101635
101636ac_check_lib_ext_save_LIBS=$LIBS
101637LIBS="-lgnutls $GNUTLS_LIBS  $LIBS"
101638
101639
101640
101641
101642        { $as_echo "$as_me:$LINENO: checking for gnutls_global_init in -lgnutls" >&5
101643$as_echo_n "checking for gnutls_global_init in -lgnutls... " >&6; }
101644if test "${ac_cv_lib_ext_gnutls_gnutls_global_init+set}" = set; then
101645  $as_echo_n "(cached) " >&6
101646else
101647  cat >conftest.$ac_ext <<_ACEOF
101648/* confdefs.h.  */
101649_ACEOF
101650cat confdefs.h >>conftest.$ac_ext
101651cat >>conftest.$ac_ext <<_ACEOF
101652/* end confdefs.h.  */
101653
101654/* Override any GCC internal prototype to avoid an error.
101655   Use char because int might match the return type of a GCC
101656   builtin and then its argument prototype would still apply.  */
101657#ifdef __cplusplus
101658extern "C"
101659#endif
101660char gnutls_global_init ();
101661int
101662main ()
101663{
101664return gnutls_global_init ();
101665  ;
101666  return 0;
101667}
101668_ACEOF
101669rm -f conftest.$ac_objext conftest$ac_exeext
101670if { (ac_try="$ac_link"
101671case "(($ac_try" in
101672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101673  *) ac_try_echo=$ac_try;;
101674esac
101675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101676$as_echo "$ac_try_echo") >&5
101677  (eval "$ac_link") 2>conftest.er1
101678  ac_status=$?
101679  grep -v '^ *+' conftest.er1 >conftest.err
101680  rm -f conftest.er1
101681  cat conftest.err >&5
101682  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
101683  (exit $ac_status); } && {
101684	 test -z "$ac_c_werror_flag" ||
101685	 test ! -s conftest.err
101686       } && test -s conftest$ac_exeext && {
101687	 test "$cross_compiling" = yes ||
101688	 $as_test_x conftest$ac_exeext
101689       }; then
101690  ac_cv_lib_ext_gnutls_gnutls_global_init=yes;
101691		  ac_cv_lib_ext_gnutls=yes
101692else
101693  $as_echo "$as_me: failed program was:" >&5
101694sed 's/^/| /' conftest.$ac_ext >&5
101695
101696	ac_cv_lib_ext_gnutls_gnutls_global_init=no;
101697		  ac_cv_lib_ext_gnutls=no
101698fi
101699
101700rm -rf conftest.dSYM
101701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
101702      conftest$ac_exeext conftest.$ac_ext
101703
101704fi
101705{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_gnutls_gnutls_global_init" >&5
101706$as_echo "$ac_cv_lib_ext_gnutls_gnutls_global_init" >&6; }
101707    if test $ac_cv_lib_ext_gnutls_gnutls_global_init = yes; then
101708  cat >>confdefs.h <<_ACEOF
101709#define HAVE_GNUTLS_GLOBAL_INIT 1
101710_ACEOF
101711
101712fi
101713
101714LIBS=$ac_check_lib_ext_save_LIBS
101715
101716if test $ac_cv_lib_ext_gnutls = yes; then
101717  cat >>confdefs.h <<_ACEOF
101718#define HAVE_LIBGNUTLS 1
101719_ACEOF
101720
101721		case "$GNUTLS_LIBS" in
101722		    *-lgnutls*)
101723			;;
101724		    *)
101725			GNUTLS_LIBS="-lgnutls $GNUTLS_LIBS"
101726			;;
101727		esac
101728
101729
101730fi
101731
101732	{ $as_echo "$as_me:$LINENO: checking whether gnutls_x509_crt_set_version is declared" >&5
101733$as_echo_n "checking whether gnutls_x509_crt_set_version is declared... " >&6; }
101734if test "${ac_cv_have_decl_gnutls_x509_crt_set_version+set}" = set; then
101735  $as_echo_n "(cached) " >&6
101736else
101737  cat >conftest.$ac_ext <<_ACEOF
101738/* confdefs.h.  */
101739_ACEOF
101740cat confdefs.h >>conftest.$ac_ext
101741cat >>conftest.$ac_ext <<_ACEOF
101742/* end confdefs.h.  */
101743
101744	#include <gnutls/gnutls.h>
101745	#include <gnutls/x509.h>
101746
101747
101748int
101749main ()
101750{
101751#ifndef gnutls_x509_crt_set_version
101752  (void) gnutls_x509_crt_set_version;
101753#endif
101754
101755  ;
101756  return 0;
101757}
101758_ACEOF
101759rm -f conftest.$ac_objext
101760if { (ac_try="$ac_compile"
101761case "(($ac_try" in
101762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101763  *) ac_try_echo=$ac_try;;
101764esac
101765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101766$as_echo "$ac_try_echo") >&5
101767  (eval "$ac_compile") 2>conftest.er1
101768  ac_status=$?
101769  grep -v '^ *+' conftest.er1 >conftest.err
101770  rm -f conftest.er1
101771  cat conftest.err >&5
101772  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
101773  (exit $ac_status); } && {
101774	 test -z "$ac_c_werror_flag" ||
101775	 test ! -s conftest.err
101776       } && test -s conftest.$ac_objext; then
101777  ac_cv_have_decl_gnutls_x509_crt_set_version=yes
101778else
101779  $as_echo "$as_me: failed program was:" >&5
101780sed 's/^/| /' conftest.$ac_ext >&5
101781
101782	ac_cv_have_decl_gnutls_x509_crt_set_version=no
101783fi
101784
101785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
101786fi
101787{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gnutls_x509_crt_set_version" >&5
101788$as_echo "$ac_cv_have_decl_gnutls_x509_crt_set_version" >&6; }
101789if test "x$ac_cv_have_decl_gnutls_x509_crt_set_version" = x""yes; then
101790
101791cat >>confdefs.h <<\_ACEOF
101792#define HAVE_GNUTLS_X509_CRT_SET_VERSION 1
101793_ACEOF
101794
101795fi
101796
101797	if test x"$ac_cv_header_gnutls_gnutls_h" = x"yes" -a x"$ac_cv_lib_ext_gnutls_gnutls_global_init" = x"yes" -a x"$ac_cv_have_decl_gnutls_x509_crt_set_version" = x"yes";then
101798
101799	MAKE_SETTINGS="$MAKE_SETTINGS
101800GNUTLS_ENABLE = YES
101801"
101802SMB_INFO_ENABLES="$SMB_INFO_ENABLES
101803\$enabled{\"GNUTLS\"} = \"YES\";"
101804
101805		{ $as_echo "$as_me:$LINENO: checking whether gnutls_x509_crt_set_subject_key_id is declared" >&5
101806$as_echo_n "checking whether gnutls_x509_crt_set_subject_key_id is declared... " >&6; }
101807if test "${ac_cv_have_decl_gnutls_x509_crt_set_subject_key_id+set}" = set; then
101808  $as_echo_n "(cached) " >&6
101809else
101810  cat >conftest.$ac_ext <<_ACEOF
101811/* confdefs.h.  */
101812_ACEOF
101813cat confdefs.h >>conftest.$ac_ext
101814cat >>conftest.$ac_ext <<_ACEOF
101815/* end confdefs.h.  */
101816
101817	#include <gnutls/gnutls.h>
101818	#include <gnutls/x509.h>
101819
101820
101821int
101822main ()
101823{
101824#ifndef gnutls_x509_crt_set_subject_key_id
101825  (void) gnutls_x509_crt_set_subject_key_id;
101826#endif
101827
101828  ;
101829  return 0;
101830}
101831_ACEOF
101832rm -f conftest.$ac_objext
101833if { (ac_try="$ac_compile"
101834case "(($ac_try" in
101835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101836  *) ac_try_echo=$ac_try;;
101837esac
101838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101839$as_echo "$ac_try_echo") >&5
101840  (eval "$ac_compile") 2>conftest.er1
101841  ac_status=$?
101842  grep -v '^ *+' conftest.er1 >conftest.err
101843  rm -f conftest.er1
101844  cat conftest.err >&5
101845  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
101846  (exit $ac_status); } && {
101847	 test -z "$ac_c_werror_flag" ||
101848	 test ! -s conftest.err
101849       } && test -s conftest.$ac_objext; then
101850  ac_cv_have_decl_gnutls_x509_crt_set_subject_key_id=yes
101851else
101852  $as_echo "$as_me: failed program was:" >&5
101853sed 's/^/| /' conftest.$ac_ext >&5
101854
101855	ac_cv_have_decl_gnutls_x509_crt_set_subject_key_id=no
101856fi
101857
101858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
101859fi
101860{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gnutls_x509_crt_set_subject_key_id" >&5
101861$as_echo "$ac_cv_have_decl_gnutls_x509_crt_set_subject_key_id" >&6; }
101862if test "x$ac_cv_have_decl_gnutls_x509_crt_set_subject_key_id" = x""yes; then
101863
101864cat >>confdefs.h <<\_ACEOF
101865#define HAVE_GNUTLS_X509_CRT_SET_SUBJECT_KEY_ID 1
101866_ACEOF
101867
101868fi
101869
101870	fi
101871
101872MAKE_SETTINGS="$MAKE_SETTINGS
101873GNUTLS_LIBS = $GNUTLS_LIBS
101874GNUTLS_CFLAGS =
101875GNUTLS_CPPFLAGS =
101876GNUTLS_LDFLAGS =
101877"
101878
101879
101880fi
101881if test x$use_gnutls = xyes; then
101882	#Some older versions have a different type name
101883	{ $as_echo "$as_me:$LINENO: checking for gnutls_datum" >&5
101884$as_echo_n "checking for gnutls_datum... " >&6; }
101885if test "${ac_cv_type_gnutls_datum+set}" = set; then
101886  $as_echo_n "(cached) " >&6
101887else
101888  ac_cv_type_gnutls_datum=no
101889cat >conftest.$ac_ext <<_ACEOF
101890/* confdefs.h.  */
101891_ACEOF
101892cat confdefs.h >>conftest.$ac_ext
101893cat >>conftest.$ac_ext <<_ACEOF
101894/* end confdefs.h.  */
101895#include "gnutls/gnutls.h"
101896
101897int
101898main ()
101899{
101900if (sizeof (gnutls_datum))
101901       return 0;
101902  ;
101903  return 0;
101904}
101905_ACEOF
101906rm -f conftest.$ac_objext
101907if { (ac_try="$ac_compile"
101908case "(($ac_try" in
101909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101910  *) ac_try_echo=$ac_try;;
101911esac
101912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101913$as_echo "$ac_try_echo") >&5
101914  (eval "$ac_compile") 2>conftest.er1
101915  ac_status=$?
101916  grep -v '^ *+' conftest.er1 >conftest.err
101917  rm -f conftest.er1
101918  cat conftest.err >&5
101919  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
101920  (exit $ac_status); } && {
101921	 test -z "$ac_c_werror_flag" ||
101922	 test ! -s conftest.err
101923       } && test -s conftest.$ac_objext; then
101924  cat >conftest.$ac_ext <<_ACEOF
101925/* confdefs.h.  */
101926_ACEOF
101927cat confdefs.h >>conftest.$ac_ext
101928cat >>conftest.$ac_ext <<_ACEOF
101929/* end confdefs.h.  */
101930#include "gnutls/gnutls.h"
101931
101932int
101933main ()
101934{
101935if (sizeof ((gnutls_datum)))
101936	  return 0;
101937  ;
101938  return 0;
101939}
101940_ACEOF
101941rm -f conftest.$ac_objext
101942if { (ac_try="$ac_compile"
101943case "(($ac_try" in
101944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
101945  *) ac_try_echo=$ac_try;;
101946esac
101947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
101948$as_echo "$ac_try_echo") >&5
101949  (eval "$ac_compile") 2>conftest.er1
101950  ac_status=$?
101951  grep -v '^ *+' conftest.er1 >conftest.err
101952  rm -f conftest.er1
101953  cat conftest.err >&5
101954  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
101955  (exit $ac_status); } && {
101956	 test -z "$ac_c_werror_flag" ||
101957	 test ! -s conftest.err
101958       } && test -s conftest.$ac_objext; then
101959  :
101960else
101961  $as_echo "$as_me: failed program was:" >&5
101962sed 's/^/| /' conftest.$ac_ext >&5
101963
101964	ac_cv_type_gnutls_datum=yes
101965fi
101966
101967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
101968else
101969  $as_echo "$as_me: failed program was:" >&5
101970sed 's/^/| /' conftest.$ac_ext >&5
101971
101972
101973fi
101974
101975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
101976fi
101977{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_gnutls_datum" >&5
101978$as_echo "$ac_cv_type_gnutls_datum" >&6; }
101979if test "x$ac_cv_type_gnutls_datum" = x""yes; then
101980
101981cat >>confdefs.h <<_ACEOF
101982#define HAVE_GNUTLS_DATUM 1
101983_ACEOF
101984
101985
101986fi
101987
101988	{ $as_echo "$as_me:$LINENO: checking for gnutls_datum_t" >&5
101989$as_echo_n "checking for gnutls_datum_t... " >&6; }
101990if test "${ac_cv_type_gnutls_datum_t+set}" = set; then
101991  $as_echo_n "(cached) " >&6
101992else
101993  ac_cv_type_gnutls_datum_t=no
101994cat >conftest.$ac_ext <<_ACEOF
101995/* confdefs.h.  */
101996_ACEOF
101997cat confdefs.h >>conftest.$ac_ext
101998cat >>conftest.$ac_ext <<_ACEOF
101999/* end confdefs.h.  */
102000#include "gnutls/gnutls.h"
102001
102002int
102003main ()
102004{
102005if (sizeof (gnutls_datum_t))
102006       return 0;
102007  ;
102008  return 0;
102009}
102010_ACEOF
102011rm -f conftest.$ac_objext
102012if { (ac_try="$ac_compile"
102013case "(($ac_try" in
102014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102015  *) ac_try_echo=$ac_try;;
102016esac
102017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102018$as_echo "$ac_try_echo") >&5
102019  (eval "$ac_compile") 2>conftest.er1
102020  ac_status=$?
102021  grep -v '^ *+' conftest.er1 >conftest.err
102022  rm -f conftest.er1
102023  cat conftest.err >&5
102024  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102025  (exit $ac_status); } && {
102026	 test -z "$ac_c_werror_flag" ||
102027	 test ! -s conftest.err
102028       } && test -s conftest.$ac_objext; then
102029  cat >conftest.$ac_ext <<_ACEOF
102030/* confdefs.h.  */
102031_ACEOF
102032cat confdefs.h >>conftest.$ac_ext
102033cat >>conftest.$ac_ext <<_ACEOF
102034/* end confdefs.h.  */
102035#include "gnutls/gnutls.h"
102036
102037int
102038main ()
102039{
102040if (sizeof ((gnutls_datum_t)))
102041	  return 0;
102042  ;
102043  return 0;
102044}
102045_ACEOF
102046rm -f conftest.$ac_objext
102047if { (ac_try="$ac_compile"
102048case "(($ac_try" in
102049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102050  *) ac_try_echo=$ac_try;;
102051esac
102052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102053$as_echo "$ac_try_echo") >&5
102054  (eval "$ac_compile") 2>conftest.er1
102055  ac_status=$?
102056  grep -v '^ *+' conftest.er1 >conftest.err
102057  rm -f conftest.er1
102058  cat conftest.err >&5
102059  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102060  (exit $ac_status); } && {
102061	 test -z "$ac_c_werror_flag" ||
102062	 test ! -s conftest.err
102063       } && test -s conftest.$ac_objext; then
102064  :
102065else
102066  $as_echo "$as_me: failed program was:" >&5
102067sed 's/^/| /' conftest.$ac_ext >&5
102068
102069	ac_cv_type_gnutls_datum_t=yes
102070fi
102071
102072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
102073else
102074  $as_echo "$as_me: failed program was:" >&5
102075sed 's/^/| /' conftest.$ac_ext >&5
102076
102077
102078fi
102079
102080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
102081fi
102082{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_gnutls_datum_t" >&5
102083$as_echo "$ac_cv_type_gnutls_datum_t" >&6; }
102084if test "x$ac_cv_type_gnutls_datum_t" = x""yes; then
102085
102086cat >>confdefs.h <<_ACEOF
102087#define HAVE_GNUTLS_DATUM_T 1
102088_ACEOF
102089
102090
102091fi
102092
102093
102094cat >>confdefs.h <<\_ACEOF
102095#define ENABLE_GNUTLS 1
102096_ACEOF
102097
102098
102099for ac_header in gcrypt.h
102100do
102101as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
102102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
102103  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
102104$as_echo_n "checking for $ac_header... " >&6; }
102105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
102106  $as_echo_n "(cached) " >&6
102107fi
102108ac_res=`eval 'as_val=${'$as_ac_Header'}
102109		 $as_echo "$as_val"'`
102110	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
102111$as_echo "$ac_res" >&6; }
102112else
102113  # Is the header compilable?
102114{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
102115$as_echo_n "checking $ac_header usability... " >&6; }
102116cat >conftest.$ac_ext <<_ACEOF
102117/* confdefs.h.  */
102118_ACEOF
102119cat confdefs.h >>conftest.$ac_ext
102120cat >>conftest.$ac_ext <<_ACEOF
102121/* end confdefs.h.  */
102122$ac_includes_default
102123#include <$ac_header>
102124_ACEOF
102125rm -f conftest.$ac_objext
102126if { (ac_try="$ac_compile"
102127case "(($ac_try" in
102128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102129  *) ac_try_echo=$ac_try;;
102130esac
102131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102132$as_echo "$ac_try_echo") >&5
102133  (eval "$ac_compile") 2>conftest.er1
102134  ac_status=$?
102135  grep -v '^ *+' conftest.er1 >conftest.err
102136  rm -f conftest.er1
102137  cat conftest.err >&5
102138  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102139  (exit $ac_status); } && {
102140	 test -z "$ac_c_werror_flag" ||
102141	 test ! -s conftest.err
102142       } && test -s conftest.$ac_objext; then
102143  ac_header_compiler=yes
102144else
102145  $as_echo "$as_me: failed program was:" >&5
102146sed 's/^/| /' conftest.$ac_ext >&5
102147
102148	ac_header_compiler=no
102149fi
102150
102151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
102152{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
102153$as_echo "$ac_header_compiler" >&6; }
102154
102155# Is the header present?
102156{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
102157$as_echo_n "checking $ac_header presence... " >&6; }
102158cat >conftest.$ac_ext <<_ACEOF
102159/* confdefs.h.  */
102160_ACEOF
102161cat confdefs.h >>conftest.$ac_ext
102162cat >>conftest.$ac_ext <<_ACEOF
102163/* end confdefs.h.  */
102164#include <$ac_header>
102165_ACEOF
102166if { (ac_try="$ac_cpp conftest.$ac_ext"
102167case "(($ac_try" in
102168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102169  *) ac_try_echo=$ac_try;;
102170esac
102171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102172$as_echo "$ac_try_echo") >&5
102173  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
102174  ac_status=$?
102175  grep -v '^ *+' conftest.er1 >conftest.err
102176  rm -f conftest.er1
102177  cat conftest.err >&5
102178  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102179  (exit $ac_status); } >/dev/null && {
102180	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
102181	 test ! -s conftest.err
102182       }; then
102183  ac_header_preproc=yes
102184else
102185  $as_echo "$as_me: failed program was:" >&5
102186sed 's/^/| /' conftest.$ac_ext >&5
102187
102188  ac_header_preproc=no
102189fi
102190
102191rm -f conftest.err conftest.$ac_ext
102192{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
102193$as_echo "$ac_header_preproc" >&6; }
102194
102195# So?  What about this header?
102196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
102197  yes:no: )
102198    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
102199$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
102200    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
102201$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
102202    ac_header_preproc=yes
102203    ;;
102204  no:yes:* )
102205    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
102206$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
102207    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
102208$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
102209    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
102210$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
102211    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
102212$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
102213    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
102214$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
102215    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
102216$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
102217    ( cat <<\_ASBOX
102218## ---------------------------------------- ##
102219## Report this to samba-technical@samba.org ##
102220## ---------------------------------------- ##
102221_ASBOX
102222     ) | sed "s/^/$as_me: WARNING:     /" >&2
102223    ;;
102224esac
102225{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
102226$as_echo_n "checking for $ac_header... " >&6; }
102227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
102228  $as_echo_n "(cached) " >&6
102229else
102230  eval "$as_ac_Header=\$ac_header_preproc"
102231fi
102232ac_res=`eval 'as_val=${'$as_ac_Header'}
102233		 $as_echo "$as_val"'`
102234	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
102235$as_echo "$ac_res" >&6; }
102236
102237fi
102238as_val=`eval 'as_val=${'$as_ac_Header'}
102239		 $as_echo "$as_val"'`
102240   if test "x$as_val" = x""yes; then
102241  cat >>confdefs.h <<_ACEOF
102242#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
102243_ACEOF
102244
102245fi
102246
102247done
102248
102249
102250
102251
102252ac_check_lib_ext_save_LIBS=$LIBS
102253LIBS="-lgcrypt $GCRYPT_LIBS  $LIBS"
102254
102255
102256
102257
102258        { $as_echo "$as_me:$LINENO: checking for gcry_control in -lgcrypt" >&5
102259$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
102260if test "${ac_cv_lib_ext_gcrypt_gcry_control+set}" = set; then
102261  $as_echo_n "(cached) " >&6
102262else
102263  cat >conftest.$ac_ext <<_ACEOF
102264/* confdefs.h.  */
102265_ACEOF
102266cat confdefs.h >>conftest.$ac_ext
102267cat >>conftest.$ac_ext <<_ACEOF
102268/* end confdefs.h.  */
102269
102270/* Override any GCC internal prototype to avoid an error.
102271   Use char because int might match the return type of a GCC
102272   builtin and then its argument prototype would still apply.  */
102273#ifdef __cplusplus
102274extern "C"
102275#endif
102276char gcry_control ();
102277int
102278main ()
102279{
102280return gcry_control ();
102281  ;
102282  return 0;
102283}
102284_ACEOF
102285rm -f conftest.$ac_objext conftest$ac_exeext
102286if { (ac_try="$ac_link"
102287case "(($ac_try" in
102288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102289  *) ac_try_echo=$ac_try;;
102290esac
102291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102292$as_echo "$ac_try_echo") >&5
102293  (eval "$ac_link") 2>conftest.er1
102294  ac_status=$?
102295  grep -v '^ *+' conftest.er1 >conftest.err
102296  rm -f conftest.er1
102297  cat conftest.err >&5
102298  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102299  (exit $ac_status); } && {
102300	 test -z "$ac_c_werror_flag" ||
102301	 test ! -s conftest.err
102302       } && test -s conftest$ac_exeext && {
102303	 test "$cross_compiling" = yes ||
102304	 $as_test_x conftest$ac_exeext
102305       }; then
102306  ac_cv_lib_ext_gcrypt_gcry_control=yes;
102307		  ac_cv_lib_ext_gcrypt=yes
102308else
102309  $as_echo "$as_me: failed program was:" >&5
102310sed 's/^/| /' conftest.$ac_ext >&5
102311
102312	ac_cv_lib_ext_gcrypt_gcry_control=no;
102313		  ac_cv_lib_ext_gcrypt=no
102314fi
102315
102316rm -rf conftest.dSYM
102317rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
102318      conftest$ac_exeext conftest.$ac_ext
102319
102320fi
102321{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_gcrypt_gcry_control" >&5
102322$as_echo "$ac_cv_lib_ext_gcrypt_gcry_control" >&6; }
102323    if test $ac_cv_lib_ext_gcrypt_gcry_control = yes; then
102324  cat >>confdefs.h <<_ACEOF
102325#define HAVE_GCRY_CONTROL 1
102326_ACEOF
102327
102328fi
102329
102330LIBS=$ac_check_lib_ext_save_LIBS
102331
102332if test $ac_cv_lib_ext_gcrypt = yes; then
102333  cat >>confdefs.h <<_ACEOF
102334#define HAVE_LIBGCRYPT 1
102335_ACEOF
102336
102337		case "$GCRYPT_LIBS" in
102338		    *-lgcrypt*)
102339			;;
102340		    *)
102341			GCRYPT_LIBS="-lgcrypt $GCRYPT_LIBS"
102342			;;
102343		esac
102344
102345
102346fi
102347
102348
102349MAKE_SETTINGS="$MAKE_SETTINGS
102350GCRYPT_LIBS = $GCRYPT_LIBS
102351GCRYPT_CFLAGS =
102352GCRYPT_CPPFLAGS =
102353GCRYPT_LDFLAGS =
102354"
102355
102356
102357fi
102358
102359###############################
102360# start SMB_EXT_LIB_NETAPI
102361# check for netapi.h and -lnetapi
102362
102363use_netapi=auto
102364# Check whether --enable-netapi was given.
102365if test "${enable_netapi+set}" = set; then
102366  enableval=$enable_netapi; if test x$enable_netapi = xno; then
102367        use_netapi=no
102368    fi
102369fi
102370
102371
102372
102373#if test x$use_netapi = xauto && pkg-config --exists netapi; then
102374#	SMB_EXT_LIB_FROM_PKGCONFIG(NETAPI, netapi < 0.1,
102375#							   [use_netapi=yes],
102376#							   [use_netapi=no])
102377#fi
102378
102379
102380	MAKE_SETTINGS="$MAKE_SETTINGS
102381TORTURE_LIBNETAPI_ENABLE = NO
102382"
102383SMB_INFO_ENABLES="$SMB_INFO_ENABLES
102384\$enabled{\"TORTURE_LIBNETAPI\"} = \"NO\";"
102385
102386if test x$use_netapi != xno; then
102387
102388for ac_header in netapi.h
102389do
102390as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
102391if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
102392  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
102393$as_echo_n "checking for $ac_header... " >&6; }
102394if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
102395  $as_echo_n "(cached) " >&6
102396fi
102397ac_res=`eval 'as_val=${'$as_ac_Header'}
102398		 $as_echo "$as_val"'`
102399	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
102400$as_echo "$ac_res" >&6; }
102401else
102402  # Is the header compilable?
102403{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
102404$as_echo_n "checking $ac_header usability... " >&6; }
102405cat >conftest.$ac_ext <<_ACEOF
102406/* confdefs.h.  */
102407_ACEOF
102408cat confdefs.h >>conftest.$ac_ext
102409cat >>conftest.$ac_ext <<_ACEOF
102410/* end confdefs.h.  */
102411$ac_includes_default
102412#include <$ac_header>
102413_ACEOF
102414rm -f conftest.$ac_objext
102415if { (ac_try="$ac_compile"
102416case "(($ac_try" in
102417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102418  *) ac_try_echo=$ac_try;;
102419esac
102420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102421$as_echo "$ac_try_echo") >&5
102422  (eval "$ac_compile") 2>conftest.er1
102423  ac_status=$?
102424  grep -v '^ *+' conftest.er1 >conftest.err
102425  rm -f conftest.er1
102426  cat conftest.err >&5
102427  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102428  (exit $ac_status); } && {
102429	 test -z "$ac_c_werror_flag" ||
102430	 test ! -s conftest.err
102431       } && test -s conftest.$ac_objext; then
102432  ac_header_compiler=yes
102433else
102434  $as_echo "$as_me: failed program was:" >&5
102435sed 's/^/| /' conftest.$ac_ext >&5
102436
102437	ac_header_compiler=no
102438fi
102439
102440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
102441{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
102442$as_echo "$ac_header_compiler" >&6; }
102443
102444# Is the header present?
102445{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
102446$as_echo_n "checking $ac_header presence... " >&6; }
102447cat >conftest.$ac_ext <<_ACEOF
102448/* confdefs.h.  */
102449_ACEOF
102450cat confdefs.h >>conftest.$ac_ext
102451cat >>conftest.$ac_ext <<_ACEOF
102452/* end confdefs.h.  */
102453#include <$ac_header>
102454_ACEOF
102455if { (ac_try="$ac_cpp conftest.$ac_ext"
102456case "(($ac_try" in
102457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102458  *) ac_try_echo=$ac_try;;
102459esac
102460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102461$as_echo "$ac_try_echo") >&5
102462  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
102463  ac_status=$?
102464  grep -v '^ *+' conftest.er1 >conftest.err
102465  rm -f conftest.er1
102466  cat conftest.err >&5
102467  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102468  (exit $ac_status); } >/dev/null && {
102469	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
102470	 test ! -s conftest.err
102471       }; then
102472  ac_header_preproc=yes
102473else
102474  $as_echo "$as_me: failed program was:" >&5
102475sed 's/^/| /' conftest.$ac_ext >&5
102476
102477  ac_header_preproc=no
102478fi
102479
102480rm -f conftest.err conftest.$ac_ext
102481{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
102482$as_echo "$ac_header_preproc" >&6; }
102483
102484# So?  What about this header?
102485case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
102486  yes:no: )
102487    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
102488$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
102489    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
102490$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
102491    ac_header_preproc=yes
102492    ;;
102493  no:yes:* )
102494    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
102495$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
102496    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
102497$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
102498    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
102499$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
102500    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
102501$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
102502    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
102503$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
102504    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
102505$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
102506    ( cat <<\_ASBOX
102507## ---------------------------------------- ##
102508## Report this to samba-technical@samba.org ##
102509## ---------------------------------------- ##
102510_ASBOX
102511     ) | sed "s/^/$as_me: WARNING:     /" >&2
102512    ;;
102513esac
102514{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
102515$as_echo_n "checking for $ac_header... " >&6; }
102516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
102517  $as_echo_n "(cached) " >&6
102518else
102519  eval "$as_ac_Header=\$ac_header_preproc"
102520fi
102521ac_res=`eval 'as_val=${'$as_ac_Header'}
102522		 $as_echo "$as_val"'`
102523	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
102524$as_echo "$ac_res" >&6; }
102525
102526fi
102527as_val=`eval 'as_val=${'$as_ac_Header'}
102528		 $as_echo "$as_val"'`
102529   if test "x$as_val" = x""yes; then
102530  cat >>confdefs.h <<_ACEOF
102531#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
102532_ACEOF
102533
102534fi
102535
102536done
102537
102538
102539
102540
102541ac_check_lib_ext_save_LIBS=$LIBS
102542LIBS="-lnetapi $NETAPI_LIBS  $LIBS"
102543
102544
102545
102546
102547        { $as_echo "$as_me:$LINENO: checking for libnetapi_init in -lnetapi" >&5
102548$as_echo_n "checking for libnetapi_init in -lnetapi... " >&6; }
102549if test "${ac_cv_lib_ext_netapi_libnetapi_init+set}" = set; then
102550  $as_echo_n "(cached) " >&6
102551else
102552  cat >conftest.$ac_ext <<_ACEOF
102553/* confdefs.h.  */
102554_ACEOF
102555cat confdefs.h >>conftest.$ac_ext
102556cat >>conftest.$ac_ext <<_ACEOF
102557/* end confdefs.h.  */
102558
102559/* Override any GCC internal prototype to avoid an error.
102560   Use char because int might match the return type of a GCC
102561   builtin and then its argument prototype would still apply.  */
102562#ifdef __cplusplus
102563extern "C"
102564#endif
102565char libnetapi_init ();
102566int
102567main ()
102568{
102569return libnetapi_init ();
102570  ;
102571  return 0;
102572}
102573_ACEOF
102574rm -f conftest.$ac_objext conftest$ac_exeext
102575if { (ac_try="$ac_link"
102576case "(($ac_try" in
102577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102578  *) ac_try_echo=$ac_try;;
102579esac
102580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102581$as_echo "$ac_try_echo") >&5
102582  (eval "$ac_link") 2>conftest.er1
102583  ac_status=$?
102584  grep -v '^ *+' conftest.er1 >conftest.err
102585  rm -f conftest.er1
102586  cat conftest.err >&5
102587  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102588  (exit $ac_status); } && {
102589	 test -z "$ac_c_werror_flag" ||
102590	 test ! -s conftest.err
102591       } && test -s conftest$ac_exeext && {
102592	 test "$cross_compiling" = yes ||
102593	 $as_test_x conftest$ac_exeext
102594       }; then
102595  ac_cv_lib_ext_netapi_libnetapi_init=yes;
102596		  ac_cv_lib_ext_netapi=yes
102597else
102598  $as_echo "$as_me: failed program was:" >&5
102599sed 's/^/| /' conftest.$ac_ext >&5
102600
102601	ac_cv_lib_ext_netapi_libnetapi_init=no;
102602		  ac_cv_lib_ext_netapi=no
102603fi
102604
102605rm -rf conftest.dSYM
102606rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
102607      conftest$ac_exeext conftest.$ac_ext
102608
102609fi
102610{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_netapi_libnetapi_init" >&5
102611$as_echo "$ac_cv_lib_ext_netapi_libnetapi_init" >&6; }
102612    if test $ac_cv_lib_ext_netapi_libnetapi_init = yes; then
102613  cat >>confdefs.h <<_ACEOF
102614#define HAVE_LIBNETAPI_INIT 1
102615_ACEOF
102616
102617fi
102618
102619LIBS=$ac_check_lib_ext_save_LIBS
102620
102621if test $ac_cv_lib_ext_netapi = yes; then
102622  cat >>confdefs.h <<_ACEOF
102623#define HAVE_LIBNETAPI 1
102624_ACEOF
102625
102626		case "$NETAPI_LIBS" in
102627		    *-lnetapi*)
102628			;;
102629		    *)
102630			NETAPI_LIBS="-lnetapi $NETAPI_LIBS"
102631			;;
102632		esac
102633
102634
102635fi
102636
102637
102638
102639
102640ac_check_lib_ext_save_LIBS=$LIBS
102641LIBS="-lnetapi $NETAPI_LIBS  $LIBS"
102642
102643
102644
102645
102646        { $as_echo "$as_me:$LINENO: checking for NetUserModalsGet in -lnetapi" >&5
102647$as_echo_n "checking for NetUserModalsGet in -lnetapi... " >&6; }
102648if test "${ac_cv_lib_ext_netapi_NetUserModalsGet+set}" = set; then
102649  $as_echo_n "(cached) " >&6
102650else
102651  cat >conftest.$ac_ext <<_ACEOF
102652/* confdefs.h.  */
102653_ACEOF
102654cat confdefs.h >>conftest.$ac_ext
102655cat >>conftest.$ac_ext <<_ACEOF
102656/* end confdefs.h.  */
102657
102658/* Override any GCC internal prototype to avoid an error.
102659   Use char because int might match the return type of a GCC
102660   builtin and then its argument prototype would still apply.  */
102661#ifdef __cplusplus
102662extern "C"
102663#endif
102664char NetUserModalsGet ();
102665int
102666main ()
102667{
102668return NetUserModalsGet ();
102669  ;
102670  return 0;
102671}
102672_ACEOF
102673rm -f conftest.$ac_objext conftest$ac_exeext
102674if { (ac_try="$ac_link"
102675case "(($ac_try" in
102676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102677  *) ac_try_echo=$ac_try;;
102678esac
102679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102680$as_echo "$ac_try_echo") >&5
102681  (eval "$ac_link") 2>conftest.er1
102682  ac_status=$?
102683  grep -v '^ *+' conftest.er1 >conftest.err
102684  rm -f conftest.er1
102685  cat conftest.err >&5
102686  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102687  (exit $ac_status); } && {
102688	 test -z "$ac_c_werror_flag" ||
102689	 test ! -s conftest.err
102690       } && test -s conftest$ac_exeext && {
102691	 test "$cross_compiling" = yes ||
102692	 $as_test_x conftest$ac_exeext
102693       }; then
102694  ac_cv_lib_ext_netapi_NetUserModalsGet=yes;
102695		  ac_cv_lib_ext_netapi=yes
102696else
102697  $as_echo "$as_me: failed program was:" >&5
102698sed 's/^/| /' conftest.$ac_ext >&5
102699
102700	ac_cv_lib_ext_netapi_NetUserModalsGet=no;
102701		  ac_cv_lib_ext_netapi=no
102702fi
102703
102704rm -rf conftest.dSYM
102705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
102706      conftest$ac_exeext conftest.$ac_ext
102707
102708fi
102709{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_netapi_NetUserModalsGet" >&5
102710$as_echo "$ac_cv_lib_ext_netapi_NetUserModalsGet" >&6; }
102711    if test $ac_cv_lib_ext_netapi_NetUserModalsGet = yes; then
102712  cat >>confdefs.h <<_ACEOF
102713#define HAVE_NETUSERMODALSGET 1
102714_ACEOF
102715
102716fi
102717
102718LIBS=$ac_check_lib_ext_save_LIBS
102719
102720if test $ac_cv_lib_ext_netapi = yes; then
102721  cat >>confdefs.h <<_ACEOF
102722#define HAVE_LIBNETAPI 1
102723_ACEOF
102724
102725		case "$NETAPI_LIBS" in
102726		    *-lnetapi*)
102727			;;
102728		    *)
102729			NETAPI_LIBS="-lnetapi $NETAPI_LIBS"
102730			;;
102731		esac
102732
102733
102734fi
102735
102736
102737
102738
102739ac_check_lib_ext_save_LIBS=$LIBS
102740LIBS="-lnetapi $NETAPI_LIBS  $LIBS"
102741
102742
102743
102744
102745        { $as_echo "$as_me:$LINENO: checking for NetUserGetGroups in -lnetapi" >&5
102746$as_echo_n "checking for NetUserGetGroups in -lnetapi... " >&6; }
102747if test "${ac_cv_lib_ext_netapi_NetUserGetGroups+set}" = set; then
102748  $as_echo_n "(cached) " >&6
102749else
102750  cat >conftest.$ac_ext <<_ACEOF
102751/* confdefs.h.  */
102752_ACEOF
102753cat confdefs.h >>conftest.$ac_ext
102754cat >>conftest.$ac_ext <<_ACEOF
102755/* end confdefs.h.  */
102756
102757/* Override any GCC internal prototype to avoid an error.
102758   Use char because int might match the return type of a GCC
102759   builtin and then its argument prototype would still apply.  */
102760#ifdef __cplusplus
102761extern "C"
102762#endif
102763char NetUserGetGroups ();
102764int
102765main ()
102766{
102767return NetUserGetGroups ();
102768  ;
102769  return 0;
102770}
102771_ACEOF
102772rm -f conftest.$ac_objext conftest$ac_exeext
102773if { (ac_try="$ac_link"
102774case "(($ac_try" in
102775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102776  *) ac_try_echo=$ac_try;;
102777esac
102778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102779$as_echo "$ac_try_echo") >&5
102780  (eval "$ac_link") 2>conftest.er1
102781  ac_status=$?
102782  grep -v '^ *+' conftest.er1 >conftest.err
102783  rm -f conftest.er1
102784  cat conftest.err >&5
102785  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102786  (exit $ac_status); } && {
102787	 test -z "$ac_c_werror_flag" ||
102788	 test ! -s conftest.err
102789       } && test -s conftest$ac_exeext && {
102790	 test "$cross_compiling" = yes ||
102791	 $as_test_x conftest$ac_exeext
102792       }; then
102793  ac_cv_lib_ext_netapi_NetUserGetGroups=yes;
102794		  ac_cv_lib_ext_netapi=yes
102795else
102796  $as_echo "$as_me: failed program was:" >&5
102797sed 's/^/| /' conftest.$ac_ext >&5
102798
102799	ac_cv_lib_ext_netapi_NetUserGetGroups=no;
102800		  ac_cv_lib_ext_netapi=no
102801fi
102802
102803rm -rf conftest.dSYM
102804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
102805      conftest$ac_exeext conftest.$ac_ext
102806
102807fi
102808{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_netapi_NetUserGetGroups" >&5
102809$as_echo "$ac_cv_lib_ext_netapi_NetUserGetGroups" >&6; }
102810    if test $ac_cv_lib_ext_netapi_NetUserGetGroups = yes; then
102811  cat >>confdefs.h <<_ACEOF
102812#define HAVE_NETUSERGETGROUPS 1
102813_ACEOF
102814
102815fi
102816
102817LIBS=$ac_check_lib_ext_save_LIBS
102818
102819if test $ac_cv_lib_ext_netapi = yes; then
102820  cat >>confdefs.h <<_ACEOF
102821#define HAVE_LIBNETAPI 1
102822_ACEOF
102823
102824		case "$NETAPI_LIBS" in
102825		    *-lnetapi*)
102826			;;
102827		    *)
102828			NETAPI_LIBS="-lnetapi $NETAPI_LIBS"
102829			;;
102830		esac
102831
102832
102833fi
102834
102835
102836
102837
102838ac_check_lib_ext_save_LIBS=$LIBS
102839LIBS="-lnetapi $NETAPI_LIBS  $LIBS"
102840
102841
102842
102843
102844        { $as_echo "$as_me:$LINENO: checking for NetUserGetInfo in -lnetapi" >&5
102845$as_echo_n "checking for NetUserGetInfo in -lnetapi... " >&6; }
102846if test "${ac_cv_lib_ext_netapi_NetUserGetInfo+set}" = set; then
102847  $as_echo_n "(cached) " >&6
102848else
102849  cat >conftest.$ac_ext <<_ACEOF
102850/* confdefs.h.  */
102851_ACEOF
102852cat confdefs.h >>conftest.$ac_ext
102853cat >>conftest.$ac_ext <<_ACEOF
102854/* end confdefs.h.  */
102855
102856/* Override any GCC internal prototype to avoid an error.
102857   Use char because int might match the return type of a GCC
102858   builtin and then its argument prototype would still apply.  */
102859#ifdef __cplusplus
102860extern "C"
102861#endif
102862char NetUserGetInfo ();
102863int
102864main ()
102865{
102866return NetUserGetInfo ();
102867  ;
102868  return 0;
102869}
102870_ACEOF
102871rm -f conftest.$ac_objext conftest$ac_exeext
102872if { (ac_try="$ac_link"
102873case "(($ac_try" in
102874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102875  *) ac_try_echo=$ac_try;;
102876esac
102877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102878$as_echo "$ac_try_echo") >&5
102879  (eval "$ac_link") 2>conftest.er1
102880  ac_status=$?
102881  grep -v '^ *+' conftest.er1 >conftest.err
102882  rm -f conftest.er1
102883  cat conftest.err >&5
102884  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102885  (exit $ac_status); } && {
102886	 test -z "$ac_c_werror_flag" ||
102887	 test ! -s conftest.err
102888       } && test -s conftest$ac_exeext && {
102889	 test "$cross_compiling" = yes ||
102890	 $as_test_x conftest$ac_exeext
102891       }; then
102892  ac_cv_lib_ext_netapi_NetUserGetInfo=yes;
102893		  ac_cv_lib_ext_netapi=yes
102894else
102895  $as_echo "$as_me: failed program was:" >&5
102896sed 's/^/| /' conftest.$ac_ext >&5
102897
102898	ac_cv_lib_ext_netapi_NetUserGetInfo=no;
102899		  ac_cv_lib_ext_netapi=no
102900fi
102901
102902rm -rf conftest.dSYM
102903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
102904      conftest$ac_exeext conftest.$ac_ext
102905
102906fi
102907{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_netapi_NetUserGetInfo" >&5
102908$as_echo "$ac_cv_lib_ext_netapi_NetUserGetInfo" >&6; }
102909    if test $ac_cv_lib_ext_netapi_NetUserGetInfo = yes; then
102910  cat >>confdefs.h <<_ACEOF
102911#define HAVE_NETUSERGETINFO 1
102912_ACEOF
102913
102914fi
102915
102916LIBS=$ac_check_lib_ext_save_LIBS
102917
102918if test $ac_cv_lib_ext_netapi = yes; then
102919  cat >>confdefs.h <<_ACEOF
102920#define HAVE_LIBNETAPI 1
102921_ACEOF
102922
102923		case "$NETAPI_LIBS" in
102924		    *-lnetapi*)
102925			;;
102926		    *)
102927			NETAPI_LIBS="-lnetapi $NETAPI_LIBS"
102928			;;
102929		esac
102930
102931
102932fi
102933
102934
102935
102936
102937ac_check_lib_ext_save_LIBS=$LIBS
102938LIBS="-lnetapi $NETAPI_LIBS  $LIBS"
102939
102940
102941
102942
102943        { $as_echo "$as_me:$LINENO: checking for NetUserSetInfo in -lnetapi" >&5
102944$as_echo_n "checking for NetUserSetInfo in -lnetapi... " >&6; }
102945if test "${ac_cv_lib_ext_netapi_NetUserSetInfo+set}" = set; then
102946  $as_echo_n "(cached) " >&6
102947else
102948  cat >conftest.$ac_ext <<_ACEOF
102949/* confdefs.h.  */
102950_ACEOF
102951cat confdefs.h >>conftest.$ac_ext
102952cat >>conftest.$ac_ext <<_ACEOF
102953/* end confdefs.h.  */
102954
102955/* Override any GCC internal prototype to avoid an error.
102956   Use char because int might match the return type of a GCC
102957   builtin and then its argument prototype would still apply.  */
102958#ifdef __cplusplus
102959extern "C"
102960#endif
102961char NetUserSetInfo ();
102962int
102963main ()
102964{
102965return NetUserSetInfo ();
102966  ;
102967  return 0;
102968}
102969_ACEOF
102970rm -f conftest.$ac_objext conftest$ac_exeext
102971if { (ac_try="$ac_link"
102972case "(($ac_try" in
102973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
102974  *) ac_try_echo=$ac_try;;
102975esac
102976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
102977$as_echo "$ac_try_echo") >&5
102978  (eval "$ac_link") 2>conftest.er1
102979  ac_status=$?
102980  grep -v '^ *+' conftest.er1 >conftest.err
102981  rm -f conftest.er1
102982  cat conftest.err >&5
102983  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
102984  (exit $ac_status); } && {
102985	 test -z "$ac_c_werror_flag" ||
102986	 test ! -s conftest.err
102987       } && test -s conftest$ac_exeext && {
102988	 test "$cross_compiling" = yes ||
102989	 $as_test_x conftest$ac_exeext
102990       }; then
102991  ac_cv_lib_ext_netapi_NetUserSetInfo=yes;
102992		  ac_cv_lib_ext_netapi=yes
102993else
102994  $as_echo "$as_me: failed program was:" >&5
102995sed 's/^/| /' conftest.$ac_ext >&5
102996
102997	ac_cv_lib_ext_netapi_NetUserSetInfo=no;
102998		  ac_cv_lib_ext_netapi=no
102999fi
103000
103001rm -rf conftest.dSYM
103002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
103003      conftest$ac_exeext conftest.$ac_ext
103004
103005fi
103006{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_netapi_NetUserSetInfo" >&5
103007$as_echo "$ac_cv_lib_ext_netapi_NetUserSetInfo" >&6; }
103008    if test $ac_cv_lib_ext_netapi_NetUserSetInfo = yes; then
103009  cat >>confdefs.h <<_ACEOF
103010#define HAVE_NETUSERSETINFO 1
103011_ACEOF
103012
103013fi
103014
103015LIBS=$ac_check_lib_ext_save_LIBS
103016
103017if test $ac_cv_lib_ext_netapi = yes; then
103018  cat >>confdefs.h <<_ACEOF
103019#define HAVE_LIBNETAPI 1
103020_ACEOF
103021
103022		case "$NETAPI_LIBS" in
103023		    *-lnetapi*)
103024			;;
103025		    *)
103026			NETAPI_LIBS="-lnetapi $NETAPI_LIBS"
103027			;;
103028		esac
103029
103030
103031fi
103032
103033	if test x"$ac_cv_header_netapi_h" = x"yes" -a x"$ac_cv_lib_ext_netapi_libnetapi_init" = x"yes" -a x"$ac_cv_lib_ext_netapi_NetUserModalsGet" = x"yes" -a x"$ac_cv_lib_ext_netapi_NetUserGetGroups" = x"yes" -a x"$ac_cv_lib_ext_netapi_NetUserGetInfo" = x"yes" -a x"$ac_cv_lib_ext_netapi_NetUserSetInfo" = x"yes";then
103034
103035cat >>confdefs.h <<\_ACEOF
103036#define ENABLE_LIBNETAPI 1
103037_ACEOF
103038
103039
103040	MAKE_SETTINGS="$MAKE_SETTINGS
103041NETAPI_ENABLE = YES
103042"
103043SMB_INFO_ENABLES="$SMB_INFO_ENABLES
103044\$enabled{\"NETAPI\"} = \"YES\";"
103045
103046
103047	MAKE_SETTINGS="$MAKE_SETTINGS
103048TORTURE_LIBNETAPI_ENABLE = YES
103049"
103050SMB_INFO_ENABLES="$SMB_INFO_ENABLES
103051\$enabled{\"TORTURE_LIBNETAPI\"} = \"YES\";"
103052
103053	else
103054		if test x$use_netapi != xauto; then
103055			{ { $as_echo "$as_me:$LINENO: error: --enable-netapi: libnetapi not found" >&5
103056$as_echo "$as_me: error: --enable-netapi: libnetapi not found" >&2;}
103057   { (exit 1); exit 1; }; }
103058		fi
103059	fi
103060
103061MAKE_SETTINGS="$MAKE_SETTINGS
103062NETAPI_LIBS = $NETAPI_LIBS
103063NETAPI_CFLAGS =
103064NETAPI_CPPFLAGS =
103065NETAPI_LDFLAGS =
103066"
103067
103068
103069fi
103070
103071
103072
103073	MAKE_SETTINGS="$MAKE_SETTINGS
103074gensec_krb5_ENABLE = $HAVE_KRB5
103075"
103076SMB_INFO_ENABLES="$SMB_INFO_ENABLES
103077\$enabled{\"gensec_krb5\"} = \"$HAVE_KRB5\";"
103078
103079
103080	MAKE_SETTINGS="$MAKE_SETTINGS
103081gensec_gssapi_ENABLE = $HAVE_KRB5
103082"
103083SMB_INFO_ENABLES="$SMB_INFO_ENABLES
103084\$enabled{\"gensec_gssapi\"} = \"$HAVE_KRB5\";"
103085
103086
103087
103088
103089	MAKE_SETTINGS="$MAKE_SETTINGS
103090process_model_thread_ENABLE = NO
103091"
103092SMB_INFO_ENABLES="$SMB_INFO_ENABLES
103093\$enabled{\"process_model_thread\"} = \"NO\";"
103094
103095
103096#################################################
103097# check for pthread support
103098{ $as_echo "$as_me:$LINENO: checking whether to use pthreads" >&5
103099$as_echo_n "checking whether to use pthreads... " >&6; }
103100
103101# Check whether --with-pthreads was given.
103102if test "${with_pthreads+set}" = set; then
103103  withval=$with_pthreads;  case "$withval" in
103104	yes)
103105		{ $as_echo "$as_me:$LINENO: result: yes" >&5
103106$as_echo "yes" >&6; }
103107		if test x"$ac_cv_func_pread" != x"yes" -o x"$ac_cv_func_pwrite" != x"yes";then
103108			{ { $as_echo "$as_me:$LINENO: error: You cannot enable threads when you don't have pread/pwrite!" >&5
103109$as_echo "$as_me: error: You cannot enable threads when you don't have pread/pwrite!" >&2;}
103110   { (exit 1); exit 1; }; }
103111		fi
103112
103113	MAKE_SETTINGS="$MAKE_SETTINGS
103114process_model_thread_ENABLE = YES
103115"
103116SMB_INFO_ENABLES="$SMB_INFO_ENABLES
103117\$enabled{\"process_model_thread\"} = \"YES\";"
103118
103119
103120	MAKE_SETTINGS="$MAKE_SETTINGS
103121PTHREAD_ENABLE = YES
103122"
103123SMB_INFO_ENABLES="$SMB_INFO_ENABLES
103124\$enabled{\"PTHREAD\"} = \"YES\";"
103125
103126	;;
103127	*)
103128		{ $as_echo "$as_me:$LINENO: result: no" >&5
103129$as_echo "no" >&6; }
103130	;;
103131  esac
103132else
103133  { $as_echo "$as_me:$LINENO: result: no" >&5
103134$as_echo "no" >&6; }
103135
103136fi
103137
103138
103139
103140MAKE_SETTINGS="$MAKE_SETTINGS
103141PTHREAD_LIBS = -lpthread
103142PTHREAD_CFLAGS =
103143PTHREAD_CPPFLAGS =
103144PTHREAD_LDFLAGS =
103145"
103146
103147
103148
103149{ $as_echo "$as_me:$LINENO: checking whether to search for setproctitle support" >&5
103150$as_echo_n "checking whether to search for setproctitle support... " >&6; }
103151
103152# Check whether --with-setproctitle was given.
103153if test "${with_setproctitle+set}" = set; then
103154  withval=$with_setproctitle;  case "$withval" in
103155	yes)
103156		{ $as_echo "$as_me:$LINENO: result: yes" >&5
103157$as_echo "yes" >&6; }
103158
103159for ac_header in setproctitle.h
103160do
103161as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
103162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
103163  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
103164$as_echo_n "checking for $ac_header... " >&6; }
103165if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
103166  $as_echo_n "(cached) " >&6
103167fi
103168ac_res=`eval 'as_val=${'$as_ac_Header'}
103169		 $as_echo "$as_val"'`
103170	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
103171$as_echo "$ac_res" >&6; }
103172else
103173  # Is the header compilable?
103174{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
103175$as_echo_n "checking $ac_header usability... " >&6; }
103176cat >conftest.$ac_ext <<_ACEOF
103177/* confdefs.h.  */
103178_ACEOF
103179cat confdefs.h >>conftest.$ac_ext
103180cat >>conftest.$ac_ext <<_ACEOF
103181/* end confdefs.h.  */
103182$ac_includes_default
103183#include <$ac_header>
103184_ACEOF
103185rm -f conftest.$ac_objext
103186if { (ac_try="$ac_compile"
103187case "(($ac_try" in
103188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
103189  *) ac_try_echo=$ac_try;;
103190esac
103191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
103192$as_echo "$ac_try_echo") >&5
103193  (eval "$ac_compile") 2>conftest.er1
103194  ac_status=$?
103195  grep -v '^ *+' conftest.er1 >conftest.err
103196  rm -f conftest.er1
103197  cat conftest.err >&5
103198  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
103199  (exit $ac_status); } && {
103200	 test -z "$ac_c_werror_flag" ||
103201	 test ! -s conftest.err
103202       } && test -s conftest.$ac_objext; then
103203  ac_header_compiler=yes
103204else
103205  $as_echo "$as_me: failed program was:" >&5
103206sed 's/^/| /' conftest.$ac_ext >&5
103207
103208	ac_header_compiler=no
103209fi
103210
103211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
103212{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
103213$as_echo "$ac_header_compiler" >&6; }
103214
103215# Is the header present?
103216{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
103217$as_echo_n "checking $ac_header presence... " >&6; }
103218cat >conftest.$ac_ext <<_ACEOF
103219/* confdefs.h.  */
103220_ACEOF
103221cat confdefs.h >>conftest.$ac_ext
103222cat >>conftest.$ac_ext <<_ACEOF
103223/* end confdefs.h.  */
103224#include <$ac_header>
103225_ACEOF
103226if { (ac_try="$ac_cpp conftest.$ac_ext"
103227case "(($ac_try" in
103228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
103229  *) ac_try_echo=$ac_try;;
103230esac
103231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
103232$as_echo "$ac_try_echo") >&5
103233  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
103234  ac_status=$?
103235  grep -v '^ *+' conftest.er1 >conftest.err
103236  rm -f conftest.er1
103237  cat conftest.err >&5
103238  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
103239  (exit $ac_status); } >/dev/null && {
103240	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
103241	 test ! -s conftest.err
103242       }; then
103243  ac_header_preproc=yes
103244else
103245  $as_echo "$as_me: failed program was:" >&5
103246sed 's/^/| /' conftest.$ac_ext >&5
103247
103248  ac_header_preproc=no
103249fi
103250
103251rm -f conftest.err conftest.$ac_ext
103252{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
103253$as_echo "$ac_header_preproc" >&6; }
103254
103255# So?  What about this header?
103256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
103257  yes:no: )
103258    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
103259$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
103260    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
103261$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
103262    ac_header_preproc=yes
103263    ;;
103264  no:yes:* )
103265    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
103266$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
103267    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
103268$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
103269    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
103270$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
103271    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
103272$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
103273    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
103274$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
103275    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
103276$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
103277    ( cat <<\_ASBOX
103278## ---------------------------------------- ##
103279## Report this to samba-technical@samba.org ##
103280## ---------------------------------------- ##
103281_ASBOX
103282     ) | sed "s/^/$as_me: WARNING:     /" >&2
103283    ;;
103284esac
103285{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
103286$as_echo_n "checking for $ac_header... " >&6; }
103287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
103288  $as_echo_n "(cached) " >&6
103289else
103290  eval "$as_ac_Header=\$ac_header_preproc"
103291fi
103292ac_res=`eval 'as_val=${'$as_ac_Header'}
103293		 $as_echo "$as_val"'`
103294	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
103295$as_echo "$ac_res" >&6; }
103296
103297fi
103298as_val=`eval 'as_val=${'$as_ac_Header'}
103299		 $as_echo "$as_val"'`
103300   if test "x$as_val" = x""yes; then
103301  cat >>confdefs.h <<_ACEOF
103302#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
103303_ACEOF
103304
103305fi
103306
103307done
103308
103309		{ $as_echo "$as_me:$LINENO: checking for setproctitle" >&5
103310$as_echo_n "checking for setproctitle... " >&6; }
103311if test "${ac_cv_func_setproctitle+set}" = set; then
103312  $as_echo_n "(cached) " >&6
103313else
103314  cat >conftest.$ac_ext <<_ACEOF
103315/* confdefs.h.  */
103316_ACEOF
103317cat confdefs.h >>conftest.$ac_ext
103318cat >>conftest.$ac_ext <<_ACEOF
103319/* end confdefs.h.  */
103320/* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
103321   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
103322#define setproctitle innocuous_setproctitle
103323
103324/* System header to define __stub macros and hopefully few prototypes,
103325    which can conflict with char setproctitle (); below.
103326    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
103327    <limits.h> exists even on freestanding compilers.  */
103328
103329#ifdef __STDC__
103330# include <limits.h>
103331#else
103332# include <assert.h>
103333#endif
103334
103335#undef setproctitle
103336
103337/* Override any GCC internal prototype to avoid an error.
103338   Use char because int might match the return type of a GCC
103339   builtin and then its argument prototype would still apply.  */
103340#ifdef __cplusplus
103341extern "C"
103342#endif
103343char setproctitle ();
103344/* The GNU C library defines this for functions which it implements
103345    to always fail with ENOSYS.  Some functions are actually named
103346    something starting with __ and the normal name is an alias.  */
103347#if defined __stub_setproctitle || defined __stub___setproctitle
103348choke me
103349#endif
103350
103351int
103352main ()
103353{
103354return setproctitle ();
103355  ;
103356  return 0;
103357}
103358_ACEOF
103359rm -f conftest.$ac_objext conftest$ac_exeext
103360if { (ac_try="$ac_link"
103361case "(($ac_try" in
103362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
103363  *) ac_try_echo=$ac_try;;
103364esac
103365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
103366$as_echo "$ac_try_echo") >&5
103367  (eval "$ac_link") 2>conftest.er1
103368  ac_status=$?
103369  grep -v '^ *+' conftest.er1 >conftest.err
103370  rm -f conftest.er1
103371  cat conftest.err >&5
103372  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
103373  (exit $ac_status); } && {
103374	 test -z "$ac_c_werror_flag" ||
103375	 test ! -s conftest.err
103376       } && test -s conftest$ac_exeext && {
103377	 test "$cross_compiling" = yes ||
103378	 $as_test_x conftest$ac_exeext
103379       }; then
103380  ac_cv_func_setproctitle=yes
103381else
103382  $as_echo "$as_me: failed program was:" >&5
103383sed 's/^/| /' conftest.$ac_ext >&5
103384
103385	ac_cv_func_setproctitle=no
103386fi
103387
103388rm -rf conftest.dSYM
103389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
103390      conftest$ac_exeext conftest.$ac_ext
103391fi
103392{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
103393$as_echo "$ac_cv_func_setproctitle" >&6; }
103394if test "x$ac_cv_func_setproctitle" = x""yes; then
103395  :
103396else
103397
103398
103399
103400
103401ac_check_lib_ext_save_LIBS=$LIBS
103402LIBS="-lsetproctitle $SETPROCTITLE_LIBS  $LIBS"
103403
103404
103405
103406
103407        { $as_echo "$as_me:$LINENO: checking for setproctitle in -lsetproctitle" >&5
103408$as_echo_n "checking for setproctitle in -lsetproctitle... " >&6; }
103409if test "${ac_cv_lib_ext_setproctitle_setproctitle+set}" = set; then
103410  $as_echo_n "(cached) " >&6
103411else
103412  cat >conftest.$ac_ext <<_ACEOF
103413/* confdefs.h.  */
103414_ACEOF
103415cat confdefs.h >>conftest.$ac_ext
103416cat >>conftest.$ac_ext <<_ACEOF
103417/* end confdefs.h.  */
103418
103419/* Override any GCC internal prototype to avoid an error.
103420   Use char because int might match the return type of a GCC
103421   builtin and then its argument prototype would still apply.  */
103422#ifdef __cplusplus
103423extern "C"
103424#endif
103425char setproctitle ();
103426int
103427main ()
103428{
103429return setproctitle ();
103430  ;
103431  return 0;
103432}
103433_ACEOF
103434rm -f conftest.$ac_objext conftest$ac_exeext
103435if { (ac_try="$ac_link"
103436case "(($ac_try" in
103437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
103438  *) ac_try_echo=$ac_try;;
103439esac
103440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
103441$as_echo "$ac_try_echo") >&5
103442  (eval "$ac_link") 2>conftest.er1
103443  ac_status=$?
103444  grep -v '^ *+' conftest.er1 >conftest.err
103445  rm -f conftest.er1
103446  cat conftest.err >&5
103447  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
103448  (exit $ac_status); } && {
103449	 test -z "$ac_c_werror_flag" ||
103450	 test ! -s conftest.err
103451       } && test -s conftest$ac_exeext && {
103452	 test "$cross_compiling" = yes ||
103453	 $as_test_x conftest$ac_exeext
103454       }; then
103455  ac_cv_lib_ext_setproctitle_setproctitle=yes;
103456		  ac_cv_lib_ext_setproctitle=yes
103457else
103458  $as_echo "$as_me: failed program was:" >&5
103459sed 's/^/| /' conftest.$ac_ext >&5
103460
103461	ac_cv_lib_ext_setproctitle_setproctitle=no;
103462		  ac_cv_lib_ext_setproctitle=no
103463fi
103464
103465rm -rf conftest.dSYM
103466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
103467      conftest$ac_exeext conftest.$ac_ext
103468
103469fi
103470{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_setproctitle_setproctitle" >&5
103471$as_echo "$ac_cv_lib_ext_setproctitle_setproctitle" >&6; }
103472    if test $ac_cv_lib_ext_setproctitle_setproctitle = yes; then
103473  cat >>confdefs.h <<_ACEOF
103474#define HAVE_SETPROCTITLE 1
103475_ACEOF
103476
103477fi
103478
103479LIBS=$ac_check_lib_ext_save_LIBS
103480
103481if test $ac_cv_lib_ext_setproctitle = yes; then
103482  cat >>confdefs.h <<_ACEOF
103483#define HAVE_LIBSETPROCTITLE 1
103484_ACEOF
103485
103486		case "$SETPROCTITLE_LIBS" in
103487		    *-lsetproctitle*)
103488			;;
103489		    *)
103490			SETPROCTITLE_LIBS="-lsetproctitle $SETPROCTITLE_LIBS"
103491			;;
103492		esac
103493
103494
103495fi
103496
103497
103498fi
103499
103500		{ $as_echo "$as_me:$LINENO: checking whether to use setproctitle" >&5
103501$as_echo_n "checking whether to use setproctitle... " >&6; }
103502		if test x"$ac_cv_func_setproctitle" = x"yes" -o \
103503		   \( x"$ac_cv_header_setproctitle_h" = x"yes" -a \
103504		    x"$ac_cv_lib_ext_setproctitle_setproctitle" = x"yes" \) ; then
103505			{ $as_echo "$as_me:$LINENO: result: yes" >&5
103506$as_echo "yes" >&6; }
103507
103508	MAKE_SETTINGS="$MAKE_SETTINGS
103509SETPROCTITLE_ENABLE = YES
103510"
103511SMB_INFO_ENABLES="$SMB_INFO_ENABLES
103512\$enabled{\"SETPROCTITLE\"} = \"YES\";"
103513
103514
103515cat >>confdefs.h <<\_ACEOF
103516#define HAVE_SETPROCTITLE 1
103517_ACEOF
103518
103519		else
103520			{ $as_echo "$as_me:$LINENO: result: no" >&5
103521$as_echo "no" >&6; }
103522		fi
103523	;;
103524	*)
103525		{ $as_echo "$as_me:$LINENO: result: no" >&5
103526$as_echo "no" >&6; }
103527	;;
103528  esac
103529else
103530  { $as_echo "$as_me:$LINENO: result: no" >&5
103531$as_echo "no" >&6; }
103532
103533fi
103534
103535
103536
103537MAKE_SETTINGS="$MAKE_SETTINGS
103538SETPROCTITLE_LIBS = ${SETPROCTITLE_LIBS}
103539SETPROCTITLE_CFLAGS = ${SETPROCTITLE_CFLAGS}
103540SETPROCTITLE_CPPFLAGS = ${SETPROCTITLE_CPPFLAGS}
103541SETPROCTITLE_LDFLAGS = ${SETPROCTITLE_LDFLAGS}
103542"
103543
103544
103545
103546
103547
103548{ $as_echo "$as_me:$LINENO: checking for tv_nsec nanosecond fields in struct stat" >&5
103549$as_echo_n "checking for tv_nsec nanosecond fields in struct stat... " >&6; }
103550if test "${ac_cv_have_stat_tv_nsec+set}" = set; then
103551  $as_echo_n "(cached) " >&6
103552else
103553
103554cat >conftest.$ac_ext <<_ACEOF
103555/* confdefs.h.  */
103556_ACEOF
103557cat confdefs.h >>conftest.$ac_ext
103558cat >>conftest.$ac_ext <<_ACEOF
103559/* end confdefs.h.  */
103560
103561#include <sys/types.h>
103562#include <sys/stat.h>
103563#include <unistd.h>
103564
103565int
103566main ()
103567{
103568struct stat st;
103569 st.st_mtim.tv_nsec;
103570 st.st_atim.tv_nsec;
103571 st.st_ctim.tv_nsec;
103572
103573  ;
103574  return 0;
103575}
103576_ACEOF
103577rm -f conftest.$ac_objext
103578if { (ac_try="$ac_compile"
103579case "(($ac_try" in
103580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
103581  *) ac_try_echo=$ac_try;;
103582esac
103583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
103584$as_echo "$ac_try_echo") >&5
103585  (eval "$ac_compile") 2>conftest.er1
103586  ac_status=$?
103587  grep -v '^ *+' conftest.er1 >conftest.err
103588  rm -f conftest.er1
103589  cat conftest.err >&5
103590  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
103591  (exit $ac_status); } && {
103592	 test -z "$ac_c_werror_flag" ||
103593	 test ! -s conftest.err
103594       } && test -s conftest.$ac_objext; then
103595  ac_cv_decl_have_stat_tv_nsec=yes
103596else
103597  $as_echo "$as_me: failed program was:" >&5
103598sed 's/^/| /' conftest.$ac_ext >&5
103599
103600	ac_cv_decl_have_stat_tv_nsec=no
103601fi
103602
103603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
103604
103605fi
103606{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_stat_tv_nsec" >&5
103607$as_echo "$ac_cv_have_stat_tv_nsec" >&6; }
103608if test x"$ac_cv_decl_have_stat_tv_nsec" = x"yes"; then
103609
103610cat >>confdefs.h <<\_ACEOF
103611#define HAVE_STAT_TV_NSEC 1
103612_ACEOF
103613
103614fi
103615
103616
103617for ac_header in blkid/blkid.h
103618do
103619as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
103620if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
103621  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
103622$as_echo_n "checking for $ac_header... " >&6; }
103623if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
103624  $as_echo_n "(cached) " >&6
103625fi
103626ac_res=`eval 'as_val=${'$as_ac_Header'}
103627		 $as_echo "$as_val"'`
103628	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
103629$as_echo "$ac_res" >&6; }
103630else
103631  # Is the header compilable?
103632{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
103633$as_echo_n "checking $ac_header usability... " >&6; }
103634cat >conftest.$ac_ext <<_ACEOF
103635/* confdefs.h.  */
103636_ACEOF
103637cat confdefs.h >>conftest.$ac_ext
103638cat >>conftest.$ac_ext <<_ACEOF
103639/* end confdefs.h.  */
103640$ac_includes_default
103641#include <$ac_header>
103642_ACEOF
103643rm -f conftest.$ac_objext
103644if { (ac_try="$ac_compile"
103645case "(($ac_try" in
103646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
103647  *) ac_try_echo=$ac_try;;
103648esac
103649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
103650$as_echo "$ac_try_echo") >&5
103651  (eval "$ac_compile") 2>conftest.er1
103652  ac_status=$?
103653  grep -v '^ *+' conftest.er1 >conftest.err
103654  rm -f conftest.er1
103655  cat conftest.err >&5
103656  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
103657  (exit $ac_status); } && {
103658	 test -z "$ac_c_werror_flag" ||
103659	 test ! -s conftest.err
103660       } && test -s conftest.$ac_objext; then
103661  ac_header_compiler=yes
103662else
103663  $as_echo "$as_me: failed program was:" >&5
103664sed 's/^/| /' conftest.$ac_ext >&5
103665
103666	ac_header_compiler=no
103667fi
103668
103669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
103670{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
103671$as_echo "$ac_header_compiler" >&6; }
103672
103673# Is the header present?
103674{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
103675$as_echo_n "checking $ac_header presence... " >&6; }
103676cat >conftest.$ac_ext <<_ACEOF
103677/* confdefs.h.  */
103678_ACEOF
103679cat confdefs.h >>conftest.$ac_ext
103680cat >>conftest.$ac_ext <<_ACEOF
103681/* end confdefs.h.  */
103682#include <$ac_header>
103683_ACEOF
103684if { (ac_try="$ac_cpp conftest.$ac_ext"
103685case "(($ac_try" in
103686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
103687  *) ac_try_echo=$ac_try;;
103688esac
103689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
103690$as_echo "$ac_try_echo") >&5
103691  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
103692  ac_status=$?
103693  grep -v '^ *+' conftest.er1 >conftest.err
103694  rm -f conftest.er1
103695  cat conftest.err >&5
103696  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
103697  (exit $ac_status); } >/dev/null && {
103698	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
103699	 test ! -s conftest.err
103700       }; then
103701  ac_header_preproc=yes
103702else
103703  $as_echo "$as_me: failed program was:" >&5
103704sed 's/^/| /' conftest.$ac_ext >&5
103705
103706  ac_header_preproc=no
103707fi
103708
103709rm -f conftest.err conftest.$ac_ext
103710{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
103711$as_echo "$ac_header_preproc" >&6; }
103712
103713# So?  What about this header?
103714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
103715  yes:no: )
103716    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
103717$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
103718    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
103719$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
103720    ac_header_preproc=yes
103721    ;;
103722  no:yes:* )
103723    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
103724$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
103725    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
103726$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
103727    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
103728$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
103729    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
103730$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
103731    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
103732$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
103733    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
103734$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
103735    ( cat <<\_ASBOX
103736## ---------------------------------------- ##
103737## Report this to samba-technical@samba.org ##
103738## ---------------------------------------- ##
103739_ASBOX
103740     ) | sed "s/^/$as_me: WARNING:     /" >&2
103741    ;;
103742esac
103743{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
103744$as_echo_n "checking for $ac_header... " >&6; }
103745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
103746  $as_echo_n "(cached) " >&6
103747else
103748  eval "$as_ac_Header=\$ac_header_preproc"
103749fi
103750ac_res=`eval 'as_val=${'$as_ac_Header'}
103751		 $as_echo "$as_val"'`
103752	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
103753$as_echo "$ac_res" >&6; }
103754
103755fi
103756as_val=`eval 'as_val=${'$as_ac_Header'}
103757		 $as_echo "$as_val"'`
103758   if test "x$as_val" = x""yes; then
103759  cat >>confdefs.h <<_ACEOF
103760#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
103761_ACEOF
103762
103763fi
103764
103765done
103766
103767{ $as_echo "$as_me:$LINENO: checking for library containing blkid_get_cache" >&5
103768$as_echo_n "checking for library containing blkid_get_cache... " >&6; }
103769if test "${ac_cv_search_ext_blkid_get_cache+set}" = set; then
103770  $as_echo_n "(cached) " >&6
103771else
103772
103773ac_func_search_ext_save_LIBS=$LIBS
103774ac_cv_search_ext_blkid_get_cache=no
103775cat >conftest.$ac_ext <<_ACEOF
103776/* confdefs.h.  */
103777_ACEOF
103778cat confdefs.h >>conftest.$ac_ext
103779cat >>conftest.$ac_ext <<_ACEOF
103780/* end confdefs.h.  */
103781
103782/* Override any GCC internal prototype to avoid an error.
103783   Use char because int might match the return type of a GCC
103784   builtin and then its argument prototype would still apply.  */
103785#ifdef __cplusplus
103786extern "C"
103787#endif
103788char blkid_get_cache ();
103789int
103790main ()
103791{
103792return blkid_get_cache ();
103793  ;
103794  return 0;
103795}
103796_ACEOF
103797rm -f conftest.$ac_objext conftest$ac_exeext
103798if { (ac_try="$ac_link"
103799case "(($ac_try" in
103800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
103801  *) ac_try_echo=$ac_try;;
103802esac
103803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
103804$as_echo "$ac_try_echo") >&5
103805  (eval "$ac_link") 2>conftest.er1
103806  ac_status=$?
103807  grep -v '^ *+' conftest.er1 >conftest.err
103808  rm -f conftest.er1
103809  cat conftest.err >&5
103810  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
103811  (exit $ac_status); } && {
103812	 test -z "$ac_c_werror_flag" ||
103813	 test ! -s conftest.err
103814       } && test -s conftest$ac_exeext && {
103815	 test "$cross_compiling" = yes ||
103816	 $as_test_x conftest$ac_exeext
103817       }; then
103818  ac_cv_search_ext_blkid_get_cache="none required"
103819else
103820  $as_echo "$as_me: failed program was:" >&5
103821sed 's/^/| /' conftest.$ac_ext >&5
103822
103823
103824fi
103825
103826rm -rf conftest.dSYM
103827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
103828      conftest$ac_exeext conftest.$ac_ext
103829if test "$ac_cv_search_ext_blkid_get_cache" = no; then
103830  for ac_lib in blkid; do
103831    LIBS="-l$ac_lib $BLKID_LIBS  $ac_func_search_save_ext_LIBS"
103832    cat >conftest.$ac_ext <<_ACEOF
103833/* confdefs.h.  */
103834_ACEOF
103835cat confdefs.h >>conftest.$ac_ext
103836cat >>conftest.$ac_ext <<_ACEOF
103837/* end confdefs.h.  */
103838
103839/* Override any GCC internal prototype to avoid an error.
103840   Use char because int might match the return type of a GCC
103841   builtin and then its argument prototype would still apply.  */
103842#ifdef __cplusplus
103843extern "C"
103844#endif
103845char blkid_get_cache ();
103846int
103847main ()
103848{
103849return blkid_get_cache ();
103850  ;
103851  return 0;
103852}
103853_ACEOF
103854rm -f conftest.$ac_objext conftest$ac_exeext
103855if { (ac_try="$ac_link"
103856case "(($ac_try" in
103857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
103858  *) ac_try_echo=$ac_try;;
103859esac
103860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
103861$as_echo "$ac_try_echo") >&5
103862  (eval "$ac_link") 2>conftest.er1
103863  ac_status=$?
103864  grep -v '^ *+' conftest.er1 >conftest.err
103865  rm -f conftest.er1
103866  cat conftest.err >&5
103867  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
103868  (exit $ac_status); } && {
103869	 test -z "$ac_c_werror_flag" ||
103870	 test ! -s conftest.err
103871       } && test -s conftest$ac_exeext && {
103872	 test "$cross_compiling" = yes ||
103873	 $as_test_x conftest$ac_exeext
103874       }; then
103875  ac_cv_search_ext_blkid_get_cache="-l$ac_lib"
103876break
103877else
103878  $as_echo "$as_me: failed program was:" >&5
103879sed 's/^/| /' conftest.$ac_ext >&5
103880
103881
103882fi
103883
103884rm -rf conftest.dSYM
103885rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
103886      conftest$ac_exeext conftest.$ac_ext
103887  done
103888fi
103889LIBS=$ac_func_search_ext_save_LIBS
103890fi
103891{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_ext_blkid_get_cache" >&5
103892$as_echo "$ac_cv_search_ext_blkid_get_cache" >&6; }
103893if test "$ac_cv_search_ext_blkid_get_cache" != no; then
103894  test "$ac_cv_search_ext_blkid_get_cache" = "none required" || BLKID_LIBS="$ac_cv_search_ext_blkid_get_cache $BLKID_LIBS"
103895
103896fi
103897
103898
103899
103900
103901    ac_check_func_ext_save_LIBS=$LIBS
103902    LIBS="$BLKID_LIBS $LIBS"
103903        { $as_echo "$as_me:$LINENO: checking for blkid_get_cache" >&5
103904$as_echo_n "checking for blkid_get_cache... " >&6; }
103905if test "${ac_cv_func_ext_blkid_get_cache+set}" = set; then
103906  $as_echo_n "(cached) " >&6
103907else
103908  cat >conftest.$ac_ext <<_ACEOF
103909/* confdefs.h.  */
103910_ACEOF
103911cat confdefs.h >>conftest.$ac_ext
103912cat >>conftest.$ac_ext <<_ACEOF
103913/* end confdefs.h.  */
103914/* Define blkid_get_cache to an innocuous variant, in case <limits.h> declares blkid_get_cache.
103915   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
103916#define blkid_get_cache innocuous_blkid_get_cache
103917
103918/* System header to define __stub macros and hopefully few prototypes,
103919    which can conflict with char blkid_get_cache (); below.
103920    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
103921    <limits.h> exists even on freestanding compilers.  */
103922
103923#ifdef __STDC__
103924# include <limits.h>
103925#else
103926# include <assert.h>
103927#endif
103928
103929#undef blkid_get_cache
103930
103931/* Override any GCC internal prototype to avoid an error.
103932   Use char because int might match the return type of a GCC
103933   builtin and then its argument prototype would still apply.  */
103934#ifdef __cplusplus
103935extern "C"
103936#endif
103937char blkid_get_cache ();
103938/* The GNU C library defines this for functions which it implements
103939    to always fail with ENOSYS.  Some functions are actually named
103940    something starting with __ and the normal name is an alias.  */
103941#if defined __stub_blkid_get_cache || defined __stub___blkid_get_cache
103942choke me
103943#endif
103944
103945int
103946main ()
103947{
103948return blkid_get_cache ();
103949  ;
103950  return 0;
103951}
103952_ACEOF
103953rm -f conftest.$ac_objext conftest$ac_exeext
103954if { (ac_try="$ac_link"
103955case "(($ac_try" in
103956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
103957  *) ac_try_echo=$ac_try;;
103958esac
103959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
103960$as_echo "$ac_try_echo") >&5
103961  (eval "$ac_link") 2>conftest.er1
103962  ac_status=$?
103963  grep -v '^ *+' conftest.er1 >conftest.err
103964  rm -f conftest.er1
103965  cat conftest.err >&5
103966  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
103967  (exit $ac_status); } && {
103968	 test -z "$ac_c_werror_flag" ||
103969	 test ! -s conftest.err
103970       } && test -s conftest$ac_exeext && {
103971	 test "$cross_compiling" = yes ||
103972	 $as_test_x conftest$ac_exeext
103973       }; then
103974  ac_cv_func_ext_blkid_get_cache=yes
103975else
103976  $as_echo "$as_me: failed program was:" >&5
103977sed 's/^/| /' conftest.$ac_ext >&5
103978
103979	ac_cv_func_ext_blkid_get_cache=no
103980fi
103981
103982rm -rf conftest.dSYM
103983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
103984      conftest$ac_exeext conftest.$ac_ext
103985fi
103986{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ext_blkid_get_cache" >&5
103987$as_echo "$ac_cv_func_ext_blkid_get_cache" >&6; }
103988    LIBS=$ac_check_func_ext_save_LIBS
103989    if test $ac_cv_func_ext_blkid_get_cache = yes; then
103990  cat >>confdefs.h <<_ACEOF
103991#define HAVE_BLKID_GET_CACHE 1
103992_ACEOF
103993
103994fi
103995
103996
103997MAKE_SETTINGS="$MAKE_SETTINGS
103998BLKID_LIBS = ${BLKID_LIBS}
103999BLKID_CFLAGS = ${BLKID_CFLAGS}
104000BLKID_CPPFLAGS = ${BLKID_CPPFLAGS}
104001BLKID_LDFLAGS = ${BLKID_LDFLAGS}
104002"
104003
104004
104005if test x"$ac_cv_func_ext_blkid_get_cache" = x"yes"; then
104006
104007cat >>confdefs.h <<\_ACEOF
104008#define HAVE_LIBBLKID 1
104009_ACEOF
104010
104011
104012	MAKE_SETTINGS="$MAKE_SETTINGS
104013BLKID_ENABLE = YES
104014"
104015SMB_INFO_ENABLES="$SMB_INFO_ENABLES
104016\$enabled{\"BLKID\"} = \"YES\";"
104017
104018fi
104019
104020
104021	MAKE_SETTINGS="$MAKE_SETTINGS
104022pvfs_aio_ENABLE = NO
104023"
104024SMB_INFO_ENABLES="$SMB_INFO_ENABLES
104025\$enabled{\"pvfs_aio\"} = \"NO\";"
104026
104027if test x"$tevent_cv_aio_support" = x"yes"; then
104028
104029	MAKE_SETTINGS="$MAKE_SETTINGS
104030pvfs_aio_ENABLE = YES
104031"
104032SMB_INFO_ENABLES="$SMB_INFO_ENABLES
104033\$enabled{\"pvfs_aio\"} = \"YES\";"
104034
104035fi
104036
104037
104038for ac_func in setgroups
104039do
104040as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
104041{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
104042$as_echo_n "checking for $ac_func... " >&6; }
104043if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
104044  $as_echo_n "(cached) " >&6
104045else
104046  cat >conftest.$ac_ext <<_ACEOF
104047/* confdefs.h.  */
104048_ACEOF
104049cat confdefs.h >>conftest.$ac_ext
104050cat >>conftest.$ac_ext <<_ACEOF
104051/* end confdefs.h.  */
104052/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
104053   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
104054#define $ac_func innocuous_$ac_func
104055
104056/* System header to define __stub macros and hopefully few prototypes,
104057    which can conflict with char $ac_func (); below.
104058    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
104059    <limits.h> exists even on freestanding compilers.  */
104060
104061#ifdef __STDC__
104062# include <limits.h>
104063#else
104064# include <assert.h>
104065#endif
104066
104067#undef $ac_func
104068
104069/* Override any GCC internal prototype to avoid an error.
104070   Use char because int might match the return type of a GCC
104071   builtin and then its argument prototype would still apply.  */
104072#ifdef __cplusplus
104073extern "C"
104074#endif
104075char $ac_func ();
104076/* The GNU C library defines this for functions which it implements
104077    to always fail with ENOSYS.  Some functions are actually named
104078    something starting with __ and the normal name is an alias.  */
104079#if defined __stub_$ac_func || defined __stub___$ac_func
104080choke me
104081#endif
104082
104083int
104084main ()
104085{
104086return $ac_func ();
104087  ;
104088  return 0;
104089}
104090_ACEOF
104091rm -f conftest.$ac_objext conftest$ac_exeext
104092if { (ac_try="$ac_link"
104093case "(($ac_try" in
104094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
104095  *) ac_try_echo=$ac_try;;
104096esac
104097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
104098$as_echo "$ac_try_echo") >&5
104099  (eval "$ac_link") 2>conftest.er1
104100  ac_status=$?
104101  grep -v '^ *+' conftest.er1 >conftest.err
104102  rm -f conftest.er1
104103  cat conftest.err >&5
104104  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
104105  (exit $ac_status); } && {
104106	 test -z "$ac_c_werror_flag" ||
104107	 test ! -s conftest.err
104108       } && test -s conftest$ac_exeext && {
104109	 test "$cross_compiling" = yes ||
104110	 $as_test_x conftest$ac_exeext
104111       }; then
104112  eval "$as_ac_var=yes"
104113else
104114  $as_echo "$as_me: failed program was:" >&5
104115sed 's/^/| /' conftest.$ac_ext >&5
104116
104117	eval "$as_ac_var=no"
104118fi
104119
104120rm -rf conftest.dSYM
104121rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
104122      conftest$ac_exeext conftest.$ac_ext
104123fi
104124ac_res=`eval 'as_val=${'$as_ac_var'}
104125		 $as_echo "$as_val"'`
104126	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
104127$as_echo "$ac_res" >&6; }
104128as_val=`eval 'as_val=${'$as_ac_var'}
104129		 $as_echo "$as_val"'`
104130   if test "x$as_val" = x""yes; then
104131  cat >>confdefs.h <<_ACEOF
104132#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
104133_ACEOF
104134
104135fi
104136done
104137
104138
104139###############################
104140# start SMB_EXT_LIB_PAM
104141# check for security/pam_appl.h and -lpam
104142
104143for ac_header in security/pam_appl.h
104144do
104145as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
104146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
104147  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
104148$as_echo_n "checking for $ac_header... " >&6; }
104149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
104150  $as_echo_n "(cached) " >&6
104151fi
104152ac_res=`eval 'as_val=${'$as_ac_Header'}
104153		 $as_echo "$as_val"'`
104154	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
104155$as_echo "$ac_res" >&6; }
104156else
104157  # Is the header compilable?
104158{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
104159$as_echo_n "checking $ac_header usability... " >&6; }
104160cat >conftest.$ac_ext <<_ACEOF
104161/* confdefs.h.  */
104162_ACEOF
104163cat confdefs.h >>conftest.$ac_ext
104164cat >>conftest.$ac_ext <<_ACEOF
104165/* end confdefs.h.  */
104166$ac_includes_default
104167#include <$ac_header>
104168_ACEOF
104169rm -f conftest.$ac_objext
104170if { (ac_try="$ac_compile"
104171case "(($ac_try" in
104172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
104173  *) ac_try_echo=$ac_try;;
104174esac
104175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
104176$as_echo "$ac_try_echo") >&5
104177  (eval "$ac_compile") 2>conftest.er1
104178  ac_status=$?
104179  grep -v '^ *+' conftest.er1 >conftest.err
104180  rm -f conftest.er1
104181  cat conftest.err >&5
104182  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
104183  (exit $ac_status); } && {
104184	 test -z "$ac_c_werror_flag" ||
104185	 test ! -s conftest.err
104186       } && test -s conftest.$ac_objext; then
104187  ac_header_compiler=yes
104188else
104189  $as_echo "$as_me: failed program was:" >&5
104190sed 's/^/| /' conftest.$ac_ext >&5
104191
104192	ac_header_compiler=no
104193fi
104194
104195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
104196{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
104197$as_echo "$ac_header_compiler" >&6; }
104198
104199# Is the header present?
104200{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
104201$as_echo_n "checking $ac_header presence... " >&6; }
104202cat >conftest.$ac_ext <<_ACEOF
104203/* confdefs.h.  */
104204_ACEOF
104205cat confdefs.h >>conftest.$ac_ext
104206cat >>conftest.$ac_ext <<_ACEOF
104207/* end confdefs.h.  */
104208#include <$ac_header>
104209_ACEOF
104210if { (ac_try="$ac_cpp conftest.$ac_ext"
104211case "(($ac_try" in
104212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
104213  *) ac_try_echo=$ac_try;;
104214esac
104215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
104216$as_echo "$ac_try_echo") >&5
104217  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
104218  ac_status=$?
104219  grep -v '^ *+' conftest.er1 >conftest.err
104220  rm -f conftest.er1
104221  cat conftest.err >&5
104222  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
104223  (exit $ac_status); } >/dev/null && {
104224	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
104225	 test ! -s conftest.err
104226       }; then
104227  ac_header_preproc=yes
104228else
104229  $as_echo "$as_me: failed program was:" >&5
104230sed 's/^/| /' conftest.$ac_ext >&5
104231
104232  ac_header_preproc=no
104233fi
104234
104235rm -f conftest.err conftest.$ac_ext
104236{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
104237$as_echo "$ac_header_preproc" >&6; }
104238
104239# So?  What about this header?
104240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
104241  yes:no: )
104242    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
104243$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
104244    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
104245$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
104246    ac_header_preproc=yes
104247    ;;
104248  no:yes:* )
104249    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
104250$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
104251    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
104252$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
104253    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
104254$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
104255    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
104256$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
104257    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
104258$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
104259    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
104260$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
104261    ( cat <<\_ASBOX
104262## ---------------------------------------- ##
104263## Report this to samba-technical@samba.org ##
104264## ---------------------------------------- ##
104265_ASBOX
104266     ) | sed "s/^/$as_me: WARNING:     /" >&2
104267    ;;
104268esac
104269{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
104270$as_echo_n "checking for $ac_header... " >&6; }
104271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
104272  $as_echo_n "(cached) " >&6
104273else
104274  eval "$as_ac_Header=\$ac_header_preproc"
104275fi
104276ac_res=`eval 'as_val=${'$as_ac_Header'}
104277		 $as_echo "$as_val"'`
104278	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
104279$as_echo "$ac_res" >&6; }
104280
104281fi
104282as_val=`eval 'as_val=${'$as_ac_Header'}
104283		 $as_echo "$as_val"'`
104284   if test "x$as_val" = x""yes; then
104285  cat >>confdefs.h <<_ACEOF
104286#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
104287_ACEOF
104288
104289fi
104290
104291done
104292
104293
104294
104295
104296ac_check_lib_ext_save_LIBS=$LIBS
104297LIBS="-lpam $PAM_LIBS  $LIBS"
104298
104299
104300
104301
104302        { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
104303$as_echo_n "checking for pam_start in -lpam... " >&6; }
104304if test "${ac_cv_lib_ext_pam_pam_start+set}" = set; then
104305  $as_echo_n "(cached) " >&6
104306else
104307  cat >conftest.$ac_ext <<_ACEOF
104308/* confdefs.h.  */
104309_ACEOF
104310cat confdefs.h >>conftest.$ac_ext
104311cat >>conftest.$ac_ext <<_ACEOF
104312/* end confdefs.h.  */
104313
104314/* Override any GCC internal prototype to avoid an error.
104315   Use char because int might match the return type of a GCC
104316   builtin and then its argument prototype would still apply.  */
104317#ifdef __cplusplus
104318extern "C"
104319#endif
104320char pam_start ();
104321int
104322main ()
104323{
104324return pam_start ();
104325  ;
104326  return 0;
104327}
104328_ACEOF
104329rm -f conftest.$ac_objext conftest$ac_exeext
104330if { (ac_try="$ac_link"
104331case "(($ac_try" in
104332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
104333  *) ac_try_echo=$ac_try;;
104334esac
104335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
104336$as_echo "$ac_try_echo") >&5
104337  (eval "$ac_link") 2>conftest.er1
104338  ac_status=$?
104339  grep -v '^ *+' conftest.er1 >conftest.err
104340  rm -f conftest.er1
104341  cat conftest.err >&5
104342  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
104343  (exit $ac_status); } && {
104344	 test -z "$ac_c_werror_flag" ||
104345	 test ! -s conftest.err
104346       } && test -s conftest$ac_exeext && {
104347	 test "$cross_compiling" = yes ||
104348	 $as_test_x conftest$ac_exeext
104349       }; then
104350  ac_cv_lib_ext_pam_pam_start=yes;
104351		  ac_cv_lib_ext_pam=yes
104352else
104353  $as_echo "$as_me: failed program was:" >&5
104354sed 's/^/| /' conftest.$ac_ext >&5
104355
104356	ac_cv_lib_ext_pam_pam_start=no;
104357		  ac_cv_lib_ext_pam=no
104358fi
104359
104360rm -rf conftest.dSYM
104361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
104362      conftest$ac_exeext conftest.$ac_ext
104363
104364fi
104365{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_pam_pam_start" >&5
104366$as_echo "$ac_cv_lib_ext_pam_pam_start" >&6; }
104367    if test $ac_cv_lib_ext_pam_pam_start = yes; then
104368  cat >>confdefs.h <<_ACEOF
104369#define HAVE_PAM_START 1
104370_ACEOF
104371
104372fi
104373
104374LIBS=$ac_check_lib_ext_save_LIBS
104375
104376if test $ac_cv_lib_ext_pam = yes; then
104377  cat >>confdefs.h <<_ACEOF
104378#define HAVE_LIBPAM 1
104379_ACEOF
104380
104381		case "$PAM_LIBS" in
104382		    *-lpam*)
104383			;;
104384		    *)
104385			PAM_LIBS="-lpam $PAM_LIBS"
104386			;;
104387		esac
104388
104389
104390fi
104391
104392if test x"$ac_cv_header_security_pam_appl_h" = x"yes" -a x"$ac_cv_lib_ext_pam_pam_start" = x"yes";then
104393
104394	MAKE_SETTINGS="$MAKE_SETTINGS
104395PAM_ENABLE = YES
104396"
104397SMB_INFO_ENABLES="$SMB_INFO_ENABLES
104398\$enabled{\"PAM\"} = \"YES\";"
104399
104400fi
104401
104402MAKE_SETTINGS="$MAKE_SETTINGS
104403PAM_LIBS = $PAM_LIBS
104404PAM_CFLAGS =
104405PAM_CPPFLAGS =
104406PAM_LDFLAGS =
104407"
104408
104409
104410# end SMB_EXT_LIB_PAM
104411###############################
104412
104413################################################
104414# test for where we get crypt() from
104415
104416
104417
104418ac_check_lib_ext_save_LIBS=$LIBS
104419LIBS="-lcrypt $CRYPT_LIBS  $LIBS"
104420
104421
104422
104423
104424        { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
104425$as_echo_n "checking for crypt in -lcrypt... " >&6; }
104426if test "${ac_cv_lib_ext_crypt_crypt+set}" = set; then
104427  $as_echo_n "(cached) " >&6
104428else
104429  cat >conftest.$ac_ext <<_ACEOF
104430/* confdefs.h.  */
104431_ACEOF
104432cat confdefs.h >>conftest.$ac_ext
104433cat >>conftest.$ac_ext <<_ACEOF
104434/* end confdefs.h.  */
104435
104436/* Override any GCC internal prototype to avoid an error.
104437   Use char because int might match the return type of a GCC
104438   builtin and then its argument prototype would still apply.  */
104439#ifdef __cplusplus
104440extern "C"
104441#endif
104442char crypt ();
104443int
104444main ()
104445{
104446return crypt ();
104447  ;
104448  return 0;
104449}
104450_ACEOF
104451rm -f conftest.$ac_objext conftest$ac_exeext
104452if { (ac_try="$ac_link"
104453case "(($ac_try" in
104454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
104455  *) ac_try_echo=$ac_try;;
104456esac
104457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
104458$as_echo "$ac_try_echo") >&5
104459  (eval "$ac_link") 2>conftest.er1
104460  ac_status=$?
104461  grep -v '^ *+' conftest.er1 >conftest.err
104462  rm -f conftest.er1
104463  cat conftest.err >&5
104464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
104465  (exit $ac_status); } && {
104466	 test -z "$ac_c_werror_flag" ||
104467	 test ! -s conftest.err
104468       } && test -s conftest$ac_exeext && {
104469	 test "$cross_compiling" = yes ||
104470	 $as_test_x conftest$ac_exeext
104471       }; then
104472  ac_cv_lib_ext_crypt_crypt=yes;
104473		  ac_cv_lib_ext_crypt=yes
104474else
104475  $as_echo "$as_me: failed program was:" >&5
104476sed 's/^/| /' conftest.$ac_ext >&5
104477
104478	ac_cv_lib_ext_crypt_crypt=no;
104479		  ac_cv_lib_ext_crypt=no
104480fi
104481
104482rm -rf conftest.dSYM
104483rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
104484      conftest$ac_exeext conftest.$ac_ext
104485
104486fi
104487{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_crypt_crypt" >&5
104488$as_echo "$ac_cv_lib_ext_crypt_crypt" >&6; }
104489    if test $ac_cv_lib_ext_crypt_crypt = yes; then
104490  cat >>confdefs.h <<_ACEOF
104491#define HAVE_CRYPT 1
104492_ACEOF
104493
104494fi
104495
104496LIBS=$ac_check_lib_ext_save_LIBS
104497
104498if test $ac_cv_lib_ext_crypt = yes; then
104499  cat >>confdefs.h <<_ACEOF
104500#define HAVE_LIBCRYPT 1
104501_ACEOF
104502
104503		case "$CRYPT_LIBS" in
104504		    *-lcrypt*)
104505			;;
104506		    *)
104507			CRYPT_LIBS="-lcrypt $CRYPT_LIBS"
104508			;;
104509		esac
104510
104511
104512fi
104513
104514
104515	MAKE_SETTINGS="$MAKE_SETTINGS
104516CRYPT_ENABLE = YES
104517"
104518SMB_INFO_ENABLES="$SMB_INFO_ENABLES
104519\$enabled{\"CRYPT\"} = \"YES\";"
104520
104521
104522MAKE_SETTINGS="$MAKE_SETTINGS
104523CRYPT_LIBS = $CRYPT_LIBS
104524CRYPT_CFLAGS =
104525CRYPT_CPPFLAGS =
104526CRYPT_LDFLAGS =
104527"
104528
104529
104530
104531
104532
104533
104534for ac_func in crypt16 getauthuid getpwanam
104535do
104536as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
104537{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
104538$as_echo_n "checking for $ac_func... " >&6; }
104539if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
104540  $as_echo_n "(cached) " >&6
104541else
104542  cat >conftest.$ac_ext <<_ACEOF
104543/* confdefs.h.  */
104544_ACEOF
104545cat confdefs.h >>conftest.$ac_ext
104546cat >>conftest.$ac_ext <<_ACEOF
104547/* end confdefs.h.  */
104548/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
104549   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
104550#define $ac_func innocuous_$ac_func
104551
104552/* System header to define __stub macros and hopefully few prototypes,
104553    which can conflict with char $ac_func (); below.
104554    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
104555    <limits.h> exists even on freestanding compilers.  */
104556
104557#ifdef __STDC__
104558# include <limits.h>
104559#else
104560# include <assert.h>
104561#endif
104562
104563#undef $ac_func
104564
104565/* Override any GCC internal prototype to avoid an error.
104566   Use char because int might match the return type of a GCC
104567   builtin and then its argument prototype would still apply.  */
104568#ifdef __cplusplus
104569extern "C"
104570#endif
104571char $ac_func ();
104572/* The GNU C library defines this for functions which it implements
104573    to always fail with ENOSYS.  Some functions are actually named
104574    something starting with __ and the normal name is an alias.  */
104575#if defined __stub_$ac_func || defined __stub___$ac_func
104576choke me
104577#endif
104578
104579int
104580main ()
104581{
104582return $ac_func ();
104583  ;
104584  return 0;
104585}
104586_ACEOF
104587rm -f conftest.$ac_objext conftest$ac_exeext
104588if { (ac_try="$ac_link"
104589case "(($ac_try" in
104590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
104591  *) ac_try_echo=$ac_try;;
104592esac
104593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
104594$as_echo "$ac_try_echo") >&5
104595  (eval "$ac_link") 2>conftest.er1
104596  ac_status=$?
104597  grep -v '^ *+' conftest.er1 >conftest.err
104598  rm -f conftest.er1
104599  cat conftest.err >&5
104600  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
104601  (exit $ac_status); } && {
104602	 test -z "$ac_c_werror_flag" ||
104603	 test ! -s conftest.err
104604       } && test -s conftest$ac_exeext && {
104605	 test "$cross_compiling" = yes ||
104606	 $as_test_x conftest$ac_exeext
104607       }; then
104608  eval "$as_ac_var=yes"
104609else
104610  $as_echo "$as_me: failed program was:" >&5
104611sed 's/^/| /' conftest.$ac_ext >&5
104612
104613	eval "$as_ac_var=no"
104614fi
104615
104616rm -rf conftest.dSYM
104617rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
104618      conftest$ac_exeext conftest.$ac_ext
104619fi
104620ac_res=`eval 'as_val=${'$as_ac_var'}
104621		 $as_echo "$as_val"'`
104622	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
104623$as_echo "$ac_res" >&6; }
104624as_val=`eval 'as_val=${'$as_ac_var'}
104625		 $as_echo "$as_val"'`
104626   if test "x$as_val" = x""yes; then
104627  cat >>confdefs.h <<_ACEOF
104628#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
104629_ACEOF
104630
104631fi
104632done
104633
104634
104635
104636for ac_header in sasl/sasl.h
104637do
104638as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
104639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
104640  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
104641$as_echo_n "checking for $ac_header... " >&6; }
104642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
104643  $as_echo_n "(cached) " >&6
104644fi
104645ac_res=`eval 'as_val=${'$as_ac_Header'}
104646		 $as_echo "$as_val"'`
104647	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
104648$as_echo "$ac_res" >&6; }
104649else
104650  # Is the header compilable?
104651{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
104652$as_echo_n "checking $ac_header usability... " >&6; }
104653cat >conftest.$ac_ext <<_ACEOF
104654/* confdefs.h.  */
104655_ACEOF
104656cat confdefs.h >>conftest.$ac_ext
104657cat >>conftest.$ac_ext <<_ACEOF
104658/* end confdefs.h.  */
104659$ac_includes_default
104660#include <$ac_header>
104661_ACEOF
104662rm -f conftest.$ac_objext
104663if { (ac_try="$ac_compile"
104664case "(($ac_try" in
104665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
104666  *) ac_try_echo=$ac_try;;
104667esac
104668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
104669$as_echo "$ac_try_echo") >&5
104670  (eval "$ac_compile") 2>conftest.er1
104671  ac_status=$?
104672  grep -v '^ *+' conftest.er1 >conftest.err
104673  rm -f conftest.er1
104674  cat conftest.err >&5
104675  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
104676  (exit $ac_status); } && {
104677	 test -z "$ac_c_werror_flag" ||
104678	 test ! -s conftest.err
104679       } && test -s conftest.$ac_objext; then
104680  ac_header_compiler=yes
104681else
104682  $as_echo "$as_me: failed program was:" >&5
104683sed 's/^/| /' conftest.$ac_ext >&5
104684
104685	ac_header_compiler=no
104686fi
104687
104688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
104689{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
104690$as_echo "$ac_header_compiler" >&6; }
104691
104692# Is the header present?
104693{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
104694$as_echo_n "checking $ac_header presence... " >&6; }
104695cat >conftest.$ac_ext <<_ACEOF
104696/* confdefs.h.  */
104697_ACEOF
104698cat confdefs.h >>conftest.$ac_ext
104699cat >>conftest.$ac_ext <<_ACEOF
104700/* end confdefs.h.  */
104701#include <$ac_header>
104702_ACEOF
104703if { (ac_try="$ac_cpp conftest.$ac_ext"
104704case "(($ac_try" in
104705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
104706  *) ac_try_echo=$ac_try;;
104707esac
104708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
104709$as_echo "$ac_try_echo") >&5
104710  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
104711  ac_status=$?
104712  grep -v '^ *+' conftest.er1 >conftest.err
104713  rm -f conftest.er1
104714  cat conftest.err >&5
104715  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
104716  (exit $ac_status); } >/dev/null && {
104717	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
104718	 test ! -s conftest.err
104719       }; then
104720  ac_header_preproc=yes
104721else
104722  $as_echo "$as_me: failed program was:" >&5
104723sed 's/^/| /' conftest.$ac_ext >&5
104724
104725  ac_header_preproc=no
104726fi
104727
104728rm -f conftest.err conftest.$ac_ext
104729{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
104730$as_echo "$ac_header_preproc" >&6; }
104731
104732# So?  What about this header?
104733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
104734  yes:no: )
104735    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
104736$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
104737    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
104738$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
104739    ac_header_preproc=yes
104740    ;;
104741  no:yes:* )
104742    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
104743$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
104744    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
104745$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
104746    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
104747$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
104748    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
104749$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
104750    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
104751$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
104752    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
104753$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
104754    ( cat <<\_ASBOX
104755## ---------------------------------------- ##
104756## Report this to samba-technical@samba.org ##
104757## ---------------------------------------- ##
104758_ASBOX
104759     ) | sed "s/^/$as_me: WARNING:     /" >&2
104760    ;;
104761esac
104762{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
104763$as_echo_n "checking for $ac_header... " >&6; }
104764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
104765  $as_echo_n "(cached) " >&6
104766else
104767  eval "$as_ac_Header=\$ac_header_preproc"
104768fi
104769ac_res=`eval 'as_val=${'$as_ac_Header'}
104770		 $as_echo "$as_val"'`
104771	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
104772$as_echo "$ac_res" >&6; }
104773
104774fi
104775as_val=`eval 'as_val=${'$as_ac_Header'}
104776		 $as_echo "$as_val"'`
104777   if test "x$as_val" = x""yes; then
104778  cat >>confdefs.h <<_ACEOF
104779#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
104780_ACEOF
104781
104782fi
104783
104784done
104785
104786
104787
104788
104789ac_check_lib_ext_save_LIBS=$LIBS
104790LIBS="-lsasl2 $SASL_LIBS  $LIBS"
104791
104792
104793
104794
104795        { $as_echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
104796$as_echo_n "checking for sasl_client_init in -lsasl2... " >&6; }
104797if test "${ac_cv_lib_ext_sasl2_sasl_client_init+set}" = set; then
104798  $as_echo_n "(cached) " >&6
104799else
104800  cat >conftest.$ac_ext <<_ACEOF
104801/* confdefs.h.  */
104802_ACEOF
104803cat confdefs.h >>conftest.$ac_ext
104804cat >>conftest.$ac_ext <<_ACEOF
104805/* end confdefs.h.  */
104806
104807/* Override any GCC internal prototype to avoid an error.
104808   Use char because int might match the return type of a GCC
104809   builtin and then its argument prototype would still apply.  */
104810#ifdef __cplusplus
104811extern "C"
104812#endif
104813char sasl_client_init ();
104814int
104815main ()
104816{
104817return sasl_client_init ();
104818  ;
104819  return 0;
104820}
104821_ACEOF
104822rm -f conftest.$ac_objext conftest$ac_exeext
104823if { (ac_try="$ac_link"
104824case "(($ac_try" in
104825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
104826  *) ac_try_echo=$ac_try;;
104827esac
104828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
104829$as_echo "$ac_try_echo") >&5
104830  (eval "$ac_link") 2>conftest.er1
104831  ac_status=$?
104832  grep -v '^ *+' conftest.er1 >conftest.err
104833  rm -f conftest.er1
104834  cat conftest.err >&5
104835  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
104836  (exit $ac_status); } && {
104837	 test -z "$ac_c_werror_flag" ||
104838	 test ! -s conftest.err
104839       } && test -s conftest$ac_exeext && {
104840	 test "$cross_compiling" = yes ||
104841	 $as_test_x conftest$ac_exeext
104842       }; then
104843  ac_cv_lib_ext_sasl2_sasl_client_init=yes;
104844		  ac_cv_lib_ext_sasl2=yes
104845else
104846  $as_echo "$as_me: failed program was:" >&5
104847sed 's/^/| /' conftest.$ac_ext >&5
104848
104849	ac_cv_lib_ext_sasl2_sasl_client_init=no;
104850		  ac_cv_lib_ext_sasl2=no
104851fi
104852
104853rm -rf conftest.dSYM
104854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
104855      conftest$ac_exeext conftest.$ac_ext
104856
104857fi
104858{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_sasl2_sasl_client_init" >&5
104859$as_echo "$ac_cv_lib_ext_sasl2_sasl_client_init" >&6; }
104860    if test $ac_cv_lib_ext_sasl2_sasl_client_init = yes; then
104861  cat >>confdefs.h <<_ACEOF
104862#define HAVE_SASL_CLIENT_INIT 1
104863_ACEOF
104864
104865fi
104866
104867LIBS=$ac_check_lib_ext_save_LIBS
104868
104869if test $ac_cv_lib_ext_sasl2 = yes; then
104870  cat >>confdefs.h <<_ACEOF
104871#define HAVE_LIBSASL2 1
104872_ACEOF
104873
104874		case "$SASL_LIBS" in
104875		    *-lsasl2*)
104876			;;
104877		    *)
104878			SASL_LIBS="-lsasl2 $SASL_LIBS"
104879			;;
104880		esac
104881
104882
104883fi
104884
104885
104886if test x"$ac_cv_header_sasl_sasl_h" = x"yes" -a x"$ac_cv_lib_ext_sasl2_sasl_client_init" = x"yes";then
104887
104888	MAKE_SETTINGS="$MAKE_SETTINGS
104889SASL_ENABLE = YES
104890"
104891SMB_INFO_ENABLES="$SMB_INFO_ENABLES
104892\$enabled{\"SASL\"} = \"YES\";"
104893
104894
104895	MAKE_SETTINGS="$MAKE_SETTINGS
104896cyrus_sasl_ENABLE = YES
104897"
104898SMB_INFO_ENABLES="$SMB_INFO_ENABLES
104899\$enabled{\"cyrus_sasl\"} = \"YES\";"
104900
104901	SASL_CFLAGS="$CFLAGS"
104902	SASL_CPPFLAGS="$CPPFLAGS"
104903	SASL_LDFLAGS="$LDFLAGS"
104904
104905  ac_new_flags=""
104906  l=""
104907  for i in $SASL_LDFLAGS; do
104908    case $l$i in
104909    -L/usr/lib) ;;
104910    -L/usr/lib/) ;;
104911    -L/usr/lib64) ;;
104912    -L/usr/lib64/) ;;
104913    -Wl,-rpath,/usr/lib) l="";;
104914    -Wl,-rpath,/usr/lib/) l="";;
104915    -Wl,-rpath,/usr/lib64) l="";;
104916    -Wl,-rpath,/usr/lib64/) l="";;
104917    -Wl,-rpath) l=$i;;
104918    -Wl,-rpath-Wl,/usr/lib) l="";;
104919    -Wl,-rpath-Wl,/usr/lib/) l="";;
104920    -Wl,-rpath-Wl,/usr/lib64) l="";;
104921    -Wl,-rpath-Wl,/usr/lib64/) l="";;
104922    *)
104923    	s=" "
104924        if test x"$ac_new_flags" = x""; then
104925            s="";
104926	fi
104927        if test x"$l" = x""; then
104928            ac_new_flags="$ac_new_flags$s$i";
104929        else
104930            ac_new_flags="$ac_new_flags$s$l $i";
104931        fi
104932        l=""
104933        ;;
104934    esac
104935  done
104936  SASL_LDFLAGS=$ac_new_flags
104937
104938
104939  ac_new_flags=""
104940  for i in $SASL_CPPFLAGS; do
104941    case $i in
104942    -I/usr/include|-I/usr/include/) ;;
104943    *) ac_new_flags="$ac_new_flags $i" ;;
104944    esac
104945  done
104946  SASL_CPPFLAGS=$ac_new_flags
104947
104948
104949  ac_new_flags=""
104950  for i in $SASL_CFLAGS; do
104951    case $i in
104952    -I/usr/include|-I/usr/include/) ;;
104953    *) ac_new_flags="$ac_new_flags $i" ;;
104954    esac
104955  done
104956  SASL_CFLAGS=$ac_new_flags
104957
104958else
104959
104960	MAKE_SETTINGS="$MAKE_SETTINGS
104961cyrus_sasl_ENABLE = NO
104962"
104963SMB_INFO_ENABLES="$SMB_INFO_ENABLES
104964\$enabled{\"cyrus_sasl\"} = \"NO\";"
104965
104966fi
104967
104968
104969MAKE_SETTINGS="$MAKE_SETTINGS
104970SASL_LIBS = $SASL_LIBS
104971SASL_CFLAGS = ${SASL_CFLAGS}
104972SASL_CPPFLAGS = ${SASL_CPPFLAGS}
104973SASL_LDFLAGS = ${SASL_LDFLAGS}
104974"
104975
104976
104977
104978
104979	MAKE_SETTINGS="$MAKE_SETTINGS
104980server_service_kdc_ENABLE = $HAVE_KRB5
104981"
104982SMB_INFO_ENABLES="$SMB_INFO_ENABLES
104983\$enabled{\"server_service_kdc\"} = \"$HAVE_KRB5\";"
104984
104985
104986
104987
104988
104989for ac_header in linux/inotify.h asm/unistd.h sys/inotify.h
104990do
104991as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
104992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
104993  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
104994$as_echo_n "checking for $ac_header... " >&6; }
104995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
104996  $as_echo_n "(cached) " >&6
104997fi
104998ac_res=`eval 'as_val=${'$as_ac_Header'}
104999		 $as_echo "$as_val"'`
105000	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
105001$as_echo "$ac_res" >&6; }
105002else
105003  # Is the header compilable?
105004{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
105005$as_echo_n "checking $ac_header usability... " >&6; }
105006cat >conftest.$ac_ext <<_ACEOF
105007/* confdefs.h.  */
105008_ACEOF
105009cat confdefs.h >>conftest.$ac_ext
105010cat >>conftest.$ac_ext <<_ACEOF
105011/* end confdefs.h.  */
105012$ac_includes_default
105013#include <$ac_header>
105014_ACEOF
105015rm -f conftest.$ac_objext
105016if { (ac_try="$ac_compile"
105017case "(($ac_try" in
105018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105019  *) ac_try_echo=$ac_try;;
105020esac
105021eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105022$as_echo "$ac_try_echo") >&5
105023  (eval "$ac_compile") 2>conftest.er1
105024  ac_status=$?
105025  grep -v '^ *+' conftest.er1 >conftest.err
105026  rm -f conftest.er1
105027  cat conftest.err >&5
105028  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105029  (exit $ac_status); } && {
105030	 test -z "$ac_c_werror_flag" ||
105031	 test ! -s conftest.err
105032       } && test -s conftest.$ac_objext; then
105033  ac_header_compiler=yes
105034else
105035  $as_echo "$as_me: failed program was:" >&5
105036sed 's/^/| /' conftest.$ac_ext >&5
105037
105038	ac_header_compiler=no
105039fi
105040
105041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
105042{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
105043$as_echo "$ac_header_compiler" >&6; }
105044
105045# Is the header present?
105046{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
105047$as_echo_n "checking $ac_header presence... " >&6; }
105048cat >conftest.$ac_ext <<_ACEOF
105049/* confdefs.h.  */
105050_ACEOF
105051cat confdefs.h >>conftest.$ac_ext
105052cat >>conftest.$ac_ext <<_ACEOF
105053/* end confdefs.h.  */
105054#include <$ac_header>
105055_ACEOF
105056if { (ac_try="$ac_cpp conftest.$ac_ext"
105057case "(($ac_try" in
105058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105059  *) ac_try_echo=$ac_try;;
105060esac
105061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105062$as_echo "$ac_try_echo") >&5
105063  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
105064  ac_status=$?
105065  grep -v '^ *+' conftest.er1 >conftest.err
105066  rm -f conftest.er1
105067  cat conftest.err >&5
105068  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105069  (exit $ac_status); } >/dev/null && {
105070	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
105071	 test ! -s conftest.err
105072       }; then
105073  ac_header_preproc=yes
105074else
105075  $as_echo "$as_me: failed program was:" >&5
105076sed 's/^/| /' conftest.$ac_ext >&5
105077
105078  ac_header_preproc=no
105079fi
105080
105081rm -f conftest.err conftest.$ac_ext
105082{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
105083$as_echo "$ac_header_preproc" >&6; }
105084
105085# So?  What about this header?
105086case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
105087  yes:no: )
105088    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
105089$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
105090    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
105091$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
105092    ac_header_preproc=yes
105093    ;;
105094  no:yes:* )
105095    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
105096$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
105097    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
105098$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
105099    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
105100$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
105101    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
105102$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
105103    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
105104$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
105105    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
105106$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
105107    ( cat <<\_ASBOX
105108## ---------------------------------------- ##
105109## Report this to samba-technical@samba.org ##
105110## ---------------------------------------- ##
105111_ASBOX
105112     ) | sed "s/^/$as_me: WARNING:     /" >&2
105113    ;;
105114esac
105115{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
105116$as_echo_n "checking for $ac_header... " >&6; }
105117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
105118  $as_echo_n "(cached) " >&6
105119else
105120  eval "$as_ac_Header=\$ac_header_preproc"
105121fi
105122ac_res=`eval 'as_val=${'$as_ac_Header'}
105123		 $as_echo "$as_val"'`
105124	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
105125$as_echo "$ac_res" >&6; }
105126
105127fi
105128as_val=`eval 'as_val=${'$as_ac_Header'}
105129		 $as_echo "$as_val"'`
105130   if test "x$as_val" = x""yes; then
105131  cat >>confdefs.h <<_ACEOF
105132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
105133_ACEOF
105134
105135fi
105136
105137done
105138
105139{ $as_echo "$as_me:$LINENO: checking for inotify_init" >&5
105140$as_echo_n "checking for inotify_init... " >&6; }
105141if test "${ac_cv_func_inotify_init+set}" = set; then
105142  $as_echo_n "(cached) " >&6
105143else
105144  cat >conftest.$ac_ext <<_ACEOF
105145/* confdefs.h.  */
105146_ACEOF
105147cat confdefs.h >>conftest.$ac_ext
105148cat >>conftest.$ac_ext <<_ACEOF
105149/* end confdefs.h.  */
105150/* Define inotify_init to an innocuous variant, in case <limits.h> declares inotify_init.
105151   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
105152#define inotify_init innocuous_inotify_init
105153
105154/* System header to define __stub macros and hopefully few prototypes,
105155    which can conflict with char inotify_init (); below.
105156    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
105157    <limits.h> exists even on freestanding compilers.  */
105158
105159#ifdef __STDC__
105160# include <limits.h>
105161#else
105162# include <assert.h>
105163#endif
105164
105165#undef inotify_init
105166
105167/* Override any GCC internal prototype to avoid an error.
105168   Use char because int might match the return type of a GCC
105169   builtin and then its argument prototype would still apply.  */
105170#ifdef __cplusplus
105171extern "C"
105172#endif
105173char inotify_init ();
105174/* The GNU C library defines this for functions which it implements
105175    to always fail with ENOSYS.  Some functions are actually named
105176    something starting with __ and the normal name is an alias.  */
105177#if defined __stub_inotify_init || defined __stub___inotify_init
105178choke me
105179#endif
105180
105181int
105182main ()
105183{
105184return inotify_init ();
105185  ;
105186  return 0;
105187}
105188_ACEOF
105189rm -f conftest.$ac_objext conftest$ac_exeext
105190if { (ac_try="$ac_link"
105191case "(($ac_try" in
105192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105193  *) ac_try_echo=$ac_try;;
105194esac
105195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105196$as_echo "$ac_try_echo") >&5
105197  (eval "$ac_link") 2>conftest.er1
105198  ac_status=$?
105199  grep -v '^ *+' conftest.er1 >conftest.err
105200  rm -f conftest.er1
105201  cat conftest.err >&5
105202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105203  (exit $ac_status); } && {
105204	 test -z "$ac_c_werror_flag" ||
105205	 test ! -s conftest.err
105206       } && test -s conftest$ac_exeext && {
105207	 test "$cross_compiling" = yes ||
105208	 $as_test_x conftest$ac_exeext
105209       }; then
105210  ac_cv_func_inotify_init=yes
105211else
105212  $as_echo "$as_me: failed program was:" >&5
105213sed 's/^/| /' conftest.$ac_ext >&5
105214
105215	ac_cv_func_inotify_init=no
105216fi
105217
105218rm -rf conftest.dSYM
105219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
105220      conftest$ac_exeext conftest.$ac_ext
105221fi
105222{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_inotify_init" >&5
105223$as_echo "$ac_cv_func_inotify_init" >&6; }
105224
105225
105226 { $as_echo "$as_me:$LINENO: checking for __NR_inotify_init declaration" >&5
105227$as_echo_n "checking for __NR_inotify_init declaration... " >&6; }
105228if test "${ac_cv_have___NR_inotify_init_decl+set}" = set; then
105229  $as_echo_n "(cached) " >&6
105230else
105231
105232    cat >conftest.$ac_ext <<_ACEOF
105233/* confdefs.h.  */
105234_ACEOF
105235cat confdefs.h >>conftest.$ac_ext
105236cat >>conftest.$ac_ext <<_ACEOF
105237/* end confdefs.h.  */
105238#include <asm/unistd.h>
105239int
105240main ()
105241{
105242int i = (int)__NR_inotify_init
105243  ;
105244  return 0;
105245}
105246_ACEOF
105247rm -f conftest.$ac_objext
105248if { (ac_try="$ac_compile"
105249case "(($ac_try" in
105250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105251  *) ac_try_echo=$ac_try;;
105252esac
105253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105254$as_echo "$ac_try_echo") >&5
105255  (eval "$ac_compile") 2>conftest.er1
105256  ac_status=$?
105257  grep -v '^ *+' conftest.er1 >conftest.err
105258  rm -f conftest.er1
105259  cat conftest.err >&5
105260  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105261  (exit $ac_status); } && {
105262	 test -z "$ac_c_werror_flag" ||
105263	 test ! -s conftest.err
105264       } && test -s conftest.$ac_objext; then
105265  ac_cv_have___NR_inotify_init_decl=yes
105266else
105267  $as_echo "$as_me: failed program was:" >&5
105268sed 's/^/| /' conftest.$ac_ext >&5
105269
105270	ac_cv_have___NR_inotify_init_decl=no
105271fi
105272
105273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
105274fi
105275{ $as_echo "$as_me:$LINENO: result: $ac_cv_have___NR_inotify_init_decl" >&5
105276$as_echo "$ac_cv_have___NR_inotify_init_decl" >&6; }
105277 if test x"$ac_cv_have___NR_inotify_init_decl" = x"yes"; then
105278
105279cat >>confdefs.h <<\_ACEOF
105280#define HAVE___NR_INOTIFY_INIT_DECL 1
105281_ACEOF
105282
105283 fi
105284
105285
105286
105287	MAKE_SETTINGS="$MAKE_SETTINGS
105288sys_notify_inotify_ENABLE = NO
105289"
105290SMB_INFO_ENABLES="$SMB_INFO_ENABLES
105291\$enabled{\"sys_notify_inotify\"} = \"NO\";"
105292
105293
105294if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_sys_inotify_h" = x"yes"; then
105295
105296	MAKE_SETTINGS="$MAKE_SETTINGS
105297sys_notify_inotify_ENABLE = YES
105298"
105299SMB_INFO_ENABLES="$SMB_INFO_ENABLES
105300\$enabled{\"sys_notify_inotify\"} = \"YES\";"
105301
105302fi
105303
105304if test x"$ac_cv_func_inotify_init" = x"yes" -a x"$ac_cv_header_linux_inotify_h" = x"yes"; then
105305
105306	MAKE_SETTINGS="$MAKE_SETTINGS
105307sys_notify_inotify_ENABLE = YES
105308"
105309SMB_INFO_ENABLES="$SMB_INFO_ENABLES
105310\$enabled{\"sys_notify_inotify\"} = \"YES\";"
105311
105312fi
105313
105314if test x"$ac_cv_header_linux_inotify_h" = x"yes" -a x"$ac_cv_have___NR_inotify_init_decl" = x"yes"; then
105315
105316	MAKE_SETTINGS="$MAKE_SETTINGS
105317sys_notify_inotify_ENABLE = YES
105318"
105319SMB_INFO_ENABLES="$SMB_INFO_ENABLES
105320\$enabled{\"sys_notify_inotify\"} = \"YES\";"
105321
105322fi
105323
105324
105325 { $as_echo "$as_me:$LINENO: checking for F_SETLEASE declaration" >&5
105326$as_echo_n "checking for F_SETLEASE declaration... " >&6; }
105327if test "${ac_cv_have_F_SETLEASE_decl+set}" = set; then
105328  $as_echo_n "(cached) " >&6
105329else
105330
105331    cat >conftest.$ac_ext <<_ACEOF
105332/* confdefs.h.  */
105333_ACEOF
105334cat confdefs.h >>conftest.$ac_ext
105335cat >>conftest.$ac_ext <<_ACEOF
105336/* end confdefs.h.  */
105337#include <fcntl.h>
105338int
105339main ()
105340{
105341int i = (int)F_SETLEASE
105342  ;
105343  return 0;
105344}
105345_ACEOF
105346rm -f conftest.$ac_objext
105347if { (ac_try="$ac_compile"
105348case "(($ac_try" in
105349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105350  *) ac_try_echo=$ac_try;;
105351esac
105352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105353$as_echo "$ac_try_echo") >&5
105354  (eval "$ac_compile") 2>conftest.er1
105355  ac_status=$?
105356  grep -v '^ *+' conftest.er1 >conftest.err
105357  rm -f conftest.er1
105358  cat conftest.err >&5
105359  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105360  (exit $ac_status); } && {
105361	 test -z "$ac_c_werror_flag" ||
105362	 test ! -s conftest.err
105363       } && test -s conftest.$ac_objext; then
105364  ac_cv_have_F_SETLEASE_decl=yes
105365else
105366  $as_echo "$as_me: failed program was:" >&5
105367sed 's/^/| /' conftest.$ac_ext >&5
105368
105369	ac_cv_have_F_SETLEASE_decl=no
105370fi
105371
105372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
105373fi
105374{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_F_SETLEASE_decl" >&5
105375$as_echo "$ac_cv_have_F_SETLEASE_decl" >&6; }
105376 if test x"$ac_cv_have_F_SETLEASE_decl" = x"yes"; then
105377
105378cat >>confdefs.h <<\_ACEOF
105379#define HAVE_F_SETLEASE_DECL 1
105380_ACEOF
105381
105382 fi
105383
105384
105385 { $as_echo "$as_me:$LINENO: checking for SA_SIGINFO declaration" >&5
105386$as_echo_n "checking for SA_SIGINFO declaration... " >&6; }
105387if test "${ac_cv_have_SA_SIGINFO_decl+set}" = set; then
105388  $as_echo_n "(cached) " >&6
105389else
105390
105391    cat >conftest.$ac_ext <<_ACEOF
105392/* confdefs.h.  */
105393_ACEOF
105394cat confdefs.h >>conftest.$ac_ext
105395cat >>conftest.$ac_ext <<_ACEOF
105396/* end confdefs.h.  */
105397#include <signal.h>
105398int
105399main ()
105400{
105401int i = (int)SA_SIGINFO
105402  ;
105403  return 0;
105404}
105405_ACEOF
105406rm -f conftest.$ac_objext
105407if { (ac_try="$ac_compile"
105408case "(($ac_try" in
105409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105410  *) ac_try_echo=$ac_try;;
105411esac
105412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105413$as_echo "$ac_try_echo") >&5
105414  (eval "$ac_compile") 2>conftest.er1
105415  ac_status=$?
105416  grep -v '^ *+' conftest.er1 >conftest.err
105417  rm -f conftest.er1
105418  cat conftest.err >&5
105419  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105420  (exit $ac_status); } && {
105421	 test -z "$ac_c_werror_flag" ||
105422	 test ! -s conftest.err
105423       } && test -s conftest.$ac_objext; then
105424  ac_cv_have_SA_SIGINFO_decl=yes
105425else
105426  $as_echo "$as_me: failed program was:" >&5
105427sed 's/^/| /' conftest.$ac_ext >&5
105428
105429	ac_cv_have_SA_SIGINFO_decl=no
105430fi
105431
105432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
105433fi
105434{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_SA_SIGINFO_decl" >&5
105435$as_echo "$ac_cv_have_SA_SIGINFO_decl" >&6; }
105436 if test x"$ac_cv_have_SA_SIGINFO_decl" = x"yes"; then
105437
105438cat >>confdefs.h <<\_ACEOF
105439#define HAVE_SA_SIGINFO_DECL 1
105440_ACEOF
105441
105442 fi
105443
105444
105445
105446	MAKE_SETTINGS="$MAKE_SETTINGS
105447sys_lease_linux_ENABLE = NO
105448"
105449SMB_INFO_ENABLES="$SMB_INFO_ENABLES
105450\$enabled{\"sys_lease_linux\"} = \"NO\";"
105451
105452
105453if test x"$ac_cv_have_F_SETLEASE_decl" = x"yes" \
105454	-a x"$ac_cv_have_SA_SIGINFO_decl" = x"yes"; then
105455
105456	MAKE_SETTINGS="$MAKE_SETTINGS
105457sys_lease_linux_ENABLE = YES
105458"
105459SMB_INFO_ENABLES="$SMB_INFO_ENABLES
105460\$enabled{\"sys_lease_linux\"} = \"YES\";"
105461
105462fi
105463
105464
105465
105466
105467for ac_header in nss.h nss_common.h ns_api.h
105468do
105469as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
105470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
105471  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
105472$as_echo_n "checking for $ac_header... " >&6; }
105473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
105474  $as_echo_n "(cached) " >&6
105475fi
105476ac_res=`eval 'as_val=${'$as_ac_Header'}
105477		 $as_echo "$as_val"'`
105478	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
105479$as_echo "$ac_res" >&6; }
105480else
105481  # Is the header compilable?
105482{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
105483$as_echo_n "checking $ac_header usability... " >&6; }
105484cat >conftest.$ac_ext <<_ACEOF
105485/* confdefs.h.  */
105486_ACEOF
105487cat confdefs.h >>conftest.$ac_ext
105488cat >>conftest.$ac_ext <<_ACEOF
105489/* end confdefs.h.  */
105490$ac_includes_default
105491#include <$ac_header>
105492_ACEOF
105493rm -f conftest.$ac_objext
105494if { (ac_try="$ac_compile"
105495case "(($ac_try" in
105496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105497  *) ac_try_echo=$ac_try;;
105498esac
105499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105500$as_echo "$ac_try_echo") >&5
105501  (eval "$ac_compile") 2>conftest.er1
105502  ac_status=$?
105503  grep -v '^ *+' conftest.er1 >conftest.err
105504  rm -f conftest.er1
105505  cat conftest.err >&5
105506  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105507  (exit $ac_status); } && {
105508	 test -z "$ac_c_werror_flag" ||
105509	 test ! -s conftest.err
105510       } && test -s conftest.$ac_objext; then
105511  ac_header_compiler=yes
105512else
105513  $as_echo "$as_me: failed program was:" >&5
105514sed 's/^/| /' conftest.$ac_ext >&5
105515
105516	ac_header_compiler=no
105517fi
105518
105519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
105520{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
105521$as_echo "$ac_header_compiler" >&6; }
105522
105523# Is the header present?
105524{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
105525$as_echo_n "checking $ac_header presence... " >&6; }
105526cat >conftest.$ac_ext <<_ACEOF
105527/* confdefs.h.  */
105528_ACEOF
105529cat confdefs.h >>conftest.$ac_ext
105530cat >>conftest.$ac_ext <<_ACEOF
105531/* end confdefs.h.  */
105532#include <$ac_header>
105533_ACEOF
105534if { (ac_try="$ac_cpp conftest.$ac_ext"
105535case "(($ac_try" in
105536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105537  *) ac_try_echo=$ac_try;;
105538esac
105539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105540$as_echo "$ac_try_echo") >&5
105541  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
105542  ac_status=$?
105543  grep -v '^ *+' conftest.er1 >conftest.err
105544  rm -f conftest.er1
105545  cat conftest.err >&5
105546  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105547  (exit $ac_status); } >/dev/null && {
105548	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
105549	 test ! -s conftest.err
105550       }; then
105551  ac_header_preproc=yes
105552else
105553  $as_echo "$as_me: failed program was:" >&5
105554sed 's/^/| /' conftest.$ac_ext >&5
105555
105556  ac_header_preproc=no
105557fi
105558
105559rm -f conftest.err conftest.$ac_ext
105560{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
105561$as_echo "$ac_header_preproc" >&6; }
105562
105563# So?  What about this header?
105564case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
105565  yes:no: )
105566    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
105567$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
105568    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
105569$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
105570    ac_header_preproc=yes
105571    ;;
105572  no:yes:* )
105573    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
105574$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
105575    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
105576$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
105577    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
105578$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
105579    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
105580$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
105581    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
105582$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
105583    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
105584$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
105585    ( cat <<\_ASBOX
105586## ---------------------------------------- ##
105587## Report this to samba-technical@samba.org ##
105588## ---------------------------------------- ##
105589_ASBOX
105590     ) | sed "s/^/$as_me: WARNING:     /" >&2
105591    ;;
105592esac
105593{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
105594$as_echo_n "checking for $ac_header... " >&6; }
105595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
105596  $as_echo_n "(cached) " >&6
105597else
105598  eval "$as_ac_Header=\$ac_header_preproc"
105599fi
105600ac_res=`eval 'as_val=${'$as_ac_Header'}
105601		 $as_echo "$as_val"'`
105602	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
105603$as_echo "$ac_res" >&6; }
105604
105605fi
105606as_val=`eval 'as_val=${'$as_ac_Header'}
105607		 $as_echo "$as_val"'`
105608   if test "x$as_val" = x""yes; then
105609  cat >>confdefs.h <<_ACEOF
105610#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
105611_ACEOF
105612
105613fi
105614
105615done
105616
105617
105618case "$host_os" in
105619	*linux*)
105620
105621MAKE_SETTINGS="$MAKE_SETTINGS
105622nss_winbind_CFLAGS =
105623nss_winbind_LDFLAGS =
105624n1_ENABLE = YES
105625nss_winbind_OBJ_FILES = ../nsswitch/winbind_nss_linux.o
105626"
105627
105628SMB_INFO_LIBRARIES="$SMB_INFO_LIBRARIES
105629###################################
105630# Start Library nss_winbind
105631[LIBRARY::nss_winbind]
105632PRIVATE_DEPENDENCIES = LIBWINBIND-CLIENT
105633CFLAGS = \$(nss_winbind_CFLAGS)
105634LDFLAGS = \$(nss_winbind_LDFLAGS)
105635ENABLE = YES
105636# End Library nss_winbind
105637###################################
105638"
105639
105640	;;
105641	*)
105642	;;
105643esac
105644
105645
105646
105647
105648if test $USESHARED = "true";
105649then
105650	INTERN_LDFLAGS="-L\$(shliboutputdir) -L\${builddir}/bin/static"
105651	INSTALL_LINK_FLAGS="-Wl,-rpath-link,\$(shliboutputdir)";
105652else
105653	INTERN_LDFLAGS="-L\${builddir}/bin/static -L\$(shliboutputdir)"
105654fi
105655
105656
105657
105658	LD_SHLIB_FLAGS="-shared"
105659
105660	case "$host_os" in
105661		*linux*|*gnu*)
105662			LD_SHLIB_FLAGS="-shared -Wl,-Bsymbolic"
105663			;;
105664		*solaris*)
105665			LD_SHLIB_FLAGS="-G"
105666			if test "${GCC}" = "no"; then
105667				## ${CFLAGS} added for building 64-bit shared
105668				## libs using Sun's Compiler
105669				LD_SHLIB_FLAGS="-G \${CFLAGS}"
105670			fi
105671			;;
105672		*sunos*)
105673			LD_SHLIB_FLAGS="-G"
105674			;;
105675		*irix*)
105676			LD_SHLIB_FLAGS="-shared"
105677			;;
105678		*aix*)
105679			LD_SHLIB_FLAGS="-Wl,-G,-bexpall,-bbigtoc"
105680			;;
105681		*hpux*)
105682			if test "${GCC}" = "yes"; then
105683				LD_SHLIB_FLAGS="-shared"
105684			else
105685				LD_SHLIB_FLAGS="-b"
105686			fi
105687			;;
105688		*osf*)
105689			LD_SHLIB_FLAGS="-shared"
105690			;;
105691		*darwin*)
105692			LD_SHLIB_FLAGS="-dynamiclib -Wl,-search_paths_first"
105693			;;
105694	esac
105695
105696
105697
105698
105699	LD_SHLIB_DISALLOW_UNDEF_FLAG=""
105700
105701	#
105702	# TODO: enforce error not only warnings
105703	#
105704	# NOTE: -Wl,--no-allow-shlib-undefined isn't what we want...
105705	#       as it bails out on broken system libraries
105706	#
105707	case "$host_os" in
105708		*osf*)
105709			LD_SHLIB_DISALLOW_UNDEF_FLAG="-warning_unresolved"
105710			;;
105711		*darwin*)
105712			LD_SHLIB_DISALLOW_UNDEF_FLAG="-undefined error"
105713			;;
105714	esac
105715
105716
105717
105718
105719
105720
105721	SHLD_FLAGS="$LD_SHLIB_FLAGS $LD_SHLIB_DISALLOW_UNDEF_FLAG"
105722
105723
105724
105725  ac_new_flags=""
105726  l=""
105727  for i in $LDFLAGS; do
105728    case $l$i in
105729    -L/usr/lib) ;;
105730    -L/usr/lib/) ;;
105731    -L/usr/lib64) ;;
105732    -L/usr/lib64/) ;;
105733    -Wl,-rpath,/usr/lib) l="";;
105734    -Wl,-rpath,/usr/lib/) l="";;
105735    -Wl,-rpath,/usr/lib64) l="";;
105736    -Wl,-rpath,/usr/lib64/) l="";;
105737    -Wl,-rpath) l=$i;;
105738    -Wl,-rpath-Wl,/usr/lib) l="";;
105739    -Wl,-rpath-Wl,/usr/lib/) l="";;
105740    -Wl,-rpath-Wl,/usr/lib64) l="";;
105741    -Wl,-rpath-Wl,/usr/lib64/) l="";;
105742    *)
105743    	s=" "
105744        if test x"$ac_new_flags" = x""; then
105745            s="";
105746	fi
105747        if test x"$l" = x""; then
105748            ac_new_flags="$ac_new_flags$s$i";
105749        else
105750            ac_new_flags="$ac_new_flags$s$l $i";
105751        fi
105752        l=""
105753        ;;
105754    esac
105755  done
105756  LDFLAGS=$ac_new_flags
105757
105758
105759  ac_new_flags=""
105760  l=""
105761  for i in $LIBS; do
105762    case $l$i in
105763    -L/usr/lib) ;;
105764    -L/usr/lib/) ;;
105765    -L/usr/lib64) ;;
105766    -L/usr/lib64/) ;;
105767    -Wl,-rpath,/usr/lib) l="";;
105768    -Wl,-rpath,/usr/lib/) l="";;
105769    -Wl,-rpath,/usr/lib64) l="";;
105770    -Wl,-rpath,/usr/lib64/) l="";;
105771    -Wl,-rpath) l=$i;;
105772    -Wl,-rpath-Wl,/usr/lib) l="";;
105773    -Wl,-rpath-Wl,/usr/lib/) l="";;
105774    -Wl,-rpath-Wl,/usr/lib64) l="";;
105775    -Wl,-rpath-Wl,/usr/lib64/) l="";;
105776    *)
105777    	s=" "
105778        if test x"$ac_new_flags" = x""; then
105779            s="";
105780	fi
105781        if test x"$l" = x""; then
105782            ac_new_flags="$ac_new_flags$s$i";
105783        else
105784            ac_new_flags="$ac_new_flags$s$l $i";
105785        fi
105786        l=""
105787        ;;
105788    esac
105789  done
105790  LIBS=$ac_new_flags
105791
105792
105793  ac_new_flags=""
105794  l=""
105795  for i in $KRB5_LIBS; do
105796    case $l$i in
105797    -L/usr/lib) ;;
105798    -L/usr/lib/) ;;
105799    -L/usr/lib64) ;;
105800    -L/usr/lib64/) ;;
105801    -Wl,-rpath,/usr/lib) l="";;
105802    -Wl,-rpath,/usr/lib/) l="";;
105803    -Wl,-rpath,/usr/lib64) l="";;
105804    -Wl,-rpath,/usr/lib64/) l="";;
105805    -Wl,-rpath) l=$i;;
105806    -Wl,-rpath-Wl,/usr/lib) l="";;
105807    -Wl,-rpath-Wl,/usr/lib/) l="";;
105808    -Wl,-rpath-Wl,/usr/lib64) l="";;
105809    -Wl,-rpath-Wl,/usr/lib64/) l="";;
105810    *)
105811    	s=" "
105812        if test x"$ac_new_flags" = x""; then
105813            s="";
105814	fi
105815        if test x"$l" = x""; then
105816            ac_new_flags="$ac_new_flags$s$i";
105817        else
105818            ac_new_flags="$ac_new_flags$s$l $i";
105819        fi
105820        l=""
105821        ;;
105822    esac
105823  done
105824  KRB5_LIBS=$ac_new_flags
105825
105826
105827
105828  ac_new_flags=""
105829  for i in $CFLAGS; do
105830    case $i in
105831    -I/usr/include|-I/usr/include/) ;;
105832    *) ac_new_flags="$ac_new_flags $i" ;;
105833    esac
105834  done
105835  CFLAGS=$ac_new_flags
105836
105837
105838  ac_new_flags=""
105839  for i in $CPPFLAGS; do
105840    case $i in
105841    -I/usr/include|-I/usr/include/) ;;
105842    *) ac_new_flags="$ac_new_flags $i" ;;
105843    esac
105844  done
105845  CPPFLAGS=$ac_new_flags
105846
105847
105848echo "configure: creating samba4-config.mk"
105849cat >samba4-config.mk<<CEOF
105850# samba4-config.mk - Autogenerated by configure, DO NOT EDIT!
105851$MAKE_SETTINGS
105852CEOF
105853skip_vars=" prefix exec_prefix CPPFLAGS LDSHFLAGS POPT_OBJ CFLAGS TALLOC_OBJ POPT_LIBS srcdir builddir "
105854for ac_var in $ac_subst_vars
105855do
105856    eval ac_val=\$$ac_var
105857	if echo "$skip_vars" | grep -v " $ac_var " >/dev/null 2>/dev/null; then
105858		echo "$ac_var = $ac_val" >> samba4-config.mk
105859	fi
105860done
105861
105862
105863oldbuilddir="$builddir"
105864builddir="$builddir/../source4"
105865oldsrcdir="$srcdir"
105866srcdir="$srcdir/../source4"
105867
105868
105869
105870echo "configure: creating ../source4/build/smb_build/config.pm"
105871cat >../source4/build/smb_build/config.pm<<CEOF
105872# config.pm - Autogenerate by configure. DO NOT EDIT!
105873
105874package config;
105875require Exporter;
105876@ISA = qw(Exporter);
105877@EXPORT_OK = qw(%enabled %config);
105878use strict;
105879
105880use vars qw(%enabled %config);
105881
105882%config = (
105883CEOF
105884
105885for ac_var in $ac_subst_vars
105886do
105887	eval ac_val=\$$ac_var
105888	# quote ' (\x27) inside '...' and make sure \ isn't eaten by shells, so use perl:
105889	QAC_VAL=$ac_val QAC_VAR=$ac_var perl -e '$myval="$ENV{QAC_VAL}"; $myval =~ s/\x27/\\\x27/g ; print $ENV{QAC_VAR}." => \x27$myval\x27,\n"' >> ../source4/build/smb_build/config.pm
105890done
105891
105892cat >>../source4/build/smb_build/config.pm<<CEOF
105893);
105894$SMB_INFO_ENABLES
1058951;
105896CEOF
105897
105898builddir="$oldbuilddir"
105899srcdir="$oldsrcdir"
105900
105901echo "configure: creating ../source4/config.mk"
105902cat >../source4/config.mk<<CEOF
105903# config.mk - Autogenerated by configure, DO NOT EDIT!
105904$SMB_INFO_EXT_LIBS
105905$SMB_INFO_SUBSYSTEMS
105906$SMB_INFO_LIBRARIES
105907CEOF
105908
105909ac_config_commands="$ac_config_commands default-1"
105910
105911
105912ac_config_commands="$ac_config_commands Makefile-samba4"
105913
105914
105915
105916	USESHARED="$saved_USESHARED"
105917fi
105918
105919
105920
105921
105922
105923for ac_header in zlib.h
105924do
105925as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
105926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
105927  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
105928$as_echo_n "checking for $ac_header... " >&6; }
105929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
105930  $as_echo_n "(cached) " >&6
105931fi
105932ac_res=`eval 'as_val=${'$as_ac_Header'}
105933		 $as_echo "$as_val"'`
105934	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
105935$as_echo "$ac_res" >&6; }
105936else
105937  # Is the header compilable?
105938{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
105939$as_echo_n "checking $ac_header usability... " >&6; }
105940cat >conftest.$ac_ext <<_ACEOF
105941/* confdefs.h.  */
105942_ACEOF
105943cat confdefs.h >>conftest.$ac_ext
105944cat >>conftest.$ac_ext <<_ACEOF
105945/* end confdefs.h.  */
105946$ac_includes_default
105947#include <$ac_header>
105948_ACEOF
105949rm -f conftest.$ac_objext
105950if { (ac_try="$ac_compile"
105951case "(($ac_try" in
105952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105953  *) ac_try_echo=$ac_try;;
105954esac
105955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105956$as_echo "$ac_try_echo") >&5
105957  (eval "$ac_compile") 2>conftest.er1
105958  ac_status=$?
105959  grep -v '^ *+' conftest.er1 >conftest.err
105960  rm -f conftest.er1
105961  cat conftest.err >&5
105962  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
105963  (exit $ac_status); } && {
105964	 test -z "$ac_c_werror_flag" ||
105965	 test ! -s conftest.err
105966       } && test -s conftest.$ac_objext; then
105967  ac_header_compiler=yes
105968else
105969  $as_echo "$as_me: failed program was:" >&5
105970sed 's/^/| /' conftest.$ac_ext >&5
105971
105972	ac_header_compiler=no
105973fi
105974
105975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
105976{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
105977$as_echo "$ac_header_compiler" >&6; }
105978
105979# Is the header present?
105980{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
105981$as_echo_n "checking $ac_header presence... " >&6; }
105982cat >conftest.$ac_ext <<_ACEOF
105983/* confdefs.h.  */
105984_ACEOF
105985cat confdefs.h >>conftest.$ac_ext
105986cat >>conftest.$ac_ext <<_ACEOF
105987/* end confdefs.h.  */
105988#include <$ac_header>
105989_ACEOF
105990if { (ac_try="$ac_cpp conftest.$ac_ext"
105991case "(($ac_try" in
105992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
105993  *) ac_try_echo=$ac_try;;
105994esac
105995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
105996$as_echo "$ac_try_echo") >&5
105997  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
105998  ac_status=$?
105999  grep -v '^ *+' conftest.er1 >conftest.err
106000  rm -f conftest.er1
106001  cat conftest.err >&5
106002  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
106003  (exit $ac_status); } >/dev/null && {
106004	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
106005	 test ! -s conftest.err
106006       }; then
106007  ac_header_preproc=yes
106008else
106009  $as_echo "$as_me: failed program was:" >&5
106010sed 's/^/| /' conftest.$ac_ext >&5
106011
106012  ac_header_preproc=no
106013fi
106014
106015rm -f conftest.err conftest.$ac_ext
106016{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
106017$as_echo "$ac_header_preproc" >&6; }
106018
106019# So?  What about this header?
106020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
106021  yes:no: )
106022    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
106023$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
106024    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
106025$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
106026    ac_header_preproc=yes
106027    ;;
106028  no:yes:* )
106029    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
106030$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
106031    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
106032$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
106033    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
106034$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
106035    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
106036$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
106037    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
106038$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
106039    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
106040$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
106041    ( cat <<\_ASBOX
106042## ---------------------------------------- ##
106043## Report this to samba-technical@samba.org ##
106044## ---------------------------------------- ##
106045_ASBOX
106046     ) | sed "s/^/$as_me: WARNING:     /" >&2
106047    ;;
106048esac
106049{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
106050$as_echo_n "checking for $ac_header... " >&6; }
106051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
106052  $as_echo_n "(cached) " >&6
106053else
106054  eval "$as_ac_Header=\$ac_header_preproc"
106055fi
106056ac_res=`eval 'as_val=${'$as_ac_Header'}
106057		 $as_echo "$as_val"'`
106058	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
106059$as_echo "$ac_res" >&6; }
106060
106061fi
106062as_val=`eval 'as_val=${'$as_ac_Header'}
106063		 $as_echo "$as_val"'`
106064   if test "x$as_val" = x""yes; then
106065  cat >>confdefs.h <<_ACEOF
106066#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
106067_ACEOF
106068
106069fi
106070
106071done
106072
106073
106074
106075
106076
106077ac_check_lib_ext_save_LIBS=$LIBS
106078LIBS="-lz $ZLIB_LIBS  $LIBS"
106079
106080
106081
106082
106083        { $as_echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
106084$as_echo_n "checking for zlibVersion in -lz... " >&6; }
106085if test "${ac_cv_lib_ext_z_zlibVersion+set}" = set; then
106086  $as_echo_n "(cached) " >&6
106087else
106088  cat >conftest.$ac_ext <<_ACEOF
106089/* confdefs.h.  */
106090_ACEOF
106091cat confdefs.h >>conftest.$ac_ext
106092cat >>conftest.$ac_ext <<_ACEOF
106093/* end confdefs.h.  */
106094
106095/* Override any GCC internal prototype to avoid an error.
106096   Use char because int might match the return type of a GCC
106097   builtin and then its argument prototype would still apply.  */
106098#ifdef __cplusplus
106099extern "C"
106100#endif
106101char zlibVersion ();
106102int
106103main ()
106104{
106105return zlibVersion ();
106106  ;
106107  return 0;
106108}
106109_ACEOF
106110rm -f conftest.$ac_objext conftest$ac_exeext
106111if { (ac_try="$ac_link"
106112case "(($ac_try" in
106113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
106114  *) ac_try_echo=$ac_try;;
106115esac
106116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
106117$as_echo "$ac_try_echo") >&5
106118  (eval "$ac_link") 2>conftest.er1
106119  ac_status=$?
106120  grep -v '^ *+' conftest.er1 >conftest.err
106121  rm -f conftest.er1
106122  cat conftest.err >&5
106123  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
106124  (exit $ac_status); } && {
106125	 test -z "$ac_c_werror_flag" ||
106126	 test ! -s conftest.err
106127       } && test -s conftest$ac_exeext && {
106128	 test "$cross_compiling" = yes ||
106129	 $as_test_x conftest$ac_exeext
106130       }; then
106131  ac_cv_lib_ext_z_zlibVersion=yes;
106132		  ac_cv_lib_ext_z=yes
106133else
106134  $as_echo "$as_me: failed program was:" >&5
106135sed 's/^/| /' conftest.$ac_ext >&5
106136
106137	ac_cv_lib_ext_z_zlibVersion=no;
106138		  ac_cv_lib_ext_z=no
106139fi
106140
106141rm -rf conftest.dSYM
106142rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
106143      conftest$ac_exeext conftest.$ac_ext
106144
106145fi
106146{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ext_z_zlibVersion" >&5
106147$as_echo "$ac_cv_lib_ext_z_zlibVersion" >&6; }
106148    if test $ac_cv_lib_ext_z_zlibVersion = yes; then
106149  cat >>confdefs.h <<_ACEOF
106150#define HAVE_ZLIBVERSION 1
106151_ACEOF
106152
106153fi
106154
106155LIBS=$ac_check_lib_ext_save_LIBS
106156
106157if test $ac_cv_lib_ext_z = yes; then
106158  cat >>confdefs.h <<_ACEOF
106159#define HAVE_LIBZ 1
106160_ACEOF
106161
106162		case "$ZLIB_LIBS" in
106163		    *-lz*)
106164			;;
106165		    *)
106166			ZLIB_LIBS="-lz $ZLIB_LIBS"
106167			;;
106168		esac
106169
106170
106171fi
106172
106173
106174{ $as_echo "$as_me:$LINENO: checking for zlib >= 1.2.3" >&5
106175$as_echo_n "checking for zlib >= 1.2.3... " >&6; }
106176if test "${samba_cv_zlib_1_2_3+set}" = set; then
106177  $as_echo_n "(cached) " >&6
106178else
106179
106180	cat >conftest.$ac_ext <<_ACEOF
106181/* confdefs.h.  */
106182_ACEOF
106183cat confdefs.h >>conftest.$ac_ext
106184cat >>conftest.$ac_ext <<_ACEOF
106185/* end confdefs.h.  */
106186
106187		#include <zlib.h>
106188
106189int
106190main ()
106191{
106192
106193		#if (ZLIB_VERNUM >= 0x1230)
106194		#else
106195		#error "ZLIB_VERNUM < 0x1230"
106196		#endif
106197
106198  ;
106199  return 0;
106200}
106201_ACEOF
106202rm -f conftest.$ac_objext
106203if { (ac_try="$ac_compile"
106204case "(($ac_try" in
106205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
106206  *) ac_try_echo=$ac_try;;
106207esac
106208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
106209$as_echo "$ac_try_echo") >&5
106210  (eval "$ac_compile") 2>conftest.er1
106211  ac_status=$?
106212  grep -v '^ *+' conftest.er1 >conftest.err
106213  rm -f conftest.er1
106214  cat conftest.err >&5
106215  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
106216  (exit $ac_status); } && {
106217	 test -z "$ac_c_werror_flag" ||
106218	 test ! -s conftest.err
106219       } && test -s conftest.$ac_objext; then
106220
106221		samba_cv_zlib_1_2_3=yes
106222
106223else
106224  $as_echo "$as_me: failed program was:" >&5
106225sed 's/^/| /' conftest.$ac_ext >&5
106226
106227
106228		samba_cv_zlib_1_2_3=no
106229
106230fi
106231
106232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
106233
106234fi
106235{ $as_echo "$as_me:$LINENO: result: $samba_cv_zlib_1_2_3" >&5
106236$as_echo "$samba_cv_zlib_1_2_3" >&6; }
106237
106238if test x"$ac_cv_header_zlib_h" = x"yes" -a \
106239	x"$ac_cv_lib_ext_z_zlibVersion" = x"yes" -a \
106240	x"$samba_cv_zlib_1_2_3" = x"yes"; then
106241	ZLIB_OBJS=""
106242else
106243
106244	ZLIB_LIBS=""
106245	for o in adler32.o compress.o crc32.o gzio.o uncompr.o \
106246		     deflate.o trees.o zutil.o inflate.o infback.o \
106247			 inftrees.o inffast.o
106248	do
106249		ZLIB_OBJS="$ZLIB_OBJS ../lib/zlib/$o"
106250	done
106251	CFLAGS="-I../lib/zlib $CFLAGS"
106252
106253fi
106254
106255
106256# Check whether --enable-dmalloc was given.
106257if test "${enable_dmalloc+set}" = set; then
106258  enableval=$enable_dmalloc;
106259fi
106260
106261
106262if test "x$enable_dmalloc" = xyes
106263then
106264
106265cat >>confdefs.h <<\_ACEOF
106266#define ENABLE_DMALLOC 1
106267_ACEOF
106268
106269
106270cat >>confdefs.h <<\_ACEOF
106271#define DMALLOC_FUNC_CHECK 1
106272_ACEOF
106273
106274	LIBS="$LIBS -ldmalloc"
106275fi
106276
106277
106278  ac_new_flags=""
106279  l=""
106280  for i in $LDFLAGS; do
106281    case $l$i in
106282    -L/usr/lib) ;;
106283    -L/usr/lib/) ;;
106284    -L/usr/lib64) ;;
106285    -L/usr/lib64/) ;;
106286    -Wl,-rpath,/usr/lib) l="";;
106287    -Wl,-rpath,/usr/lib/) l="";;
106288    -Wl,-rpath,/usr/lib64) l="";;
106289    -Wl,-rpath,/usr/lib64/) l="";;
106290    -Wl,-rpath) l=$i;;
106291    -Wl,-rpath-Wl,/usr/lib) l="";;
106292    -Wl,-rpath-Wl,/usr/lib/) l="";;
106293    -Wl,-rpath-Wl,/usr/lib64) l="";;
106294    -Wl,-rpath-Wl,/usr/lib64/) l="";;
106295    *)
106296    	s=" "
106297        if test x"$ac_new_flags" = x""; then
106298            s="";
106299	fi
106300        if test x"$l" = x""; then
106301            ac_new_flags="$ac_new_flags$s$i";
106302        else
106303            ac_new_flags="$ac_new_flags$s$l $i";
106304        fi
106305        l=""
106306        ;;
106307    esac
106308  done
106309  LDFLAGS=$ac_new_flags
106310
106311
106312  ac_new_flags=""
106313  l=""
106314  for i in $LIBS; do
106315    case $l$i in
106316    -L/usr/lib) ;;
106317    -L/usr/lib/) ;;
106318    -L/usr/lib64) ;;
106319    -L/usr/lib64/) ;;
106320    -Wl,-rpath,/usr/lib) l="";;
106321    -Wl,-rpath,/usr/lib/) l="";;
106322    -Wl,-rpath,/usr/lib64) l="";;
106323    -Wl,-rpath,/usr/lib64/) l="";;
106324    -Wl,-rpath) l=$i;;
106325    -Wl,-rpath-Wl,/usr/lib) l="";;
106326    -Wl,-rpath-Wl,/usr/lib/) l="";;
106327    -Wl,-rpath-Wl,/usr/lib64) l="";;
106328    -Wl,-rpath-Wl,/usr/lib64/) l="";;
106329    *)
106330    	s=" "
106331        if test x"$ac_new_flags" = x""; then
106332            s="";
106333	fi
106334        if test x"$l" = x""; then
106335            ac_new_flags="$ac_new_flags$s$i";
106336        else
106337            ac_new_flags="$ac_new_flags$s$l $i";
106338        fi
106339        l=""
106340        ;;
106341    esac
106342  done
106343  LIBS=$ac_new_flags
106344
106345
106346
106347  ac_new_flags=""
106348  for i in $CFLAGS; do
106349    case $i in
106350    -I/usr/include|-I/usr/include/) ;;
106351    *) ac_new_flags="$ac_new_flags $i" ;;
106352    esac
106353  done
106354  CFLAGS=$ac_new_flags
106355
106356
106357  ac_new_flags=""
106358  for i in $CPPFLAGS; do
106359    case $i in
106360    -I/usr/include|-I/usr/include/) ;;
106361    *) ac_new_flags="$ac_new_flags $i" ;;
106362    esac
106363  done
106364  CPPFLAGS=$ac_new_flags
106365
106366
106367#################################################
106368# Display summary of libraries detected
106369
106370{ $as_echo "$as_me:$LINENO: result: Using libraries:" >&5
106371$as_echo "Using libraries:" >&6; }
106372{ $as_echo "$as_me:$LINENO: result:     LIBS = $LIBS" >&5
106373$as_echo "    LIBS = $LIBS" >&6; }
106374if test x"$with_ads_support" != x"no"; then
106375    { $as_echo "$as_me:$LINENO: result:     KRB5_LIBS = $KRB5_LIBS" >&5
106376$as_echo "    KRB5_LIBS = $KRB5_LIBS" >&6; }
106377fi
106378if test x"$with_ldap_support" != x"no"; then
106379    { $as_echo "$as_me:$LINENO: result:     LDAP_LIBS = $LDAP_LIBS" >&5
106380$as_echo "    LDAP_LIBS = $LDAP_LIBS" >&6; }
106381fi
106382if test x"$with_dnsupdate_support" != x"no"; then
106383    { $as_echo "$as_me:$LINENO: result:     UUID_LIBS = $UUID_LIBS" >&5
106384$as_echo "    UUID_LIBS = $UUID_LIBS" >&6; }
106385fi
106386if test x"$have_dnssd_support" != x"no"; then
106387    { $as_echo "$as_me:$LINENO: result:     DNSSD_LIBS = $DNSSD_LIBS" >&5
106388$as_echo "    DNSSD_LIBS = $DNSSD_LIBS" >&6; }
106389fi
106390{ $as_echo "$as_me:$LINENO: result:     AUTH_LIBS = $AUTH_LIBS" >&5
106391$as_echo "    AUTH_LIBS = $AUTH_LIBS" >&6; }
106392
106393#################################################
106394# final configure stuff
106395
106396{ $as_echo "$as_me:$LINENO: checking configure summary" >&5
106397$as_echo_n "checking configure summary... " >&6; }
106398if test "$cross_compiling" = yes; then
106399  { $as_echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
106400$as_echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
106401else
106402  cat >conftest.$ac_ext <<_ACEOF
106403/* confdefs.h.  */
106404_ACEOF
106405cat confdefs.h >>conftest.$ac_ext
106406cat >>conftest.$ac_ext <<_ACEOF
106407/* end confdefs.h.  */
106408#include "${srcdir-.}/../tests/summary.c"
106409_ACEOF
106410rm -f conftest$ac_exeext
106411if { (ac_try="$ac_link"
106412case "(($ac_try" in
106413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
106414  *) ac_try_echo=$ac_try;;
106415esac
106416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
106417$as_echo "$ac_try_echo") >&5
106418  (eval "$ac_link") 2>&5
106419  ac_status=$?
106420  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
106421  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
106422  { (case "(($ac_try" in
106423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
106424  *) ac_try_echo=$ac_try;;
106425esac
106426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
106427$as_echo "$ac_try_echo") >&5
106428  (eval "$ac_try") 2>&5
106429  ac_status=$?
106430  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
106431  (exit $ac_status); }; }; then
106432  { $as_echo "$as_me:$LINENO: result: yes" >&5
106433$as_echo "yes" >&6; }
106434else
106435  $as_echo "$as_me: program exited with status $ac_status" >&5
106436$as_echo "$as_me: failed program was:" >&5
106437sed 's/^/| /' conftest.$ac_ext >&5
106438
106439( exit $ac_status )
106440{ { $as_echo "$as_me:$LINENO: error: summary failure. Aborting config" >&5
106441$as_echo "$as_me: error: summary failure. Aborting config" >&2;}
106442   { (exit 1); exit 1; }; }; exit 1;
106443fi
106444rm -rf conftest.dSYM
106445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
106446fi
106447
106448
106449
106450
106451if test x"$krb5_developer" = x"yes" -o x"$developer" = x"yes" -o x"$picky_developer" = x"yes"; then
106452    CFLAGS="${CFLAGS} \$(DEVELOPER_CFLAGS)"
106453fi
106454
106455# Stuff the smbd-only libraries at the end of the smbd link
106456# path (if we have them).
106457SMBD_LIBS="$samba_dmapi_libs"
106458
106459
106460CFLAGS="${CFLAGS} \$(FLAGS)"
106461
106462if test x$MERGED_BUILD != x1; then
106463	CFLAGS="${CFLAGS} -D_SAMBA_BUILD_=3"
106464else
106465	if test x"$BLDSHARED" = x"true" ; then
106466		LDFLAGS="$LDFLAGS -L./bin"
106467	fi
106468fi
106469
106470
106471if test x$samba_cv_gnu_make = xyes; then
106472	MAKEFILE=Makefile
106473else
106474	# When we don't have GNU Make, generate a copy of Makefile.in
106475	# that doesn't have the "include " statements but just includes
106476	# the files verbatim.
106477	MAKEFILE=Makefile-noincludes
106478	$PERL ./script/expand-includes.pl Makefile.in > $MAKEFILE.in
106479fi
106480ac_config_files="$ac_config_files $MAKEFILE script/findsmb smbadduser script/gen-8bit-gap.sh script/installbin.sh script/uninstallbin.sh lib/netapi/examples/Makefile lib/netapi/tests/Makefile pkgconfig/smbclient.pc pkgconfig/wbclient.pc pkgconfig/netapi.pc pkgconfig/smbsharemodes.pc ../examples/libsmbclient/Makefile.internal"
106481
106482cat >confcache <<\_ACEOF
106483# This file is a shell script that caches the results of configure
106484# tests run on this system so they can be shared between configure
106485# scripts and configure runs, see configure's option --config-cache.
106486# It is not useful on other systems.  If it contains results you don't
106487# want to keep, you may remove or edit it.
106488#
106489# config.status only pays attention to the cache file if you give it
106490# the --recheck option to rerun configure.
106491#
106492# `ac_cv_env_foo' variables (set or unset) will be overridden when
106493# loading this file, other *unset* `ac_cv_foo' will be assigned the
106494# following values.
106495
106496_ACEOF
106497
106498# The following way of writing the cache mishandles newlines in values,
106499# but we know of no workaround that is simple, portable, and efficient.
106500# So, we kill variables containing newlines.
106501# Ultrix sh set writes to stderr and can't be redirected directly,
106502# and sets the high bit in the cache file unless we assign to the vars.
106503(
106504  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
106505    eval ac_val=\$$ac_var
106506    case $ac_val in #(
106507    *${as_nl}*)
106508      case $ac_var in #(
106509      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
106510$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
106511      esac
106512      case $ac_var in #(
106513      _ | IFS | as_nl) ;; #(
106514      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
106515      *) $as_unset $ac_var ;;
106516      esac ;;
106517    esac
106518  done
106519
106520  (set) 2>&1 |
106521    case $as_nl`(ac_space=' '; set) 2>&1` in #(
106522    *${as_nl}ac_space=\ *)
106523      # `set' does not quote correctly, so add quotes (double-quote
106524      # substitution turns \\\\ into \\, and sed turns \\ into \).
106525      sed -n \
106526	"s/'/'\\\\''/g;
106527	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
106528      ;; #(
106529    *)
106530      # `set' quotes correctly as required by POSIX, so do not add quotes.
106531      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
106532      ;;
106533    esac |
106534    sort
106535) |
106536  sed '
106537     /^ac_cv_env_/b end
106538     t clear
106539     :clear
106540     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
106541     t end
106542     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
106543     :end' >>confcache
106544if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
106545  if test -w "$cache_file"; then
106546    test "x$cache_file" != "x/dev/null" &&
106547      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
106548$as_echo "$as_me: updating cache $cache_file" >&6;}
106549    cat confcache >$cache_file
106550  else
106551    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
106552$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
106553  fi
106554fi
106555rm -f confcache
106556
106557test "x$prefix" = xNONE && prefix=$ac_default_prefix
106558# Let make expand exec_prefix.
106559test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
106560
106561DEFS=-DHAVE_CONFIG_H
106562
106563ac_libobjs=
106564ac_ltlibobjs=
106565for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
106566  # 1. Remove the extension, and $U if already installed.
106567  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
106568  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
106569  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
106570  #    will be set to the directory where LIBOBJS objects are built.
106571  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
106572  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
106573done
106574LIBOBJS=$ac_libobjs
106575
106576LTLIBOBJS=$ac_ltlibobjs
106577
106578
106579
106580
106581
106582		if test x"$define_ldb_modulesdir" = x"yes";then
106583			LDB_MODULESDIR=`eval eval echo ${modulesdir}/ldb`
106584
106585cat >>confdefs.h <<_ACEOF
106586#define LDB_MODULESDIR "${LDB_MODULESDIR}"
106587_ACEOF
106588
106589		fi
106590
106591
106592: ${CONFIG_STATUS=./config.status}
106593ac_write_fail=0
106594ac_clean_files_save=$ac_clean_files
106595ac_clean_files="$ac_clean_files $CONFIG_STATUS"
106596{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
106597$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
106598cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
106599#! $SHELL
106600# Generated by $as_me.
106601# Run this file to recreate the current configuration.
106602# Compiler output produced by configure, useful for debugging
106603# configure, is in config.log if it exists.
106604
106605debug=false
106606ac_cs_recheck=false
106607ac_cs_silent=false
106608SHELL=\${CONFIG_SHELL-$SHELL}
106609_ACEOF
106610
106611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
106612## --------------------- ##
106613## M4sh Initialization.  ##
106614## --------------------- ##
106615
106616# Be more Bourne compatible
106617DUALCASE=1; export DUALCASE # for MKS sh
106618if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
106619  emulate sh
106620  NULLCMD=:
106621  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
106622  # is contrary to our usage.  Disable this feature.
106623  alias -g '${1+"$@"}'='"$@"'
106624  setopt NO_GLOB_SUBST
106625else
106626  case `(set -o) 2>/dev/null` in
106627  *posix*) set -o posix ;;
106628esac
106629
106630fi
106631
106632
106633
106634
106635# PATH needs CR
106636# Avoid depending upon Character Ranges.
106637as_cr_letters='abcdefghijklmnopqrstuvwxyz'
106638as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
106639as_cr_Letters=$as_cr_letters$as_cr_LETTERS
106640as_cr_digits='0123456789'
106641as_cr_alnum=$as_cr_Letters$as_cr_digits
106642
106643as_nl='
106644'
106645export as_nl
106646# Printing a long string crashes Solaris 7 /usr/bin/printf.
106647as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
106648as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
106649as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
106650if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
106651  as_echo='printf %s\n'
106652  as_echo_n='printf %s'
106653else
106654  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
106655    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
106656    as_echo_n='/usr/ucb/echo -n'
106657  else
106658    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
106659    as_echo_n_body='eval
106660      arg=$1;
106661      case $arg in
106662      *"$as_nl"*)
106663	expr "X$arg" : "X\\(.*\\)$as_nl";
106664	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
106665      esac;
106666      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
106667    '
106668    export as_echo_n_body
106669    as_echo_n='sh -c $as_echo_n_body as_echo'
106670  fi
106671  export as_echo_body
106672  as_echo='sh -c $as_echo_body as_echo'
106673fi
106674
106675# The user is always right.
106676if test "${PATH_SEPARATOR+set}" != set; then
106677  PATH_SEPARATOR=:
106678  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
106679    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
106680      PATH_SEPARATOR=';'
106681  }
106682fi
106683
106684# Support unset when possible.
106685if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
106686  as_unset=unset
106687else
106688  as_unset=false
106689fi
106690
106691
106692# IFS
106693# We need space, tab and new line, in precisely that order.  Quoting is
106694# there to prevent editors from complaining about space-tab.
106695# (If _AS_PATH_WALK were called with IFS unset, it would disable word
106696# splitting by setting IFS to empty value.)
106697IFS=" ""	$as_nl"
106698
106699# Find who we are.  Look in the path if we contain no directory separator.
106700case $0 in
106701  *[\\/]* ) as_myself=$0 ;;
106702  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
106703for as_dir in $PATH
106704do
106705  IFS=$as_save_IFS
106706  test -z "$as_dir" && as_dir=.
106707  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106708done
106709IFS=$as_save_IFS
106710
106711     ;;
106712esac
106713# We did not find ourselves, most probably we were run as `sh COMMAND'
106714# in which case we are not to be found in the path.
106715if test "x$as_myself" = x; then
106716  as_myself=$0
106717fi
106718if test ! -f "$as_myself"; then
106719  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
106720  { (exit 1); exit 1; }
106721fi
106722
106723# Work around bugs in pre-3.0 UWIN ksh.
106724for as_var in ENV MAIL MAILPATH
106725do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106726done
106727PS1='$ '
106728PS2='> '
106729PS4='+ '
106730
106731# NLS nuisances.
106732LC_ALL=C
106733export LC_ALL
106734LANGUAGE=C
106735export LANGUAGE
106736
106737# Required to use basename.
106738if expr a : '\(a\)' >/dev/null 2>&1 &&
106739   test "X`expr 00001 : '.*\(...\)'`" = X001; then
106740  as_expr=expr
106741else
106742  as_expr=false
106743fi
106744
106745if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
106746  as_basename=basename
106747else
106748  as_basename=false
106749fi
106750
106751
106752# Name of the executable.
106753as_me=`$as_basename -- "$0" ||
106754$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
106755	 X"$0" : 'X\(//\)$' \| \
106756	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
106757$as_echo X/"$0" |
106758    sed '/^.*\/\([^/][^/]*\)\/*$/{
106759	    s//\1/
106760	    q
106761	  }
106762	  /^X\/\(\/\/\)$/{
106763	    s//\1/
106764	    q
106765	  }
106766	  /^X\/\(\/\).*/{
106767	    s//\1/
106768	    q
106769	  }
106770	  s/.*/./; q'`
106771
106772# CDPATH.
106773$as_unset CDPATH
106774
106775
106776
106777  as_lineno_1=$LINENO
106778  as_lineno_2=$LINENO
106779  test "x$as_lineno_1" != "x$as_lineno_2" &&
106780  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
106781
106782  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
106783  # uniformly replaced by the line number.  The first 'sed' inserts a
106784  # line-number line after each line using $LINENO; the second 'sed'
106785  # does the real work.  The second script uses 'N' to pair each
106786  # line-number line with the line containing $LINENO, and appends
106787  # trailing '-' during substitution so that $LINENO is not a special
106788  # case at line end.
106789  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
106790  # scripts with optimization help from Paolo Bonzini.  Blame Lee
106791  # E. McMahon (1931-1989) for sed's syntax.  :-)
106792  sed -n '
106793    p
106794    /[$]LINENO/=
106795  ' <$as_myself |
106796    sed '
106797      s/[$]LINENO.*/&-/
106798      t lineno
106799      b
106800      :lineno
106801      N
106802      :loop
106803      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
106804      t loop
106805      s/-\n.*//
106806    ' >$as_me.lineno &&
106807  chmod +x "$as_me.lineno" ||
106808    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
106809   { (exit 1); exit 1; }; }
106810
106811  # Don't try to exec as it changes $[0], causing all sort of problems
106812  # (the dirname of $[0] is not the place where we might find the
106813  # original and so on.  Autoconf is especially sensitive to this).
106814  . "./$as_me.lineno"
106815  # Exit status is that of the last command.
106816  exit
106817}
106818
106819
106820if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
106821  as_dirname=dirname
106822else
106823  as_dirname=false
106824fi
106825
106826ECHO_C= ECHO_N= ECHO_T=
106827case `echo -n x` in
106828-n*)
106829  case `echo 'x\c'` in
106830  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
106831  *)   ECHO_C='\c';;
106832  esac;;
106833*)
106834  ECHO_N='-n';;
106835esac
106836if expr a : '\(a\)' >/dev/null 2>&1 &&
106837   test "X`expr 00001 : '.*\(...\)'`" = X001; then
106838  as_expr=expr
106839else
106840  as_expr=false
106841fi
106842
106843rm -f conf$$ conf$$.exe conf$$.file
106844if test -d conf$$.dir; then
106845  rm -f conf$$.dir/conf$$.file
106846else
106847  rm -f conf$$.dir
106848  mkdir conf$$.dir 2>/dev/null
106849fi
106850if (echo >conf$$.file) 2>/dev/null; then
106851  if ln -s conf$$.file conf$$ 2>/dev/null; then
106852    as_ln_s='ln -s'
106853    # ... but there are two gotchas:
106854    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
106855    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
106856    # In both cases, we have to default to `cp -p'.
106857    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
106858      as_ln_s='cp -p'
106859  elif ln conf$$.file conf$$ 2>/dev/null; then
106860    as_ln_s=ln
106861  else
106862    as_ln_s='cp -p'
106863  fi
106864else
106865  as_ln_s='cp -p'
106866fi
106867rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
106868rmdir conf$$.dir 2>/dev/null
106869
106870if mkdir -p . 2>/dev/null; then
106871  as_mkdir_p=:
106872else
106873  test -d ./-p && rmdir ./-p
106874  as_mkdir_p=false
106875fi
106876
106877if test -x / >/dev/null 2>&1; then
106878  as_test_x='test -x'
106879else
106880  if ls -dL / >/dev/null 2>&1; then
106881    as_ls_L_option=L
106882  else
106883    as_ls_L_option=
106884  fi
106885  as_test_x='
106886    eval sh -c '\''
106887      if test -d "$1"; then
106888	test -d "$1/.";
106889      else
106890	case $1 in
106891	-*)set "./$1";;
106892	esac;
106893	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
106894	???[sx]*):;;*)false;;esac;fi
106895    '\'' sh
106896  '
106897fi
106898as_executable_p=$as_test_x
106899
106900# Sed expression to map a string onto a valid CPP name.
106901as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
106902
106903# Sed expression to map a string onto a valid variable name.
106904as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
106905
106906
106907exec 6>&1
106908
106909# Save the log message, to keep $[0] and so on meaningful, and to
106910# report actual input values of CONFIG_FILES etc. instead of their
106911# values after options handling.
106912ac_log="
106913This file was extended by Samba $as_me 3, which was
106914generated by GNU Autoconf 2.63.  Invocation command line was
106915
106916  CONFIG_FILES    = $CONFIG_FILES
106917  CONFIG_HEADERS  = $CONFIG_HEADERS
106918  CONFIG_LINKS    = $CONFIG_LINKS
106919  CONFIG_COMMANDS = $CONFIG_COMMANDS
106920  $ $0 $@
106921
106922on `(hostname || uname -n) 2>/dev/null | sed 1q`
106923"
106924
106925_ACEOF
106926
106927case $ac_config_files in *"
106928"*) set x $ac_config_files; shift; ac_config_files=$*;;
106929esac
106930
106931case $ac_config_headers in *"
106932"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
106933esac
106934
106935
106936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
106937# Files that config.status was made for.
106938config_files="$ac_config_files"
106939config_headers="$ac_config_headers"
106940config_commands="$ac_config_commands"
106941
106942_ACEOF
106943
106944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
106945ac_cs_usage="\
106946\`$as_me' instantiates files from templates according to the
106947current configuration.
106948
106949Usage: $0 [OPTION]... [FILE]...
106950
106951  -h, --help       print this help, then exit
106952  -V, --version    print version number and configuration settings, then exit
106953  -q, --quiet, --silent
106954                   do not print progress messages
106955  -d, --debug      don't remove temporary files
106956      --recheck    update $as_me by reconfiguring in the same conditions
106957      --file=FILE[:TEMPLATE]
106958                   instantiate the configuration file FILE
106959      --header=FILE[:TEMPLATE]
106960                   instantiate the configuration header FILE
106961
106962Configuration files:
106963$config_files
106964
106965Configuration headers:
106966$config_headers
106967
106968Configuration commands:
106969$config_commands
106970
106971Report bugs to <bug-autoconf@gnu.org>."
106972
106973_ACEOF
106974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
106975ac_cs_version="\\
106976Samba config.status 3
106977configured by $0, generated by GNU Autoconf 2.63,
106978  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
106979
106980Copyright (C) 2008 Free Software Foundation, Inc.
106981This config.status script is free software; the Free Software Foundation
106982gives unlimited permission to copy, distribute and modify it."
106983
106984ac_pwd='$ac_pwd'
106985srcdir='$srcdir'
106986INSTALL='$INSTALL'
106987AWK='$AWK'
106988test -n "\$AWK" || AWK=awk
106989_ACEOF
106990
106991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
106992# The default lists apply if the user does not specify any file.
106993ac_need_defaults=:
106994while test $# != 0
106995do
106996  case $1 in
106997  --*=*)
106998    ac_option=`expr "X$1" : 'X\([^=]*\)='`
106999    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
107000    ac_shift=:
107001    ;;
107002  *)
107003    ac_option=$1
107004    ac_optarg=$2
107005    ac_shift=shift
107006    ;;
107007  esac
107008
107009  case $ac_option in
107010  # Handling of the options.
107011  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
107012    ac_cs_recheck=: ;;
107013  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
107014    $as_echo "$ac_cs_version"; exit ;;
107015  --debug | --debu | --deb | --de | --d | -d )
107016    debug=: ;;
107017  --file | --fil | --fi | --f )
107018    $ac_shift
107019    case $ac_optarg in
107020    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
107021    esac
107022    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
107023    ac_need_defaults=false;;
107024  --header | --heade | --head | --hea )
107025    $ac_shift
107026    case $ac_optarg in
107027    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
107028    esac
107029    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
107030    ac_need_defaults=false;;
107031  --he | --h)
107032    # Conflict between --help and --header
107033    { $as_echo "$as_me: error: ambiguous option: $1
107034Try \`$0 --help' for more information." >&2
107035   { (exit 1); exit 1; }; };;
107036  --help | --hel | -h )
107037    $as_echo "$ac_cs_usage"; exit ;;
107038  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
107039  | -silent | --silent | --silen | --sile | --sil | --si | --s)
107040    ac_cs_silent=: ;;
107041
107042  # This is an error.
107043  -*) { $as_echo "$as_me: error: unrecognized option: $1
107044Try \`$0 --help' for more information." >&2
107045   { (exit 1); exit 1; }; } ;;
107046
107047  *) ac_config_targets="$ac_config_targets $1"
107048     ac_need_defaults=false ;;
107049
107050  esac
107051  shift
107052done
107053
107054ac_configure_extra_args=
107055
107056if $ac_cs_silent; then
107057  exec 6>/dev/null
107058  ac_configure_extra_args="$ac_configure_extra_args --silent"
107059fi
107060
107061_ACEOF
107062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
107063if \$ac_cs_recheck; then
107064  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
107065  shift
107066  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
107067  CONFIG_SHELL='$SHELL'
107068  export CONFIG_SHELL
107069  exec "\$@"
107070fi
107071
107072_ACEOF
107073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
107074exec 5>>config.log
107075{
107076  echo
107077  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
107078## Running $as_me. ##
107079_ASBOX
107080  $as_echo "$ac_log"
107081} >&5
107082
107083_ACEOF
107084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
107085#
107086# INIT-COMMANDS
107087#
107088libreplacedir=$libreplacedir
107089libreplacedir=$libreplacedir
107090libreplacedir=$libreplacedir
107091libreplacedir=$libreplacedir
107092
107093srcdir="$srcdir"
107094builddir="$builddir"
107095PERL="$PERL"
107096
107097export PERL
107098export srcdir
107099export builddir
107100
107101
107102_ACEOF
107103
107104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
107105
107106# Handling of arguments.
107107for ac_config_target in $ac_config_targets
107108do
107109  case $ac_config_target in
107110    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
107111    "rm-stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rm-stdint.h" ;;
107112    "mk-stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS mk-stdint.h" ;;
107113    "rm-stdbool.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rm-stdbool.h" ;;
107114    "mk-stdbool.h") CONFIG_COMMANDS="$CONFIG_COMMANDS mk-stdbool.h" ;;
107115    "../source4/lib/registry/registry.pc") CONFIG_FILES="$CONFIG_FILES ../source4/lib/registry/registry.pc" ;;
107116    "../source4/librpc/dcerpc.pc") CONFIG_FILES="$CONFIG_FILES ../source4/librpc/dcerpc.pc" ;;
107117    "../librpc/ndr.pc") CONFIG_FILES="$CONFIG_FILES ../librpc/ndr.pc" ;;
107118    "../lib/torture/torture.pc") CONFIG_FILES="$CONFIG_FILES ../lib/torture/torture.pc" ;;
107119    "../source4/auth/gensec/gensec.pc") CONFIG_FILES="$CONFIG_FILES ../source4/auth/gensec/gensec.pc" ;;
107120    "../source4/param/samba-hostconfig.pc") CONFIG_FILES="$CONFIG_FILES ../source4/param/samba-hostconfig.pc" ;;
107121    "../source4/librpc/dcerpc_samr.pc") CONFIG_FILES="$CONFIG_FILES ../source4/librpc/dcerpc_samr.pc" ;;
107122    "../source4/librpc/dcerpc_atsvc.pc") CONFIG_FILES="$CONFIG_FILES ../source4/librpc/dcerpc_atsvc.pc" ;;
107123    "../source4/lib/ldb/ldb.pc") CONFIG_FILES="$CONFIG_FILES ../source4/lib/ldb/ldb.pc" ;;
107124    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
107125    "Makefile-samba4") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile-samba4" ;;
107126    "$MAKEFILE") CONFIG_FILES="$CONFIG_FILES $MAKEFILE" ;;
107127    "script/findsmb") CONFIG_FILES="$CONFIG_FILES script/findsmb" ;;
107128    "smbadduser") CONFIG_FILES="$CONFIG_FILES smbadduser" ;;
107129    "script/gen-8bit-gap.sh") CONFIG_FILES="$CONFIG_FILES script/gen-8bit-gap.sh" ;;
107130    "script/installbin.sh") CONFIG_FILES="$CONFIG_FILES script/installbin.sh" ;;
107131    "script/uninstallbin.sh") CONFIG_FILES="$CONFIG_FILES script/uninstallbin.sh" ;;
107132    "lib/netapi/examples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/netapi/examples/Makefile" ;;
107133    "lib/netapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/netapi/tests/Makefile" ;;
107134    "pkgconfig/smbclient.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/smbclient.pc" ;;
107135    "pkgconfig/wbclient.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/wbclient.pc" ;;
107136    "pkgconfig/netapi.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/netapi.pc" ;;
107137    "pkgconfig/smbsharemodes.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/smbsharemodes.pc" ;;
107138    "../examples/libsmbclient/Makefile.internal") CONFIG_FILES="$CONFIG_FILES ../examples/libsmbclient/Makefile.internal" ;;
107139
107140  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
107141$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
107142   { (exit 1); exit 1; }; };;
107143  esac
107144done
107145
107146
107147# If the user did not use the arguments to specify the items to instantiate,
107148# then the envvar interface is used.  Set only those that are not.
107149# We use the long form for the default assignment because of an extremely
107150# bizarre bug on SunOS 4.1.3.
107151if $ac_need_defaults; then
107152  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
107153  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
107154  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
107155fi
107156
107157# Have a temporary directory for convenience.  Make it in the build tree
107158# simply because there is no reason against having it here, and in addition,
107159# creating and moving files from /tmp can sometimes cause problems.
107160# Hook for its removal unless debugging.
107161# Note that there is a small window in which the directory will not be cleaned:
107162# after its creation but before its name has been assigned to `$tmp'.
107163$debug ||
107164{
107165  tmp=
107166  trap 'exit_status=$?
107167  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
107168' 0
107169  trap '{ (exit 1); exit 1; }' 1 2 13 15
107170}
107171# Create a (secure) tmp directory for tmp files.
107172
107173{
107174  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
107175  test -n "$tmp" && test -d "$tmp"
107176}  ||
107177{
107178  tmp=./conf$$-$RANDOM
107179  (umask 077 && mkdir "$tmp")
107180} ||
107181{
107182   $as_echo "$as_me: cannot create a temporary directory in ." >&2
107183   { (exit 1); exit 1; }
107184}
107185
107186# Set up the scripts for CONFIG_FILES section.
107187# No need to generate them if there are no CONFIG_FILES.
107188# This happens for instance with `./config.status config.h'.
107189if test -n "$CONFIG_FILES"; then
107190
107191
107192ac_cr='
107193'
107194ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
107195if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
107196  ac_cs_awk_cr='\\r'
107197else
107198  ac_cs_awk_cr=$ac_cr
107199fi
107200
107201echo 'BEGIN {' >"$tmp/subs1.awk" &&
107202_ACEOF
107203
107204
107205{
107206  echo "cat >conf$$subs.awk <<_ACEOF" &&
107207  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
107208  echo "_ACEOF"
107209} >conf$$subs.sh ||
107210  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
107211$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
107212   { (exit 1); exit 1; }; }
107213ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
107214ac_delim='%!_!# '
107215for ac_last_try in false false false false false :; do
107216  . ./conf$$subs.sh ||
107217    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
107218$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
107219   { (exit 1); exit 1; }; }
107220
107221  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
107222  if test $ac_delim_n = $ac_delim_num; then
107223    break
107224  elif $ac_last_try; then
107225    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
107226$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
107227   { (exit 1); exit 1; }; }
107228  else
107229    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
107230  fi
107231done
107232rm -f conf$$subs.sh
107233
107234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
107235cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
107236_ACEOF
107237sed -n '
107238h
107239s/^/S["/; s/!.*/"]=/
107240p
107241g
107242s/^[^!]*!//
107243:repl
107244t repl
107245s/'"$ac_delim"'$//
107246t delim
107247:nl
107248h
107249s/\(.\{148\}\).*/\1/
107250t more1
107251s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
107252p
107253n
107254b repl
107255:more1
107256s/["\\]/\\&/g; s/^/"/; s/$/"\\/
107257p
107258g
107259s/.\{148\}//
107260t nl
107261:delim
107262h
107263s/\(.\{148\}\).*/\1/
107264t more2
107265s/["\\]/\\&/g; s/^/"/; s/$/"/
107266p
107267b
107268:more2
107269s/["\\]/\\&/g; s/^/"/; s/$/"\\/
107270p
107271g
107272s/.\{148\}//
107273t delim
107274' <conf$$subs.awk | sed '
107275/^[^""]/{
107276  N
107277  s/\n//
107278}
107279' >>$CONFIG_STATUS || ac_write_fail=1
107280rm -f conf$$subs.awk
107281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
107282_ACAWK
107283cat >>"\$tmp/subs1.awk" <<_ACAWK &&
107284  for (key in S) S_is_set[key] = 1
107285  FS = ""
107286
107287}
107288{
107289  line = $ 0
107290  nfields = split(line, field, "@")
107291  substed = 0
107292  len = length(field[1])
107293  for (i = 2; i < nfields; i++) {
107294    key = field[i]
107295    keylen = length(key)
107296    if (S_is_set[key]) {
107297      value = S[key]
107298      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
107299      len += length(value) + length(field[++i])
107300      substed = 1
107301    } else
107302      len += 1 + keylen
107303  }
107304
107305  print line
107306}
107307
107308_ACAWK
107309_ACEOF
107310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
107311if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
107312  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
107313else
107314  cat
107315fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
107316  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
107317$as_echo "$as_me: error: could not setup config files machinery" >&2;}
107318   { (exit 1); exit 1; }; }
107319_ACEOF
107320
107321# VPATH may cause trouble with some makes, so we remove $(srcdir),
107322# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
107323# trailing colons and then remove the whole line if VPATH becomes empty
107324# (actually we leave an empty line to preserve line numbers).
107325if test "x$srcdir" = x.; then
107326  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
107327s/:*\$(srcdir):*/:/
107328s/:*\${srcdir}:*/:/
107329s/:*@srcdir@:*/:/
107330s/^\([^=]*=[	 ]*\):*/\1/
107331s/:*$//
107332s/^[^=]*=[	 ]*$//
107333}'
107334fi
107335
107336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
107337fi # test -n "$CONFIG_FILES"
107338
107339# Set up the scripts for CONFIG_HEADERS section.
107340# No need to generate them if there are no CONFIG_HEADERS.
107341# This happens for instance with `./config.status Makefile'.
107342if test -n "$CONFIG_HEADERS"; then
107343cat >"$tmp/defines.awk" <<\_ACAWK ||
107344BEGIN {
107345_ACEOF
107346
107347# Transform confdefs.h into an awk script `defines.awk', embedded as
107348# here-document in config.status, that substitutes the proper values into
107349# config.h.in to produce config.h.
107350
107351# Create a delimiter string that does not exist in confdefs.h, to ease
107352# handling of long lines.
107353ac_delim='%!_!# '
107354for ac_last_try in false false :; do
107355  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
107356  if test -z "$ac_t"; then
107357    break
107358  elif $ac_last_try; then
107359    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
107360$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
107361   { (exit 1); exit 1; }; }
107362  else
107363    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
107364  fi
107365done
107366
107367# For the awk script, D is an array of macro values keyed by name,
107368# likewise P contains macro parameters if any.  Preserve backslash
107369# newline sequences.
107370
107371ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
107372sed -n '
107373s/.\{148\}/&'"$ac_delim"'/g
107374t rset
107375:rset
107376s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
107377t def
107378d
107379:def
107380s/\\$//
107381t bsnl
107382s/["\\]/\\&/g
107383s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
107384D["\1"]=" \3"/p
107385s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
107386d
107387:bsnl
107388s/["\\]/\\&/g
107389s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
107390D["\1"]=" \3\\\\\\n"\\/p
107391t cont
107392s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
107393t cont
107394d
107395:cont
107396n
107397s/.\{148\}/&'"$ac_delim"'/g
107398t clear
107399:clear
107400s/\\$//
107401t bsnlc
107402s/["\\]/\\&/g; s/^/"/; s/$/"/p
107403d
107404:bsnlc
107405s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
107406b cont
107407' <confdefs.h | sed '
107408s/'"$ac_delim"'/"\\\
107409"/g' >>$CONFIG_STATUS || ac_write_fail=1
107410
107411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
107412  for (key in D) D_is_set[key] = 1
107413  FS = ""
107414}
107415/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
107416  line = \$ 0
107417  split(line, arg, " ")
107418  if (arg[1] == "#") {
107419    defundef = arg[2]
107420    mac1 = arg[3]
107421  } else {
107422    defundef = substr(arg[1], 2)
107423    mac1 = arg[2]
107424  }
107425  split(mac1, mac2, "(") #)
107426  macro = mac2[1]
107427  prefix = substr(line, 1, index(line, defundef) - 1)
107428  if (D_is_set[macro]) {
107429    # Preserve the white space surrounding the "#".
107430    print prefix "define", macro P[macro] D[macro]
107431    next
107432  } else {
107433    # Replace #undef with comments.  This is necessary, for example,
107434    # in the case of _POSIX_SOURCE, which is predefined and required
107435    # on some systems where configure will not decide to define it.
107436    if (defundef == "undef") {
107437      print "/*", prefix defundef, macro, "*/"
107438      next
107439    }
107440  }
107441}
107442{ print }
107443_ACAWK
107444_ACEOF
107445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
107446  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
107447$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
107448   { (exit 1); exit 1; }; }
107449fi # test -n "$CONFIG_HEADERS"
107450
107451
107452eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
107453shift
107454for ac_tag
107455do
107456  case $ac_tag in
107457  :[FHLC]) ac_mode=$ac_tag; continue;;
107458  esac
107459  case $ac_mode$ac_tag in
107460  :[FHL]*:*);;
107461  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
107462$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
107463   { (exit 1); exit 1; }; };;
107464  :[FH]-) ac_tag=-:-;;
107465  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
107466  esac
107467  ac_save_IFS=$IFS
107468  IFS=:
107469  set x $ac_tag
107470  IFS=$ac_save_IFS
107471  shift
107472  ac_file=$1
107473  shift
107474
107475  case $ac_mode in
107476  :L) ac_source=$1;;
107477  :[FH])
107478    ac_file_inputs=
107479    for ac_f
107480    do
107481      case $ac_f in
107482      -) ac_f="$tmp/stdin";;
107483      *) # Look for the file first in the build tree, then in the source tree
107484	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
107485	 # because $ac_f cannot contain `:'.
107486	 test -f "$ac_f" ||
107487	   case $ac_f in
107488	   [\\/$]*) false;;
107489	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
107490	   esac ||
107491	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
107492$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
107493   { (exit 1); exit 1; }; };;
107494      esac
107495      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
107496      ac_file_inputs="$ac_file_inputs '$ac_f'"
107497    done
107498
107499    # Let's still pretend it is `configure' which instantiates (i.e., don't
107500    # use $as_me), people would be surprised to read:
107501    #    /* config.h.  Generated by config.status.  */
107502    configure_input='Generated from '`
107503	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
107504	`' by configure.'
107505    if test x"$ac_file" != x-; then
107506      configure_input="$ac_file.  $configure_input"
107507      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
107508$as_echo "$as_me: creating $ac_file" >&6;}
107509    fi
107510    # Neutralize special characters interpreted by sed in replacement strings.
107511    case $configure_input in #(
107512    *\&* | *\|* | *\\* )
107513       ac_sed_conf_input=`$as_echo "$configure_input" |
107514       sed 's/[\\\\&|]/\\\\&/g'`;; #(
107515    *) ac_sed_conf_input=$configure_input;;
107516    esac
107517
107518    case $ac_tag in
107519    *:-:* | *:-) cat >"$tmp/stdin" \
107520      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
107521$as_echo "$as_me: error: could not create $ac_file" >&2;}
107522   { (exit 1); exit 1; }; } ;;
107523    esac
107524    ;;
107525  esac
107526
107527  ac_dir=`$as_dirname -- "$ac_file" ||
107528$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
107529	 X"$ac_file" : 'X\(//\)[^/]' \| \
107530	 X"$ac_file" : 'X\(//\)$' \| \
107531	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
107532$as_echo X"$ac_file" |
107533    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
107534	    s//\1/
107535	    q
107536	  }
107537	  /^X\(\/\/\)[^/].*/{
107538	    s//\1/
107539	    q
107540	  }
107541	  /^X\(\/\/\)$/{
107542	    s//\1/
107543	    q
107544	  }
107545	  /^X\(\/\).*/{
107546	    s//\1/
107547	    q
107548	  }
107549	  s/.*/./; q'`
107550  { as_dir="$ac_dir"
107551  case $as_dir in #(
107552  -*) as_dir=./$as_dir;;
107553  esac
107554  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
107555    as_dirs=
107556    while :; do
107557      case $as_dir in #(
107558      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
107559      *) as_qdir=$as_dir;;
107560      esac
107561      as_dirs="'$as_qdir' $as_dirs"
107562      as_dir=`$as_dirname -- "$as_dir" ||
107563$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
107564	 X"$as_dir" : 'X\(//\)[^/]' \| \
107565	 X"$as_dir" : 'X\(//\)$' \| \
107566	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
107567$as_echo X"$as_dir" |
107568    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
107569	    s//\1/
107570	    q
107571	  }
107572	  /^X\(\/\/\)[^/].*/{
107573	    s//\1/
107574	    q
107575	  }
107576	  /^X\(\/\/\)$/{
107577	    s//\1/
107578	    q
107579	  }
107580	  /^X\(\/\).*/{
107581	    s//\1/
107582	    q
107583	  }
107584	  s/.*/./; q'`
107585      test -d "$as_dir" && break
107586    done
107587    test -z "$as_dirs" || eval "mkdir $as_dirs"
107588  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
107589$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
107590   { (exit 1); exit 1; }; }; }
107591  ac_builddir=.
107592
107593case "$ac_dir" in
107594.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
107595*)
107596  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
107597  # A ".." for each directory in $ac_dir_suffix.
107598  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
107599  case $ac_top_builddir_sub in
107600  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
107601  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
107602  esac ;;
107603esac
107604ac_abs_top_builddir=$ac_pwd
107605ac_abs_builddir=$ac_pwd$ac_dir_suffix
107606# for backward compatibility:
107607ac_top_builddir=$ac_top_build_prefix
107608
107609case $srcdir in
107610  .)  # We are building in place.
107611    ac_srcdir=.
107612    ac_top_srcdir=$ac_top_builddir_sub
107613    ac_abs_top_srcdir=$ac_pwd ;;
107614  [\\/]* | ?:[\\/]* )  # Absolute name.
107615    ac_srcdir=$srcdir$ac_dir_suffix;
107616    ac_top_srcdir=$srcdir
107617    ac_abs_top_srcdir=$srcdir ;;
107618  *) # Relative name.
107619    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
107620    ac_top_srcdir=$ac_top_build_prefix$srcdir
107621    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
107622esac
107623ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
107624
107625
107626  case $ac_mode in
107627  :F)
107628  #
107629  # CONFIG_FILE
107630  #
107631
107632  case $INSTALL in
107633  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
107634  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
107635  esac
107636_ACEOF
107637
107638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
107639# If the template does not know about datarootdir, expand it.
107640# FIXME: This hack should be removed a few years after 2.60.
107641ac_datarootdir_hack=; ac_datarootdir_seen=
107642
107643ac_sed_dataroot='
107644/datarootdir/ {
107645  p
107646  q
107647}
107648/@datadir@/p
107649/@docdir@/p
107650/@infodir@/p
107651/@localedir@/p
107652/@mandir@/p
107653'
107654case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
107655*datarootdir*) ac_datarootdir_seen=yes;;
107656*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
107657  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
107658$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
107659_ACEOF
107660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
107661  ac_datarootdir_hack='
107662  s&@datadir@&$datadir&g
107663  s&@docdir@&$docdir&g
107664  s&@infodir@&$infodir&g
107665  s&@localedir@&$localedir&g
107666  s&@mandir@&$mandir&g
107667    s&\\\${datarootdir}&$datarootdir&g' ;;
107668esac
107669_ACEOF
107670
107671# Neutralize VPATH when `$srcdir' = `.'.
107672# Shell code in configure.ac might set extrasub.
107673# FIXME: do we really want to maintain this feature?
107674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
107675ac_sed_extra="$ac_vpsub
107676$extrasub
107677_ACEOF
107678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
107679:t
107680/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
107681s|@configure_input@|$ac_sed_conf_input|;t t
107682s&@top_builddir@&$ac_top_builddir_sub&;t t
107683s&@top_build_prefix@&$ac_top_build_prefix&;t t
107684s&@srcdir@&$ac_srcdir&;t t
107685s&@abs_srcdir@&$ac_abs_srcdir&;t t
107686s&@top_srcdir@&$ac_top_srcdir&;t t
107687s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
107688s&@builddir@&$ac_builddir&;t t
107689s&@abs_builddir@&$ac_abs_builddir&;t t
107690s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
107691s&@INSTALL@&$ac_INSTALL&;t t
107692$ac_datarootdir_hack
107693"
107694eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
107695  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
107696$as_echo "$as_me: error: could not create $ac_file" >&2;}
107697   { (exit 1); exit 1; }; }
107698
107699test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
107700  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
107701  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
107702  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
107703which seems to be undefined.  Please make sure it is defined." >&5
107704$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
107705which seems to be undefined.  Please make sure it is defined." >&2;}
107706
107707  rm -f "$tmp/stdin"
107708  case $ac_file in
107709  -) cat "$tmp/out" && rm -f "$tmp/out";;
107710  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
107711  esac \
107712  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
107713$as_echo "$as_me: error: could not create $ac_file" >&2;}
107714   { (exit 1); exit 1; }; }
107715 ;;
107716  :H)
107717  #
107718  # CONFIG_HEADER
107719  #
107720  if test x"$ac_file" != x-; then
107721    {
107722      $as_echo "/* $configure_input  */" \
107723      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
107724    } >"$tmp/config.h" \
107725      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
107726$as_echo "$as_me: error: could not create $ac_file" >&2;}
107727   { (exit 1); exit 1; }; }
107728    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
107729      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
107730$as_echo "$as_me: $ac_file is unchanged" >&6;}
107731    else
107732      rm -f "$ac_file"
107733      mv "$tmp/config.h" "$ac_file" \
107734	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
107735$as_echo "$as_me: error: could not create $ac_file" >&2;}
107736   { (exit 1); exit 1; }; }
107737    fi
107738  else
107739    $as_echo "/* $configure_input  */" \
107740      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
107741      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
107742$as_echo "$as_me: error: could not create -" >&2;}
107743   { (exit 1); exit 1; }; }
107744  fi
107745 ;;
107746
107747  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
107748$as_echo "$as_me: executing $ac_file commands" >&6;}
107749 ;;
107750  esac
107751
107752
107753  case $ac_file$ac_mode in
107754    "rm-stdint.h":C) rm -f $libreplacedir/stdint.h ;;
107755    "mk-stdint.h":C) echo "#include \"replace.h\"" > $libreplacedir/stdint.h ;;
107756    "rm-stdbool.h":C) rm -f $libreplacedir/stdbool.h ;;
107757    "mk-stdbool.h":C) echo "#include \"replace.h\"" > $libreplacedir/stdbool.h ;;
107758    "default-1":C)
107759cd ${srcdir}/../source4
107760$PERL -I${builddir} -I${builddir}/build \
107761    -I. -Ibuild \
107762    build/smb_build/main.pl --output=../source3/samba4-data.mk main.mk || exit $?
107763cd ../source3
107764 ;;
107765    "Makefile-samba4":C)
107766echo "include samba4.mk" >> ${builddir}/Makefile
107767 ;;
107768
107769  esac
107770done # for ac_tag
107771
107772
107773{ (exit 0); exit 0; }
107774_ACEOF
107775chmod +x $CONFIG_STATUS
107776ac_clean_files=$ac_clean_files_save
107777
107778test $ac_write_fail = 0 ||
107779  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
107780$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
107781   { (exit 1); exit 1; }; }
107782
107783
107784# configure is writing to config.log, and then calls config.status.
107785# config.status does its own redirection, appending to config.log.
107786# Unfortunately, on DOS this fails, as config.log is still kept open
107787# by configure, so config.status won't be able to write to it; its
107788# output is simply discarded.  So we exec the FD to /dev/null,
107789# effectively closing config.log, so it can be properly (re)opened and
107790# appended to by config.status.  When coming back to configure, we
107791# need to make the FD available again.
107792if test "$no_create" != yes; then
107793  ac_cs_success=:
107794  ac_config_status_args=
107795  test "$silent" = yes &&
107796    ac_config_status_args="$ac_config_status_args --quiet"
107797  exec 5>/dev/null
107798  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
107799  exec 5>>config.log
107800  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
107801  # would make configure fail if this is the last instruction.
107802  $ac_cs_success || { (exit 1); exit 1; }
107803fi
107804if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
107805  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
107806$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
107807fi
107808
107809ac_config_commands="$ac_config_commands default-2"
107810
107811
107812#################################################
107813# Print very concise instructions on building/use
107814if test "x$enable_dmalloc" = xyes
107815then
107816	{ $as_echo "$as_me:$LINENO: result: Note: The dmalloc debug library will be included.  To turn it on use" >&5
107817$as_echo "Note: The dmalloc debug library will be included.  To turn it on use" >&6; }
107818	{ $as_echo "$as_me:$LINENO: result:       \$ eval \\`dmalloc samba\\`." >&5
107819$as_echo "      \$ eval \\`dmalloc samba\\`." >&6; }
107820fi
107821