1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for rsync  .
4#
5# Report bugs to <https://rsync.samba.org/bug-tracking.html>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (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
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://rsync.samba.org/bug-tracking.html about your
271$0: system, including any error possibly output before this
272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='rsync'
582PACKAGE_TARNAME='rsync'
583PACKAGE_VERSION=' '
584PACKAGE_STRING='rsync  '
585PACKAGE_BUGREPORT='https://rsync.samba.org/bug-tracking.html'
586PACKAGE_URL=''
587
588ac_unique_file="byteorder.h"
589ac_config_libobj_dir=lib
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_header_list=
627ac_subst_vars='LTLIBOBJS
628MAKE_MAN
629BUILD_ZLIB
630BUILD_POPT
631CC_SHOBJ_FLAG
632OBJ_RESTORE
633OBJ_SAVE
634ALLOCA
635LIBOBJS
636ASM
637NOEXECSTACK
638SIMD
639FAKEROOT_PATH
640SHELL_PATH
641HAVE_REMSH
642PYTHON3
643PERL
644MKDIR_P
645INSTALL_DATA
646INSTALL_SCRIPT
647INSTALL_PROGRAM
648EGREP
649GREP
650AWK
651ac_ct_CXX
652CXXFLAGS
653CXX
654CPP
655OBJEXT
656EXEEXT
657ac_ct_CC
658CPPFLAGS
659LDFLAGS
660CFLAGS
661CC
662host_os
663host_vendor
664host_cpu
665host
666build_os
667build_vendor
668build_cpu
669build
670target_alias
671host_alias
672build_alias
673LIBS
674ECHO_T
675ECHO_N
676ECHO_C
677DEFS
678mandir
679localedir
680libdir
681psdir
682pdfdir
683dvidir
684htmldir
685infodir
686docdir
687oldincludedir
688includedir
689runstatedir
690localstatedir
691sharedstatedir
692sysconfdir
693datadir
694datarootdir
695libexecdir
696sbindir
697bindir
698program_transform_name
699prefix
700exec_prefix
701PACKAGE_URL
702PACKAGE_BUGREPORT
703PACKAGE_STRING
704PACKAGE_VERSION
705PACKAGE_TARNAME
706PACKAGE_NAME
707PATH_SEPARATOR
708SHELL'
709ac_subst_files=''
710ac_user_opts='
711enable_option_checking
712enable_debug
713enable_profile
714enable_md2man
715enable_maintainer_mode
716with_included_popt
717with_included_zlib
718with_protected_args
719with_rsync_path
720with_rsyncd_conf
721with_rsh
722with_nobody_group
723enable_simd
724enable_asm
725enable_largefile
726enable_ipv6
727enable_locale
728enable_openssl
729enable_xxhash
730enable_zstd
731enable_lz4
732enable_iconv_open
733enable_iconv
734enable_acl_support
735enable_xattr_support
736'
737      ac_precious_vars='build_alias
738host_alias
739target_alias
740CC
741CFLAGS
742LDFLAGS
743LIBS
744CPPFLAGS
745CPP
746CXX
747CXXFLAGS
748CCC'
749
750
751# Initialize some variables set by options.
752ac_init_help=
753ac_init_version=false
754ac_unrecognized_opts=
755ac_unrecognized_sep=
756# The variables have the same names as the options, with
757# dashes changed to underlines.
758cache_file=/dev/null
759exec_prefix=NONE
760no_create=
761no_recursion=
762prefix=NONE
763program_prefix=NONE
764program_suffix=NONE
765program_transform_name=s,x,x,
766silent=
767site=
768srcdir=
769verbose=
770x_includes=NONE
771x_libraries=NONE
772
773# Installation directory options.
774# These are left unexpanded so users can "make install exec_prefix=/foo"
775# and all the variables that are supposed to be based on exec_prefix
776# by default will actually change.
777# Use braces instead of parens because sh, perl, etc. also accept them.
778# (The list follows the same order as the GNU Coding Standards.)
779bindir='${exec_prefix}/bin'
780sbindir='${exec_prefix}/sbin'
781libexecdir='${exec_prefix}/libexec'
782datarootdir='${prefix}/share'
783datadir='${datarootdir}'
784sysconfdir='${prefix}/etc'
785sharedstatedir='${prefix}/com'
786localstatedir='${prefix}/var'
787runstatedir='${localstatedir}/run'
788includedir='${prefix}/include'
789oldincludedir='/usr/include'
790docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
791infodir='${datarootdir}/info'
792htmldir='${docdir}'
793dvidir='${docdir}'
794pdfdir='${docdir}'
795psdir='${docdir}'
796libdir='${exec_prefix}/lib'
797localedir='${datarootdir}/locale'
798mandir='${datarootdir}/man'
799
800ac_prev=
801ac_dashdash=
802for ac_option
803do
804  # If the previous option needs an argument, assign it.
805  if test -n "$ac_prev"; then
806    eval $ac_prev=\$ac_option
807    ac_prev=
808    continue
809  fi
810
811  case $ac_option in
812  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813  *=)   ac_optarg= ;;
814  *)    ac_optarg=yes ;;
815  esac
816
817  # Accept the important Cygnus configure options, so we can diagnose typos.
818
819  case $ac_dashdash$ac_option in
820  --)
821    ac_dashdash=yes ;;
822
823  -bindir | --bindir | --bindi | --bind | --bin | --bi)
824    ac_prev=bindir ;;
825  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826    bindir=$ac_optarg ;;
827
828  -build | --build | --buil | --bui | --bu)
829    ac_prev=build_alias ;;
830  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831    build_alias=$ac_optarg ;;
832
833  -cache-file | --cache-file | --cache-fil | --cache-fi \
834  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835    ac_prev=cache_file ;;
836  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838    cache_file=$ac_optarg ;;
839
840  --config-cache | -C)
841    cache_file=config.cache ;;
842
843  -datadir | --datadir | --datadi | --datad)
844    ac_prev=datadir ;;
845  -datadir=* | --datadir=* | --datadi=* | --datad=*)
846    datadir=$ac_optarg ;;
847
848  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849  | --dataroo | --dataro | --datar)
850    ac_prev=datarootdir ;;
851  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853    datarootdir=$ac_optarg ;;
854
855  -disable-* | --disable-*)
856    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857    # Reject names that are not valid shell variable names.
858    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859      as_fn_error $? "invalid feature name: $ac_useropt"
860    ac_useropt_orig=$ac_useropt
861    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862    case $ac_user_opts in
863      *"
864"enable_$ac_useropt"
865"*) ;;
866      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867	 ac_unrecognized_sep=', ';;
868    esac
869    eval enable_$ac_useropt=no ;;
870
871  -docdir | --docdir | --docdi | --doc | --do)
872    ac_prev=docdir ;;
873  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874    docdir=$ac_optarg ;;
875
876  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877    ac_prev=dvidir ;;
878  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879    dvidir=$ac_optarg ;;
880
881  -enable-* | --enable-*)
882    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883    # Reject names that are not valid shell variable names.
884    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885      as_fn_error $? "invalid feature name: $ac_useropt"
886    ac_useropt_orig=$ac_useropt
887    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888    case $ac_user_opts in
889      *"
890"enable_$ac_useropt"
891"*) ;;
892      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893	 ac_unrecognized_sep=', ';;
894    esac
895    eval enable_$ac_useropt=\$ac_optarg ;;
896
897  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899  | --exec | --exe | --ex)
900    ac_prev=exec_prefix ;;
901  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903  | --exec=* | --exe=* | --ex=*)
904    exec_prefix=$ac_optarg ;;
905
906  -gas | --gas | --ga | --g)
907    # Obsolete; use --with-gas.
908    with_gas=yes ;;
909
910  -help | --help | --hel | --he | -h)
911    ac_init_help=long ;;
912  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913    ac_init_help=recursive ;;
914  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915    ac_init_help=short ;;
916
917  -host | --host | --hos | --ho)
918    ac_prev=host_alias ;;
919  -host=* | --host=* | --hos=* | --ho=*)
920    host_alias=$ac_optarg ;;
921
922  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923    ac_prev=htmldir ;;
924  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925  | --ht=*)
926    htmldir=$ac_optarg ;;
927
928  -includedir | --includedir | --includedi | --included | --include \
929  | --includ | --inclu | --incl | --inc)
930    ac_prev=includedir ;;
931  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932  | --includ=* | --inclu=* | --incl=* | --inc=*)
933    includedir=$ac_optarg ;;
934
935  -infodir | --infodir | --infodi | --infod | --info | --inf)
936    ac_prev=infodir ;;
937  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938    infodir=$ac_optarg ;;
939
940  -libdir | --libdir | --libdi | --libd)
941    ac_prev=libdir ;;
942  -libdir=* | --libdir=* | --libdi=* | --libd=*)
943    libdir=$ac_optarg ;;
944
945  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946  | --libexe | --libex | --libe)
947    ac_prev=libexecdir ;;
948  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949  | --libexe=* | --libex=* | --libe=*)
950    libexecdir=$ac_optarg ;;
951
952  -localedir | --localedir | --localedi | --localed | --locale)
953    ac_prev=localedir ;;
954  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955    localedir=$ac_optarg ;;
956
957  -localstatedir | --localstatedir | --localstatedi | --localstated \
958  | --localstate | --localstat | --localsta | --localst | --locals)
959    ac_prev=localstatedir ;;
960  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962    localstatedir=$ac_optarg ;;
963
964  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965    ac_prev=mandir ;;
966  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967    mandir=$ac_optarg ;;
968
969  -nfp | --nfp | --nf)
970    # Obsolete; use --without-fp.
971    with_fp=no ;;
972
973  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974  | --no-cr | --no-c | -n)
975    no_create=yes ;;
976
977  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979    no_recursion=yes ;;
980
981  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983  | --oldin | --oldi | --old | --ol | --o)
984    ac_prev=oldincludedir ;;
985  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988    oldincludedir=$ac_optarg ;;
989
990  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991    ac_prev=prefix ;;
992  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993    prefix=$ac_optarg ;;
994
995  -program-prefix | --program-prefix | --program-prefi | --program-pref \
996  | --program-pre | --program-pr | --program-p)
997    ac_prev=program_prefix ;;
998  -program-prefix=* | --program-prefix=* | --program-prefi=* \
999  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000    program_prefix=$ac_optarg ;;
1001
1002  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003  | --program-suf | --program-su | --program-s)
1004    ac_prev=program_suffix ;;
1005  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007    program_suffix=$ac_optarg ;;
1008
1009  -program-transform-name | --program-transform-name \
1010  | --program-transform-nam | --program-transform-na \
1011  | --program-transform-n | --program-transform- \
1012  | --program-transform | --program-transfor \
1013  | --program-transfo | --program-transf \
1014  | --program-trans | --program-tran \
1015  | --progr-tra | --program-tr | --program-t)
1016    ac_prev=program_transform_name ;;
1017  -program-transform-name=* | --program-transform-name=* \
1018  | --program-transform-nam=* | --program-transform-na=* \
1019  | --program-transform-n=* | --program-transform-=* \
1020  | --program-transform=* | --program-transfor=* \
1021  | --program-transfo=* | --program-transf=* \
1022  | --program-trans=* | --program-tran=* \
1023  | --progr-tra=* | --program-tr=* | --program-t=*)
1024    program_transform_name=$ac_optarg ;;
1025
1026  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027    ac_prev=pdfdir ;;
1028  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029    pdfdir=$ac_optarg ;;
1030
1031  -psdir | --psdir | --psdi | --psd | --ps)
1032    ac_prev=psdir ;;
1033  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034    psdir=$ac_optarg ;;
1035
1036  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037  | -silent | --silent | --silen | --sile | --sil)
1038    silent=yes ;;
1039
1040  -runstatedir | --runstatedir | --runstatedi | --runstated \
1041  | --runstate | --runstat | --runsta | --runst | --runs \
1042  | --run | --ru | --r)
1043    ac_prev=runstatedir ;;
1044  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1045  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1046  | --run=* | --ru=* | --r=*)
1047    runstatedir=$ac_optarg ;;
1048
1049  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050    ac_prev=sbindir ;;
1051  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052  | --sbi=* | --sb=*)
1053    sbindir=$ac_optarg ;;
1054
1055  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057  | --sharedst | --shareds | --shared | --share | --shar \
1058  | --sha | --sh)
1059    ac_prev=sharedstatedir ;;
1060  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063  | --sha=* | --sh=*)
1064    sharedstatedir=$ac_optarg ;;
1065
1066  -site | --site | --sit)
1067    ac_prev=site ;;
1068  -site=* | --site=* | --sit=*)
1069    site=$ac_optarg ;;
1070
1071  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072    ac_prev=srcdir ;;
1073  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074    srcdir=$ac_optarg ;;
1075
1076  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077  | --syscon | --sysco | --sysc | --sys | --sy)
1078    ac_prev=sysconfdir ;;
1079  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081    sysconfdir=$ac_optarg ;;
1082
1083  -target | --target | --targe | --targ | --tar | --ta | --t)
1084    ac_prev=target_alias ;;
1085  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086    target_alias=$ac_optarg ;;
1087
1088  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089    verbose=yes ;;
1090
1091  -version | --version | --versio | --versi | --vers | -V)
1092    ac_init_version=: ;;
1093
1094  -with-* | --with-*)
1095    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096    # Reject names that are not valid shell variable names.
1097    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098      as_fn_error $? "invalid package name: $ac_useropt"
1099    ac_useropt_orig=$ac_useropt
1100    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101    case $ac_user_opts in
1102      *"
1103"with_$ac_useropt"
1104"*) ;;
1105      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106	 ac_unrecognized_sep=', ';;
1107    esac
1108    eval with_$ac_useropt=\$ac_optarg ;;
1109
1110  -without-* | --without-*)
1111    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112    # Reject names that are not valid shell variable names.
1113    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114      as_fn_error $? "invalid package name: $ac_useropt"
1115    ac_useropt_orig=$ac_useropt
1116    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117    case $ac_user_opts in
1118      *"
1119"with_$ac_useropt"
1120"*) ;;
1121      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122	 ac_unrecognized_sep=', ';;
1123    esac
1124    eval with_$ac_useropt=no ;;
1125
1126  --x)
1127    # Obsolete; use --with-x.
1128    with_x=yes ;;
1129
1130  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131  | --x-incl | --x-inc | --x-in | --x-i)
1132    ac_prev=x_includes ;;
1133  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135    x_includes=$ac_optarg ;;
1136
1137  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139    ac_prev=x_libraries ;;
1140  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142    x_libraries=$ac_optarg ;;
1143
1144  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1145Try \`$0 --help' for more information"
1146    ;;
1147
1148  *=*)
1149    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150    # Reject names that are not valid shell variable names.
1151    case $ac_envvar in #(
1152      '' | [0-9]* | *[!_$as_cr_alnum]* )
1153      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1154    esac
1155    eval $ac_envvar=\$ac_optarg
1156    export $ac_envvar ;;
1157
1158  *)
1159    # FIXME: should be removed in autoconf 3.0.
1160    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1164    ;;
1165
1166  esac
1167done
1168
1169if test -n "$ac_prev"; then
1170  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171  as_fn_error $? "missing argument to $ac_option"
1172fi
1173
1174if test -n "$ac_unrecognized_opts"; then
1175  case $enable_option_checking in
1176    no) ;;
1177    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1178    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179  esac
1180fi
1181
1182# Check all directory arguments for consistency.
1183for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184		datadir sysconfdir sharedstatedir localstatedir includedir \
1185		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186		libdir localedir mandir runstatedir
1187do
1188  eval ac_val=\$$ac_var
1189  # Remove trailing slashes.
1190  case $ac_val in
1191    */ )
1192      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193      eval $ac_var=\$ac_val;;
1194  esac
1195  # Be sure to have absolute directory names.
1196  case $ac_val in
1197    [\\/$]* | ?:[\\/]* )  continue;;
1198    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199  esac
1200  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1201done
1202
1203# There might be people who depend on the old broken behavior: `$host'
1204# used to hold the argument of --host etc.
1205# FIXME: To remove some day.
1206build=$build_alias
1207host=$host_alias
1208target=$target_alias
1209
1210# FIXME: To remove some day.
1211if test "x$host_alias" != x; then
1212  if test "x$build_alias" = x; then
1213    cross_compiling=maybe
1214  elif test "x$build_alias" != "x$host_alias"; then
1215    cross_compiling=yes
1216  fi
1217fi
1218
1219ac_tool_prefix=
1220test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222test "$silent" = yes && exec 6>/dev/null
1223
1224
1225ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226ac_ls_di=`ls -di .` &&
1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228  as_fn_error $? "working directory cannot be determined"
1229test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230  as_fn_error $? "pwd does not report name of working directory"
1231
1232
1233# Find the source files, if location was not specified.
1234if test -z "$srcdir"; then
1235  ac_srcdir_defaulted=yes
1236  # Try the directory containing this script, then the parent directory.
1237  ac_confdir=`$as_dirname -- "$as_myself" ||
1238$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239	 X"$as_myself" : 'X\(//\)[^/]' \| \
1240	 X"$as_myself" : 'X\(//\)$' \| \
1241	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242$as_echo X"$as_myself" |
1243    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244	    s//\1/
1245	    q
1246	  }
1247	  /^X\(\/\/\)[^/].*/{
1248	    s//\1/
1249	    q
1250	  }
1251	  /^X\(\/\/\)$/{
1252	    s//\1/
1253	    q
1254	  }
1255	  /^X\(\/\).*/{
1256	    s//\1/
1257	    q
1258	  }
1259	  s/.*/./; q'`
1260  srcdir=$ac_confdir
1261  if test ! -r "$srcdir/$ac_unique_file"; then
1262    srcdir=..
1263  fi
1264else
1265  ac_srcdir_defaulted=no
1266fi
1267if test ! -r "$srcdir/$ac_unique_file"; then
1268  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1270fi
1271ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272ac_abs_confdir=`(
1273	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1274	pwd)`
1275# When building in place, set srcdir=.
1276if test "$ac_abs_confdir" = "$ac_pwd"; then
1277  srcdir=.
1278fi
1279# Remove unnecessary trailing slashes from srcdir.
1280# Double slashes in file names in object file debugging info
1281# mess up M-x gdb in Emacs.
1282case $srcdir in
1283*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284esac
1285for ac_var in $ac_precious_vars; do
1286  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287  eval ac_env_${ac_var}_value=\$${ac_var}
1288  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290done
1291
1292#
1293# Report the --help message.
1294#
1295if test "$ac_init_help" = "long"; then
1296  # Omit some internal or obsolete options to make the list less imposing.
1297  # This message is too long to be a string in the A/UX 3.1 sh.
1298  cat <<_ACEOF
1299\`configure' configures rsync   to adapt to many kinds of systems.
1300
1301Usage: $0 [OPTION]... [VAR=VALUE]...
1302
1303To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304VAR=VALUE.  See below for descriptions of some of the useful variables.
1305
1306Defaults for the options are specified in brackets.
1307
1308Configuration:
1309  -h, --help              display this help and exit
1310      --help=short        display options specific to this package
1311      --help=recursive    display the short help of all the included packages
1312  -V, --version           display version information and exit
1313  -q, --quiet, --silent   do not print \`checking ...' messages
1314      --cache-file=FILE   cache test results in FILE [disabled]
1315  -C, --config-cache      alias for \`--cache-file=config.cache'
1316  -n, --no-create         do not create output files
1317      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1318
1319Installation directories:
1320  --prefix=PREFIX         install architecture-independent files in PREFIX
1321                          [$ac_default_prefix]
1322  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1323                          [PREFIX]
1324
1325By default, \`make install' will install all the files in
1326\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1327an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328for instance \`--prefix=\$HOME'.
1329
1330For better control, use the options below.
1331
1332Fine tuning of the installation directories:
1333  --bindir=DIR            user executables [EPREFIX/bin]
1334  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1335  --libexecdir=DIR        program executables [EPREFIX/libexec]
1336  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1337  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1338  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1339  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1340  --libdir=DIR            object code libraries [EPREFIX/lib]
1341  --includedir=DIR        C header files [PREFIX/include]
1342  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1343  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1344  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1345  --infodir=DIR           info documentation [DATAROOTDIR/info]
1346  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1347  --mandir=DIR            man documentation [DATAROOTDIR/man]
1348  --docdir=DIR            documentation root [DATAROOTDIR/doc/rsync]
1349  --htmldir=DIR           html documentation [DOCDIR]
1350  --dvidir=DIR            dvi documentation [DOCDIR]
1351  --pdfdir=DIR            pdf documentation [DOCDIR]
1352  --psdir=DIR             ps documentation [DOCDIR]
1353_ACEOF
1354
1355  cat <<\_ACEOF
1356
1357System types:
1358  --build=BUILD     configure for building on BUILD [guessed]
1359  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1360_ACEOF
1361fi
1362
1363if test -n "$ac_init_help"; then
1364  case $ac_init_help in
1365     short | recursive ) echo "Configuration of rsync  :";;
1366   esac
1367  cat <<\_ACEOF
1368
1369Optional Features:
1370  --disable-option-checking  ignore unrecognized --enable/--with options
1371  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1372  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1373  --disable-debug         disable debugging symbols and features
1374  --enable-profile        turn on CPU profiling
1375  --disable-md2man        disable md2man for man page creation
1376  --enable-maintainer-mode
1377                          turn on extra debug features
1378  --disable-simd          disable SIMD optimizations (requires c++)
1379  --disable-asm           disable ASM optimizations
1380  --disable-largefile     omit support for large files
1381  --disable-ipv6          turn off IPv6 support
1382  --disable-locale        disable locale features
1383  --disable-openssl       disable openssl crypto library
1384  --disable-xxhash        disable xxhash checksums
1385  --disable-zstd          disable zstd compression
1386  --disable-lz4           disable LZ4 compression
1387  --disable-iconv-open    disable all use of iconv_open() function
1388  --disable-iconv         disable rsync's --iconv option
1389  --disable-acl-support   disable ACL support
1390  --disable-xattr-support disable extended attributes
1391
1392Optional Packages:
1393  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1394  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1395  --with-included-popt    use bundled popt library, not from system
1396  --with-included-zlib    use bundled zlib library, not from system
1397  --with-protected-args   make --protected-args option the default
1398  --with-rsync-path=PATH  set default --rsync-path to PATH (default: rsync)
1399  --with-rsyncd-conf=PATH set configuration file for rsync server to PATH
1400                          (default: /etc/rsyncd.conf)
1401  --with-rsh=CMD          set remote shell command to CMD (default: ssh)
1402  --with-nobody-group=GROUP
1403                          set the default unprivileged group (default nobody
1404                          or nogroup)
1405
1406Some influential environment variables:
1407  CC          C compiler command
1408  CFLAGS      C compiler flags
1409  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1410              nonstandard directory <lib dir>
1411  LIBS        libraries to pass to the linker, e.g. -l<library>
1412  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1413              you have headers in a nonstandard directory <include dir>
1414  CPP         C preprocessor
1415  CXX         C++ compiler command
1416  CXXFLAGS    C++ compiler flags
1417
1418Use these variables to override the choices made by `configure' or to help
1419it to find libraries and programs with nonstandard names/locations.
1420
1421Report bugs to <https://rsync.samba.org/bug-tracking.html>.
1422_ACEOF
1423ac_status=$?
1424fi
1425
1426if test "$ac_init_help" = "recursive"; then
1427  # If there are subdirs, report their specific --help.
1428  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429    test -d "$ac_dir" ||
1430      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431      continue
1432    ac_builddir=.
1433
1434case "$ac_dir" in
1435.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436*)
1437  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438  # A ".." for each directory in $ac_dir_suffix.
1439  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440  case $ac_top_builddir_sub in
1441  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443  esac ;;
1444esac
1445ac_abs_top_builddir=$ac_pwd
1446ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447# for backward compatibility:
1448ac_top_builddir=$ac_top_build_prefix
1449
1450case $srcdir in
1451  .)  # We are building in place.
1452    ac_srcdir=.
1453    ac_top_srcdir=$ac_top_builddir_sub
1454    ac_abs_top_srcdir=$ac_pwd ;;
1455  [\\/]* | ?:[\\/]* )  # Absolute name.
1456    ac_srcdir=$srcdir$ac_dir_suffix;
1457    ac_top_srcdir=$srcdir
1458    ac_abs_top_srcdir=$srcdir ;;
1459  *) # Relative name.
1460    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461    ac_top_srcdir=$ac_top_build_prefix$srcdir
1462    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463esac
1464ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1465
1466    cd "$ac_dir" || { ac_status=$?; continue; }
1467    # Check for guested configure.
1468    if test -f "$ac_srcdir/configure.gnu"; then
1469      echo &&
1470      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471    elif test -f "$ac_srcdir/configure"; then
1472      echo &&
1473      $SHELL "$ac_srcdir/configure" --help=recursive
1474    else
1475      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476    fi || ac_status=$?
1477    cd "$ac_pwd" || { ac_status=$?; break; }
1478  done
1479fi
1480
1481test -n "$ac_init_help" && exit $ac_status
1482if $ac_init_version; then
1483  cat <<\_ACEOF
1484rsync configure
1485generated by GNU Autoconf 2.69
1486
1487Copyright (C) 2012 Free Software Foundation, Inc.
1488This configure script is free software; the Free Software Foundation
1489gives unlimited permission to copy, distribute and modify it.
1490_ACEOF
1491  exit
1492fi
1493
1494## ------------------------ ##
1495## Autoconf initialization. ##
1496## ------------------------ ##
1497
1498# ac_fn_c_try_compile LINENO
1499# --------------------------
1500# Try to compile conftest.$ac_ext, and return whether this succeeded.
1501ac_fn_c_try_compile ()
1502{
1503  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504  rm -f conftest.$ac_objext
1505  if { { ac_try="$ac_compile"
1506case "(($ac_try" in
1507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508  *) ac_try_echo=$ac_try;;
1509esac
1510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511$as_echo "$ac_try_echo"; } >&5
1512  (eval "$ac_compile") 2>conftest.err
1513  ac_status=$?
1514  if test -s conftest.err; then
1515    grep -v '^ *+' conftest.err >conftest.er1
1516    cat conftest.er1 >&5
1517    mv -f conftest.er1 conftest.err
1518  fi
1519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520  test $ac_status = 0; } && {
1521	 test -z "$ac_c_werror_flag" ||
1522	 test ! -s conftest.err
1523       } && test -s conftest.$ac_objext; then :
1524  ac_retval=0
1525else
1526  $as_echo "$as_me: failed program was:" >&5
1527sed 's/^/| /' conftest.$ac_ext >&5
1528
1529	ac_retval=1
1530fi
1531  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1532  as_fn_set_status $ac_retval
1533
1534} # ac_fn_c_try_compile
1535
1536# ac_fn_c_try_cpp LINENO
1537# ----------------------
1538# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1539ac_fn_c_try_cpp ()
1540{
1541  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542  if { { ac_try="$ac_cpp conftest.$ac_ext"
1543case "(($ac_try" in
1544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545  *) ac_try_echo=$ac_try;;
1546esac
1547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548$as_echo "$ac_try_echo"; } >&5
1549  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1550  ac_status=$?
1551  if test -s conftest.err; then
1552    grep -v '^ *+' conftest.err >conftest.er1
1553    cat conftest.er1 >&5
1554    mv -f conftest.er1 conftest.err
1555  fi
1556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557  test $ac_status = 0; } > conftest.i && {
1558	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1559	 test ! -s conftest.err
1560       }; then :
1561  ac_retval=0
1562else
1563  $as_echo "$as_me: failed program was:" >&5
1564sed 's/^/| /' conftest.$ac_ext >&5
1565
1566    ac_retval=1
1567fi
1568  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569  as_fn_set_status $ac_retval
1570
1571} # ac_fn_c_try_cpp
1572
1573# ac_fn_cxx_try_compile LINENO
1574# ----------------------------
1575# Try to compile conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_cxx_try_compile ()
1577{
1578  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579  rm -f conftest.$ac_objext
1580  if { { ac_try="$ac_compile"
1581case "(($ac_try" in
1582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583  *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587  (eval "$ac_compile") 2>conftest.err
1588  ac_status=$?
1589  if test -s conftest.err; then
1590    grep -v '^ *+' conftest.err >conftest.er1
1591    cat conftest.er1 >&5
1592    mv -f conftest.er1 conftest.err
1593  fi
1594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595  test $ac_status = 0; } && {
1596	 test -z "$ac_cxx_werror_flag" ||
1597	 test ! -s conftest.err
1598       } && test -s conftest.$ac_objext; then :
1599  ac_retval=0
1600else
1601  $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604	ac_retval=1
1605fi
1606  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607  as_fn_set_status $ac_retval
1608
1609} # ac_fn_cxx_try_compile
1610
1611# ac_fn_cxx_try_run LINENO
1612# ------------------------
1613# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1614# that executables *can* be run.
1615ac_fn_cxx_try_run ()
1616{
1617  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618  if { { ac_try="$ac_link"
1619case "(($ac_try" in
1620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621  *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625  (eval "$ac_link") 2>&5
1626  ac_status=$?
1627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1629  { { case "(($ac_try" in
1630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631  *) ac_try_echo=$ac_try;;
1632esac
1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634$as_echo "$ac_try_echo"; } >&5
1635  (eval "$ac_try") 2>&5
1636  ac_status=$?
1637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638  test $ac_status = 0; }; }; then :
1639  ac_retval=0
1640else
1641  $as_echo "$as_me: program exited with status $ac_status" >&5
1642       $as_echo "$as_me: failed program was:" >&5
1643sed 's/^/| /' conftest.$ac_ext >&5
1644
1645       ac_retval=$ac_status
1646fi
1647  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649  as_fn_set_status $ac_retval
1650
1651} # ac_fn_cxx_try_run
1652
1653# ac_fn_c_try_run LINENO
1654# ----------------------
1655# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1656# that executables *can* be run.
1657ac_fn_c_try_run ()
1658{
1659  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660  if { { ac_try="$ac_link"
1661case "(($ac_try" in
1662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663  *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667  (eval "$ac_link") 2>&5
1668  ac_status=$?
1669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1671  { { case "(($ac_try" in
1672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673  *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676$as_echo "$ac_try_echo"; } >&5
1677  (eval "$ac_try") 2>&5
1678  ac_status=$?
1679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680  test $ac_status = 0; }; }; then :
1681  ac_retval=0
1682else
1683  $as_echo "$as_me: program exited with status $ac_status" >&5
1684       $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687       ac_retval=$ac_status
1688fi
1689  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691  as_fn_set_status $ac_retval
1692
1693} # ac_fn_c_try_run
1694
1695# ac_fn_c_try_link LINENO
1696# -----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_link ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  rm -f conftest.$ac_objext conftest$ac_exeext
1702  if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709  (eval "$ac_link") 2>conftest.err
1710  ac_status=$?
1711  if test -s conftest.err; then
1712    grep -v '^ *+' conftest.err >conftest.er1
1713    cat conftest.er1 >&5
1714    mv -f conftest.er1 conftest.err
1715  fi
1716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717  test $ac_status = 0; } && {
1718	 test -z "$ac_c_werror_flag" ||
1719	 test ! -s conftest.err
1720       } && test -s conftest$ac_exeext && {
1721	 test "$cross_compiling" = yes ||
1722	 test -x conftest$ac_exeext
1723       }; then :
1724  ac_retval=0
1725else
1726  $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729	ac_retval=1
1730fi
1731  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733  # interfere with the next link command; also delete a directory that is
1734  # left behind by Apple's compiler.  We do this before executing the actions.
1735  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737  as_fn_set_status $ac_retval
1738
1739} # ac_fn_c_try_link
1740
1741# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742# -------------------------------------------------------
1743# Tests whether HEADER exists and can be compiled using the include files in
1744# INCLUDES, setting the cache variable VAR accordingly.
1745ac_fn_c_check_header_compile ()
1746{
1747  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749$as_echo_n "checking for $2... " >&6; }
1750if eval \${$3+:} false; then :
1751  $as_echo_n "(cached) " >&6
1752else
1753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h.  */
1755$4
1756#include <$2>
1757_ACEOF
1758if ac_fn_c_try_compile "$LINENO"; then :
1759  eval "$3=yes"
1760else
1761  eval "$3=no"
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764fi
1765eval ac_res=\$$3
1766	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767$as_echo "$ac_res" >&6; }
1768  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769
1770} # ac_fn_c_check_header_compile
1771
1772# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1773# -------------------------------------------------------
1774# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1775# the include files in INCLUDES and setting the cache variable VAR
1776# accordingly.
1777ac_fn_c_check_header_mongrel ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  if eval \${$3+:} false; then :
1781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782$as_echo_n "checking for $2... " >&6; }
1783if eval \${$3+:} false; then :
1784  $as_echo_n "(cached) " >&6
1785fi
1786eval ac_res=\$$3
1787	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788$as_echo "$ac_res" >&6; }
1789else
1790  # Is the header compilable?
1791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1792$as_echo_n "checking $2 usability... " >&6; }
1793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794/* end confdefs.h.  */
1795$4
1796#include <$2>
1797_ACEOF
1798if ac_fn_c_try_compile "$LINENO"; then :
1799  ac_header_compiler=yes
1800else
1801  ac_header_compiler=no
1802fi
1803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1805$as_echo "$ac_header_compiler" >&6; }
1806
1807# Is the header present?
1808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1809$as_echo_n "checking $2 presence... " >&6; }
1810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h.  */
1812#include <$2>
1813_ACEOF
1814if ac_fn_c_try_cpp "$LINENO"; then :
1815  ac_header_preproc=yes
1816else
1817  ac_header_preproc=no
1818fi
1819rm -f conftest.err conftest.i conftest.$ac_ext
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1821$as_echo "$ac_header_preproc" >&6; }
1822
1823# So?  What about this header?
1824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1825  yes:no: )
1826    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1827$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1828    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830    ;;
1831  no:yes:* )
1832    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1833$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1834    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1835$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1836    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1837$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1838    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1839$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1840    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1841$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1842( $as_echo "## -------------------------------------------------------- ##
1843## Report this to https://rsync.samba.org/bug-tracking.html ##
1844## -------------------------------------------------------- ##"
1845     ) | sed "s/^/$as_me: WARNING:     /" >&2
1846    ;;
1847esac
1848  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849$as_echo_n "checking for $2... " >&6; }
1850if eval \${$3+:} false; then :
1851  $as_echo_n "(cached) " >&6
1852else
1853  eval "$3=\$ac_header_compiler"
1854fi
1855eval ac_res=\$$3
1856	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857$as_echo "$ac_res" >&6; }
1858fi
1859  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861} # ac_fn_c_check_header_mongrel
1862
1863# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1864# --------------------------------------------
1865# Tries to find the compile-time value of EXPR in a program that includes
1866# INCLUDES, setting VAR accordingly. Returns whether the value could be
1867# computed
1868ac_fn_c_compute_int ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  if test "$cross_compiling" = yes; then
1872    # Depending upon the size, compute the lo and hi bounds.
1873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874/* end confdefs.h.  */
1875$4
1876int
1877main ()
1878{
1879static int test_array [1 - 2 * !(($2) >= 0)];
1880test_array [0] = 0;
1881return test_array [0];
1882
1883  ;
1884  return 0;
1885}
1886_ACEOF
1887if ac_fn_c_try_compile "$LINENO"; then :
1888  ac_lo=0 ac_mid=0
1889  while :; do
1890    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891/* end confdefs.h.  */
1892$4
1893int
1894main ()
1895{
1896static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1897test_array [0] = 0;
1898return test_array [0];
1899
1900  ;
1901  return 0;
1902}
1903_ACEOF
1904if ac_fn_c_try_compile "$LINENO"; then :
1905  ac_hi=$ac_mid; break
1906else
1907  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1908			if test $ac_lo -le $ac_mid; then
1909			  ac_lo= ac_hi=
1910			  break
1911			fi
1912			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1913fi
1914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915  done
1916else
1917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918/* end confdefs.h.  */
1919$4
1920int
1921main ()
1922{
1923static int test_array [1 - 2 * !(($2) < 0)];
1924test_array [0] = 0;
1925return test_array [0];
1926
1927  ;
1928  return 0;
1929}
1930_ACEOF
1931if ac_fn_c_try_compile "$LINENO"; then :
1932  ac_hi=-1 ac_mid=-1
1933  while :; do
1934    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h.  */
1936$4
1937int
1938main ()
1939{
1940static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1941test_array [0] = 0;
1942return test_array [0];
1943
1944  ;
1945  return 0;
1946}
1947_ACEOF
1948if ac_fn_c_try_compile "$LINENO"; then :
1949  ac_lo=$ac_mid; break
1950else
1951  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1952			if test $ac_mid -le $ac_hi; then
1953			  ac_lo= ac_hi=
1954			  break
1955			fi
1956			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1957fi
1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959  done
1960else
1961  ac_lo= ac_hi=
1962fi
1963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964fi
1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966# Binary search between lo and hi bounds.
1967while test "x$ac_lo" != "x$ac_hi"; do
1968  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970/* end confdefs.h.  */
1971$4
1972int
1973main ()
1974{
1975static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1976test_array [0] = 0;
1977return test_array [0];
1978
1979  ;
1980  return 0;
1981}
1982_ACEOF
1983if ac_fn_c_try_compile "$LINENO"; then :
1984  ac_hi=$ac_mid
1985else
1986  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1987fi
1988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989done
1990case $ac_lo in #((
1991?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1992'') ac_retval=1 ;;
1993esac
1994  else
1995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996/* end confdefs.h.  */
1997$4
1998static long int longval () { return $2; }
1999static unsigned long int ulongval () { return $2; }
2000#include <stdio.h>
2001#include <stdlib.h>
2002int
2003main ()
2004{
2005
2006  FILE *f = fopen ("conftest.val", "w");
2007  if (! f)
2008    return 1;
2009  if (($2) < 0)
2010    {
2011      long int i = longval ();
2012      if (i != ($2))
2013	return 1;
2014      fprintf (f, "%ld", i);
2015    }
2016  else
2017    {
2018      unsigned long int i = ulongval ();
2019      if (i != ($2))
2020	return 1;
2021      fprintf (f, "%lu", i);
2022    }
2023  /* Do not output a trailing newline, as this causes \r\n confusion
2024     on some platforms.  */
2025  return ferror (f) || fclose (f) != 0;
2026
2027  ;
2028  return 0;
2029}
2030_ACEOF
2031if ac_fn_c_try_run "$LINENO"; then :
2032  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2033else
2034  ac_retval=1
2035fi
2036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2037  conftest.$ac_objext conftest.beam conftest.$ac_ext
2038rm -f conftest.val
2039
2040  fi
2041  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042  as_fn_set_status $ac_retval
2043
2044} # ac_fn_c_compute_int
2045
2046# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2047# -------------------------------------------
2048# Tests whether TYPE exists after having included INCLUDES, setting cache
2049# variable VAR accordingly.
2050ac_fn_c_check_type ()
2051{
2052  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054$as_echo_n "checking for $2... " >&6; }
2055if eval \${$3+:} false; then :
2056  $as_echo_n "(cached) " >&6
2057else
2058  eval "$3=no"
2059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060/* end confdefs.h.  */
2061$4
2062int
2063main ()
2064{
2065if (sizeof ($2))
2066	 return 0;
2067  ;
2068  return 0;
2069}
2070_ACEOF
2071if ac_fn_c_try_compile "$LINENO"; then :
2072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073/* end confdefs.h.  */
2074$4
2075int
2076main ()
2077{
2078if (sizeof (($2)))
2079	    return 0;
2080  ;
2081  return 0;
2082}
2083_ACEOF
2084if ac_fn_c_try_compile "$LINENO"; then :
2085
2086else
2087  eval "$3=yes"
2088fi
2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090fi
2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092fi
2093eval ac_res=\$$3
2094	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095$as_echo "$ac_res" >&6; }
2096  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097
2098} # ac_fn_c_check_type
2099
2100# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2101# ----------------------------------------------------
2102# Tries to find if the field MEMBER exists in type AGGR, after including
2103# INCLUDES, setting cache variable VAR accordingly.
2104ac_fn_c_check_member ()
2105{
2106  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2108$as_echo_n "checking for $2.$3... " >&6; }
2109if eval \${$4+:} false; then :
2110  $as_echo_n "(cached) " >&6
2111else
2112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113/* end confdefs.h.  */
2114$5
2115int
2116main ()
2117{
2118static $2 ac_aggr;
2119if (ac_aggr.$3)
2120return 0;
2121  ;
2122  return 0;
2123}
2124_ACEOF
2125if ac_fn_c_try_compile "$LINENO"; then :
2126  eval "$4=yes"
2127else
2128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h.  */
2130$5
2131int
2132main ()
2133{
2134static $2 ac_aggr;
2135if (sizeof ac_aggr.$3)
2136return 0;
2137  ;
2138  return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_compile "$LINENO"; then :
2142  eval "$4=yes"
2143else
2144  eval "$4=no"
2145fi
2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147fi
2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149fi
2150eval ac_res=\$$4
2151	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152$as_echo "$ac_res" >&6; }
2153  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154
2155} # ac_fn_c_check_member
2156
2157# ac_fn_c_check_func LINENO FUNC VAR
2158# ----------------------------------
2159# Tests whether FUNC exists, setting the cache variable VAR accordingly
2160ac_fn_c_check_func ()
2161{
2162  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164$as_echo_n "checking for $2... " >&6; }
2165if eval \${$3+:} false; then :
2166  $as_echo_n "(cached) " >&6
2167else
2168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h.  */
2170/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2171   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2172#define $2 innocuous_$2
2173
2174/* System header to define __stub macros and hopefully few prototypes,
2175    which can conflict with char $2 (); below.
2176    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2177    <limits.h> exists even on freestanding compilers.  */
2178
2179#ifdef __STDC__
2180# include <limits.h>
2181#else
2182# include <assert.h>
2183#endif
2184
2185#undef $2
2186
2187/* Override any GCC internal prototype to avoid an error.
2188   Use char because int might match the return type of a GCC
2189   builtin and then its argument prototype would still apply.  */
2190#ifdef __cplusplus
2191extern "C"
2192#endif
2193char $2 ();
2194/* The GNU C library defines this for functions which it implements
2195    to always fail with ENOSYS.  Some functions are actually named
2196    something starting with __ and the normal name is an alias.  */
2197#if defined __stub_$2 || defined __stub___$2
2198choke me
2199#endif
2200
2201int
2202main ()
2203{
2204return $2 ();
2205  ;
2206  return 0;
2207}
2208_ACEOF
2209if ac_fn_c_try_link "$LINENO"; then :
2210  eval "$3=yes"
2211else
2212  eval "$3=no"
2213fi
2214rm -f core conftest.err conftest.$ac_objext \
2215    conftest$ac_exeext conftest.$ac_ext
2216fi
2217eval ac_res=\$$3
2218	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219$as_echo "$ac_res" >&6; }
2220  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221
2222} # ac_fn_c_check_func
2223cat >config.log <<_ACEOF
2224This file contains any messages produced by compilers while
2225running configure, to aid debugging if configure makes a mistake.
2226
2227It was created by rsync $as_me  , which was
2228generated by GNU Autoconf 2.69.  Invocation command line was
2229
2230  $ $0 $@
2231
2232_ACEOF
2233exec 5>>config.log
2234{
2235cat <<_ASUNAME
2236## --------- ##
2237## Platform. ##
2238## --------- ##
2239
2240hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2241uname -m = `(uname -m) 2>/dev/null || echo unknown`
2242uname -r = `(uname -r) 2>/dev/null || echo unknown`
2243uname -s = `(uname -s) 2>/dev/null || echo unknown`
2244uname -v = `(uname -v) 2>/dev/null || echo unknown`
2245
2246/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2247/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2248
2249/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2250/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2251/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2252/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2253/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2254/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2255/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2256
2257_ASUNAME
2258
2259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260for as_dir in $PATH
2261do
2262  IFS=$as_save_IFS
2263  test -z "$as_dir" && as_dir=.
2264    $as_echo "PATH: $as_dir"
2265  done
2266IFS=$as_save_IFS
2267
2268} >&5
2269
2270cat >&5 <<_ACEOF
2271
2272
2273## ----------- ##
2274## Core tests. ##
2275## ----------- ##
2276
2277_ACEOF
2278
2279
2280# Keep a trace of the command line.
2281# Strip out --no-create and --no-recursion so they do not pile up.
2282# Strip out --silent because we don't want to record it for future runs.
2283# Also quote any args containing shell meta-characters.
2284# Make two passes to allow for proper duplicate-argument suppression.
2285ac_configure_args=
2286ac_configure_args0=
2287ac_configure_args1=
2288ac_must_keep_next=false
2289for ac_pass in 1 2
2290do
2291  for ac_arg
2292  do
2293    case $ac_arg in
2294    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2295    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2296    | -silent | --silent | --silen | --sile | --sil)
2297      continue ;;
2298    *\'*)
2299      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2300    esac
2301    case $ac_pass in
2302    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2303    2)
2304      as_fn_append ac_configure_args1 " '$ac_arg'"
2305      if test $ac_must_keep_next = true; then
2306	ac_must_keep_next=false # Got value, back to normal.
2307      else
2308	case $ac_arg in
2309	  *=* | --config-cache | -C | -disable-* | --disable-* \
2310	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2311	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2312	  | -with-* | --with-* | -without-* | --without-* | --x)
2313	    case "$ac_configure_args0 " in
2314	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2315	    esac
2316	    ;;
2317	  -* ) ac_must_keep_next=true ;;
2318	esac
2319      fi
2320      as_fn_append ac_configure_args " '$ac_arg'"
2321      ;;
2322    esac
2323  done
2324done
2325{ ac_configure_args0=; unset ac_configure_args0;}
2326{ ac_configure_args1=; unset ac_configure_args1;}
2327
2328# When interrupted or exit'd, cleanup temporary files, and complete
2329# config.log.  We remove comments because anyway the quotes in there
2330# would cause problems or look ugly.
2331# WARNING: Use '\'' to represent an apostrophe within the trap.
2332# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2333trap 'exit_status=$?
2334  # Save into config.log some information that might help in debugging.
2335  {
2336    echo
2337
2338    $as_echo "## ---------------- ##
2339## Cache variables. ##
2340## ---------------- ##"
2341    echo
2342    # The following way of writing the cache mishandles newlines in values,
2343(
2344  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2345    eval ac_val=\$$ac_var
2346    case $ac_val in #(
2347    *${as_nl}*)
2348      case $ac_var in #(
2349      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2350$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2351      esac
2352      case $ac_var in #(
2353      _ | IFS | as_nl) ;; #(
2354      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2355      *) { eval $ac_var=; unset $ac_var;} ;;
2356      esac ;;
2357    esac
2358  done
2359  (set) 2>&1 |
2360    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2361    *${as_nl}ac_space=\ *)
2362      sed -n \
2363	"s/'\''/'\''\\\\'\'''\''/g;
2364	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2365      ;; #(
2366    *)
2367      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2368      ;;
2369    esac |
2370    sort
2371)
2372    echo
2373
2374    $as_echo "## ----------------- ##
2375## Output variables. ##
2376## ----------------- ##"
2377    echo
2378    for ac_var in $ac_subst_vars
2379    do
2380      eval ac_val=\$$ac_var
2381      case $ac_val in
2382      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2383      esac
2384      $as_echo "$ac_var='\''$ac_val'\''"
2385    done | sort
2386    echo
2387
2388    if test -n "$ac_subst_files"; then
2389      $as_echo "## ------------------- ##
2390## File substitutions. ##
2391## ------------------- ##"
2392      echo
2393      for ac_var in $ac_subst_files
2394      do
2395	eval ac_val=\$$ac_var
2396	case $ac_val in
2397	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2398	esac
2399	$as_echo "$ac_var='\''$ac_val'\''"
2400      done | sort
2401      echo
2402    fi
2403
2404    if test -s confdefs.h; then
2405      $as_echo "## ----------- ##
2406## confdefs.h. ##
2407## ----------- ##"
2408      echo
2409      cat confdefs.h
2410      echo
2411    fi
2412    test "$ac_signal" != 0 &&
2413      $as_echo "$as_me: caught signal $ac_signal"
2414    $as_echo "$as_me: exit $exit_status"
2415  } >&5
2416  rm -f core *.core core.conftest.* &&
2417    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2418    exit $exit_status
2419' 0
2420for ac_signal in 1 2 13 15; do
2421  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2422done
2423ac_signal=0
2424
2425# confdefs.h avoids OS command line length limits that DEFS can exceed.
2426rm -f -r conftest* confdefs.h
2427
2428$as_echo "/* confdefs.h */" > confdefs.h
2429
2430# Predefined preprocessor variables.
2431
2432cat >>confdefs.h <<_ACEOF
2433#define PACKAGE_NAME "$PACKAGE_NAME"
2434_ACEOF
2435
2436cat >>confdefs.h <<_ACEOF
2437#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2438_ACEOF
2439
2440cat >>confdefs.h <<_ACEOF
2441#define PACKAGE_VERSION "$PACKAGE_VERSION"
2442_ACEOF
2443
2444cat >>confdefs.h <<_ACEOF
2445#define PACKAGE_STRING "$PACKAGE_STRING"
2446_ACEOF
2447
2448cat >>confdefs.h <<_ACEOF
2449#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2450_ACEOF
2451
2452cat >>confdefs.h <<_ACEOF
2453#define PACKAGE_URL "$PACKAGE_URL"
2454_ACEOF
2455
2456
2457# Let the site file select an alternate cache file if it wants to.
2458# Prefer an explicitly selected file to automatically selected ones.
2459ac_site_file1=NONE
2460ac_site_file2=NONE
2461if test -n "$CONFIG_SITE"; then
2462  # We do not want a PATH search for config.site.
2463  case $CONFIG_SITE in #((
2464    -*)  ac_site_file1=./$CONFIG_SITE;;
2465    */*) ac_site_file1=$CONFIG_SITE;;
2466    *)   ac_site_file1=./$CONFIG_SITE;;
2467  esac
2468elif test "x$prefix" != xNONE; then
2469  ac_site_file1=$prefix/share/config.site
2470  ac_site_file2=$prefix/etc/config.site
2471else
2472  ac_site_file1=$ac_default_prefix/share/config.site
2473  ac_site_file2=$ac_default_prefix/etc/config.site
2474fi
2475for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2476do
2477  test "x$ac_site_file" = xNONE && continue
2478  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2479    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2480$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2481    sed 's/^/| /' "$ac_site_file" >&5
2482    . "$ac_site_file" \
2483      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2485as_fn_error $? "failed to load site script $ac_site_file
2486See \`config.log' for more details" "$LINENO" 5; }
2487  fi
2488done
2489
2490if test -r "$cache_file"; then
2491  # Some versions of bash will fail to source /dev/null (special files
2492  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2493  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2494    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2495$as_echo "$as_me: loading cache $cache_file" >&6;}
2496    case $cache_file in
2497      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2498      *)                      . "./$cache_file";;
2499    esac
2500  fi
2501else
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2503$as_echo "$as_me: creating cache $cache_file" >&6;}
2504  >$cache_file
2505fi
2506
2507as_fn_append ac_header_list " utime.h"
2508# Check that the precious variables saved in the cache have kept the same
2509# value.
2510ac_cache_corrupted=false
2511for ac_var in $ac_precious_vars; do
2512  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2513  eval ac_new_set=\$ac_env_${ac_var}_set
2514  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2515  eval ac_new_val=\$ac_env_${ac_var}_value
2516  case $ac_old_set,$ac_new_set in
2517    set,)
2518      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2519$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2520      ac_cache_corrupted=: ;;
2521    ,set)
2522      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2523$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2524      ac_cache_corrupted=: ;;
2525    ,);;
2526    *)
2527      if test "x$ac_old_val" != "x$ac_new_val"; then
2528	# differences in whitespace do not lead to failure.
2529	ac_old_val_w=`echo x $ac_old_val`
2530	ac_new_val_w=`echo x $ac_new_val`
2531	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2532	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2533$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2534	  ac_cache_corrupted=:
2535	else
2536	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2537$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2538	  eval $ac_var=\$ac_old_val
2539	fi
2540	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2541$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2542	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2543$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2544      fi;;
2545  esac
2546  # Pass precious variables to config.status.
2547  if test "$ac_new_set" = set; then
2548    case $ac_new_val in
2549    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2550    *) ac_arg=$ac_var=$ac_new_val ;;
2551    esac
2552    case " $ac_configure_args " in
2553      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2554      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2555    esac
2556  fi
2557done
2558if $ac_cache_corrupted; then
2559  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2561  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2562$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2563  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2564fi
2565## -------------------- ##
2566## Main body of script. ##
2567## -------------------- ##
2568
2569ac_ext=c
2570ac_cpp='$CPP $CPPFLAGS'
2571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574
2575
2576
2577
2578
2579ac_config_headers="$ac_config_headers config.h"
2580
2581
2582
2583PACKAGE_VERSION=`sed 's/.*"\(.*\)".*/\1/' <$srcdir/version.h`
2584
2585{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring rsync $PACKAGE_VERSION" >&5
2586$as_echo "$as_me: Configuring rsync $PACKAGE_VERSION" >&6;}
2587
2588LDFLAGS=${LDFLAGS-""}
2589
2590ac_aux_dir=
2591for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2592  if test -f "$ac_dir/install-sh"; then
2593    ac_aux_dir=$ac_dir
2594    ac_install_sh="$ac_aux_dir/install-sh -c"
2595    break
2596  elif test -f "$ac_dir/install.sh"; then
2597    ac_aux_dir=$ac_dir
2598    ac_install_sh="$ac_aux_dir/install.sh -c"
2599    break
2600  elif test -f "$ac_dir/shtool"; then
2601    ac_aux_dir=$ac_dir
2602    ac_install_sh="$ac_aux_dir/shtool install -c"
2603    break
2604  fi
2605done
2606if test -z "$ac_aux_dir"; then
2607  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2608fi
2609
2610# These three variables are undocumented and unsupported,
2611# and are intended to be withdrawn in a future Autoconf release.
2612# They can cause serious problems if a builder's source tree is in a directory
2613# whose full name contains unusual characters.
2614ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2615ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2616ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2617
2618
2619# Make sure we can run config.sub.
2620$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2621  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2622
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2624$as_echo_n "checking build system type... " >&6; }
2625if ${ac_cv_build+:} false; then :
2626  $as_echo_n "(cached) " >&6
2627else
2628  ac_build_alias=$build_alias
2629test "x$ac_build_alias" = x &&
2630  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2631test "x$ac_build_alias" = x &&
2632  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2633ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2634  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2635
2636fi
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2638$as_echo "$ac_cv_build" >&6; }
2639case $ac_cv_build in
2640*-*-*) ;;
2641*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2642esac
2643build=$ac_cv_build
2644ac_save_IFS=$IFS; IFS='-'
2645set x $ac_cv_build
2646shift
2647build_cpu=$1
2648build_vendor=$2
2649shift; shift
2650# Remember, the first character of IFS is used to create $*,
2651# except with old shells:
2652build_os=$*
2653IFS=$ac_save_IFS
2654case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2655
2656
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2658$as_echo_n "checking host system type... " >&6; }
2659if ${ac_cv_host+:} false; then :
2660  $as_echo_n "(cached) " >&6
2661else
2662  if test "x$host_alias" = x; then
2663  ac_cv_host=$ac_cv_build
2664else
2665  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2666    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2667fi
2668
2669fi
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2671$as_echo "$ac_cv_host" >&6; }
2672case $ac_cv_host in
2673*-*-*) ;;
2674*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2675esac
2676host=$ac_cv_host
2677ac_save_IFS=$IFS; IFS='-'
2678set x $ac_cv_host
2679shift
2680host_cpu=$1
2681host_vendor=$2
2682shift; shift
2683# Remember, the first character of IFS is used to create $*,
2684# except with old shells:
2685host_os=$*
2686IFS=$ac_save_IFS
2687case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2688
2689
2690
2691
2692
2693# We must decide this before testing the compiler.
2694
2695# Please allow this to default to yes, so that your users have more
2696# chance of getting a useful stack trace if problems occur.
2697
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging symbols" >&5
2699$as_echo_n "checking whether to include debugging symbols... " >&6; }
2700# Check whether --enable-debug was given.
2701if test "${enable_debug+set}" = set; then :
2702  enableval=$enable_debug;
2703fi
2704
2705
2706if test x"$enable_debug" = x"no"; then
2707    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708$as_echo "no" >&6; }
2709    ac_cv_prog_cc_g=no
2710else
2711    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712$as_echo "yes" >&6; }
2713        # leave ac_cv_prog_cc_g alone; AC_PROG_CC will try to include -g if it can
2714fi
2715
2716ac_ext=c
2717ac_cpp='$CPP $CPPFLAGS'
2718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721if test -n "$ac_tool_prefix"; then
2722  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2723set dummy ${ac_tool_prefix}gcc; ac_word=$2
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725$as_echo_n "checking for $ac_word... " >&6; }
2726if ${ac_cv_prog_CC+:} false; then :
2727  $as_echo_n "(cached) " >&6
2728else
2729  if test -n "$CC"; then
2730  ac_cv_prog_CC="$CC" # Let the user override the test.
2731else
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735  IFS=$as_save_IFS
2736  test -z "$as_dir" && as_dir=.
2737    for ac_exec_ext in '' $ac_executable_extensions; do
2738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741    break 2
2742  fi
2743done
2744  done
2745IFS=$as_save_IFS
2746
2747fi
2748fi
2749CC=$ac_cv_prog_CC
2750if test -n "$CC"; then
2751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2752$as_echo "$CC" >&6; }
2753else
2754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755$as_echo "no" >&6; }
2756fi
2757
2758
2759fi
2760if test -z "$ac_cv_prog_CC"; then
2761  ac_ct_CC=$CC
2762  # Extract the first word of "gcc", so it can be a program name with args.
2763set dummy gcc; ac_word=$2
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765$as_echo_n "checking for $ac_word... " >&6; }
2766if ${ac_cv_prog_ac_ct_CC+:} false; then :
2767  $as_echo_n "(cached) " >&6
2768else
2769  if test -n "$ac_ct_CC"; then
2770  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771else
2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH
2774do
2775  IFS=$as_save_IFS
2776  test -z "$as_dir" && as_dir=.
2777    for ac_exec_ext in '' $ac_executable_extensions; do
2778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779    ac_cv_prog_ac_ct_CC="gcc"
2780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781    break 2
2782  fi
2783done
2784  done
2785IFS=$as_save_IFS
2786
2787fi
2788fi
2789ac_ct_CC=$ac_cv_prog_ac_ct_CC
2790if test -n "$ac_ct_CC"; then
2791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2792$as_echo "$ac_ct_CC" >&6; }
2793else
2794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795$as_echo "no" >&6; }
2796fi
2797
2798  if test "x$ac_ct_CC" = x; then
2799    CC=""
2800  else
2801    case $cross_compiling:$ac_tool_warned in
2802yes:)
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2805ac_tool_warned=yes ;;
2806esac
2807    CC=$ac_ct_CC
2808  fi
2809else
2810  CC="$ac_cv_prog_CC"
2811fi
2812
2813if test -z "$CC"; then
2814          if test -n "$ac_tool_prefix"; then
2815    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2816set dummy ${ac_tool_prefix}cc; ac_word=$2
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818$as_echo_n "checking for $ac_word... " >&6; }
2819if ${ac_cv_prog_CC+:} false; then :
2820  $as_echo_n "(cached) " >&6
2821else
2822  if test -n "$CC"; then
2823  ac_cv_prog_CC="$CC" # Let the user override the test.
2824else
2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826for as_dir in $PATH
2827do
2828  IFS=$as_save_IFS
2829  test -z "$as_dir" && as_dir=.
2830    for ac_exec_ext in '' $ac_executable_extensions; do
2831  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832    ac_cv_prog_CC="${ac_tool_prefix}cc"
2833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834    break 2
2835  fi
2836done
2837  done
2838IFS=$as_save_IFS
2839
2840fi
2841fi
2842CC=$ac_cv_prog_CC
2843if test -n "$CC"; then
2844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2845$as_echo "$CC" >&6; }
2846else
2847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848$as_echo "no" >&6; }
2849fi
2850
2851
2852  fi
2853fi
2854if test -z "$CC"; then
2855  # Extract the first word of "cc", so it can be a program name with args.
2856set dummy cc; ac_word=$2
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858$as_echo_n "checking for $ac_word... " >&6; }
2859if ${ac_cv_prog_CC+:} false; then :
2860  $as_echo_n "(cached) " >&6
2861else
2862  if test -n "$CC"; then
2863  ac_cv_prog_CC="$CC" # Let the user override the test.
2864else
2865  ac_prog_rejected=no
2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867for as_dir in $PATH
2868do
2869  IFS=$as_save_IFS
2870  test -z "$as_dir" && as_dir=.
2871    for ac_exec_ext in '' $ac_executable_extensions; do
2872  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2874       ac_prog_rejected=yes
2875       continue
2876     fi
2877    ac_cv_prog_CC="cc"
2878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879    break 2
2880  fi
2881done
2882  done
2883IFS=$as_save_IFS
2884
2885if test $ac_prog_rejected = yes; then
2886  # We found a bogon in the path, so make sure we never use it.
2887  set dummy $ac_cv_prog_CC
2888  shift
2889  if test $# != 0; then
2890    # We chose a different compiler from the bogus one.
2891    # However, it has the same basename, so the bogon will be chosen
2892    # first if we set CC to just the basename; use the full file name.
2893    shift
2894    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2895  fi
2896fi
2897fi
2898fi
2899CC=$ac_cv_prog_CC
2900if test -n "$CC"; then
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902$as_echo "$CC" >&6; }
2903else
2904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905$as_echo "no" >&6; }
2906fi
2907
2908
2909fi
2910if test -z "$CC"; then
2911  if test -n "$ac_tool_prefix"; then
2912  for ac_prog in cl.exe
2913  do
2914    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2915set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917$as_echo_n "checking for $ac_word... " >&6; }
2918if ${ac_cv_prog_CC+:} false; then :
2919  $as_echo_n "(cached) " >&6
2920else
2921  if test -n "$CC"; then
2922  ac_cv_prog_CC="$CC" # Let the user override the test.
2923else
2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925for as_dir in $PATH
2926do
2927  IFS=$as_save_IFS
2928  test -z "$as_dir" && as_dir=.
2929    for ac_exec_ext in '' $ac_executable_extensions; do
2930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933    break 2
2934  fi
2935done
2936  done
2937IFS=$as_save_IFS
2938
2939fi
2940fi
2941CC=$ac_cv_prog_CC
2942if test -n "$CC"; then
2943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2944$as_echo "$CC" >&6; }
2945else
2946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947$as_echo "no" >&6; }
2948fi
2949
2950
2951    test -n "$CC" && break
2952  done
2953fi
2954if test -z "$CC"; then
2955  ac_ct_CC=$CC
2956  for ac_prog in cl.exe
2957do
2958  # Extract the first word of "$ac_prog", so it can be a program name with args.
2959set dummy $ac_prog; ac_word=$2
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961$as_echo_n "checking for $ac_word... " >&6; }
2962if ${ac_cv_prog_ac_ct_CC+:} false; then :
2963  $as_echo_n "(cached) " >&6
2964else
2965  if test -n "$ac_ct_CC"; then
2966  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2967else
2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH
2970do
2971  IFS=$as_save_IFS
2972  test -z "$as_dir" && as_dir=.
2973    for ac_exec_ext in '' $ac_executable_extensions; do
2974  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2975    ac_cv_prog_ac_ct_CC="$ac_prog"
2976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977    break 2
2978  fi
2979done
2980  done
2981IFS=$as_save_IFS
2982
2983fi
2984fi
2985ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986if test -n "$ac_ct_CC"; then
2987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2988$as_echo "$ac_ct_CC" >&6; }
2989else
2990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991$as_echo "no" >&6; }
2992fi
2993
2994
2995  test -n "$ac_ct_CC" && break
2996done
2997
2998  if test "x$ac_ct_CC" = x; then
2999    CC=""
3000  else
3001    case $cross_compiling:$ac_tool_warned in
3002yes:)
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005ac_tool_warned=yes ;;
3006esac
3007    CC=$ac_ct_CC
3008  fi
3009fi
3010
3011fi
3012
3013
3014test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016as_fn_error $? "no acceptable C compiler found in \$PATH
3017See \`config.log' for more details" "$LINENO" 5; }
3018
3019# Provide some information about the compiler.
3020$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3021set X $ac_compile
3022ac_compiler=$2
3023for ac_option in --version -v -V -qversion; do
3024  { { ac_try="$ac_compiler $ac_option >&5"
3025case "(($ac_try" in
3026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027  *) ac_try_echo=$ac_try;;
3028esac
3029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030$as_echo "$ac_try_echo"; } >&5
3031  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3032  ac_status=$?
3033  if test -s conftest.err; then
3034    sed '10a\
3035... rest of stderr output deleted ...
3036         10q' conftest.err >conftest.er1
3037    cat conftest.er1 >&5
3038  fi
3039  rm -f conftest.er1 conftest.err
3040  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041  test $ac_status = 0; }
3042done
3043
3044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045/* end confdefs.h.  */
3046
3047int
3048main ()
3049{
3050
3051  ;
3052  return 0;
3053}
3054_ACEOF
3055ac_clean_files_save=$ac_clean_files
3056ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3057# Try to create an executable without -o first, disregard a.out.
3058# It will help us diagnose broken compilers, and finding out an intuition
3059# of exeext.
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3061$as_echo_n "checking whether the C compiler works... " >&6; }
3062ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3063
3064# The possible output files:
3065ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3066
3067ac_rmfiles=
3068for ac_file in $ac_files
3069do
3070  case $ac_file in
3071    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3072    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3073  esac
3074done
3075rm -f $ac_rmfiles
3076
3077if { { ac_try="$ac_link_default"
3078case "(($ac_try" in
3079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080  *) ac_try_echo=$ac_try;;
3081esac
3082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083$as_echo "$ac_try_echo"; } >&5
3084  (eval "$ac_link_default") 2>&5
3085  ac_status=$?
3086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087  test $ac_status = 0; }; then :
3088  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3089# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3090# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3091# so that the user can short-circuit this test for compilers unknown to
3092# Autoconf.
3093for ac_file in $ac_files ''
3094do
3095  test -f "$ac_file" || continue
3096  case $ac_file in
3097    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3098	;;
3099    [ab].out )
3100	# We found the default executable, but exeext='' is most
3101	# certainly right.
3102	break;;
3103    *.* )
3104	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3105	then :; else
3106	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3107	fi
3108	# We set ac_cv_exeext here because the later test for it is not
3109	# safe: cross compilers may not add the suffix if given an `-o'
3110	# argument, so we may need to know it at that point already.
3111	# Even if this section looks crufty: it has the advantage of
3112	# actually working.
3113	break;;
3114    * )
3115	break;;
3116  esac
3117done
3118test "$ac_cv_exeext" = no && ac_cv_exeext=
3119
3120else
3121  ac_file=''
3122fi
3123if test -z "$ac_file"; then :
3124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125$as_echo "no" >&6; }
3126$as_echo "$as_me: failed program was:" >&5
3127sed 's/^/| /' conftest.$ac_ext >&5
3128
3129{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131as_fn_error 77 "C compiler cannot create executables
3132See \`config.log' for more details" "$LINENO" 5; }
3133else
3134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3135$as_echo "yes" >&6; }
3136fi
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3138$as_echo_n "checking for C compiler default output file name... " >&6; }
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3140$as_echo "$ac_file" >&6; }
3141ac_exeext=$ac_cv_exeext
3142
3143rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3144ac_clean_files=$ac_clean_files_save
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3146$as_echo_n "checking for suffix of executables... " >&6; }
3147if { { ac_try="$ac_link"
3148case "(($ac_try" in
3149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150  *) ac_try_echo=$ac_try;;
3151esac
3152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153$as_echo "$ac_try_echo"; } >&5
3154  (eval "$ac_link") 2>&5
3155  ac_status=$?
3156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3157  test $ac_status = 0; }; then :
3158  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3159# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3160# work properly (i.e., refer to `conftest.exe'), while it won't with
3161# `rm'.
3162for ac_file in conftest.exe conftest conftest.*; do
3163  test -f "$ac_file" || continue
3164  case $ac_file in
3165    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3166    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167	  break;;
3168    * ) break;;
3169  esac
3170done
3171else
3172  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3175See \`config.log' for more details" "$LINENO" 5; }
3176fi
3177rm -f conftest conftest$ac_cv_exeext
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3179$as_echo "$ac_cv_exeext" >&6; }
3180
3181rm -f conftest.$ac_ext
3182EXEEXT=$ac_cv_exeext
3183ac_exeext=$EXEEXT
3184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185/* end confdefs.h.  */
3186#include <stdio.h>
3187int
3188main ()
3189{
3190FILE *f = fopen ("conftest.out", "w");
3191 return ferror (f) || fclose (f) != 0;
3192
3193  ;
3194  return 0;
3195}
3196_ACEOF
3197ac_clean_files="$ac_clean_files conftest.out"
3198# Check that the compiler produces executables we can run.  If not, either
3199# the compiler is broken, or we cross compile.
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3201$as_echo_n "checking whether we are cross compiling... " >&6; }
3202if test "$cross_compiling" != yes; then
3203  { { ac_try="$ac_link"
3204case "(($ac_try" in
3205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206  *) ac_try_echo=$ac_try;;
3207esac
3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209$as_echo "$ac_try_echo"; } >&5
3210  (eval "$ac_link") 2>&5
3211  ac_status=$?
3212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213  test $ac_status = 0; }
3214  if { ac_try='./conftest$ac_cv_exeext'
3215  { { case "(($ac_try" in
3216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217  *) ac_try_echo=$ac_try;;
3218esac
3219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220$as_echo "$ac_try_echo"; } >&5
3221  (eval "$ac_try") 2>&5
3222  ac_status=$?
3223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224  test $ac_status = 0; }; }; then
3225    cross_compiling=no
3226  else
3227    if test "$cross_compiling" = maybe; then
3228	cross_compiling=yes
3229    else
3230	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232as_fn_error $? "cannot run C compiled programs.
3233If you meant to cross compile, use \`--host'.
3234See \`config.log' for more details" "$LINENO" 5; }
3235    fi
3236  fi
3237fi
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3239$as_echo "$cross_compiling" >&6; }
3240
3241rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3242ac_clean_files=$ac_clean_files_save
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3244$as_echo_n "checking for suffix of object files... " >&6; }
3245if ${ac_cv_objext+:} false; then :
3246  $as_echo_n "(cached) " >&6
3247else
3248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249/* end confdefs.h.  */
3250
3251int
3252main ()
3253{
3254
3255  ;
3256  return 0;
3257}
3258_ACEOF
3259rm -f conftest.o conftest.obj
3260if { { ac_try="$ac_compile"
3261case "(($ac_try" in
3262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263  *) ac_try_echo=$ac_try;;
3264esac
3265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266$as_echo "$ac_try_echo"; } >&5
3267  (eval "$ac_compile") 2>&5
3268  ac_status=$?
3269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270  test $ac_status = 0; }; then :
3271  for ac_file in conftest.o conftest.obj conftest.*; do
3272  test -f "$ac_file" || continue;
3273  case $ac_file in
3274    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3275    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3276       break;;
3277  esac
3278done
3279else
3280  $as_echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285as_fn_error $? "cannot compute suffix of object files: cannot compile
3286See \`config.log' for more details" "$LINENO" 5; }
3287fi
3288rm -f conftest.$ac_cv_objext conftest.$ac_ext
3289fi
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3291$as_echo "$ac_cv_objext" >&6; }
3292OBJEXT=$ac_cv_objext
3293ac_objext=$OBJEXT
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3295$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3296if ${ac_cv_c_compiler_gnu+:} false; then :
3297  $as_echo_n "(cached) " >&6
3298else
3299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300/* end confdefs.h.  */
3301
3302int
3303main ()
3304{
3305#ifndef __GNUC__
3306       choke me
3307#endif
3308
3309  ;
3310  return 0;
3311}
3312_ACEOF
3313if ac_fn_c_try_compile "$LINENO"; then :
3314  ac_compiler_gnu=yes
3315else
3316  ac_compiler_gnu=no
3317fi
3318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319ac_cv_c_compiler_gnu=$ac_compiler_gnu
3320
3321fi
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3323$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3324if test $ac_compiler_gnu = yes; then
3325  GCC=yes
3326else
3327  GCC=
3328fi
3329ac_test_CFLAGS=${CFLAGS+set}
3330ac_save_CFLAGS=$CFLAGS
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3332$as_echo_n "checking whether $CC accepts -g... " >&6; }
3333if ${ac_cv_prog_cc_g+:} false; then :
3334  $as_echo_n "(cached) " >&6
3335else
3336  ac_save_c_werror_flag=$ac_c_werror_flag
3337   ac_c_werror_flag=yes
3338   ac_cv_prog_cc_g=no
3339   CFLAGS="-g"
3340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341/* end confdefs.h.  */
3342
3343int
3344main ()
3345{
3346
3347  ;
3348  return 0;
3349}
3350_ACEOF
3351if ac_fn_c_try_compile "$LINENO"; then :
3352  ac_cv_prog_cc_g=yes
3353else
3354  CFLAGS=""
3355      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356/* end confdefs.h.  */
3357
3358int
3359main ()
3360{
3361
3362  ;
3363  return 0;
3364}
3365_ACEOF
3366if ac_fn_c_try_compile "$LINENO"; then :
3367
3368else
3369  ac_c_werror_flag=$ac_save_c_werror_flag
3370	 CFLAGS="-g"
3371	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372/* end confdefs.h.  */
3373
3374int
3375main ()
3376{
3377
3378  ;
3379  return 0;
3380}
3381_ACEOF
3382if ac_fn_c_try_compile "$LINENO"; then :
3383  ac_cv_prog_cc_g=yes
3384fi
3385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386fi
3387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388fi
3389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390   ac_c_werror_flag=$ac_save_c_werror_flag
3391fi
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3393$as_echo "$ac_cv_prog_cc_g" >&6; }
3394if test "$ac_test_CFLAGS" = set; then
3395  CFLAGS=$ac_save_CFLAGS
3396elif test $ac_cv_prog_cc_g = yes; then
3397  if test "$GCC" = yes; then
3398    CFLAGS="-g -O2"
3399  else
3400    CFLAGS="-g"
3401  fi
3402else
3403  if test "$GCC" = yes; then
3404    CFLAGS="-O2"
3405  else
3406    CFLAGS=
3407  fi
3408fi
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3410$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3411if ${ac_cv_prog_cc_c89+:} false; then :
3412  $as_echo_n "(cached) " >&6
3413else
3414  ac_cv_prog_cc_c89=no
3415ac_save_CC=$CC
3416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417/* end confdefs.h.  */
3418#include <stdarg.h>
3419#include <stdio.h>
3420struct stat;
3421/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3422struct buf { int x; };
3423FILE * (*rcsopen) (struct buf *, struct stat *, int);
3424static char *e (p, i)
3425     char **p;
3426     int i;
3427{
3428  return p[i];
3429}
3430static char *f (char * (*g) (char **, int), char **p, ...)
3431{
3432  char *s;
3433  va_list v;
3434  va_start (v,p);
3435  s = g (p, va_arg (v,int));
3436  va_end (v);
3437  return s;
3438}
3439
3440/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3441   function prototypes and stuff, but not '\xHH' hex character constants.
3442   These don't provoke an error unfortunately, instead are silently treated
3443   as 'x'.  The following induces an error, until -std is added to get
3444   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3445   array size at least.  It's necessary to write '\x00'==0 to get something
3446   that's true only with -std.  */
3447int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3448
3449/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3450   inside strings and character constants.  */
3451#define FOO(x) 'x'
3452int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3453
3454int test (int i, double x);
3455struct s1 {int (*f) (int a);};
3456struct s2 {int (*f) (double a);};
3457int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3458int argc;
3459char **argv;
3460int
3461main ()
3462{
3463return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3464  ;
3465  return 0;
3466}
3467_ACEOF
3468for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3469	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3470do
3471  CC="$ac_save_CC $ac_arg"
3472  if ac_fn_c_try_compile "$LINENO"; then :
3473  ac_cv_prog_cc_c89=$ac_arg
3474fi
3475rm -f core conftest.err conftest.$ac_objext
3476  test "x$ac_cv_prog_cc_c89" != "xno" && break
3477done
3478rm -f conftest.$ac_ext
3479CC=$ac_save_CC
3480
3481fi
3482# AC_CACHE_VAL
3483case "x$ac_cv_prog_cc_c89" in
3484  x)
3485    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3486$as_echo "none needed" >&6; } ;;
3487  xno)
3488    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3489$as_echo "unsupported" >&6; } ;;
3490  *)
3491    CC="$CC $ac_cv_prog_cc_c89"
3492    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3493$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3494esac
3495if test "x$ac_cv_prog_cc_c89" != xno; then :
3496
3497fi
3498
3499ac_ext=c
3500ac_cpp='$CPP $CPPFLAGS'
3501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504
3505ac_ext=c
3506ac_cpp='$CPP $CPPFLAGS'
3507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3511$as_echo_n "checking how to run the C preprocessor... " >&6; }
3512# On Suns, sometimes $CPP names a directory.
3513if test -n "$CPP" && test -d "$CPP"; then
3514  CPP=
3515fi
3516if test -z "$CPP"; then
3517  if ${ac_cv_prog_CPP+:} false; then :
3518  $as_echo_n "(cached) " >&6
3519else
3520      # Double quotes because CPP needs to be expanded
3521    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3522    do
3523      ac_preproc_ok=false
3524for ac_c_preproc_warn_flag in '' yes
3525do
3526  # Use a header file that comes with gcc, so configuring glibc
3527  # with a fresh cross-compiler works.
3528  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3529  # <limits.h> exists even on freestanding compilers.
3530  # On the NeXT, cc -E runs the code through the compiler's parser,
3531  # not just through cpp. "Syntax error" is here to catch this case.
3532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533/* end confdefs.h.  */
3534#ifdef __STDC__
3535# include <limits.h>
3536#else
3537# include <assert.h>
3538#endif
3539		     Syntax error
3540_ACEOF
3541if ac_fn_c_try_cpp "$LINENO"; then :
3542
3543else
3544  # Broken: fails on valid input.
3545continue
3546fi
3547rm -f conftest.err conftest.i conftest.$ac_ext
3548
3549  # OK, works on sane cases.  Now check whether nonexistent headers
3550  # can be detected and how.
3551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552/* end confdefs.h.  */
3553#include <ac_nonexistent.h>
3554_ACEOF
3555if ac_fn_c_try_cpp "$LINENO"; then :
3556  # Broken: success on invalid input.
3557continue
3558else
3559  # Passes both tests.
3560ac_preproc_ok=:
3561break
3562fi
3563rm -f conftest.err conftest.i conftest.$ac_ext
3564
3565done
3566# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3567rm -f conftest.i conftest.err conftest.$ac_ext
3568if $ac_preproc_ok; then :
3569  break
3570fi
3571
3572    done
3573    ac_cv_prog_CPP=$CPP
3574
3575fi
3576  CPP=$ac_cv_prog_CPP
3577else
3578  ac_cv_prog_CPP=$CPP
3579fi
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3581$as_echo "$CPP" >&6; }
3582ac_preproc_ok=false
3583for ac_c_preproc_warn_flag in '' yes
3584do
3585  # Use a header file that comes with gcc, so configuring glibc
3586  # with a fresh cross-compiler works.
3587  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3588  # <limits.h> exists even on freestanding compilers.
3589  # On the NeXT, cc -E runs the code through the compiler's parser,
3590  # not just through cpp. "Syntax error" is here to catch this case.
3591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592/* end confdefs.h.  */
3593#ifdef __STDC__
3594# include <limits.h>
3595#else
3596# include <assert.h>
3597#endif
3598		     Syntax error
3599_ACEOF
3600if ac_fn_c_try_cpp "$LINENO"; then :
3601
3602else
3603  # Broken: fails on valid input.
3604continue
3605fi
3606rm -f conftest.err conftest.i conftest.$ac_ext
3607
3608  # OK, works on sane cases.  Now check whether nonexistent headers
3609  # can be detected and how.
3610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611/* end confdefs.h.  */
3612#include <ac_nonexistent.h>
3613_ACEOF
3614if ac_fn_c_try_cpp "$LINENO"; then :
3615  # Broken: success on invalid input.
3616continue
3617else
3618  # Passes both tests.
3619ac_preproc_ok=:
3620break
3621fi
3622rm -f conftest.err conftest.i conftest.$ac_ext
3623
3624done
3625# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3626rm -f conftest.i conftest.err conftest.$ac_ext
3627if $ac_preproc_ok; then :
3628
3629else
3630  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3633See \`config.log' for more details" "$LINENO" 5; }
3634fi
3635
3636ac_ext=c
3637ac_cpp='$CPP $CPPFLAGS'
3638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641
3642ac_ext=cpp
3643ac_cpp='$CXXCPP $CPPFLAGS'
3644ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3647if test -z "$CXX"; then
3648  if test -n "$CCC"; then
3649    CXX=$CCC
3650  else
3651    if test -n "$ac_tool_prefix"; then
3652  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3653  do
3654    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3655set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657$as_echo_n "checking for $ac_word... " >&6; }
3658if ${ac_cv_prog_CXX+:} false; then :
3659  $as_echo_n "(cached) " >&6
3660else
3661  if test -n "$CXX"; then
3662  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3663else
3664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665for as_dir in $PATH
3666do
3667  IFS=$as_save_IFS
3668  test -z "$as_dir" && as_dir=.
3669    for ac_exec_ext in '' $ac_executable_extensions; do
3670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3671    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673    break 2
3674  fi
3675done
3676  done
3677IFS=$as_save_IFS
3678
3679fi
3680fi
3681CXX=$ac_cv_prog_CXX
3682if test -n "$CXX"; then
3683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3684$as_echo "$CXX" >&6; }
3685else
3686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687$as_echo "no" >&6; }
3688fi
3689
3690
3691    test -n "$CXX" && break
3692  done
3693fi
3694if test -z "$CXX"; then
3695  ac_ct_CXX=$CXX
3696  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3697do
3698  # Extract the first word of "$ac_prog", so it can be a program name with args.
3699set dummy $ac_prog; ac_word=$2
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701$as_echo_n "checking for $ac_word... " >&6; }
3702if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3703  $as_echo_n "(cached) " >&6
3704else
3705  if test -n "$ac_ct_CXX"; then
3706  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3707else
3708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709for as_dir in $PATH
3710do
3711  IFS=$as_save_IFS
3712  test -z "$as_dir" && as_dir=.
3713    for ac_exec_ext in '' $ac_executable_extensions; do
3714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715    ac_cv_prog_ac_ct_CXX="$ac_prog"
3716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717    break 2
3718  fi
3719done
3720  done
3721IFS=$as_save_IFS
3722
3723fi
3724fi
3725ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3726if test -n "$ac_ct_CXX"; then
3727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3728$as_echo "$ac_ct_CXX" >&6; }
3729else
3730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731$as_echo "no" >&6; }
3732fi
3733
3734
3735  test -n "$ac_ct_CXX" && break
3736done
3737
3738  if test "x$ac_ct_CXX" = x; then
3739    CXX="g++"
3740  else
3741    case $cross_compiling:$ac_tool_warned in
3742yes:)
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3745ac_tool_warned=yes ;;
3746esac
3747    CXX=$ac_ct_CXX
3748  fi
3749fi
3750
3751  fi
3752fi
3753# Provide some information about the compiler.
3754$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3755set X $ac_compile
3756ac_compiler=$2
3757for ac_option in --version -v -V -qversion; do
3758  { { ac_try="$ac_compiler $ac_option >&5"
3759case "(($ac_try" in
3760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761  *) ac_try_echo=$ac_try;;
3762esac
3763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764$as_echo "$ac_try_echo"; } >&5
3765  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3766  ac_status=$?
3767  if test -s conftest.err; then
3768    sed '10a\
3769... rest of stderr output deleted ...
3770         10q' conftest.err >conftest.er1
3771    cat conftest.er1 >&5
3772  fi
3773  rm -f conftest.er1 conftest.err
3774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775  test $ac_status = 0; }
3776done
3777
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3779$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3780if ${ac_cv_cxx_compiler_gnu+:} false; then :
3781  $as_echo_n "(cached) " >&6
3782else
3783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784/* end confdefs.h.  */
3785
3786int
3787main ()
3788{
3789#ifndef __GNUC__
3790       choke me
3791#endif
3792
3793  ;
3794  return 0;
3795}
3796_ACEOF
3797if ac_fn_cxx_try_compile "$LINENO"; then :
3798  ac_compiler_gnu=yes
3799else
3800  ac_compiler_gnu=no
3801fi
3802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3804
3805fi
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3807$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3808if test $ac_compiler_gnu = yes; then
3809  GXX=yes
3810else
3811  GXX=
3812fi
3813ac_test_CXXFLAGS=${CXXFLAGS+set}
3814ac_save_CXXFLAGS=$CXXFLAGS
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3816$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3817if ${ac_cv_prog_cxx_g+:} false; then :
3818  $as_echo_n "(cached) " >&6
3819else
3820  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3821   ac_cxx_werror_flag=yes
3822   ac_cv_prog_cxx_g=no
3823   CXXFLAGS="-g"
3824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825/* end confdefs.h.  */
3826
3827int
3828main ()
3829{
3830
3831  ;
3832  return 0;
3833}
3834_ACEOF
3835if ac_fn_cxx_try_compile "$LINENO"; then :
3836  ac_cv_prog_cxx_g=yes
3837else
3838  CXXFLAGS=""
3839      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840/* end confdefs.h.  */
3841
3842int
3843main ()
3844{
3845
3846  ;
3847  return 0;
3848}
3849_ACEOF
3850if ac_fn_cxx_try_compile "$LINENO"; then :
3851
3852else
3853  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3854	 CXXFLAGS="-g"
3855	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h.  */
3857
3858int
3859main ()
3860{
3861
3862  ;
3863  return 0;
3864}
3865_ACEOF
3866if ac_fn_cxx_try_compile "$LINENO"; then :
3867  ac_cv_prog_cxx_g=yes
3868fi
3869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870fi
3871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3872fi
3873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3875fi
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3877$as_echo "$ac_cv_prog_cxx_g" >&6; }
3878if test "$ac_test_CXXFLAGS" = set; then
3879  CXXFLAGS=$ac_save_CXXFLAGS
3880elif test $ac_cv_prog_cxx_g = yes; then
3881  if test "$GXX" = yes; then
3882    CXXFLAGS="-g -O2"
3883  else
3884    CXXFLAGS="-g"
3885  fi
3886else
3887  if test "$GXX" = yes; then
3888    CXXFLAGS="-O2"
3889  else
3890    CXXFLAGS=
3891  fi
3892fi
3893ac_ext=c
3894ac_cpp='$CPP $CPPFLAGS'
3895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898
3899for ac_prog in gawk mawk nawk awk
3900do
3901  # Extract the first word of "$ac_prog", so it can be a program name with args.
3902set dummy $ac_prog; ac_word=$2
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904$as_echo_n "checking for $ac_word... " >&6; }
3905if ${ac_cv_prog_AWK+:} false; then :
3906  $as_echo_n "(cached) " >&6
3907else
3908  if test -n "$AWK"; then
3909  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3910else
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914  IFS=$as_save_IFS
3915  test -z "$as_dir" && as_dir=.
3916    for ac_exec_ext in '' $ac_executable_extensions; do
3917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918    ac_cv_prog_AWK="$ac_prog"
3919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920    break 2
3921  fi
3922done
3923  done
3924IFS=$as_save_IFS
3925
3926fi
3927fi
3928AWK=$ac_cv_prog_AWK
3929if test -n "$AWK"; then
3930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3931$as_echo "$AWK" >&6; }
3932else
3933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934$as_echo "no" >&6; }
3935fi
3936
3937
3938  test -n "$AWK" && break
3939done
3940
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3942$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3943if ${ac_cv_path_GREP+:} false; then :
3944  $as_echo_n "(cached) " >&6
3945else
3946  if test -z "$GREP"; then
3947  ac_path_GREP_found=false
3948  # Loop through the user's path and test for each of PROGNAME-LIST
3949  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3951do
3952  IFS=$as_save_IFS
3953  test -z "$as_dir" && as_dir=.
3954    for ac_prog in grep ggrep; do
3955    for ac_exec_ext in '' $ac_executable_extensions; do
3956      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3957      as_fn_executable_p "$ac_path_GREP" || continue
3958# Check for GNU ac_path_GREP and select it if it is found.
3959  # Check for GNU $ac_path_GREP
3960case `"$ac_path_GREP" --version 2>&1` in
3961*GNU*)
3962  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3963*)
3964  ac_count=0
3965  $as_echo_n 0123456789 >"conftest.in"
3966  while :
3967  do
3968    cat "conftest.in" "conftest.in" >"conftest.tmp"
3969    mv "conftest.tmp" "conftest.in"
3970    cp "conftest.in" "conftest.nl"
3971    $as_echo 'GREP' >> "conftest.nl"
3972    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3973    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3974    as_fn_arith $ac_count + 1 && ac_count=$as_val
3975    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3976      # Best one so far, save it but keep looking for a better one
3977      ac_cv_path_GREP="$ac_path_GREP"
3978      ac_path_GREP_max=$ac_count
3979    fi
3980    # 10*(2^10) chars as input seems more than enough
3981    test $ac_count -gt 10 && break
3982  done
3983  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3984esac
3985
3986      $ac_path_GREP_found && break 3
3987    done
3988  done
3989  done
3990IFS=$as_save_IFS
3991  if test -z "$ac_cv_path_GREP"; then
3992    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3993  fi
3994else
3995  ac_cv_path_GREP=$GREP
3996fi
3997
3998fi
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4000$as_echo "$ac_cv_path_GREP" >&6; }
4001 GREP="$ac_cv_path_GREP"
4002
4003
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4005$as_echo_n "checking for egrep... " >&6; }
4006if ${ac_cv_path_EGREP+:} false; then :
4007  $as_echo_n "(cached) " >&6
4008else
4009  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4010   then ac_cv_path_EGREP="$GREP -E"
4011   else
4012     if test -z "$EGREP"; then
4013  ac_path_EGREP_found=false
4014  # Loop through the user's path and test for each of PROGNAME-LIST
4015  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4017do
4018  IFS=$as_save_IFS
4019  test -z "$as_dir" && as_dir=.
4020    for ac_prog in egrep; do
4021    for ac_exec_ext in '' $ac_executable_extensions; do
4022      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4023      as_fn_executable_p "$ac_path_EGREP" || continue
4024# Check for GNU ac_path_EGREP and select it if it is found.
4025  # Check for GNU $ac_path_EGREP
4026case `"$ac_path_EGREP" --version 2>&1` in
4027*GNU*)
4028  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4029*)
4030  ac_count=0
4031  $as_echo_n 0123456789 >"conftest.in"
4032  while :
4033  do
4034    cat "conftest.in" "conftest.in" >"conftest.tmp"
4035    mv "conftest.tmp" "conftest.in"
4036    cp "conftest.in" "conftest.nl"
4037    $as_echo 'EGREP' >> "conftest.nl"
4038    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4039    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4040    as_fn_arith $ac_count + 1 && ac_count=$as_val
4041    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4042      # Best one so far, save it but keep looking for a better one
4043      ac_cv_path_EGREP="$ac_path_EGREP"
4044      ac_path_EGREP_max=$ac_count
4045    fi
4046    # 10*(2^10) chars as input seems more than enough
4047    test $ac_count -gt 10 && break
4048  done
4049  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4050esac
4051
4052      $ac_path_EGREP_found && break 3
4053    done
4054  done
4055  done
4056IFS=$as_save_IFS
4057  if test -z "$ac_cv_path_EGREP"; then
4058    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4059  fi
4060else
4061  ac_cv_path_EGREP=$EGREP
4062fi
4063
4064   fi
4065fi
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4067$as_echo "$ac_cv_path_EGREP" >&6; }
4068 EGREP="$ac_cv_path_EGREP"
4069
4070
4071# Find a good install program.  We prefer a C program (faster),
4072# so one script is as good as another.  But avoid the broken or
4073# incompatible versions:
4074# SysV /etc/install, /usr/sbin/install
4075# SunOS /usr/etc/install
4076# IRIX /sbin/install
4077# AIX /bin/install
4078# AmigaOS /C/install, which installs bootblocks on floppy discs
4079# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4080# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4081# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4082# OS/2's system install, which has a completely different semantic
4083# ./install, which can be erroneously created by make from ./install.sh.
4084# Reject install programs that cannot install multiple files.
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4086$as_echo_n "checking for a BSD-compatible install... " >&6; }
4087if test -z "$INSTALL"; then
4088if ${ac_cv_path_install+:} false; then :
4089  $as_echo_n "(cached) " >&6
4090else
4091  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092for as_dir in $PATH
4093do
4094  IFS=$as_save_IFS
4095  test -z "$as_dir" && as_dir=.
4096    # Account for people who put trailing slashes in PATH elements.
4097case $as_dir/ in #((
4098  ./ | .// | /[cC]/* | \
4099  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4100  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4101  /usr/ucb/* ) ;;
4102  *)
4103    # OSF1 and SCO ODT 3.0 have their own names for install.
4104    # Don't use installbsd from OSF since it installs stuff as root
4105    # by default.
4106    for ac_prog in ginstall scoinst install; do
4107      for ac_exec_ext in '' $ac_executable_extensions; do
4108	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4109	  if test $ac_prog = install &&
4110	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4111	    # AIX install.  It has an incompatible calling convention.
4112	    :
4113	  elif test $ac_prog = install &&
4114	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4115	    # program-specific install script used by HP pwplus--don't use.
4116	    :
4117	  else
4118	    rm -rf conftest.one conftest.two conftest.dir
4119	    echo one > conftest.one
4120	    echo two > conftest.two
4121	    mkdir conftest.dir
4122	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4123	      test -s conftest.one && test -s conftest.two &&
4124	      test -s conftest.dir/conftest.one &&
4125	      test -s conftest.dir/conftest.two
4126	    then
4127	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4128	      break 3
4129	    fi
4130	  fi
4131	fi
4132      done
4133    done
4134    ;;
4135esac
4136
4137  done
4138IFS=$as_save_IFS
4139
4140rm -rf conftest.one conftest.two conftest.dir
4141
4142fi
4143  if test "${ac_cv_path_install+set}" = set; then
4144    INSTALL=$ac_cv_path_install
4145  else
4146    # As a last resort, use the slow shell script.  Don't cache a
4147    # value for INSTALL within a source directory, because that will
4148    # break other packages using the cache if that directory is
4149    # removed, or if the value is a relative name.
4150    INSTALL=$ac_install_sh
4151  fi
4152fi
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4154$as_echo "$INSTALL" >&6; }
4155
4156# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4157# It thinks the first close brace ends the variable substitution.
4158test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4159
4160test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4161
4162test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4163
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4165$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4166if test -z "$MKDIR_P"; then
4167  if ${ac_cv_path_mkdir+:} false; then :
4168  $as_echo_n "(cached) " >&6
4169else
4170  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4172do
4173  IFS=$as_save_IFS
4174  test -z "$as_dir" && as_dir=.
4175    for ac_prog in mkdir gmkdir; do
4176	 for ac_exec_ext in '' $ac_executable_extensions; do
4177	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4178	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4179	     'mkdir (GNU coreutils) '* | \
4180	     'mkdir (coreutils) '* | \
4181	     'mkdir (fileutils) '4.1*)
4182	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4183	       break 3;;
4184	   esac
4185	 done
4186       done
4187  done
4188IFS=$as_save_IFS
4189
4190fi
4191
4192  test -d ./--version && rmdir ./--version
4193  if test "${ac_cv_path_mkdir+set}" = set; then
4194    MKDIR_P="$ac_cv_path_mkdir -p"
4195  else
4196    # As a last resort, use the slow shell script.  Don't cache a
4197    # value for MKDIR_P within a source directory, because that will
4198    # break other packages using the cache if that directory is
4199    # removed, or if the value is a relative name.
4200    MKDIR_P="$ac_install_sh -d"
4201  fi
4202fi
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4204$as_echo "$MKDIR_P" >&6; }
4205
4206   case $ac_cv_prog_cc_stdc in #(
4207  no) :
4208    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4209  *) :
4210    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4211$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4212if ${ac_cv_prog_cc_c99+:} false; then :
4213  $as_echo_n "(cached) " >&6
4214else
4215  ac_cv_prog_cc_c99=no
4216ac_save_CC=$CC
4217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218/* end confdefs.h.  */
4219#include <stdarg.h>
4220#include <stdbool.h>
4221#include <stdlib.h>
4222#include <wchar.h>
4223#include <stdio.h>
4224
4225// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4226#define debug(...) fprintf (stderr, __VA_ARGS__)
4227#define showlist(...) puts (#__VA_ARGS__)
4228#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4229static void
4230test_varargs_macros (void)
4231{
4232  int x = 1234;
4233  int y = 5678;
4234  debug ("Flag");
4235  debug ("X = %d\n", x);
4236  showlist (The first, second, and third items.);
4237  report (x>y, "x is %d but y is %d", x, y);
4238}
4239
4240// Check long long types.
4241#define BIG64 18446744073709551615ull
4242#define BIG32 4294967295ul
4243#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4244#if !BIG_OK
4245  your preprocessor is broken;
4246#endif
4247#if BIG_OK
4248#else
4249  your preprocessor is broken;
4250#endif
4251static long long int bignum = -9223372036854775807LL;
4252static unsigned long long int ubignum = BIG64;
4253
4254struct incomplete_array
4255{
4256  int datasize;
4257  double data[];
4258};
4259
4260struct named_init {
4261  int number;
4262  const wchar_t *name;
4263  double average;
4264};
4265
4266typedef const char *ccp;
4267
4268static inline int
4269test_restrict (ccp restrict text)
4270{
4271  // See if C++-style comments work.
4272  // Iterate through items via the restricted pointer.
4273  // Also check for declarations in for loops.
4274  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4275    continue;
4276  return 0;
4277}
4278
4279// Check varargs and va_copy.
4280static void
4281test_varargs (const char *format, ...)
4282{
4283  va_list args;
4284  va_start (args, format);
4285  va_list args_copy;
4286  va_copy (args_copy, args);
4287
4288  const char *str;
4289  int number;
4290  float fnumber;
4291
4292  while (*format)
4293    {
4294      switch (*format++)
4295	{
4296	case 's': // string
4297	  str = va_arg (args_copy, const char *);
4298	  break;
4299	case 'd': // int
4300	  number = va_arg (args_copy, int);
4301	  break;
4302	case 'f': // float
4303	  fnumber = va_arg (args_copy, double);
4304	  break;
4305	default:
4306	  break;
4307	}
4308    }
4309  va_end (args_copy);
4310  va_end (args);
4311}
4312
4313int
4314main ()
4315{
4316
4317  // Check bool.
4318  _Bool success = false;
4319
4320  // Check restrict.
4321  if (test_restrict ("String literal") == 0)
4322    success = true;
4323  char *restrict newvar = "Another string";
4324
4325  // Check varargs.
4326  test_varargs ("s, d' f .", "string", 65, 34.234);
4327  test_varargs_macros ();
4328
4329  // Check flexible array members.
4330  struct incomplete_array *ia =
4331    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4332  ia->datasize = 10;
4333  for (int i = 0; i < ia->datasize; ++i)
4334    ia->data[i] = i * 1.234;
4335
4336  // Check named initializers.
4337  struct named_init ni = {
4338    .number = 34,
4339    .name = L"Test wide string",
4340    .average = 543.34343,
4341  };
4342
4343  ni.number = 58;
4344
4345  int dynamic_array[ni.number];
4346  dynamic_array[ni.number - 1] = 543;
4347
4348  // work around unused variable warnings
4349  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4350	  || dynamic_array[ni.number - 1] != 543);
4351
4352  ;
4353  return 0;
4354}
4355_ACEOF
4356for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4357do
4358  CC="$ac_save_CC $ac_arg"
4359  if ac_fn_c_try_compile "$LINENO"; then :
4360  ac_cv_prog_cc_c99=$ac_arg
4361fi
4362rm -f core conftest.err conftest.$ac_objext
4363  test "x$ac_cv_prog_cc_c99" != "xno" && break
4364done
4365rm -f conftest.$ac_ext
4366CC=$ac_save_CC
4367
4368fi
4369# AC_CACHE_VAL
4370case "x$ac_cv_prog_cc_c99" in
4371  x)
4372    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4373$as_echo "none needed" >&6; } ;;
4374  xno)
4375    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4376$as_echo "unsupported" >&6; } ;;
4377  *)
4378    CC="$CC $ac_cv_prog_cc_c99"
4379    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4380$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4381esac
4382if test "x$ac_cv_prog_cc_c99" != xno; then :
4383  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4384else
4385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4386$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4387if ${ac_cv_prog_cc_c89+:} false; then :
4388  $as_echo_n "(cached) " >&6
4389else
4390  ac_cv_prog_cc_c89=no
4391ac_save_CC=$CC
4392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393/* end confdefs.h.  */
4394#include <stdarg.h>
4395#include <stdio.h>
4396struct stat;
4397/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4398struct buf { int x; };
4399FILE * (*rcsopen) (struct buf *, struct stat *, int);
4400static char *e (p, i)
4401     char **p;
4402     int i;
4403{
4404  return p[i];
4405}
4406static char *f (char * (*g) (char **, int), char **p, ...)
4407{
4408  char *s;
4409  va_list v;
4410  va_start (v,p);
4411  s = g (p, va_arg (v,int));
4412  va_end (v);
4413  return s;
4414}
4415
4416/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4417   function prototypes and stuff, but not '\xHH' hex character constants.
4418   These don't provoke an error unfortunately, instead are silently treated
4419   as 'x'.  The following induces an error, until -std is added to get
4420   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4421   array size at least.  It's necessary to write '\x00'==0 to get something
4422   that's true only with -std.  */
4423int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4424
4425/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4426   inside strings and character constants.  */
4427#define FOO(x) 'x'
4428int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4429
4430int test (int i, double x);
4431struct s1 {int (*f) (int a);};
4432struct s2 {int (*f) (double a);};
4433int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4434int argc;
4435char **argv;
4436int
4437main ()
4438{
4439return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4440  ;
4441  return 0;
4442}
4443_ACEOF
4444for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4445	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4446do
4447  CC="$ac_save_CC $ac_arg"
4448  if ac_fn_c_try_compile "$LINENO"; then :
4449  ac_cv_prog_cc_c89=$ac_arg
4450fi
4451rm -f core conftest.err conftest.$ac_objext
4452  test "x$ac_cv_prog_cc_c89" != "xno" && break
4453done
4454rm -f conftest.$ac_ext
4455CC=$ac_save_CC
4456
4457fi
4458# AC_CACHE_VAL
4459case "x$ac_cv_prog_cc_c89" in
4460  x)
4461    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4462$as_echo "none needed" >&6; } ;;
4463  xno)
4464    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4465$as_echo "unsupported" >&6; } ;;
4466  *)
4467    CC="$CC $ac_cv_prog_cc_c89"
4468    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4469$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4470esac
4471if test "x$ac_cv_prog_cc_c89" != xno; then :
4472  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4473else
4474  ac_cv_prog_cc_stdc=no
4475fi
4476
4477fi
4478 ;;
4479esac
4480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4481$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4482  if ${ac_cv_prog_cc_stdc+:} false; then :
4483  $as_echo_n "(cached) " >&6
4484fi
4485
4486  case $ac_cv_prog_cc_stdc in #(
4487  no) :
4488    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4489$as_echo "unsupported" >&6; } ;; #(
4490  '') :
4491    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4492$as_echo "none needed" >&6; } ;; #(
4493  *) :
4494    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4495$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4496esac
4497
4498
4499# Extract the first word of "perl", so it can be a program name with args.
4500set dummy perl; ac_word=$2
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502$as_echo_n "checking for $ac_word... " >&6; }
4503if ${ac_cv_path_PERL+:} false; then :
4504  $as_echo_n "(cached) " >&6
4505else
4506  case $PERL in
4507  [\\/]* | ?:[\\/]*)
4508  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4509  ;;
4510  *)
4511  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH
4513do
4514  IFS=$as_save_IFS
4515  test -z "$as_dir" && as_dir=.
4516    for ac_exec_ext in '' $ac_executable_extensions; do
4517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4520    break 2
4521  fi
4522done
4523  done
4524IFS=$as_save_IFS
4525
4526  ;;
4527esac
4528fi
4529PERL=$ac_cv_path_PERL
4530if test -n "$PERL"; then
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4532$as_echo "$PERL" >&6; }
4533else
4534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535$as_echo "no" >&6; }
4536fi
4537
4538
4539# Extract the first word of "python3", so it can be a program name with args.
4540set dummy python3; ac_word=$2
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542$as_echo_n "checking for $ac_word... " >&6; }
4543if ${ac_cv_path_PYTHON3+:} false; then :
4544  $as_echo_n "(cached) " >&6
4545else
4546  case $PYTHON3 in
4547  [\\/]* | ?:[\\/]*)
4548  ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
4549  ;;
4550  *)
4551  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554  IFS=$as_save_IFS
4555  test -z "$as_dir" && as_dir=.
4556    for ac_exec_ext in '' $ac_executable_extensions; do
4557  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558    ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
4559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560    break 2
4561  fi
4562done
4563  done
4564IFS=$as_save_IFS
4565
4566  ;;
4567esac
4568fi
4569PYTHON3=$ac_cv_path_PYTHON3
4570if test -n "$PYTHON3"; then
4571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
4572$as_echo "$PYTHON3" >&6; }
4573else
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575$as_echo "no" >&6; }
4576fi
4577
4578
4579
4580
4581$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4582
4583
4584if test x"$ac_cv_prog_cc_stdc" = x"no"; then
4585	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: rsync requires an ANSI C compiler and you do not seem to have one" >&5
4586$as_echo "$as_me: WARNING: rsync requires an ANSI C compiler and you do not seem to have one" >&2;}
4587fi
4588
4589no_lib=''
4590err_msg=''
4591nl='
4592'
4593
4594# Check whether --enable-profile was given.
4595if test "${enable_profile+set}" = set; then :
4596  enableval=$enable_profile;
4597fi
4598
4599if test x"$enable_profile" = x"yes"; then
4600	CFLAGS="$CFLAGS -pg"
4601fi
4602
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if md2man can create man pages" >&5
4604$as_echo_n "checking if md2man can create man pages... " >&6; }
4605if test x"$ac_cv_path_PYTHON3" = x; then
4606    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - python3 not found" >&5
4607$as_echo "no - python3 not found" >&6; }
4608    md2man_works=no
4609else
4610    md2man_out=`"$srcdir/md2man" --test "$srcdir/rsync-ssl.1.md" 2>&1`
4611    if test $? = 0; then
4612	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4613$as_echo "yes" >&6; }
4614	md2man_works=yes
4615    else
4616	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617$as_echo "no" >&6; }
4618	md2man_works=no
4619	echo "$md2man_out"
4620    fi
4621fi
4622
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we require man-page building" >&5
4624$as_echo_n "checking if we require man-page building... " >&6; }
4625# Check whether --enable-md2man was given.
4626if test "${enable_md2man+set}" = set; then :
4627  enableval=$enable_md2man;
4628fi
4629
4630if test x"$enable_md2man" != x"no"; then
4631    if test -f "$srcdir/rsync.1"; then
4632	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: optional" >&5
4633$as_echo "optional" >&6; }
4634    else
4635	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: required" >&5
4636$as_echo "required" >&6; }
4637	if test x"$md2man_works" = x"no"; then
4638	    err_msg="$err_msg$nl- You need python3 and either the cmarkgfm OR commonmark python3 lib in order"
4639	    err_msg="$err_msg$nl  to build man pages based on the git source (man pages are included in the"
4640	    err_msg="$err_msg$nl  official release tar files)."
4641	    no_lib="$no_lib md2man"
4642	fi
4643    fi
4644    MAKE_MAN=man
4645else
4646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647$as_echo "no" >&6; }
4648    MAKE_MAN=''
4649fi
4650
4651# Specifically, this turns on panic_action handling.
4652# Check whether --enable-maintainer-mode was given.
4653if test "${enable_maintainer_mode+set}" = set; then :
4654  enableval=$enable_maintainer_mode;
4655fi
4656
4657if test x"$enable_maintainer_mode" = x"yes"; then
4658	CFLAGS="$CFLAGS -DMAINTAINER_MODE"
4659fi
4660
4661# This is needed for our included version of popt.  Kind of silly, but
4662# I don't want our version too far out of sync.
4663CFLAGS="$CFLAGS -DHAVE_CONFIG_H"
4664
4665# If GCC, turn on warnings.
4666if test x"$GCC" = x"yes"; then
4667	CFLAGS="$CFLAGS -Wall -W"
4668fi
4669
4670
4671# Check whether --with-included-popt was given.
4672if test "${with_included_popt+set}" = set; then :
4673  withval=$with_included_popt;
4674fi
4675
4676
4677
4678# Check whether --with-included-zlib was given.
4679if test "${with_included_zlib+set}" = set; then :
4680  withval=$with_included_zlib;
4681fi
4682
4683
4684
4685# Check whether --with-protected-args was given.
4686if test "${with_protected_args+set}" = set; then :
4687  withval=$with_protected_args;
4688fi
4689
4690if test x"$with_protected_args" = x"yes"; then
4691
4692cat >>confdefs.h <<_ACEOF
4693#define RSYNC_USE_PROTECTED_ARGS 1
4694_ACEOF
4695
4696fi
4697
4698
4699# Check whether --with-rsync-path was given.
4700if test "${with_rsync_path+set}" = set; then :
4701  withval=$with_rsync_path;  RSYNC_PATH="$with_rsync_path"
4702else
4703   RSYNC_PATH="rsync"
4704fi
4705
4706
4707
4708cat >>confdefs.h <<_ACEOF
4709#define RSYNC_PATH "$RSYNC_PATH"
4710_ACEOF
4711
4712
4713
4714# Check whether --with-rsyncd-conf was given.
4715if test "${with_rsyncd_conf+set}" = set; then :
4716  withval=$with_rsyncd_conf;  if test ! -z "$with_rsyncd_conf" ; then
4717		case $with_rsyncd_conf in
4718			yes|no)
4719				RSYNCD_SYSCONF="/etc/rsyncd.conf"
4720				;;
4721			/*)
4722				RSYNCD_SYSCONF="$with_rsyncd_conf"
4723				;;
4724			*)
4725                                as_fn_error $? "You must specify an absolute path to --with-rsyncd-conf=PATH" "$LINENO" 5
4726				;;
4727		esac
4728	else
4729		RSYNCD_SYSCONF="/etc/rsyncd.conf"
4730	fi
4731else
4732   RSYNCD_SYSCONF="/etc/rsyncd.conf"
4733fi
4734
4735
4736
4737cat >>confdefs.h <<_ACEOF
4738#define RSYNCD_SYSCONF "$RSYNCD_SYSCONF"
4739_ACEOF
4740
4741
4742
4743# Check whether --with-rsh was given.
4744if test "${with_rsh+set}" = set; then :
4745  withval=$with_rsh;
4746fi
4747
4748
4749# Extract the first word of "remsh", so it can be a program name with args.
4750set dummy remsh; ac_word=$2
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752$as_echo_n "checking for $ac_word... " >&6; }
4753if ${ac_cv_prog_HAVE_REMSH+:} false; then :
4754  $as_echo_n "(cached) " >&6
4755else
4756  if test -n "$HAVE_REMSH"; then
4757  ac_cv_prog_HAVE_REMSH="$HAVE_REMSH" # Let the user override the test.
4758else
4759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760for as_dir in $PATH
4761do
4762  IFS=$as_save_IFS
4763  test -z "$as_dir" && as_dir=.
4764    for ac_exec_ext in '' $ac_executable_extensions; do
4765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766    ac_cv_prog_HAVE_REMSH="1"
4767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768    break 2
4769  fi
4770done
4771  done
4772IFS=$as_save_IFS
4773
4774  test -z "$ac_cv_prog_HAVE_REMSH" && ac_cv_prog_HAVE_REMSH="0"
4775fi
4776fi
4777HAVE_REMSH=$ac_cv_prog_HAVE_REMSH
4778if test -n "$HAVE_REMSH"; then
4779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_REMSH" >&5
4780$as_echo "$HAVE_REMSH" >&6; }
4781else
4782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783$as_echo "no" >&6; }
4784fi
4785
4786
4787if test x$HAVE_REMSH = x1; then
4788
4789$as_echo "#define HAVE_REMSH 1" >>confdefs.h
4790
4791fi
4792
4793if test x"$with_rsh" != x; then
4794	RSYNC_RSH="$with_rsh"
4795else
4796	RSYNC_RSH="ssh"
4797fi
4798
4799cat >>confdefs.h <<_ACEOF
4800#define RSYNC_RSH "$RSYNC_RSH"
4801_ACEOF
4802
4803
4804# Some programs on solaris are only found in /usr/xpg4/bin (or work better than others versions).
4805# Extract the first word of "sh", so it can be a program name with args.
4806set dummy sh; ac_word=$2
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808$as_echo_n "checking for $ac_word... " >&6; }
4809if ${ac_cv_path_SHELL_PATH+:} false; then :
4810  $as_echo_n "(cached) " >&6
4811else
4812  case $SHELL_PATH in
4813  [\\/]* | ?:[\\/]*)
4814  ac_cv_path_SHELL_PATH="$SHELL_PATH" # Let the user override the test with a path.
4815  ;;
4816  *)
4817  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in /usr/xpg4/bin$PATH_SEPARATOR$PATH
4819do
4820  IFS=$as_save_IFS
4821  test -z "$as_dir" && as_dir=.
4822    for ac_exec_ext in '' $ac_executable_extensions; do
4823  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824    ac_cv_path_SHELL_PATH="$as_dir/$ac_word$ac_exec_ext"
4825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826    break 2
4827  fi
4828done
4829  done
4830IFS=$as_save_IFS
4831
4832  test -z "$ac_cv_path_SHELL_PATH" && ac_cv_path_SHELL_PATH="/bin/sh"
4833  ;;
4834esac
4835fi
4836SHELL_PATH=$ac_cv_path_SHELL_PATH
4837if test -n "$SHELL_PATH"; then
4838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHELL_PATH" >&5
4839$as_echo "$SHELL_PATH" >&6; }
4840else
4841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842$as_echo "no" >&6; }
4843fi
4844
4845
4846# Extract the first word of "fakeroot", so it can be a program name with args.
4847set dummy fakeroot; ac_word=$2
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849$as_echo_n "checking for $ac_word... " >&6; }
4850if ${ac_cv_path_FAKEROOT_PATH+:} false; then :
4851  $as_echo_n "(cached) " >&6
4852else
4853  case $FAKEROOT_PATH in
4854  [\\/]* | ?:[\\/]*)
4855  ac_cv_path_FAKEROOT_PATH="$FAKEROOT_PATH" # Let the user override the test with a path.
4856  ;;
4857  *)
4858  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859for as_dir in /usr/xpg4/bin$PATH_SEPARATOR$PATH
4860do
4861  IFS=$as_save_IFS
4862  test -z "$as_dir" && as_dir=.
4863    for ac_exec_ext in '' $ac_executable_extensions; do
4864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865    ac_cv_path_FAKEROOT_PATH="$as_dir/$ac_word$ac_exec_ext"
4866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867    break 2
4868  fi
4869done
4870  done
4871IFS=$as_save_IFS
4872
4873  test -z "$ac_cv_path_FAKEROOT_PATH" && ac_cv_path_FAKEROOT_PATH="/usr/bin/fakeroot"
4874  ;;
4875esac
4876fi
4877FAKEROOT_PATH=$ac_cv_path_FAKEROOT_PATH
4878if test -n "$FAKEROOT_PATH"; then
4879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FAKEROOT_PATH" >&5
4880$as_echo "$FAKEROOT_PATH" >&6; }
4881else
4882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883$as_echo "no" >&6; }
4884fi
4885
4886
4887
4888
4889# Check whether --with-nobody-group was given.
4890if test "${with_nobody_group+set}" = set; then :
4891  withval=$with_nobody_group;  NOBODY_GROUP="$with_nobody_group"
4892fi
4893
4894
4895if test x"$with_nobody_group" = x; then
4896    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the group for user \"nobody\"" >&5
4897$as_echo_n "checking the group for user \"nobody\"... " >&6; }
4898    if grep '^nobody:' /etc/group >/dev/null 2>&1; then
4899	NOBODY_GROUP=nobody
4900    elif grep '^nogroup:' /etc/group >/dev/null 2>&1; then
4901	NOBODY_GROUP=nogroup
4902    else
4903	NOBODY_GROUP=nobody # test for others?
4904    fi
4905    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOBODY_GROUP" >&5
4906$as_echo "$NOBODY_GROUP" >&6; }
4907fi
4908
4909
4910cat >>confdefs.h <<_ACEOF
4911#define NOBODY_USER "nobody"
4912_ACEOF
4913
4914
4915cat >>confdefs.h <<_ACEOF
4916#define NOBODY_GROUP "$NOBODY_GROUP"
4917_ACEOF
4918
4919
4920# SIMD optimizations
4921SIMD=
4922
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SIMD optimizations" >&5
4924$as_echo_n "checking whether to enable SIMD optimizations... " >&6; }
4925# Check whether --enable-simd was given.
4926if test "${enable_simd+set}" = set; then :
4927  enableval=$enable_simd;
4928fi
4929
4930
4931# Clag is crashing with -g -O2, so we'll get rid of -g for now.
4932CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g //'`
4933
4934if test x"$enable_simd" != x"no"; then
4935    # For x86-64 SIMD, g++ >=5 or clang++ >=7 is required
4936    if test x"$build_cpu" = x"x86_64"; then
4937	ac_ext=cpp
4938ac_cpp='$CXXCPP $CPPFLAGS'
4939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4942
4943
4944if test "$cross_compiling" = yes; then :
4945  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4947as_fn_error $? "cannot run test program while cross compiling
4948See \`config.log' for more details" "$LINENO" 5; }
4949else
4950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951/* end confdefs.h.  */
4952#include <stdio.h>
4953#include <immintrin.h>
4954__attribute__ ((target("default"))) int test_ssse3(int x) { return x; }
4955__attribute__ ((target("default"))) int test_sse2(int x) { return x; }
4956__attribute__ ((target("default"))) int test_avx2(int x) { return x; }
4957__attribute__ ((target("ssse3"))) int test_ssse3(int x) { return x; }
4958__attribute__ ((target("sse2"))) int test_sse2(int x) { return x; }
4959__attribute__ ((target("avx2"))) int test_avx2(int x) { return x; }
4960typedef long long __m128i_u __attribute__((__vector_size__(16), __may_alias__, __aligned__(1)));
4961typedef long long __m256i_u __attribute__((__vector_size__(32), __may_alias__, __aligned__(1)));
4962__attribute__ ((target("default"))) void more_testing(char* buf, int len) { }
4963__attribute__ ((target("ssse3"))) void more_testing(char* buf, int len)
4964{
4965    int i;
4966    for (i = 0; i < (len-32); i+=32) {
4967	__m128i in8_1, in8_2;
4968	in8_1 = _mm_lddqu_si128((__m128i_u*)&buf[i]);
4969	in8_2 = _mm_lddqu_si128((__m128i_u*)&buf[i + 16]);
4970    }
4971}
4972
4973int
4974main ()
4975{
4976if (test_ssse3(42) != 42 || test_sse2(42) != 42 || test_avx2(42) != 42) exit(1);
4977  ;
4978  return 0;
4979}
4980_ACEOF
4981if ac_fn_cxx_try_run "$LINENO"; then :
4982  CXX_OK=yes
4983else
4984  CXX_OK=no
4985fi
4986rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4987  conftest.$ac_objext conftest.beam conftest.$ac_ext
4988fi
4989
4990	ac_ext=c
4991ac_cpp='$CPP $CPPFLAGS'
4992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994ac_compiler_gnu=$ac_cv_c_compiler_gnu
4995
4996	if test x"$CXX_OK" = x"yes"; then
4997	    # AC_MSG_RESULT() is called below.
4998	    SIMD="x86_64"
4999	elif test x"$enable_simd" = x"yes"; then
5000	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
5001$as_echo "error" >&6; }
5002	    as_fn_error $? "The SIMD compilation test failed.
5003Omit --enable-simd to continue without it." "$LINENO" 5
5004	fi
5005    elif test x"$enable_simd" = x"yes"; then
5006        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5
5007$as_echo "unavailable" >&6; }
5008        as_fn_error $? "The SIMD optimizations are currently x86_64 only.
5009Omit --enable-simd to continue without it." "$LINENO" 5
5010    fi
5011fi
5012
5013if test x"$SIMD" != x""; then
5014    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($SIMD)" >&5
5015$as_echo "yes ($SIMD)" >&6; }
5016
5017$as_echo "#define HAVE_SIMD 1" >>confdefs.h
5018
5019    SIMD='$(SIMD_'"$SIMD)"
5020    # We only use c++ for its target attribute dispatching, disable unneeded bulky features
5021    CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-rtti"
5022    # Apple often has "g++" as a symlink for clang. Try to find out the truth.
5023    CXX_VERSION=`$CXX --version 2>/dev/null | head -n 2`
5024    case "$CXX_VERSION" in
5025    *clang*) CXXFLAGS="$CXXFLAGS -fno-slp-vectorize" ;; # avoid a performance hit
5026    esac
5027else
5028    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029$as_echo "no" >&6; }
5030fi
5031
5032
5033
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler accepts noexecstack" >&5
5035$as_echo_n "checking if assembler accepts noexecstack... " >&6; }
5036OLD_CFLAGS="$CFLAGS"
5037CFLAGS="$CFLAGS -Wa,--noexecstack"
5038
5039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040/* end confdefs.h.  */
5041
5042int
5043main ()
5044{
5045return 0;
5046  ;
5047  return 0;
5048}
5049_ACEOF
5050if ac_fn_c_try_compile "$LINENO"; then :
5051   NOEXECSTACK='-Wa,--noexecstack' ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5052$as_echo "yes" >&6; }
5053else
5054   NOEXECSTACK='' ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055$as_echo "no" >&6; }
5056fi
5057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058CFLAGS="$OLD_CFLAGS"
5059
5060
5061ASM=
5062
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ASM optimizations" >&5
5064$as_echo_n "checking whether to enable ASM optimizations... " >&6; }
5065# Check whether --enable-asm was given.
5066if test "${enable_asm+set}" = set; then :
5067  enableval=$enable_asm;
5068fi
5069
5070
5071if test x"$enable_asm" != x"no"; then
5072    if test x"$build_cpu" = x"x86_64"; then
5073	ASM="$build_cpu"
5074    elif test x"$enable_asm" = x"yes"; then
5075        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5
5076$as_echo "unavailable" >&6; }
5077        as_fn_error $? "The ASM optimizations are currently x86_64 only.
5078Omit --enable-asm to continue without it." "$LINENO" 5
5079    fi
5080fi
5081
5082if test x"$ASM" != x""; then
5083    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ASM)" >&5
5084$as_echo "yes ($ASM)" >&6; }
5085
5086$as_echo "#define HAVE_ASM 1" >>confdefs.h
5087
5088    ASM='$(ASM_'"$ASM)"
5089else
5090    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091$as_echo "no" >&6; }
5092fi
5093
5094
5095
5096# arrgh. libc in some old debian version screwed up the largefile
5097# stuff, getting byte range locking wrong
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken largefile support" >&5
5099$as_echo_n "checking for broken largefile support... " >&6; }
5100if ${rsync_cv_HAVE_BROKEN_LARGEFILE+:} false; then :
5101  $as_echo_n "(cached) " >&6
5102else
5103
5104if test "$cross_compiling" = yes; then :
5105  rsync_cv_HAVE_BROKEN_LARGEFILE=cross
5106else
5107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108/* end confdefs.h.  */
5109
5110#define _FILE_OFFSET_BITS 64
5111#include <stdio.h>
5112#include <fcntl.h>
5113#include <sys/types.h>
5114#include <sys/wait.h>
5115#if HAVE_UNISTD_H
5116#include <unistd.h>
5117#endif
5118
5119int main(void)
5120{
5121	struct flock lock;
5122	int status;
5123	char tpl[32] = "/tmp/locktest.XXXXXX";
5124	int fd = mkstemp(tpl);
5125	if (fd < 0) {
5126		strcpy(tpl, "conftest.dat");
5127		fd = open(tpl, O_CREAT|O_RDWR, 0600);
5128	}
5129
5130	lock.l_type = F_WRLCK;
5131	lock.l_whence = SEEK_SET;
5132	lock.l_start = 0;
5133	lock.l_len = 1;
5134	lock.l_pid = 0;
5135	fcntl(fd,F_SETLK,&lock);
5136	if (fork() == 0) {
5137		lock.l_start = 1;
5138		_exit(fcntl(fd,F_SETLK,&lock) == 0);
5139	}
5140	wait(&status);
5141	unlink(tpl);
5142	return WEXITSTATUS(status);
5143}
5144
5145_ACEOF
5146if ac_fn_c_try_run "$LINENO"; then :
5147  rsync_cv_HAVE_BROKEN_LARGEFILE=yes
5148else
5149  rsync_cv_HAVE_BROKEN_LARGEFILE=no
5150fi
5151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5152  conftest.$ac_objext conftest.beam conftest.$ac_ext
5153fi
5154
5155fi
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_BROKEN_LARGEFILE" >&5
5157$as_echo "$rsync_cv_HAVE_BROKEN_LARGEFILE" >&6; }
5158if test x"$rsync_cv_HAVE_BROKEN_LARGEFILE" != x"yes"; then
5159   # Check whether --enable-largefile was given.
5160if test "${enable_largefile+set}" = set; then :
5161  enableval=$enable_largefile;
5162fi
5163
5164if test "$enable_largefile" != no; then
5165
5166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5167$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5168if ${ac_cv_sys_largefile_CC+:} false; then :
5169  $as_echo_n "(cached) " >&6
5170else
5171  ac_cv_sys_largefile_CC=no
5172     if test "$GCC" != yes; then
5173       ac_save_CC=$CC
5174       while :; do
5175	 # IRIX 6.2 and later do not support large files by default,
5176	 # so use the C compiler's -n32 option if that helps.
5177	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178/* end confdefs.h.  */
5179#include <sys/types.h>
5180 /* Check that off_t can represent 2**63 - 1 correctly.
5181    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5182    since some C++ compilers masquerading as C compilers
5183    incorrectly reject 9223372036854775807.  */
5184#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5185  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5186		       && LARGE_OFF_T % 2147483647 == 1)
5187		      ? 1 : -1];
5188int
5189main ()
5190{
5191
5192  ;
5193  return 0;
5194}
5195_ACEOF
5196	 if ac_fn_c_try_compile "$LINENO"; then :
5197  break
5198fi
5199rm -f core conftest.err conftest.$ac_objext
5200	 CC="$CC -n32"
5201	 if ac_fn_c_try_compile "$LINENO"; then :
5202  ac_cv_sys_largefile_CC=' -n32'; break
5203fi
5204rm -f core conftest.err conftest.$ac_objext
5205	 break
5206       done
5207       CC=$ac_save_CC
5208       rm -f conftest.$ac_ext
5209    fi
5210fi
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5212$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5213  if test "$ac_cv_sys_largefile_CC" != no; then
5214    CC=$CC$ac_cv_sys_largefile_CC
5215  fi
5216
5217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5218$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5219if ${ac_cv_sys_file_offset_bits+:} false; then :
5220  $as_echo_n "(cached) " >&6
5221else
5222  while :; do
5223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224/* end confdefs.h.  */
5225#include <sys/types.h>
5226 /* Check that off_t can represent 2**63 - 1 correctly.
5227    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5228    since some C++ compilers masquerading as C compilers
5229    incorrectly reject 9223372036854775807.  */
5230#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5231  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5232		       && LARGE_OFF_T % 2147483647 == 1)
5233		      ? 1 : -1];
5234int
5235main ()
5236{
5237
5238  ;
5239  return 0;
5240}
5241_ACEOF
5242if ac_fn_c_try_compile "$LINENO"; then :
5243  ac_cv_sys_file_offset_bits=no; break
5244fi
5245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247/* end confdefs.h.  */
5248#define _FILE_OFFSET_BITS 64
5249#include <sys/types.h>
5250 /* Check that off_t can represent 2**63 - 1 correctly.
5251    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5252    since some C++ compilers masquerading as C compilers
5253    incorrectly reject 9223372036854775807.  */
5254#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5255  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5256		       && LARGE_OFF_T % 2147483647 == 1)
5257		      ? 1 : -1];
5258int
5259main ()
5260{
5261
5262  ;
5263  return 0;
5264}
5265_ACEOF
5266if ac_fn_c_try_compile "$LINENO"; then :
5267  ac_cv_sys_file_offset_bits=64; break
5268fi
5269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270  ac_cv_sys_file_offset_bits=unknown
5271  break
5272done
5273fi
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5275$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5276case $ac_cv_sys_file_offset_bits in #(
5277  no | unknown) ;;
5278  *)
5279cat >>confdefs.h <<_ACEOF
5280#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5281_ACEOF
5282;;
5283esac
5284rm -rf conftest*
5285  if test $ac_cv_sys_file_offset_bits = unknown; then
5286    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5287$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5288if ${ac_cv_sys_large_files+:} false; then :
5289  $as_echo_n "(cached) " >&6
5290else
5291  while :; do
5292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293/* end confdefs.h.  */
5294#include <sys/types.h>
5295 /* Check that off_t can represent 2**63 - 1 correctly.
5296    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5297    since some C++ compilers masquerading as C compilers
5298    incorrectly reject 9223372036854775807.  */
5299#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5300  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5301		       && LARGE_OFF_T % 2147483647 == 1)
5302		      ? 1 : -1];
5303int
5304main ()
5305{
5306
5307  ;
5308  return 0;
5309}
5310_ACEOF
5311if ac_fn_c_try_compile "$LINENO"; then :
5312  ac_cv_sys_large_files=no; break
5313fi
5314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316/* end confdefs.h.  */
5317#define _LARGE_FILES 1
5318#include <sys/types.h>
5319 /* Check that off_t can represent 2**63 - 1 correctly.
5320    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5321    since some C++ compilers masquerading as C compilers
5322    incorrectly reject 9223372036854775807.  */
5323#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5324  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5325		       && LARGE_OFF_T % 2147483647 == 1)
5326		      ? 1 : -1];
5327int
5328main ()
5329{
5330
5331  ;
5332  return 0;
5333}
5334_ACEOF
5335if ac_fn_c_try_compile "$LINENO"; then :
5336  ac_cv_sys_large_files=1; break
5337fi
5338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339  ac_cv_sys_large_files=unknown
5340  break
5341done
5342fi
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5344$as_echo "$ac_cv_sys_large_files" >&6; }
5345case $ac_cv_sys_large_files in #(
5346  no | unknown) ;;
5347  *)
5348cat >>confdefs.h <<_ACEOF
5349#define _LARGE_FILES $ac_cv_sys_large_files
5350_ACEOF
5351;;
5352esac
5353rm -rf conftest*
5354  fi
5355
5356
5357fi
5358
5359fi
5360
5361ipv6type=unknown
5362ipv6lib=none
5363ipv6trylibc=yes
5364
5365# Check whether --enable-ipv6 was given.
5366if test "${enable_ipv6+set}" = set; then :
5367  enableval=$enable_ipv6;
5368fi
5369
5370if test x"$enable_ipv6" != x"no"; then
5371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
5372$as_echo_n "checking ipv6 stack type... " >&6; }
5373	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta cygwin TANDEM; do
5374		case $i in
5375		inria)
5376			# http://www.kame.net/
5377
5378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h.  */
5380
5381#include <netinet/in.h>
5382#ifdef IPV6_INRIA_VERSION
5383yes
5384#endif
5385_ACEOF
5386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5387  $EGREP "yes" >/dev/null 2>&1; then :
5388  ipv6type=$i;
5389
5390$as_echo "#define INET6 1" >>confdefs.h
5391
5392
5393fi
5394rm -f conftest*
5395
5396			;;
5397		kame)
5398			# http://www.kame.net/
5399			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400/* end confdefs.h.  */
5401
5402#include <netinet/in.h>
5403#ifdef __KAME__
5404yes
5405#endif
5406_ACEOF
5407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5408  $EGREP "yes" >/dev/null 2>&1; then :
5409  ipv6type=$i;
5410
5411$as_echo "#define INET6 1" >>confdefs.h
5412
5413fi
5414rm -f conftest*
5415
5416			;;
5417		linux-glibc)
5418			# http://www.v6.linux.or.jp/
5419			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420/* end confdefs.h.  */
5421
5422#include <features.h>
5423#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
5424yes
5425#endif
5426_ACEOF
5427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5428  $EGREP "yes" >/dev/null 2>&1; then :
5429  ipv6type=$i;
5430
5431$as_echo "#define INET6 1" >>confdefs.h
5432
5433fi
5434rm -f conftest*
5435
5436			;;
5437		linux-inet6)
5438			# http://www.v6.linux.or.jp/
5439			if test -d /usr/inet6 -o -f /usr/inet6/lib/libinet6.a; then
5440				ipv6type=$i
5441				ipv6lib=inet6
5442				ipv6libdir=/usr/inet6/lib
5443				ipv6trylibc=yes;
5444
5445$as_echo "#define INET6 1" >>confdefs.h
5446
5447				CFLAGS="-I/usr/inet6/include $CFLAGS"
5448			fi
5449			;;
5450		solaris)
5451			# http://www.sun.com
5452			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453/* end confdefs.h.  */
5454
5455#include <netinet/ip6.h>
5456#ifdef __sun
5457yes
5458#endif
5459_ACEOF
5460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5461  $EGREP "yes" >/dev/null 2>&1; then :
5462  ipv6type=$i;
5463
5464$as_echo "#define INET6 1" >>confdefs.h
5465
5466fi
5467rm -f conftest*
5468
5469			;;
5470		toshiba)
5471			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472/* end confdefs.h.  */
5473
5474#include <sys/param.h>
5475#ifdef _TOSHIBA_INET6
5476yes
5477#endif
5478_ACEOF
5479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5480  $EGREP "yes" >/dev/null 2>&1; then :
5481  ipv6type=$i;
5482				ipv6lib=inet6;
5483				ipv6libdir=/usr/local/v6/lib;
5484
5485$as_echo "#define INET6 1" >>confdefs.h
5486
5487fi
5488rm -f conftest*
5489
5490			;;
5491		v6d)
5492			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493/* end confdefs.h.  */
5494
5495#include </usr/local/v6/include/sys/v6config.h>
5496#ifdef __V6D__
5497yes
5498#endif
5499_ACEOF
5500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5501  $EGREP "yes" >/dev/null 2>&1; then :
5502  ipv6type=$i;
5503				ipv6lib=v6;
5504				ipv6libdir=/usr/local/v6/lib;
5505
5506$as_echo "#define INET6 1" >>confdefs.h
5507
5508fi
5509rm -f conftest*
5510
5511			;;
5512		zeta)
5513			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514/* end confdefs.h.  */
5515
5516#include <sys/param.h>
5517#ifdef _ZETA_MINAMI_INET6
5518yes
5519#endif
5520_ACEOF
5521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5522  $EGREP "yes" >/dev/null 2>&1; then :
5523  ipv6type=$i;
5524				ipv6lib=inet6;
5525				ipv6libdir=/usr/local/v6/lib;
5526
5527$as_echo "#define INET6 1" >>confdefs.h
5528
5529fi
5530rm -f conftest*
5531
5532			;;
5533		cygwin)
5534			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535/* end confdefs.h.  */
5536
5537#include <netinet/in.h>
5538#ifdef _CYGWIN_IN6_H
5539yes
5540#endif
5541_ACEOF
5542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5543  $EGREP "yes" >/dev/null 2>&1; then :
5544  ipv6type=$i;
5545
5546$as_echo "#define INET6 1" >>confdefs.h
5547
5548fi
5549rm -f conftest*
5550
5551			;;
5552		TANDEM)
5553			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554/* end confdefs.h.  */
5555
5556#include <netinet/ip6.h>
5557#ifdef __TANDEM
5558yes
5559#endif
5560_ACEOF
5561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5562  $EGREP "yes" >/dev/null 2>&1; then :
5563  ipv6type=$i;
5564
5565$as_echo "#define INET6 1" >>confdefs.h
5566
5567fi
5568rm -f conftest*
5569
5570			;;
5571		esac
5572		if test "$ipv6type" != "unknown"; then
5573			break
5574		fi
5575	done
5576	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
5577$as_echo "$ipv6type" >&6; }
5578
5579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
5580$as_echo_n "checking for library containing getaddrinfo... " >&6; }
5581if ${ac_cv_search_getaddrinfo+:} false; then :
5582  $as_echo_n "(cached) " >&6
5583else
5584  ac_func_search_save_LIBS=$LIBS
5585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586/* end confdefs.h.  */
5587
5588/* Override any GCC internal prototype to avoid an error.
5589   Use char because int might match the return type of a GCC
5590   builtin and then its argument prototype would still apply.  */
5591#ifdef __cplusplus
5592extern "C"
5593#endif
5594char getaddrinfo ();
5595int
5596main ()
5597{
5598return getaddrinfo ();
5599  ;
5600  return 0;
5601}
5602_ACEOF
5603for ac_lib in '' inet6; do
5604  if test -z "$ac_lib"; then
5605    ac_res="none required"
5606  else
5607    ac_res=-l$ac_lib
5608    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5609  fi
5610  if ac_fn_c_try_link "$LINENO"; then :
5611  ac_cv_search_getaddrinfo=$ac_res
5612fi
5613rm -f core conftest.err conftest.$ac_objext \
5614    conftest$ac_exeext
5615  if ${ac_cv_search_getaddrinfo+:} false; then :
5616  break
5617fi
5618done
5619if ${ac_cv_search_getaddrinfo+:} false; then :
5620
5621else
5622  ac_cv_search_getaddrinfo=no
5623fi
5624rm conftest.$ac_ext
5625LIBS=$ac_func_search_save_LIBS
5626fi
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
5628$as_echo "$ac_cv_search_getaddrinfo" >&6; }
5629ac_res=$ac_cv_search_getaddrinfo
5630if test "$ac_res" != no; then :
5631  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5632
5633fi
5634
5635fi
5636
5637# Check whether --enable-locale was given.
5638if test "${enable_locale+set}" = set; then :
5639  enableval=$enable_locale;
5640fi
5641
5642
5643if test x"$enable_locale" != x"no"; then
5644	$as_echo "#define CONFIG_LOCALE 1" >>confdefs.h
5645
5646fi
5647
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to call shutdown on all sockets" >&5
5649$as_echo_n "checking whether to call shutdown on all sockets... " >&6; }
5650case $host_os in
5651	*cygwin* ) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5652$as_echo "yes" >&6; }
5653
5654$as_echo "#define SHUTDOWN_ALL_SOCKETS 1" >>confdefs.h
5655
5656		   ;;
5657	       * ) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658$as_echo "no" >&6; };;
5659esac
5660
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5662$as_echo_n "checking for ANSI C header files... " >&6; }
5663if ${ac_cv_header_stdc+:} false; then :
5664  $as_echo_n "(cached) " >&6
5665else
5666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667/* end confdefs.h.  */
5668#include <stdlib.h>
5669#include <stdarg.h>
5670#include <string.h>
5671#include <float.h>
5672
5673int
5674main ()
5675{
5676
5677  ;
5678  return 0;
5679}
5680_ACEOF
5681if ac_fn_c_try_compile "$LINENO"; then :
5682  ac_cv_header_stdc=yes
5683else
5684  ac_cv_header_stdc=no
5685fi
5686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687
5688if test $ac_cv_header_stdc = yes; then
5689  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691/* end confdefs.h.  */
5692#include <string.h>
5693
5694_ACEOF
5695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5696  $EGREP "memchr" >/dev/null 2>&1; then :
5697
5698else
5699  ac_cv_header_stdc=no
5700fi
5701rm -f conftest*
5702
5703fi
5704
5705if test $ac_cv_header_stdc = yes; then
5706  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708/* end confdefs.h.  */
5709#include <stdlib.h>
5710
5711_ACEOF
5712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5713  $EGREP "free" >/dev/null 2>&1; then :
5714
5715else
5716  ac_cv_header_stdc=no
5717fi
5718rm -f conftest*
5719
5720fi
5721
5722if test $ac_cv_header_stdc = yes; then
5723  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5724  if test "$cross_compiling" = yes; then :
5725  :
5726else
5727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728/* end confdefs.h.  */
5729#include <ctype.h>
5730#include <stdlib.h>
5731#if ((' ' & 0x0FF) == 0x020)
5732# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5733# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5734#else
5735# define ISLOWER(c) \
5736		   (('a' <= (c) && (c) <= 'i') \
5737		     || ('j' <= (c) && (c) <= 'r') \
5738		     || ('s' <= (c) && (c) <= 'z'))
5739# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5740#endif
5741
5742#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5743int
5744main ()
5745{
5746  int i;
5747  for (i = 0; i < 256; i++)
5748    if (XOR (islower (i), ISLOWER (i))
5749	|| toupper (i) != TOUPPER (i))
5750      return 2;
5751  return 0;
5752}
5753_ACEOF
5754if ac_fn_c_try_run "$LINENO"; then :
5755
5756else
5757  ac_cv_header_stdc=no
5758fi
5759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5760  conftest.$ac_objext conftest.beam conftest.$ac_ext
5761fi
5762
5763fi
5764fi
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5766$as_echo "$ac_cv_header_stdc" >&6; }
5767if test $ac_cv_header_stdc = yes; then
5768
5769$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5770
5771fi
5772
5773# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5774for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5775		  inttypes.h stdint.h unistd.h
5776do :
5777  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5778ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5779"
5780if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5781  cat >>confdefs.h <<_ACEOF
5782#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5783_ACEOF
5784
5785fi
5786
5787done
5788
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5791$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5792if ${ac_cv_c_bigendian+:} false; then :
5793  $as_echo_n "(cached) " >&6
5794else
5795  ac_cv_c_bigendian=unknown
5796    # See if we're dealing with a universal compiler.
5797    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798/* end confdefs.h.  */
5799#ifndef __APPLE_CC__
5800	       not a universal capable compiler
5801	     #endif
5802	     typedef int dummy;
5803
5804_ACEOF
5805if ac_fn_c_try_compile "$LINENO"; then :
5806
5807	# Check for potential -arch flags.  It is not universal unless
5808	# there are at least two -arch flags with different values.
5809	ac_arch=
5810	ac_prev=
5811	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5812	 if test -n "$ac_prev"; then
5813	   case $ac_word in
5814	     i?86 | x86_64 | ppc | ppc64)
5815	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5816		 ac_arch=$ac_word
5817	       else
5818		 ac_cv_c_bigendian=universal
5819		 break
5820	       fi
5821	       ;;
5822	   esac
5823	   ac_prev=
5824	 elif test "x$ac_word" = "x-arch"; then
5825	   ac_prev=arch
5826	 fi
5827       done
5828fi
5829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830    if test $ac_cv_c_bigendian = unknown; then
5831      # See if sys/param.h defines the BYTE_ORDER macro.
5832      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833/* end confdefs.h.  */
5834#include <sys/types.h>
5835	     #include <sys/param.h>
5836
5837int
5838main ()
5839{
5840#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5841		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5842		     && LITTLE_ENDIAN)
5843	      bogus endian macros
5844	     #endif
5845
5846  ;
5847  return 0;
5848}
5849_ACEOF
5850if ac_fn_c_try_compile "$LINENO"; then :
5851  # It does; now see whether it defined to BIG_ENDIAN or not.
5852	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853/* end confdefs.h.  */
5854#include <sys/types.h>
5855		#include <sys/param.h>
5856
5857int
5858main ()
5859{
5860#if BYTE_ORDER != BIG_ENDIAN
5861		 not big endian
5862		#endif
5863
5864  ;
5865  return 0;
5866}
5867_ACEOF
5868if ac_fn_c_try_compile "$LINENO"; then :
5869  ac_cv_c_bigendian=yes
5870else
5871  ac_cv_c_bigendian=no
5872fi
5873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874fi
5875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876    fi
5877    if test $ac_cv_c_bigendian = unknown; then
5878      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5879      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880/* end confdefs.h.  */
5881#include <limits.h>
5882
5883int
5884main ()
5885{
5886#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5887	      bogus endian macros
5888	     #endif
5889
5890  ;
5891  return 0;
5892}
5893_ACEOF
5894if ac_fn_c_try_compile "$LINENO"; then :
5895  # It does; now see whether it defined to _BIG_ENDIAN or not.
5896	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897/* end confdefs.h.  */
5898#include <limits.h>
5899
5900int
5901main ()
5902{
5903#ifndef _BIG_ENDIAN
5904		 not big endian
5905		#endif
5906
5907  ;
5908  return 0;
5909}
5910_ACEOF
5911if ac_fn_c_try_compile "$LINENO"; then :
5912  ac_cv_c_bigendian=yes
5913else
5914  ac_cv_c_bigendian=no
5915fi
5916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917fi
5918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919    fi
5920    if test $ac_cv_c_bigendian = unknown; then
5921      # Compile a test program.
5922      if test "$cross_compiling" = yes; then :
5923  # Try to guess by grepping values from an object file.
5924	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925/* end confdefs.h.  */
5926short int ascii_mm[] =
5927		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5928		short int ascii_ii[] =
5929		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5930		int use_ascii (int i) {
5931		  return ascii_mm[i] + ascii_ii[i];
5932		}
5933		short int ebcdic_ii[] =
5934		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5935		short int ebcdic_mm[] =
5936		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5937		int use_ebcdic (int i) {
5938		  return ebcdic_mm[i] + ebcdic_ii[i];
5939		}
5940		extern int foo;
5941
5942int
5943main ()
5944{
5945return use_ascii (foo) == use_ebcdic (foo);
5946  ;
5947  return 0;
5948}
5949_ACEOF
5950if ac_fn_c_try_compile "$LINENO"; then :
5951  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5952	      ac_cv_c_bigendian=yes
5953	    fi
5954	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5955	      if test "$ac_cv_c_bigendian" = unknown; then
5956		ac_cv_c_bigendian=no
5957	      else
5958		# finding both strings is unlikely to happen, but who knows?
5959		ac_cv_c_bigendian=unknown
5960	      fi
5961	    fi
5962fi
5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964else
5965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966/* end confdefs.h.  */
5967$ac_includes_default
5968int
5969main ()
5970{
5971
5972	     /* Are we little or big endian?  From Harbison&Steele.  */
5973	     union
5974	     {
5975	       long int l;
5976	       char c[sizeof (long int)];
5977	     } u;
5978	     u.l = 1;
5979	     return u.c[sizeof (long int) - 1] == 1;
5980
5981  ;
5982  return 0;
5983}
5984_ACEOF
5985if ac_fn_c_try_run "$LINENO"; then :
5986  ac_cv_c_bigendian=no
5987else
5988  ac_cv_c_bigendian=yes
5989fi
5990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5991  conftest.$ac_objext conftest.beam conftest.$ac_ext
5992fi
5993
5994    fi
5995fi
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5997$as_echo "$ac_cv_c_bigendian" >&6; }
5998 case $ac_cv_c_bigendian in #(
5999   yes)
6000     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6001;; #(
6002   no)
6003      ;; #(
6004   universal)
6005
6006$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6007
6008     ;; #(
6009   *)
6010     as_fn_error $? "unknown endianness
6011 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6012 esac
6013
6014ac_header_dirent=no
6015for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6016  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6018$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6019if eval \${$as_ac_Header+:} false; then :
6020  $as_echo_n "(cached) " >&6
6021else
6022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023/* end confdefs.h.  */
6024#include <sys/types.h>
6025#include <$ac_hdr>
6026
6027int
6028main ()
6029{
6030if ((DIR *) 0)
6031return 0;
6032  ;
6033  return 0;
6034}
6035_ACEOF
6036if ac_fn_c_try_compile "$LINENO"; then :
6037  eval "$as_ac_Header=yes"
6038else
6039  eval "$as_ac_Header=no"
6040fi
6041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042fi
6043eval ac_res=\$$as_ac_Header
6044	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6045$as_echo "$ac_res" >&6; }
6046if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6047  cat >>confdefs.h <<_ACEOF
6048#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6049_ACEOF
6050
6051ac_header_dirent=$ac_hdr; break
6052fi
6053
6054done
6055# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6056if test $ac_header_dirent = dirent.h; then
6057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6058$as_echo_n "checking for library containing opendir... " >&6; }
6059if ${ac_cv_search_opendir+:} false; then :
6060  $as_echo_n "(cached) " >&6
6061else
6062  ac_func_search_save_LIBS=$LIBS
6063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064/* end confdefs.h.  */
6065
6066/* Override any GCC internal prototype to avoid an error.
6067   Use char because int might match the return type of a GCC
6068   builtin and then its argument prototype would still apply.  */
6069#ifdef __cplusplus
6070extern "C"
6071#endif
6072char opendir ();
6073int
6074main ()
6075{
6076return opendir ();
6077  ;
6078  return 0;
6079}
6080_ACEOF
6081for ac_lib in '' dir; do
6082  if test -z "$ac_lib"; then
6083    ac_res="none required"
6084  else
6085    ac_res=-l$ac_lib
6086    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6087  fi
6088  if ac_fn_c_try_link "$LINENO"; then :
6089  ac_cv_search_opendir=$ac_res
6090fi
6091rm -f core conftest.err conftest.$ac_objext \
6092    conftest$ac_exeext
6093  if ${ac_cv_search_opendir+:} false; then :
6094  break
6095fi
6096done
6097if ${ac_cv_search_opendir+:} false; then :
6098
6099else
6100  ac_cv_search_opendir=no
6101fi
6102rm conftest.$ac_ext
6103LIBS=$ac_func_search_save_LIBS
6104fi
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6106$as_echo "$ac_cv_search_opendir" >&6; }
6107ac_res=$ac_cv_search_opendir
6108if test "$ac_res" != no; then :
6109  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6110
6111fi
6112
6113else
6114  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6115$as_echo_n "checking for library containing opendir... " >&6; }
6116if ${ac_cv_search_opendir+:} false; then :
6117  $as_echo_n "(cached) " >&6
6118else
6119  ac_func_search_save_LIBS=$LIBS
6120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121/* end confdefs.h.  */
6122
6123/* Override any GCC internal prototype to avoid an error.
6124   Use char because int might match the return type of a GCC
6125   builtin and then its argument prototype would still apply.  */
6126#ifdef __cplusplus
6127extern "C"
6128#endif
6129char opendir ();
6130int
6131main ()
6132{
6133return opendir ();
6134  ;
6135  return 0;
6136}
6137_ACEOF
6138for ac_lib in '' x; do
6139  if test -z "$ac_lib"; then
6140    ac_res="none required"
6141  else
6142    ac_res=-l$ac_lib
6143    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6144  fi
6145  if ac_fn_c_try_link "$LINENO"; then :
6146  ac_cv_search_opendir=$ac_res
6147fi
6148rm -f core conftest.err conftest.$ac_objext \
6149    conftest$ac_exeext
6150  if ${ac_cv_search_opendir+:} false; then :
6151  break
6152fi
6153done
6154if ${ac_cv_search_opendir+:} false; then :
6155
6156else
6157  ac_cv_search_opendir=no
6158fi
6159rm conftest.$ac_ext
6160LIBS=$ac_func_search_save_LIBS
6161fi
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6163$as_echo "$ac_cv_search_opendir" >&6; }
6164ac_res=$ac_cv_search_opendir
6165if test "$ac_res" != no; then :
6166  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6167
6168fi
6169
6170fi
6171
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6173$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6174if ${ac_cv_header_time+:} false; then :
6175  $as_echo_n "(cached) " >&6
6176else
6177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178/* end confdefs.h.  */
6179#include <sys/types.h>
6180#include <sys/time.h>
6181#include <time.h>
6182
6183int
6184main ()
6185{
6186if ((struct tm *) 0)
6187return 0;
6188  ;
6189  return 0;
6190}
6191_ACEOF
6192if ac_fn_c_try_compile "$LINENO"; then :
6193  ac_cv_header_time=yes
6194else
6195  ac_cv_header_time=no
6196fi
6197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198fi
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6200$as_echo "$ac_cv_header_time" >&6; }
6201if test $ac_cv_header_time = yes; then
6202
6203$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6204
6205fi
6206
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6208$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6209if ${ac_cv_header_sys_wait_h+:} false; then :
6210  $as_echo_n "(cached) " >&6
6211else
6212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213/* end confdefs.h.  */
6214#include <sys/types.h>
6215#include <sys/wait.h>
6216#ifndef WEXITSTATUS
6217# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6218#endif
6219#ifndef WIFEXITED
6220# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6221#endif
6222
6223int
6224main ()
6225{
6226  int s;
6227  wait (&s);
6228  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6229  ;
6230  return 0;
6231}
6232_ACEOF
6233if ac_fn_c_try_compile "$LINENO"; then :
6234  ac_cv_header_sys_wait_h=yes
6235else
6236  ac_cv_header_sys_wait_h=no
6237fi
6238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239fi
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6241$as_echo "$ac_cv_header_sys_wait_h" >&6; }
6242if test $ac_cv_header_sys_wait_h = yes; then
6243
6244$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6245
6246fi
6247
6248for ac_header in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h \
6249    unistd.h utime.h grp.h compat.h sys/param.h ctype.h sys/wait.h \
6250    sys/ioctl.h sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h \
6251    sys/un.h sys/attr.h mcheck.h arpa/inet.h arpa/nameser.h locale.h \
6252    netdb.h malloc.h float.h limits.h iconv.h libcharset.h langinfo.h \
6253    sys/acl.h acl/libacl.h attr/xattr.h sys/xattr.h sys/extattr.h dl.h \
6254    popt.h popt/popt.h linux/falloc.h netinet/in_systm.h netinet/ip.h \
6255    zlib.h xxhash.h openssl/md4.h openssl/md5.h zstd.h lz4.h sys/file.h
6256do :
6257  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6258ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6259if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6260  cat >>confdefs.h <<_ACEOF
6261#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6262_ACEOF
6263
6264fi
6265
6266done
6267
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
6269$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
6270if ${ac_cv_header_sys_types_h_makedev+:} false; then :
6271  $as_echo_n "(cached) " >&6
6272else
6273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274/* end confdefs.h.  */
6275#include <sys/types.h>
6276int
6277main ()
6278{
6279return makedev(0, 0);
6280  ;
6281  return 0;
6282}
6283_ACEOF
6284if ac_fn_c_try_link "$LINENO"; then :
6285  if grep sys/sysmacros.h conftest.err >/dev/null; then
6286		   ac_cv_header_sys_types_h_makedev=no
6287		 else
6288		   ac_cv_header_sys_types_h_makedev=yes
6289		 fi
6290else
6291  ac_cv_header_sys_types_h_makedev=no
6292fi
6293rm -f core conftest.err conftest.$ac_objext \
6294    conftest$ac_exeext conftest.$ac_ext
6295
6296fi
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
6298$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
6299
6300if test $ac_cv_header_sys_types_h_makedev = no; then
6301ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
6302if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
6303
6304$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
6305
6306fi
6307
6308
6309
6310  if test $ac_cv_header_sys_mkdev_h = no; then
6311    ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
6312if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
6313
6314$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
6315
6316fi
6317
6318
6319  fi
6320fi
6321
6322
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable use of openssl crypto library" >&5
6324$as_echo_n "checking whether to enable use of openssl crypto library... " >&6; }
6325# Check whether --enable-openssl was given.
6326if test "${enable_openssl+set}" = set; then :
6327  enableval=$enable_openssl;
6328fi
6329
6330
6331if test x"$enable_openssl" != x"no"; then
6332    if test x"$ac_cv_header_openssl_md4_h" = x"yes" && test x"$ac_cv_header_openssl_md5_h" = x"yes"; then
6333      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6334$as_echo "yes" >&6; }
6335      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5_Init" >&5
6336$as_echo_n "checking for library containing MD5_Init... " >&6; }
6337if ${ac_cv_search_MD5_Init+:} false; then :
6338  $as_echo_n "(cached) " >&6
6339else
6340  ac_func_search_save_LIBS=$LIBS
6341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342/* end confdefs.h.  */
6343
6344/* Override any GCC internal prototype to avoid an error.
6345   Use char because int might match the return type of a GCC
6346   builtin and then its argument prototype would still apply.  */
6347#ifdef __cplusplus
6348extern "C"
6349#endif
6350char MD5_Init ();
6351int
6352main ()
6353{
6354return MD5_Init ();
6355  ;
6356  return 0;
6357}
6358_ACEOF
6359for ac_lib in '' crypto; do
6360  if test -z "$ac_lib"; then
6361    ac_res="none required"
6362  else
6363    ac_res=-l$ac_lib
6364    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6365  fi
6366  if ac_fn_c_try_link "$LINENO"; then :
6367  ac_cv_search_MD5_Init=$ac_res
6368fi
6369rm -f core conftest.err conftest.$ac_objext \
6370    conftest$ac_exeext
6371  if ${ac_cv_search_MD5_Init+:} false; then :
6372  break
6373fi
6374done
6375if ${ac_cv_search_MD5_Init+:} false; then :
6376
6377else
6378  ac_cv_search_MD5_Init=no
6379fi
6380rm conftest.$ac_ext
6381LIBS=$ac_func_search_save_LIBS
6382fi
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5_Init" >&5
6384$as_echo "$ac_cv_search_MD5_Init" >&6; }
6385ac_res=$ac_cv_search_MD5_Init
6386if test "$ac_res" != no; then :
6387  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6388  $as_echo "#define USE_OPENSSL 1" >>confdefs.h
6389
6390else
6391  err_msg="$err_msg$nl- Failed to find MD5_Init function in openssl crypto lib.";
6392	   no_lib="$no_lib openssl"
6393fi
6394
6395    else
6396        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397$as_echo "no" >&6; }
6398	err_msg="$err_msg$nl- Failed to find openssl/md4.h and openssl/md5.h for openssl crypto lib support."
6399	no_lib="$no_lib openssl"
6400    fi
6401else
6402    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403$as_echo "no" >&6; }
6404fi
6405
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable xxhash checksum support" >&5
6407$as_echo_n "checking whether to enable xxhash checksum support... " >&6; }
6408# Check whether --enable-xxhash was given.
6409if test "${enable_xxhash+set}" = set; then :
6410  enableval=$enable_xxhash;
6411fi
6412
6413
6414if test x"$enable_xxhash" != x"no"; then
6415    if test x"$ac_cv_header_xxhash_h" = x"yes"; then
6416	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6417$as_echo "yes" >&6; }
6418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing XXH64_createState" >&5
6419$as_echo_n "checking for library containing XXH64_createState... " >&6; }
6420if ${ac_cv_search_XXH64_createState+:} false; then :
6421  $as_echo_n "(cached) " >&6
6422else
6423  ac_func_search_save_LIBS=$LIBS
6424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425/* end confdefs.h.  */
6426
6427/* Override any GCC internal prototype to avoid an error.
6428   Use char because int might match the return type of a GCC
6429   builtin and then its argument prototype would still apply.  */
6430#ifdef __cplusplus
6431extern "C"
6432#endif
6433char XXH64_createState ();
6434int
6435main ()
6436{
6437return XXH64_createState ();
6438  ;
6439  return 0;
6440}
6441_ACEOF
6442for ac_lib in '' xxhash; do
6443  if test -z "$ac_lib"; then
6444    ac_res="none required"
6445  else
6446    ac_res=-l$ac_lib
6447    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6448  fi
6449  if ac_fn_c_try_link "$LINENO"; then :
6450  ac_cv_search_XXH64_createState=$ac_res
6451fi
6452rm -f core conftest.err conftest.$ac_objext \
6453    conftest$ac_exeext
6454  if ${ac_cv_search_XXH64_createState+:} false; then :
6455  break
6456fi
6457done
6458if ${ac_cv_search_XXH64_createState+:} false; then :
6459
6460else
6461  ac_cv_search_XXH64_createState=no
6462fi
6463rm conftest.$ac_ext
6464LIBS=$ac_func_search_save_LIBS
6465fi
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_XXH64_createState" >&5
6467$as_echo "$ac_cv_search_XXH64_createState" >&6; }
6468ac_res=$ac_cv_search_XXH64_createState
6469if test "$ac_res" != no; then :
6470  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6471  $as_echo "#define SUPPORT_XXHASH 1" >>confdefs.h
6472
6473else
6474  err_msg="$err_msg$nl- Failed to find XXH64_createState function in xxhash lib.";
6475	     no_lib="$no_lib xxhash"
6476fi
6477
6478    else
6479	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480$as_echo "no" >&6; }
6481	err_msg="$err_msg$nl- Failed to find xxhash.h for xxhash checksum support.";
6482	no_lib="$no_lib xxhash"
6483    fi
6484else
6485    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486$as_echo "no" >&6; }
6487fi
6488
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable zstd compression" >&5
6490$as_echo_n "checking whether to enable zstd compression... " >&6; }
6491# Check whether --enable-zstd was given.
6492if test "${enable_zstd+set}" = set; then :
6493  enableval=$enable_zstd;
6494fi
6495
6496
6497if test x"$enable_zstd" != x"no"; then
6498    if test x"$ac_cv_header_zstd_h" = x"yes"; then
6499	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6500$as_echo "yes" >&6; }
6501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_minCLevel" >&5
6502$as_echo_n "checking for library containing ZSTD_minCLevel... " >&6; }
6503if ${ac_cv_search_ZSTD_minCLevel+:} false; then :
6504  $as_echo_n "(cached) " >&6
6505else
6506  ac_func_search_save_LIBS=$LIBS
6507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508/* end confdefs.h.  */
6509
6510/* Override any GCC internal prototype to avoid an error.
6511   Use char because int might match the return type of a GCC
6512   builtin and then its argument prototype would still apply.  */
6513#ifdef __cplusplus
6514extern "C"
6515#endif
6516char ZSTD_minCLevel ();
6517int
6518main ()
6519{
6520return ZSTD_minCLevel ();
6521  ;
6522  return 0;
6523}
6524_ACEOF
6525for ac_lib in '' zstd; do
6526  if test -z "$ac_lib"; then
6527    ac_res="none required"
6528  else
6529    ac_res=-l$ac_lib
6530    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6531  fi
6532  if ac_fn_c_try_link "$LINENO"; then :
6533  ac_cv_search_ZSTD_minCLevel=$ac_res
6534fi
6535rm -f core conftest.err conftest.$ac_objext \
6536    conftest$ac_exeext
6537  if ${ac_cv_search_ZSTD_minCLevel+:} false; then :
6538  break
6539fi
6540done
6541if ${ac_cv_search_ZSTD_minCLevel+:} false; then :
6542
6543else
6544  ac_cv_search_ZSTD_minCLevel=no
6545fi
6546rm conftest.$ac_ext
6547LIBS=$ac_func_search_save_LIBS
6548fi
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_minCLevel" >&5
6550$as_echo "$ac_cv_search_ZSTD_minCLevel" >&6; }
6551ac_res=$ac_cv_search_ZSTD_minCLevel
6552if test "$ac_res" != no; then :
6553  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6554  $as_echo "#define SUPPORT_ZSTD 1" >>confdefs.h
6555
6556else
6557  err_msg="$err_msg$nl- Failed to find ZSTD_minCLevel function in zstd lib.";
6558	     no_lib="$no_lib zstd"
6559fi
6560
6561    else
6562	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563$as_echo "no" >&6; }
6564	err_msg="$err_msg$nl- Failed to find zstd.h for zstd compression support.";
6565	no_lib="$no_lib zstd"
6566    fi
6567else
6568    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569$as_echo "no" >&6; }
6570fi
6571
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable LZ4 compression" >&5
6573$as_echo_n "checking whether to enable LZ4 compression... " >&6; }
6574# Check whether --enable-lz4 was given.
6575if test "${enable_lz4+set}" = set; then :
6576  enableval=$enable_lz4;
6577fi
6578
6579
6580if test x"$enable_lz4" != x"no"; then
6581    if test x"$ac_cv_header_lz4_h" = x"yes"; then
6582	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6583$as_echo "yes" >&6; }
6584	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing LZ4_compress_default" >&5
6585$as_echo_n "checking for library containing LZ4_compress_default... " >&6; }
6586if ${ac_cv_search_LZ4_compress_default+:} false; then :
6587  $as_echo_n "(cached) " >&6
6588else
6589  ac_func_search_save_LIBS=$LIBS
6590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591/* end confdefs.h.  */
6592
6593/* Override any GCC internal prototype to avoid an error.
6594   Use char because int might match the return type of a GCC
6595   builtin and then its argument prototype would still apply.  */
6596#ifdef __cplusplus
6597extern "C"
6598#endif
6599char LZ4_compress_default ();
6600int
6601main ()
6602{
6603return LZ4_compress_default ();
6604  ;
6605  return 0;
6606}
6607_ACEOF
6608for ac_lib in '' lz4; do
6609  if test -z "$ac_lib"; then
6610    ac_res="none required"
6611  else
6612    ac_res=-l$ac_lib
6613    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6614  fi
6615  if ac_fn_c_try_link "$LINENO"; then :
6616  ac_cv_search_LZ4_compress_default=$ac_res
6617fi
6618rm -f core conftest.err conftest.$ac_objext \
6619    conftest$ac_exeext
6620  if ${ac_cv_search_LZ4_compress_default+:} false; then :
6621  break
6622fi
6623done
6624if ${ac_cv_search_LZ4_compress_default+:} false; then :
6625
6626else
6627  ac_cv_search_LZ4_compress_default=no
6628fi
6629rm conftest.$ac_ext
6630LIBS=$ac_func_search_save_LIBS
6631fi
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_LZ4_compress_default" >&5
6633$as_echo "$ac_cv_search_LZ4_compress_default" >&6; }
6634ac_res=$ac_cv_search_LZ4_compress_default
6635if test "$ac_res" != no; then :
6636  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6637  $as_echo "#define SUPPORT_LZ4 1" >>confdefs.h
6638
6639else
6640  err_msg="$err_msg$nl- Failed to find LZ4_compress_default function in lz4 lib.";
6641	     no_lib="$no_lib lz4"
6642fi
6643
6644    else
6645	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646$as_echo "no" >&6; }
6647	err_msg="$err_msg$nl- Failed to find lz4.h for lz4 compression support."
6648	no_lib="$no_lib lz4"
6649    fi
6650else
6651    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652$as_echo "no" >&6; }
6653fi
6654
6655if test x"$no_lib" != x; then
6656    echo ""
6657    echo "Configure found the following issues:"
6658    echo "$err_msg"
6659    echo ""
6660    echo "See the INSTALL file for hints on how to install the missing libraries and/or"
6661    echo "how to generate (or fetch) man pages:"
6662    echo "    https://github.com/WayneD/rsync/blob/master/INSTALL.md"
6663    echo ""
6664    echo "To disable one or more features, the relevant configure options are:"
6665    for lib in $no_lib; do
6666	echo "    --disable-$lib"
6667    done
6668    echo ""
6669    as_fn_error $? "Aborting configure run" "$LINENO" 5
6670fi
6671
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if makedev takes 3 args" >&5
6673$as_echo_n "checking if makedev takes 3 args... " >&6; }
6674if ${rsync_cv_MAKEDEV_TAKES_3_ARGS+:} false; then :
6675  $as_echo_n "(cached) " >&6
6676else
6677
6678if test "$cross_compiling" = yes; then :
6679  rsync_cv_MAKEDEV_TAKES_3_ARGS=no
6680else
6681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682/* end confdefs.h.  */
6683
6684#include <sys/types.h>
6685#ifdef MAJOR_IN_MKDEV
6686#include <sys/mkdev.h>
6687# if !defined makedev && (defined mkdev || defined _WIN32 || defined __WIN32__)
6688#  define makedev mkdev
6689# endif
6690#elif defined MAJOR_IN_SYSMACROS
6691#include <sys/sysmacros.h>
6692#endif
6693
6694int main(void)
6695{
6696	dev_t dev = makedev(0, 5, 7);
6697	if (major(dev) != 5 || minor(dev) != 7)
6698		return 1;
6699	return 0;
6700}
6701
6702_ACEOF
6703if ac_fn_c_try_run "$LINENO"; then :
6704  rsync_cv_MAKEDEV_TAKES_3_ARGS=yes
6705else
6706  rsync_cv_MAKEDEV_TAKES_3_ARGS=no
6707fi
6708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6709  conftest.$ac_objext conftest.beam conftest.$ac_ext
6710fi
6711
6712fi
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_MAKEDEV_TAKES_3_ARGS" >&5
6714$as_echo "$rsync_cv_MAKEDEV_TAKES_3_ARGS" >&6; }
6715if test x"$rsync_cv_MAKEDEV_TAKES_3_ARGS" = x"yes"; then
6716
6717$as_echo "#define MAKEDEV_TAKES_3_ARGS 1" >>confdefs.h
6718
6719fi
6720
6721# The cast to long int works around a bug in the HP C Compiler
6722# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6723# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6724# This bug is HP SR number 8606223364.
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6726$as_echo_n "checking size of int... " >&6; }
6727if ${ac_cv_sizeof_int+:} false; then :
6728  $as_echo_n "(cached) " >&6
6729else
6730  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6731
6732else
6733  if test "$ac_cv_type_int" = yes; then
6734     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6735$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6736as_fn_error 77 "cannot compute sizeof (int)
6737See \`config.log' for more details" "$LINENO" 5; }
6738   else
6739     ac_cv_sizeof_int=0
6740   fi
6741fi
6742
6743fi
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6745$as_echo "$ac_cv_sizeof_int" >&6; }
6746
6747
6748
6749cat >>confdefs.h <<_ACEOF
6750#define SIZEOF_INT $ac_cv_sizeof_int
6751_ACEOF
6752
6753
6754# The cast to long int works around a bug in the HP C Compiler
6755# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6756# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6757# This bug is HP SR number 8606223364.
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6759$as_echo_n "checking size of long... " >&6; }
6760if ${ac_cv_sizeof_long+:} false; then :
6761  $as_echo_n "(cached) " >&6
6762else
6763  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6764
6765else
6766  if test "$ac_cv_type_long" = yes; then
6767     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6769as_fn_error 77 "cannot compute sizeof (long)
6770See \`config.log' for more details" "$LINENO" 5; }
6771   else
6772     ac_cv_sizeof_long=0
6773   fi
6774fi
6775
6776fi
6777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6778$as_echo "$ac_cv_sizeof_long" >&6; }
6779
6780
6781
6782cat >>confdefs.h <<_ACEOF
6783#define SIZEOF_LONG $ac_cv_sizeof_long
6784_ACEOF
6785
6786
6787# The cast to long int works around a bug in the HP C Compiler
6788# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6789# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6790# This bug is HP SR number 8606223364.
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6792$as_echo_n "checking size of long long... " >&6; }
6793if ${ac_cv_sizeof_long_long+:} false; then :
6794  $as_echo_n "(cached) " >&6
6795else
6796  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
6797
6798else
6799  if test "$ac_cv_type_long_long" = yes; then
6800     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6802as_fn_error 77 "cannot compute sizeof (long long)
6803See \`config.log' for more details" "$LINENO" 5; }
6804   else
6805     ac_cv_sizeof_long_long=0
6806   fi
6807fi
6808
6809fi
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6811$as_echo "$ac_cv_sizeof_long_long" >&6; }
6812
6813
6814
6815cat >>confdefs.h <<_ACEOF
6816#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6817_ACEOF
6818
6819
6820# The cast to long int works around a bug in the HP C Compiler
6821# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6822# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6823# This bug is HP SR number 8606223364.
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6825$as_echo_n "checking size of short... " >&6; }
6826if ${ac_cv_sizeof_short+:} false; then :
6827  $as_echo_n "(cached) " >&6
6828else
6829  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
6830
6831else
6832  if test "$ac_cv_type_short" = yes; then
6833     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6835as_fn_error 77 "cannot compute sizeof (short)
6836See \`config.log' for more details" "$LINENO" 5; }
6837   else
6838     ac_cv_sizeof_short=0
6839   fi
6840fi
6841
6842fi
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6844$as_echo "$ac_cv_sizeof_short" >&6; }
6845
6846
6847
6848cat >>confdefs.h <<_ACEOF
6849#define SIZEOF_SHORT $ac_cv_sizeof_short
6850_ACEOF
6851
6852
6853# The cast to long int works around a bug in the HP C Compiler
6854# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6855# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6856# This bug is HP SR number 8606223364.
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
6858$as_echo_n "checking size of int16_t... " >&6; }
6859if ${ac_cv_sizeof_int16_t+:} false; then :
6860  $as_echo_n "(cached) " >&6
6861else
6862  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t"        "$ac_includes_default"; then :
6863
6864else
6865  if test "$ac_cv_type_int16_t" = yes; then
6866     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6868as_fn_error 77 "cannot compute sizeof (int16_t)
6869See \`config.log' for more details" "$LINENO" 5; }
6870   else
6871     ac_cv_sizeof_int16_t=0
6872   fi
6873fi
6874
6875fi
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
6877$as_echo "$ac_cv_sizeof_int16_t" >&6; }
6878
6879
6880
6881cat >>confdefs.h <<_ACEOF
6882#define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
6883_ACEOF
6884
6885
6886# The cast to long int works around a bug in the HP C Compiler
6887# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6888# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6889# This bug is HP SR number 8606223364.
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
6891$as_echo_n "checking size of uint16_t... " >&6; }
6892if ${ac_cv_sizeof_uint16_t+:} false; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t"        "$ac_includes_default"; then :
6896
6897else
6898  if test "$ac_cv_type_uint16_t" = yes; then
6899     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6901as_fn_error 77 "cannot compute sizeof (uint16_t)
6902See \`config.log' for more details" "$LINENO" 5; }
6903   else
6904     ac_cv_sizeof_uint16_t=0
6905   fi
6906fi
6907
6908fi
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
6910$as_echo "$ac_cv_sizeof_uint16_t" >&6; }
6911
6912
6913
6914cat >>confdefs.h <<_ACEOF
6915#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
6916_ACEOF
6917
6918
6919# The cast to long int works around a bug in the HP C Compiler
6920# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6921# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6922# This bug is HP SR number 8606223364.
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
6924$as_echo_n "checking size of int32_t... " >&6; }
6925if ${ac_cv_sizeof_int32_t+:} false; then :
6926  $as_echo_n "(cached) " >&6
6927else
6928  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t"        "$ac_includes_default"; then :
6929
6930else
6931  if test "$ac_cv_type_int32_t" = yes; then
6932     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6934as_fn_error 77 "cannot compute sizeof (int32_t)
6935See \`config.log' for more details" "$LINENO" 5; }
6936   else
6937     ac_cv_sizeof_int32_t=0
6938   fi
6939fi
6940
6941fi
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
6943$as_echo "$ac_cv_sizeof_int32_t" >&6; }
6944
6945
6946
6947cat >>confdefs.h <<_ACEOF
6948#define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
6949_ACEOF
6950
6951
6952# The cast to long int works around a bug in the HP C Compiler
6953# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6954# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6955# This bug is HP SR number 8606223364.
6956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
6957$as_echo_n "checking size of uint32_t... " >&6; }
6958if ${ac_cv_sizeof_uint32_t+:} false; then :
6959  $as_echo_n "(cached) " >&6
6960else
6961  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t"        "$ac_includes_default"; then :
6962
6963else
6964  if test "$ac_cv_type_uint32_t" = yes; then
6965     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6967as_fn_error 77 "cannot compute sizeof (uint32_t)
6968See \`config.log' for more details" "$LINENO" 5; }
6969   else
6970     ac_cv_sizeof_uint32_t=0
6971   fi
6972fi
6973
6974fi
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
6976$as_echo "$ac_cv_sizeof_uint32_t" >&6; }
6977
6978
6979
6980cat >>confdefs.h <<_ACEOF
6981#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
6982_ACEOF
6983
6984
6985# The cast to long int works around a bug in the HP C Compiler
6986# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6987# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6988# This bug is HP SR number 8606223364.
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
6990$as_echo_n "checking size of int64_t... " >&6; }
6991if ${ac_cv_sizeof_int64_t+:} false; then :
6992  $as_echo_n "(cached) " >&6
6993else
6994  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t"        "$ac_includes_default"; then :
6995
6996else
6997  if test "$ac_cv_type_int64_t" = yes; then
6998     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7000as_fn_error 77 "cannot compute sizeof (int64_t)
7001See \`config.log' for more details" "$LINENO" 5; }
7002   else
7003     ac_cv_sizeof_int64_t=0
7004   fi
7005fi
7006
7007fi
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
7009$as_echo "$ac_cv_sizeof_int64_t" >&6; }
7010
7011
7012
7013cat >>confdefs.h <<_ACEOF
7014#define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7015_ACEOF
7016
7017
7018# The cast to long int works around a bug in the HP C Compiler
7019# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7020# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7021# This bug is HP SR number 8606223364.
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
7023$as_echo_n "checking size of off_t... " >&6; }
7024if ${ac_cv_sizeof_off_t+:} false; then :
7025  $as_echo_n "(cached) " >&6
7026else
7027  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
7028
7029else
7030  if test "$ac_cv_type_off_t" = yes; then
7031     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7033as_fn_error 77 "cannot compute sizeof (off_t)
7034See \`config.log' for more details" "$LINENO" 5; }
7035   else
7036     ac_cv_sizeof_off_t=0
7037   fi
7038fi
7039
7040fi
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
7042$as_echo "$ac_cv_sizeof_off_t" >&6; }
7043
7044
7045
7046cat >>confdefs.h <<_ACEOF
7047#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
7048_ACEOF
7049
7050
7051# The cast to long int works around a bug in the HP C Compiler
7052# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7053# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7054# This bug is HP SR number 8606223364.
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
7056$as_echo_n "checking size of off64_t... " >&6; }
7057if ${ac_cv_sizeof_off64_t+:} false; then :
7058  $as_echo_n "(cached) " >&6
7059else
7060  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t"        "$ac_includes_default"; then :
7061
7062else
7063  if test "$ac_cv_type_off64_t" = yes; then
7064     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7066as_fn_error 77 "cannot compute sizeof (off64_t)
7067See \`config.log' for more details" "$LINENO" 5; }
7068   else
7069     ac_cv_sizeof_off64_t=0
7070   fi
7071fi
7072
7073fi
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
7075$as_echo "$ac_cv_sizeof_off64_t" >&6; }
7076
7077
7078
7079cat >>confdefs.h <<_ACEOF
7080#define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
7081_ACEOF
7082
7083
7084# The cast to long int works around a bug in the HP C Compiler
7085# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7086# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7087# This bug is HP SR number 8606223364.
7088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
7089$as_echo_n "checking size of time_t... " >&6; }
7090if ${ac_cv_sizeof_time_t+:} false; then :
7091  $as_echo_n "(cached) " >&6
7092else
7093  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
7094
7095else
7096  if test "$ac_cv_type_time_t" = yes; then
7097     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7099as_fn_error 77 "cannot compute sizeof (time_t)
7100See \`config.log' for more details" "$LINENO" 5; }
7101   else
7102     ac_cv_sizeof_time_t=0
7103   fi
7104fi
7105
7106fi
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
7108$as_echo "$ac_cv_sizeof_time_t" >&6; }
7109
7110
7111
7112cat >>confdefs.h <<_ACEOF
7113#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
7114_ACEOF
7115
7116
7117# The cast to long int works around a bug in the HP C Compiler
7118# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7119# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7120# This bug is HP SR number 8606223364.
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
7122$as_echo_n "checking size of char*... " >&6; }
7123if ${ac_cv_sizeof_charp+:} false; then :
7124  $as_echo_n "(cached) " >&6
7125else
7126  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :
7127
7128else
7129  if test "$ac_cv_type_charp" = yes; then
7130     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7132as_fn_error 77 "cannot compute sizeof (char*)
7133See \`config.log' for more details" "$LINENO" 5; }
7134   else
7135     ac_cv_sizeof_charp=0
7136   fi
7137fi
7138
7139fi
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
7141$as_echo "$ac_cv_sizeof_charp" >&6; }
7142
7143
7144
7145cat >>confdefs.h <<_ACEOF
7146#define SIZEOF_CHARP $ac_cv_sizeof_charp
7147_ACEOF
7148
7149
7150
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7152$as_echo_n "checking for inline... " >&6; }
7153if ${ac_cv_c_inline+:} false; then :
7154  $as_echo_n "(cached) " >&6
7155else
7156  ac_cv_c_inline=no
7157for ac_kw in inline __inline__ __inline; do
7158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159/* end confdefs.h.  */
7160#ifndef __cplusplus
7161typedef int foo_t;
7162static $ac_kw foo_t static_foo () {return 0; }
7163$ac_kw foo_t foo () {return 0; }
7164#endif
7165
7166_ACEOF
7167if ac_fn_c_try_compile "$LINENO"; then :
7168  ac_cv_c_inline=$ac_kw
7169fi
7170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171  test "$ac_cv_c_inline" != no && break
7172done
7173
7174fi
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7176$as_echo "$ac_cv_c_inline" >&6; }
7177
7178case $ac_cv_c_inline in
7179  inline | yes) ;;
7180  *)
7181    case $ac_cv_c_inline in
7182      no) ac_val=;;
7183      *) ac_val=$ac_cv_c_inline;;
7184    esac
7185    cat >>confdefs.h <<_ACEOF
7186#ifndef __cplusplus
7187#define inline $ac_val
7188#endif
7189_ACEOF
7190    ;;
7191esac
7192
7193
7194
7195  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
7196$as_echo_n "checking for long double with more range or precision than double... " >&6; }
7197if ${ac_cv_type_long_double_wider+:} false; then :
7198  $as_echo_n "(cached) " >&6
7199else
7200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201/* end confdefs.h.  */
7202#include <float.h>
7203	    long double const a[] =
7204	      {
7205		 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
7206		 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
7207	      };
7208	    long double
7209	    f (long double x)
7210	    {
7211	       return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
7212			+ (x ? f (x) : 'c'));
7213	    }
7214
7215int
7216main ()
7217{
7218static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
7219		   + (DBL_MANT_DIG < LDBL_MANT_DIG)
7220		   - (LDBL_MAX_EXP < DBL_MAX_EXP)
7221		   - (LDBL_MANT_DIG < DBL_MANT_DIG)))
7222	    && (int) LDBL_EPSILON == 0
7223	  )];
7224test_array [0] = 0;
7225return test_array [0];
7226
7227  ;
7228  return 0;
7229}
7230_ACEOF
7231if ac_fn_c_try_compile "$LINENO"; then :
7232  ac_cv_type_long_double_wider=yes
7233else
7234  ac_cv_type_long_double_wider=no
7235fi
7236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237fi
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
7239$as_echo "$ac_cv_type_long_double_wider" >&6; }
7240  if test $ac_cv_type_long_double_wider = yes; then
7241
7242$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
7243
7244  fi
7245
7246ac_cv_c_long_double=$ac_cv_type_long_double_wider
7247if test $ac_cv_c_long_double = yes; then
7248
7249$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
7250
7251fi
7252
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7254$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7255if ${ac_cv_type_uid_t+:} false; then :
7256  $as_echo_n "(cached) " >&6
7257else
7258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259/* end confdefs.h.  */
7260#include <sys/types.h>
7261
7262_ACEOF
7263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7264  $EGREP "uid_t" >/dev/null 2>&1; then :
7265  ac_cv_type_uid_t=yes
7266else
7267  ac_cv_type_uid_t=no
7268fi
7269rm -f conftest*
7270
7271fi
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7273$as_echo "$ac_cv_type_uid_t" >&6; }
7274if test $ac_cv_type_uid_t = no; then
7275
7276$as_echo "#define uid_t int" >>confdefs.h
7277
7278
7279$as_echo "#define gid_t int" >>confdefs.h
7280
7281fi
7282
7283ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7284if test "x$ac_cv_type_mode_t" = xyes; then :
7285
7286cat >>confdefs.h <<_ACEOF
7287#define HAVE_MODE_T 1
7288_ACEOF
7289
7290
7291fi
7292ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7293if test "x$ac_cv_type_off_t" = xyes; then :
7294
7295cat >>confdefs.h <<_ACEOF
7296#define HAVE_OFF_T 1
7297_ACEOF
7298
7299
7300fi
7301ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7302if test "x$ac_cv_type_size_t" = xyes; then :
7303
7304cat >>confdefs.h <<_ACEOF
7305#define HAVE_SIZE_T 1
7306_ACEOF
7307
7308
7309fi
7310ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7311if test "x$ac_cv_type_pid_t" = xyes; then :
7312
7313cat >>confdefs.h <<_ACEOF
7314#define HAVE_PID_T 1
7315_ACEOF
7316
7317
7318fi
7319ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
7320if test "x$ac_cv_type_id_t" = xyes; then :
7321
7322cat >>confdefs.h <<_ACEOF
7323#define HAVE_ID_T 1
7324_ACEOF
7325
7326
7327fi
7328
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
7330$as_echo_n "checking type of array argument to getgroups... " >&6; }
7331if ${ac_cv_type_getgroups+:} false; then :
7332  $as_echo_n "(cached) " >&6
7333else
7334  if test "$cross_compiling" = yes; then :
7335  ac_cv_type_getgroups=cross
7336else
7337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338/* end confdefs.h.  */
7339/* Thanks to Mike Rendell for this test.  */
7340$ac_includes_default
7341#define NGID 256
7342#undef MAX
7343#define MAX(x, y) ((x) > (y) ? (x) : (y))
7344
7345int
7346main ()
7347{
7348  gid_t gidset[NGID];
7349  int i, n;
7350  union { gid_t gval; long int lval; }  val;
7351
7352  val.lval = -1;
7353  for (i = 0; i < NGID; i++)
7354    gidset[i] = val.gval;
7355  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7356		 gidset);
7357  /* Exit non-zero if getgroups seems to require an array of ints.  This
7358     happens when gid_t is short int but getgroups modifies an array
7359     of ints.  */
7360  return n > 0 && gidset[n] != val.gval;
7361}
7362_ACEOF
7363if ac_fn_c_try_run "$LINENO"; then :
7364  ac_cv_type_getgroups=gid_t
7365else
7366  ac_cv_type_getgroups=int
7367fi
7368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7369  conftest.$ac_objext conftest.beam conftest.$ac_ext
7370fi
7371
7372if test $ac_cv_type_getgroups = cross; then
7373        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374/* end confdefs.h.  */
7375#include <unistd.h>
7376
7377_ACEOF
7378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7379  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
7380  ac_cv_type_getgroups=gid_t
7381else
7382  ac_cv_type_getgroups=int
7383fi
7384rm -f conftest*
7385
7386fi
7387fi
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
7389$as_echo "$ac_cv_type_getgroups" >&6; }
7390
7391cat >>confdefs.h <<_ACEOF
7392#define GETGROUPS_T $ac_cv_type_getgroups
7393_ACEOF
7394
7395
7396ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "
7397#ifdef HAVE_SYS_TYPES_H
7398#include <sys/types.h>
7399#endif
7400#ifdef HAVE_SYS_STAT_H
7401#include <sys/stat.h>
7402#endif
7403#ifdef HAVE_UNISTD_H
7404#include <unistd.h>
7405#endif
7406"
7407if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
7408
7409cat >>confdefs.h <<_ACEOF
7410#define HAVE_STRUCT_STAT_ST_RDEV 1
7411_ACEOF
7412
7413
7414fi
7415ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
7416#ifdef HAVE_SYS_TYPES_H
7417#include <sys/types.h>
7418#endif
7419#ifdef HAVE_SYS_STAT_H
7420#include <sys/stat.h>
7421#endif
7422#ifdef HAVE_UNISTD_H
7423#include <unistd.h>
7424#endif
7425"
7426if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
7427
7428cat >>confdefs.h <<_ACEOF
7429#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
7430_ACEOF
7431
7432
7433fi
7434ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "
7435#ifdef HAVE_SYS_TYPES_H
7436#include <sys/types.h>
7437#endif
7438#ifdef HAVE_SYS_STAT_H
7439#include <sys/stat.h>
7440#endif
7441#ifdef HAVE_UNISTD_H
7442#include <unistd.h>
7443#endif
7444"
7445if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes; then :
7446
7447cat >>confdefs.h <<_ACEOF
7448#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1
7449_ACEOF
7450
7451
7452fi
7453ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
7454#ifdef HAVE_SYS_TYPES_H
7455#include <sys/types.h>
7456#endif
7457#ifdef HAVE_SYS_STAT_H
7458#include <sys/stat.h>
7459#endif
7460#ifdef HAVE_UNISTD_H
7461#include <unistd.h>
7462#endif
7463"
7464if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
7465
7466cat >>confdefs.h <<_ACEOF
7467#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
7468_ACEOF
7469
7470
7471fi
7472
7473
7474
7475   ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
7476#include <sys/socket.h>
7477"
7478if test "x$ac_cv_type_socklen_t" = xyes; then :
7479
7480else
7481
7482      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
7483$as_echo_n "checking for socklen_t equivalent... " >&6; }
7484      if ${rsync_cv_socklen_t_equiv+:} false; then :
7485  $as_echo_n "(cached) " >&6
7486else
7487
7488         # Systems have either "struct sockaddr *" or
7489         # "void *" as the second argument to getpeername
7490         rsync_cv_socklen_t_equiv=
7491         for arg2 in "struct sockaddr" void; do
7492            for t in int size_t unsigned long "unsigned long"; do
7493               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494/* end confdefs.h.  */
7495
7496#include <sys/types.h>
7497#include <sys/socket.h>
7498
7499                  int getpeername (int, $arg2 *, $t *);
7500
7501int
7502main ()
7503{
7504
7505                  $t len;
7506                  getpeername(0,0,&len);
7507
7508  ;
7509  return 0;
7510}
7511_ACEOF
7512if ac_fn_c_try_compile "$LINENO"; then :
7513
7514                  rsync_cv_socklen_t_equiv="$t"
7515                  break
7516
7517fi
7518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7519            done
7520         done
7521
7522         if test "x$rsync_cv_socklen_t_equiv" = x; then
7523            as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
7524         fi
7525
7526fi
7527
7528      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_socklen_t_equiv" >&5
7529$as_echo "$rsync_cv_socklen_t_equiv" >&6; }
7530
7531cat >>confdefs.h <<_ACEOF
7532#define socklen_t $rsync_cv_socklen_t_equiv
7533_ACEOF
7534
7535fi
7536
7537
7538
7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno in errno.h" >&5
7540$as_echo_n "checking for errno in errno.h... " >&6; }
7541if ${rsync_cv_errno+:} false; then :
7542  $as_echo_n "(cached) " >&6
7543else
7544
7545    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546/* end confdefs.h.  */
7547#include <errno.h>
7548int
7549main ()
7550{
7551int i = errno
7552  ;
7553  return 0;
7554}
7555_ACEOF
7556if ac_fn_c_try_compile "$LINENO"; then :
7557  rsync_cv_errno=yes
7558else
7559  rsync_cv_have_errno_decl=no
7560fi
7561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562fi
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_errno" >&5
7564$as_echo "$rsync_cv_errno" >&6; }
7565if test x"$rsync_cv_errno" = x"yes"; then
7566
7567$as_echo "#define HAVE_ERRNO_DECL 1" >>confdefs.h
7568
7569fi
7570
7571# The following test taken from the cvs sources
7572# If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
7573# These need checks to be before checks for any other functions that
7574#    might be in the same libraries.
7575# The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
7576# libsocket.so which has a bad implementation of gethostbyname (it
7577# only looks in /etc/hosts), so we only look for -lsocket if we need
7578# it.
7579for ac_func in connect
7580do :
7581  ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7582if test "x$ac_cv_func_connect" = xyes; then :
7583  cat >>confdefs.h <<_ACEOF
7584#define HAVE_CONNECT 1
7585_ACEOF
7586
7587fi
7588done
7589
7590if test x"$ac_cv_func_connect" = x"no"; then
7591    case "$LIBS" in
7592    *-lnsl*) ;;
7593    *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -lnsl_s" >&5
7594$as_echo_n "checking for printf in -lnsl_s... " >&6; }
7595if ${ac_cv_lib_nsl_s_printf+:} false; then :
7596  $as_echo_n "(cached) " >&6
7597else
7598  ac_check_lib_save_LIBS=$LIBS
7599LIBS="-lnsl_s  $LIBS"
7600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601/* end confdefs.h.  */
7602
7603/* Override any GCC internal prototype to avoid an error.
7604   Use char because int might match the return type of a GCC
7605   builtin and then its argument prototype would still apply.  */
7606#ifdef __cplusplus
7607extern "C"
7608#endif
7609char printf ();
7610int
7611main ()
7612{
7613return printf ();
7614  ;
7615  return 0;
7616}
7617_ACEOF
7618if ac_fn_c_try_link "$LINENO"; then :
7619  ac_cv_lib_nsl_s_printf=yes
7620else
7621  ac_cv_lib_nsl_s_printf=no
7622fi
7623rm -f core conftest.err conftest.$ac_objext \
7624    conftest$ac_exeext conftest.$ac_ext
7625LIBS=$ac_check_lib_save_LIBS
7626fi
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_printf" >&5
7628$as_echo "$ac_cv_lib_nsl_s_printf" >&6; }
7629if test "x$ac_cv_lib_nsl_s_printf" = xyes; then :
7630  cat >>confdefs.h <<_ACEOF
7631#define HAVE_LIBNSL_S 1
7632_ACEOF
7633
7634  LIBS="-lnsl_s $LIBS"
7635
7636fi
7637 ;;
7638    esac
7639    case "$LIBS" in
7640    *-lnsl*) ;;
7641    *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -lnsl" >&5
7642$as_echo_n "checking for printf in -lnsl... " >&6; }
7643if ${ac_cv_lib_nsl_printf+:} false; then :
7644  $as_echo_n "(cached) " >&6
7645else
7646  ac_check_lib_save_LIBS=$LIBS
7647LIBS="-lnsl  $LIBS"
7648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649/* end confdefs.h.  */
7650
7651/* Override any GCC internal prototype to avoid an error.
7652   Use char because int might match the return type of a GCC
7653   builtin and then its argument prototype would still apply.  */
7654#ifdef __cplusplus
7655extern "C"
7656#endif
7657char printf ();
7658int
7659main ()
7660{
7661return printf ();
7662  ;
7663  return 0;
7664}
7665_ACEOF
7666if ac_fn_c_try_link "$LINENO"; then :
7667  ac_cv_lib_nsl_printf=yes
7668else
7669  ac_cv_lib_nsl_printf=no
7670fi
7671rm -f core conftest.err conftest.$ac_objext \
7672    conftest$ac_exeext conftest.$ac_ext
7673LIBS=$ac_check_lib_save_LIBS
7674fi
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_printf" >&5
7676$as_echo "$ac_cv_lib_nsl_printf" >&6; }
7677if test "x$ac_cv_lib_nsl_printf" = xyes; then :
7678  cat >>confdefs.h <<_ACEOF
7679#define HAVE_LIBNSL 1
7680_ACEOF
7681
7682  LIBS="-lnsl $LIBS"
7683
7684fi
7685 ;;
7686    esac
7687    case "$LIBS" in
7688    *-lsocket*) ;;
7689    *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7690$as_echo_n "checking for connect in -lsocket... " >&6; }
7691if ${ac_cv_lib_socket_connect+:} false; then :
7692  $as_echo_n "(cached) " >&6
7693else
7694  ac_check_lib_save_LIBS=$LIBS
7695LIBS="-lsocket  $LIBS"
7696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697/* end confdefs.h.  */
7698
7699/* Override any GCC internal prototype to avoid an error.
7700   Use char because int might match the return type of a GCC
7701   builtin and then its argument prototype would still apply.  */
7702#ifdef __cplusplus
7703extern "C"
7704#endif
7705char connect ();
7706int
7707main ()
7708{
7709return connect ();
7710  ;
7711  return 0;
7712}
7713_ACEOF
7714if ac_fn_c_try_link "$LINENO"; then :
7715  ac_cv_lib_socket_connect=yes
7716else
7717  ac_cv_lib_socket_connect=no
7718fi
7719rm -f core conftest.err conftest.$ac_objext \
7720    conftest$ac_exeext conftest.$ac_ext
7721LIBS=$ac_check_lib_save_LIBS
7722fi
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7724$as_echo "$ac_cv_lib_socket_connect" >&6; }
7725if test "x$ac_cv_lib_socket_connect" = xyes; then :
7726  cat >>confdefs.h <<_ACEOF
7727#define HAVE_LIBSOCKET 1
7728_ACEOF
7729
7730  LIBS="-lsocket $LIBS"
7731
7732fi
7733 ;;
7734    esac
7735    case "$LIBS" in
7736    *-linet*) ;;
7737    *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -linet" >&5
7738$as_echo_n "checking for connect in -linet... " >&6; }
7739if ${ac_cv_lib_inet_connect+:} false; then :
7740  $as_echo_n "(cached) " >&6
7741else
7742  ac_check_lib_save_LIBS=$LIBS
7743LIBS="-linet  $LIBS"
7744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745/* end confdefs.h.  */
7746
7747/* Override any GCC internal prototype to avoid an error.
7748   Use char because int might match the return type of a GCC
7749   builtin and then its argument prototype would still apply.  */
7750#ifdef __cplusplus
7751extern "C"
7752#endif
7753char connect ();
7754int
7755main ()
7756{
7757return connect ();
7758  ;
7759  return 0;
7760}
7761_ACEOF
7762if ac_fn_c_try_link "$LINENO"; then :
7763  ac_cv_lib_inet_connect=yes
7764else
7765  ac_cv_lib_inet_connect=no
7766fi
7767rm -f core conftest.err conftest.$ac_objext \
7768    conftest$ac_exeext conftest.$ac_ext
7769LIBS=$ac_check_lib_save_LIBS
7770fi
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_connect" >&5
7772$as_echo "$ac_cv_lib_inet_connect" >&6; }
7773if test "x$ac_cv_lib_inet_connect" = xyes; then :
7774  cat >>confdefs.h <<_ACEOF
7775#define HAVE_LIBINET 1
7776_ACEOF
7777
7778  LIBS="-linet $LIBS"
7779
7780fi
7781 ;;
7782    esac
7783            if test x"$ac_cv_lib_socket_connect" = x"yes" ||
7784       test x"$ac_cv_lib_inet_connect" = x"yes"; then
7785        # ac_cv_func_connect=yes
7786        # don't!  it would cause AC_CHECK_FUNC to succeed next time configure is run
7787
7788$as_echo "#define HAVE_CONNECT 1" >>confdefs.h
7789
7790    fi
7791fi
7792
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
7794$as_echo_n "checking for library containing inet_ntop... " >&6; }
7795if ${ac_cv_search_inet_ntop+:} false; then :
7796  $as_echo_n "(cached) " >&6
7797else
7798  ac_func_search_save_LIBS=$LIBS
7799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800/* end confdefs.h.  */
7801
7802/* Override any GCC internal prototype to avoid an error.
7803   Use char because int might match the return type of a GCC
7804   builtin and then its argument prototype would still apply.  */
7805#ifdef __cplusplus
7806extern "C"
7807#endif
7808char inet_ntop ();
7809int
7810main ()
7811{
7812return inet_ntop ();
7813  ;
7814  return 0;
7815}
7816_ACEOF
7817for ac_lib in '' resolv; do
7818  if test -z "$ac_lib"; then
7819    ac_res="none required"
7820  else
7821    ac_res=-l$ac_lib
7822    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7823  fi
7824  if ac_fn_c_try_link "$LINENO"; then :
7825  ac_cv_search_inet_ntop=$ac_res
7826fi
7827rm -f core conftest.err conftest.$ac_objext \
7828    conftest$ac_exeext
7829  if ${ac_cv_search_inet_ntop+:} false; then :
7830  break
7831fi
7832done
7833if ${ac_cv_search_inet_ntop+:} false; then :
7834
7835else
7836  ac_cv_search_inet_ntop=no
7837fi
7838rm conftest.$ac_ext
7839LIBS=$ac_func_search_save_LIBS
7840fi
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
7842$as_echo "$ac_cv_search_inet_ntop" >&6; }
7843ac_res=$ac_cv_search_inet_ntop
7844if test "$ac_res" != no; then :
7845  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7846
7847fi
7848
7849
7850# For OS X, Solaris, HP-UX, etc.: figure out if -liconv is needed.  We'll
7851# accept either iconv_open or libiconv_open, since some include files map
7852# the former to the latter.
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
7854$as_echo_n "checking for library containing iconv_open... " >&6; }
7855if ${ac_cv_search_iconv_open+:} false; then :
7856  $as_echo_n "(cached) " >&6
7857else
7858  ac_func_search_save_LIBS=$LIBS
7859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860/* end confdefs.h.  */
7861
7862/* Override any GCC internal prototype to avoid an error.
7863   Use char because int might match the return type of a GCC
7864   builtin and then its argument prototype would still apply.  */
7865#ifdef __cplusplus
7866extern "C"
7867#endif
7868char iconv_open ();
7869int
7870main ()
7871{
7872return iconv_open ();
7873  ;
7874  return 0;
7875}
7876_ACEOF
7877for ac_lib in '' iconv; do
7878  if test -z "$ac_lib"; then
7879    ac_res="none required"
7880  else
7881    ac_res=-l$ac_lib
7882    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7883  fi
7884  if ac_fn_c_try_link "$LINENO"; then :
7885  ac_cv_search_iconv_open=$ac_res
7886fi
7887rm -f core conftest.err conftest.$ac_objext \
7888    conftest$ac_exeext
7889  if ${ac_cv_search_iconv_open+:} false; then :
7890  break
7891fi
7892done
7893if ${ac_cv_search_iconv_open+:} false; then :
7894
7895else
7896  ac_cv_search_iconv_open=no
7897fi
7898rm conftest.$ac_ext
7899LIBS=$ac_func_search_save_LIBS
7900fi
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
7902$as_echo "$ac_cv_search_iconv_open" >&6; }
7903ac_res=$ac_cv_search_iconv_open
7904if test "$ac_res" != no; then :
7905  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7906
7907fi
7908
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
7910$as_echo_n "checking for library containing libiconv_open... " >&6; }
7911if ${ac_cv_search_libiconv_open+:} false; then :
7912  $as_echo_n "(cached) " >&6
7913else
7914  ac_func_search_save_LIBS=$LIBS
7915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916/* end confdefs.h.  */
7917
7918/* Override any GCC internal prototype to avoid an error.
7919   Use char because int might match the return type of a GCC
7920   builtin and then its argument prototype would still apply.  */
7921#ifdef __cplusplus
7922extern "C"
7923#endif
7924char libiconv_open ();
7925int
7926main ()
7927{
7928return libiconv_open ();
7929  ;
7930  return 0;
7931}
7932_ACEOF
7933for ac_lib in '' iconv; do
7934  if test -z "$ac_lib"; then
7935    ac_res="none required"
7936  else
7937    ac_res=-l$ac_lib
7938    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7939  fi
7940  if ac_fn_c_try_link "$LINENO"; then :
7941  ac_cv_search_libiconv_open=$ac_res
7942fi
7943rm -f core conftest.err conftest.$ac_objext \
7944    conftest$ac_exeext
7945  if ${ac_cv_search_libiconv_open+:} false; then :
7946  break
7947fi
7948done
7949if ${ac_cv_search_libiconv_open+:} false; then :
7950
7951else
7952  ac_cv_search_libiconv_open=no
7953fi
7954rm conftest.$ac_ext
7955LIBS=$ac_func_search_save_LIBS
7956fi
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
7958$as_echo "$ac_cv_search_libiconv_open" >&6; }
7959ac_res=$ac_cv_search_libiconv_open
7960if test "$ac_res" != no; then :
7961  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7962
7963fi
7964
7965
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7967$as_echo_n "checking for iconv declaration... " >&6; }
7968if ${am_cv_proto_iconv+:} false; then :
7969  $as_echo_n "(cached) " >&6
7970else
7971
7972    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973/* end confdefs.h.  */
7974
7975#include <stdlib.h>
7976#include <iconv.h>
7977extern
7978#ifdef __cplusplus
7979"C"
7980#endif
7981#if defined(__STDC__) || defined(__cplusplus)
7982size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7983#else
7984size_t iconv();
7985#endif
7986
7987int
7988main ()
7989{
7990
7991  ;
7992  return 0;
7993}
7994_ACEOF
7995if ac_fn_c_try_compile "$LINENO"; then :
7996  am_cv_proto_iconv_arg1=""
7997else
7998  am_cv_proto_iconv_arg1="const"
7999fi
8000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8002fi
8003
8004    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed 's/( /(/'`
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8006         }$am_cv_proto_iconv" >&5
8007$as_echo "${ac_t:-
8008         }$am_cv_proto_iconv" >&6; }
8009
8010cat >>confdefs.h <<_ACEOF
8011#define ICONV_CONST $am_cv_proto_iconv_arg1
8012_ACEOF
8013
8014
8015
8016ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
8017if test "x$ac_cv_func_inet_ntop" = xyes; then :
8018  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
8019
8020else
8021  case " $LIBOBJS " in
8022  *" inet_ntop.$ac_objext "* ) ;;
8023  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8024 ;;
8025esac
8026
8027fi
8028
8029ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
8030if test "x$ac_cv_func_inet_pton" = xyes; then :
8031  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
8032
8033else
8034  case " $LIBOBJS " in
8035  *" inet_pton.$ac_objext "* ) ;;
8036  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8037 ;;
8038esac
8039
8040fi
8041
8042
8043
8044
8045
8046cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
8048$as_echo_n "checking for struct addrinfo... " >&6; }
8049if eval \${ac_cv_type_$cv+:} false; then :
8050  $as_echo_n "(cached) " >&6
8051else
8052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053/* end confdefs.h.  */
8054
8055$ac_includes_default
8056#include <netdb.h>
8057int
8058main ()
8059{
8060struct addrinfo foo;
8061  ;
8062  return 0;
8063}
8064_ACEOF
8065if ac_fn_c_try_compile "$LINENO"; then :
8066  eval "ac_cv_type_$cv=yes"
8067else
8068  eval "ac_cv_type_$cv=no"
8069fi
8070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071fi
8072ac_foo=`eval echo \\$ac_cv_type_$cv`
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
8074$as_echo "$ac_foo" >&6; }
8075if test "$ac_foo" = yes; then
8076  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
8077if false; then
8078	ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "$ac_includes_default"
8079if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
8080
8081cat >>confdefs.h <<_ACEOF
8082#define HAVE_STRUCT_ADDRINFO 1
8083_ACEOF
8084
8085
8086fi
8087
8088fi
8089
8090cat >>confdefs.h <<_ACEOF
8091#define $ac_tr_hdr 1
8092_ACEOF
8093
8094fi
8095
8096
8097
8098cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
8100$as_echo_n "checking for struct sockaddr_storage... " >&6; }
8101if eval \${ac_cv_type_$cv+:} false; then :
8102  $as_echo_n "(cached) " >&6
8103else
8104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105/* end confdefs.h.  */
8106
8107$ac_includes_default
8108#include <sys/types.h>
8109#include <sys/socket.h>
8110int
8111main ()
8112{
8113struct sockaddr_storage foo;
8114  ;
8115  return 0;
8116}
8117_ACEOF
8118if ac_fn_c_try_compile "$LINENO"; then :
8119  eval "ac_cv_type_$cv=yes"
8120else
8121  eval "ac_cv_type_$cv=no"
8122fi
8123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124fi
8125ac_foo=`eval echo \\$ac_cv_type_$cv`
8126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
8127$as_echo "$ac_foo" >&6; }
8128if test "$ac_foo" = yes; then
8129  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
8130if false; then
8131	ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default"
8132if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
8133
8134cat >>confdefs.h <<_ACEOF
8135#define HAVE_STRUCT_SOCKADDR_STORAGE 1
8136_ACEOF
8137
8138
8139fi
8140
8141fi
8142
8143cat >>confdefs.h <<_ACEOF
8144#define $ac_tr_hdr 1
8145_ACEOF
8146
8147fi
8148
8149
8150# Irix 6.5 has getaddrinfo but not the corresponding defines, so use
8151#   builtin getaddrinfo if one of the defines don't exist
8152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether defines needed by getaddrinfo exist" >&5
8153$as_echo_n "checking whether defines needed by getaddrinfo exist... " >&6; }
8154if ${rsync_cv_HAVE_GETADDR_DEFINES+:} false; then :
8155  $as_echo_n "(cached) " >&6
8156else
8157
8158			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159/* end confdefs.h.  */
8160
8161			#include <sys/types.h>
8162			#include <sys/socket.h>
8163			#include <netdb.h>
8164			#ifdef AI_PASSIVE
8165			yes
8166			#endif
8167_ACEOF
8168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8169  $EGREP "yes" >/dev/null 2>&1; then :
8170  rsync_cv_HAVE_GETADDR_DEFINES=yes
8171else
8172  rsync_cv_HAVE_GETADDR_DEFINES=no
8173fi
8174rm -f conftest*
8175
8176fi
8177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_GETADDR_DEFINES" >&5
8178$as_echo "$rsync_cv_HAVE_GETADDR_DEFINES" >&6; }
8179if test x"$rsync_cv_HAVE_GETADDR_DEFINES" = x"yes" -a x"$ac_cv_type_struct_addrinfo" = x"yes"; then :
8180
8181	# Tru64 UNIX has getaddrinfo() but has it renamed in libc as
8182	# something else so we must include <netdb.h> to get the
8183	# redefinition.
8184	for ac_func in getaddrinfo
8185do :
8186  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
8187if test "x$ac_cv_func_getaddrinfo" = xyes; then :
8188  cat >>confdefs.h <<_ACEOF
8189#define HAVE_GETADDRINFO 1
8190_ACEOF
8191
8192else
8193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo by including <netdb.h>" >&5
8194$as_echo_n "checking for getaddrinfo by including <netdb.h>... " >&6; }
8195		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196/* end confdefs.h.  */
8197#include <sys/types.h>
8198		#include <sys/socket.h>
8199		#include <netdb.h>
8200int
8201main ()
8202{
8203getaddrinfo(NULL, NULL, NULL, NULL);
8204  ;
8205  return 0;
8206}
8207_ACEOF
8208if ac_fn_c_try_link "$LINENO"; then :
8209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8210$as_echo "yes" >&6; }
8211
8212$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
8213
8214else
8215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216$as_echo "no" >&6; }
8217			case " $LIBOBJS " in
8218  *" getaddrinfo.$ac_objext "* ) ;;
8219  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
8220 ;;
8221esac
8222
8223fi
8224rm -f core conftest.err conftest.$ac_objext \
8225    conftest$ac_exeext conftest.$ac_ext
8226fi
8227done
8228
8229
8230else
8231  case " $LIBOBJS " in
8232  *" getaddrinfo.$ac_objext "* ) ;;
8233  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
8234 ;;
8235esac
8236
8237fi
8238
8239ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
8240#include <sys/types.h>
8241#include <sys/socket.h>
8242
8243"
8244if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
8245
8246$as_echo "#define HAVE_SOCKADDR_LEN 1" >>confdefs.h
8247
8248fi
8249
8250
8251ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
8252#include <sys/types.h>
8253#include <sys/socket.h>
8254#include <netinet/in.h>
8255
8256"
8257if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
8258
8259$as_echo "#define HAVE_SOCKADDR_IN_LEN 1" >>confdefs.h
8260
8261fi
8262
8263
8264ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
8265#include <sys/types.h>
8266#include <sys/socket.h>
8267#include <netinet/in.h>
8268
8269"
8270if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
8271
8272$as_echo "#define HAVE_SOCKADDR_UN_LEN 1" >>confdefs.h
8273
8274fi
8275
8276
8277ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
8278#include <sys/types.h>
8279#include <sys/socket.h>
8280#include <netinet/in.h>
8281
8282"
8283if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
8284
8285$as_echo "#define HAVE_SOCKADDR_IN6_SCOPE_ID 1" >>confdefs.h
8286
8287fi
8288
8289
8290
8291
8292cv=`echo "struct stat64" | sed 'y%./+- %__p__%'`
8293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
8294$as_echo_n "checking for struct stat64... " >&6; }
8295if eval \${ac_cv_type_$cv+:} false; then :
8296  $as_echo_n "(cached) " >&6
8297else
8298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299/* end confdefs.h.  */
8300
8301$ac_includes_default
8302#include <stdio.h>
8303#if HAVE_SYS_TYPES_H
8304# include <sys/types.h>
8305#endif
8306#if HAVE_SYS_STAT_H
8307# include <sys/stat.h>
8308#endif
8309#if STDC_HEADERS
8310# include <stdlib.h>
8311# include <stddef.h>
8312#else
8313# if HAVE_STDLIB_H
8314#  include <stdlib.h>
8315# endif
8316#endif
8317
8318int
8319main ()
8320{
8321struct stat64 foo;
8322  ;
8323  return 0;
8324}
8325_ACEOF
8326if ac_fn_c_try_compile "$LINENO"; then :
8327  eval "ac_cv_type_$cv=yes"
8328else
8329  eval "ac_cv_type_$cv=no"
8330fi
8331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332fi
8333ac_foo=`eval echo \\$ac_cv_type_$cv`
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
8335$as_echo "$ac_foo" >&6; }
8336if test "$ac_foo" = yes; then
8337  ac_tr_hdr=HAVE_`echo struct stat64 | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
8338if false; then
8339	ac_fn_c_check_type "$LINENO" "struct stat64" "ac_cv_type_struct_stat64" "$ac_includes_default"
8340if test "x$ac_cv_type_struct_stat64" = xyes; then :
8341
8342cat >>confdefs.h <<_ACEOF
8343#define HAVE_STRUCT_STAT64 1
8344_ACEOF
8345
8346
8347fi
8348
8349fi
8350
8351cat >>confdefs.h <<_ACEOF
8352#define $ac_tr_hdr 1
8353_ACEOF
8354
8355fi
8356
8357
8358# if we can't find strcasecmp, look in -lresolv (for Unixware at least)
8359#
8360for ac_func in strcasecmp
8361do :
8362  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8363if test "x$ac_cv_func_strcasecmp" = xyes; then :
8364  cat >>confdefs.h <<_ACEOF
8365#define HAVE_STRCASECMP 1
8366_ACEOF
8367
8368fi
8369done
8370
8371if test x"$ac_cv_func_strcasecmp" = x"no"; then
8372    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8373$as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8374if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
8375  $as_echo_n "(cached) " >&6
8376else
8377  ac_check_lib_save_LIBS=$LIBS
8378LIBS="-lresolv  $LIBS"
8379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380/* end confdefs.h.  */
8381
8382/* Override any GCC internal prototype to avoid an error.
8383   Use char because int might match the return type of a GCC
8384   builtin and then its argument prototype would still apply.  */
8385#ifdef __cplusplus
8386extern "C"
8387#endif
8388char strcasecmp ();
8389int
8390main ()
8391{
8392return strcasecmp ();
8393  ;
8394  return 0;
8395}
8396_ACEOF
8397if ac_fn_c_try_link "$LINENO"; then :
8398  ac_cv_lib_resolv_strcasecmp=yes
8399else
8400  ac_cv_lib_resolv_strcasecmp=no
8401fi
8402rm -f core conftest.err conftest.$ac_objext \
8403    conftest$ac_exeext conftest.$ac_ext
8404LIBS=$ac_check_lib_save_LIBS
8405fi
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8407$as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8408if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
8409  cat >>confdefs.h <<_ACEOF
8410#define HAVE_LIBRESOLV 1
8411_ACEOF
8412
8413  LIBS="-lresolv $LIBS"
8414
8415fi
8416
8417fi
8418
8419for ac_func in aclsort
8420do :
8421  ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
8422if test "x$ac_cv_func_aclsort" = xyes; then :
8423  cat >>confdefs.h <<_ACEOF
8424#define HAVE_ACLSORT 1
8425_ACEOF
8426
8427fi
8428done
8429
8430if test x"$ac_cv_func_aclsort" = x"no"; then
8431    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aclsort in -lsec" >&5
8432$as_echo_n "checking for aclsort in -lsec... " >&6; }
8433if ${ac_cv_lib_sec_aclsort+:} false; then :
8434  $as_echo_n "(cached) " >&6
8435else
8436  ac_check_lib_save_LIBS=$LIBS
8437LIBS="-lsec  $LIBS"
8438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439/* end confdefs.h.  */
8440
8441/* Override any GCC internal prototype to avoid an error.
8442   Use char because int might match the return type of a GCC
8443   builtin and then its argument prototype would still apply.  */
8444#ifdef __cplusplus
8445extern "C"
8446#endif
8447char aclsort ();
8448int
8449main ()
8450{
8451return aclsort ();
8452  ;
8453  return 0;
8454}
8455_ACEOF
8456if ac_fn_c_try_link "$LINENO"; then :
8457  ac_cv_lib_sec_aclsort=yes
8458else
8459  ac_cv_lib_sec_aclsort=no
8460fi
8461rm -f core conftest.err conftest.$ac_objext \
8462    conftest$ac_exeext conftest.$ac_ext
8463LIBS=$ac_check_lib_save_LIBS
8464fi
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_aclsort" >&5
8466$as_echo "$ac_cv_lib_sec_aclsort" >&6; }
8467if test "x$ac_cv_lib_sec_aclsort" = xyes; then :
8468  cat >>confdefs.h <<_ACEOF
8469#define HAVE_LIBSEC 1
8470_ACEOF
8471
8472  LIBS="-lsec $LIBS"
8473
8474fi
8475
8476fi
8477
8478
8479
8480
8481
8482  for ac_header in $ac_header_list
8483do :
8484  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8485ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8486"
8487if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8488  cat >>confdefs.h <<_ACEOF
8489#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8490_ACEOF
8491
8492fi
8493
8494done
8495
8496
8497
8498
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
8500$as_echo_n "checking whether utime accepts a null argument... " >&6; }
8501if ${ac_cv_func_utime_null+:} false; then :
8502  $as_echo_n "(cached) " >&6
8503else
8504  rm -f conftest.data; >conftest.data
8505# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
8506if test "$cross_compiling" = yes; then :
8507  ac_cv_func_utime_null='guessing yes'
8508else
8509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510/* end confdefs.h.  */
8511$ac_includes_default
8512	       #ifdef HAVE_UTIME_H
8513	       # include <utime.h>
8514	       #endif
8515int
8516main ()
8517{
8518struct stat s, t;
8519  return ! (stat ("conftest.data", &s) == 0
8520	    && utime ("conftest.data", 0) == 0
8521	    && stat ("conftest.data", &t) == 0
8522	    && t.st_mtime >= s.st_mtime
8523	    && t.st_mtime - s.st_mtime < 120);
8524  ;
8525  return 0;
8526}
8527_ACEOF
8528if ac_fn_c_try_run "$LINENO"; then :
8529  ac_cv_func_utime_null=yes
8530else
8531  ac_cv_func_utime_null=no
8532fi
8533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8534  conftest.$ac_objext conftest.beam conftest.$ac_ext
8535fi
8536
8537fi
8538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
8539$as_echo "$ac_cv_func_utime_null" >&6; }
8540if test "x$ac_cv_func_utime_null" != xno; then
8541  ac_cv_func_utime_null=yes
8542
8543$as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
8544
8545fi
8546rm -f conftest.data
8547
8548ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8549if test "x$ac_cv_type_size_t" = xyes; then :
8550
8551else
8552
8553cat >>confdefs.h <<_ACEOF
8554#define size_t unsigned int
8555_ACEOF
8556
8557fi
8558
8559# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8560# for constant arguments.  Useless!
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8562$as_echo_n "checking for working alloca.h... " >&6; }
8563if ${ac_cv_working_alloca_h+:} false; then :
8564  $as_echo_n "(cached) " >&6
8565else
8566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567/* end confdefs.h.  */
8568#include <alloca.h>
8569int
8570main ()
8571{
8572char *p = (char *) alloca (2 * sizeof (int));
8573			  if (p) return 0;
8574  ;
8575  return 0;
8576}
8577_ACEOF
8578if ac_fn_c_try_link "$LINENO"; then :
8579  ac_cv_working_alloca_h=yes
8580else
8581  ac_cv_working_alloca_h=no
8582fi
8583rm -f core conftest.err conftest.$ac_objext \
8584    conftest$ac_exeext conftest.$ac_ext
8585fi
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8587$as_echo "$ac_cv_working_alloca_h" >&6; }
8588if test $ac_cv_working_alloca_h = yes; then
8589
8590$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8591
8592fi
8593
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8595$as_echo_n "checking for alloca... " >&6; }
8596if ${ac_cv_func_alloca_works+:} false; then :
8597  $as_echo_n "(cached) " >&6
8598else
8599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600/* end confdefs.h.  */
8601#ifdef __GNUC__
8602# define alloca __builtin_alloca
8603#else
8604# ifdef _MSC_VER
8605#  include <malloc.h>
8606#  define alloca _alloca
8607# else
8608#  ifdef HAVE_ALLOCA_H
8609#   include <alloca.h>
8610#  else
8611#   ifdef _AIX
8612 #pragma alloca
8613#   else
8614#    ifndef alloca /* predefined by HP cc +Olibcalls */
8615void *alloca (size_t);
8616#    endif
8617#   endif
8618#  endif
8619# endif
8620#endif
8621
8622int
8623main ()
8624{
8625char *p = (char *) alloca (1);
8626				    if (p) return 0;
8627  ;
8628  return 0;
8629}
8630_ACEOF
8631if ac_fn_c_try_link "$LINENO"; then :
8632  ac_cv_func_alloca_works=yes
8633else
8634  ac_cv_func_alloca_works=no
8635fi
8636rm -f core conftest.err conftest.$ac_objext \
8637    conftest$ac_exeext conftest.$ac_ext
8638fi
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8640$as_echo "$ac_cv_func_alloca_works" >&6; }
8641
8642if test $ac_cv_func_alloca_works = yes; then
8643
8644$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8645
8646else
8647  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8648# that cause trouble.  Some versions do not even contain alloca or
8649# contain a buggy version.  If you still want to use their alloca,
8650# use ar to extract alloca.o from them instead of compiling alloca.c.
8651
8652ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8653
8654$as_echo "#define C_ALLOCA 1" >>confdefs.h
8655
8656
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8658$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8659if ${ac_cv_os_cray+:} false; then :
8660  $as_echo_n "(cached) " >&6
8661else
8662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663/* end confdefs.h.  */
8664#if defined CRAY && ! defined CRAY2
8665webecray
8666#else
8667wenotbecray
8668#endif
8669
8670_ACEOF
8671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8672  $EGREP "webecray" >/dev/null 2>&1; then :
8673  ac_cv_os_cray=yes
8674else
8675  ac_cv_os_cray=no
8676fi
8677rm -f conftest*
8678
8679fi
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8681$as_echo "$ac_cv_os_cray" >&6; }
8682if test $ac_cv_os_cray = yes; then
8683  for ac_func in _getb67 GETB67 getb67; do
8684    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8685ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8686if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8687
8688cat >>confdefs.h <<_ACEOF
8689#define CRAY_STACKSEG_END $ac_func
8690_ACEOF
8691
8692    break
8693fi
8694
8695  done
8696fi
8697
8698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8699$as_echo_n "checking stack direction for C alloca... " >&6; }
8700if ${ac_cv_c_stack_direction+:} false; then :
8701  $as_echo_n "(cached) " >&6
8702else
8703  if test "$cross_compiling" = yes; then :
8704  ac_cv_c_stack_direction=0
8705else
8706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707/* end confdefs.h.  */
8708$ac_includes_default
8709int
8710find_stack_direction (int *addr, int depth)
8711{
8712  int dir, dummy = 0;
8713  if (! addr)
8714    addr = &dummy;
8715  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8716  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8717  return dir + dummy;
8718}
8719
8720int
8721main (int argc, char **argv)
8722{
8723  return find_stack_direction (0, argc + !argv + 20) < 0;
8724}
8725_ACEOF
8726if ac_fn_c_try_run "$LINENO"; then :
8727  ac_cv_c_stack_direction=1
8728else
8729  ac_cv_c_stack_direction=-1
8730fi
8731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8732  conftest.$ac_objext conftest.beam conftest.$ac_ext
8733fi
8734
8735fi
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8737$as_echo "$ac_cv_c_stack_direction" >&6; }
8738cat >>confdefs.h <<_ACEOF
8739#define STACK_DIRECTION $ac_cv_c_stack_direction
8740_ACEOF
8741
8742
8743fi
8744
8745for ac_func in waitpid wait4 getcwd chown chmod lchmod mknod mkfifo \
8746    fchmod fstat ftruncate strchr readlink link utime utimes lutimes strftime \
8747    chflags getattrlist mktime innetgr linkat \
8748    memmove lchown vsnprintf snprintf vasprintf asprintf setsid strpbrk \
8749    strlcat strlcpy strtol mallinfo getgroups setgroups geteuid getegid \
8750    setlocale setmode open64 lseek64 mkstemp64 mtrace va_copy __va_copy \
8751    seteuid strerror putenv iconv_open locale_charset nl_langinfo getxattr \
8752    extattr_get_link sigaction sigprocmask setattrlist getgrouplist \
8753    initgroups utimensat posix_fallocate attropen setvbuf nanosleep usleep
8754do :
8755  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8756ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8757if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8758  cat >>confdefs.h <<_ACEOF
8759#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8760_ACEOF
8761
8762fi
8763done
8764
8765
8766if test x"$ac_cv_func_iconv_open" != x"yes"; then
8767    ac_fn_c_check_func "$LINENO" "libiconv_open" "ac_cv_func_libiconv_open"
8768if test "x$ac_cv_func_libiconv_open" = xyes; then :
8769  ac_cv_func_iconv_open=yes; $as_echo "#define HAVE_ICONV_OPEN 1" >>confdefs.h
8770
8771fi
8772
8773fi
8774
8775
8776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for useable fallocate" >&5
8777$as_echo_n "checking for useable fallocate... " >&6; }
8778if ${rsync_cv_have_fallocate+:} false; then :
8779  $as_echo_n "(cached) " >&6
8780else
8781
8782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783/* end confdefs.h.  */
8784#include <fcntl.h>
8785#include <sys/types.h>
8786int
8787main ()
8788{
8789fallocate(0, 0, 0, 0);
8790  ;
8791  return 0;
8792}
8793_ACEOF
8794if ac_fn_c_try_link "$LINENO"; then :
8795  rsync_cv_have_fallocate=yes
8796else
8797  rsync_cv_have_fallocate=no
8798fi
8799rm -f core conftest.err conftest.$ac_objext \
8800    conftest$ac_exeext conftest.$ac_ext
8801fi
8802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_have_fallocate" >&5
8803$as_echo "$rsync_cv_have_fallocate" >&6; }
8804if test x"$rsync_cv_have_fallocate" = x"yes"; then
8805
8806$as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
8807
8808fi
8809
8810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FALLOC_FL_PUNCH_HOLE" >&5
8811$as_echo_n "checking for FALLOC_FL_PUNCH_HOLE... " >&6; }
8812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813/* end confdefs.h.  */
8814
8815        #define _GNU_SOURCE 1
8816        #include <linux/falloc.h>
8817        #ifndef FALLOC_FL_PUNCH_HOLE
8818        #error FALLOC_FL_PUNCH_HOLE is missing
8819        #endif
8820
8821_ACEOF
8822if ac_fn_c_try_cpp "$LINENO"; then :
8823
8824        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8825$as_echo "yes" >&6; }
8826
8827$as_echo "#define HAVE_FALLOC_FL_PUNCH_HOLE 1" >>confdefs.h
8828
8829
8830else
8831
8832        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833$as_echo "no" >&6; }
8834
8835
8836fi
8837rm -f conftest.err conftest.i conftest.$ac_ext
8838
8839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FALLOC_FL_ZERO_RANGE" >&5
8840$as_echo_n "checking for FALLOC_FL_ZERO_RANGE... " >&6; }
8841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842/* end confdefs.h.  */
8843
8844        #define _GNU_SOURCE 1
8845        #include <linux/falloc.h>
8846        #ifndef FALLOC_FL_ZERO_RANGE
8847        #error FALLOC_FL_ZERO_RANGE is missing
8848        #endif
8849
8850_ACEOF
8851if ac_fn_c_try_cpp "$LINENO"; then :
8852
8853        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8854$as_echo "yes" >&6; }
8855
8856$as_echo "#define HAVE_FALLOC_FL_ZERO_RANGE 1" >>confdefs.h
8857
8858
8859else
8860
8861        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862$as_echo "no" >&6; }
8863
8864
8865fi
8866rm -f conftest.err conftest.i conftest.$ac_ext
8867
8868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
8869$as_echo_n "checking for SYS_fallocate... " >&6; }
8870if ${rsync_cv_have_sys_fallocate+:} false; then :
8871  $as_echo_n "(cached) " >&6
8872else
8873
8874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875/* end confdefs.h.  */
8876#include <sys/syscall.h>
8877#include <unistd.h>
8878#include <sys/types.h>
8879int
8880main ()
8881{
8882syscall(SYS_fallocate, 0, 0, (loff_t)0, (loff_t)0);
8883  ;
8884  return 0;
8885}
8886_ACEOF
8887if ac_fn_c_try_compile "$LINENO"; then :
8888  rsync_cv_have_sys_fallocate=yes
8889else
8890  rsync_cv_have_sys_fallocate=no
8891fi
8892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8893fi
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_have_sys_fallocate" >&5
8895$as_echo "$rsync_cv_have_sys_fallocate" >&6; }
8896if test x"$rsync_cv_have_sys_fallocate" = x"yes"; then
8897
8898$as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
8899
8900fi
8901
8902if test x"$ac_cv_func_posix_fallocate" = x"yes"; then
8903    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_fallocate is efficient" >&5
8904$as_echo_n "checking whether posix_fallocate is efficient... " >&6; }
8905    case $host_os in
8906    *cygwin*)
8907	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8908$as_echo "yes" >&6; }
8909
8910$as_echo "#define HAVE_EFFICIENT_POSIX_FALLOCATE 1" >>confdefs.h
8911
8912	;;
8913    *)
8914	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915$as_echo "no" >&6; }
8916	;;
8917    esac
8918fi
8919
8920
8921for ac_func in getpgrp tcgetpgrp
8922do :
8923  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8924ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8925if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8926  cat >>confdefs.h <<_ACEOF
8927#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8928_ACEOF
8929
8930fi
8931done
8932
8933if test $ac_cv_func_getpgrp = yes; then
8934    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
8935$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
8936if ${ac_cv_func_getpgrp_void+:} false; then :
8937  $as_echo_n "(cached) " >&6
8938else
8939  # Use it with a single arg.
8940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h.  */
8942$ac_includes_default
8943int
8944main ()
8945{
8946getpgrp (0);
8947  ;
8948  return 0;
8949}
8950_ACEOF
8951if ac_fn_c_try_compile "$LINENO"; then :
8952  ac_cv_func_getpgrp_void=no
8953else
8954  ac_cv_func_getpgrp_void=yes
8955fi
8956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8957
8958fi
8959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
8960$as_echo "$ac_cv_func_getpgrp_void" >&6; }
8961if test $ac_cv_func_getpgrp_void = yes; then
8962
8963$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
8964
8965fi
8966
8967fi
8968
8969# Check whether --enable-iconv-open was given.
8970if test "${enable_iconv_open+set}" = set; then :
8971  enableval=$enable_iconv_open;
8972else
8973  enable_iconv_open=$ac_cv_func_iconv_open
8974fi
8975
8976
8977if test x"$enable_iconv_open" != x"no"; then
8978
8979$as_echo "#define USE_ICONV_OPEN 1" >>confdefs.h
8980
8981fi
8982
8983# Check whether --enable-iconv was given.
8984if test "${enable_iconv+set}" = set; then :
8985  enableval=$enable_iconv;
8986else
8987  enable_iconv=$enable_iconv_open
8988fi
8989
8990
8991if test x"$enable_iconv" != x"no"; then
8992	if test x"$enable_iconv" = x"yes"; then
8993		$as_echo "#define ICONV_OPTION NULL" >>confdefs.h
8994
8995	else
8996		cat >>confdefs.h <<_ACEOF
8997#define ICONV_OPTION "$enable_iconv"
8998_ACEOF
8999
9000	fi
9001
9002$as_echo "#define UTF8_CHARSET \"UTF-8\"" >>confdefs.h
9003
9004fi
9005
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether chown() modifies symlinks" >&5
9007$as_echo_n "checking whether chown() modifies symlinks... " >&6; }
9008if ${rsync_cv_chown_modifies_symlink+:} false; then :
9009  $as_echo_n "(cached) " >&6
9010else
9011
9012  if test "$cross_compiling" = yes; then :
9013  rsync_cv_chown_modifies_symlink=no
9014else
9015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016/* end confdefs.h.  */
9017
9018#if HAVE_UNISTD_H
9019# include <unistd.h>
9020#endif
9021#include <stdlib.h>
9022#include <errno.h>
9023int main(void) {
9024	char const *dangling_symlink = "conftest.dangle";
9025	unlink(dangling_symlink);
9026	if (symlink("conftest.no-such", dangling_symlink) < 0) abort();
9027	if (chown(dangling_symlink, getuid(), getgid()) < 0 && errno == ENOENT) return 1;
9028	return 0;
9029    }
9030_ACEOF
9031if ac_fn_c_try_run "$LINENO"; then :
9032  rsync_cv_chown_modifies_symlink=yes
9033else
9034  rsync_cv_chown_modifies_symlink=no
9035fi
9036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9037  conftest.$ac_objext conftest.beam conftest.$ac_ext
9038fi
9039
9040fi
9041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_chown_modifies_symlink" >&5
9042$as_echo "$rsync_cv_chown_modifies_symlink" >&6; }
9043if test $rsync_cv_chown_modifies_symlink = yes; then
9044
9045$as_echo "#define CHOWN_MODIFIES_SYMLINK 1" >>confdefs.h
9046
9047fi
9048
9049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link() can hard-link symlinks" >&5
9050$as_echo_n "checking whether link() can hard-link symlinks... " >&6; }
9051if ${rsync_cv_can_hardlink_symlink+:} false; then :
9052  $as_echo_n "(cached) " >&6
9053else
9054
9055  if test "$cross_compiling" = yes; then :
9056  rsync_cv_can_hardlink_symlink=no
9057else
9058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059/* end confdefs.h.  */
9060
9061#ifdef HAVE_FCNTL_H
9062# include <fcntl.h>
9063#elif defined HAVE_SYS_FCNTL_H
9064# include <sys/fcntl.h>
9065#endif
9066#if HAVE_UNISTD_H
9067# include <unistd.h>
9068#endif
9069#include <stdlib.h>
9070#include <errno.h>
9071#define FILENAME "conftest.dangle"
9072int main(void) {
9073	unlink(FILENAME);
9074	if (symlink("conftest.no-such", FILENAME) < 0) abort();
9075	unlink(FILENAME "2");
9076#ifdef HAVE_LINKAT
9077	if (linkat(AT_FDCWD, FILENAME, AT_FDCWD, FILENAME "2", 0) < 0) return 1;
9078#else
9079	if (link(FILENAME, FILENAME "2") < 0) return 1;
9080#endif
9081	return 0;
9082    }
9083_ACEOF
9084if ac_fn_c_try_run "$LINENO"; then :
9085  rsync_cv_can_hardlink_symlink=yes
9086else
9087  rsync_cv_can_hardlink_symlink=no
9088fi
9089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9090  conftest.$ac_objext conftest.beam conftest.$ac_ext
9091fi
9092
9093fi
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_can_hardlink_symlink" >&5
9095$as_echo "$rsync_cv_can_hardlink_symlink" >&6; }
9096if test $rsync_cv_can_hardlink_symlink = yes; then
9097
9098$as_echo "#define CAN_HARDLINK_SYMLINK 1" >>confdefs.h
9099
9100fi
9101
9102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link() can hard-link special files" >&5
9103$as_echo_n "checking whether link() can hard-link special files... " >&6; }
9104if ${rsync_cv_can_hardlink_special+:} false; then :
9105  $as_echo_n "(cached) " >&6
9106else
9107
9108  if test "$cross_compiling" = yes; then :
9109  rsync_cv_can_hardlink_special=no
9110else
9111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112/* end confdefs.h.  */
9113
9114#if HAVE_UNISTD_H
9115# include <unistd.h>
9116#endif
9117#ifdef HAVE_SYS_STAT_H
9118#include <sys/stat.h>
9119#endif
9120#include <stdlib.h>
9121#include <errno.h>
9122#define FILENAME "conftest.fifi"
9123int main(void) {
9124	unlink(FILENAME);
9125	if (mkfifo(FILENAME, 0777) < 0) abort();
9126	unlink(FILENAME "2");
9127	if (link(FILENAME, FILENAME "2") < 0) return 1;
9128	return 0;
9129    }
9130_ACEOF
9131if ac_fn_c_try_run "$LINENO"; then :
9132  rsync_cv_can_hardlink_special=yes
9133else
9134  rsync_cv_can_hardlink_special=no
9135fi
9136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9137  conftest.$ac_objext conftest.beam conftest.$ac_ext
9138fi
9139
9140fi
9141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_can_hardlink_special" >&5
9142$as_echo "$rsync_cv_can_hardlink_special" >&6; }
9143if test $rsync_cv_can_hardlink_special = yes; then
9144
9145$as_echo "#define CAN_HARDLINK_SPECIAL 1" >>confdefs.h
9146
9147fi
9148
9149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working socketpair" >&5
9150$as_echo_n "checking for working socketpair... " >&6; }
9151if ${rsync_cv_HAVE_SOCKETPAIR+:} false; then :
9152  $as_echo_n "(cached) " >&6
9153else
9154
9155if test "$cross_compiling" = yes; then :
9156  rsync_cv_HAVE_SOCKETPAIR=cross
9157else
9158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159/* end confdefs.h.  */
9160
9161#include <sys/types.h>
9162#include <sys/socket.h>
9163
9164int main(void) {
9165       int fd[2];
9166       return (socketpair(AF_UNIX, SOCK_STREAM, 0, fd) != -1) ? 0 : 1;
9167}
9168_ACEOF
9169if ac_fn_c_try_run "$LINENO"; then :
9170  rsync_cv_HAVE_SOCKETPAIR=yes
9171else
9172  rsync_cv_HAVE_SOCKETPAIR=no
9173fi
9174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9175  conftest.$ac_objext conftest.beam conftest.$ac_ext
9176fi
9177
9178fi
9179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_SOCKETPAIR" >&5
9180$as_echo "$rsync_cv_HAVE_SOCKETPAIR" >&6; }
9181if test x"$rsync_cv_HAVE_SOCKETPAIR" = x"yes"; then
9182
9183$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
9184
9185fi
9186
9187ac_fn_c_check_func "$LINENO" "getpass" "ac_cv_func_getpass"
9188if test "x$ac_cv_func_getpass" = xyes; then :
9189  $as_echo "#define HAVE_GETPASS 1" >>confdefs.h
9190
9191else
9192  case " $LIBOBJS " in
9193  *" getpass.$ac_objext "* ) ;;
9194  *) LIBOBJS="$LIBOBJS getpass.$ac_objext"
9195 ;;
9196esac
9197
9198fi
9199
9200
9201
9202if test x"$with_included_popt" != x"yes"; then
9203    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5
9204$as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
9205if ${ac_cv_lib_popt_poptGetContext+:} false; then :
9206  $as_echo_n "(cached) " >&6
9207else
9208  ac_check_lib_save_LIBS=$LIBS
9209LIBS="-lpopt  $LIBS"
9210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211/* end confdefs.h.  */
9212
9213/* Override any GCC internal prototype to avoid an error.
9214   Use char because int might match the return type of a GCC
9215   builtin and then its argument prototype would still apply.  */
9216#ifdef __cplusplus
9217extern "C"
9218#endif
9219char poptGetContext ();
9220int
9221main ()
9222{
9223return poptGetContext ();
9224  ;
9225  return 0;
9226}
9227_ACEOF
9228if ac_fn_c_try_link "$LINENO"; then :
9229  ac_cv_lib_popt_poptGetContext=yes
9230else
9231  ac_cv_lib_popt_poptGetContext=no
9232fi
9233rm -f core conftest.err conftest.$ac_objext \
9234    conftest$ac_exeext conftest.$ac_ext
9235LIBS=$ac_check_lib_save_LIBS
9236fi
9237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5
9238$as_echo "$ac_cv_lib_popt_poptGetContext" >&6; }
9239if test "x$ac_cv_lib_popt_poptGetContext" = xyes; then :
9240  cat >>confdefs.h <<_ACEOF
9241#define HAVE_LIBPOPT 1
9242_ACEOF
9243
9244  LIBS="-lpopt $LIBS"
9245
9246else
9247  with_included_popt=yes
9248fi
9249
9250fi
9251if test x"$ac_cv_header_popt_popt_h" = x"yes"; then
9252    # If the system has /usr/include/popt/popt.h, we enable the
9253    # included popt because an attempt to "#include <popt/popt.h>"
9254    # would use our included header file anyway (due to -I.), and
9255    # might conflict with the system popt.
9256    with_included_popt=yes
9257elif test x"$ac_cv_header_popt_h" != x"yes"; then
9258    with_included_popt=yes
9259fi
9260
9261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use included libpopt" >&5
9262$as_echo_n "checking whether to use included libpopt... " >&6; }
9263if test x"$with_included_popt" = x"yes"; then
9264    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $srcdir/popt" >&5
9265$as_echo "$srcdir/popt" >&6; }
9266    BUILD_POPT='$(popt_OBJS)'
9267    CFLAGS="-I$srcdir/popt $CFLAGS"
9268    if test x"$ALLOCA" != x
9269    then
9270	# this can be removed when/if we add an included alloca.c;
9271	#  see autoconf documentation on AC_FUNC_ALLOCA
9272	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: included libpopt will use malloc, not alloca (which wastes a small amount of memory)" >&5
9273$as_echo "$as_me: WARNING: included libpopt will use malloc, not alloca (which wastes a small amount of memory)" >&2;}
9274    fi
9275else
9276    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9277$as_echo "no" >&6; }
9278fi
9279
9280# We default to using our zlib unless --with-included-zlib=no is given.
9281if test x"$with_included_zlib" != x"no"; then
9282    with_included_zlib=yes
9283elif test x"$ac_cv_header_zlib_h" != x"yes"; then
9284    with_included_zlib=yes
9285fi
9286if test x"$with_included_zlib" != x"yes"; then
9287    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateParams in -lz" >&5
9288$as_echo_n "checking for deflateParams in -lz... " >&6; }
9289if ${ac_cv_lib_z_deflateParams+:} false; then :
9290  $as_echo_n "(cached) " >&6
9291else
9292  ac_check_lib_save_LIBS=$LIBS
9293LIBS="-lz  $LIBS"
9294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295/* end confdefs.h.  */
9296
9297/* Override any GCC internal prototype to avoid an error.
9298   Use char because int might match the return type of a GCC
9299   builtin and then its argument prototype would still apply.  */
9300#ifdef __cplusplus
9301extern "C"
9302#endif
9303char deflateParams ();
9304int
9305main ()
9306{
9307return deflateParams ();
9308  ;
9309  return 0;
9310}
9311_ACEOF
9312if ac_fn_c_try_link "$LINENO"; then :
9313  ac_cv_lib_z_deflateParams=yes
9314else
9315  ac_cv_lib_z_deflateParams=no
9316fi
9317rm -f core conftest.err conftest.$ac_objext \
9318    conftest$ac_exeext conftest.$ac_ext
9319LIBS=$ac_check_lib_save_LIBS
9320fi
9321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateParams" >&5
9322$as_echo "$ac_cv_lib_z_deflateParams" >&6; }
9323if test "x$ac_cv_lib_z_deflateParams" = xyes; then :
9324  cat >>confdefs.h <<_ACEOF
9325#define HAVE_LIBZ 1
9326_ACEOF
9327
9328  LIBS="-lz $LIBS"
9329
9330else
9331  with_included_zlib=yes
9332fi
9333
9334fi
9335
9336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use included zlib" >&5
9337$as_echo_n "checking whether to use included zlib... " >&6; }
9338if test x"$with_included_zlib" = x"yes"; then
9339    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $srcdir/zlib" >&5
9340$as_echo "$srcdir/zlib" >&6; }
9341    BUILD_ZLIB='$(zlib_OBJS)'
9342    CFLAGS="-I$srcdir/zlib $CFLAGS"
9343else
9344
9345$as_echo "#define EXTERNAL_ZLIB 1" >>confdefs.h
9346
9347    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348$as_echo "no" >&6; }
9349fi
9350
9351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned char" >&5
9352$as_echo_n "checking for unsigned char... " >&6; }
9353if ${rsync_cv_SIGNED_CHAR_OK+:} false; then :
9354  $as_echo_n "(cached) " >&6
9355else
9356
9357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358/* end confdefs.h.  */
9359
9360int
9361main ()
9362{
9363signed char *s = ""
9364  ;
9365  return 0;
9366}
9367_ACEOF
9368if ac_fn_c_try_compile "$LINENO"; then :
9369  rsync_cv_SIGNED_CHAR_OK=yes
9370else
9371  rsync_cv_SIGNED_CHAR_OK=no
9372fi
9373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9374fi
9375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_SIGNED_CHAR_OK" >&5
9376$as_echo "$rsync_cv_SIGNED_CHAR_OK" >&6; }
9377if test x"$rsync_cv_SIGNED_CHAR_OK" = x"yes"; then
9378
9379$as_echo "#define SIGNED_CHAR_OK 1" >>confdefs.h
9380
9381fi
9382
9383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken readdir" >&5
9384$as_echo_n "checking for broken readdir... " >&6; }
9385if ${rsync_cv_HAVE_BROKEN_READDIR+:} false; then :
9386  $as_echo_n "(cached) " >&6
9387else
9388
9389if test "$cross_compiling" = yes; then :
9390  rsync_cv_HAVE_BROKEN_READDIR=cross
9391else
9392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393/* end confdefs.h.  */
9394#include <sys/types.h>
9395#include <dirent.h>
9396int main(void) { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9397if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9398di->d_name[0] == 0) return 0; return 1;}
9399_ACEOF
9400if ac_fn_c_try_run "$LINENO"; then :
9401  rsync_cv_HAVE_BROKEN_READDIR=yes
9402else
9403  rsync_cv_HAVE_BROKEN_READDIR=no
9404fi
9405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9406  conftest.$ac_objext conftest.beam conftest.$ac_ext
9407fi
9408
9409fi
9410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_BROKEN_READDIR" >&5
9411$as_echo "$rsync_cv_HAVE_BROKEN_READDIR" >&6; }
9412if test x"$rsync_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9413
9414$as_echo "#define HAVE_BROKEN_READDIR 1" >>confdefs.h
9415
9416fi
9417
9418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimbuf" >&5
9419$as_echo_n "checking for utimbuf... " >&6; }
9420if ${rsync_cv_HAVE_STRUCT_UTIMBUF+:} false; then :
9421  $as_echo_n "(cached) " >&6
9422else
9423
9424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425/* end confdefs.h.  */
9426#include <sys/types.h>
9427#include <utime.h>
9428int
9429main ()
9430{
9431struct utimbuf tbuf;  tbuf.actime = 0; tbuf.modtime = 1; return utime("foo.c",&tbuf);
9432  ;
9433  return 0;
9434}
9435_ACEOF
9436if ac_fn_c_try_compile "$LINENO"; then :
9437  rsync_cv_HAVE_STRUCT_UTIMBUF=yes
9438else
9439  rsync_cv_HAVE_STRUCT_UTIMBUF=no
9440fi
9441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9442fi
9443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_STRUCT_UTIMBUF" >&5
9444$as_echo "$rsync_cv_HAVE_STRUCT_UTIMBUF" >&6; }
9445if test x"$rsync_cv_HAVE_STRUCT_UTIMBUF" = x"yes"; then
9446
9447$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
9448
9449fi
9450
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gettimeofday takes tz argument" >&5
9452$as_echo_n "checking if gettimeofday takes tz argument... " >&6; }
9453if ${rsync_cv_HAVE_GETTIMEOFDAY_TZ+:} false; then :
9454  $as_echo_n "(cached) " >&6
9455else
9456
9457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458/* end confdefs.h.  */
9459#include <sys/time.h>
9460#include <unistd.h>
9461int
9462main ()
9463{
9464struct timeval tv; return gettimeofday(&tv, NULL);
9465  ;
9466  return 0;
9467}
9468_ACEOF
9469if ac_fn_c_try_compile "$LINENO"; then :
9470  rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes
9471else
9472  rsync_cv_HAVE_GETTIMEOFDAY_TZ=no
9473fi
9474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9475fi
9476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_GETTIMEOFDAY_TZ" >&5
9477$as_echo "$rsync_cv_HAVE_GETTIMEOFDAY_TZ" >&6; }
9478if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" != x"no"; then
9479
9480$as_echo "#define HAVE_GETTIMEOFDAY_TZ 1" >>confdefs.h
9481
9482fi
9483
9484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5
9485$as_echo_n "checking for C99 vsnprintf... " >&6; }
9486if ${rsync_cv_HAVE_C99_VSNPRINTF+:} false; then :
9487  $as_echo_n "(cached) " >&6
9488else
9489
9490if test "$cross_compiling" = yes; then :
9491  rsync_cv_HAVE_C99_VSNPRINTF=cross
9492else
9493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494/* end confdefs.h.  */
9495
9496#include <sys/types.h>
9497#include <stdarg.h>
9498#include <stdio.h>
9499#include <stdlib.h>
9500#include <string.h>
9501void foo(const char *format, ...) {
9502       va_list ap;
9503       int len;
9504       static char buf[] = "12345678901234567890";
9505
9506       va_start(ap, format);
9507       len = vsnprintf(0, 0, format, ap);
9508       va_end(ap);
9509       if (len != 5) exit(1);
9510
9511       if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9512}
9513int main(void) { foo("hello"); return 0; }
9514
9515_ACEOF
9516if ac_fn_c_try_run "$LINENO"; then :
9517  rsync_cv_HAVE_C99_VSNPRINTF=yes
9518else
9519  rsync_cv_HAVE_C99_VSNPRINTF=no
9520fi
9521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9522  conftest.$ac_objext conftest.beam conftest.$ac_ext
9523fi
9524
9525fi
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_C99_VSNPRINTF" >&5
9527$as_echo "$rsync_cv_HAVE_C99_VSNPRINTF" >&6; }
9528if test x"$rsync_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9529
9530$as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h
9531
9532fi
9533
9534
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for secure mkstemp" >&5
9536$as_echo_n "checking for secure mkstemp... " >&6; }
9537if ${rsync_cv_HAVE_SECURE_MKSTEMP+:} false; then :
9538  $as_echo_n "(cached) " >&6
9539else
9540
9541if test "$cross_compiling" = yes; then :
9542  rsync_cv_HAVE_SECURE_MKSTEMP=cross
9543else
9544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545/* end confdefs.h.  */
9546#include <stdlib.h>
9547#include <sys/types.h>
9548#include <sys/stat.h>
9549#include <unistd.h>
9550int main(void) {
9551  struct stat st;
9552  char tpl[20]="/tmp/test.XXXXXX";
9553  int fd = mkstemp(tpl);
9554  if (fd == -1) return 1;
9555  unlink(tpl);
9556  if (fstat(fd, &st) != 0) return 1;
9557  if ((st.st_mode & 0777) != 0600) return 1;
9558  return 0;
9559}
9560_ACEOF
9561if ac_fn_c_try_run "$LINENO"; then :
9562  rsync_cv_HAVE_SECURE_MKSTEMP=yes
9563else
9564  rsync_cv_HAVE_SECURE_MKSTEMP=no
9565fi
9566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9567  conftest.$ac_objext conftest.beam conftest.$ac_ext
9568fi
9569
9570fi
9571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_SECURE_MKSTEMP" >&5
9572$as_echo "$rsync_cv_HAVE_SECURE_MKSTEMP" >&6; }
9573if test x"$rsync_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
9574    case $host_os in
9575    hpux*)
9576				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping broken HP-UX mkstemp() -- using mktemp() instead" >&5
9577$as_echo "$as_me: WARNING: Skipping broken HP-UX mkstemp() -- using mktemp() instead" >&2;}
9578	;;
9579    *)
9580
9581$as_echo "#define HAVE_SECURE_MKSTEMP 1" >>confdefs.h
9582
9583	;;
9584    esac
9585fi
9586
9587
9588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mknod creates FIFOs" >&5
9589$as_echo_n "checking if mknod creates FIFOs... " >&6; }
9590if ${rsync_cv_MKNOD_CREATES_FIFOS+:} false; then :
9591  $as_echo_n "(cached) " >&6
9592else
9593
9594if test "$cross_compiling" = yes; then :
9595  rsync_cv_MKNOD_CREATES_FIFOS=cross
9596else
9597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598/* end confdefs.h.  */
9599
9600#include <stdio.h>
9601#include <sys/stat.h>
9602#include <errno.h>
9603#if HAVE_UNISTD_H
9604# include <unistd.h>
9605#endif
9606int main(void) { int rc, ec; char *fn = "fifo-test";
9607unlink(fn); rc = mknod(fn,S_IFIFO,0600); ec = errno; unlink(fn);
9608if (rc) {printf("(%d %d) ",rc,ec); return ec;}
9609return 0;}
9610_ACEOF
9611if ac_fn_c_try_run "$LINENO"; then :
9612  rsync_cv_MKNOD_CREATES_FIFOS=yes
9613else
9614  rsync_cv_MKNOD_CREATES_FIFOS=no
9615fi
9616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9617  conftest.$ac_objext conftest.beam conftest.$ac_ext
9618fi
9619
9620fi
9621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_MKNOD_CREATES_FIFOS" >&5
9622$as_echo "$rsync_cv_MKNOD_CREATES_FIFOS" >&6; }
9623if test x"$rsync_cv_MKNOD_CREATES_FIFOS" = x"yes"; then
9624
9625$as_echo "#define MKNOD_CREATES_FIFOS 1" >>confdefs.h
9626
9627fi
9628
9629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mknod creates sockets" >&5
9630$as_echo_n "checking if mknod creates sockets... " >&6; }
9631if ${rsync_cv_MKNOD_CREATES_SOCKETS+:} false; then :
9632  $as_echo_n "(cached) " >&6
9633else
9634
9635if test "$cross_compiling" = yes; then :
9636  rsync_cv_MKNOD_CREATES_SOCKETS=cross
9637else
9638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639/* end confdefs.h.  */
9640
9641#include <stdio.h>
9642#include <sys/stat.h>
9643#include <errno.h>
9644#if HAVE_UNISTD_H
9645# include <unistd.h>
9646#endif
9647int main(void) { int rc, ec; char *fn = "sock-test";
9648unlink(fn); rc = mknod(fn,S_IFSOCK,0600); ec = errno; unlink(fn);
9649if (rc) {printf("(%d %d) ",rc,ec); return ec;}
9650return 0;}
9651_ACEOF
9652if ac_fn_c_try_run "$LINENO"; then :
9653  rsync_cv_MKNOD_CREATES_SOCKETS=yes
9654else
9655  rsync_cv_MKNOD_CREATES_SOCKETS=no
9656fi
9657rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9658  conftest.$ac_objext conftest.beam conftest.$ac_ext
9659fi
9660
9661fi
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_MKNOD_CREATES_SOCKETS" >&5
9663$as_echo "$rsync_cv_MKNOD_CREATES_SOCKETS" >&6; }
9664if test x"$rsync_cv_MKNOD_CREATES_SOCKETS" = x"yes"; then
9665
9666$as_echo "#define MKNOD_CREATES_SOCKETS 1" >>confdefs.h
9667
9668fi
9669
9670#
9671# The following test was mostly taken from the tcl/tk plus patches
9672#
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -c -o works" >&5
9674$as_echo_n "checking whether -c -o works... " >&6; }
9675if ${rsync_cv_DASHC_WORKS_WITH_DASHO+:} false; then :
9676  $as_echo_n "(cached) " >&6
9677else
9678
9679rm -rf conftest*
9680cat > conftest.$ac_ext <<EOF
9681int main(void) { return 0; }
9682EOF
9683${CC-cc} -c -o conftest..o conftest.$ac_ext
9684if test -f conftest..o; then
9685    rsync_cv_DASHC_WORKS_WITH_DASHO=yes
9686else
9687    rsync_cv_DASHC_WORKS_WITH_DASHO=no
9688fi
9689rm -rf conftest*
9690
9691fi
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_DASHC_WORKS_WITH_DASHO" >&5
9693$as_echo "$rsync_cv_DASHC_WORKS_WITH_DASHO" >&6; }
9694if test x"$rsync_cv_DASHC_WORKS_WITH_DASHO" = x"yes"; then
9695    OBJ_SAVE="#"
9696    OBJ_RESTORE="#"
9697    CC_SHOBJ_FLAG='-o $@'
9698else
9699    OBJ_SAVE='	@b=`basename $@ .o`;rm -f $$b.o.sav;if test -f $$b.o; then mv $$b.o $$b.o.sav;fi;'
9700    OBJ_RESTORE='	@b=`basename $@ .o`;if test "$$b.o" != "$@"; then mv $$b.o $@; if test -f $$b.o.sav; then mv $$b.o.sav $$b.o; fi; fi'
9701    CC_SHOBJ_FLAG=""
9702fi
9703
9704
9705
9706
9707
9708
9709
9710
9711for ac_func in _acl __acl _facl __facl
9712do :
9713  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9714ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9715if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9716  cat >>confdefs.h <<_ACEOF
9717#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9718_ACEOF
9719
9720fi
9721done
9722
9723#################################################
9724# check for ACL support
9725
9726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ACLs" >&5
9727$as_echo_n "checking whether to support ACLs... " >&6; }
9728# Check whether --enable-acl-support was given.
9729if test "${enable_acl_support+set}" = set; then :
9730  enableval=$enable_acl_support;
9731fi
9732
9733
9734if test x"$enable_acl_support" = x"no"; then
9735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736$as_echo "no" >&6; }
9737else
9738    case "$host_os" in
9739    *sysv5*)
9740	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using UnixWare ACLs" >&5
9741$as_echo "Using UnixWare ACLs" >&6; }
9742
9743$as_echo "#define HAVE_UNIXWARE_ACLS 1" >>confdefs.h
9744
9745
9746$as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
9747
9748	;;
9749    solaris*)
9750	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using solaris ACLs" >&5
9751$as_echo "Using solaris ACLs" >&6; }
9752
9753$as_echo "#define HAVE_SOLARIS_ACLS 1" >>confdefs.h
9754
9755	$as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
9756
9757	;;
9758    *irix*)
9759	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using IRIX ACLs" >&5
9760$as_echo "Using IRIX ACLs" >&6; }
9761
9762$as_echo "#define HAVE_IRIX_ACLS 1" >>confdefs.h
9763
9764	$as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
9765
9766	;;
9767    *aix*)
9768	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using AIX ACLs" >&5
9769$as_echo "Using AIX ACLs" >&6; }
9770
9771$as_echo "#define HAVE_AIX_ACLS 1" >>confdefs.h
9772
9773	$as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
9774
9775	;;
9776    *osf*)
9777	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Tru64 ACLs" >&5
9778$as_echo "Using Tru64 ACLs" >&6; }
9779
9780$as_echo "#define HAVE_TRU64_ACLS 1" >>confdefs.h
9781
9782	$as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
9783
9784	LIBS="$LIBS -lpacl"
9785	;;
9786    darwin*)
9787	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS X ACLs" >&5
9788$as_echo "Using OS X ACLs" >&6; }
9789
9790$as_echo "#define HAVE_OSX_ACLS 1" >>confdefs.h
9791
9792	$as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
9793
9794	;;
9795    *hpux*|*nsk*)
9796	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using HPUX ACLs" >&5
9797$as_echo "Using HPUX ACLs" >&6; }
9798
9799$as_echo "#define HAVE_HPUX_ACLS 1" >>confdefs.h
9800
9801	$as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
9802
9803	;;
9804    *)
9805	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: running tests:" >&5
9806$as_echo "running tests:" >&6; }
9807	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
9808$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
9809if ${ac_cv_lib_acl_acl_get_file+:} false; then :
9810  $as_echo_n "(cached) " >&6
9811else
9812  ac_check_lib_save_LIBS=$LIBS
9813LIBS="-lacl  $LIBS"
9814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815/* end confdefs.h.  */
9816
9817/* Override any GCC internal prototype to avoid an error.
9818   Use char because int might match the return type of a GCC
9819   builtin and then its argument prototype would still apply.  */
9820#ifdef __cplusplus
9821extern "C"
9822#endif
9823char acl_get_file ();
9824int
9825main ()
9826{
9827return acl_get_file ();
9828  ;
9829  return 0;
9830}
9831_ACEOF
9832if ac_fn_c_try_link "$LINENO"; then :
9833  ac_cv_lib_acl_acl_get_file=yes
9834else
9835  ac_cv_lib_acl_acl_get_file=no
9836fi
9837rm -f core conftest.err conftest.$ac_objext \
9838    conftest$ac_exeext conftest.$ac_ext
9839LIBS=$ac_check_lib_save_LIBS
9840fi
9841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
9842$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
9843if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
9844  cat >>confdefs.h <<_ACEOF
9845#define HAVE_LIBACL 1
9846_ACEOF
9847
9848  LIBS="-lacl $LIBS"
9849
9850fi
9851
9852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL support" >&5
9853$as_echo_n "checking for ACL support... " >&6; }
9854if ${samba_cv_HAVE_POSIX_ACLS+:} false; then :
9855  $as_echo_n "(cached) " >&6
9856else
9857
9858	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859/* end confdefs.h.  */
9860#include <sys/types.h>
9861#include <sys/acl.h>
9862int
9863main ()
9864{
9865 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
9866  ;
9867  return 0;
9868}
9869_ACEOF
9870if ac_fn_c_try_link "$LINENO"; then :
9871  samba_cv_HAVE_POSIX_ACLS=yes
9872else
9873  samba_cv_HAVE_POSIX_ACLS=no
9874fi
9875rm -f core conftest.err conftest.$ac_objext \
9876    conftest$ac_exeext conftest.$ac_ext
9877fi
9878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $samba_cv_HAVE_POSIX_ACLS" >&5
9879$as_echo "$samba_cv_HAVE_POSIX_ACLS" >&6; }
9880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACL test results" >&5
9881$as_echo_n "checking ACL test results... " >&6; }
9882	if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
9883	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using posix ACLs" >&5
9884$as_echo "Using posix ACLs" >&6; }
9885
9886$as_echo "#define HAVE_POSIX_ACLS 1" >>confdefs.h
9887
9888	    $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
9889
9890	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_perm_np" >&5
9891$as_echo_n "checking for acl_get_perm_np... " >&6; }
9892if ${samba_cv_HAVE_ACL_GET_PERM_NP+:} false; then :
9893  $as_echo_n "(cached) " >&6
9894else
9895
9896		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897/* end confdefs.h.  */
9898#include <sys/types.h>
9899#include <sys/acl.h>
9900int
9901main ()
9902{
9903 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
9904  ;
9905  return 0;
9906}
9907_ACEOF
9908if ac_fn_c_try_link "$LINENO"; then :
9909  samba_cv_HAVE_ACL_GET_PERM_NP=yes
9910else
9911  samba_cv_HAVE_ACL_GET_PERM_NP=no
9912fi
9913rm -f core conftest.err conftest.$ac_objext \
9914    conftest$ac_exeext conftest.$ac_ext
9915fi
9916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
9917$as_echo "$samba_cv_HAVE_ACL_GET_PERM_NP" >&6; }
9918	    if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
9919
9920$as_echo "#define HAVE_ACL_GET_PERM_NP 1" >>confdefs.h
9921
9922	    fi
9923	else
9924	    if test x"$enable_acl_support" = x"yes"; then
9925		as_fn_error $? "Failed to find ACL support" "$LINENO" 5
9926	    else
9927		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: No ACL support found" >&5
9928$as_echo "No ACL support found" >&6; }
9929	    fi
9930	fi
9931	;;
9932    esac
9933fi
9934
9935#################################################
9936# check for extended attribute support
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support extended attributes" >&5
9938$as_echo_n "checking whether to support extended attributes... " >&6; }
9939# Check whether --enable-xattr-support was given.
9940if test "${enable_xattr_support+set}" = set; then :
9941  enableval=$enable_xattr_support;
9942else
9943  case "$ac_cv_func_getxattr$ac_cv_func_extattr_get_link$ac_cv_func_attropen" in
9944	*yes*) enable_xattr_support=maybe ;;
9945	*) enable_xattr_support=no ;;
9946	esac
9947fi
9948
9949
9950if test x"$enable_xattr_support" = x"no"; then
9951    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952$as_echo "no" >&6; }
9953else
9954    case "$host_os" in
9955    *linux*|*netbsd*|*cygwin*)
9956	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Linux xattrs" >&5
9957$as_echo "Using Linux xattrs" >&6; }
9958
9959$as_echo "#define HAVE_LINUX_XATTRS 1" >>confdefs.h
9960
9961	$as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
9962
9963
9964$as_echo "#define NO_SYMLINK_USER_XATTRS 1" >>confdefs.h
9965
9966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
9967$as_echo_n "checking for getxattr in -lattr... " >&6; }
9968if ${ac_cv_lib_attr_getxattr+:} false; then :
9969  $as_echo_n "(cached) " >&6
9970else
9971  ac_check_lib_save_LIBS=$LIBS
9972LIBS="-lattr  $LIBS"
9973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974/* end confdefs.h.  */
9975
9976/* Override any GCC internal prototype to avoid an error.
9977   Use char because int might match the return type of a GCC
9978   builtin and then its argument prototype would still apply.  */
9979#ifdef __cplusplus
9980extern "C"
9981#endif
9982char getxattr ();
9983int
9984main ()
9985{
9986return getxattr ();
9987  ;
9988  return 0;
9989}
9990_ACEOF
9991if ac_fn_c_try_link "$LINENO"; then :
9992  ac_cv_lib_attr_getxattr=yes
9993else
9994  ac_cv_lib_attr_getxattr=no
9995fi
9996rm -f core conftest.err conftest.$ac_objext \
9997    conftest$ac_exeext conftest.$ac_ext
9998LIBS=$ac_check_lib_save_LIBS
9999fi
10000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
10001$as_echo "$ac_cv_lib_attr_getxattr" >&6; }
10002if test "x$ac_cv_lib_attr_getxattr" = xyes; then :
10003  cat >>confdefs.h <<_ACEOF
10004#define HAVE_LIBATTR 1
10005_ACEOF
10006
10007  LIBS="-lattr $LIBS"
10008
10009fi
10010
10011	;;
10012    darwin*)
10013	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS X xattrs" >&5
10014$as_echo "Using OS X xattrs" >&6; }
10015
10016$as_echo "#define HAVE_OSX_XATTRS 1" >>confdefs.h
10017
10018	$as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
10019
10020
10021$as_echo "#define NO_DEVICE_XATTRS 1" >>confdefs.h
10022
10023
10024$as_echo "#define NO_SPECIAL_XATTRS 1" >>confdefs.h
10025
10026	;;
10027    freebsd*)
10028	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using FreeBSD extattrs" >&5
10029$as_echo "Using FreeBSD extattrs" >&6; }
10030
10031$as_echo "#define HAVE_FREEBSD_XATTRS 1" >>confdefs.h
10032
10033	$as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
10034
10035	;;
10036    solaris*)
10037	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Solaris xattrs" >&5
10038$as_echo "Using Solaris xattrs" >&6; }
10039
10040$as_echo "#define HAVE_SOLARIS_XATTRS 1" >>confdefs.h
10041
10042	$as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
10043
10044
10045$as_echo "#define NO_SYMLINK_XATTRS 1" >>confdefs.h
10046
10047	;;
10048    *)
10049	if test x"$enable_xattr_support" = x"yes"; then
10050	    as_fn_error $? "Failed to find extended attribute support" "$LINENO" 5
10051	else
10052	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: No extended attribute support found" >&5
10053$as_echo "No extended attribute support found" >&6; }
10054	fi
10055	;;
10056    esac
10057fi
10058
10059if test x"$enable_acl_support" = x"no" -o x"$enable_xattr_support" = x"no" -o x"$enable_iconv" = x"no"; then
10060    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
10061$as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
10062    OLD_CFLAGS="$CFLAGS"
10063    CFLAGS="$CFLAGS -Wno-unused-parameter"
10064    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065/* end confdefs.h.  */
10066#include <stdio.h>
10067int
10068main ()
10069{
10070printf("hello\n");
10071  ;
10072  return 0;
10073}
10074_ACEOF
10075if ac_fn_c_try_link "$LINENO"; then :
10076  rsync_warn_flag=yes
10077else
10078  rsync_warn_flag=no
10079fi
10080rm -f core conftest.err conftest.$ac_objext \
10081    conftest$ac_exeext conftest.$ac_ext
10082    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_warn_flag" >&5
10083$as_echo "$rsync_warn_flag" >&6; }
10084    if test x"$rsync_warn_flag" = x"no"; then
10085	CFLAGS="$OLD_CFLAGS"
10086    fi
10087fi
10088
10089case "$CC" in
10090' checker'*|checker*)
10091
10092$as_echo "#define FORCE_FD_ZERO_MEMSET 1" >>confdefs.h
10093
10094    ;;
10095esac
10096
10097ac_config_files="$ac_config_files Makefile lib/dummy zlib/dummy popt/dummy shconfig"
10098
10099cat >confcache <<\_ACEOF
10100# This file is a shell script that caches the results of configure
10101# tests run on this system so they can be shared between configure
10102# scripts and configure runs, see configure's option --config-cache.
10103# It is not useful on other systems.  If it contains results you don't
10104# want to keep, you may remove or edit it.
10105#
10106# config.status only pays attention to the cache file if you give it
10107# the --recheck option to rerun configure.
10108#
10109# `ac_cv_env_foo' variables (set or unset) will be overridden when
10110# loading this file, other *unset* `ac_cv_foo' will be assigned the
10111# following values.
10112
10113_ACEOF
10114
10115# The following way of writing the cache mishandles newlines in values,
10116# but we know of no workaround that is simple, portable, and efficient.
10117# So, we kill variables containing newlines.
10118# Ultrix sh set writes to stderr and can't be redirected directly,
10119# and sets the high bit in the cache file unless we assign to the vars.
10120(
10121  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10122    eval ac_val=\$$ac_var
10123    case $ac_val in #(
10124    *${as_nl}*)
10125      case $ac_var in #(
10126      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10127$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10128      esac
10129      case $ac_var in #(
10130      _ | IFS | as_nl) ;; #(
10131      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10132      *) { eval $ac_var=; unset $ac_var;} ;;
10133      esac ;;
10134    esac
10135  done
10136
10137  (set) 2>&1 |
10138    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10139    *${as_nl}ac_space=\ *)
10140      # `set' does not quote correctly, so add quotes: double-quote
10141      # substitution turns \\\\ into \\, and sed turns \\ into \.
10142      sed -n \
10143	"s/'/'\\\\''/g;
10144	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10145      ;; #(
10146    *)
10147      # `set' quotes correctly as required by POSIX, so do not add quotes.
10148      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10149      ;;
10150    esac |
10151    sort
10152) |
10153  sed '
10154     /^ac_cv_env_/b end
10155     t clear
10156     :clear
10157     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10158     t end
10159     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10160     :end' >>confcache
10161if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10162  if test -w "$cache_file"; then
10163    if test "x$cache_file" != "x/dev/null"; then
10164      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10165$as_echo "$as_me: updating cache $cache_file" >&6;}
10166      if test ! -f "$cache_file" || test -h "$cache_file"; then
10167	cat confcache >"$cache_file"
10168      else
10169        case $cache_file in #(
10170        */* | ?:*)
10171	  mv -f confcache "$cache_file"$$ &&
10172	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10173        *)
10174	  mv -f confcache "$cache_file" ;;
10175	esac
10176      fi
10177    fi
10178  else
10179    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10180$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10181  fi
10182fi
10183rm -f confcache
10184
10185test "x$prefix" = xNONE && prefix=$ac_default_prefix
10186# Let make expand exec_prefix.
10187test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10188
10189DEFS=-DHAVE_CONFIG_H
10190
10191ac_libobjs=
10192ac_ltlibobjs=
10193U=
10194for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10195  # 1. Remove the extension, and $U if already installed.
10196  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10197  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10198  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10199  #    will be set to the directory where LIBOBJS objects are built.
10200  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10201  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10202done
10203LIBOBJS=$ac_libobjs
10204
10205LTLIBOBJS=$ac_ltlibobjs
10206
10207
10208
10209
10210: "${CONFIG_STATUS=./config.status}"
10211ac_write_fail=0
10212ac_clean_files_save=$ac_clean_files
10213ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10215$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10216as_write_fail=0
10217cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10218#! $SHELL
10219# Generated by $as_me.
10220# Run this file to recreate the current configuration.
10221# Compiler output produced by configure, useful for debugging
10222# configure, is in config.log if it exists.
10223
10224debug=false
10225ac_cs_recheck=false
10226ac_cs_silent=false
10227
10228SHELL=\${CONFIG_SHELL-$SHELL}
10229export SHELL
10230_ASEOF
10231cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10232## -------------------- ##
10233## M4sh Initialization. ##
10234## -------------------- ##
10235
10236# Be more Bourne compatible
10237DUALCASE=1; export DUALCASE # for MKS sh
10238if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10239  emulate sh
10240  NULLCMD=:
10241  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10242  # is contrary to our usage.  Disable this feature.
10243  alias -g '${1+"$@"}'='"$@"'
10244  setopt NO_GLOB_SUBST
10245else
10246  case `(set -o) 2>/dev/null` in #(
10247  *posix*) :
10248    set -o posix ;; #(
10249  *) :
10250     ;;
10251esac
10252fi
10253
10254
10255as_nl='
10256'
10257export as_nl
10258# Printing a long string crashes Solaris 7 /usr/bin/printf.
10259as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10260as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10261as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10262# Prefer a ksh shell builtin over an external printf program on Solaris,
10263# but without wasting forks for bash or zsh.
10264if test -z "$BASH_VERSION$ZSH_VERSION" \
10265    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10266  as_echo='print -r --'
10267  as_echo_n='print -rn --'
10268elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10269  as_echo='printf %s\n'
10270  as_echo_n='printf %s'
10271else
10272  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10273    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10274    as_echo_n='/usr/ucb/echo -n'
10275  else
10276    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10277    as_echo_n_body='eval
10278      arg=$1;
10279      case $arg in #(
10280      *"$as_nl"*)
10281	expr "X$arg" : "X\\(.*\\)$as_nl";
10282	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10283      esac;
10284      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10285    '
10286    export as_echo_n_body
10287    as_echo_n='sh -c $as_echo_n_body as_echo'
10288  fi
10289  export as_echo_body
10290  as_echo='sh -c $as_echo_body as_echo'
10291fi
10292
10293# The user is always right.
10294if test "${PATH_SEPARATOR+set}" != set; then
10295  PATH_SEPARATOR=:
10296  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10297    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10298      PATH_SEPARATOR=';'
10299  }
10300fi
10301
10302
10303# IFS
10304# We need space, tab and new line, in precisely that order.  Quoting is
10305# there to prevent editors from complaining about space-tab.
10306# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10307# splitting by setting IFS to empty value.)
10308IFS=" ""	$as_nl"
10309
10310# Find who we are.  Look in the path if we contain no directory separator.
10311as_myself=
10312case $0 in #((
10313  *[\\/]* ) as_myself=$0 ;;
10314  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315for as_dir in $PATH
10316do
10317  IFS=$as_save_IFS
10318  test -z "$as_dir" && as_dir=.
10319    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10320  done
10321IFS=$as_save_IFS
10322
10323     ;;
10324esac
10325# We did not find ourselves, most probably we were run as `sh COMMAND'
10326# in which case we are not to be found in the path.
10327if test "x$as_myself" = x; then
10328  as_myself=$0
10329fi
10330if test ! -f "$as_myself"; then
10331  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10332  exit 1
10333fi
10334
10335# Unset variables that we do not need and which cause bugs (e.g. in
10336# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10337# suppresses any "Segmentation fault" message there.  '((' could
10338# trigger a bug in pdksh 5.2.14.
10339for as_var in BASH_ENV ENV MAIL MAILPATH
10340do eval test x\${$as_var+set} = xset \
10341  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10342done
10343PS1='$ '
10344PS2='> '
10345PS4='+ '
10346
10347# NLS nuisances.
10348LC_ALL=C
10349export LC_ALL
10350LANGUAGE=C
10351export LANGUAGE
10352
10353# CDPATH.
10354(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10355
10356
10357# as_fn_error STATUS ERROR [LINENO LOG_FD]
10358# ----------------------------------------
10359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10361# script with STATUS, using 1 if that was 0.
10362as_fn_error ()
10363{
10364  as_status=$1; test $as_status -eq 0 && as_status=1
10365  if test "$4"; then
10366    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10367    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10368  fi
10369  $as_echo "$as_me: error: $2" >&2
10370  as_fn_exit $as_status
10371} # as_fn_error
10372
10373
10374# as_fn_set_status STATUS
10375# -----------------------
10376# Set $? to STATUS, without forking.
10377as_fn_set_status ()
10378{
10379  return $1
10380} # as_fn_set_status
10381
10382# as_fn_exit STATUS
10383# -----------------
10384# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10385as_fn_exit ()
10386{
10387  set +e
10388  as_fn_set_status $1
10389  exit $1
10390} # as_fn_exit
10391
10392# as_fn_unset VAR
10393# ---------------
10394# Portably unset VAR.
10395as_fn_unset ()
10396{
10397  { eval $1=; unset $1;}
10398}
10399as_unset=as_fn_unset
10400# as_fn_append VAR VALUE
10401# ----------------------
10402# Append the text in VALUE to the end of the definition contained in VAR. Take
10403# advantage of any shell optimizations that allow amortized linear growth over
10404# repeated appends, instead of the typical quadratic growth present in naive
10405# implementations.
10406if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10407  eval 'as_fn_append ()
10408  {
10409    eval $1+=\$2
10410  }'
10411else
10412  as_fn_append ()
10413  {
10414    eval $1=\$$1\$2
10415  }
10416fi # as_fn_append
10417
10418# as_fn_arith ARG...
10419# ------------------
10420# Perform arithmetic evaluation on the ARGs, and store the result in the
10421# global $as_val. Take advantage of shells that can avoid forks. The arguments
10422# must be portable across $(()) and expr.
10423if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10424  eval 'as_fn_arith ()
10425  {
10426    as_val=$(( $* ))
10427  }'
10428else
10429  as_fn_arith ()
10430  {
10431    as_val=`expr "$@" || test $? -eq 1`
10432  }
10433fi # as_fn_arith
10434
10435
10436if expr a : '\(a\)' >/dev/null 2>&1 &&
10437   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10438  as_expr=expr
10439else
10440  as_expr=false
10441fi
10442
10443if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10444  as_basename=basename
10445else
10446  as_basename=false
10447fi
10448
10449if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10450  as_dirname=dirname
10451else
10452  as_dirname=false
10453fi
10454
10455as_me=`$as_basename -- "$0" ||
10456$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10457	 X"$0" : 'X\(//\)$' \| \
10458	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10459$as_echo X/"$0" |
10460    sed '/^.*\/\([^/][^/]*\)\/*$/{
10461	    s//\1/
10462	    q
10463	  }
10464	  /^X\/\(\/\/\)$/{
10465	    s//\1/
10466	    q
10467	  }
10468	  /^X\/\(\/\).*/{
10469	    s//\1/
10470	    q
10471	  }
10472	  s/.*/./; q'`
10473
10474# Avoid depending upon Character Ranges.
10475as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10476as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10477as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10478as_cr_digits='0123456789'
10479as_cr_alnum=$as_cr_Letters$as_cr_digits
10480
10481ECHO_C= ECHO_N= ECHO_T=
10482case `echo -n x` in #(((((
10483-n*)
10484  case `echo 'xy\c'` in
10485  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10486  xy)  ECHO_C='\c';;
10487  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10488       ECHO_T='	';;
10489  esac;;
10490*)
10491  ECHO_N='-n';;
10492esac
10493
10494rm -f conf$$ conf$$.exe conf$$.file
10495if test -d conf$$.dir; then
10496  rm -f conf$$.dir/conf$$.file
10497else
10498  rm -f conf$$.dir
10499  mkdir conf$$.dir 2>/dev/null
10500fi
10501if (echo >conf$$.file) 2>/dev/null; then
10502  if ln -s conf$$.file conf$$ 2>/dev/null; then
10503    as_ln_s='ln -s'
10504    # ... but there are two gotchas:
10505    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10506    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10507    # In both cases, we have to default to `cp -pR'.
10508    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10509      as_ln_s='cp -pR'
10510  elif ln conf$$.file conf$$ 2>/dev/null; then
10511    as_ln_s=ln
10512  else
10513    as_ln_s='cp -pR'
10514  fi
10515else
10516  as_ln_s='cp -pR'
10517fi
10518rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10519rmdir conf$$.dir 2>/dev/null
10520
10521
10522# as_fn_mkdir_p
10523# -------------
10524# Create "$as_dir" as a directory, including parents if necessary.
10525as_fn_mkdir_p ()
10526{
10527
10528  case $as_dir in #(
10529  -*) as_dir=./$as_dir;;
10530  esac
10531  test -d "$as_dir" || eval $as_mkdir_p || {
10532    as_dirs=
10533    while :; do
10534      case $as_dir in #(
10535      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10536      *) as_qdir=$as_dir;;
10537      esac
10538      as_dirs="'$as_qdir' $as_dirs"
10539      as_dir=`$as_dirname -- "$as_dir" ||
10540$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10541	 X"$as_dir" : 'X\(//\)[^/]' \| \
10542	 X"$as_dir" : 'X\(//\)$' \| \
10543	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10544$as_echo X"$as_dir" |
10545    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10546	    s//\1/
10547	    q
10548	  }
10549	  /^X\(\/\/\)[^/].*/{
10550	    s//\1/
10551	    q
10552	  }
10553	  /^X\(\/\/\)$/{
10554	    s//\1/
10555	    q
10556	  }
10557	  /^X\(\/\).*/{
10558	    s//\1/
10559	    q
10560	  }
10561	  s/.*/./; q'`
10562      test -d "$as_dir" && break
10563    done
10564    test -z "$as_dirs" || eval "mkdir $as_dirs"
10565  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10566
10567
10568} # as_fn_mkdir_p
10569if mkdir -p . 2>/dev/null; then
10570  as_mkdir_p='mkdir -p "$as_dir"'
10571else
10572  test -d ./-p && rmdir ./-p
10573  as_mkdir_p=false
10574fi
10575
10576
10577# as_fn_executable_p FILE
10578# -----------------------
10579# Test if FILE is an executable regular file.
10580as_fn_executable_p ()
10581{
10582  test -f "$1" && test -x "$1"
10583} # as_fn_executable_p
10584as_test_x='test -x'
10585as_executable_p=as_fn_executable_p
10586
10587# Sed expression to map a string onto a valid CPP name.
10588as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10589
10590# Sed expression to map a string onto a valid variable name.
10591as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10592
10593
10594exec 6>&1
10595## ----------------------------------- ##
10596## Main body of $CONFIG_STATUS script. ##
10597## ----------------------------------- ##
10598_ASEOF
10599test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10600
10601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10602# Save the log message, to keep $0 and so on meaningful, and to
10603# report actual input values of CONFIG_FILES etc. instead of their
10604# values after options handling.
10605ac_log="
10606This file was extended by rsync $as_me  , which was
10607generated by GNU Autoconf 2.69.  Invocation command line was
10608
10609  CONFIG_FILES    = $CONFIG_FILES
10610  CONFIG_HEADERS  = $CONFIG_HEADERS
10611  CONFIG_LINKS    = $CONFIG_LINKS
10612  CONFIG_COMMANDS = $CONFIG_COMMANDS
10613  $ $0 $@
10614
10615on `(hostname || uname -n) 2>/dev/null | sed 1q`
10616"
10617
10618_ACEOF
10619
10620case $ac_config_files in *"
10621"*) set x $ac_config_files; shift; ac_config_files=$*;;
10622esac
10623
10624case $ac_config_headers in *"
10625"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10626esac
10627
10628
10629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10630# Files that config.status was made for.
10631config_files="$ac_config_files"
10632config_headers="$ac_config_headers"
10633
10634_ACEOF
10635
10636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10637ac_cs_usage="\
10638\`$as_me' instantiates files and other configuration actions
10639from templates according to the current configuration.  Unless the files
10640and actions are specified as TAGs, all are instantiated by default.
10641
10642Usage: $0 [OPTION]... [TAG]...
10643
10644  -h, --help       print this help, then exit
10645  -V, --version    print version number and configuration settings, then exit
10646      --config     print configuration, then exit
10647  -q, --quiet, --silent
10648                   do not print progress messages
10649  -d, --debug      don't remove temporary files
10650      --recheck    update $as_me by reconfiguring in the same conditions
10651      --file=FILE[:TEMPLATE]
10652                   instantiate the configuration file FILE
10653      --header=FILE[:TEMPLATE]
10654                   instantiate the configuration header FILE
10655
10656Configuration files:
10657$config_files
10658
10659Configuration headers:
10660$config_headers
10661
10662Report bugs to <https://rsync.samba.org/bug-tracking.html>."
10663
10664_ACEOF
10665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10666ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10667ac_cs_version="\\
10668rsync config.status
10669configured by $0, generated by GNU Autoconf 2.69,
10670  with options \\"\$ac_cs_config\\"
10671
10672Copyright (C) 2012 Free Software Foundation, Inc.
10673This config.status script is free software; the Free Software Foundation
10674gives unlimited permission to copy, distribute and modify it."
10675
10676ac_pwd='$ac_pwd'
10677srcdir='$srcdir'
10678INSTALL='$INSTALL'
10679MKDIR_P='$MKDIR_P'
10680AWK='$AWK'
10681test -n "\$AWK" || AWK=awk
10682_ACEOF
10683
10684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10685# The default lists apply if the user does not specify any file.
10686ac_need_defaults=:
10687while test $# != 0
10688do
10689  case $1 in
10690  --*=?*)
10691    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10692    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10693    ac_shift=:
10694    ;;
10695  --*=)
10696    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10697    ac_optarg=
10698    ac_shift=:
10699    ;;
10700  *)
10701    ac_option=$1
10702    ac_optarg=$2
10703    ac_shift=shift
10704    ;;
10705  esac
10706
10707  case $ac_option in
10708  # Handling of the options.
10709  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10710    ac_cs_recheck=: ;;
10711  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10712    $as_echo "$ac_cs_version"; exit ;;
10713  --config | --confi | --conf | --con | --co | --c )
10714    $as_echo "$ac_cs_config"; exit ;;
10715  --debug | --debu | --deb | --de | --d | -d )
10716    debug=: ;;
10717  --file | --fil | --fi | --f )
10718    $ac_shift
10719    case $ac_optarg in
10720    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10721    '') as_fn_error $? "missing file argument" ;;
10722    esac
10723    as_fn_append CONFIG_FILES " '$ac_optarg'"
10724    ac_need_defaults=false;;
10725  --header | --heade | --head | --hea )
10726    $ac_shift
10727    case $ac_optarg in
10728    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10729    esac
10730    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10731    ac_need_defaults=false;;
10732  --he | --h)
10733    # Conflict between --help and --header
10734    as_fn_error $? "ambiguous option: \`$1'
10735Try \`$0 --help' for more information.";;
10736  --help | --hel | -h )
10737    $as_echo "$ac_cs_usage"; exit ;;
10738  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10739  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10740    ac_cs_silent=: ;;
10741
10742  # This is an error.
10743  -*) as_fn_error $? "unrecognized option: \`$1'
10744Try \`$0 --help' for more information." ;;
10745
10746  *) as_fn_append ac_config_targets " $1"
10747     ac_need_defaults=false ;;
10748
10749  esac
10750  shift
10751done
10752
10753ac_configure_extra_args=
10754
10755if $ac_cs_silent; then
10756  exec 6>/dev/null
10757  ac_configure_extra_args="$ac_configure_extra_args --silent"
10758fi
10759
10760_ACEOF
10761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10762if \$ac_cs_recheck; then
10763  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10764  shift
10765  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10766  CONFIG_SHELL='$SHELL'
10767  export CONFIG_SHELL
10768  exec "\$@"
10769fi
10770
10771_ACEOF
10772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10773exec 5>>config.log
10774{
10775  echo
10776  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10777## Running $as_me. ##
10778_ASBOX
10779  $as_echo "$ac_log"
10780} >&5
10781
10782_ACEOF
10783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10784_ACEOF
10785
10786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10787
10788# Handling of arguments.
10789for ac_config_target in $ac_config_targets
10790do
10791  case $ac_config_target in
10792    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10793    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10794    "lib/dummy") CONFIG_FILES="$CONFIG_FILES lib/dummy" ;;
10795    "zlib/dummy") CONFIG_FILES="$CONFIG_FILES zlib/dummy" ;;
10796    "popt/dummy") CONFIG_FILES="$CONFIG_FILES popt/dummy" ;;
10797    "shconfig") CONFIG_FILES="$CONFIG_FILES shconfig" ;;
10798
10799  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10800  esac
10801done
10802
10803
10804# If the user did not use the arguments to specify the items to instantiate,
10805# then the envvar interface is used.  Set only those that are not.
10806# We use the long form for the default assignment because of an extremely
10807# bizarre bug on SunOS 4.1.3.
10808if $ac_need_defaults; then
10809  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10810  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10811fi
10812
10813# Have a temporary directory for convenience.  Make it in the build tree
10814# simply because there is no reason against having it here, and in addition,
10815# creating and moving files from /tmp can sometimes cause problems.
10816# Hook for its removal unless debugging.
10817# Note that there is a small window in which the directory will not be cleaned:
10818# after its creation but before its name has been assigned to `$tmp'.
10819$debug ||
10820{
10821  tmp= ac_tmp=
10822  trap 'exit_status=$?
10823  : "${ac_tmp:=$tmp}"
10824  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10825' 0
10826  trap 'as_fn_exit 1' 1 2 13 15
10827}
10828# Create a (secure) tmp directory for tmp files.
10829
10830{
10831  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10832  test -d "$tmp"
10833}  ||
10834{
10835  tmp=./conf$$-$RANDOM
10836  (umask 077 && mkdir "$tmp")
10837} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10838ac_tmp=$tmp
10839
10840# Set up the scripts for CONFIG_FILES section.
10841# No need to generate them if there are no CONFIG_FILES.
10842# This happens for instance with `./config.status config.h'.
10843if test -n "$CONFIG_FILES"; then
10844
10845
10846ac_cr=`echo X | tr X '\015'`
10847# On cygwin, bash can eat \r inside `` if the user requested igncr.
10848# But we know of no other shell where ac_cr would be empty at this
10849# point, so we can use a bashism as a fallback.
10850if test "x$ac_cr" = x; then
10851  eval ac_cr=\$\'\\r\'
10852fi
10853ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10854if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10855  ac_cs_awk_cr='\\r'
10856else
10857  ac_cs_awk_cr=$ac_cr
10858fi
10859
10860echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10861_ACEOF
10862
10863
10864{
10865  echo "cat >conf$$subs.awk <<_ACEOF" &&
10866  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10867  echo "_ACEOF"
10868} >conf$$subs.sh ||
10869  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10870ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10871ac_delim='%!_!# '
10872for ac_last_try in false false false false false :; do
10873  . ./conf$$subs.sh ||
10874    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10875
10876  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10877  if test $ac_delim_n = $ac_delim_num; then
10878    break
10879  elif $ac_last_try; then
10880    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10881  else
10882    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10883  fi
10884done
10885rm -f conf$$subs.sh
10886
10887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10888cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10889_ACEOF
10890sed -n '
10891h
10892s/^/S["/; s/!.*/"]=/
10893p
10894g
10895s/^[^!]*!//
10896:repl
10897t repl
10898s/'"$ac_delim"'$//
10899t delim
10900:nl
10901h
10902s/\(.\{148\}\)..*/\1/
10903t more1
10904s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10905p
10906n
10907b repl
10908:more1
10909s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10910p
10911g
10912s/.\{148\}//
10913t nl
10914:delim
10915h
10916s/\(.\{148\}\)..*/\1/
10917t more2
10918s/["\\]/\\&/g; s/^/"/; s/$/"/
10919p
10920b
10921:more2
10922s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10923p
10924g
10925s/.\{148\}//
10926t delim
10927' <conf$$subs.awk | sed '
10928/^[^""]/{
10929  N
10930  s/\n//
10931}
10932' >>$CONFIG_STATUS || ac_write_fail=1
10933rm -f conf$$subs.awk
10934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10935_ACAWK
10936cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10937  for (key in S) S_is_set[key] = 1
10938  FS = ""
10939
10940}
10941{
10942  line = $ 0
10943  nfields = split(line, field, "@")
10944  substed = 0
10945  len = length(field[1])
10946  for (i = 2; i < nfields; i++) {
10947    key = field[i]
10948    keylen = length(key)
10949    if (S_is_set[key]) {
10950      value = S[key]
10951      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10952      len += length(value) + length(field[++i])
10953      substed = 1
10954    } else
10955      len += 1 + keylen
10956  }
10957
10958  print line
10959}
10960
10961_ACAWK
10962_ACEOF
10963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10964if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10965  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10966else
10967  cat
10968fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10969  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10970_ACEOF
10971
10972# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10973# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10974# trailing colons and then remove the whole line if VPATH becomes empty
10975# (actually we leave an empty line to preserve line numbers).
10976if test "x$srcdir" = x.; then
10977  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
10978h
10979s///
10980s/^/:/
10981s/[	 ]*$/:/
10982s/:\$(srcdir):/:/g
10983s/:\${srcdir}:/:/g
10984s/:@srcdir@:/:/g
10985s/^:*//
10986s/:*$//
10987x
10988s/\(=[	 ]*\).*/\1/
10989G
10990s/\n//
10991s/^[^=]*=[	 ]*$//
10992}'
10993fi
10994
10995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10996fi # test -n "$CONFIG_FILES"
10997
10998# Set up the scripts for CONFIG_HEADERS section.
10999# No need to generate them if there are no CONFIG_HEADERS.
11000# This happens for instance with `./config.status Makefile'.
11001if test -n "$CONFIG_HEADERS"; then
11002cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11003BEGIN {
11004_ACEOF
11005
11006# Transform confdefs.h into an awk script `defines.awk', embedded as
11007# here-document in config.status, that substitutes the proper values into
11008# config.h.in to produce config.h.
11009
11010# Create a delimiter string that does not exist in confdefs.h, to ease
11011# handling of long lines.
11012ac_delim='%!_!# '
11013for ac_last_try in false false :; do
11014  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11015  if test -z "$ac_tt"; then
11016    break
11017  elif $ac_last_try; then
11018    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11019  else
11020    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11021  fi
11022done
11023
11024# For the awk script, D is an array of macro values keyed by name,
11025# likewise P contains macro parameters if any.  Preserve backslash
11026# newline sequences.
11027
11028ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11029sed -n '
11030s/.\{148\}/&'"$ac_delim"'/g
11031t rset
11032:rset
11033s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11034t def
11035d
11036:def
11037s/\\$//
11038t bsnl
11039s/["\\]/\\&/g
11040s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11041D["\1"]=" \3"/p
11042s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11043d
11044:bsnl
11045s/["\\]/\\&/g
11046s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11047D["\1"]=" \3\\\\\\n"\\/p
11048t cont
11049s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11050t cont
11051d
11052:cont
11053n
11054s/.\{148\}/&'"$ac_delim"'/g
11055t clear
11056:clear
11057s/\\$//
11058t bsnlc
11059s/["\\]/\\&/g; s/^/"/; s/$/"/p
11060d
11061:bsnlc
11062s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11063b cont
11064' <confdefs.h | sed '
11065s/'"$ac_delim"'/"\\\
11066"/g' >>$CONFIG_STATUS || ac_write_fail=1
11067
11068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11069  for (key in D) D_is_set[key] = 1
11070  FS = ""
11071}
11072/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11073  line = \$ 0
11074  split(line, arg, " ")
11075  if (arg[1] == "#") {
11076    defundef = arg[2]
11077    mac1 = arg[3]
11078  } else {
11079    defundef = substr(arg[1], 2)
11080    mac1 = arg[2]
11081  }
11082  split(mac1, mac2, "(") #)
11083  macro = mac2[1]
11084  prefix = substr(line, 1, index(line, defundef) - 1)
11085  if (D_is_set[macro]) {
11086    # Preserve the white space surrounding the "#".
11087    print prefix "define", macro P[macro] D[macro]
11088    next
11089  } else {
11090    # Replace #undef with comments.  This is necessary, for example,
11091    # in the case of _POSIX_SOURCE, which is predefined and required
11092    # on some systems where configure will not decide to define it.
11093    if (defundef == "undef") {
11094      print "/*", prefix defundef, macro, "*/"
11095      next
11096    }
11097  }
11098}
11099{ print }
11100_ACAWK
11101_ACEOF
11102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11103  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11104fi # test -n "$CONFIG_HEADERS"
11105
11106
11107eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
11108shift
11109for ac_tag
11110do
11111  case $ac_tag in
11112  :[FHLC]) ac_mode=$ac_tag; continue;;
11113  esac
11114  case $ac_mode$ac_tag in
11115  :[FHL]*:*);;
11116  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11117  :[FH]-) ac_tag=-:-;;
11118  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11119  esac
11120  ac_save_IFS=$IFS
11121  IFS=:
11122  set x $ac_tag
11123  IFS=$ac_save_IFS
11124  shift
11125  ac_file=$1
11126  shift
11127
11128  case $ac_mode in
11129  :L) ac_source=$1;;
11130  :[FH])
11131    ac_file_inputs=
11132    for ac_f
11133    do
11134      case $ac_f in
11135      -) ac_f="$ac_tmp/stdin";;
11136      *) # Look for the file first in the build tree, then in the source tree
11137	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11138	 # because $ac_f cannot contain `:'.
11139	 test -f "$ac_f" ||
11140	   case $ac_f in
11141	   [\\/$]*) false;;
11142	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11143	   esac ||
11144	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11145      esac
11146      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11147      as_fn_append ac_file_inputs " '$ac_f'"
11148    done
11149
11150    # Let's still pretend it is `configure' which instantiates (i.e., don't
11151    # use $as_me), people would be surprised to read:
11152    #    /* config.h.  Generated by config.status.  */
11153    configure_input='Generated from '`
11154	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11155	`' by configure.'
11156    if test x"$ac_file" != x-; then
11157      configure_input="$ac_file.  $configure_input"
11158      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11159$as_echo "$as_me: creating $ac_file" >&6;}
11160    fi
11161    # Neutralize special characters interpreted by sed in replacement strings.
11162    case $configure_input in #(
11163    *\&* | *\|* | *\\* )
11164       ac_sed_conf_input=`$as_echo "$configure_input" |
11165       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11166    *) ac_sed_conf_input=$configure_input;;
11167    esac
11168
11169    case $ac_tag in
11170    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11171      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11172    esac
11173    ;;
11174  esac
11175
11176  ac_dir=`$as_dirname -- "$ac_file" ||
11177$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11178	 X"$ac_file" : 'X\(//\)[^/]' \| \
11179	 X"$ac_file" : 'X\(//\)$' \| \
11180	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11181$as_echo X"$ac_file" |
11182    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11183	    s//\1/
11184	    q
11185	  }
11186	  /^X\(\/\/\)[^/].*/{
11187	    s//\1/
11188	    q
11189	  }
11190	  /^X\(\/\/\)$/{
11191	    s//\1/
11192	    q
11193	  }
11194	  /^X\(\/\).*/{
11195	    s//\1/
11196	    q
11197	  }
11198	  s/.*/./; q'`
11199  as_dir="$ac_dir"; as_fn_mkdir_p
11200  ac_builddir=.
11201
11202case "$ac_dir" in
11203.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11204*)
11205  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11206  # A ".." for each directory in $ac_dir_suffix.
11207  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11208  case $ac_top_builddir_sub in
11209  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11210  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11211  esac ;;
11212esac
11213ac_abs_top_builddir=$ac_pwd
11214ac_abs_builddir=$ac_pwd$ac_dir_suffix
11215# for backward compatibility:
11216ac_top_builddir=$ac_top_build_prefix
11217
11218case $srcdir in
11219  .)  # We are building in place.
11220    ac_srcdir=.
11221    ac_top_srcdir=$ac_top_builddir_sub
11222    ac_abs_top_srcdir=$ac_pwd ;;
11223  [\\/]* | ?:[\\/]* )  # Absolute name.
11224    ac_srcdir=$srcdir$ac_dir_suffix;
11225    ac_top_srcdir=$srcdir
11226    ac_abs_top_srcdir=$srcdir ;;
11227  *) # Relative name.
11228    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11229    ac_top_srcdir=$ac_top_build_prefix$srcdir
11230    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11231esac
11232ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11233
11234
11235  case $ac_mode in
11236  :F)
11237  #
11238  # CONFIG_FILE
11239  #
11240
11241  case $INSTALL in
11242  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11243  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11244  esac
11245  ac_MKDIR_P=$MKDIR_P
11246  case $MKDIR_P in
11247  [\\/$]* | ?:[\\/]* ) ;;
11248  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11249  esac
11250_ACEOF
11251
11252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11253# If the template does not know about datarootdir, expand it.
11254# FIXME: This hack should be removed a few years after 2.60.
11255ac_datarootdir_hack=; ac_datarootdir_seen=
11256ac_sed_dataroot='
11257/datarootdir/ {
11258  p
11259  q
11260}
11261/@datadir@/p
11262/@docdir@/p
11263/@infodir@/p
11264/@localedir@/p
11265/@mandir@/p'
11266case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11267*datarootdir*) ac_datarootdir_seen=yes;;
11268*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11269  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11270$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11271_ACEOF
11272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11273  ac_datarootdir_hack='
11274  s&@datadir@&$datadir&g
11275  s&@docdir@&$docdir&g
11276  s&@infodir@&$infodir&g
11277  s&@localedir@&$localedir&g
11278  s&@mandir@&$mandir&g
11279  s&\\\${datarootdir}&$datarootdir&g' ;;
11280esac
11281_ACEOF
11282
11283# Neutralize VPATH when `$srcdir' = `.'.
11284# Shell code in configure.ac might set extrasub.
11285# FIXME: do we really want to maintain this feature?
11286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11287ac_sed_extra="$ac_vpsub
11288$extrasub
11289_ACEOF
11290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11291:t
11292/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11293s|@configure_input@|$ac_sed_conf_input|;t t
11294s&@top_builddir@&$ac_top_builddir_sub&;t t
11295s&@top_build_prefix@&$ac_top_build_prefix&;t t
11296s&@srcdir@&$ac_srcdir&;t t
11297s&@abs_srcdir@&$ac_abs_srcdir&;t t
11298s&@top_srcdir@&$ac_top_srcdir&;t t
11299s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11300s&@builddir@&$ac_builddir&;t t
11301s&@abs_builddir@&$ac_abs_builddir&;t t
11302s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11303s&@INSTALL@&$ac_INSTALL&;t t
11304s&@MKDIR_P@&$ac_MKDIR_P&;t t
11305$ac_datarootdir_hack
11306"
11307eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11308  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11309
11310test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11311  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11312  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11313      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11314  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11315which seems to be undefined.  Please make sure it is defined" >&5
11316$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11317which seems to be undefined.  Please make sure it is defined" >&2;}
11318
11319  rm -f "$ac_tmp/stdin"
11320  case $ac_file in
11321  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11322  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11323  esac \
11324  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11325 ;;
11326  :H)
11327  #
11328  # CONFIG_HEADER
11329  #
11330  if test x"$ac_file" != x-; then
11331    {
11332      $as_echo "/* $configure_input  */" \
11333      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11334    } >"$ac_tmp/config.h" \
11335      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11336    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11337      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11338$as_echo "$as_me: $ac_file is unchanged" >&6;}
11339    else
11340      rm -f "$ac_file"
11341      mv "$ac_tmp/config.h" "$ac_file" \
11342	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11343    fi
11344  else
11345    $as_echo "/* $configure_input  */" \
11346      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11347      || as_fn_error $? "could not create -" "$LINENO" 5
11348  fi
11349 ;;
11350
11351
11352  esac
11353
11354done # for ac_tag
11355
11356
11357as_fn_exit 0
11358_ACEOF
11359ac_clean_files=$ac_clean_files_save
11360
11361test $ac_write_fail = 0 ||
11362  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11363
11364
11365# configure is writing to config.log, and then calls config.status.
11366# config.status does its own redirection, appending to config.log.
11367# Unfortunately, on DOS this fails, as config.log is still kept open
11368# by configure, so config.status won't be able to write to it; its
11369# output is simply discarded.  So we exec the FD to /dev/null,
11370# effectively closing config.log, so it can be properly (re)opened and
11371# appended to by config.status.  When coming back to configure, we
11372# need to make the FD available again.
11373if test "$no_create" != yes; then
11374  ac_cs_success=:
11375  ac_config_status_args=
11376  test "$silent" = yes &&
11377    ac_config_status_args="$ac_config_status_args --quiet"
11378  exec 5>/dev/null
11379  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11380  exec 5>>config.log
11381  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11382  # would make configure fail if this is the last instruction.
11383  $ac_cs_success || as_fn_exit 1
11384fi
11385if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11386  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11387$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11388fi
11389
11390
11391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11392$as_echo "" >&6; }
11393{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     rsync $PACKAGE_VERSION configuration successful" >&5
11394$as_echo "    rsync $PACKAGE_VERSION configuration successful" >&6; }
11395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11396$as_echo "" >&6; }
11397