Annotation of embedaddon/rsync/configure.sh, revision 1.1.1.3

1.1       misho       1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.3 ! misho       3: # Generated by GNU Autoconf 2.69 for rsync 3.1.2.
1.1       misho       4: #
1.1.1.3 ! misho       5: # Report bugs to <http://rsync.samba.org/bugzilla.html>.
1.1       misho       6: #
1.1.1.3 ! misho       7: #
        !             8: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.1       misho       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
                     18: DUALCASE=1; export DUALCASE # for MKS sh
                     19: if 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
                     26: else
                     27:   case `(set -o) 2>/dev/null` in #(
                     28:   *posix*) :
                     29:     set -o posix ;; #(
                     30:   *) :
                     31:      ;;
                     32: esac
                     33: fi
                     34: 
                     35: 
                     36: as_nl='
                     37: '
                     38: export as_nl
                     39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                     40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                     41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                     42: as_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.
                     45: if 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 --'
                     49: elif (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'
                     52: else
                     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'
                     72: fi
                     73: 
                     74: # The user is always right.
                     75: if 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:   }
                     81: fi
                     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.)
                     89: IFS=" ""       $as_nl"
                     90: 
                     91: # Find who we are.  Look in the path if we contain no directory separator.
                     92: as_myself=
                     93: case $0 in #((
                     94:   *[\\/]* ) as_myself=$0 ;;
                     95:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     96: for as_dir in $PATH
                     97: do
                     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
                    102: IFS=$as_save_IFS
                    103: 
                    104:      ;;
                    105: esac
                    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.
                    108: if test "x$as_myself" = x; then
                    109:   as_myself=$0
                    110: fi
                    111: if test ! -f "$as_myself"; then
                    112:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                    113:   exit 1
                    114: fi
                    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.
                    120: for as_var in BASH_ENV ENV MAIL MAILPATH
                    121: do eval test x\${$as_var+set} = xset \
                    122:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
                    123: done
                    124: PS1='$ '
                    125: PS2='> '
                    126: PS4='+ '
                    127: 
                    128: # NLS nuisances.
                    129: LC_ALL=C
                    130: export LC_ALL
                    131: LANGUAGE=C
                    132: export LANGUAGE
                    133: 
                    134: # CDPATH.
                    135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                    136: 
1.1.1.3 ! misho     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.
        !           145: BASH_ENV=/dev/null
        !           146: ENV=/dev/null
        !           147: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
        !           148: case $- in # ((((
        !           149:   *v*x* | *x*v* ) as_opts=-vx ;;
        !           150:   *v* ) as_opts=-v ;;
        !           151:   *x* ) as_opts=-x ;;
        !           152:   * ) as_opts= ;;
        !           153: esac
        !           154: exec $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
        !           158: as_fn_exit 255
        !           159:   fi
        !           160:   # We don't want this to propagate to other subprocesses.
        !           161:           { _as_can_reexec=; unset _as_can_reexec;}
1.1       misho     162: if 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
                    170: else
                    171:   case \`(set -o) 2>/dev/null\` in #(
                    172:   *posix*) :
                    173:     set -o posix ;; #(
                    174:   *) :
                    175:      ;;
                    176: esac
                    177: fi
                    178: "
                    179:   as_required="as_fn_return () { (exit \$1); }
                    180: as_fn_success () { as_fn_return 0; }
                    181: as_fn_failure () { as_fn_return 1; }
                    182: as_fn_ret_success () { return 0; }
                    183: as_fn_ret_failure () { return 1; }
                    184: 
                    185: exitcode=0
                    186: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
                    187: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
                    188: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
                    189: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
                    190: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
                    191: 
                    192: else
                    193:   exitcode=1; echo positional parameters were not saved.
                    194: fi
1.1.1.3 ! misho     195: test x\$exitcode = x0 || exit 1
        !           196: test -x / || exit 1"
1.1       misho     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
                    201: test \$(( 1 + 1 )) = 2 || exit 1"
                    202:   if (eval "$as_required") 2>/dev/null; then :
                    203:   as_have_required=yes
                    204: else
                    205:   as_have_required=no
                    206: fi
                    207:   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
                    208: 
                    209: else
                    210:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    211: as_found=false
                    212: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    213: do
                    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
                    227: fi
                    228: fi
                    229:           done;;
                    230:        esac
                    231:   as_found=false
                    232: done
                    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
                    236: fi; }
                    237: IFS=$as_save_IFS
                    238: 
                    239: 
                    240:       if test "x$CONFIG_SHELL" != x; then :
1.1.1.3 ! misho     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.
        !           246: BASH_ENV=/dev/null
        !           247: ENV=/dev/null
        !           248: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
        !           249: case $- in # ((((
        !           250:   *v*x* | *x*v* ) as_opts=-vx ;;
        !           251:   *v* ) as_opts=-v ;;
        !           252:   *x* ) as_opts=-x ;;
        !           253:   * ) as_opts= ;;
        !           254: esac
        !           255: exec $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
        !           259: exit 255
1.1       misho     260: fi
                    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
1.1.1.3 ! misho     269:     $as_echo "$0: Please tell bug-autoconf@gnu.org and
        !           270: $0: http://rsync.samba.org/bugzilla.html about your system,
1.1       misho     271: $0: 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
                    276: fi
                    277: fi
                    278: fi
                    279: SHELL=${CONFIG_SHELL-/bin/sh}
                    280: export SHELL
                    281: # Unset more variables known to interfere with behavior of common tools.
                    282: CLICOLOR_FORCE= GREP_OPTIONS=
                    283: unset CLICOLOR_FORCE GREP_OPTIONS
                    284: 
                    285: ## --------------------- ##
                    286: ## M4sh Shell Functions. ##
                    287: ## --------------------- ##
                    288: # as_fn_unset VAR
                    289: # ---------------
                    290: # Portably unset VAR.
                    291: as_fn_unset ()
                    292: {
                    293:   { eval $1=; unset $1;}
                    294: }
                    295: as_unset=as_fn_unset
                    296: 
                    297: # as_fn_set_status STATUS
                    298: # -----------------------
                    299: # Set $? to STATUS, without forking.
                    300: as_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.
                    308: as_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.
                    318: as_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
1.1.1.3 ! misho     362: 
        !           363: # as_fn_executable_p FILE
        !           364: # -----------------------
        !           365: # Test if FILE is an executable regular file.
        !           366: as_fn_executable_p ()
        !           367: {
        !           368:   test -f "$1" && test -x "$1"
        !           369: } # as_fn_executable_p
1.1       misho     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.
                    376: if (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:   }'
                    381: else
                    382:   as_fn_append ()
                    383:   {
                    384:     eval $1=\$$1\$2
                    385:   }
                    386: fi # 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.
                    393: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                    394:   eval 'as_fn_arith ()
                    395:   {
                    396:     as_val=$(( $* ))
                    397:   }'
                    398: else
                    399:   as_fn_arith ()
                    400:   {
                    401:     as_val=`expr "$@" || test $? -eq 1`
                    402:   }
                    403: fi # 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.
                    411: as_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: 
                    422: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    423:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                    424:   as_expr=expr
                    425: else
                    426:   as_expr=false
                    427: fi
                    428: 
                    429: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                    430:   as_basename=basename
                    431: else
                    432:   as_basename=false
                    433: fi
                    434: 
                    435: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    436:   as_dirname=dirname
                    437: else
                    438:   as_dirname=false
                    439: fi
                    440: 
                    441: as_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.
                    461: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                    462: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                    463: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                    464: as_cr_digits='0123456789'
                    465: as_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: 
1.1.1.3 ! misho     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
1.1       misho     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: 
                    503: ECHO_C= ECHO_N= ECHO_T=
                    504: case `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';;
                    514: esac
                    515: 
                    516: rm -f conf$$ conf$$.exe conf$$.file
                    517: if test -d conf$$.dir; then
                    518:   rm -f conf$$.dir/conf$$.file
                    519: else
                    520:   rm -f conf$$.dir
                    521:   mkdir conf$$.dir 2>/dev/null
                    522: fi
                    523: if (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.
1.1.1.3 ! misho     529:     # In both cases, we have to default to `cp -pR'.
1.1       misho     530:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.3 ! misho     531:       as_ln_s='cp -pR'
1.1       misho     532:   elif ln conf$$.file conf$$ 2>/dev/null; then
                    533:     as_ln_s=ln
                    534:   else
1.1.1.3 ! misho     535:     as_ln_s='cp -pR'
1.1       misho     536:   fi
                    537: else
1.1.1.3 ! misho     538:   as_ln_s='cp -pR'
1.1       misho     539: fi
                    540: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    541: rmdir conf$$.dir 2>/dev/null
                    542: 
                    543: if mkdir -p . 2>/dev/null; then
                    544:   as_mkdir_p='mkdir -p "$as_dir"'
                    545: else
                    546:   test -d ./-p && rmdir ./-p
                    547:   as_mkdir_p=false
                    548: fi
                    549: 
1.1.1.3 ! misho     550: as_test_x='test -x'
        !           551: as_executable_p=as_fn_executable_p
1.1       misho     552: 
                    553: # Sed expression to map a string onto a valid CPP name.
                    554: as_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.
                    557: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                    558: 
                    559: 
                    560: test -n "$DJDIR" || exec 7<&0 </dev/null
                    561: exec 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.
                    566: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    567: 
                    568: #
                    569: # Initializations.
                    570: #
                    571: ac_default_prefix=/usr/local
                    572: ac_clean_files=
                    573: ac_config_libobj_dir=.
                    574: LIBOBJS=
                    575: cross_compiling=no
                    576: subdirs=
                    577: MFLAGS=
                    578: MAKEFLAGS=
                    579: 
                    580: # Identity of this package.
1.1.1.3 ! misho     581: PACKAGE_NAME='rsync'
        !           582: PACKAGE_TARNAME='rsync'
        !           583: PACKAGE_VERSION='3.1.2'
        !           584: PACKAGE_STRING='rsync 3.1.2'
        !           585: PACKAGE_BUGREPORT='http://rsync.samba.org/bugzilla.html'
        !           586: PACKAGE_URL=''
1.1       misho     587: 
                    588: ac_unique_file="byteorder.h"
1.1.1.3 ! misho     589: ac_config_libobj_dir=lib
1.1       misho     590: # Factoring default headers for most tests.
                    591: ac_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: 
                    626: ac_header_list=
                    627: ac_subst_vars='LTLIBOBJS
1.1.1.2   misho     628: STUNNEL4
                    629: STUNNEL
1.1       misho     630: MAKE_MAN
1.1.1.2   misho     631: BUILD_ZLIB
1.1       misho     632: BUILD_POPT
                    633: CC_SHOBJ_FLAG
                    634: OBJ_RESTORE
                    635: OBJ_SAVE
                    636: ALLOCA
                    637: LIBOBJS
1.1.1.2   misho     638: FAKEROOT_PATH
                    639: SHELL_PATH
1.1       misho     640: HAVE_YODL2MAN
                    641: HAVE_REMSH
1.1.1.3 ! misho     642: PERL
1.1.1.2   misho     643: MKDIR_P
1.1       misho     644: INSTALL_DATA
                    645: INSTALL_SCRIPT
                    646: INSTALL_PROGRAM
                    647: EGREP
                    648: GREP
                    649: CPP
                    650: OBJEXT
                    651: EXEEXT
                    652: ac_ct_CC
                    653: CPPFLAGS
                    654: LDFLAGS
                    655: CFLAGS
                    656: CC
                    657: host_os
                    658: host_vendor
                    659: host_cpu
                    660: host
                    661: build_os
                    662: build_vendor
                    663: build_cpu
                    664: build
                    665: RSYNC_VERSION
                    666: target_alias
                    667: host_alias
                    668: build_alias
                    669: LIBS
                    670: ECHO_T
                    671: ECHO_N
                    672: ECHO_C
                    673: DEFS
                    674: mandir
                    675: localedir
                    676: libdir
                    677: psdir
                    678: pdfdir
                    679: dvidir
                    680: htmldir
                    681: infodir
                    682: docdir
                    683: oldincludedir
                    684: includedir
                    685: localstatedir
                    686: sharedstatedir
                    687: sysconfdir
                    688: datadir
                    689: datarootdir
                    690: libexecdir
                    691: sbindir
                    692: bindir
                    693: program_transform_name
                    694: prefix
                    695: exec_prefix
                    696: PACKAGE_URL
                    697: PACKAGE_BUGREPORT
                    698: PACKAGE_STRING
                    699: PACKAGE_VERSION
                    700: PACKAGE_TARNAME
                    701: PACKAGE_NAME
                    702: PATH_SEPARATOR
                    703: SHELL'
                    704: ac_subst_files=''
                    705: ac_user_opts='
                    706: enable_option_checking
                    707: enable_debug
                    708: enable_profile
                    709: enable_maintainer_mode
                    710: with_included_popt
1.1.1.2   misho     711: with_included_zlib
                    712: with_protected_args
1.1       misho     713: with_rsync_path
                    714: with_rsyncd_conf
                    715: with_rsh
                    716: with_nobody_group
                    717: enable_largefile
                    718: enable_ipv6
                    719: enable_locale
                    720: enable_iconv_open
                    721: enable_iconv
                    722: enable_acl_support
                    723: enable_xattr_support
                    724: '
                    725:       ac_precious_vars='build_alias
                    726: host_alias
                    727: target_alias
                    728: CC
                    729: CFLAGS
                    730: LDFLAGS
                    731: LIBS
                    732: CPPFLAGS
                    733: CPP'
                    734: 
                    735: 
                    736: # Initialize some variables set by options.
                    737: ac_init_help=
                    738: ac_init_version=false
                    739: ac_unrecognized_opts=
                    740: ac_unrecognized_sep=
                    741: # The variables have the same names as the options, with
                    742: # dashes changed to underlines.
                    743: cache_file=/dev/null
                    744: exec_prefix=NONE
                    745: no_create=
                    746: no_recursion=
                    747: prefix=NONE
                    748: program_prefix=NONE
                    749: program_suffix=NONE
                    750: program_transform_name=s,x,x,
                    751: silent=
                    752: site=
                    753: srcdir=
                    754: verbose=
                    755: x_includes=NONE
                    756: x_libraries=NONE
                    757: 
                    758: # Installation directory options.
                    759: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    760: # and all the variables that are supposed to be based on exec_prefix
                    761: # by default will actually change.
                    762: # Use braces instead of parens because sh, perl, etc. also accept them.
                    763: # (The list follows the same order as the GNU Coding Standards.)
                    764: bindir='${exec_prefix}/bin'
                    765: sbindir='${exec_prefix}/sbin'
                    766: libexecdir='${exec_prefix}/libexec'
                    767: datarootdir='${prefix}/share'
                    768: datadir='${datarootdir}'
                    769: sysconfdir='${prefix}/etc'
                    770: sharedstatedir='${prefix}/com'
                    771: localstatedir='${prefix}/var'
                    772: includedir='${prefix}/include'
                    773: oldincludedir='/usr/include'
1.1.1.3 ! misho     774: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1.1       misho     775: infodir='${datarootdir}/info'
                    776: htmldir='${docdir}'
                    777: dvidir='${docdir}'
                    778: pdfdir='${docdir}'
                    779: psdir='${docdir}'
                    780: libdir='${exec_prefix}/lib'
                    781: localedir='${datarootdir}/locale'
                    782: mandir='${datarootdir}/man'
                    783: 
                    784: ac_prev=
                    785: ac_dashdash=
                    786: for ac_option
                    787: do
                    788:   # If the previous option needs an argument, assign it.
                    789:   if test -n "$ac_prev"; then
                    790:     eval $ac_prev=\$ac_option
                    791:     ac_prev=
                    792:     continue
                    793:   fi
                    794: 
                    795:   case $ac_option in
                    796:   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    797:   *=)   ac_optarg= ;;
                    798:   *)    ac_optarg=yes ;;
                    799:   esac
                    800: 
                    801:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    802: 
                    803:   case $ac_dashdash$ac_option in
                    804:   --)
                    805:     ac_dashdash=yes ;;
                    806: 
                    807:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    808:     ac_prev=bindir ;;
                    809:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    810:     bindir=$ac_optarg ;;
                    811: 
                    812:   -build | --build | --buil | --bui | --bu)
                    813:     ac_prev=build_alias ;;
                    814:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    815:     build_alias=$ac_optarg ;;
                    816: 
                    817:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    818:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    819:     ac_prev=cache_file ;;
                    820:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    821:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    822:     cache_file=$ac_optarg ;;
                    823: 
                    824:   --config-cache | -C)
                    825:     cache_file=config.cache ;;
                    826: 
                    827:   -datadir | --datadir | --datadi | --datad)
                    828:     ac_prev=datadir ;;
                    829:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
                    830:     datadir=$ac_optarg ;;
                    831: 
                    832:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                    833:   | --dataroo | --dataro | --datar)
                    834:     ac_prev=datarootdir ;;
                    835:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                    836:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                    837:     datarootdir=$ac_optarg ;;
                    838: 
                    839:   -disable-* | --disable-*)
                    840:     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
                    841:     # Reject names that are not valid shell variable names.
                    842:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                    843:       as_fn_error $? "invalid feature name: $ac_useropt"
                    844:     ac_useropt_orig=$ac_useropt
                    845:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    846:     case $ac_user_opts in
                    847:       *"
                    848: "enable_$ac_useropt"
                    849: "*) ;;
                    850:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
                    851:         ac_unrecognized_sep=', ';;
                    852:     esac
                    853:     eval enable_$ac_useropt=no ;;
                    854: 
                    855:   -docdir | --docdir | --docdi | --doc | --do)
                    856:     ac_prev=docdir ;;
                    857:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                    858:     docdir=$ac_optarg ;;
                    859: 
                    860:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                    861:     ac_prev=dvidir ;;
                    862:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                    863:     dvidir=$ac_optarg ;;
                    864: 
                    865:   -enable-* | --enable-*)
                    866:     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
                    867:     # Reject names that are not valid shell variable names.
                    868:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                    869:       as_fn_error $? "invalid feature name: $ac_useropt"
                    870:     ac_useropt_orig=$ac_useropt
                    871:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                    872:     case $ac_user_opts in
                    873:       *"
                    874: "enable_$ac_useropt"
                    875: "*) ;;
                    876:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
                    877:         ac_unrecognized_sep=', ';;
                    878:     esac
                    879:     eval enable_$ac_useropt=\$ac_optarg ;;
                    880: 
                    881:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    882:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    883:   | --exec | --exe | --ex)
                    884:     ac_prev=exec_prefix ;;
                    885:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    886:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    887:   | --exec=* | --exe=* | --ex=*)
                    888:     exec_prefix=$ac_optarg ;;
                    889: 
                    890:   -gas | --gas | --ga | --g)
                    891:     # Obsolete; use --with-gas.
                    892:     with_gas=yes ;;
                    893: 
                    894:   -help | --help | --hel | --he | -h)
                    895:     ac_init_help=long ;;
                    896:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                    897:     ac_init_help=recursive ;;
                    898:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                    899:     ac_init_help=short ;;
                    900: 
                    901:   -host | --host | --hos | --ho)
                    902:     ac_prev=host_alias ;;
                    903:   -host=* | --host=* | --hos=* | --ho=*)
                    904:     host_alias=$ac_optarg ;;
                    905: 
                    906:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                    907:     ac_prev=htmldir ;;
                    908:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                    909:   | --ht=*)
                    910:     htmldir=$ac_optarg ;;
                    911: 
                    912:   -includedir | --includedir | --includedi | --included | --include \
                    913:   | --includ | --inclu | --incl | --inc)
                    914:     ac_prev=includedir ;;
                    915:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    916:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    917:     includedir=$ac_optarg ;;
                    918: 
                    919:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    920:     ac_prev=infodir ;;
                    921:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    922:     infodir=$ac_optarg ;;
                    923: 
                    924:   -libdir | --libdir | --libdi | --libd)
                    925:     ac_prev=libdir ;;
                    926:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    927:     libdir=$ac_optarg ;;
                    928: 
                    929:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    930:   | --libexe | --libex | --libe)
                    931:     ac_prev=libexecdir ;;
                    932:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    933:   | --libexe=* | --libex=* | --libe=*)
                    934:     libexecdir=$ac_optarg ;;
                    935: 
                    936:   -localedir | --localedir | --localedi | --localed | --locale)
                    937:     ac_prev=localedir ;;
                    938:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                    939:     localedir=$ac_optarg ;;
                    940: 
                    941:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    942:   | --localstate | --localstat | --localsta | --localst | --locals)
                    943:     ac_prev=localstatedir ;;
                    944:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    945:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
                    946:     localstatedir=$ac_optarg ;;
                    947: 
                    948:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    949:     ac_prev=mandir ;;
                    950:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                    951:     mandir=$ac_optarg ;;
                    952: 
                    953:   -nfp | --nfp | --nf)
                    954:     # Obsolete; use --without-fp.
                    955:     with_fp=no ;;
                    956: 
                    957:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    958:   | --no-cr | --no-c | -n)
                    959:     no_create=yes ;;
                    960: 
                    961:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    962:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    963:     no_recursion=yes ;;
                    964: 
                    965:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    966:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    967:   | --oldin | --oldi | --old | --ol | --o)
                    968:     ac_prev=oldincludedir ;;
                    969:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    970:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    971:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                    972:     oldincludedir=$ac_optarg ;;
                    973: 
                    974:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    975:     ac_prev=prefix ;;
                    976:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    977:     prefix=$ac_optarg ;;
                    978: 
                    979:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    980:   | --program-pre | --program-pr | --program-p)
                    981:     ac_prev=program_prefix ;;
                    982:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    983:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                    984:     program_prefix=$ac_optarg ;;
                    985: 
                    986:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    987:   | --program-suf | --program-su | --program-s)
                    988:     ac_prev=program_suffix ;;
                    989:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    990:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                    991:     program_suffix=$ac_optarg ;;
                    992: 
                    993:   -program-transform-name | --program-transform-name \
                    994:   | --program-transform-nam | --program-transform-na \
                    995:   | --program-transform-n | --program-transform- \
                    996:   | --program-transform | --program-transfor \
                    997:   | --program-transfo | --program-transf \
                    998:   | --program-trans | --program-tran \
                    999:   | --progr-tra | --program-tr | --program-t)
                   1000:     ac_prev=program_transform_name ;;
                   1001:   -program-transform-name=* | --program-transform-name=* \
                   1002:   | --program-transform-nam=* | --program-transform-na=* \
                   1003:   | --program-transform-n=* | --program-transform-=* \
                   1004:   | --program-transform=* | --program-transfor=* \
                   1005:   | --program-transfo=* | --program-transf=* \
                   1006:   | --program-trans=* | --program-tran=* \
                   1007:   | --progr-tra=* | --program-tr=* | --program-t=*)
                   1008:     program_transform_name=$ac_optarg ;;
                   1009: 
                   1010:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1011:     ac_prev=pdfdir ;;
                   1012:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1013:     pdfdir=$ac_optarg ;;
                   1014: 
                   1015:   -psdir | --psdir | --psdi | --psd | --ps)
                   1016:     ac_prev=psdir ;;
                   1017:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1018:     psdir=$ac_optarg ;;
                   1019: 
                   1020:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1021:   | -silent | --silent | --silen | --sile | --sil)
                   1022:     silent=yes ;;
                   1023: 
                   1024:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1025:     ac_prev=sbindir ;;
                   1026:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1027:   | --sbi=* | --sb=*)
                   1028:     sbindir=$ac_optarg ;;
                   1029: 
                   1030:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1031:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1032:   | --sharedst | --shareds | --shared | --share | --shar \
                   1033:   | --sha | --sh)
                   1034:     ac_prev=sharedstatedir ;;
                   1035:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1036:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1037:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1038:   | --sha=* | --sh=*)
                   1039:     sharedstatedir=$ac_optarg ;;
                   1040: 
                   1041:   -site | --site | --sit)
                   1042:     ac_prev=site ;;
                   1043:   -site=* | --site=* | --sit=*)
                   1044:     site=$ac_optarg ;;
                   1045: 
                   1046:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1047:     ac_prev=srcdir ;;
                   1048:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   1049:     srcdir=$ac_optarg ;;
                   1050: 
                   1051:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1052:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1053:     ac_prev=sysconfdir ;;
                   1054:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1055:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                   1056:     sysconfdir=$ac_optarg ;;
                   1057: 
                   1058:   -target | --target | --targe | --targ | --tar | --ta | --t)
                   1059:     ac_prev=target_alias ;;
                   1060:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                   1061:     target_alias=$ac_optarg ;;
                   1062: 
                   1063:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1064:     verbose=yes ;;
                   1065: 
                   1066:   -version | --version | --versio | --versi | --vers | -V)
                   1067:     ac_init_version=: ;;
                   1068: 
                   1069:   -with-* | --with-*)
                   1070:     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
                   1071:     # Reject names that are not valid shell variable names.
                   1072:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1073:       as_fn_error $? "invalid package name: $ac_useropt"
                   1074:     ac_useropt_orig=$ac_useropt
                   1075:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1076:     case $ac_user_opts in
                   1077:       *"
                   1078: "with_$ac_useropt"
                   1079: "*) ;;
                   1080:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
                   1081:         ac_unrecognized_sep=', ';;
                   1082:     esac
                   1083:     eval with_$ac_useropt=\$ac_optarg ;;
                   1084: 
                   1085:   -without-* | --without-*)
                   1086:     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
                   1087:     # Reject names that are not valid shell variable names.
                   1088:     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
                   1089:       as_fn_error $? "invalid package name: $ac_useropt"
                   1090:     ac_useropt_orig=$ac_useropt
                   1091:     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
                   1092:     case $ac_user_opts in
                   1093:       *"
                   1094: "with_$ac_useropt"
                   1095: "*) ;;
                   1096:       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
                   1097:         ac_unrecognized_sep=', ';;
                   1098:     esac
                   1099:     eval with_$ac_useropt=no ;;
                   1100: 
                   1101:   --x)
                   1102:     # Obsolete; use --with-x.
                   1103:     with_x=yes ;;
                   1104: 
                   1105:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1106:   | --x-incl | --x-inc | --x-in | --x-i)
                   1107:     ac_prev=x_includes ;;
                   1108:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1109:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                   1110:     x_includes=$ac_optarg ;;
                   1111: 
                   1112:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1113:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1114:     ac_prev=x_libraries ;;
                   1115:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1116:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                   1117:     x_libraries=$ac_optarg ;;
                   1118: 
                   1119:   -*) as_fn_error $? "unrecognized option: \`$ac_option'
                   1120: Try \`$0 --help' for more information"
                   1121:     ;;
                   1122: 
                   1123:   *=*)
                   1124:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1125:     # Reject names that are not valid shell variable names.
                   1126:     case $ac_envvar in #(
                   1127:       '' | [0-9]* | *[!_$as_cr_alnum]* )
                   1128:       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
                   1129:     esac
                   1130:     eval $ac_envvar=\$ac_optarg
                   1131:     export $ac_envvar ;;
                   1132: 
                   1133:   *)
                   1134:     # FIXME: should be removed in autoconf 3.0.
                   1135:     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
                   1136:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
                   1137:       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
                   1138:     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
                   1139:     ;;
                   1140: 
                   1141:   esac
                   1142: done
                   1143: 
                   1144: if test -n "$ac_prev"; then
                   1145:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
                   1146:   as_fn_error $? "missing argument to $ac_option"
                   1147: fi
                   1148: 
                   1149: if test -n "$ac_unrecognized_opts"; then
                   1150:   case $enable_option_checking in
                   1151:     no) ;;
                   1152:     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
                   1153:     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
                   1154:   esac
                   1155: fi
                   1156: 
                   1157: # Check all directory arguments for consistency.
                   1158: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1159:                datadir sysconfdir sharedstatedir localstatedir includedir \
                   1160:                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1161:                libdir localedir mandir
                   1162: do
                   1163:   eval ac_val=\$$ac_var
                   1164:   # Remove trailing slashes.
                   1165:   case $ac_val in
                   1166:     */ )
                   1167:       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
                   1168:       eval $ac_var=\$ac_val;;
                   1169:   esac
                   1170:   # Be sure to have absolute directory names.
                   1171:   case $ac_val in
                   1172:     [\\/$]* | ?:[\\/]* )  continue;;
                   1173:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
                   1174:   esac
                   1175:   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
                   1176: done
                   1177: 
                   1178: # There might be people who depend on the old broken behavior: `$host'
                   1179: # used to hold the argument of --host etc.
                   1180: # FIXME: To remove some day.
                   1181: build=$build_alias
                   1182: host=$host_alias
                   1183: target=$target_alias
                   1184: 
                   1185: # FIXME: To remove some day.
                   1186: if test "x$host_alias" != x; then
                   1187:   if test "x$build_alias" = x; then
                   1188:     cross_compiling=maybe
                   1189:   elif test "x$build_alias" != "x$host_alias"; then
                   1190:     cross_compiling=yes
                   1191:   fi
                   1192: fi
                   1193: 
                   1194: ac_tool_prefix=
                   1195: test -n "$host_alias" && ac_tool_prefix=$host_alias-
                   1196: 
                   1197: test "$silent" = yes && exec 6>/dev/null
                   1198: 
                   1199: 
                   1200: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1201: ac_ls_di=`ls -di .` &&
                   1202: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
                   1203:   as_fn_error $? "working directory cannot be determined"
                   1204: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
                   1205:   as_fn_error $? "pwd does not report name of working directory"
                   1206: 
                   1207: 
                   1208: # Find the source files, if location was not specified.
                   1209: if test -z "$srcdir"; then
                   1210:   ac_srcdir_defaulted=yes
                   1211:   # Try the directory containing this script, then the parent directory.
                   1212:   ac_confdir=`$as_dirname -- "$as_myself" ||
                   1213: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   1214:         X"$as_myself" : 'X\(//\)[^/]' \| \
                   1215:         X"$as_myself" : 'X\(//\)$' \| \
                   1216:         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
                   1217: $as_echo X"$as_myself" |
                   1218:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1219:            s//\1/
                   1220:            q
                   1221:          }
                   1222:          /^X\(\/\/\)[^/].*/{
                   1223:            s//\1/
                   1224:            q
                   1225:          }
                   1226:          /^X\(\/\/\)$/{
                   1227:            s//\1/
                   1228:            q
                   1229:          }
                   1230:          /^X\(\/\).*/{
                   1231:            s//\1/
                   1232:            q
                   1233:          }
                   1234:          s/.*/./; q'`
                   1235:   srcdir=$ac_confdir
                   1236:   if test ! -r "$srcdir/$ac_unique_file"; then
                   1237:     srcdir=..
                   1238:   fi
                   1239: else
                   1240:   ac_srcdir_defaulted=no
                   1241: fi
                   1242: if test ! -r "$srcdir/$ac_unique_file"; then
                   1243:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
                   1244:   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
                   1245: fi
                   1246: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1247: ac_abs_confdir=`(
                   1248:        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
                   1249:        pwd)`
                   1250: # When building in place, set srcdir=.
                   1251: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1252:   srcdir=.
                   1253: fi
                   1254: # Remove unnecessary trailing slashes from srcdir.
                   1255: # Double slashes in file names in object file debugging info
                   1256: # mess up M-x gdb in Emacs.
                   1257: case $srcdir in
                   1258: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1259: esac
                   1260: for ac_var in $ac_precious_vars; do
                   1261:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1262:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1263:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1264:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1265: done
                   1266: 
                   1267: #
                   1268: # Report the --help message.
                   1269: #
                   1270: if test "$ac_init_help" = "long"; then
                   1271:   # Omit some internal or obsolete options to make the list less imposing.
                   1272:   # This message is too long to be a string in the A/UX 3.1 sh.
                   1273:   cat <<_ACEOF
1.1.1.3 ! misho    1274: \`configure' configures rsync 3.1.2 to adapt to many kinds of systems.
1.1       misho    1275: 
                   1276: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1277: 
                   1278: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1279: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1280: 
                   1281: Defaults for the options are specified in brackets.
                   1282: 
                   1283: Configuration:
                   1284:   -h, --help              display this help and exit
                   1285:       --help=short        display options specific to this package
                   1286:       --help=recursive    display the short help of all the included packages
                   1287:   -V, --version           display version information and exit
                   1288:   -q, --quiet, --silent   do not print \`checking ...' messages
                   1289:       --cache-file=FILE   cache test results in FILE [disabled]
                   1290:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1291:   -n, --no-create         do not create output files
                   1292:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1293: 
                   1294: Installation directories:
                   1295:   --prefix=PREFIX         install architecture-independent files in PREFIX
                   1296:                           [$ac_default_prefix]
                   1297:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                   1298:                           [PREFIX]
                   1299: 
                   1300: By default, \`make install' will install all the files in
                   1301: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1302: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1303: for instance \`--prefix=\$HOME'.
                   1304: 
                   1305: For better control, use the options below.
                   1306: 
                   1307: Fine tuning of the installation directories:
                   1308:   --bindir=DIR            user executables [EPREFIX/bin]
                   1309:   --sbindir=DIR           system admin executables [EPREFIX/sbin]
                   1310:   --libexecdir=DIR        program executables [EPREFIX/libexec]
                   1311:   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
                   1312:   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
                   1313:   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
                   1314:   --libdir=DIR            object code libraries [EPREFIX/lib]
                   1315:   --includedir=DIR        C header files [PREFIX/include]
                   1316:   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
                   1317:   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
                   1318:   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
                   1319:   --infodir=DIR           info documentation [DATAROOTDIR/info]
                   1320:   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
                   1321:   --mandir=DIR            man documentation [DATAROOTDIR/man]
1.1.1.3 ! misho    1322:   --docdir=DIR            documentation root [DATAROOTDIR/doc/rsync]
1.1       misho    1323:   --htmldir=DIR           html documentation [DOCDIR]
                   1324:   --dvidir=DIR            dvi documentation [DOCDIR]
                   1325:   --pdfdir=DIR            pdf documentation [DOCDIR]
                   1326:   --psdir=DIR             ps documentation [DOCDIR]
                   1327: _ACEOF
                   1328: 
                   1329:   cat <<\_ACEOF
                   1330: 
                   1331: System types:
                   1332:   --build=BUILD     configure for building on BUILD [guessed]
                   1333:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1334: _ACEOF
                   1335: fi
                   1336: 
                   1337: if test -n "$ac_init_help"; then
1.1.1.3 ! misho    1338:   case $ac_init_help in
        !          1339:      short | recursive ) echo "Configuration of rsync 3.1.2:";;
        !          1340:    esac
1.1       misho    1341:   cat <<\_ACEOF
                   1342: 
                   1343: Optional Features:
                   1344:   --disable-option-checking  ignore unrecognized --enable/--with options
                   1345:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1346:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1347:   --disable-debug         disable debugging symbols and features
                   1348:   --enable-profile        turn on CPU profiling
                   1349:   --enable-maintainer-mode
                   1350:                           turn on extra debug features
                   1351:   --disable-largefile     omit support for large files
                   1352:   --disable-ipv6          do not even try to use IPv6
                   1353:   --disable-locale        disable locale features
                   1354:   --disable-iconv-open    disable all use of iconv_open() function
                   1355:   --disable-iconv         disable rsync's --iconv option
                   1356:   --disable-acl-support   disable ACL support
                   1357:   --disable-xattr-support disable extended attributes
                   1358: 
                   1359: Optional Packages:
                   1360:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1361:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1362:   --with-included-popt    use bundled popt library, not from system
1.1.1.2   misho    1363:   --with-included-zlib    use bundled zlib library, not from system
                   1364:   --with-protected-args   make --protected-args option the default
1.1       misho    1365:   --with-rsync-path=PATH  set default --rsync-path to PATH (default: rsync)
                   1366:   --with-rsyncd-conf=PATH set configuration file for rsync server to PATH
                   1367:                           (default: /etc/rsyncd.conf)
                   1368:   --with-rsh=CMD          set remote shell command to CMD (default: ssh)
                   1369:   --with-nobody-group=GROUP
                   1370:                           set the default unprivileged group (default nobody
                   1371:                           or nogroup)
                   1372: 
                   1373: Some influential environment variables:
                   1374:   CC          C compiler command
                   1375:   CFLAGS      C compiler flags
                   1376:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1377:               nonstandard directory <lib dir>
                   1378:   LIBS        libraries to pass to the linker, e.g. -l<library>
                   1379:   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
                   1380:               you have headers in a nonstandard directory <include dir>
                   1381:   CPP         C preprocessor
                   1382: 
                   1383: Use these variables to override the choices made by `configure' or to help
                   1384: it to find libraries and programs with nonstandard names/locations.
                   1385: 
1.1.1.3 ! misho    1386: Report bugs to <http://rsync.samba.org/bugzilla.html>.
1.1       misho    1387: _ACEOF
                   1388: ac_status=$?
                   1389: fi
                   1390: 
                   1391: if test "$ac_init_help" = "recursive"; then
                   1392:   # If there are subdirs, report their specific --help.
                   1393:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
                   1394:     test -d "$ac_dir" ||
                   1395:       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
                   1396:       continue
                   1397:     ac_builddir=.
                   1398: 
                   1399: case "$ac_dir" in
                   1400: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1401: *)
                   1402:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
                   1403:   # A ".." for each directory in $ac_dir_suffix.
                   1404:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
                   1405:   case $ac_top_builddir_sub in
                   1406:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1407:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1408:   esac ;;
                   1409: esac
                   1410: ac_abs_top_builddir=$ac_pwd
                   1411: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1412: # for backward compatibility:
                   1413: ac_top_builddir=$ac_top_build_prefix
                   1414: 
                   1415: case $srcdir in
                   1416:   .)  # We are building in place.
                   1417:     ac_srcdir=.
                   1418:     ac_top_srcdir=$ac_top_builddir_sub
                   1419:     ac_abs_top_srcdir=$ac_pwd ;;
                   1420:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   1421:     ac_srcdir=$srcdir$ac_dir_suffix;
                   1422:     ac_top_srcdir=$srcdir
                   1423:     ac_abs_top_srcdir=$srcdir ;;
                   1424:   *) # Relative name.
                   1425:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1426:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1427:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1428: esac
                   1429: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1430: 
                   1431:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1432:     # Check for guested configure.
                   1433:     if test -f "$ac_srcdir/configure.gnu"; then
                   1434:       echo &&
                   1435:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1436:     elif test -f "$ac_srcdir/configure"; then
                   1437:       echo &&
                   1438:       $SHELL "$ac_srcdir/configure" --help=recursive
                   1439:     else
                   1440:       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
                   1441:     fi || ac_status=$?
                   1442:     cd "$ac_pwd" || { ac_status=$?; break; }
                   1443:   done
                   1444: fi
                   1445: 
                   1446: test -n "$ac_init_help" && exit $ac_status
                   1447: if $ac_init_version; then
                   1448:   cat <<\_ACEOF
1.1.1.3 ! misho    1449: rsync configure 3.1.2
        !          1450: generated by GNU Autoconf 2.69
1.1       misho    1451: 
1.1.1.3 ! misho    1452: Copyright (C) 2012 Free Software Foundation, Inc.
1.1       misho    1453: This configure script is free software; the Free Software Foundation
                   1454: gives unlimited permission to copy, distribute and modify it.
                   1455: _ACEOF
                   1456:   exit
                   1457: fi
                   1458: 
                   1459: ## ------------------------ ##
                   1460: ## Autoconf initialization. ##
                   1461: ## ------------------------ ##
                   1462: 
                   1463: # ac_fn_c_try_compile LINENO
                   1464: # --------------------------
                   1465: # Try to compile conftest.$ac_ext, and return whether this succeeded.
                   1466: ac_fn_c_try_compile ()
                   1467: {
                   1468:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1469:   rm -f conftest.$ac_objext
                   1470:   if { { ac_try="$ac_compile"
                   1471: case "(($ac_try" in
                   1472:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1473:   *) ac_try_echo=$ac_try;;
                   1474: esac
                   1475: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1476: $as_echo "$ac_try_echo"; } >&5
                   1477:   (eval "$ac_compile") 2>conftest.err
                   1478:   ac_status=$?
                   1479:   if test -s conftest.err; then
                   1480:     grep -v '^ *+' conftest.err >conftest.er1
                   1481:     cat conftest.er1 >&5
                   1482:     mv -f conftest.er1 conftest.err
                   1483:   fi
                   1484:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1485:   test $ac_status = 0; } && {
                   1486:         test -z "$ac_c_werror_flag" ||
                   1487:         test ! -s conftest.err
                   1488:        } && test -s conftest.$ac_objext; then :
                   1489:   ac_retval=0
                   1490: else
                   1491:   $as_echo "$as_me: failed program was:" >&5
                   1492: sed 's/^/| /' conftest.$ac_ext >&5
                   1493: 
                   1494:        ac_retval=1
                   1495: fi
                   1496:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1497:   as_fn_set_status $ac_retval
                   1498: 
                   1499: } # ac_fn_c_try_compile
                   1500: 
                   1501: # ac_fn_c_try_cpp LINENO
                   1502: # ----------------------
                   1503: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
                   1504: ac_fn_c_try_cpp ()
                   1505: {
                   1506:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1507:   if { { ac_try="$ac_cpp conftest.$ac_ext"
                   1508: case "(($ac_try" in
                   1509:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1510:   *) ac_try_echo=$ac_try;;
                   1511: esac
                   1512: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1513: $as_echo "$ac_try_echo"; } >&5
                   1514:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
                   1515:   ac_status=$?
                   1516:   if test -s conftest.err; then
                   1517:     grep -v '^ *+' conftest.err >conftest.er1
                   1518:     cat conftest.er1 >&5
                   1519:     mv -f conftest.er1 conftest.err
                   1520:   fi
                   1521:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1522:   test $ac_status = 0; } > conftest.i && {
                   1523:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   1524:         test ! -s conftest.err
                   1525:        }; then :
                   1526:   ac_retval=0
                   1527: else
                   1528:   $as_echo "$as_me: failed program was:" >&5
                   1529: sed 's/^/| /' conftest.$ac_ext >&5
                   1530: 
                   1531:     ac_retval=1
                   1532: fi
                   1533:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1534:   as_fn_set_status $ac_retval
                   1535: 
                   1536: } # ac_fn_c_try_cpp
                   1537: 
                   1538: # ac_fn_c_try_run LINENO
                   1539: # ----------------------
                   1540: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
                   1541: # that executables *can* be run.
                   1542: ac_fn_c_try_run ()
                   1543: {
                   1544:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1545:   if { { ac_try="$ac_link"
                   1546: case "(($ac_try" in
                   1547:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1548:   *) ac_try_echo=$ac_try;;
                   1549: esac
                   1550: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1551: $as_echo "$ac_try_echo"; } >&5
                   1552:   (eval "$ac_link") 2>&5
                   1553:   ac_status=$?
                   1554:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1555:   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
                   1556:   { { case "(($ac_try" in
                   1557:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1558:   *) ac_try_echo=$ac_try;;
                   1559: esac
                   1560: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1561: $as_echo "$ac_try_echo"; } >&5
                   1562:   (eval "$ac_try") 2>&5
                   1563:   ac_status=$?
                   1564:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1565:   test $ac_status = 0; }; }; then :
                   1566:   ac_retval=0
                   1567: else
                   1568:   $as_echo "$as_me: program exited with status $ac_status" >&5
                   1569:        $as_echo "$as_me: failed program was:" >&5
                   1570: sed 's/^/| /' conftest.$ac_ext >&5
                   1571: 
                   1572:        ac_retval=$ac_status
                   1573: fi
                   1574:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1575:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1576:   as_fn_set_status $ac_retval
                   1577: 
                   1578: } # ac_fn_c_try_run
                   1579: 
                   1580: # ac_fn_c_try_link LINENO
                   1581: # -----------------------
                   1582: # Try to link conftest.$ac_ext, and return whether this succeeded.
                   1583: ac_fn_c_try_link ()
                   1584: {
                   1585:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1586:   rm -f conftest.$ac_objext conftest$ac_exeext
                   1587:   if { { ac_try="$ac_link"
                   1588: case "(($ac_try" in
                   1589:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   1590:   *) ac_try_echo=$ac_try;;
                   1591: esac
                   1592: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   1593: $as_echo "$ac_try_echo"; } >&5
                   1594:   (eval "$ac_link") 2>conftest.err
                   1595:   ac_status=$?
                   1596:   if test -s conftest.err; then
                   1597:     grep -v '^ *+' conftest.err >conftest.er1
                   1598:     cat conftest.er1 >&5
                   1599:     mv -f conftest.er1 conftest.err
                   1600:   fi
                   1601:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   1602:   test $ac_status = 0; } && {
                   1603:         test -z "$ac_c_werror_flag" ||
                   1604:         test ! -s conftest.err
                   1605:        } && test -s conftest$ac_exeext && {
                   1606:         test "$cross_compiling" = yes ||
1.1.1.3 ! misho    1607:         test -x conftest$ac_exeext
1.1       misho    1608:        }; then :
                   1609:   ac_retval=0
                   1610: else
                   1611:   $as_echo "$as_me: failed program was:" >&5
                   1612: sed 's/^/| /' conftest.$ac_ext >&5
                   1613: 
                   1614:        ac_retval=1
                   1615: fi
                   1616:   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
                   1617:   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
                   1618:   # interfere with the next link command; also delete a directory that is
                   1619:   # left behind by Apple's compiler.  We do this before executing the actions.
                   1620:   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
                   1621:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1622:   as_fn_set_status $ac_retval
                   1623: 
                   1624: } # ac_fn_c_try_link
                   1625: 
                   1626: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
                   1627: # -------------------------------------------------------
                   1628: # Tests whether HEADER exists and can be compiled using the include files in
                   1629: # INCLUDES, setting the cache variable VAR accordingly.
                   1630: ac_fn_c_check_header_compile ()
                   1631: {
                   1632:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1633:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1634: $as_echo_n "checking for $2... " >&6; }
                   1635: if eval \${$3+:} false; then :
                   1636:   $as_echo_n "(cached) " >&6
                   1637: else
                   1638:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1639: /* end confdefs.h.  */
                   1640: $4
                   1641: #include <$2>
                   1642: _ACEOF
                   1643: if ac_fn_c_try_compile "$LINENO"; then :
                   1644:   eval "$3=yes"
                   1645: else
                   1646:   eval "$3=no"
                   1647: fi
                   1648: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1649: fi
                   1650: eval ac_res=\$$3
                   1651:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1652: $as_echo "$ac_res" >&6; }
                   1653:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1654: 
                   1655: } # ac_fn_c_check_header_compile
                   1656: 
                   1657: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
                   1658: # -------------------------------------------------------
                   1659: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
                   1660: # the include files in INCLUDES and setting the cache variable VAR
                   1661: # accordingly.
                   1662: ac_fn_c_check_header_mongrel ()
                   1663: {
                   1664:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1665:   if eval \${$3+:} false; then :
                   1666:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1667: $as_echo_n "checking for $2... " >&6; }
                   1668: if eval \${$3+:} false; then :
                   1669:   $as_echo_n "(cached) " >&6
                   1670: fi
                   1671: eval ac_res=\$$3
                   1672:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1673: $as_echo "$ac_res" >&6; }
                   1674: else
                   1675:   # Is the header compilable?
                   1676: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
                   1677: $as_echo_n "checking $2 usability... " >&6; }
                   1678: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1679: /* end confdefs.h.  */
                   1680: $4
                   1681: #include <$2>
                   1682: _ACEOF
                   1683: if ac_fn_c_try_compile "$LINENO"; then :
                   1684:   ac_header_compiler=yes
                   1685: else
                   1686:   ac_header_compiler=no
                   1687: fi
                   1688: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1689: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
                   1690: $as_echo "$ac_header_compiler" >&6; }
                   1691: 
                   1692: # Is the header present?
                   1693: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
                   1694: $as_echo_n "checking $2 presence... " >&6; }
                   1695: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1696: /* end confdefs.h.  */
                   1697: #include <$2>
                   1698: _ACEOF
                   1699: if ac_fn_c_try_cpp "$LINENO"; then :
                   1700:   ac_header_preproc=yes
                   1701: else
                   1702:   ac_header_preproc=no
                   1703: fi
                   1704: rm -f conftest.err conftest.i conftest.$ac_ext
                   1705: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
                   1706: $as_echo "$ac_header_preproc" >&6; }
                   1707: 
                   1708: # So?  What about this header?
                   1709: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
                   1710:   yes:no: )
                   1711:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
                   1712: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   1713:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   1714: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
                   1715:     ;;
                   1716:   no:yes:* )
                   1717:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
                   1718: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
                   1719:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
                   1720: $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
                   1721:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
                   1722: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
                   1723:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
                   1724: $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
                   1725:     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
                   1726: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1.1.1.3 ! misho    1727: ( $as_echo "## --------------------------------------------------- ##
        !          1728: ## Report this to http://rsync.samba.org/bugzilla.html ##
        !          1729: ## --------------------------------------------------- ##"
        !          1730:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.1       misho    1731:     ;;
                   1732: esac
                   1733:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1734: $as_echo_n "checking for $2... " >&6; }
                   1735: if eval \${$3+:} false; then :
                   1736:   $as_echo_n "(cached) " >&6
                   1737: else
                   1738:   eval "$3=\$ac_header_compiler"
                   1739: fi
                   1740: eval ac_res=\$$3
                   1741:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1742: $as_echo "$ac_res" >&6; }
                   1743: fi
                   1744:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1745: 
                   1746: } # ac_fn_c_check_header_mongrel
                   1747: 
                   1748: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
                   1749: # --------------------------------------------
                   1750: # Tries to find the compile-time value of EXPR in a program that includes
                   1751: # INCLUDES, setting VAR accordingly. Returns whether the value could be
                   1752: # computed
                   1753: ac_fn_c_compute_int ()
                   1754: {
                   1755:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1756:   if test "$cross_compiling" = yes; then
                   1757:     # Depending upon the size, compute the lo and hi bounds.
                   1758: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1759: /* end confdefs.h.  */
                   1760: $4
                   1761: int
                   1762: main ()
                   1763: {
                   1764: static int test_array [1 - 2 * !(($2) >= 0)];
1.1.1.3 ! misho    1765: test_array [0] = 0;
        !          1766: return test_array [0];
1.1       misho    1767: 
                   1768:   ;
                   1769:   return 0;
                   1770: }
                   1771: _ACEOF
                   1772: if ac_fn_c_try_compile "$LINENO"; then :
                   1773:   ac_lo=0 ac_mid=0
                   1774:   while :; do
                   1775:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1776: /* end confdefs.h.  */
                   1777: $4
                   1778: int
                   1779: main ()
                   1780: {
                   1781: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1.1.1.3 ! misho    1782: test_array [0] = 0;
        !          1783: return test_array [0];
1.1       misho    1784: 
                   1785:   ;
                   1786:   return 0;
                   1787: }
                   1788: _ACEOF
                   1789: if ac_fn_c_try_compile "$LINENO"; then :
                   1790:   ac_hi=$ac_mid; break
                   1791: else
                   1792:   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                   1793:                        if test $ac_lo -le $ac_mid; then
                   1794:                          ac_lo= ac_hi=
                   1795:                          break
                   1796:                        fi
                   1797:                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
                   1798: fi
                   1799: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1800:   done
                   1801: else
                   1802:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1803: /* end confdefs.h.  */
                   1804: $4
                   1805: int
                   1806: main ()
                   1807: {
                   1808: static int test_array [1 - 2 * !(($2) < 0)];
1.1.1.3 ! misho    1809: test_array [0] = 0;
        !          1810: return test_array [0];
1.1       misho    1811: 
                   1812:   ;
                   1813:   return 0;
                   1814: }
                   1815: _ACEOF
                   1816: if ac_fn_c_try_compile "$LINENO"; then :
                   1817:   ac_hi=-1 ac_mid=-1
                   1818:   while :; do
                   1819:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1820: /* end confdefs.h.  */
                   1821: $4
                   1822: int
                   1823: main ()
                   1824: {
                   1825: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1.1.1.3 ! misho    1826: test_array [0] = 0;
        !          1827: return test_array [0];
1.1       misho    1828: 
                   1829:   ;
                   1830:   return 0;
                   1831: }
                   1832: _ACEOF
                   1833: if ac_fn_c_try_compile "$LINENO"; then :
                   1834:   ac_lo=$ac_mid; break
                   1835: else
                   1836:   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                   1837:                        if test $ac_mid -le $ac_hi; then
                   1838:                          ac_lo= ac_hi=
                   1839:                          break
                   1840:                        fi
                   1841:                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
                   1842: fi
                   1843: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1844:   done
                   1845: else
                   1846:   ac_lo= ac_hi=
                   1847: fi
                   1848: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1849: fi
                   1850: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1851: # Binary search between lo and hi bounds.
                   1852: while test "x$ac_lo" != "x$ac_hi"; do
                   1853:   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
                   1854:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1855: /* end confdefs.h.  */
                   1856: $4
                   1857: int
                   1858: main ()
                   1859: {
                   1860: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1.1.1.3 ! misho    1861: test_array [0] = 0;
        !          1862: return test_array [0];
1.1       misho    1863: 
                   1864:   ;
                   1865:   return 0;
                   1866: }
                   1867: _ACEOF
                   1868: if ac_fn_c_try_compile "$LINENO"; then :
                   1869:   ac_hi=$ac_mid
                   1870: else
                   1871:   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
                   1872: fi
                   1873: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1874: done
                   1875: case $ac_lo in #((
                   1876: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
                   1877: '') ac_retval=1 ;;
                   1878: esac
                   1879:   else
                   1880:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1881: /* end confdefs.h.  */
                   1882: $4
                   1883: static long int longval () { return $2; }
                   1884: static unsigned long int ulongval () { return $2; }
                   1885: #include <stdio.h>
                   1886: #include <stdlib.h>
                   1887: int
                   1888: main ()
                   1889: {
                   1890: 
                   1891:   FILE *f = fopen ("conftest.val", "w");
                   1892:   if (! f)
                   1893:     return 1;
                   1894:   if (($2) < 0)
                   1895:     {
                   1896:       long int i = longval ();
                   1897:       if (i != ($2))
                   1898:        return 1;
                   1899:       fprintf (f, "%ld", i);
                   1900:     }
                   1901:   else
                   1902:     {
                   1903:       unsigned long int i = ulongval ();
                   1904:       if (i != ($2))
                   1905:        return 1;
                   1906:       fprintf (f, "%lu", i);
                   1907:     }
                   1908:   /* Do not output a trailing newline, as this causes \r\n confusion
                   1909:      on some platforms.  */
                   1910:   return ferror (f) || fclose (f) != 0;
                   1911: 
                   1912:   ;
                   1913:   return 0;
                   1914: }
                   1915: _ACEOF
                   1916: if ac_fn_c_try_run "$LINENO"; then :
                   1917:   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
                   1918: else
                   1919:   ac_retval=1
                   1920: fi
                   1921: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   1922:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   1923: rm -f conftest.val
                   1924: 
                   1925:   fi
                   1926:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1927:   as_fn_set_status $ac_retval
                   1928: 
                   1929: } # ac_fn_c_compute_int
                   1930: 
                   1931: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
                   1932: # -------------------------------------------
                   1933: # Tests whether TYPE exists after having included INCLUDES, setting cache
                   1934: # variable VAR accordingly.
                   1935: ac_fn_c_check_type ()
                   1936: {
                   1937:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1938:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   1939: $as_echo_n "checking for $2... " >&6; }
                   1940: if eval \${$3+:} false; then :
                   1941:   $as_echo_n "(cached) " >&6
                   1942: else
                   1943:   eval "$3=no"
                   1944:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1945: /* end confdefs.h.  */
                   1946: $4
                   1947: int
                   1948: main ()
                   1949: {
                   1950: if (sizeof ($2))
                   1951:         return 0;
                   1952:   ;
                   1953:   return 0;
                   1954: }
                   1955: _ACEOF
                   1956: if ac_fn_c_try_compile "$LINENO"; then :
                   1957:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1958: /* end confdefs.h.  */
                   1959: $4
                   1960: int
                   1961: main ()
                   1962: {
                   1963: if (sizeof (($2)))
                   1964:            return 0;
                   1965:   ;
                   1966:   return 0;
                   1967: }
                   1968: _ACEOF
                   1969: if ac_fn_c_try_compile "$LINENO"; then :
                   1970: 
                   1971: else
                   1972:   eval "$3=yes"
                   1973: fi
                   1974: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1975: fi
                   1976: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   1977: fi
                   1978: eval ac_res=\$$3
                   1979:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   1980: $as_echo "$ac_res" >&6; }
                   1981:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   1982: 
                   1983: } # ac_fn_c_check_type
                   1984: 
                   1985: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
                   1986: # ----------------------------------------------------
                   1987: # Tries to find if the field MEMBER exists in type AGGR, after including
                   1988: # INCLUDES, setting cache variable VAR accordingly.
                   1989: ac_fn_c_check_member ()
                   1990: {
                   1991:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   1992:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
                   1993: $as_echo_n "checking for $2.$3... " >&6; }
                   1994: if eval \${$4+:} false; then :
                   1995:   $as_echo_n "(cached) " >&6
                   1996: else
                   1997:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   1998: /* end confdefs.h.  */
                   1999: $5
                   2000: int
                   2001: main ()
                   2002: {
                   2003: static $2 ac_aggr;
                   2004: if (ac_aggr.$3)
                   2005: return 0;
                   2006:   ;
                   2007:   return 0;
                   2008: }
                   2009: _ACEOF
                   2010: if ac_fn_c_try_compile "$LINENO"; then :
                   2011:   eval "$4=yes"
                   2012: else
                   2013:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2014: /* end confdefs.h.  */
                   2015: $5
                   2016: int
                   2017: main ()
                   2018: {
                   2019: static $2 ac_aggr;
                   2020: if (sizeof ac_aggr.$3)
                   2021: return 0;
                   2022:   ;
                   2023:   return 0;
                   2024: }
                   2025: _ACEOF
                   2026: if ac_fn_c_try_compile "$LINENO"; then :
                   2027:   eval "$4=yes"
                   2028: else
                   2029:   eval "$4=no"
                   2030: fi
                   2031: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2032: fi
                   2033: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   2034: fi
                   2035: eval ac_res=\$$4
                   2036:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2037: $as_echo "$ac_res" >&6; }
                   2038:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2039: 
                   2040: } # ac_fn_c_check_member
                   2041: 
                   2042: # ac_fn_c_check_func LINENO FUNC VAR
                   2043: # ----------------------------------
                   2044: # Tests whether FUNC exists, setting the cache variable VAR accordingly
                   2045: ac_fn_c_check_func ()
                   2046: {
                   2047:   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   2048:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
                   2049: $as_echo_n "checking for $2... " >&6; }
                   2050: if eval \${$3+:} false; then :
                   2051:   $as_echo_n "(cached) " >&6
                   2052: else
                   2053:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2054: /* end confdefs.h.  */
                   2055: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
                   2056:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   2057: #define $2 innocuous_$2
                   2058: 
                   2059: /* System header to define __stub macros and hopefully few prototypes,
                   2060:     which can conflict with char $2 (); below.
                   2061:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   2062:     <limits.h> exists even on freestanding compilers.  */
                   2063: 
                   2064: #ifdef __STDC__
                   2065: # include <limits.h>
                   2066: #else
                   2067: # include <assert.h>
                   2068: #endif
                   2069: 
                   2070: #undef $2
                   2071: 
                   2072: /* Override any GCC internal prototype to avoid an error.
                   2073:    Use char because int might match the return type of a GCC
                   2074:    builtin and then its argument prototype would still apply.  */
                   2075: #ifdef __cplusplus
                   2076: extern "C"
                   2077: #endif
                   2078: char $2 ();
                   2079: /* The GNU C library defines this for functions which it implements
                   2080:     to always fail with ENOSYS.  Some functions are actually named
                   2081:     something starting with __ and the normal name is an alias.  */
                   2082: #if defined __stub_$2 || defined __stub___$2
                   2083: choke me
                   2084: #endif
                   2085: 
                   2086: int
                   2087: main ()
                   2088: {
                   2089: return $2 ();
                   2090:   ;
                   2091:   return 0;
                   2092: }
                   2093: _ACEOF
                   2094: if ac_fn_c_try_link "$LINENO"; then :
                   2095:   eval "$3=yes"
                   2096: else
                   2097:   eval "$3=no"
                   2098: fi
                   2099: rm -f core conftest.err conftest.$ac_objext \
                   2100:     conftest$ac_exeext conftest.$ac_ext
                   2101: fi
                   2102: eval ac_res=\$$3
                   2103:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   2104: $as_echo "$ac_res" >&6; }
                   2105:   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
                   2106: 
                   2107: } # ac_fn_c_check_func
                   2108: cat >config.log <<_ACEOF
                   2109: This file contains any messages produced by compilers while
                   2110: running configure, to aid debugging if configure makes a mistake.
                   2111: 
1.1.1.3 ! misho    2112: It was created by rsync $as_me 3.1.2, which was
        !          2113: generated by GNU Autoconf 2.69.  Invocation command line was
1.1       misho    2114: 
                   2115:   $ $0 $@
                   2116: 
                   2117: _ACEOF
                   2118: exec 5>>config.log
                   2119: {
                   2120: cat <<_ASUNAME
                   2121: ## --------- ##
                   2122: ## Platform. ##
                   2123: ## --------- ##
                   2124: 
                   2125: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   2126: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   2127: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   2128: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   2129: uname -v = `(uname -v) 2>/dev/null || echo unknown`
                   2130: 
                   2131: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   2132: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
                   2133: 
                   2134: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   2135: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   2136: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   2137: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
                   2138: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   2139: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   2140: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
                   2141: 
                   2142: _ASUNAME
                   2143: 
                   2144: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2145: for as_dir in $PATH
                   2146: do
                   2147:   IFS=$as_save_IFS
                   2148:   test -z "$as_dir" && as_dir=.
                   2149:     $as_echo "PATH: $as_dir"
                   2150:   done
                   2151: IFS=$as_save_IFS
                   2152: 
                   2153: } >&5
                   2154: 
                   2155: cat >&5 <<_ACEOF
                   2156: 
                   2157: 
                   2158: ## ----------- ##
                   2159: ## Core tests. ##
                   2160: ## ----------- ##
                   2161: 
                   2162: _ACEOF
                   2163: 
                   2164: 
                   2165: # Keep a trace of the command line.
                   2166: # Strip out --no-create and --no-recursion so they do not pile up.
                   2167: # Strip out --silent because we don't want to record it for future runs.
                   2168: # Also quote any args containing shell meta-characters.
                   2169: # Make two passes to allow for proper duplicate-argument suppression.
                   2170: ac_configure_args=
                   2171: ac_configure_args0=
                   2172: ac_configure_args1=
                   2173: ac_must_keep_next=false
                   2174: for ac_pass in 1 2
                   2175: do
                   2176:   for ac_arg
                   2177:   do
                   2178:     case $ac_arg in
                   2179:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   2180:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   2181:     | -silent | --silent | --silen | --sile | --sil)
                   2182:       continue ;;
                   2183:     *\'*)
                   2184:       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2185:     esac
                   2186:     case $ac_pass in
                   2187:     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
                   2188:     2)
                   2189:       as_fn_append ac_configure_args1 " '$ac_arg'"
                   2190:       if test $ac_must_keep_next = true; then
                   2191:        ac_must_keep_next=false # Got value, back to normal.
                   2192:       else
                   2193:        case $ac_arg in
                   2194:          *=* | --config-cache | -C | -disable-* | --disable-* \
                   2195:          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   2196:          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   2197:          | -with-* | --with-* | -without-* | --without-* | --x)
                   2198:            case "$ac_configure_args0 " in
                   2199:              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   2200:            esac
                   2201:            ;;
                   2202:          -* ) ac_must_keep_next=true ;;
                   2203:        esac
                   2204:       fi
                   2205:       as_fn_append ac_configure_args " '$ac_arg'"
                   2206:       ;;
                   2207:     esac
                   2208:   done
                   2209: done
                   2210: { ac_configure_args0=; unset ac_configure_args0;}
                   2211: { ac_configure_args1=; unset ac_configure_args1;}
                   2212: 
                   2213: # When interrupted or exit'd, cleanup temporary files, and complete
                   2214: # config.log.  We remove comments because anyway the quotes in there
                   2215: # would cause problems or look ugly.
                   2216: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   2217: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
                   2218: trap 'exit_status=$?
                   2219:   # Save into config.log some information that might help in debugging.
                   2220:   {
                   2221:     echo
                   2222: 
                   2223:     $as_echo "## ---------------- ##
                   2224: ## Cache variables. ##
                   2225: ## ---------------- ##"
                   2226:     echo
                   2227:     # The following way of writing the cache mishandles newlines in values,
                   2228: (
                   2229:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   2230:     eval ac_val=\$$ac_var
                   2231:     case $ac_val in #(
                   2232:     *${as_nl}*)
                   2233:       case $ac_var in #(
                   2234:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   2235: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   2236:       esac
                   2237:       case $ac_var in #(
                   2238:       _ | IFS | as_nl) ;; #(
                   2239:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   2240:       *) { eval $ac_var=; unset $ac_var;} ;;
                   2241:       esac ;;
                   2242:     esac
                   2243:   done
                   2244:   (set) 2>&1 |
                   2245:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   2246:     *${as_nl}ac_space=\ *)
                   2247:       sed -n \
                   2248:        "s/'\''/'\''\\\\'\'''\''/g;
                   2249:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   2250:       ;; #(
                   2251:     *)
                   2252:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   2253:       ;;
                   2254:     esac |
                   2255:     sort
                   2256: )
                   2257:     echo
                   2258: 
                   2259:     $as_echo "## ----------------- ##
                   2260: ## Output variables. ##
                   2261: ## ----------------- ##"
                   2262:     echo
                   2263:     for ac_var in $ac_subst_vars
                   2264:     do
                   2265:       eval ac_val=\$$ac_var
                   2266:       case $ac_val in
                   2267:       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2268:       esac
                   2269:       $as_echo "$ac_var='\''$ac_val'\''"
                   2270:     done | sort
                   2271:     echo
                   2272: 
                   2273:     if test -n "$ac_subst_files"; then
                   2274:       $as_echo "## ------------------- ##
                   2275: ## File substitutions. ##
                   2276: ## ------------------- ##"
                   2277:       echo
                   2278:       for ac_var in $ac_subst_files
                   2279:       do
                   2280:        eval ac_val=\$$ac_var
                   2281:        case $ac_val in
                   2282:        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   2283:        esac
                   2284:        $as_echo "$ac_var='\''$ac_val'\''"
                   2285:       done | sort
                   2286:       echo
                   2287:     fi
                   2288: 
                   2289:     if test -s confdefs.h; then
                   2290:       $as_echo "## ----------- ##
                   2291: ## confdefs.h. ##
                   2292: ## ----------- ##"
                   2293:       echo
                   2294:       cat confdefs.h
                   2295:       echo
                   2296:     fi
                   2297:     test "$ac_signal" != 0 &&
                   2298:       $as_echo "$as_me: caught signal $ac_signal"
                   2299:     $as_echo "$as_me: exit $exit_status"
                   2300:   } >&5
                   2301:   rm -f core *.core core.conftest.* &&
                   2302:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
                   2303:     exit $exit_status
                   2304: ' 0
                   2305: for ac_signal in 1 2 13 15; do
                   2306:   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
                   2307: done
                   2308: ac_signal=0
                   2309: 
                   2310: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   2311: rm -f -r conftest* confdefs.h
                   2312: 
                   2313: $as_echo "/* confdefs.h */" > confdefs.h
                   2314: 
                   2315: # Predefined preprocessor variables.
                   2316: 
                   2317: cat >>confdefs.h <<_ACEOF
                   2318: #define PACKAGE_NAME "$PACKAGE_NAME"
                   2319: _ACEOF
                   2320: 
                   2321: cat >>confdefs.h <<_ACEOF
                   2322: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
                   2323: _ACEOF
                   2324: 
                   2325: cat >>confdefs.h <<_ACEOF
                   2326: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   2327: _ACEOF
                   2328: 
                   2329: cat >>confdefs.h <<_ACEOF
                   2330: #define PACKAGE_STRING "$PACKAGE_STRING"
                   2331: _ACEOF
                   2332: 
                   2333: cat >>confdefs.h <<_ACEOF
                   2334: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   2335: _ACEOF
                   2336: 
                   2337: cat >>confdefs.h <<_ACEOF
                   2338: #define PACKAGE_URL "$PACKAGE_URL"
                   2339: _ACEOF
                   2340: 
                   2341: 
                   2342: # Let the site file select an alternate cache file if it wants to.
                   2343: # Prefer an explicitly selected file to automatically selected ones.
                   2344: ac_site_file1=NONE
                   2345: ac_site_file2=NONE
                   2346: if test -n "$CONFIG_SITE"; then
                   2347:   # We do not want a PATH search for config.site.
                   2348:   case $CONFIG_SITE in #((
                   2349:     -*)  ac_site_file1=./$CONFIG_SITE;;
                   2350:     */*) ac_site_file1=$CONFIG_SITE;;
                   2351:     *)   ac_site_file1=./$CONFIG_SITE;;
                   2352:   esac
                   2353: elif test "x$prefix" != xNONE; then
                   2354:   ac_site_file1=$prefix/share/config.site
                   2355:   ac_site_file2=$prefix/etc/config.site
                   2356: else
                   2357:   ac_site_file1=$ac_default_prefix/share/config.site
                   2358:   ac_site_file2=$ac_default_prefix/etc/config.site
                   2359: fi
                   2360: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
                   2361: do
                   2362:   test "x$ac_site_file" = xNONE && continue
                   2363:   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
                   2364:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
                   2365: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
                   2366:     sed 's/^/| /' "$ac_site_file" >&5
                   2367:     . "$ac_site_file" \
                   2368:       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2369: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2370: as_fn_error $? "failed to load site script $ac_site_file
                   2371: See \`config.log' for more details" "$LINENO" 5; }
                   2372:   fi
                   2373: done
                   2374: 
                   2375: if test -r "$cache_file"; then
                   2376:   # Some versions of bash will fail to source /dev/null (special files
                   2377:   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
                   2378:   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
                   2379:     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
                   2380: $as_echo "$as_me: loading cache $cache_file" >&6;}
                   2381:     case $cache_file in
                   2382:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   2383:       *)                      . "./$cache_file";;
                   2384:     esac
                   2385:   fi
                   2386: else
                   2387:   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
                   2388: $as_echo "$as_me: creating cache $cache_file" >&6;}
                   2389:   >$cache_file
                   2390: fi
                   2391: 
                   2392: as_fn_append ac_header_list " utime.h"
                   2393: # Check that the precious variables saved in the cache have kept the same
                   2394: # value.
                   2395: ac_cache_corrupted=false
                   2396: for ac_var in $ac_precious_vars; do
                   2397:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   2398:   eval ac_new_set=\$ac_env_${ac_var}_set
                   2399:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   2400:   eval ac_new_val=\$ac_env_${ac_var}_value
                   2401:   case $ac_old_set,$ac_new_set in
                   2402:     set,)
                   2403:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   2404: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   2405:       ac_cache_corrupted=: ;;
                   2406:     ,set)
                   2407:       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
                   2408: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   2409:       ac_cache_corrupted=: ;;
                   2410:     ,);;
                   2411:     *)
                   2412:       if test "x$ac_old_val" != "x$ac_new_val"; then
                   2413:        # differences in whitespace do not lead to failure.
                   2414:        ac_old_val_w=`echo x $ac_old_val`
                   2415:        ac_new_val_w=`echo x $ac_new_val`
                   2416:        if test "$ac_old_val_w" != "$ac_new_val_w"; then
                   2417:          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
                   2418: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                   2419:          ac_cache_corrupted=:
                   2420:        else
                   2421:          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
                   2422: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
                   2423:          eval $ac_var=\$ac_old_val
                   2424:        fi
                   2425:        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
                   2426: $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
                   2427:        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
                   2428: $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
                   2429:       fi;;
                   2430:   esac
                   2431:   # Pass precious variables to config.status.
                   2432:   if test "$ac_new_set" = set; then
                   2433:     case $ac_new_val in
                   2434:     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   2435:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2436:     esac
                   2437:     case " $ac_configure_args " in
                   2438:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2439:       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
                   2440:     esac
                   2441:   fi
                   2442: done
                   2443: if $ac_cache_corrupted; then
                   2444:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2445: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2446:   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
                   2447: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
                   2448:   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
                   2449: fi
                   2450: ## -------------------- ##
                   2451: ## Main body of script. ##
                   2452: ## -------------------- ##
                   2453: 
                   2454: ac_ext=c
                   2455: ac_cpp='$CPP $CPPFLAGS'
                   2456: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2457: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2458: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   2459: 
                   2460: 
                   2461: 
1.1.1.3 ! misho    2462: 
        !          2463: 
1.1       misho    2464: ac_config_headers="$ac_config_headers config.h"
                   2465: 
                   2466: 
                   2467: 
1.1.1.3 ! misho    2468: RSYNC_VERSION=$PACKAGE_VERSION
1.1       misho    2469: 
1.1.1.3 ! misho    2470: { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring rsync $PACKAGE_VERSION" >&5
        !          2471: $as_echo "$as_me: Configuring rsync $PACKAGE_VERSION" >&6;}
1.1       misho    2472: 
                   2473: 
                   2474: cat >>confdefs.h <<_ACEOF
1.1.1.3 ! misho    2475: #define RSYNC_VERSION "$PACKAGE_VERSION"
1.1       misho    2476: _ACEOF
                   2477: 
                   2478: 
                   2479: LDFLAGS=${LDFLAGS-""}
                   2480: 
                   2481: ac_aux_dir=
                   2482: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
                   2483:   if test -f "$ac_dir/install-sh"; then
                   2484:     ac_aux_dir=$ac_dir
                   2485:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   2486:     break
                   2487:   elif test -f "$ac_dir/install.sh"; then
                   2488:     ac_aux_dir=$ac_dir
                   2489:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   2490:     break
                   2491:   elif test -f "$ac_dir/shtool"; then
                   2492:     ac_aux_dir=$ac_dir
                   2493:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   2494:     break
                   2495:   fi
                   2496: done
                   2497: if test -z "$ac_aux_dir"; then
                   2498:   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
                   2499: fi
                   2500: 
                   2501: # These three variables are undocumented and unsupported,
                   2502: # and are intended to be withdrawn in a future Autoconf release.
                   2503: # They can cause serious problems if a builder's source tree is in a directory
                   2504: # whose full name contains unusual characters.
                   2505: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   2506: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   2507: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
                   2508: 
                   2509: 
                   2510: # Make sure we can run config.sub.
                   2511: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
                   2512:   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
                   2513: 
                   2514: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
                   2515: $as_echo_n "checking build system type... " >&6; }
                   2516: if ${ac_cv_build+:} false; then :
                   2517:   $as_echo_n "(cached) " >&6
                   2518: else
                   2519:   ac_build_alias=$build_alias
                   2520: test "x$ac_build_alias" = x &&
                   2521:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   2522: test "x$ac_build_alias" = x &&
                   2523:   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
                   2524: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
                   2525:   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
                   2526: 
                   2527: fi
                   2528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
                   2529: $as_echo "$ac_cv_build" >&6; }
                   2530: case $ac_cv_build in
                   2531: *-*-*) ;;
                   2532: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
                   2533: esac
                   2534: build=$ac_cv_build
                   2535: ac_save_IFS=$IFS; IFS='-'
                   2536: set x $ac_cv_build
                   2537: shift
                   2538: build_cpu=$1
                   2539: build_vendor=$2
                   2540: shift; shift
                   2541: # Remember, the first character of IFS is used to create $*,
                   2542: # except with old shells:
                   2543: build_os=$*
                   2544: IFS=$ac_save_IFS
                   2545: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
                   2546: 
                   2547: 
                   2548: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
                   2549: $as_echo_n "checking host system type... " >&6; }
                   2550: if ${ac_cv_host+:} false; then :
                   2551:   $as_echo_n "(cached) " >&6
                   2552: else
                   2553:   if test "x$host_alias" = x; then
                   2554:   ac_cv_host=$ac_cv_build
                   2555: else
                   2556:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
                   2557:     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
                   2558: fi
                   2559: 
                   2560: fi
                   2561: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
                   2562: $as_echo "$ac_cv_host" >&6; }
                   2563: case $ac_cv_host in
                   2564: *-*-*) ;;
                   2565: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
                   2566: esac
                   2567: host=$ac_cv_host
                   2568: ac_save_IFS=$IFS; IFS='-'
                   2569: set x $ac_cv_host
                   2570: shift
                   2571: host_cpu=$1
                   2572: host_vendor=$2
                   2573: shift; shift
                   2574: # Remember, the first character of IFS is used to create $*,
                   2575: # except with old shells:
                   2576: host_os=$*
                   2577: IFS=$ac_save_IFS
                   2578: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
                   2579: 
                   2580: 
                   2581: 
1.1.1.3 ! misho    2582: 
        !          2583: 
1.1       misho    2584: # We must decide this before testing the compiler.
                   2585: 
                   2586: # Please allow this to default to yes, so that your users have more
                   2587: # chance of getting a useful stack trace if problems occur.
                   2588: 
                   2589: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging symbols" >&5
                   2590: $as_echo_n "checking whether to include debugging symbols... " >&6; }
                   2591: # Check whether --enable-debug was given.
                   2592: if test "${enable_debug+set}" = set; then :
                   2593:   enableval=$enable_debug;
                   2594: fi
                   2595: 
                   2596: 
                   2597: if test x"$enable_debug" = x"no"; then
                   2598:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2599: $as_echo "no" >&6; }
                   2600:     ac_cv_prog_cc_g=no
                   2601: else
                   2602:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   2603: $as_echo "yes" >&6; }
                   2604:         # leave ac_cv_prog_cc_g alone; AC_PROG_CC will try to include -g if it can
                   2605: fi
                   2606: 
                   2607: ac_ext=c
                   2608: ac_cpp='$CPP $CPPFLAGS'
                   2609: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2610: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2611: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   2612: if test -n "$ac_tool_prefix"; then
                   2613:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
                   2614: set dummy ${ac_tool_prefix}gcc; ac_word=$2
                   2615: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2616: $as_echo_n "checking for $ac_word... " >&6; }
                   2617: if ${ac_cv_prog_CC+:} false; then :
                   2618:   $as_echo_n "(cached) " >&6
                   2619: else
                   2620:   if test -n "$CC"; then
                   2621:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   2622: else
                   2623: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2624: for as_dir in $PATH
                   2625: do
                   2626:   IFS=$as_save_IFS
                   2627:   test -z "$as_dir" && as_dir=.
                   2628:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho    2629:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    2630:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
                   2631:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2632:     break 2
                   2633:   fi
                   2634: done
                   2635:   done
                   2636: IFS=$as_save_IFS
                   2637: 
                   2638: fi
                   2639: fi
                   2640: CC=$ac_cv_prog_CC
                   2641: if test -n "$CC"; then
                   2642:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   2643: $as_echo "$CC" >&6; }
                   2644: else
                   2645:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2646: $as_echo "no" >&6; }
                   2647: fi
                   2648: 
                   2649: 
                   2650: fi
                   2651: if test -z "$ac_cv_prog_CC"; then
                   2652:   ac_ct_CC=$CC
                   2653:   # Extract the first word of "gcc", so it can be a program name with args.
                   2654: set dummy gcc; ac_word=$2
                   2655: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2656: $as_echo_n "checking for $ac_word... " >&6; }
                   2657: if ${ac_cv_prog_ac_ct_CC+:} false; then :
                   2658:   $as_echo_n "(cached) " >&6
                   2659: else
                   2660:   if test -n "$ac_ct_CC"; then
                   2661:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   2662: else
                   2663: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2664: for as_dir in $PATH
                   2665: do
                   2666:   IFS=$as_save_IFS
                   2667:   test -z "$as_dir" && as_dir=.
                   2668:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho    2669:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    2670:     ac_cv_prog_ac_ct_CC="gcc"
                   2671:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2672:     break 2
                   2673:   fi
                   2674: done
                   2675:   done
                   2676: IFS=$as_save_IFS
                   2677: 
                   2678: fi
                   2679: fi
                   2680: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   2681: if test -n "$ac_ct_CC"; then
                   2682:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   2683: $as_echo "$ac_ct_CC" >&6; }
                   2684: else
                   2685:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2686: $as_echo "no" >&6; }
                   2687: fi
                   2688: 
                   2689:   if test "x$ac_ct_CC" = x; then
                   2690:     CC=""
                   2691:   else
                   2692:     case $cross_compiling:$ac_tool_warned in
                   2693: yes:)
                   2694: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   2695: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   2696: ac_tool_warned=yes ;;
                   2697: esac
                   2698:     CC=$ac_ct_CC
                   2699:   fi
                   2700: else
                   2701:   CC="$ac_cv_prog_CC"
                   2702: fi
                   2703: 
                   2704: if test -z "$CC"; then
                   2705:           if test -n "$ac_tool_prefix"; then
                   2706:     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
                   2707: set dummy ${ac_tool_prefix}cc; ac_word=$2
                   2708: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2709: $as_echo_n "checking for $ac_word... " >&6; }
                   2710: if ${ac_cv_prog_CC+:} false; then :
                   2711:   $as_echo_n "(cached) " >&6
                   2712: else
                   2713:   if test -n "$CC"; then
                   2714:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   2715: else
                   2716: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2717: for as_dir in $PATH
                   2718: do
                   2719:   IFS=$as_save_IFS
                   2720:   test -z "$as_dir" && as_dir=.
                   2721:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho    2722:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    2723:     ac_cv_prog_CC="${ac_tool_prefix}cc"
                   2724:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2725:     break 2
                   2726:   fi
                   2727: done
                   2728:   done
                   2729: IFS=$as_save_IFS
                   2730: 
                   2731: fi
                   2732: fi
                   2733: CC=$ac_cv_prog_CC
                   2734: if test -n "$CC"; then
                   2735:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   2736: $as_echo "$CC" >&6; }
                   2737: else
                   2738:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2739: $as_echo "no" >&6; }
                   2740: fi
                   2741: 
                   2742: 
                   2743:   fi
                   2744: fi
                   2745: if test -z "$CC"; then
                   2746:   # Extract the first word of "cc", so it can be a program name with args.
                   2747: set dummy cc; ac_word=$2
                   2748: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2749: $as_echo_n "checking for $ac_word... " >&6; }
                   2750: if ${ac_cv_prog_CC+:} false; then :
                   2751:   $as_echo_n "(cached) " >&6
                   2752: else
                   2753:   if test -n "$CC"; then
                   2754:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   2755: else
                   2756:   ac_prog_rejected=no
                   2757: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2758: for as_dir in $PATH
                   2759: do
                   2760:   IFS=$as_save_IFS
                   2761:   test -z "$as_dir" && as_dir=.
                   2762:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho    2763:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    2764:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
                   2765:        ac_prog_rejected=yes
                   2766:        continue
                   2767:      fi
                   2768:     ac_cv_prog_CC="cc"
                   2769:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2770:     break 2
                   2771:   fi
                   2772: done
                   2773:   done
                   2774: IFS=$as_save_IFS
                   2775: 
                   2776: if test $ac_prog_rejected = yes; then
                   2777:   # We found a bogon in the path, so make sure we never use it.
                   2778:   set dummy $ac_cv_prog_CC
                   2779:   shift
                   2780:   if test $# != 0; then
                   2781:     # We chose a different compiler from the bogus one.
                   2782:     # However, it has the same basename, so the bogon will be chosen
                   2783:     # first if we set CC to just the basename; use the full file name.
                   2784:     shift
                   2785:     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
                   2786:   fi
                   2787: fi
                   2788: fi
                   2789: fi
                   2790: CC=$ac_cv_prog_CC
                   2791: if test -n "$CC"; then
                   2792:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   2793: $as_echo "$CC" >&6; }
                   2794: else
                   2795:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2796: $as_echo "no" >&6; }
                   2797: fi
                   2798: 
                   2799: 
                   2800: fi
                   2801: if test -z "$CC"; then
                   2802:   if test -n "$ac_tool_prefix"; then
                   2803:   for ac_prog in cl.exe
                   2804:   do
                   2805:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   2806: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   2807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2808: $as_echo_n "checking for $ac_word... " >&6; }
                   2809: if ${ac_cv_prog_CC+:} false; then :
                   2810:   $as_echo_n "(cached) " >&6
                   2811: else
                   2812:   if test -n "$CC"; then
                   2813:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   2814: else
                   2815: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2816: for as_dir in $PATH
                   2817: do
                   2818:   IFS=$as_save_IFS
                   2819:   test -z "$as_dir" && as_dir=.
                   2820:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho    2821:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    2822:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   2823:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2824:     break 2
                   2825:   fi
                   2826: done
                   2827:   done
                   2828: IFS=$as_save_IFS
                   2829: 
                   2830: fi
                   2831: fi
                   2832: CC=$ac_cv_prog_CC
                   2833: if test -n "$CC"; then
                   2834:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
                   2835: $as_echo "$CC" >&6; }
                   2836: else
                   2837:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2838: $as_echo "no" >&6; }
                   2839: fi
                   2840: 
                   2841: 
                   2842:     test -n "$CC" && break
                   2843:   done
                   2844: fi
                   2845: if test -z "$CC"; then
                   2846:   ac_ct_CC=$CC
                   2847:   for ac_prog in cl.exe
                   2848: do
                   2849:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   2850: set dummy $ac_prog; ac_word=$2
                   2851: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   2852: $as_echo_n "checking for $ac_word... " >&6; }
                   2853: if ${ac_cv_prog_ac_ct_CC+:} false; then :
                   2854:   $as_echo_n "(cached) " >&6
                   2855: else
                   2856:   if test -n "$ac_ct_CC"; then
                   2857:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   2858: else
                   2859: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2860: for as_dir in $PATH
                   2861: do
                   2862:   IFS=$as_save_IFS
                   2863:   test -z "$as_dir" && as_dir=.
                   2864:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho    2865:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    2866:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   2867:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2868:     break 2
                   2869:   fi
                   2870: done
                   2871:   done
                   2872: IFS=$as_save_IFS
                   2873: 
                   2874: fi
                   2875: fi
                   2876: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   2877: if test -n "$ac_ct_CC"; then
                   2878:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
                   2879: $as_echo "$ac_ct_CC" >&6; }
                   2880: else
                   2881:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   2882: $as_echo "no" >&6; }
                   2883: fi
                   2884: 
                   2885: 
                   2886:   test -n "$ac_ct_CC" && break
                   2887: done
                   2888: 
                   2889:   if test "x$ac_ct_CC" = x; then
                   2890:     CC=""
                   2891:   else
                   2892:     case $cross_compiling:$ac_tool_warned in
                   2893: yes:)
                   2894: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
                   2895: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
                   2896: ac_tool_warned=yes ;;
                   2897: esac
                   2898:     CC=$ac_ct_CC
                   2899:   fi
                   2900: fi
                   2901: 
                   2902: fi
                   2903: 
                   2904: 
                   2905: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   2906: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   2907: as_fn_error $? "no acceptable C compiler found in \$PATH
                   2908: See \`config.log' for more details" "$LINENO" 5; }
                   2909: 
                   2910: # Provide some information about the compiler.
                   2911: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
                   2912: set X $ac_compile
                   2913: ac_compiler=$2
                   2914: for ac_option in --version -v -V -qversion; do
                   2915:   { { ac_try="$ac_compiler $ac_option >&5"
                   2916: case "(($ac_try" in
                   2917:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2918:   *) ac_try_echo=$ac_try;;
                   2919: esac
                   2920: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   2921: $as_echo "$ac_try_echo"; } >&5
                   2922:   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
                   2923:   ac_status=$?
                   2924:   if test -s conftest.err; then
                   2925:     sed '10a\
                   2926: ... rest of stderr output deleted ...
                   2927:          10q' conftest.err >conftest.er1
                   2928:     cat conftest.er1 >&5
                   2929:   fi
                   2930:   rm -f conftest.er1 conftest.err
                   2931:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   2932:   test $ac_status = 0; }
                   2933: done
                   2934: 
                   2935: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   2936: /* end confdefs.h.  */
                   2937: 
                   2938: int
                   2939: main ()
                   2940: {
                   2941: 
                   2942:   ;
                   2943:   return 0;
                   2944: }
                   2945: _ACEOF
                   2946: ac_clean_files_save=$ac_clean_files
                   2947: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
                   2948: # Try to create an executable without -o first, disregard a.out.
                   2949: # It will help us diagnose broken compilers, and finding out an intuition
                   2950: # of exeext.
                   2951: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
                   2952: $as_echo_n "checking whether the C compiler works... " >&6; }
                   2953: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
                   2954: 
                   2955: # The possible output files:
                   2956: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
                   2957: 
                   2958: ac_rmfiles=
                   2959: for ac_file in $ac_files
                   2960: do
                   2961:   case $ac_file in
                   2962:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   2963:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   2964:   esac
                   2965: done
                   2966: rm -f $ac_rmfiles
                   2967: 
                   2968: if { { ac_try="$ac_link_default"
                   2969: case "(($ac_try" in
                   2970:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   2971:   *) ac_try_echo=$ac_try;;
                   2972: esac
                   2973: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   2974: $as_echo "$ac_try_echo"; } >&5
                   2975:   (eval "$ac_link_default") 2>&5
                   2976:   ac_status=$?
                   2977:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   2978:   test $ac_status = 0; }; then :
                   2979:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   2980: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   2981: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   2982: # so that the user can short-circuit this test for compilers unknown to
                   2983: # Autoconf.
                   2984: for ac_file in $ac_files ''
                   2985: do
                   2986:   test -f "$ac_file" || continue
                   2987:   case $ac_file in
                   2988:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
                   2989:        ;;
                   2990:     [ab].out )
                   2991:        # We found the default executable, but exeext='' is most
                   2992:        # certainly right.
                   2993:        break;;
                   2994:     *.* )
                   2995:        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   2996:        then :; else
                   2997:           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   2998:        fi
                   2999:        # We set ac_cv_exeext here because the later test for it is not
                   3000:        # safe: cross compilers may not add the suffix if given an `-o'
                   3001:        # argument, so we may need to know it at that point already.
                   3002:        # Even if this section looks crufty: it has the advantage of
                   3003:        # actually working.
                   3004:        break;;
                   3005:     * )
                   3006:        break;;
                   3007:   esac
                   3008: done
                   3009: test "$ac_cv_exeext" = no && ac_cv_exeext=
                   3010: 
                   3011: else
                   3012:   ac_file=''
                   3013: fi
                   3014: if test -z "$ac_file"; then :
                   3015:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   3016: $as_echo "no" >&6; }
                   3017: $as_echo "$as_me: failed program was:" >&5
                   3018: sed 's/^/| /' conftest.$ac_ext >&5
                   3019: 
                   3020: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3021: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3022: as_fn_error 77 "C compiler cannot create executables
                   3023: See \`config.log' for more details" "$LINENO" 5; }
                   3024: else
                   3025:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   3026: $as_echo "yes" >&6; }
                   3027: fi
                   3028: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
                   3029: $as_echo_n "checking for C compiler default output file name... " >&6; }
                   3030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
                   3031: $as_echo "$ac_file" >&6; }
                   3032: ac_exeext=$ac_cv_exeext
                   3033: 
                   3034: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
                   3035: ac_clean_files=$ac_clean_files_save
                   3036: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
                   3037: $as_echo_n "checking for suffix of executables... " >&6; }
                   3038: if { { ac_try="$ac_link"
                   3039: case "(($ac_try" in
                   3040:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3041:   *) ac_try_echo=$ac_try;;
                   3042: esac
                   3043: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3044: $as_echo "$ac_try_echo"; } >&5
                   3045:   (eval "$ac_link") 2>&5
                   3046:   ac_status=$?
                   3047:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3048:   test $ac_status = 0; }; then :
                   3049:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3050: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3051: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3052: # `rm'.
                   3053: for ac_file in conftest.exe conftest conftest.*; do
                   3054:   test -f "$ac_file" || continue
                   3055:   case $ac_file in
                   3056:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
                   3057:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3058:          break;;
                   3059:     * ) break;;
                   3060:   esac
                   3061: done
                   3062: else
                   3063:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3064: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3065: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
                   3066: See \`config.log' for more details" "$LINENO" 5; }
                   3067: fi
                   3068: rm -f conftest conftest$ac_cv_exeext
                   3069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
                   3070: $as_echo "$ac_cv_exeext" >&6; }
                   3071: 
                   3072: rm -f conftest.$ac_ext
                   3073: EXEEXT=$ac_cv_exeext
                   3074: ac_exeext=$EXEEXT
                   3075: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3076: /* end confdefs.h.  */
                   3077: #include <stdio.h>
                   3078: int
                   3079: main ()
                   3080: {
                   3081: FILE *f = fopen ("conftest.out", "w");
                   3082:  return ferror (f) || fclose (f) != 0;
                   3083: 
                   3084:   ;
                   3085:   return 0;
                   3086: }
                   3087: _ACEOF
                   3088: ac_clean_files="$ac_clean_files conftest.out"
                   3089: # Check that the compiler produces executables we can run.  If not, either
                   3090: # the compiler is broken, or we cross compile.
                   3091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
                   3092: $as_echo_n "checking whether we are cross compiling... " >&6; }
                   3093: if test "$cross_compiling" != yes; then
                   3094:   { { ac_try="$ac_link"
                   3095: case "(($ac_try" in
                   3096:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3097:   *) ac_try_echo=$ac_try;;
                   3098: esac
                   3099: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3100: $as_echo "$ac_try_echo"; } >&5
                   3101:   (eval "$ac_link") 2>&5
                   3102:   ac_status=$?
                   3103:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3104:   test $ac_status = 0; }
                   3105:   if { ac_try='./conftest$ac_cv_exeext'
                   3106:   { { case "(($ac_try" in
                   3107:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3108:   *) ac_try_echo=$ac_try;;
                   3109: esac
                   3110: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3111: $as_echo "$ac_try_echo"; } >&5
                   3112:   (eval "$ac_try") 2>&5
                   3113:   ac_status=$?
                   3114:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3115:   test $ac_status = 0; }; }; then
                   3116:     cross_compiling=no
                   3117:   else
                   3118:     if test "$cross_compiling" = maybe; then
                   3119:        cross_compiling=yes
                   3120:     else
                   3121:        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3122: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3123: as_fn_error $? "cannot run C compiled programs.
                   3124: If you meant to cross compile, use \`--host'.
                   3125: See \`config.log' for more details" "$LINENO" 5; }
                   3126:     fi
                   3127:   fi
                   3128: fi
                   3129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
                   3130: $as_echo "$cross_compiling" >&6; }
                   3131: 
                   3132: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
                   3133: ac_clean_files=$ac_clean_files_save
                   3134: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
                   3135: $as_echo_n "checking for suffix of object files... " >&6; }
                   3136: if ${ac_cv_objext+:} false; then :
                   3137:   $as_echo_n "(cached) " >&6
                   3138: else
                   3139:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3140: /* end confdefs.h.  */
                   3141: 
                   3142: int
                   3143: main ()
                   3144: {
                   3145: 
                   3146:   ;
                   3147:   return 0;
                   3148: }
                   3149: _ACEOF
                   3150: rm -f conftest.o conftest.obj
                   3151: if { { ac_try="$ac_compile"
                   3152: case "(($ac_try" in
                   3153:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   3154:   *) ac_try_echo=$ac_try;;
                   3155: esac
                   3156: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
                   3157: $as_echo "$ac_try_echo"; } >&5
                   3158:   (eval "$ac_compile") 2>&5
                   3159:   ac_status=$?
                   3160:   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
                   3161:   test $ac_status = 0; }; then :
                   3162:   for ac_file in conftest.o conftest.obj 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 ) ;;
                   3166:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3167:        break;;
                   3168:   esac
                   3169: done
                   3170: else
                   3171:   $as_echo "$as_me: failed program was:" >&5
                   3172: sed 's/^/| /' conftest.$ac_ext >&5
                   3173: 
                   3174: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3175: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3176: as_fn_error $? "cannot compute suffix of object files: cannot compile
                   3177: See \`config.log' for more details" "$LINENO" 5; }
                   3178: fi
                   3179: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   3180: fi
                   3181: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
                   3182: $as_echo "$ac_cv_objext" >&6; }
                   3183: OBJEXT=$ac_cv_objext
                   3184: ac_objext=$OBJEXT
                   3185: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
                   3186: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
                   3187: if ${ac_cv_c_compiler_gnu+:} false; then :
                   3188:   $as_echo_n "(cached) " >&6
                   3189: else
                   3190:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3191: /* end confdefs.h.  */
                   3192: 
                   3193: int
                   3194: main ()
                   3195: {
                   3196: #ifndef __GNUC__
                   3197:        choke me
                   3198: #endif
                   3199: 
                   3200:   ;
                   3201:   return 0;
                   3202: }
                   3203: _ACEOF
                   3204: if ac_fn_c_try_compile "$LINENO"; then :
                   3205:   ac_compiler_gnu=yes
                   3206: else
                   3207:   ac_compiler_gnu=no
                   3208: fi
                   3209: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3210: ac_cv_c_compiler_gnu=$ac_compiler_gnu
                   3211: 
                   3212: fi
                   3213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
                   3214: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
                   3215: if test $ac_compiler_gnu = yes; then
                   3216:   GCC=yes
                   3217: else
                   3218:   GCC=
                   3219: fi
                   3220: ac_test_CFLAGS=${CFLAGS+set}
                   3221: ac_save_CFLAGS=$CFLAGS
                   3222: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
                   3223: $as_echo_n "checking whether $CC accepts -g... " >&6; }
                   3224: if ${ac_cv_prog_cc_g+:} false; then :
                   3225:   $as_echo_n "(cached) " >&6
                   3226: else
                   3227:   ac_save_c_werror_flag=$ac_c_werror_flag
                   3228:    ac_c_werror_flag=yes
                   3229:    ac_cv_prog_cc_g=no
                   3230:    CFLAGS="-g"
                   3231:    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3232: /* end confdefs.h.  */
                   3233: 
                   3234: int
                   3235: main ()
                   3236: {
                   3237: 
                   3238:   ;
                   3239:   return 0;
                   3240: }
                   3241: _ACEOF
                   3242: if ac_fn_c_try_compile "$LINENO"; then :
                   3243:   ac_cv_prog_cc_g=yes
                   3244: else
                   3245:   CFLAGS=""
                   3246:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3247: /* end confdefs.h.  */
                   3248: 
                   3249: int
                   3250: main ()
                   3251: {
                   3252: 
                   3253:   ;
                   3254:   return 0;
                   3255: }
                   3256: _ACEOF
                   3257: if ac_fn_c_try_compile "$LINENO"; then :
                   3258: 
                   3259: else
                   3260:   ac_c_werror_flag=$ac_save_c_werror_flag
                   3261:         CFLAGS="-g"
                   3262:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3263: /* end confdefs.h.  */
                   3264: 
                   3265: int
                   3266: main ()
                   3267: {
                   3268: 
                   3269:   ;
                   3270:   return 0;
                   3271: }
                   3272: _ACEOF
                   3273: if ac_fn_c_try_compile "$LINENO"; then :
                   3274:   ac_cv_prog_cc_g=yes
                   3275: fi
                   3276: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3277: fi
                   3278: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3279: fi
                   3280: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   3281:    ac_c_werror_flag=$ac_save_c_werror_flag
                   3282: fi
                   3283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
                   3284: $as_echo "$ac_cv_prog_cc_g" >&6; }
                   3285: if test "$ac_test_CFLAGS" = set; then
                   3286:   CFLAGS=$ac_save_CFLAGS
                   3287: elif test $ac_cv_prog_cc_g = yes; then
                   3288:   if test "$GCC" = yes; then
                   3289:     CFLAGS="-g -O2"
                   3290:   else
                   3291:     CFLAGS="-g"
                   3292:   fi
                   3293: else
                   3294:   if test "$GCC" = yes; then
                   3295:     CFLAGS="-O2"
                   3296:   else
                   3297:     CFLAGS=
                   3298:   fi
                   3299: fi
                   3300: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3301: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
                   3302: if ${ac_cv_prog_cc_c89+:} false; then :
                   3303:   $as_echo_n "(cached) " >&6
                   3304: else
                   3305:   ac_cv_prog_cc_c89=no
                   3306: ac_save_CC=$CC
                   3307: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3308: /* end confdefs.h.  */
                   3309: #include <stdarg.h>
                   3310: #include <stdio.h>
1.1.1.3 ! misho    3311: struct stat;
1.1       misho    3312: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3313: struct buf { int x; };
                   3314: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3315: static char *e (p, i)
                   3316:      char **p;
                   3317:      int i;
                   3318: {
                   3319:   return p[i];
                   3320: }
                   3321: static char *f (char * (*g) (char **, int), char **p, ...)
                   3322: {
                   3323:   char *s;
                   3324:   va_list v;
                   3325:   va_start (v,p);
                   3326:   s = g (p, va_arg (v,int));
                   3327:   va_end (v);
                   3328:   return s;
                   3329: }
                   3330: 
                   3331: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   3332:    function prototypes and stuff, but not '\xHH' hex character constants.
                   3333:    These don't provoke an error unfortunately, instead are silently treated
                   3334:    as 'x'.  The following induces an error, until -std is added to get
                   3335:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   3336:    array size at least.  It's necessary to write '\x00'==0 to get something
                   3337:    that's true only with -std.  */
                   3338: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
                   3339: 
                   3340: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   3341:    inside strings and character constants.  */
                   3342: #define FOO(x) 'x'
                   3343: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
                   3344: 
                   3345: int test (int i, double x);
                   3346: struct s1 {int (*f) (int a);};
                   3347: struct s2 {int (*f) (double a);};
                   3348: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3349: int argc;
                   3350: char **argv;
                   3351: int
                   3352: main ()
                   3353: {
                   3354: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                   3355:   ;
                   3356:   return 0;
                   3357: }
                   3358: _ACEOF
                   3359: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   3360:        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3361: do
                   3362:   CC="$ac_save_CC $ac_arg"
                   3363:   if ac_fn_c_try_compile "$LINENO"; then :
                   3364:   ac_cv_prog_cc_c89=$ac_arg
                   3365: fi
                   3366: rm -f core conftest.err conftest.$ac_objext
                   3367:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   3368: done
                   3369: rm -f conftest.$ac_ext
                   3370: CC=$ac_save_CC
                   3371: 
                   3372: fi
                   3373: # AC_CACHE_VAL
                   3374: case "x$ac_cv_prog_cc_c89" in
                   3375:   x)
                   3376:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3377: $as_echo "none needed" >&6; } ;;
                   3378:   xno)
                   3379:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3380: $as_echo "unsupported" >&6; } ;;
                   3381:   *)
                   3382:     CC="$CC $ac_cv_prog_cc_c89"
                   3383:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   3384: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
                   3385: esac
                   3386: if test "x$ac_cv_prog_cc_c89" != xno; then :
                   3387: 
                   3388: fi
                   3389: 
                   3390: ac_ext=c
                   3391: ac_cpp='$CPP $CPPFLAGS'
                   3392: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3393: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3394: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3395: 
                   3396: ac_ext=c
                   3397: ac_cpp='$CPP $CPPFLAGS'
                   3398: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3399: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3400: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3401: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
                   3402: $as_echo_n "checking how to run the C preprocessor... " >&6; }
                   3403: # On Suns, sometimes $CPP names a directory.
                   3404: if test -n "$CPP" && test -d "$CPP"; then
                   3405:   CPP=
                   3406: fi
                   3407: if test -z "$CPP"; then
                   3408:   if ${ac_cv_prog_CPP+:} false; then :
                   3409:   $as_echo_n "(cached) " >&6
                   3410: else
                   3411:       # Double quotes because CPP needs to be expanded
                   3412:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   3413:     do
                   3414:       ac_preproc_ok=false
                   3415: for ac_c_preproc_warn_flag in '' yes
                   3416: do
                   3417:   # Use a header file that comes with gcc, so configuring glibc
                   3418:   # with a fresh cross-compiler works.
                   3419:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   3420:   # <limits.h> exists even on freestanding compilers.
                   3421:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   3422:   # not just through cpp. "Syntax error" is here to catch this case.
                   3423:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3424: /* end confdefs.h.  */
                   3425: #ifdef __STDC__
                   3426: # include <limits.h>
                   3427: #else
                   3428: # include <assert.h>
                   3429: #endif
                   3430:                     Syntax error
                   3431: _ACEOF
                   3432: if ac_fn_c_try_cpp "$LINENO"; then :
                   3433: 
                   3434: else
                   3435:   # Broken: fails on valid input.
                   3436: continue
                   3437: fi
                   3438: rm -f conftest.err conftest.i conftest.$ac_ext
                   3439: 
                   3440:   # OK, works on sane cases.  Now check whether nonexistent headers
                   3441:   # can be detected and how.
                   3442:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3443: /* end confdefs.h.  */
                   3444: #include <ac_nonexistent.h>
                   3445: _ACEOF
                   3446: if ac_fn_c_try_cpp "$LINENO"; then :
                   3447:   # Broken: success on invalid input.
                   3448: continue
                   3449: else
                   3450:   # Passes both tests.
                   3451: ac_preproc_ok=:
                   3452: break
                   3453: fi
                   3454: rm -f conftest.err conftest.i conftest.$ac_ext
                   3455: 
                   3456: done
                   3457: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   3458: rm -f conftest.i conftest.err conftest.$ac_ext
                   3459: if $ac_preproc_ok; then :
                   3460:   break
                   3461: fi
                   3462: 
                   3463:     done
                   3464:     ac_cv_prog_CPP=$CPP
                   3465: 
                   3466: fi
                   3467:   CPP=$ac_cv_prog_CPP
                   3468: else
                   3469:   ac_cv_prog_CPP=$CPP
                   3470: fi
                   3471: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
                   3472: $as_echo "$CPP" >&6; }
                   3473: ac_preproc_ok=false
                   3474: for ac_c_preproc_warn_flag in '' yes
                   3475: do
                   3476:   # Use a header file that comes with gcc, so configuring glibc
                   3477:   # with a fresh cross-compiler works.
                   3478:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   3479:   # <limits.h> exists even on freestanding compilers.
                   3480:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   3481:   # not just through cpp. "Syntax error" is here to catch this case.
                   3482:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3483: /* end confdefs.h.  */
                   3484: #ifdef __STDC__
                   3485: # include <limits.h>
                   3486: #else
                   3487: # include <assert.h>
                   3488: #endif
                   3489:                     Syntax error
                   3490: _ACEOF
                   3491: if ac_fn_c_try_cpp "$LINENO"; then :
                   3492: 
                   3493: else
                   3494:   # Broken: fails on valid input.
                   3495: continue
                   3496: fi
                   3497: rm -f conftest.err conftest.i conftest.$ac_ext
                   3498: 
                   3499:   # OK, works on sane cases.  Now check whether nonexistent headers
                   3500:   # can be detected and how.
                   3501:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3502: /* end confdefs.h.  */
                   3503: #include <ac_nonexistent.h>
                   3504: _ACEOF
                   3505: if ac_fn_c_try_cpp "$LINENO"; then :
                   3506:   # Broken: success on invalid input.
                   3507: continue
                   3508: else
                   3509:   # Passes both tests.
                   3510: ac_preproc_ok=:
                   3511: break
                   3512: fi
                   3513: rm -f conftest.err conftest.i conftest.$ac_ext
                   3514: 
                   3515: done
                   3516: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   3517: rm -f conftest.i conftest.err conftest.$ac_ext
                   3518: if $ac_preproc_ok; then :
                   3519: 
                   3520: else
                   3521:   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   3522: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   3523: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
                   3524: See \`config.log' for more details" "$LINENO" 5; }
                   3525: fi
                   3526: 
                   3527: ac_ext=c
                   3528: ac_cpp='$CPP $CPPFLAGS'
                   3529: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3530: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3531: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3532: 
                   3533: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
                   3534: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
                   3535: if ${ac_cv_path_GREP+:} false; then :
                   3536:   $as_echo_n "(cached) " >&6
                   3537: else
                   3538:   if test -z "$GREP"; then
                   3539:   ac_path_GREP_found=false
                   3540:   # Loop through the user's path and test for each of PROGNAME-LIST
                   3541:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3542: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   3543: do
                   3544:   IFS=$as_save_IFS
                   3545:   test -z "$as_dir" && as_dir=.
                   3546:     for ac_prog in grep ggrep; do
                   3547:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3548:       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.3 ! misho    3549:       as_fn_executable_p "$ac_path_GREP" || continue
1.1       misho    3550: # Check for GNU ac_path_GREP and select it if it is found.
                   3551:   # Check for GNU $ac_path_GREP
                   3552: case `"$ac_path_GREP" --version 2>&1` in
                   3553: *GNU*)
                   3554:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   3555: *)
                   3556:   ac_count=0
                   3557:   $as_echo_n 0123456789 >"conftest.in"
                   3558:   while :
                   3559:   do
                   3560:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   3561:     mv "conftest.tmp" "conftest.in"
                   3562:     cp "conftest.in" "conftest.nl"
                   3563:     $as_echo 'GREP' >> "conftest.nl"
                   3564:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   3565:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   3566:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   3567:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   3568:       # Best one so far, save it but keep looking for a better one
                   3569:       ac_cv_path_GREP="$ac_path_GREP"
                   3570:       ac_path_GREP_max=$ac_count
                   3571:     fi
                   3572:     # 10*(2^10) chars as input seems more than enough
                   3573:     test $ac_count -gt 10 && break
                   3574:   done
                   3575:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   3576: esac
                   3577: 
                   3578:       $ac_path_GREP_found && break 3
                   3579:     done
                   3580:   done
                   3581:   done
                   3582: IFS=$as_save_IFS
                   3583:   if test -z "$ac_cv_path_GREP"; then
                   3584:     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   3585:   fi
                   3586: else
                   3587:   ac_cv_path_GREP=$GREP
                   3588: fi
                   3589: 
                   3590: fi
                   3591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
                   3592: $as_echo "$ac_cv_path_GREP" >&6; }
                   3593:  GREP="$ac_cv_path_GREP"
                   3594: 
                   3595: 
                   3596: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
                   3597: $as_echo_n "checking for egrep... " >&6; }
                   3598: if ${ac_cv_path_EGREP+:} false; then :
                   3599:   $as_echo_n "(cached) " >&6
                   3600: else
                   3601:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   3602:    then ac_cv_path_EGREP="$GREP -E"
                   3603:    else
                   3604:      if test -z "$EGREP"; then
                   3605:   ac_path_EGREP_found=false
                   3606:   # Loop through the user's path and test for each of PROGNAME-LIST
                   3607:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3608: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   3609: do
                   3610:   IFS=$as_save_IFS
                   3611:   test -z "$as_dir" && as_dir=.
                   3612:     for ac_prog in egrep; do
                   3613:     for ac_exec_ext in '' $ac_executable_extensions; do
                   3614:       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.3 ! misho    3615:       as_fn_executable_p "$ac_path_EGREP" || continue
1.1       misho    3616: # Check for GNU ac_path_EGREP and select it if it is found.
                   3617:   # Check for GNU $ac_path_EGREP
                   3618: case `"$ac_path_EGREP" --version 2>&1` in
                   3619: *GNU*)
                   3620:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   3621: *)
                   3622:   ac_count=0
                   3623:   $as_echo_n 0123456789 >"conftest.in"
                   3624:   while :
                   3625:   do
                   3626:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   3627:     mv "conftest.tmp" "conftest.in"
                   3628:     cp "conftest.in" "conftest.nl"
                   3629:     $as_echo 'EGREP' >> "conftest.nl"
                   3630:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   3631:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   3632:     as_fn_arith $ac_count + 1 && ac_count=$as_val
                   3633:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   3634:       # Best one so far, save it but keep looking for a better one
                   3635:       ac_cv_path_EGREP="$ac_path_EGREP"
                   3636:       ac_path_EGREP_max=$ac_count
                   3637:     fi
                   3638:     # 10*(2^10) chars as input seems more than enough
                   3639:     test $ac_count -gt 10 && break
                   3640:   done
                   3641:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   3642: esac
                   3643: 
                   3644:       $ac_path_EGREP_found && break 3
                   3645:     done
                   3646:   done
                   3647:   done
                   3648: IFS=$as_save_IFS
                   3649:   if test -z "$ac_cv_path_EGREP"; then
                   3650:     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
                   3651:   fi
                   3652: else
                   3653:   ac_cv_path_EGREP=$EGREP
                   3654: fi
                   3655: 
                   3656:    fi
                   3657: fi
                   3658: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
                   3659: $as_echo "$ac_cv_path_EGREP" >&6; }
                   3660:  EGREP="$ac_cv_path_EGREP"
                   3661: 
                   3662: 
                   3663: # Find a good install program.  We prefer a C program (faster),
                   3664: # so one script is as good as another.  But avoid the broken or
                   3665: # incompatible versions:
                   3666: # SysV /etc/install, /usr/sbin/install
                   3667: # SunOS /usr/etc/install
                   3668: # IRIX /sbin/install
                   3669: # AIX /bin/install
                   3670: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   3671: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   3672: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   3673: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   3674: # OS/2's system install, which has a completely different semantic
                   3675: # ./install, which can be erroneously created by make from ./install.sh.
                   3676: # Reject install programs that cannot install multiple files.
                   3677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
                   3678: $as_echo_n "checking for a BSD-compatible install... " >&6; }
                   3679: if test -z "$INSTALL"; then
                   3680: if ${ac_cv_path_install+:} false; then :
                   3681:   $as_echo_n "(cached) " >&6
                   3682: else
                   3683:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3684: for as_dir in $PATH
                   3685: do
                   3686:   IFS=$as_save_IFS
                   3687:   test -z "$as_dir" && as_dir=.
                   3688:     # Account for people who put trailing slashes in PATH elements.
                   3689: case $as_dir/ in #((
                   3690:   ./ | .// | /[cC]/* | \
                   3691:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
                   3692:   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
                   3693:   /usr/ucb/* ) ;;
                   3694:   *)
                   3695:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   3696:     # Don't use installbsd from OSF since it installs stuff as root
                   3697:     # by default.
                   3698:     for ac_prog in ginstall scoinst install; do
                   3699:       for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho    3700:        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.1       misho    3701:          if test $ac_prog = install &&
                   3702:            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   3703:            # AIX install.  It has an incompatible calling convention.
                   3704:            :
                   3705:          elif test $ac_prog = install &&
                   3706:            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
                   3707:            # program-specific install script used by HP pwplus--don't use.
                   3708:            :
                   3709:          else
                   3710:            rm -rf conftest.one conftest.two conftest.dir
                   3711:            echo one > conftest.one
                   3712:            echo two > conftest.two
                   3713:            mkdir conftest.dir
                   3714:            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
                   3715:              test -s conftest.one && test -s conftest.two &&
                   3716:              test -s conftest.dir/conftest.one &&
                   3717:              test -s conftest.dir/conftest.two
                   3718:            then
                   3719:              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
                   3720:              break 3
                   3721:            fi
                   3722:          fi
                   3723:        fi
                   3724:       done
                   3725:     done
                   3726:     ;;
                   3727: esac
                   3728: 
                   3729:   done
                   3730: IFS=$as_save_IFS
                   3731: 
                   3732: rm -rf conftest.one conftest.two conftest.dir
                   3733: 
                   3734: fi
                   3735:   if test "${ac_cv_path_install+set}" = set; then
                   3736:     INSTALL=$ac_cv_path_install
                   3737:   else
                   3738:     # As a last resort, use the slow shell script.  Don't cache a
                   3739:     # value for INSTALL within a source directory, because that will
                   3740:     # break other packages using the cache if that directory is
                   3741:     # removed, or if the value is a relative name.
                   3742:     INSTALL=$ac_install_sh
                   3743:   fi
                   3744: fi
                   3745: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
                   3746: $as_echo "$INSTALL" >&6; }
                   3747: 
                   3748: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   3749: # It thinks the first close brace ends the variable substitution.
                   3750: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                   3751: 
                   3752: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
                   3753: 
                   3754: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                   3755: 
1.1.1.2   misho    3756: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
                   3757: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
                   3758: if test -z "$MKDIR_P"; then
                   3759:   if ${ac_cv_path_mkdir+:} false; then :
                   3760:   $as_echo_n "(cached) " >&6
                   3761: else
                   3762:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3763: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
                   3764: do
                   3765:   IFS=$as_save_IFS
                   3766:   test -z "$as_dir" && as_dir=.
                   3767:     for ac_prog in mkdir gmkdir; do
                   3768:         for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho    3769:           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.1.1.2   misho    3770:           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
                   3771:             'mkdir (GNU coreutils) '* | \
                   3772:             'mkdir (coreutils) '* | \
                   3773:             'mkdir (fileutils) '4.1*)
                   3774:               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
                   3775:               break 3;;
                   3776:           esac
                   3777:         done
                   3778:        done
                   3779:   done
                   3780: IFS=$as_save_IFS
                   3781: 
                   3782: fi
                   3783: 
                   3784:   test -d ./--version && rmdir ./--version
                   3785:   if test "${ac_cv_path_mkdir+set}" = set; then
                   3786:     MKDIR_P="$ac_cv_path_mkdir -p"
                   3787:   else
                   3788:     # As a last resort, use the slow shell script.  Don't cache a
                   3789:     # value for MKDIR_P within a source directory, because that will
                   3790:     # break other packages using the cache if that directory is
                   3791:     # removed, or if the value is a relative name.
                   3792:     MKDIR_P="$ac_install_sh -d"
                   3793:   fi
                   3794: fi
                   3795: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
                   3796: $as_echo "$MKDIR_P" >&6; }
                   3797: 
1.1       misho    3798:    case $ac_cv_prog_cc_stdc in #(
                   3799:   no) :
                   3800:     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
                   3801:   *) :
                   3802:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
                   3803: $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
                   3804: if ${ac_cv_prog_cc_c99+:} false; then :
                   3805:   $as_echo_n "(cached) " >&6
                   3806: else
                   3807:   ac_cv_prog_cc_c99=no
                   3808: ac_save_CC=$CC
                   3809: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3810: /* end confdefs.h.  */
                   3811: #include <stdarg.h>
                   3812: #include <stdbool.h>
                   3813: #include <stdlib.h>
                   3814: #include <wchar.h>
                   3815: #include <stdio.h>
                   3816: 
                   3817: // Check varargs macros.  These examples are taken from C99 6.10.3.5.
                   3818: #define debug(...) fprintf (stderr, __VA_ARGS__)
                   3819: #define showlist(...) puts (#__VA_ARGS__)
                   3820: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
                   3821: static void
                   3822: test_varargs_macros (void)
                   3823: {
                   3824:   int x = 1234;
                   3825:   int y = 5678;
                   3826:   debug ("Flag");
                   3827:   debug ("X = %d\n", x);
                   3828:   showlist (The first, second, and third items.);
                   3829:   report (x>y, "x is %d but y is %d", x, y);
                   3830: }
                   3831: 
                   3832: // Check long long types.
                   3833: #define BIG64 18446744073709551615ull
                   3834: #define BIG32 4294967295ul
                   3835: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
                   3836: #if !BIG_OK
                   3837:   your preprocessor is broken;
                   3838: #endif
                   3839: #if BIG_OK
                   3840: #else
                   3841:   your preprocessor is broken;
                   3842: #endif
                   3843: static long long int bignum = -9223372036854775807LL;
                   3844: static unsigned long long int ubignum = BIG64;
                   3845: 
                   3846: struct incomplete_array
                   3847: {
                   3848:   int datasize;
                   3849:   double data[];
                   3850: };
                   3851: 
                   3852: struct named_init {
                   3853:   int number;
                   3854:   const wchar_t *name;
                   3855:   double average;
                   3856: };
                   3857: 
                   3858: typedef const char *ccp;
                   3859: 
                   3860: static inline int
                   3861: test_restrict (ccp restrict text)
                   3862: {
                   3863:   // See if C++-style comments work.
                   3864:   // Iterate through items via the restricted pointer.
                   3865:   // Also check for declarations in for loops.
                   3866:   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
                   3867:     continue;
                   3868:   return 0;
                   3869: }
                   3870: 
                   3871: // Check varargs and va_copy.
                   3872: static void
                   3873: test_varargs (const char *format, ...)
                   3874: {
                   3875:   va_list args;
                   3876:   va_start (args, format);
                   3877:   va_list args_copy;
                   3878:   va_copy (args_copy, args);
                   3879: 
                   3880:   const char *str;
                   3881:   int number;
                   3882:   float fnumber;
                   3883: 
                   3884:   while (*format)
                   3885:     {
                   3886:       switch (*format++)
                   3887:        {
                   3888:        case 's': // string
                   3889:          str = va_arg (args_copy, const char *);
                   3890:          break;
                   3891:        case 'd': // int
                   3892:          number = va_arg (args_copy, int);
                   3893:          break;
                   3894:        case 'f': // float
                   3895:          fnumber = va_arg (args_copy, double);
                   3896:          break;
                   3897:        default:
                   3898:          break;
                   3899:        }
                   3900:     }
                   3901:   va_end (args_copy);
                   3902:   va_end (args);
                   3903: }
                   3904: 
                   3905: int
                   3906: main ()
                   3907: {
                   3908: 
                   3909:   // Check bool.
                   3910:   _Bool success = false;
                   3911: 
                   3912:   // Check restrict.
                   3913:   if (test_restrict ("String literal") == 0)
                   3914:     success = true;
                   3915:   char *restrict newvar = "Another string";
                   3916: 
                   3917:   // Check varargs.
                   3918:   test_varargs ("s, d' f .", "string", 65, 34.234);
                   3919:   test_varargs_macros ();
                   3920: 
                   3921:   // Check flexible array members.
                   3922:   struct incomplete_array *ia =
                   3923:     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
                   3924:   ia->datasize = 10;
                   3925:   for (int i = 0; i < ia->datasize; ++i)
                   3926:     ia->data[i] = i * 1.234;
                   3927: 
                   3928:   // Check named initializers.
                   3929:   struct named_init ni = {
                   3930:     .number = 34,
                   3931:     .name = L"Test wide string",
                   3932:     .average = 543.34343,
                   3933:   };
                   3934: 
                   3935:   ni.number = 58;
                   3936: 
                   3937:   int dynamic_array[ni.number];
                   3938:   dynamic_array[ni.number - 1] = 543;
                   3939: 
                   3940:   // work around unused variable warnings
                   3941:   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
                   3942:          || dynamic_array[ni.number - 1] != 543);
                   3943: 
                   3944:   ;
                   3945:   return 0;
                   3946: }
                   3947: _ACEOF
1.1.1.3 ! misho    3948: for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
1.1       misho    3949: do
                   3950:   CC="$ac_save_CC $ac_arg"
                   3951:   if ac_fn_c_try_compile "$LINENO"; then :
                   3952:   ac_cv_prog_cc_c99=$ac_arg
                   3953: fi
                   3954: rm -f core conftest.err conftest.$ac_objext
                   3955:   test "x$ac_cv_prog_cc_c99" != "xno" && break
                   3956: done
                   3957: rm -f conftest.$ac_ext
                   3958: CC=$ac_save_CC
                   3959: 
                   3960: fi
                   3961: # AC_CACHE_VAL
                   3962: case "x$ac_cv_prog_cc_c99" in
                   3963:   x)
                   3964:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   3965: $as_echo "none needed" >&6; } ;;
                   3966:   xno)
                   3967:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   3968: $as_echo "unsupported" >&6; } ;;
                   3969:   *)
                   3970:     CC="$CC $ac_cv_prog_cc_c99"
                   3971:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
                   3972: $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
                   3973: esac
                   3974: if test "x$ac_cv_prog_cc_c99" != xno; then :
                   3975:   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
                   3976: else
                   3977:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
                   3978: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
                   3979: if ${ac_cv_prog_cc_c89+:} false; then :
                   3980:   $as_echo_n "(cached) " >&6
                   3981: else
                   3982:   ac_cv_prog_cc_c89=no
                   3983: ac_save_CC=$CC
                   3984: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   3985: /* end confdefs.h.  */
                   3986: #include <stdarg.h>
                   3987: #include <stdio.h>
1.1.1.3 ! misho    3988: struct stat;
1.1       misho    3989: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3990: struct buf { int x; };
                   3991: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3992: static char *e (p, i)
                   3993:      char **p;
                   3994:      int i;
                   3995: {
                   3996:   return p[i];
                   3997: }
                   3998: static char *f (char * (*g) (char **, int), char **p, ...)
                   3999: {
                   4000:   char *s;
                   4001:   va_list v;
                   4002:   va_start (v,p);
                   4003:   s = g (p, va_arg (v,int));
                   4004:   va_end (v);
                   4005:   return s;
                   4006: }
                   4007: 
                   4008: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   4009:    function prototypes and stuff, but not '\xHH' hex character constants.
                   4010:    These don't provoke an error unfortunately, instead are silently treated
                   4011:    as 'x'.  The following induces an error, until -std is added to get
                   4012:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   4013:    array size at least.  It's necessary to write '\x00'==0 to get something
                   4014:    that's true only with -std.  */
                   4015: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
                   4016: 
                   4017: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   4018:    inside strings and character constants.  */
                   4019: #define FOO(x) 'x'
                   4020: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
                   4021: 
                   4022: int test (int i, double x);
                   4023: struct s1 {int (*f) (int a);};
                   4024: struct s2 {int (*f) (double a);};
                   4025: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   4026: int argc;
                   4027: char **argv;
                   4028: int
                   4029: main ()
                   4030: {
                   4031: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                   4032:   ;
                   4033:   return 0;
                   4034: }
                   4035: _ACEOF
                   4036: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   4037:        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   4038: do
                   4039:   CC="$ac_save_CC $ac_arg"
                   4040:   if ac_fn_c_try_compile "$LINENO"; then :
                   4041:   ac_cv_prog_cc_c89=$ac_arg
                   4042: fi
                   4043: rm -f core conftest.err conftest.$ac_objext
                   4044:   test "x$ac_cv_prog_cc_c89" != "xno" && break
                   4045: done
                   4046: rm -f conftest.$ac_ext
                   4047: CC=$ac_save_CC
                   4048: 
                   4049: fi
                   4050: # AC_CACHE_VAL
                   4051: case "x$ac_cv_prog_cc_c89" in
                   4052:   x)
                   4053:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   4054: $as_echo "none needed" >&6; } ;;
                   4055:   xno)
                   4056:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   4057: $as_echo "unsupported" >&6; } ;;
                   4058:   *)
                   4059:     CC="$CC $ac_cv_prog_cc_c89"
                   4060:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
                   4061: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
                   4062: esac
                   4063: if test "x$ac_cv_prog_cc_c89" != xno; then :
                   4064:   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
                   4065: else
                   4066:   ac_cv_prog_cc_stdc=no
                   4067: fi
                   4068: 
                   4069: fi
                   4070:  ;;
                   4071: esac
                   4072:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
                   4073: $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
                   4074:   if ${ac_cv_prog_cc_stdc+:} false; then :
                   4075:   $as_echo_n "(cached) " >&6
                   4076: fi
                   4077: 
                   4078:   case $ac_cv_prog_cc_stdc in #(
                   4079:   no) :
                   4080:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
                   4081: $as_echo "unsupported" >&6; } ;; #(
                   4082:   '') :
                   4083:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
                   4084: $as_echo "none needed" >&6; } ;; #(
                   4085:   *) :
                   4086:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
                   4087: $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
                   4088: esac
                   4089: 
                   4090: 
1.1.1.3 ! misho    4091: # Extract the first word of "perl", so it can be a program name with args.
        !          4092: set dummy perl; ac_word=$2
        !          4093: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
        !          4094: $as_echo_n "checking for $ac_word... " >&6; }
        !          4095: if ${ac_cv_path_PERL+:} false; then :
        !          4096:   $as_echo_n "(cached) " >&6
        !          4097: else
        !          4098:   case $PERL in
        !          4099:   [\\/]* | ?:[\\/]*)
        !          4100:   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
        !          4101:   ;;
        !          4102:   *)
        !          4103:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
        !          4104: for as_dir in $PATH
        !          4105: do
        !          4106:   IFS=$as_save_IFS
        !          4107:   test -z "$as_dir" && as_dir=.
        !          4108:     for ac_exec_ext in '' $ac_executable_extensions; do
        !          4109:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
        !          4110:     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
        !          4111:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
        !          4112:     break 2
        !          4113:   fi
        !          4114: done
        !          4115:   done
        !          4116: IFS=$as_save_IFS
        !          4117: 
        !          4118:   ;;
        !          4119: esac
        !          4120: fi
        !          4121: PERL=$ac_cv_path_PERL
        !          4122: if test -n "$PERL"; then
        !          4123:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
        !          4124: $as_echo "$PERL" >&6; }
        !          4125: else
        !          4126:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
        !          4127: $as_echo "no" >&6; }
        !          4128: fi
        !          4129: 
        !          4130: 
1.1       misho    4131: 
                   4132: 
                   4133: $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
                   4134: 
                   4135: 
                   4136: if test x"$ac_cv_prog_cc_stdc" = x"no"; then
                   4137:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: rsync requires an ANSI C compiler and you do not seem to have one" >&5
                   4138: $as_echo "$as_me: WARNING: rsync requires an ANSI C compiler and you do not seem to have one" >&2;}
                   4139: fi
                   4140: 
                   4141: # Check whether --enable-profile was given.
                   4142: if test "${enable_profile+set}" = set; then :
                   4143:   enableval=$enable_profile;
                   4144: fi
                   4145: 
                   4146: if test x"$enable_profile" = x"yes"; then
                   4147:        CFLAGS="$CFLAGS -pg"
                   4148: fi
                   4149: 
                   4150: 
                   4151: # Specifically, this turns on panic_action handling.
                   4152: # Check whether --enable-maintainer-mode was given.
                   4153: if test "${enable_maintainer_mode+set}" = set; then :
                   4154:   enableval=$enable_maintainer_mode;
                   4155: fi
                   4156: 
                   4157: if test x"$enable_maintainer_mode" = x"yes"; then
                   4158:        CFLAGS="$CFLAGS -DMAINTAINER_MODE"
                   4159: fi
                   4160: 
                   4161: 
                   4162: # This is needed for our included version of popt.  Kind of silly, but
                   4163: # I don't want our version too far out of sync.
                   4164: CFLAGS="$CFLAGS -DHAVE_CONFIG_H"
                   4165: 
                   4166: # If GCC, turn on warnings.
                   4167: if test x"$GCC" = x"yes"; then
                   4168:        CFLAGS="$CFLAGS -Wall -W"
                   4169: fi
                   4170: 
                   4171: 
                   4172: # Check whether --with-included-popt was given.
                   4173: if test "${with_included_popt+set}" = set; then :
                   4174:   withval=$with_included_popt;
                   4175: fi
                   4176: 
                   4177: 
                   4178: 
1.1.1.2   misho    4179: # Check whether --with-included-zlib was given.
                   4180: if test "${with_included_zlib+set}" = set; then :
                   4181:   withval=$with_included_zlib;
                   4182: fi
                   4183: 
                   4184: 
                   4185: 
                   4186: # Check whether --with-protected-args was given.
                   4187: if test "${with_protected_args+set}" = set; then :
                   4188:   withval=$with_protected_args;
                   4189: fi
                   4190: 
                   4191: if test x"$with_protected_args" = x"yes"; then
                   4192: 
                   4193: cat >>confdefs.h <<_ACEOF
                   4194: #define RSYNC_USE_PROTECTED_ARGS 1
                   4195: _ACEOF
                   4196: 
                   4197: fi
                   4198: 
                   4199: 
1.1       misho    4200: # Check whether --with-rsync-path was given.
                   4201: if test "${with_rsync_path+set}" = set; then :
                   4202:   withval=$with_rsync_path;  RSYNC_PATH="$with_rsync_path"
                   4203: else
                   4204:    RSYNC_PATH="rsync"
                   4205: fi
                   4206: 
                   4207: 
                   4208: 
                   4209: cat >>confdefs.h <<_ACEOF
                   4210: #define RSYNC_PATH "$RSYNC_PATH"
                   4211: _ACEOF
                   4212: 
                   4213: 
                   4214: 
                   4215: # Check whether --with-rsyncd-conf was given.
                   4216: if test "${with_rsyncd_conf+set}" = set; then :
                   4217:   withval=$with_rsyncd_conf;  if test ! -z "$with_rsyncd_conf" ; then
                   4218:                case $with_rsyncd_conf in
                   4219:                        yes|no)
                   4220:                                RSYNCD_SYSCONF="/etc/rsyncd.conf"
                   4221:                                ;;
                   4222:                        /*)
                   4223:                                RSYNCD_SYSCONF="$with_rsyncd_conf"
                   4224:                                ;;
                   4225:                        *)
                   4226:                                 as_fn_error $? "You must specify an absolute path to --with-rsyncd-conf=PATH" "$LINENO" 5
                   4227:                                ;;
                   4228:                esac
                   4229:        else
                   4230:                RSYNCD_SYSCONF="/etc/rsyncd.conf"
                   4231:        fi
                   4232: else
                   4233:    RSYNCD_SYSCONF="/etc/rsyncd.conf"
                   4234: fi
                   4235: 
                   4236: 
                   4237: 
                   4238: cat >>confdefs.h <<_ACEOF
                   4239: #define RSYNCD_SYSCONF "$RSYNCD_SYSCONF"
                   4240: _ACEOF
                   4241: 
                   4242: 
                   4243: 
                   4244: # Check whether --with-rsh was given.
                   4245: if test "${with_rsh+set}" = set; then :
                   4246:   withval=$with_rsh;
                   4247: fi
                   4248: 
                   4249: 
                   4250: # Extract the first word of "remsh", so it can be a program name with args.
                   4251: set dummy remsh; ac_word=$2
                   4252: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4253: $as_echo_n "checking for $ac_word... " >&6; }
                   4254: if ${ac_cv_prog_HAVE_REMSH+:} false; then :
                   4255:   $as_echo_n "(cached) " >&6
                   4256: else
                   4257:   if test -n "$HAVE_REMSH"; then
                   4258:   ac_cv_prog_HAVE_REMSH="$HAVE_REMSH" # Let the user override the test.
                   4259: else
                   4260: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4261: for as_dir in $PATH
                   4262: do
                   4263:   IFS=$as_save_IFS
                   4264:   test -z "$as_dir" && as_dir=.
                   4265:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho    4266:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    4267:     ac_cv_prog_HAVE_REMSH="1"
                   4268:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4269:     break 2
                   4270:   fi
                   4271: done
                   4272:   done
                   4273: IFS=$as_save_IFS
                   4274: 
                   4275:   test -z "$ac_cv_prog_HAVE_REMSH" && ac_cv_prog_HAVE_REMSH="0"
                   4276: fi
                   4277: fi
                   4278: HAVE_REMSH=$ac_cv_prog_HAVE_REMSH
                   4279: if test -n "$HAVE_REMSH"; then
                   4280:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_REMSH" >&5
                   4281: $as_echo "$HAVE_REMSH" >&6; }
                   4282: else
                   4283:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4284: $as_echo "no" >&6; }
                   4285: fi
                   4286: 
                   4287: 
                   4288: if test x$HAVE_REMSH = x1; then
                   4289: 
                   4290: $as_echo "#define HAVE_REMSH 1" >>confdefs.h
                   4291: 
                   4292: fi
                   4293: 
                   4294: if test x"$with_rsh" != x; then
                   4295:        RSYNC_RSH="$with_rsh"
                   4296: else
                   4297:        RSYNC_RSH="ssh"
                   4298: fi
                   4299: 
                   4300: cat >>confdefs.h <<_ACEOF
                   4301: #define RSYNC_RSH "$RSYNC_RSH"
                   4302: _ACEOF
                   4303: 
                   4304: 
                   4305: # Extract the first word of "yodl2man", so it can be a program name with args.
                   4306: set dummy yodl2man; ac_word=$2
                   4307: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4308: $as_echo_n "checking for $ac_word... " >&6; }
                   4309: if ${ac_cv_prog_HAVE_YODL2MAN+:} false; then :
                   4310:   $as_echo_n "(cached) " >&6
                   4311: else
                   4312:   if test -n "$HAVE_YODL2MAN"; then
                   4313:   ac_cv_prog_HAVE_YODL2MAN="$HAVE_YODL2MAN" # Let the user override the test.
                   4314: else
                   4315: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4316: for as_dir in $PATH
                   4317: do
                   4318:   IFS=$as_save_IFS
                   4319:   test -z "$as_dir" && as_dir=.
                   4320:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho    4321:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1       misho    4322:     ac_cv_prog_HAVE_YODL2MAN="1"
                   4323:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4324:     break 2
                   4325:   fi
                   4326: done
                   4327:   done
                   4328: IFS=$as_save_IFS
                   4329: 
                   4330:   test -z "$ac_cv_prog_HAVE_YODL2MAN" && ac_cv_prog_HAVE_YODL2MAN="0"
                   4331: fi
                   4332: fi
                   4333: HAVE_YODL2MAN=$ac_cv_prog_HAVE_YODL2MAN
                   4334: if test -n "$HAVE_YODL2MAN"; then
                   4335:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_YODL2MAN" >&5
                   4336: $as_echo "$HAVE_YODL2MAN" >&6; }
                   4337: else
                   4338:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4339: $as_echo "no" >&6; }
                   4340: fi
                   4341: 
                   4342: 
                   4343: if test x$HAVE_YODL2MAN = x1; then
                   4344:     MAKE_MAN=man
1.1.1.2   misho    4345: else
                   4346:     MAKE_MAN=man-copy
                   4347: fi
                   4348: 
                   4349: # Some programs on solaris are only found in /usr/xpg4/bin (or work better than others versions).
                   4350: # Extract the first word of "sh", so it can be a program name with args.
                   4351: set dummy sh; ac_word=$2
                   4352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4353: $as_echo_n "checking for $ac_word... " >&6; }
                   4354: if ${ac_cv_path_SHELL_PATH+:} false; then :
                   4355:   $as_echo_n "(cached) " >&6
                   4356: else
                   4357:   case $SHELL_PATH in
                   4358:   [\\/]* | ?:[\\/]*)
                   4359:   ac_cv_path_SHELL_PATH="$SHELL_PATH" # Let the user override the test with a path.
                   4360:   ;;
                   4361:   *)
                   4362:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4363: for as_dir in /usr/xpg4/bin$PATH_SEPARATOR$PATH
                   4364: do
                   4365:   IFS=$as_save_IFS
                   4366:   test -z "$as_dir" && as_dir=.
                   4367:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho    4368:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.2   misho    4369:     ac_cv_path_SHELL_PATH="$as_dir/$ac_word$ac_exec_ext"
                   4370:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4371:     break 2
                   4372:   fi
                   4373: done
                   4374:   done
                   4375: IFS=$as_save_IFS
                   4376: 
                   4377:   test -z "$ac_cv_path_SHELL_PATH" && ac_cv_path_SHELL_PATH="/bin/sh"
                   4378:   ;;
                   4379: esac
                   4380: fi
                   4381: SHELL_PATH=$ac_cv_path_SHELL_PATH
                   4382: if test -n "$SHELL_PATH"; then
                   4383:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHELL_PATH" >&5
                   4384: $as_echo "$SHELL_PATH" >&6; }
                   4385: else
                   4386:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4387: $as_echo "no" >&6; }
1.1       misho    4388: fi
                   4389: 
                   4390: 
1.1.1.2   misho    4391: # Extract the first word of "fakeroot", so it can be a program name with args.
                   4392: set dummy fakeroot; ac_word=$2
                   4393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   4394: $as_echo_n "checking for $ac_word... " >&6; }
                   4395: if ${ac_cv_path_FAKEROOT_PATH+:} false; then :
                   4396:   $as_echo_n "(cached) " >&6
                   4397: else
                   4398:   case $FAKEROOT_PATH in
                   4399:   [\\/]* | ?:[\\/]*)
                   4400:   ac_cv_path_FAKEROOT_PATH="$FAKEROOT_PATH" # Let the user override the test with a path.
                   4401:   ;;
                   4402:   *)
                   4403:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4404: for as_dir in /usr/xpg4/bin$PATH_SEPARATOR$PATH
                   4405: do
                   4406:   IFS=$as_save_IFS
                   4407:   test -z "$as_dir" && as_dir=.
                   4408:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho    4409:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.2   misho    4410:     ac_cv_path_FAKEROOT_PATH="$as_dir/$ac_word$ac_exec_ext"
                   4411:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4412:     break 2
                   4413:   fi
                   4414: done
                   4415:   done
                   4416: IFS=$as_save_IFS
                   4417: 
                   4418:   test -z "$ac_cv_path_FAKEROOT_PATH" && ac_cv_path_FAKEROOT_PATH="/usr/bin/fakeroot"
                   4419:   ;;
                   4420: esac
                   4421: fi
                   4422: FAKEROOT_PATH=$ac_cv_path_FAKEROOT_PATH
                   4423: if test -n "$FAKEROOT_PATH"; then
                   4424:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FAKEROOT_PATH" >&5
                   4425: $as_echo "$FAKEROOT_PATH" >&6; }
                   4426: else
                   4427:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   4428: $as_echo "no" >&6; }
                   4429: fi
                   4430: 
                   4431: 
                   4432: 
                   4433: 
1.1       misho    4434: # Check whether --with-nobody-group was given.
                   4435: if test "${with_nobody_group+set}" = set; then :
                   4436:   withval=$with_nobody_group;  NOBODY_GROUP="$with_nobody_group"
                   4437: fi
                   4438: 
                   4439: 
                   4440: if test x"$with_nobody_group" = x; then
                   4441:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the group for user \"nobody\"" >&5
                   4442: $as_echo_n "checking the group for user \"nobody\"... " >&6; }
                   4443:     if grep '^nobody:' /etc/group >/dev/null 2>&1; then
                   4444:        NOBODY_GROUP=nobody
                   4445:     elif grep '^nogroup:' /etc/group >/dev/null 2>&1; then
                   4446:        NOBODY_GROUP=nogroup
                   4447:     else
                   4448:        NOBODY_GROUP=nobody # test for others?
                   4449:     fi
                   4450:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOBODY_GROUP" >&5
                   4451: $as_echo "$NOBODY_GROUP" >&6; }
                   4452: fi
                   4453: 
                   4454: 
                   4455: cat >>confdefs.h <<_ACEOF
                   4456: #define NOBODY_USER "nobody"
                   4457: _ACEOF
                   4458: 
                   4459: 
                   4460: cat >>confdefs.h <<_ACEOF
                   4461: #define NOBODY_GROUP "$NOBODY_GROUP"
                   4462: _ACEOF
                   4463: 
                   4464: 
                   4465: # arrgh. libc in some old debian version screwed up the largefile
                   4466: # stuff, getting byte range locking wrong
                   4467: 
                   4468: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken largefile support" >&5
                   4469: $as_echo_n "checking for broken largefile support... " >&6; }
                   4470: if ${rsync_cv_HAVE_BROKEN_LARGEFILE+:} false; then :
                   4471:   $as_echo_n "(cached) " >&6
                   4472: else
                   4473: 
                   4474: if test "$cross_compiling" = yes; then :
                   4475:   rsync_cv_HAVE_BROKEN_LARGEFILE=cross
                   4476: else
                   4477:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4478: /* end confdefs.h.  */
                   4479: 
                   4480: #define _FILE_OFFSET_BITS 64
                   4481: #include <stdio.h>
                   4482: #include <fcntl.h>
                   4483: #include <sys/types.h>
                   4484: #include <sys/wait.h>
                   4485: 
                   4486: int main(void)
                   4487: {
                   4488:        struct flock lock;
                   4489:        int status;
                   4490:        char tpl[32] = "/tmp/locktest.XXXXXX";
                   4491:        int fd = mkstemp(tpl);
                   4492:        if (fd < 0) {
                   4493:                strcpy(tpl, "conftest.dat");
                   4494:                fd = open(tpl, O_CREAT|O_RDWR, 0600);
                   4495:        }
                   4496: 
                   4497:        lock.l_type = F_WRLCK;
                   4498:        lock.l_whence = SEEK_SET;
                   4499:        lock.l_start = 0;
                   4500:        lock.l_len = 1;
                   4501:        lock.l_pid = 0;
                   4502:        fcntl(fd,F_SETLK,&lock);
                   4503:        if (fork() == 0) {
                   4504:                lock.l_start = 1;
                   4505:                _exit(fcntl(fd,F_SETLK,&lock) == 0);
                   4506:        }
                   4507:        wait(&status);
                   4508:        unlink(tpl);
                   4509:        exit(WEXITSTATUS(status));
                   4510: }
                   4511: 
                   4512: _ACEOF
                   4513: if ac_fn_c_try_run "$LINENO"; then :
                   4514:   rsync_cv_HAVE_BROKEN_LARGEFILE=yes
                   4515: else
                   4516:   rsync_cv_HAVE_BROKEN_LARGEFILE=no
                   4517: fi
                   4518: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   4519:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   4520: fi
                   4521: 
                   4522: fi
                   4523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_BROKEN_LARGEFILE" >&5
                   4524: $as_echo "$rsync_cv_HAVE_BROKEN_LARGEFILE" >&6; }
                   4525: if test x"$rsync_cv_HAVE_BROKEN_LARGEFILE" != x"yes"; then
                   4526:    # Check whether --enable-largefile was given.
                   4527: if test "${enable_largefile+set}" = set; then :
                   4528:   enableval=$enable_largefile;
                   4529: fi
                   4530: 
                   4531: if test "$enable_largefile" != no; then
                   4532: 
                   4533:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
                   4534: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
                   4535: if ${ac_cv_sys_largefile_CC+:} false; then :
                   4536:   $as_echo_n "(cached) " >&6
                   4537: else
                   4538:   ac_cv_sys_largefile_CC=no
                   4539:      if test "$GCC" != yes; then
                   4540:        ac_save_CC=$CC
                   4541:        while :; do
                   4542:         # IRIX 6.2 and later do not support large files by default,
                   4543:         # so use the C compiler's -n32 option if that helps.
                   4544:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4545: /* end confdefs.h.  */
                   4546: #include <sys/types.h>
                   4547:  /* Check that off_t can represent 2**63 - 1 correctly.
                   4548:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
                   4549:     since some C++ compilers masquerading as C compilers
                   4550:     incorrectly reject 9223372036854775807.  */
1.1.1.3 ! misho    4551: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.1       misho    4552:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                   4553:                       && LARGE_OFF_T % 2147483647 == 1)
                   4554:                      ? 1 : -1];
                   4555: int
                   4556: main ()
                   4557: {
                   4558: 
                   4559:   ;
                   4560:   return 0;
                   4561: }
                   4562: _ACEOF
                   4563:         if ac_fn_c_try_compile "$LINENO"; then :
                   4564:   break
                   4565: fi
                   4566: rm -f core conftest.err conftest.$ac_objext
                   4567:         CC="$CC -n32"
                   4568:         if ac_fn_c_try_compile "$LINENO"; then :
                   4569:   ac_cv_sys_largefile_CC=' -n32'; break
                   4570: fi
                   4571: rm -f core conftest.err conftest.$ac_objext
                   4572:         break
                   4573:        done
                   4574:        CC=$ac_save_CC
                   4575:        rm -f conftest.$ac_ext
                   4576:     fi
                   4577: fi
                   4578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
                   4579: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
                   4580:   if test "$ac_cv_sys_largefile_CC" != no; then
                   4581:     CC=$CC$ac_cv_sys_largefile_CC
                   4582:   fi
                   4583: 
                   4584:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
                   4585: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
                   4586: if ${ac_cv_sys_file_offset_bits+:} false; then :
                   4587:   $as_echo_n "(cached) " >&6
                   4588: else
                   4589:   while :; do
                   4590:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4591: /* end confdefs.h.  */
                   4592: #include <sys/types.h>
                   4593:  /* Check that off_t can represent 2**63 - 1 correctly.
                   4594:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
                   4595:     since some C++ compilers masquerading as C compilers
                   4596:     incorrectly reject 9223372036854775807.  */
1.1.1.3 ! misho    4597: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.1       misho    4598:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                   4599:                       && LARGE_OFF_T % 2147483647 == 1)
                   4600:                      ? 1 : -1];
                   4601: int
                   4602: main ()
                   4603: {
                   4604: 
                   4605:   ;
                   4606:   return 0;
                   4607: }
                   4608: _ACEOF
                   4609: if ac_fn_c_try_compile "$LINENO"; then :
                   4610:   ac_cv_sys_file_offset_bits=no; break
                   4611: fi
                   4612: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4613:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4614: /* end confdefs.h.  */
                   4615: #define _FILE_OFFSET_BITS 64
                   4616: #include <sys/types.h>
                   4617:  /* Check that off_t can represent 2**63 - 1 correctly.
                   4618:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
                   4619:     since some C++ compilers masquerading as C compilers
                   4620:     incorrectly reject 9223372036854775807.  */
1.1.1.3 ! misho    4621: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.1       misho    4622:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                   4623:                       && LARGE_OFF_T % 2147483647 == 1)
                   4624:                      ? 1 : -1];
                   4625: int
                   4626: main ()
                   4627: {
                   4628: 
                   4629:   ;
                   4630:   return 0;
                   4631: }
                   4632: _ACEOF
                   4633: if ac_fn_c_try_compile "$LINENO"; then :
                   4634:   ac_cv_sys_file_offset_bits=64; break
                   4635: fi
                   4636: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4637:   ac_cv_sys_file_offset_bits=unknown
                   4638:   break
                   4639: done
                   4640: fi
                   4641: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
                   4642: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
                   4643: case $ac_cv_sys_file_offset_bits in #(
                   4644:   no | unknown) ;;
                   4645:   *)
                   4646: cat >>confdefs.h <<_ACEOF
                   4647: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
                   4648: _ACEOF
                   4649: ;;
                   4650: esac
                   4651: rm -rf conftest*
                   4652:   if test $ac_cv_sys_file_offset_bits = unknown; then
                   4653:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
                   4654: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
                   4655: if ${ac_cv_sys_large_files+:} false; then :
                   4656:   $as_echo_n "(cached) " >&6
                   4657: else
                   4658:   while :; do
                   4659:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4660: /* end confdefs.h.  */
                   4661: #include <sys/types.h>
                   4662:  /* Check that off_t can represent 2**63 - 1 correctly.
                   4663:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
                   4664:     since some C++ compilers masquerading as C compilers
                   4665:     incorrectly reject 9223372036854775807.  */
1.1.1.3 ! misho    4666: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.1       misho    4667:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                   4668:                       && LARGE_OFF_T % 2147483647 == 1)
                   4669:                      ? 1 : -1];
                   4670: int
                   4671: main ()
                   4672: {
                   4673: 
                   4674:   ;
                   4675:   return 0;
                   4676: }
                   4677: _ACEOF
                   4678: if ac_fn_c_try_compile "$LINENO"; then :
                   4679:   ac_cv_sys_large_files=no; break
                   4680: fi
                   4681: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4682:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4683: /* end confdefs.h.  */
                   4684: #define _LARGE_FILES 1
                   4685: #include <sys/types.h>
                   4686:  /* Check that off_t can represent 2**63 - 1 correctly.
                   4687:     We can't simply define LARGE_OFF_T to be 9223372036854775807,
                   4688:     since some C++ compilers masquerading as C compilers
                   4689:     incorrectly reject 9223372036854775807.  */
1.1.1.3 ! misho    4690: #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1.1       misho    4691:   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
                   4692:                       && LARGE_OFF_T % 2147483647 == 1)
                   4693:                      ? 1 : -1];
                   4694: int
                   4695: main ()
                   4696: {
                   4697: 
                   4698:   ;
                   4699:   return 0;
                   4700: }
                   4701: _ACEOF
                   4702: if ac_fn_c_try_compile "$LINENO"; then :
                   4703:   ac_cv_sys_large_files=1; break
                   4704: fi
                   4705: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4706:   ac_cv_sys_large_files=unknown
                   4707:   break
                   4708: done
                   4709: fi
                   4710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
                   4711: $as_echo "$ac_cv_sys_large_files" >&6; }
                   4712: case $ac_cv_sys_large_files in #(
                   4713:   no | unknown) ;;
                   4714:   *)
                   4715: cat >>confdefs.h <<_ACEOF
                   4716: #define _LARGE_FILES $ac_cv_sys_large_files
                   4717: _ACEOF
                   4718: ;;
                   4719: esac
                   4720: rm -rf conftest*
                   4721:   fi
1.1.1.3 ! misho    4722: 
        !          4723: 
1.1       misho    4724: fi
                   4725: 
                   4726: fi
                   4727: 
                   4728: ipv6type=unknown
                   4729: ipv6lib=none
                   4730: ipv6trylibc=yes
                   4731: 
                   4732: # Check whether --enable-ipv6 was given.
                   4733: if test "${enable_ipv6+set}" = set; then :
                   4734:   enableval=$enable_ipv6;
                   4735: fi
                   4736: 
                   4737: if test x"$enable_ipv6" != x"no"; then
                   4738:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
                   4739: $as_echo_n "checking ipv6 stack type... " >&6; }
                   4740:        for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta cygwin; do
                   4741:                case $i in
                   4742:                inria)
                   4743:                        # http://www.kame.net/
                   4744: 
                   4745: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4746: /* end confdefs.h.  */
                   4747: 
                   4748: #include <netinet/in.h>
                   4749: #ifdef IPV6_INRIA_VERSION
                   4750: yes
                   4751: #endif
                   4752: _ACEOF
                   4753: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4754:   $EGREP "yes" >/dev/null 2>&1; then :
                   4755:   ipv6type=$i;
                   4756: 
                   4757: $as_echo "#define INET6 1" >>confdefs.h
                   4758: 
                   4759: 
                   4760: fi
                   4761: rm -f conftest*
                   4762: 
                   4763:                        ;;
                   4764:                kame)
                   4765:                        # http://www.kame.net/
                   4766:                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4767: /* end confdefs.h.  */
                   4768: 
                   4769: #include <netinet/in.h>
                   4770: #ifdef __KAME__
                   4771: yes
                   4772: #endif
                   4773: _ACEOF
                   4774: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4775:   $EGREP "yes" >/dev/null 2>&1; then :
                   4776:   ipv6type=$i;
                   4777: 
                   4778: $as_echo "#define INET6 1" >>confdefs.h
                   4779: 
                   4780: fi
                   4781: rm -f conftest*
                   4782: 
                   4783:                        ;;
                   4784:                linux-glibc)
                   4785:                        # http://www.v6.linux.or.jp/
                   4786:                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4787: /* end confdefs.h.  */
                   4788: 
                   4789: #include <features.h>
                   4790: #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
                   4791: yes
                   4792: #endif
                   4793: _ACEOF
                   4794: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4795:   $EGREP "yes" >/dev/null 2>&1; then :
                   4796:   ipv6type=$i;
                   4797: 
                   4798: $as_echo "#define INET6 1" >>confdefs.h
                   4799: 
                   4800: fi
                   4801: rm -f conftest*
                   4802: 
                   4803:                        ;;
                   4804:                linux-inet6)
                   4805:                        # http://www.v6.linux.or.jp/
                   4806:                        if test -d /usr/inet6 -o -f /usr/inet6/lib/libinet6.a; then
                   4807:                                ipv6type=$i
                   4808:                                ipv6lib=inet6
                   4809:                                ipv6libdir=/usr/inet6/lib
                   4810:                                ipv6trylibc=yes;
                   4811: 
                   4812: $as_echo "#define INET6 1" >>confdefs.h
                   4813: 
                   4814:                                CFLAGS="-I/usr/inet6/include $CFLAGS"
                   4815:                        fi
                   4816:                        ;;
                   4817:                solaris)
                   4818:                        # http://www.sun.com
                   4819:                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4820: /* end confdefs.h.  */
                   4821: 
                   4822: #include <netinet/ip6.h>
                   4823: #ifdef __sun
                   4824: yes
                   4825: #endif
                   4826: _ACEOF
                   4827: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4828:   $EGREP "yes" >/dev/null 2>&1; then :
                   4829:   ipv6type=$i;
                   4830: 
                   4831: $as_echo "#define INET6 1" >>confdefs.h
                   4832: 
                   4833: fi
                   4834: rm -f conftest*
                   4835: 
                   4836:                        ;;
                   4837:                toshiba)
                   4838:                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4839: /* end confdefs.h.  */
                   4840: 
                   4841: #include <sys/param.h>
                   4842: #ifdef _TOSHIBA_INET6
                   4843: yes
                   4844: #endif
                   4845: _ACEOF
                   4846: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4847:   $EGREP "yes" >/dev/null 2>&1; then :
                   4848:   ipv6type=$i;
                   4849:                                ipv6lib=inet6;
                   4850:                                ipv6libdir=/usr/local/v6/lib;
                   4851: 
                   4852: $as_echo "#define INET6 1" >>confdefs.h
                   4853: 
                   4854: fi
                   4855: rm -f conftest*
                   4856: 
                   4857:                        ;;
                   4858:                v6d)
                   4859:                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4860: /* end confdefs.h.  */
                   4861: 
                   4862: #include </usr/local/v6/include/sys/v6config.h>
                   4863: #ifdef __V6D__
                   4864: yes
                   4865: #endif
                   4866: _ACEOF
                   4867: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4868:   $EGREP "yes" >/dev/null 2>&1; then :
                   4869:   ipv6type=$i;
                   4870:                                ipv6lib=v6;
                   4871:                                ipv6libdir=/usr/local/v6/lib;
                   4872: 
                   4873: $as_echo "#define INET6 1" >>confdefs.h
                   4874: 
                   4875: fi
                   4876: rm -f conftest*
                   4877: 
                   4878:                        ;;
                   4879:                zeta)
                   4880:                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4881: /* end confdefs.h.  */
                   4882: 
                   4883: #include <sys/param.h>
                   4884: #ifdef _ZETA_MINAMI_INET6
                   4885: yes
                   4886: #endif
                   4887: _ACEOF
                   4888: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4889:   $EGREP "yes" >/dev/null 2>&1; then :
                   4890:   ipv6type=$i;
                   4891:                                ipv6lib=inet6;
                   4892:                                ipv6libdir=/usr/local/v6/lib;
                   4893: 
                   4894: $as_echo "#define INET6 1" >>confdefs.h
                   4895: 
                   4896: fi
                   4897: rm -f conftest*
                   4898: 
                   4899:                        ;;
                   4900:                cygwin)
                   4901:                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4902: /* end confdefs.h.  */
                   4903: 
                   4904: #include <netinet/in.h>
                   4905: #ifdef _CYGWIN_IN6_H
                   4906: yes
                   4907: #endif
                   4908: _ACEOF
                   4909: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4910:   $EGREP "yes" >/dev/null 2>&1; then :
                   4911:   ipv6type=$i;
                   4912: 
                   4913: $as_echo "#define INET6 1" >>confdefs.h
                   4914: 
                   4915: fi
                   4916: rm -f conftest*
                   4917: 
                   4918:                        ;;
                   4919:                esac
                   4920:                if test "$ipv6type" != "unknown"; then
                   4921:                        break
                   4922:                fi
                   4923:        done
                   4924:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
                   4925: $as_echo "$ipv6type" >&6; }
                   4926: 
                   4927:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
                   4928: $as_echo_n "checking for library containing getaddrinfo... " >&6; }
                   4929: if ${ac_cv_search_getaddrinfo+:} false; then :
                   4930:   $as_echo_n "(cached) " >&6
                   4931: else
                   4932:   ac_func_search_save_LIBS=$LIBS
                   4933: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   4934: /* end confdefs.h.  */
                   4935: 
                   4936: /* Override any GCC internal prototype to avoid an error.
                   4937:    Use char because int might match the return type of a GCC
                   4938:    builtin and then its argument prototype would still apply.  */
                   4939: #ifdef __cplusplus
                   4940: extern "C"
                   4941: #endif
                   4942: char getaddrinfo ();
                   4943: int
                   4944: main ()
                   4945: {
                   4946: return getaddrinfo ();
                   4947:   ;
                   4948:   return 0;
                   4949: }
                   4950: _ACEOF
                   4951: for ac_lib in '' inet6; do
                   4952:   if test -z "$ac_lib"; then
                   4953:     ac_res="none required"
                   4954:   else
                   4955:     ac_res=-l$ac_lib
                   4956:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   4957:   fi
                   4958:   if ac_fn_c_try_link "$LINENO"; then :
                   4959:   ac_cv_search_getaddrinfo=$ac_res
                   4960: fi
                   4961: rm -f core conftest.err conftest.$ac_objext \
                   4962:     conftest$ac_exeext
                   4963:   if ${ac_cv_search_getaddrinfo+:} false; then :
                   4964:   break
                   4965: fi
                   4966: done
                   4967: if ${ac_cv_search_getaddrinfo+:} false; then :
                   4968: 
                   4969: else
                   4970:   ac_cv_search_getaddrinfo=no
                   4971: fi
                   4972: rm conftest.$ac_ext
                   4973: LIBS=$ac_func_search_save_LIBS
                   4974: fi
                   4975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
                   4976: $as_echo "$ac_cv_search_getaddrinfo" >&6; }
                   4977: ac_res=$ac_cv_search_getaddrinfo
                   4978: if test "$ac_res" != no; then :
                   4979:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   4980: 
                   4981: fi
                   4982: 
                   4983: fi
                   4984: 
                   4985: # Check whether --enable-locale was given.
                   4986: if test "${enable_locale+set}" = set; then :
                   4987:   enableval=$enable_locale;
                   4988: fi
                   4989: 
                   4990: 
                   4991: if test x"$enable_locale" != x"no"; then
                   4992:        $as_echo "#define CONFIG_LOCALE 1" >>confdefs.h
                   4993: 
                   4994: fi
                   4995: 
                   4996: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to call shutdown on all sockets" >&5
                   4997: $as_echo_n "checking whether to call shutdown on all sockets... " >&6; }
                   4998: case $host_os in
                   4999:        *cygwin* ) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   5000: $as_echo "yes" >&6; }
                   5001: 
                   5002: $as_echo "#define SHUTDOWN_ALL_SOCKETS 1" >>confdefs.h
                   5003: 
                   5004:                   ;;
                   5005:               * ) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   5006: $as_echo "no" >&6; };;
                   5007: esac
                   5008: 
                   5009: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
                   5010: $as_echo_n "checking for ANSI C header files... " >&6; }
                   5011: if ${ac_cv_header_stdc+:} false; then :
                   5012:   $as_echo_n "(cached) " >&6
                   5013: else
                   5014:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5015: /* end confdefs.h.  */
                   5016: #include <stdlib.h>
                   5017: #include <stdarg.h>
                   5018: #include <string.h>
                   5019: #include <float.h>
                   5020: 
                   5021: int
                   5022: main ()
                   5023: {
                   5024: 
                   5025:   ;
                   5026:   return 0;
                   5027: }
                   5028: _ACEOF
                   5029: if ac_fn_c_try_compile "$LINENO"; then :
                   5030:   ac_cv_header_stdc=yes
                   5031: else
                   5032:   ac_cv_header_stdc=no
                   5033: fi
                   5034: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   5035: 
                   5036: if test $ac_cv_header_stdc = yes; then
                   5037:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   5038:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5039: /* end confdefs.h.  */
                   5040: #include <string.h>
                   5041: 
                   5042: _ACEOF
                   5043: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5044:   $EGREP "memchr" >/dev/null 2>&1; then :
                   5045: 
                   5046: else
                   5047:   ac_cv_header_stdc=no
                   5048: fi
                   5049: rm -f conftest*
                   5050: 
                   5051: fi
                   5052: 
                   5053: if test $ac_cv_header_stdc = yes; then
                   5054:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   5055:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5056: /* end confdefs.h.  */
                   5057: #include <stdlib.h>
                   5058: 
                   5059: _ACEOF
                   5060: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5061:   $EGREP "free" >/dev/null 2>&1; then :
                   5062: 
                   5063: else
                   5064:   ac_cv_header_stdc=no
                   5065: fi
                   5066: rm -f conftest*
                   5067: 
                   5068: fi
                   5069: 
                   5070: if test $ac_cv_header_stdc = yes; then
                   5071:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   5072:   if test "$cross_compiling" = yes; then :
                   5073:   :
                   5074: else
                   5075:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5076: /* end confdefs.h.  */
                   5077: #include <ctype.h>
                   5078: #include <stdlib.h>
                   5079: #if ((' ' & 0x0FF) == 0x020)
                   5080: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   5081: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   5082: #else
                   5083: # define ISLOWER(c) \
                   5084:                   (('a' <= (c) && (c) <= 'i') \
                   5085:                     || ('j' <= (c) && (c) <= 'r') \
                   5086:                     || ('s' <= (c) && (c) <= 'z'))
                   5087: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   5088: #endif
                   5089: 
                   5090: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   5091: int
                   5092: main ()
                   5093: {
                   5094:   int i;
                   5095:   for (i = 0; i < 256; i++)
                   5096:     if (XOR (islower (i), ISLOWER (i))
                   5097:        || toupper (i) != TOUPPER (i))
                   5098:       return 2;
                   5099:   return 0;
                   5100: }
                   5101: _ACEOF
                   5102: if ac_fn_c_try_run "$LINENO"; then :
                   5103: 
                   5104: else
                   5105:   ac_cv_header_stdc=no
                   5106: fi
                   5107: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   5108:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   5109: fi
                   5110: 
                   5111: fi
                   5112: fi
                   5113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
                   5114: $as_echo "$ac_cv_header_stdc" >&6; }
                   5115: if test $ac_cv_header_stdc = yes; then
                   5116: 
                   5117: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
                   5118: 
                   5119: fi
                   5120: 
                   5121: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   5122: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   5123:                  inttypes.h stdint.h unistd.h
                   5124: do :
                   5125:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   5126: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   5127: "
                   5128: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   5129:   cat >>confdefs.h <<_ACEOF
                   5130: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   5131: _ACEOF
                   5132: 
                   5133: fi
                   5134: 
                   5135: done
                   5136: 
                   5137: 
                   5138:  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
                   5139: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
                   5140: if ${ac_cv_c_bigendian+:} false; then :
                   5141:   $as_echo_n "(cached) " >&6
                   5142: else
                   5143:   ac_cv_c_bigendian=unknown
                   5144:     # See if we're dealing with a universal compiler.
                   5145:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5146: /* end confdefs.h.  */
                   5147: #ifndef __APPLE_CC__
                   5148:               not a universal capable compiler
                   5149:             #endif
                   5150:             typedef int dummy;
                   5151: 
                   5152: _ACEOF
                   5153: if ac_fn_c_try_compile "$LINENO"; then :
                   5154: 
                   5155:        # Check for potential -arch flags.  It is not universal unless
                   5156:        # there are at least two -arch flags with different values.
                   5157:        ac_arch=
                   5158:        ac_prev=
                   5159:        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
                   5160:         if test -n "$ac_prev"; then
                   5161:           case $ac_word in
                   5162:             i?86 | x86_64 | ppc | ppc64)
                   5163:               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
                   5164:                 ac_arch=$ac_word
                   5165:               else
                   5166:                 ac_cv_c_bigendian=universal
                   5167:                 break
                   5168:               fi
                   5169:               ;;
                   5170:           esac
                   5171:           ac_prev=
                   5172:         elif test "x$ac_word" = "x-arch"; then
                   5173:           ac_prev=arch
                   5174:         fi
                   5175:        done
                   5176: fi
                   5177: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   5178:     if test $ac_cv_c_bigendian = unknown; then
                   5179:       # See if sys/param.h defines the BYTE_ORDER macro.
                   5180:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5181: /* end confdefs.h.  */
                   5182: #include <sys/types.h>
                   5183:             #include <sys/param.h>
                   5184: 
                   5185: int
                   5186: main ()
                   5187: {
                   5188: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
                   5189:                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
                   5190:                     && LITTLE_ENDIAN)
                   5191:              bogus endian macros
                   5192:             #endif
                   5193: 
                   5194:   ;
                   5195:   return 0;
                   5196: }
                   5197: _ACEOF
                   5198: if ac_fn_c_try_compile "$LINENO"; then :
                   5199:   # It does; now see whether it defined to BIG_ENDIAN or not.
                   5200:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5201: /* end confdefs.h.  */
                   5202: #include <sys/types.h>
                   5203:                #include <sys/param.h>
                   5204: 
                   5205: int
                   5206: main ()
                   5207: {
                   5208: #if BYTE_ORDER != BIG_ENDIAN
                   5209:                 not big endian
                   5210:                #endif
                   5211: 
                   5212:   ;
                   5213:   return 0;
                   5214: }
                   5215: _ACEOF
                   5216: if ac_fn_c_try_compile "$LINENO"; then :
                   5217:   ac_cv_c_bigendian=yes
                   5218: else
                   5219:   ac_cv_c_bigendian=no
                   5220: fi
                   5221: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   5222: fi
                   5223: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   5224:     fi
                   5225:     if test $ac_cv_c_bigendian = unknown; then
                   5226:       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
                   5227:       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5228: /* end confdefs.h.  */
                   5229: #include <limits.h>
                   5230: 
                   5231: int
                   5232: main ()
                   5233: {
                   5234: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
                   5235:              bogus endian macros
                   5236:             #endif
                   5237: 
                   5238:   ;
                   5239:   return 0;
                   5240: }
                   5241: _ACEOF
                   5242: if ac_fn_c_try_compile "$LINENO"; then :
                   5243:   # It does; now see whether it defined to _BIG_ENDIAN or not.
                   5244:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5245: /* end confdefs.h.  */
                   5246: #include <limits.h>
                   5247: 
                   5248: int
                   5249: main ()
                   5250: {
                   5251: #ifndef _BIG_ENDIAN
                   5252:                 not big endian
                   5253:                #endif
                   5254: 
                   5255:   ;
                   5256:   return 0;
                   5257: }
                   5258: _ACEOF
                   5259: if ac_fn_c_try_compile "$LINENO"; then :
                   5260:   ac_cv_c_bigendian=yes
                   5261: else
                   5262:   ac_cv_c_bigendian=no
                   5263: fi
                   5264: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   5265: fi
                   5266: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   5267:     fi
                   5268:     if test $ac_cv_c_bigendian = unknown; then
                   5269:       # Compile a test program.
                   5270:       if test "$cross_compiling" = yes; then :
                   5271:   # Try to guess by grepping values from an object file.
                   5272:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5273: /* end confdefs.h.  */
                   5274: short int ascii_mm[] =
                   5275:                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
                   5276:                short int ascii_ii[] =
                   5277:                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
                   5278:                int use_ascii (int i) {
                   5279:                  return ascii_mm[i] + ascii_ii[i];
                   5280:                }
                   5281:                short int ebcdic_ii[] =
                   5282:                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
                   5283:                short int ebcdic_mm[] =
                   5284:                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
                   5285:                int use_ebcdic (int i) {
                   5286:                  return ebcdic_mm[i] + ebcdic_ii[i];
                   5287:                }
                   5288:                extern int foo;
                   5289: 
                   5290: int
                   5291: main ()
                   5292: {
                   5293: return use_ascii (foo) == use_ebcdic (foo);
                   5294:   ;
                   5295:   return 0;
                   5296: }
                   5297: _ACEOF
                   5298: if ac_fn_c_try_compile "$LINENO"; then :
                   5299:   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
                   5300:              ac_cv_c_bigendian=yes
                   5301:            fi
                   5302:            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
                   5303:              if test "$ac_cv_c_bigendian" = unknown; then
                   5304:                ac_cv_c_bigendian=no
                   5305:              else
                   5306:                # finding both strings is unlikely to happen, but who knows?
                   5307:                ac_cv_c_bigendian=unknown
                   5308:              fi
                   5309:            fi
                   5310: fi
                   5311: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   5312: else
                   5313:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5314: /* end confdefs.h.  */
                   5315: $ac_includes_default
                   5316: int
                   5317: main ()
                   5318: {
                   5319: 
                   5320:             /* Are we little or big endian?  From Harbison&Steele.  */
                   5321:             union
                   5322:             {
                   5323:               long int l;
                   5324:               char c[sizeof (long int)];
                   5325:             } u;
                   5326:             u.l = 1;
                   5327:             return u.c[sizeof (long int) - 1] == 1;
                   5328: 
                   5329:   ;
                   5330:   return 0;
                   5331: }
                   5332: _ACEOF
                   5333: if ac_fn_c_try_run "$LINENO"; then :
                   5334:   ac_cv_c_bigendian=no
                   5335: else
                   5336:   ac_cv_c_bigendian=yes
                   5337: fi
                   5338: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   5339:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   5340: fi
                   5341: 
                   5342:     fi
                   5343: fi
                   5344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
                   5345: $as_echo "$ac_cv_c_bigendian" >&6; }
                   5346:  case $ac_cv_c_bigendian in #(
                   5347:    yes)
                   5348:      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
                   5349: ;; #(
                   5350:    no)
                   5351:       ;; #(
                   5352:    universal)
                   5353: 
                   5354: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
                   5355: 
                   5356:      ;; #(
                   5357:    *)
                   5358:      as_fn_error $? "unknown endianness
                   5359:  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
                   5360:  esac
                   5361: 
                   5362: ac_header_dirent=no
                   5363: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   5364:   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
                   5365: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
                   5366: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
                   5367: if eval \${$as_ac_Header+:} false; then :
                   5368:   $as_echo_n "(cached) " >&6
                   5369: else
                   5370:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5371: /* end confdefs.h.  */
                   5372: #include <sys/types.h>
                   5373: #include <$ac_hdr>
                   5374: 
                   5375: int
                   5376: main ()
                   5377: {
                   5378: if ((DIR *) 0)
                   5379: return 0;
                   5380:   ;
                   5381:   return 0;
                   5382: }
                   5383: _ACEOF
                   5384: if ac_fn_c_try_compile "$LINENO"; then :
                   5385:   eval "$as_ac_Header=yes"
                   5386: else
                   5387:   eval "$as_ac_Header=no"
                   5388: fi
                   5389: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   5390: fi
                   5391: eval ac_res=\$$as_ac_Header
                   5392:               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
                   5393: $as_echo "$ac_res" >&6; }
                   5394: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   5395:   cat >>confdefs.h <<_ACEOF
                   5396: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   5397: _ACEOF
                   5398: 
                   5399: ac_header_dirent=$ac_hdr; break
                   5400: fi
                   5401: 
                   5402: done
                   5403: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   5404: if test $ac_header_dirent = dirent.h; then
                   5405:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   5406: $as_echo_n "checking for library containing opendir... " >&6; }
                   5407: if ${ac_cv_search_opendir+:} false; then :
                   5408:   $as_echo_n "(cached) " >&6
                   5409: else
                   5410:   ac_func_search_save_LIBS=$LIBS
                   5411: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5412: /* end confdefs.h.  */
                   5413: 
                   5414: /* Override any GCC internal prototype to avoid an error.
                   5415:    Use char because int might match the return type of a GCC
                   5416:    builtin and then its argument prototype would still apply.  */
                   5417: #ifdef __cplusplus
                   5418: extern "C"
                   5419: #endif
                   5420: char opendir ();
                   5421: int
                   5422: main ()
                   5423: {
                   5424: return opendir ();
                   5425:   ;
                   5426:   return 0;
                   5427: }
                   5428: _ACEOF
                   5429: for ac_lib in '' dir; do
                   5430:   if test -z "$ac_lib"; then
                   5431:     ac_res="none required"
                   5432:   else
                   5433:     ac_res=-l$ac_lib
                   5434:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   5435:   fi
                   5436:   if ac_fn_c_try_link "$LINENO"; then :
                   5437:   ac_cv_search_opendir=$ac_res
                   5438: fi
                   5439: rm -f core conftest.err conftest.$ac_objext \
                   5440:     conftest$ac_exeext
                   5441:   if ${ac_cv_search_opendir+:} false; then :
                   5442:   break
                   5443: fi
                   5444: done
                   5445: if ${ac_cv_search_opendir+:} false; then :
                   5446: 
                   5447: else
                   5448:   ac_cv_search_opendir=no
                   5449: fi
                   5450: rm conftest.$ac_ext
                   5451: LIBS=$ac_func_search_save_LIBS
                   5452: fi
                   5453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   5454: $as_echo "$ac_cv_search_opendir" >&6; }
                   5455: ac_res=$ac_cv_search_opendir
                   5456: if test "$ac_res" != no; then :
                   5457:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   5458: 
                   5459: fi
                   5460: 
                   5461: else
                   5462:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
                   5463: $as_echo_n "checking for library containing opendir... " >&6; }
                   5464: if ${ac_cv_search_opendir+:} false; then :
                   5465:   $as_echo_n "(cached) " >&6
                   5466: else
                   5467:   ac_func_search_save_LIBS=$LIBS
                   5468: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5469: /* end confdefs.h.  */
                   5470: 
                   5471: /* Override any GCC internal prototype to avoid an error.
                   5472:    Use char because int might match the return type of a GCC
                   5473:    builtin and then its argument prototype would still apply.  */
                   5474: #ifdef __cplusplus
                   5475: extern "C"
                   5476: #endif
                   5477: char opendir ();
                   5478: int
                   5479: main ()
                   5480: {
                   5481: return opendir ();
                   5482:   ;
                   5483:   return 0;
                   5484: }
                   5485: _ACEOF
                   5486: for ac_lib in '' x; do
                   5487:   if test -z "$ac_lib"; then
                   5488:     ac_res="none required"
                   5489:   else
                   5490:     ac_res=-l$ac_lib
                   5491:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   5492:   fi
                   5493:   if ac_fn_c_try_link "$LINENO"; then :
                   5494:   ac_cv_search_opendir=$ac_res
                   5495: fi
                   5496: rm -f core conftest.err conftest.$ac_objext \
                   5497:     conftest$ac_exeext
                   5498:   if ${ac_cv_search_opendir+:} false; then :
                   5499:   break
                   5500: fi
                   5501: done
                   5502: if ${ac_cv_search_opendir+:} false; then :
                   5503: 
                   5504: else
                   5505:   ac_cv_search_opendir=no
                   5506: fi
                   5507: rm conftest.$ac_ext
                   5508: LIBS=$ac_func_search_save_LIBS
                   5509: fi
                   5510: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
                   5511: $as_echo "$ac_cv_search_opendir" >&6; }
                   5512: ac_res=$ac_cv_search_opendir
                   5513: if test "$ac_res" != no; then :
                   5514:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   5515: 
                   5516: fi
                   5517: 
                   5518: fi
                   5519: 
                   5520: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
                   5521: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
                   5522: if ${ac_cv_header_time+:} false; then :
                   5523:   $as_echo_n "(cached) " >&6
                   5524: else
                   5525:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5526: /* end confdefs.h.  */
                   5527: #include <sys/types.h>
                   5528: #include <sys/time.h>
                   5529: #include <time.h>
                   5530: 
                   5531: int
                   5532: main ()
                   5533: {
                   5534: if ((struct tm *) 0)
                   5535: return 0;
                   5536:   ;
                   5537:   return 0;
                   5538: }
                   5539: _ACEOF
                   5540: if ac_fn_c_try_compile "$LINENO"; then :
                   5541:   ac_cv_header_time=yes
                   5542: else
                   5543:   ac_cv_header_time=no
                   5544: fi
                   5545: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   5546: fi
                   5547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
                   5548: $as_echo "$ac_cv_header_time" >&6; }
                   5549: if test $ac_cv_header_time = yes; then
                   5550: 
                   5551: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
                   5552: 
                   5553: fi
                   5554: 
                   5555: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
                   5556: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
                   5557: if ${ac_cv_header_sys_wait_h+:} false; then :
                   5558:   $as_echo_n "(cached) " >&6
                   5559: else
                   5560:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5561: /* end confdefs.h.  */
                   5562: #include <sys/types.h>
                   5563: #include <sys/wait.h>
                   5564: #ifndef WEXITSTATUS
                   5565: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
                   5566: #endif
                   5567: #ifndef WIFEXITED
                   5568: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
                   5569: #endif
                   5570: 
                   5571: int
                   5572: main ()
                   5573: {
                   5574:   int s;
                   5575:   wait (&s);
                   5576:   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
                   5577:   ;
                   5578:   return 0;
                   5579: }
                   5580: _ACEOF
                   5581: if ac_fn_c_try_compile "$LINENO"; then :
                   5582:   ac_cv_header_sys_wait_h=yes
                   5583: else
                   5584:   ac_cv_header_sys_wait_h=no
                   5585: fi
                   5586: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   5587: fi
                   5588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
                   5589: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
                   5590: if test $ac_cv_header_sys_wait_h = yes; then
                   5591: 
                   5592: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
                   5593: 
                   5594: fi
                   5595: 
                   5596: for ac_header in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h \
                   5597:     unistd.h utime.h grp.h compat.h sys/param.h ctype.h sys/wait.h \
                   5598:     sys/ioctl.h sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h \
                   5599:     sys/un.h sys/attr.h mcheck.h arpa/inet.h arpa/nameser.h locale.h \
                   5600:     netdb.h malloc.h float.h limits.h iconv.h libcharset.h langinfo.h \
                   5601:     sys/acl.h acl/libacl.h attr/xattr.h sys/xattr.h sys/extattr.h \
1.1.1.2   misho    5602:     popt.h popt/popt.h linux/falloc.h netinet/in_systm.h netinet/ip.h \
                   5603:     zlib.h
1.1       misho    5604: do :
                   5605:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   5606: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
                   5607: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   5608:   cat >>confdefs.h <<_ACEOF
                   5609: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   5610: _ACEOF
                   5611: 
                   5612: fi
                   5613: 
                   5614: done
                   5615: 
                   5616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
                   5617: $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
                   5618: if ${ac_cv_header_sys_types_h_makedev+:} false; then :
                   5619:   $as_echo_n "(cached) " >&6
                   5620: else
                   5621:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5622: /* end confdefs.h.  */
                   5623: #include <sys/types.h>
                   5624: int
                   5625: main ()
                   5626: {
                   5627: return makedev(0, 0);
                   5628:   ;
                   5629:   return 0;
                   5630: }
                   5631: _ACEOF
                   5632: if ac_fn_c_try_link "$LINENO"; then :
                   5633:   ac_cv_header_sys_types_h_makedev=yes
                   5634: else
                   5635:   ac_cv_header_sys_types_h_makedev=no
                   5636: fi
                   5637: rm -f core conftest.err conftest.$ac_objext \
                   5638:     conftest$ac_exeext conftest.$ac_ext
                   5639: 
                   5640: fi
                   5641: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
                   5642: $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
                   5643: 
                   5644: if test $ac_cv_header_sys_types_h_makedev = no; then
                   5645: ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
                   5646: if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
                   5647: 
                   5648: $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
                   5649: 
                   5650: fi
                   5651: 
                   5652: 
                   5653: 
                   5654:   if test $ac_cv_header_sys_mkdev_h = no; then
                   5655:     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
                   5656: if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
                   5657: 
                   5658: $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
                   5659: 
                   5660: fi
                   5661: 
                   5662: 
                   5663:   fi
                   5664: fi
                   5665: 
                   5666: 
                   5667: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if makedev takes 3 args" >&5
                   5668: $as_echo_n "checking if makedev takes 3 args... " >&6; }
                   5669: if ${rsync_cv_MAKEDEV_TAKES_3_ARGS+:} false; then :
                   5670:   $as_echo_n "(cached) " >&6
                   5671: else
                   5672: 
                   5673: if test "$cross_compiling" = yes; then :
                   5674:   rsync_cv_MAKEDEV_TAKES_3_ARGS=no
                   5675: else
                   5676:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   5677: /* end confdefs.h.  */
                   5678: 
                   5679: #include <sys/types.h>
                   5680: #ifdef MAJOR_IN_MKDEV
                   5681: #include <sys/mkdev.h>
                   5682: # if !defined makedev && (defined mkdev || defined _WIN32 || defined __WIN32__)
                   5683: #  define makedev mkdev
                   5684: # endif
                   5685: #elif defined MAJOR_IN_SYSMACROS
                   5686: #include <sys/sysmacros.h>
                   5687: #endif
                   5688: 
                   5689: int main(void)
                   5690: {
                   5691:        dev_t dev = makedev(0, 5, 7);
                   5692:        if (major(dev) != 5 || minor(dev) != 7)
                   5693:                exit(1);
                   5694:        return 0;
                   5695: }
                   5696: 
                   5697: _ACEOF
                   5698: if ac_fn_c_try_run "$LINENO"; then :
                   5699:   rsync_cv_MAKEDEV_TAKES_3_ARGS=yes
                   5700: else
                   5701:   rsync_cv_MAKEDEV_TAKES_3_ARGS=no
                   5702: fi
                   5703: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   5704:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   5705: fi
                   5706: 
                   5707: fi
                   5708: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_MAKEDEV_TAKES_3_ARGS" >&5
                   5709: $as_echo "$rsync_cv_MAKEDEV_TAKES_3_ARGS" >&6; }
                   5710: if test x"$rsync_cv_MAKEDEV_TAKES_3_ARGS" = x"yes"; then
                   5711: 
                   5712: $as_echo "#define MAKEDEV_TAKES_3_ARGS 1" >>confdefs.h
                   5713: 
                   5714: fi
                   5715: 
                   5716: # The cast to long int works around a bug in the HP C Compiler
                   5717: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   5718: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   5719: # This bug is HP SR number 8606223364.
                   5720: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
                   5721: $as_echo_n "checking size of int... " >&6; }
                   5722: if ${ac_cv_sizeof_int+:} false; then :
                   5723:   $as_echo_n "(cached) " >&6
                   5724: else
                   5725:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
                   5726: 
                   5727: else
                   5728:   if test "$ac_cv_type_int" = yes; then
                   5729:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5730: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   5731: as_fn_error 77 "cannot compute sizeof (int)
                   5732: See \`config.log' for more details" "$LINENO" 5; }
                   5733:    else
                   5734:      ac_cv_sizeof_int=0
                   5735:    fi
                   5736: fi
                   5737: 
                   5738: fi
                   5739: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
                   5740: $as_echo "$ac_cv_sizeof_int" >&6; }
                   5741: 
                   5742: 
                   5743: 
                   5744: cat >>confdefs.h <<_ACEOF
                   5745: #define SIZEOF_INT $ac_cv_sizeof_int
                   5746: _ACEOF
                   5747: 
                   5748: 
                   5749: # The cast to long int works around a bug in the HP C Compiler
                   5750: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   5751: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   5752: # This bug is HP SR number 8606223364.
                   5753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
                   5754: $as_echo_n "checking size of long... " >&6; }
                   5755: if ${ac_cv_sizeof_long+:} false; then :
                   5756:   $as_echo_n "(cached) " >&6
                   5757: else
                   5758:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
                   5759: 
                   5760: else
                   5761:   if test "$ac_cv_type_long" = yes; then
                   5762:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5763: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   5764: as_fn_error 77 "cannot compute sizeof (long)
                   5765: See \`config.log' for more details" "$LINENO" 5; }
                   5766:    else
                   5767:      ac_cv_sizeof_long=0
                   5768:    fi
                   5769: fi
                   5770: 
                   5771: fi
                   5772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
                   5773: $as_echo "$ac_cv_sizeof_long" >&6; }
                   5774: 
                   5775: 
                   5776: 
                   5777: cat >>confdefs.h <<_ACEOF
                   5778: #define SIZEOF_LONG $ac_cv_sizeof_long
                   5779: _ACEOF
                   5780: 
                   5781: 
                   5782: # The cast to long int works around a bug in the HP C Compiler
                   5783: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   5784: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   5785: # This bug is HP SR number 8606223364.
                   5786: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
                   5787: $as_echo_n "checking size of long long... " >&6; }
                   5788: if ${ac_cv_sizeof_long_long+:} false; then :
                   5789:   $as_echo_n "(cached) " >&6
                   5790: else
                   5791:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
                   5792: 
                   5793: else
                   5794:   if test "$ac_cv_type_long_long" = yes; then
                   5795:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5796: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   5797: as_fn_error 77 "cannot compute sizeof (long long)
                   5798: See \`config.log' for more details" "$LINENO" 5; }
                   5799:    else
                   5800:      ac_cv_sizeof_long_long=0
                   5801:    fi
                   5802: fi
                   5803: 
                   5804: fi
                   5805: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
                   5806: $as_echo "$ac_cv_sizeof_long_long" >&6; }
                   5807: 
                   5808: 
                   5809: 
                   5810: cat >>confdefs.h <<_ACEOF
                   5811: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
                   5812: _ACEOF
                   5813: 
                   5814: 
                   5815: # The cast to long int works around a bug in the HP C Compiler
                   5816: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   5817: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   5818: # This bug is HP SR number 8606223364.
                   5819: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
                   5820: $as_echo_n "checking size of short... " >&6; }
                   5821: if ${ac_cv_sizeof_short+:} false; then :
                   5822:   $as_echo_n "(cached) " >&6
                   5823: else
                   5824:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
                   5825: 
                   5826: else
                   5827:   if test "$ac_cv_type_short" = yes; then
                   5828:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5829: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   5830: as_fn_error 77 "cannot compute sizeof (short)
                   5831: See \`config.log' for more details" "$LINENO" 5; }
                   5832:    else
                   5833:      ac_cv_sizeof_short=0
                   5834:    fi
                   5835: fi
                   5836: 
                   5837: fi
                   5838: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
                   5839: $as_echo "$ac_cv_sizeof_short" >&6; }
                   5840: 
                   5841: 
                   5842: 
                   5843: cat >>confdefs.h <<_ACEOF
                   5844: #define SIZEOF_SHORT $ac_cv_sizeof_short
                   5845: _ACEOF
                   5846: 
                   5847: 
                   5848: # The cast to long int works around a bug in the HP C Compiler
                   5849: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   5850: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   5851: # This bug is HP SR number 8606223364.
                   5852: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
                   5853: $as_echo_n "checking size of int16_t... " >&6; }
                   5854: if ${ac_cv_sizeof_int16_t+:} false; then :
                   5855:   $as_echo_n "(cached) " >&6
                   5856: else
                   5857:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t"        "$ac_includes_default"; then :
                   5858: 
                   5859: else
                   5860:   if test "$ac_cv_type_int16_t" = yes; then
                   5861:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5862: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   5863: as_fn_error 77 "cannot compute sizeof (int16_t)
                   5864: See \`config.log' for more details" "$LINENO" 5; }
                   5865:    else
                   5866:      ac_cv_sizeof_int16_t=0
                   5867:    fi
                   5868: fi
                   5869: 
                   5870: fi
                   5871: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
                   5872: $as_echo "$ac_cv_sizeof_int16_t" >&6; }
                   5873: 
                   5874: 
                   5875: 
                   5876: cat >>confdefs.h <<_ACEOF
                   5877: #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
                   5878: _ACEOF
                   5879: 
                   5880: 
                   5881: # The cast to long int works around a bug in the HP C Compiler
                   5882: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   5883: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   5884: # This bug is HP SR number 8606223364.
                   5885: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
                   5886: $as_echo_n "checking size of uint16_t... " >&6; }
                   5887: if ${ac_cv_sizeof_uint16_t+:} false; then :
                   5888:   $as_echo_n "(cached) " >&6
                   5889: else
                   5890:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t"        "$ac_includes_default"; then :
                   5891: 
                   5892: else
                   5893:   if test "$ac_cv_type_uint16_t" = yes; then
                   5894:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5895: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   5896: as_fn_error 77 "cannot compute sizeof (uint16_t)
                   5897: See \`config.log' for more details" "$LINENO" 5; }
                   5898:    else
                   5899:      ac_cv_sizeof_uint16_t=0
                   5900:    fi
                   5901: fi
                   5902: 
                   5903: fi
                   5904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
                   5905: $as_echo "$ac_cv_sizeof_uint16_t" >&6; }
                   5906: 
                   5907: 
                   5908: 
                   5909: cat >>confdefs.h <<_ACEOF
                   5910: #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
                   5911: _ACEOF
                   5912: 
                   5913: 
                   5914: # The cast to long int works around a bug in the HP C Compiler
                   5915: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   5916: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   5917: # This bug is HP SR number 8606223364.
                   5918: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
                   5919: $as_echo_n "checking size of int32_t... " >&6; }
                   5920: if ${ac_cv_sizeof_int32_t+:} false; then :
                   5921:   $as_echo_n "(cached) " >&6
                   5922: else
                   5923:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t"        "$ac_includes_default"; then :
                   5924: 
                   5925: else
                   5926:   if test "$ac_cv_type_int32_t" = yes; then
                   5927:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5928: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   5929: as_fn_error 77 "cannot compute sizeof (int32_t)
                   5930: See \`config.log' for more details" "$LINENO" 5; }
                   5931:    else
                   5932:      ac_cv_sizeof_int32_t=0
                   5933:    fi
                   5934: fi
                   5935: 
                   5936: fi
                   5937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
                   5938: $as_echo "$ac_cv_sizeof_int32_t" >&6; }
                   5939: 
                   5940: 
                   5941: 
                   5942: cat >>confdefs.h <<_ACEOF
                   5943: #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
                   5944: _ACEOF
                   5945: 
                   5946: 
                   5947: # The cast to long int works around a bug in the HP C Compiler
                   5948: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   5949: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   5950: # This bug is HP SR number 8606223364.
                   5951: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
                   5952: $as_echo_n "checking size of uint32_t... " >&6; }
                   5953: if ${ac_cv_sizeof_uint32_t+:} false; then :
                   5954:   $as_echo_n "(cached) " >&6
                   5955: else
                   5956:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t"        "$ac_includes_default"; then :
                   5957: 
                   5958: else
                   5959:   if test "$ac_cv_type_uint32_t" = yes; then
                   5960:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5961: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   5962: as_fn_error 77 "cannot compute sizeof (uint32_t)
                   5963: See \`config.log' for more details" "$LINENO" 5; }
                   5964:    else
                   5965:      ac_cv_sizeof_uint32_t=0
                   5966:    fi
                   5967: fi
                   5968: 
                   5969: fi
                   5970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
                   5971: $as_echo "$ac_cv_sizeof_uint32_t" >&6; }
                   5972: 
                   5973: 
                   5974: 
                   5975: cat >>confdefs.h <<_ACEOF
                   5976: #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
                   5977: _ACEOF
                   5978: 
                   5979: 
                   5980: # The cast to long int works around a bug in the HP C Compiler
                   5981: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   5982: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   5983: # This bug is HP SR number 8606223364.
                   5984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
                   5985: $as_echo_n "checking size of int64_t... " >&6; }
                   5986: if ${ac_cv_sizeof_int64_t+:} false; then :
                   5987:   $as_echo_n "(cached) " >&6
                   5988: else
                   5989:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t"        "$ac_includes_default"; then :
                   5990: 
                   5991: else
                   5992:   if test "$ac_cv_type_int64_t" = yes; then
                   5993:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   5994: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   5995: as_fn_error 77 "cannot compute sizeof (int64_t)
                   5996: See \`config.log' for more details" "$LINENO" 5; }
                   5997:    else
                   5998:      ac_cv_sizeof_int64_t=0
                   5999:    fi
                   6000: fi
                   6001: 
                   6002: fi
                   6003: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
                   6004: $as_echo "$ac_cv_sizeof_int64_t" >&6; }
                   6005: 
                   6006: 
                   6007: 
                   6008: cat >>confdefs.h <<_ACEOF
                   6009: #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
                   6010: _ACEOF
                   6011: 
                   6012: 
                   6013: # The cast to long int works around a bug in the HP C Compiler
                   6014: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   6015: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   6016: # This bug is HP SR number 8606223364.
                   6017: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
                   6018: $as_echo_n "checking size of off_t... " >&6; }
                   6019: if ${ac_cv_sizeof_off_t+:} false; then :
                   6020:   $as_echo_n "(cached) " >&6
                   6021: else
                   6022:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
                   6023: 
                   6024: else
                   6025:   if test "$ac_cv_type_off_t" = yes; then
                   6026:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   6027: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   6028: as_fn_error 77 "cannot compute sizeof (off_t)
                   6029: See \`config.log' for more details" "$LINENO" 5; }
                   6030:    else
                   6031:      ac_cv_sizeof_off_t=0
                   6032:    fi
                   6033: fi
                   6034: 
                   6035: fi
                   6036: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
                   6037: $as_echo "$ac_cv_sizeof_off_t" >&6; }
                   6038: 
                   6039: 
                   6040: 
                   6041: cat >>confdefs.h <<_ACEOF
                   6042: #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
                   6043: _ACEOF
                   6044: 
                   6045: 
                   6046: # The cast to long int works around a bug in the HP C Compiler
                   6047: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   6048: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   6049: # This bug is HP SR number 8606223364.
                   6050: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
                   6051: $as_echo_n "checking size of off64_t... " >&6; }
                   6052: if ${ac_cv_sizeof_off64_t+:} false; then :
                   6053:   $as_echo_n "(cached) " >&6
                   6054: else
                   6055:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t"        "$ac_includes_default"; then :
                   6056: 
                   6057: else
                   6058:   if test "$ac_cv_type_off64_t" = yes; then
                   6059:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   6060: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   6061: as_fn_error 77 "cannot compute sizeof (off64_t)
                   6062: See \`config.log' for more details" "$LINENO" 5; }
                   6063:    else
                   6064:      ac_cv_sizeof_off64_t=0
                   6065:    fi
                   6066: fi
                   6067: 
                   6068: fi
                   6069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
                   6070: $as_echo "$ac_cv_sizeof_off64_t" >&6; }
                   6071: 
                   6072: 
                   6073: 
                   6074: cat >>confdefs.h <<_ACEOF
                   6075: #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
                   6076: _ACEOF
                   6077: 
                   6078: 
                   6079: # The cast to long int works around a bug in the HP C Compiler
                   6080: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
                   6081: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
                   6082: # This bug is HP SR number 8606223364.
                   6083: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
                   6084: $as_echo_n "checking size of time_t... " >&6; }
                   6085: if ${ac_cv_sizeof_time_t+:} false; then :
                   6086:   $as_echo_n "(cached) " >&6
                   6087: else
                   6088:   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
                   6089: 
                   6090: else
                   6091:   if test "$ac_cv_type_time_t" = yes; then
                   6092:      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
                   6093: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
                   6094: as_fn_error 77 "cannot compute sizeof (time_t)
                   6095: See \`config.log' for more details" "$LINENO" 5; }
                   6096:    else
                   6097:      ac_cv_sizeof_time_t=0
                   6098:    fi
                   6099: fi
                   6100: 
                   6101: fi
                   6102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
                   6103: $as_echo "$ac_cv_sizeof_time_t" >&6; }
                   6104: 
                   6105: 
                   6106: 
                   6107: cat >>confdefs.h <<_ACEOF
                   6108: #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
                   6109: _ACEOF
                   6110: 
                   6111: 
                   6112: 
                   6113: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
                   6114: $as_echo_n "checking for inline... " >&6; }
                   6115: if ${ac_cv_c_inline+:} false; then :
                   6116:   $as_echo_n "(cached) " >&6
                   6117: else
                   6118:   ac_cv_c_inline=no
                   6119: for ac_kw in inline __inline__ __inline; do
                   6120:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6121: /* end confdefs.h.  */
                   6122: #ifndef __cplusplus
                   6123: typedef int foo_t;
                   6124: static $ac_kw foo_t static_foo () {return 0; }
                   6125: $ac_kw foo_t foo () {return 0; }
                   6126: #endif
                   6127: 
                   6128: _ACEOF
                   6129: if ac_fn_c_try_compile "$LINENO"; then :
                   6130:   ac_cv_c_inline=$ac_kw
                   6131: fi
                   6132: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6133:   test "$ac_cv_c_inline" != no && break
                   6134: done
                   6135: 
                   6136: fi
                   6137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
                   6138: $as_echo "$ac_cv_c_inline" >&6; }
                   6139: 
                   6140: case $ac_cv_c_inline in
                   6141:   inline | yes) ;;
                   6142:   *)
                   6143:     case $ac_cv_c_inline in
                   6144:       no) ac_val=;;
                   6145:       *) ac_val=$ac_cv_c_inline;;
                   6146:     esac
                   6147:     cat >>confdefs.h <<_ACEOF
                   6148: #ifndef __cplusplus
                   6149: #define inline $ac_val
                   6150: #endif
                   6151: _ACEOF
                   6152:     ;;
                   6153: esac
                   6154: 
                   6155: 
                   6156: 
                   6157:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
                   6158: $as_echo_n "checking for long double with more range or precision than double... " >&6; }
                   6159: if ${ac_cv_type_long_double_wider+:} false; then :
                   6160:   $as_echo_n "(cached) " >&6
                   6161: else
                   6162:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6163: /* end confdefs.h.  */
                   6164: #include <float.h>
                   6165:            long double const a[] =
                   6166:              {
                   6167:                 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
                   6168:                 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
                   6169:              };
                   6170:            long double
                   6171:            f (long double x)
                   6172:            {
                   6173:               return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
                   6174:                        + (x ? f (x) : 'c'));
                   6175:            }
                   6176: 
                   6177: int
                   6178: main ()
                   6179: {
                   6180: static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
                   6181:                   + (DBL_MANT_DIG < LDBL_MANT_DIG)
                   6182:                   - (LDBL_MAX_EXP < DBL_MAX_EXP)
                   6183:                   - (LDBL_MANT_DIG < DBL_MANT_DIG)))
                   6184:            && (int) LDBL_EPSILON == 0
                   6185:          )];
1.1.1.3 ! misho    6186: test_array [0] = 0;
        !          6187: return test_array [0];
1.1       misho    6188: 
                   6189:   ;
                   6190:   return 0;
                   6191: }
                   6192: _ACEOF
                   6193: if ac_fn_c_try_compile "$LINENO"; then :
                   6194:   ac_cv_type_long_double_wider=yes
                   6195: else
                   6196:   ac_cv_type_long_double_wider=no
                   6197: fi
                   6198: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6199: fi
                   6200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
                   6201: $as_echo "$ac_cv_type_long_double_wider" >&6; }
                   6202:   if test $ac_cv_type_long_double_wider = yes; then
                   6203: 
                   6204: $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
                   6205: 
                   6206:   fi
                   6207: 
1.1.1.3 ! misho    6208: ac_cv_c_long_double=$ac_cv_type_long_double_wider
        !          6209: if test $ac_cv_c_long_double = yes; then
1.1       misho    6210: 
                   6211: $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
                   6212: 
                   6213: fi
                   6214: 
                   6215: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
                   6216: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
                   6217: if ${ac_cv_type_uid_t+:} false; then :
                   6218:   $as_echo_n "(cached) " >&6
                   6219: else
                   6220:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6221: /* end confdefs.h.  */
                   6222: #include <sys/types.h>
                   6223: 
                   6224: _ACEOF
                   6225: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6226:   $EGREP "uid_t" >/dev/null 2>&1; then :
                   6227:   ac_cv_type_uid_t=yes
                   6228: else
                   6229:   ac_cv_type_uid_t=no
                   6230: fi
                   6231: rm -f conftest*
                   6232: 
                   6233: fi
                   6234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
                   6235: $as_echo "$ac_cv_type_uid_t" >&6; }
                   6236: if test $ac_cv_type_uid_t = no; then
                   6237: 
                   6238: $as_echo "#define uid_t int" >>confdefs.h
                   6239: 
                   6240: 
                   6241: $as_echo "#define gid_t int" >>confdefs.h
                   6242: 
                   6243: fi
                   6244: 
                   6245: ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
                   6246: if test "x$ac_cv_type_mode_t" = xyes; then :
                   6247: 
                   6248: cat >>confdefs.h <<_ACEOF
                   6249: #define HAVE_MODE_T 1
                   6250: _ACEOF
                   6251: 
                   6252: 
                   6253: fi
                   6254: ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
                   6255: if test "x$ac_cv_type_off_t" = xyes; then :
                   6256: 
                   6257: cat >>confdefs.h <<_ACEOF
                   6258: #define HAVE_OFF_T 1
                   6259: _ACEOF
                   6260: 
                   6261: 
                   6262: fi
                   6263: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
                   6264: if test "x$ac_cv_type_size_t" = xyes; then :
                   6265: 
                   6266: cat >>confdefs.h <<_ACEOF
                   6267: #define HAVE_SIZE_T 1
                   6268: _ACEOF
                   6269: 
                   6270: 
                   6271: fi
                   6272: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
                   6273: if test "x$ac_cv_type_pid_t" = xyes; then :
                   6274: 
                   6275: cat >>confdefs.h <<_ACEOF
                   6276: #define HAVE_PID_T 1
                   6277: _ACEOF
                   6278: 
                   6279: 
                   6280: fi
                   6281: ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
                   6282: if test "x$ac_cv_type_id_t" = xyes; then :
                   6283: 
                   6284: cat >>confdefs.h <<_ACEOF
                   6285: #define HAVE_ID_T 1
                   6286: _ACEOF
                   6287: 
                   6288: 
                   6289: fi
                   6290: 
                   6291: { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
                   6292: $as_echo_n "checking type of array argument to getgroups... " >&6; }
                   6293: if ${ac_cv_type_getgroups+:} false; then :
                   6294:   $as_echo_n "(cached) " >&6
                   6295: else
                   6296:   if test "$cross_compiling" = yes; then :
                   6297:   ac_cv_type_getgroups=cross
                   6298: else
                   6299:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6300: /* end confdefs.h.  */
                   6301: /* Thanks to Mike Rendell for this test.  */
                   6302: $ac_includes_default
                   6303: #define NGID 256
                   6304: #undef MAX
                   6305: #define MAX(x, y) ((x) > (y) ? (x) : (y))
                   6306: 
                   6307: int
                   6308: main ()
                   6309: {
                   6310:   gid_t gidset[NGID];
                   6311:   int i, n;
                   6312:   union { gid_t gval; long int lval; }  val;
                   6313: 
                   6314:   val.lval = -1;
                   6315:   for (i = 0; i < NGID; i++)
                   6316:     gidset[i] = val.gval;
                   6317:   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
                   6318:                 gidset);
                   6319:   /* Exit non-zero if getgroups seems to require an array of ints.  This
                   6320:      happens when gid_t is short int but getgroups modifies an array
                   6321:      of ints.  */
                   6322:   return n > 0 && gidset[n] != val.gval;
                   6323: }
                   6324: _ACEOF
                   6325: if ac_fn_c_try_run "$LINENO"; then :
                   6326:   ac_cv_type_getgroups=gid_t
                   6327: else
                   6328:   ac_cv_type_getgroups=int
                   6329: fi
                   6330: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   6331:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   6332: fi
                   6333: 
                   6334: if test $ac_cv_type_getgroups = cross; then
                   6335:         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6336: /* end confdefs.h.  */
                   6337: #include <unistd.h>
                   6338: 
                   6339: _ACEOF
                   6340: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6341:   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
                   6342:   ac_cv_type_getgroups=gid_t
                   6343: else
                   6344:   ac_cv_type_getgroups=int
                   6345: fi
                   6346: rm -f conftest*
                   6347: 
                   6348: fi
                   6349: fi
                   6350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
                   6351: $as_echo "$ac_cv_type_getgroups" >&6; }
                   6352: 
                   6353: cat >>confdefs.h <<_ACEOF
                   6354: #define GETGROUPS_T $ac_cv_type_getgroups
                   6355: _ACEOF
                   6356: 
                   6357: 
1.1.1.2   misho    6358: ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "
                   6359: #ifdef HAVE_SYS_TYPES_H
                   6360: #include <sys/types.h>
                   6361: #endif
                   6362: #ifdef HAVE_SYS_STAT_H
                   6363: #include <sys/stat.h>
                   6364: #endif
                   6365: #ifdef HAVE_UNISTD_H
                   6366: #include <unistd.h>
                   6367: #endif
                   6368: "
1.1       misho    6369: if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
                   6370: 
                   6371: cat >>confdefs.h <<_ACEOF
                   6372: #define HAVE_STRUCT_STAT_ST_RDEV 1
                   6373: _ACEOF
                   6374: 
                   6375: 
                   6376: fi
1.1.1.2   misho    6377: ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
                   6378: #ifdef HAVE_SYS_TYPES_H
                   6379: #include <sys/types.h>
                   6380: #endif
                   6381: #ifdef HAVE_SYS_STAT_H
                   6382: #include <sys/stat.h>
                   6383: #endif
                   6384: #ifdef HAVE_UNISTD_H
                   6385: #include <unistd.h>
                   6386: #endif
                   6387: "
                   6388: if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
                   6389: 
                   6390: cat >>confdefs.h <<_ACEOF
                   6391: #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
                   6392: _ACEOF
                   6393: 
                   6394: 
                   6395: fi
                   6396: ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
                   6397: #ifdef HAVE_SYS_TYPES_H
                   6398: #include <sys/types.h>
                   6399: #endif
                   6400: #ifdef HAVE_SYS_STAT_H
                   6401: #include <sys/stat.h>
                   6402: #endif
                   6403: #ifdef HAVE_UNISTD_H
                   6404: #include <unistd.h>
                   6405: #endif
                   6406: "
                   6407: if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
                   6408: 
                   6409: cat >>confdefs.h <<_ACEOF
                   6410: #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
                   6411: _ACEOF
                   6412: 
                   6413: 
                   6414: fi
1.1       misho    6415: 
                   6416: 
                   6417: 
                   6418:    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
                   6419: #include <sys/socket.h>
                   6420: "
                   6421: if test "x$ac_cv_type_socklen_t" = xyes; then :
                   6422: 
                   6423: else
                   6424: 
                   6425:       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
                   6426: $as_echo_n "checking for socklen_t equivalent... " >&6; }
                   6427:       if ${rsync_cv_socklen_t_equiv+:} false; then :
                   6428:   $as_echo_n "(cached) " >&6
                   6429: else
                   6430: 
                   6431:          # Systems have either "struct sockaddr *" or
                   6432:          # "void *" as the second argument to getpeername
                   6433:          rsync_cv_socklen_t_equiv=
                   6434:          for arg2 in "struct sockaddr" void; do
                   6435:             for t in int size_t unsigned long "unsigned long"; do
                   6436:                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6437: /* end confdefs.h.  */
                   6438: 
                   6439: #include <sys/types.h>
                   6440: #include <sys/socket.h>
                   6441: 
                   6442:                   int getpeername (int, $arg2 *, $t *);
                   6443: 
                   6444: int
                   6445: main ()
                   6446: {
                   6447: 
                   6448:                   $t len;
                   6449:                   getpeername(0,0,&len);
                   6450: 
                   6451:   ;
                   6452:   return 0;
                   6453: }
                   6454: _ACEOF
                   6455: if ac_fn_c_try_compile "$LINENO"; then :
                   6456: 
                   6457:                   rsync_cv_socklen_t_equiv="$t"
                   6458:                   break
                   6459: 
                   6460: fi
                   6461: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6462:             done
                   6463:          done
                   6464: 
                   6465:          if test "x$rsync_cv_socklen_t_equiv" = x; then
                   6466:             as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
                   6467:          fi
                   6468: 
                   6469: fi
                   6470: 
                   6471:       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_socklen_t_equiv" >&5
                   6472: $as_echo "$rsync_cv_socklen_t_equiv" >&6; }
                   6473: 
                   6474: cat >>confdefs.h <<_ACEOF
                   6475: #define socklen_t $rsync_cv_socklen_t_equiv
                   6476: _ACEOF
                   6477: 
                   6478: fi
                   6479: 
                   6480: 
                   6481: 
                   6482: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno in errno.h" >&5
                   6483: $as_echo_n "checking for errno in errno.h... " >&6; }
                   6484: if ${rsync_cv_errno+:} false; then :
                   6485:   $as_echo_n "(cached) " >&6
                   6486: else
                   6487: 
                   6488:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6489: /* end confdefs.h.  */
                   6490: #include <errno.h>
                   6491: int
                   6492: main ()
                   6493: {
                   6494: int i = errno
                   6495:   ;
                   6496:   return 0;
                   6497: }
                   6498: _ACEOF
                   6499: if ac_fn_c_try_compile "$LINENO"; then :
                   6500:   rsync_cv_errno=yes
                   6501: else
                   6502:   rsync_cv_have_errno_decl=no
                   6503: fi
                   6504: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6505: fi
                   6506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_errno" >&5
                   6507: $as_echo "$rsync_cv_errno" >&6; }
                   6508: if test x"$rsync_cv_errno" = x"yes"; then
                   6509: 
                   6510: $as_echo "#define HAVE_ERRNO_DECL 1" >>confdefs.h
                   6511: 
                   6512: fi
                   6513: 
                   6514: # The following test taken from the cvs sources
                   6515: # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
                   6516: # These need checks to be before checks for any other functions that
                   6517: #    might be in the same libraries.
                   6518: # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
                   6519: # libsocket.so which has a bad implementation of gethostbyname (it
                   6520: # only looks in /etc/hosts), so we only look for -lsocket if we need
                   6521: # it.
                   6522: for ac_func in connect
                   6523: do :
                   6524:   ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
                   6525: if test "x$ac_cv_func_connect" = xyes; then :
                   6526:   cat >>confdefs.h <<_ACEOF
                   6527: #define HAVE_CONNECT 1
                   6528: _ACEOF
                   6529: 
                   6530: fi
                   6531: done
                   6532: 
                   6533: if test x"$ac_cv_func_connect" = x"no"; then
                   6534:     case "$LIBS" in
                   6535:     *-lnsl*) ;;
                   6536:     *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -lnsl_s" >&5
                   6537: $as_echo_n "checking for printf in -lnsl_s... " >&6; }
                   6538: if ${ac_cv_lib_nsl_s_printf+:} false; then :
                   6539:   $as_echo_n "(cached) " >&6
                   6540: else
                   6541:   ac_check_lib_save_LIBS=$LIBS
                   6542: LIBS="-lnsl_s  $LIBS"
                   6543: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6544: /* end confdefs.h.  */
                   6545: 
                   6546: /* Override any GCC internal prototype to avoid an error.
                   6547:    Use char because int might match the return type of a GCC
                   6548:    builtin and then its argument prototype would still apply.  */
                   6549: #ifdef __cplusplus
                   6550: extern "C"
                   6551: #endif
                   6552: char printf ();
                   6553: int
                   6554: main ()
                   6555: {
                   6556: return printf ();
                   6557:   ;
                   6558:   return 0;
                   6559: }
                   6560: _ACEOF
                   6561: if ac_fn_c_try_link "$LINENO"; then :
                   6562:   ac_cv_lib_nsl_s_printf=yes
                   6563: else
                   6564:   ac_cv_lib_nsl_s_printf=no
                   6565: fi
                   6566: rm -f core conftest.err conftest.$ac_objext \
                   6567:     conftest$ac_exeext conftest.$ac_ext
                   6568: LIBS=$ac_check_lib_save_LIBS
                   6569: fi
                   6570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_printf" >&5
                   6571: $as_echo "$ac_cv_lib_nsl_s_printf" >&6; }
                   6572: if test "x$ac_cv_lib_nsl_s_printf" = xyes; then :
                   6573:   cat >>confdefs.h <<_ACEOF
                   6574: #define HAVE_LIBNSL_S 1
                   6575: _ACEOF
                   6576: 
                   6577:   LIBS="-lnsl_s $LIBS"
                   6578: 
                   6579: fi
                   6580:  ;;
                   6581:     esac
                   6582:     case "$LIBS" in
                   6583:     *-lnsl*) ;;
                   6584:     *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -lnsl" >&5
                   6585: $as_echo_n "checking for printf in -lnsl... " >&6; }
                   6586: if ${ac_cv_lib_nsl_printf+:} false; then :
                   6587:   $as_echo_n "(cached) " >&6
                   6588: else
                   6589:   ac_check_lib_save_LIBS=$LIBS
                   6590: LIBS="-lnsl  $LIBS"
                   6591: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6592: /* end confdefs.h.  */
                   6593: 
                   6594: /* Override any GCC internal prototype to avoid an error.
                   6595:    Use char because int might match the return type of a GCC
                   6596:    builtin and then its argument prototype would still apply.  */
                   6597: #ifdef __cplusplus
                   6598: extern "C"
                   6599: #endif
                   6600: char printf ();
                   6601: int
                   6602: main ()
                   6603: {
                   6604: return printf ();
                   6605:   ;
                   6606:   return 0;
                   6607: }
                   6608: _ACEOF
                   6609: if ac_fn_c_try_link "$LINENO"; then :
                   6610:   ac_cv_lib_nsl_printf=yes
                   6611: else
                   6612:   ac_cv_lib_nsl_printf=no
                   6613: fi
                   6614: rm -f core conftest.err conftest.$ac_objext \
                   6615:     conftest$ac_exeext conftest.$ac_ext
                   6616: LIBS=$ac_check_lib_save_LIBS
                   6617: fi
                   6618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_printf" >&5
                   6619: $as_echo "$ac_cv_lib_nsl_printf" >&6; }
                   6620: if test "x$ac_cv_lib_nsl_printf" = xyes; then :
                   6621:   cat >>confdefs.h <<_ACEOF
                   6622: #define HAVE_LIBNSL 1
                   6623: _ACEOF
                   6624: 
                   6625:   LIBS="-lnsl $LIBS"
                   6626: 
                   6627: fi
                   6628:  ;;
                   6629:     esac
                   6630:     case "$LIBS" in
                   6631:     *-lsocket*) ;;
                   6632:     *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
                   6633: $as_echo_n "checking for connect in -lsocket... " >&6; }
                   6634: if ${ac_cv_lib_socket_connect+:} false; then :
                   6635:   $as_echo_n "(cached) " >&6
                   6636: else
                   6637:   ac_check_lib_save_LIBS=$LIBS
                   6638: LIBS="-lsocket  $LIBS"
                   6639: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6640: /* end confdefs.h.  */
                   6641: 
                   6642: /* Override any GCC internal prototype to avoid an error.
                   6643:    Use char because int might match the return type of a GCC
                   6644:    builtin and then its argument prototype would still apply.  */
                   6645: #ifdef __cplusplus
                   6646: extern "C"
                   6647: #endif
                   6648: char connect ();
                   6649: int
                   6650: main ()
                   6651: {
                   6652: return connect ();
                   6653:   ;
                   6654:   return 0;
                   6655: }
                   6656: _ACEOF
                   6657: if ac_fn_c_try_link "$LINENO"; then :
                   6658:   ac_cv_lib_socket_connect=yes
                   6659: else
                   6660:   ac_cv_lib_socket_connect=no
                   6661: fi
                   6662: rm -f core conftest.err conftest.$ac_objext \
                   6663:     conftest$ac_exeext conftest.$ac_ext
                   6664: LIBS=$ac_check_lib_save_LIBS
                   6665: fi
                   6666: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
                   6667: $as_echo "$ac_cv_lib_socket_connect" >&6; }
                   6668: if test "x$ac_cv_lib_socket_connect" = xyes; then :
                   6669:   cat >>confdefs.h <<_ACEOF
                   6670: #define HAVE_LIBSOCKET 1
                   6671: _ACEOF
                   6672: 
                   6673:   LIBS="-lsocket $LIBS"
                   6674: 
                   6675: fi
                   6676:  ;;
                   6677:     esac
                   6678:     case "$LIBS" in
                   6679:     *-linet*) ;;
                   6680:     *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -linet" >&5
                   6681: $as_echo_n "checking for connect in -linet... " >&6; }
                   6682: if ${ac_cv_lib_inet_connect+:} false; then :
                   6683:   $as_echo_n "(cached) " >&6
                   6684: else
                   6685:   ac_check_lib_save_LIBS=$LIBS
                   6686: LIBS="-linet  $LIBS"
                   6687: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6688: /* end confdefs.h.  */
                   6689: 
                   6690: /* Override any GCC internal prototype to avoid an error.
                   6691:    Use char because int might match the return type of a GCC
                   6692:    builtin and then its argument prototype would still apply.  */
                   6693: #ifdef __cplusplus
                   6694: extern "C"
                   6695: #endif
                   6696: char connect ();
                   6697: int
                   6698: main ()
                   6699: {
                   6700: return connect ();
                   6701:   ;
                   6702:   return 0;
                   6703: }
                   6704: _ACEOF
                   6705: if ac_fn_c_try_link "$LINENO"; then :
                   6706:   ac_cv_lib_inet_connect=yes
                   6707: else
                   6708:   ac_cv_lib_inet_connect=no
                   6709: fi
                   6710: rm -f core conftest.err conftest.$ac_objext \
                   6711:     conftest$ac_exeext conftest.$ac_ext
                   6712: LIBS=$ac_check_lib_save_LIBS
                   6713: fi
                   6714: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_connect" >&5
                   6715: $as_echo "$ac_cv_lib_inet_connect" >&6; }
                   6716: if test "x$ac_cv_lib_inet_connect" = xyes; then :
                   6717:   cat >>confdefs.h <<_ACEOF
                   6718: #define HAVE_LIBINET 1
                   6719: _ACEOF
                   6720: 
                   6721:   LIBS="-linet $LIBS"
                   6722: 
                   6723: fi
                   6724:  ;;
                   6725:     esac
                   6726:             if test x"$ac_cv_lib_socket_connect" = x"yes" ||
                   6727:        test x"$ac_cv_lib_inet_connect" = x"yes"; then
                   6728:         # ac_cv_func_connect=yes
                   6729:         # don't!  it would cause AC_CHECK_FUNC to succeed next time configure is run
                   6730: 
                   6731: $as_echo "#define HAVE_CONNECT 1" >>confdefs.h
                   6732: 
                   6733:     fi
                   6734: fi
                   6735: 
                   6736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
                   6737: $as_echo_n "checking for library containing inet_ntop... " >&6; }
                   6738: if ${ac_cv_search_inet_ntop+:} false; then :
                   6739:   $as_echo_n "(cached) " >&6
                   6740: else
                   6741:   ac_func_search_save_LIBS=$LIBS
                   6742: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6743: /* end confdefs.h.  */
                   6744: 
                   6745: /* Override any GCC internal prototype to avoid an error.
                   6746:    Use char because int might match the return type of a GCC
                   6747:    builtin and then its argument prototype would still apply.  */
                   6748: #ifdef __cplusplus
                   6749: extern "C"
                   6750: #endif
                   6751: char inet_ntop ();
                   6752: int
                   6753: main ()
                   6754: {
                   6755: return inet_ntop ();
                   6756:   ;
                   6757:   return 0;
                   6758: }
                   6759: _ACEOF
                   6760: for ac_lib in '' resolv; do
                   6761:   if test -z "$ac_lib"; then
                   6762:     ac_res="none required"
                   6763:   else
                   6764:     ac_res=-l$ac_lib
                   6765:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   6766:   fi
                   6767:   if ac_fn_c_try_link "$LINENO"; then :
                   6768:   ac_cv_search_inet_ntop=$ac_res
                   6769: fi
                   6770: rm -f core conftest.err conftest.$ac_objext \
                   6771:     conftest$ac_exeext
                   6772:   if ${ac_cv_search_inet_ntop+:} false; then :
                   6773:   break
                   6774: fi
                   6775: done
                   6776: if ${ac_cv_search_inet_ntop+:} false; then :
                   6777: 
                   6778: else
                   6779:   ac_cv_search_inet_ntop=no
                   6780: fi
                   6781: rm conftest.$ac_ext
                   6782: LIBS=$ac_func_search_save_LIBS
                   6783: fi
                   6784: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
                   6785: $as_echo "$ac_cv_search_inet_ntop" >&6; }
                   6786: ac_res=$ac_cv_search_inet_ntop
                   6787: if test "$ac_res" != no; then :
                   6788:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   6789: 
                   6790: fi
                   6791: 
                   6792: 
                   6793: # For OS X, Solaris, HP-UX, etc.: figure out if -liconv is needed.  We'll
                   6794: # accept either iconv_open or libiconv_open, since some include files map
                   6795: # the former to the latter.
                   6796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
                   6797: $as_echo_n "checking for library containing iconv_open... " >&6; }
                   6798: if ${ac_cv_search_iconv_open+:} false; then :
                   6799:   $as_echo_n "(cached) " >&6
                   6800: else
                   6801:   ac_func_search_save_LIBS=$LIBS
                   6802: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6803: /* end confdefs.h.  */
                   6804: 
                   6805: /* Override any GCC internal prototype to avoid an error.
                   6806:    Use char because int might match the return type of a GCC
                   6807:    builtin and then its argument prototype would still apply.  */
                   6808: #ifdef __cplusplus
                   6809: extern "C"
                   6810: #endif
                   6811: char iconv_open ();
                   6812: int
                   6813: main ()
                   6814: {
                   6815: return iconv_open ();
                   6816:   ;
                   6817:   return 0;
                   6818: }
                   6819: _ACEOF
                   6820: for ac_lib in '' iconv; do
                   6821:   if test -z "$ac_lib"; then
                   6822:     ac_res="none required"
                   6823:   else
                   6824:     ac_res=-l$ac_lib
                   6825:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   6826:   fi
                   6827:   if ac_fn_c_try_link "$LINENO"; then :
                   6828:   ac_cv_search_iconv_open=$ac_res
                   6829: fi
                   6830: rm -f core conftest.err conftest.$ac_objext \
                   6831:     conftest$ac_exeext
                   6832:   if ${ac_cv_search_iconv_open+:} false; then :
                   6833:   break
                   6834: fi
                   6835: done
                   6836: if ${ac_cv_search_iconv_open+:} false; then :
                   6837: 
                   6838: else
                   6839:   ac_cv_search_iconv_open=no
                   6840: fi
                   6841: rm conftest.$ac_ext
                   6842: LIBS=$ac_func_search_save_LIBS
                   6843: fi
                   6844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
                   6845: $as_echo "$ac_cv_search_iconv_open" >&6; }
                   6846: ac_res=$ac_cv_search_iconv_open
                   6847: if test "$ac_res" != no; then :
                   6848:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   6849: 
                   6850: fi
                   6851: 
                   6852: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
                   6853: $as_echo_n "checking for library containing libiconv_open... " >&6; }
                   6854: if ${ac_cv_search_libiconv_open+:} false; then :
                   6855:   $as_echo_n "(cached) " >&6
                   6856: else
                   6857:   ac_func_search_save_LIBS=$LIBS
                   6858: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6859: /* end confdefs.h.  */
                   6860: 
                   6861: /* Override any GCC internal prototype to avoid an error.
                   6862:    Use char because int might match the return type of a GCC
                   6863:    builtin and then its argument prototype would still apply.  */
                   6864: #ifdef __cplusplus
                   6865: extern "C"
                   6866: #endif
                   6867: char libiconv_open ();
                   6868: int
                   6869: main ()
                   6870: {
                   6871: return libiconv_open ();
                   6872:   ;
                   6873:   return 0;
                   6874: }
                   6875: _ACEOF
                   6876: for ac_lib in '' iconv; do
                   6877:   if test -z "$ac_lib"; then
                   6878:     ac_res="none required"
                   6879:   else
                   6880:     ac_res=-l$ac_lib
                   6881:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   6882:   fi
                   6883:   if ac_fn_c_try_link "$LINENO"; then :
                   6884:   ac_cv_search_libiconv_open=$ac_res
                   6885: fi
                   6886: rm -f core conftest.err conftest.$ac_objext \
                   6887:     conftest$ac_exeext
                   6888:   if ${ac_cv_search_libiconv_open+:} false; then :
                   6889:   break
                   6890: fi
                   6891: done
                   6892: if ${ac_cv_search_libiconv_open+:} false; then :
                   6893: 
                   6894: else
                   6895:   ac_cv_search_libiconv_open=no
                   6896: fi
                   6897: rm conftest.$ac_ext
                   6898: LIBS=$ac_func_search_save_LIBS
                   6899: fi
                   6900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
                   6901: $as_echo "$ac_cv_search_libiconv_open" >&6; }
                   6902: ac_res=$ac_cv_search_libiconv_open
                   6903: if test "$ac_res" != no; then :
                   6904:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   6905: 
                   6906: fi
                   6907: 
                   6908: 
                   6909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
                   6910: $as_echo_n "checking for iconv declaration... " >&6; }
                   6911: if ${am_cv_proto_iconv+:} false; then :
                   6912:   $as_echo_n "(cached) " >&6
                   6913: else
                   6914: 
                   6915:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6916: /* end confdefs.h.  */
                   6917: 
                   6918: #include <stdlib.h>
                   6919: #include <iconv.h>
                   6920: extern
                   6921: #ifdef __cplusplus
                   6922: "C"
                   6923: #endif
                   6924: #if defined(__STDC__) || defined(__cplusplus)
                   6925: size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
                   6926: #else
                   6927: size_t iconv();
                   6928: #endif
                   6929: 
                   6930: int
                   6931: main ()
                   6932: {
                   6933: 
                   6934:   ;
                   6935:   return 0;
                   6936: }
                   6937: _ACEOF
                   6938: if ac_fn_c_try_compile "$LINENO"; then :
                   6939:   am_cv_proto_iconv_arg1=""
                   6940: else
                   6941:   am_cv_proto_iconv_arg1="const"
                   6942: fi
                   6943: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6944:       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);"
                   6945: fi
                   6946: 
                   6947:     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
                   6948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
                   6949:          }$am_cv_proto_iconv" >&5
                   6950: $as_echo "${ac_t:-
                   6951:          }$am_cv_proto_iconv" >&6; }
                   6952: 
                   6953: cat >>confdefs.h <<_ACEOF
                   6954: #define ICONV_CONST $am_cv_proto_iconv_arg1
                   6955: _ACEOF
                   6956: 
                   6957: 
                   6958: 
1.1.1.3 ! misho    6959: ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
1.1       misho    6960: if test "x$ac_cv_func_inet_ntop" = xyes; then :
1.1.1.3 ! misho    6961:   $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
1.1       misho    6962: 
                   6963: else
                   6964:   case " $LIBOBJS " in
1.1.1.3 ! misho    6965:   *" inet_ntop.$ac_objext "* ) ;;
        !          6966:   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
1.1       misho    6967:  ;;
                   6968: esac
                   6969: 
                   6970: fi
                   6971: 
1.1.1.3 ! misho    6972: ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
1.1       misho    6973: if test "x$ac_cv_func_inet_pton" = xyes; then :
1.1.1.3 ! misho    6974:   $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
1.1       misho    6975: 
                   6976: else
                   6977:   case " $LIBOBJS " in
1.1.1.3 ! misho    6978:   *" inet_pton.$ac_objext "* ) ;;
        !          6979:   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
1.1       misho    6980:  ;;
                   6981: esac
                   6982: 
                   6983: fi
1.1.1.3 ! misho    6984: 
1.1       misho    6985: 
                   6986: 
                   6987: 
                   6988: 
                   6989: cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
                   6990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
                   6991: $as_echo_n "checking for struct addrinfo... " >&6; }
                   6992: if eval \${ac_cv_type_$cv+:} false; then :
                   6993:   $as_echo_n "(cached) " >&6
                   6994: else
                   6995:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   6996: /* end confdefs.h.  */
                   6997: 
                   6998: $ac_includes_default
                   6999: #include <netdb.h>
                   7000: int
                   7001: main ()
                   7002: {
                   7003: struct addrinfo foo;
                   7004:   ;
                   7005:   return 0;
                   7006: }
                   7007: _ACEOF
                   7008: if ac_fn_c_try_compile "$LINENO"; then :
                   7009:   eval "ac_cv_type_$cv=yes"
                   7010: else
                   7011:   eval "ac_cv_type_$cv=no"
                   7012: fi
                   7013: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7014: fi
                   7015: ac_foo=`eval echo \\$ac_cv_type_$cv`
                   7016: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
                   7017: $as_echo "$ac_foo" >&6; }
                   7018: if test "$ac_foo" = yes; then
                   7019:   ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
                   7020: if false; then
                   7021:        ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "$ac_includes_default"
                   7022: if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
                   7023: 
                   7024: cat >>confdefs.h <<_ACEOF
                   7025: #define HAVE_STRUCT_ADDRINFO 1
                   7026: _ACEOF
                   7027: 
                   7028: 
                   7029: fi
                   7030: 
                   7031: fi
                   7032: 
                   7033: cat >>confdefs.h <<_ACEOF
                   7034: #define $ac_tr_hdr 1
                   7035: _ACEOF
                   7036: 
                   7037: fi
                   7038: 
                   7039: 
                   7040: 
                   7041: cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
                   7042: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
                   7043: $as_echo_n "checking for struct sockaddr_storage... " >&6; }
                   7044: if eval \${ac_cv_type_$cv+:} false; then :
                   7045:   $as_echo_n "(cached) " >&6
                   7046: else
                   7047:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7048: /* end confdefs.h.  */
                   7049: 
                   7050: $ac_includes_default
                   7051: #include <sys/types.h>
                   7052: #include <sys/socket.h>
                   7053: int
                   7054: main ()
                   7055: {
                   7056: struct sockaddr_storage foo;
                   7057:   ;
                   7058:   return 0;
                   7059: }
                   7060: _ACEOF
                   7061: if ac_fn_c_try_compile "$LINENO"; then :
                   7062:   eval "ac_cv_type_$cv=yes"
                   7063: else
                   7064:   eval "ac_cv_type_$cv=no"
                   7065: fi
                   7066: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7067: fi
                   7068: ac_foo=`eval echo \\$ac_cv_type_$cv`
                   7069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
                   7070: $as_echo "$ac_foo" >&6; }
                   7071: if test "$ac_foo" = yes; then
                   7072:   ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
                   7073: if false; then
                   7074:        ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default"
                   7075: if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
                   7076: 
                   7077: cat >>confdefs.h <<_ACEOF
                   7078: #define HAVE_STRUCT_SOCKADDR_STORAGE 1
                   7079: _ACEOF
                   7080: 
                   7081: 
                   7082: fi
                   7083: 
                   7084: fi
                   7085: 
                   7086: cat >>confdefs.h <<_ACEOF
                   7087: #define $ac_tr_hdr 1
                   7088: _ACEOF
                   7089: 
                   7090: fi
                   7091: 
                   7092: 
                   7093: # Irix 6.5 has getaddrinfo but not the corresponding defines, so use
                   7094: #   builtin getaddrinfo if one of the defines don't exist
                   7095: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether defines needed by getaddrinfo exist" >&5
                   7096: $as_echo_n "checking whether defines needed by getaddrinfo exist... " >&6; }
                   7097: if ${rsync_cv_HAVE_GETADDR_DEFINES+:} false; then :
                   7098:   $as_echo_n "(cached) " >&6
                   7099: else
                   7100: 
                   7101:                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7102: /* end confdefs.h.  */
                   7103: 
                   7104:                        #include <sys/types.h>
                   7105:                        #include <sys/socket.h>
                   7106:                        #include <netdb.h>
                   7107:                        #ifdef AI_PASSIVE
                   7108:                        yes
                   7109:                        #endif
                   7110: _ACEOF
                   7111: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   7112:   $EGREP "yes" >/dev/null 2>&1; then :
                   7113:   rsync_cv_HAVE_GETADDR_DEFINES=yes
                   7114: else
                   7115:   rsync_cv_HAVE_GETADDR_DEFINES=no
                   7116: fi
                   7117: rm -f conftest*
                   7118: 
                   7119: fi
                   7120: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_GETADDR_DEFINES" >&5
                   7121: $as_echo "$rsync_cv_HAVE_GETADDR_DEFINES" >&6; }
1.1.1.3 ! misho    7122: if test x"$rsync_cv_HAVE_GETADDR_DEFINES" = x"yes" -a x"$ac_cv_type_struct_addrinfo" = x"yes"; then :
        !          7123: 
1.1       misho    7124:        # Tru64 UNIX has getaddrinfo() but has it renamed in libc as
                   7125:        # something else so we must include <netdb.h> to get the
                   7126:        # redefinition.
                   7127:        for ac_func in getaddrinfo
                   7128: do :
                   7129:   ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
                   7130: if test "x$ac_cv_func_getaddrinfo" = xyes; then :
                   7131:   cat >>confdefs.h <<_ACEOF
                   7132: #define HAVE_GETADDRINFO 1
                   7133: _ACEOF
                   7134: 
                   7135: else
                   7136:   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo by including <netdb.h>" >&5
                   7137: $as_echo_n "checking for getaddrinfo by including <netdb.h>... " >&6; }
                   7138:                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7139: /* end confdefs.h.  */
                   7140: #include <sys/types.h>
                   7141:                #include <sys/socket.h>
                   7142:                #include <netdb.h>
                   7143: int
                   7144: main ()
                   7145: {
                   7146: getaddrinfo(NULL, NULL, NULL, NULL);
                   7147:   ;
                   7148:   return 0;
                   7149: }
                   7150: _ACEOF
                   7151: if ac_fn_c_try_link "$LINENO"; then :
                   7152:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7153: $as_echo "yes" >&6; }
                   7154: 
                   7155: $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
                   7156: 
                   7157: else
                   7158:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7159: $as_echo "no" >&6; }
                   7160:                        case " $LIBOBJS " in
1.1.1.3 ! misho    7161:   *" getaddrinfo.$ac_objext "* ) ;;
        !          7162:   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
1.1       misho    7163:  ;;
                   7164: esac
                   7165: 
                   7166: fi
                   7167: rm -f core conftest.err conftest.$ac_objext \
                   7168:     conftest$ac_exeext conftest.$ac_ext
                   7169: fi
                   7170: done
                   7171: 
1.1.1.3 ! misho    7172: 
1.1       misho    7173: else
1.1.1.3 ! misho    7174:   case " $LIBOBJS " in
        !          7175:   *" getaddrinfo.$ac_objext "* ) ;;
        !          7176:   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
1.1       misho    7177:  ;;
                   7178: esac
                   7179: 
                   7180: fi
                   7181: 
                   7182: ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
                   7183: #include <sys/types.h>
                   7184: #include <sys/socket.h>
                   7185: 
                   7186: "
                   7187: if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
                   7188: 
                   7189: $as_echo "#define HAVE_SOCKADDR_LEN 1" >>confdefs.h
                   7190: 
                   7191: fi
                   7192: 
                   7193: 
                   7194: ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
                   7195: #include <sys/types.h>
                   7196: #include <sys/socket.h>
                   7197: #include <netinet/in.h>
                   7198: 
                   7199: "
                   7200: if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
                   7201: 
                   7202: $as_echo "#define HAVE_SOCKADDR_IN_LEN 1" >>confdefs.h
                   7203: 
                   7204: fi
                   7205: 
                   7206: 
                   7207: ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
                   7208: #include <sys/types.h>
                   7209: #include <sys/socket.h>
                   7210: #include <netinet/in.h>
                   7211: 
                   7212: "
                   7213: if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
                   7214: 
                   7215: $as_echo "#define HAVE_SOCKADDR_UN_LEN 1" >>confdefs.h
                   7216: 
                   7217: fi
                   7218: 
                   7219: 
                   7220: ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
                   7221: #include <sys/types.h>
                   7222: #include <sys/socket.h>
                   7223: #include <netinet/in.h>
                   7224: 
                   7225: "
                   7226: if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
                   7227: 
                   7228: $as_echo "#define HAVE_SOCKADDR_IN6_SCOPE_ID 1" >>confdefs.h
                   7229: 
                   7230: fi
                   7231: 
                   7232: 
                   7233: 
                   7234: 
                   7235: cv=`echo "struct stat64" | sed 'y%./+- %__p__%'`
                   7236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
                   7237: $as_echo_n "checking for struct stat64... " >&6; }
                   7238: if eval \${ac_cv_type_$cv+:} false; then :
                   7239:   $as_echo_n "(cached) " >&6
                   7240: else
                   7241:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7242: /* end confdefs.h.  */
                   7243: 
                   7244: $ac_includes_default
                   7245: #include <stdio.h>
                   7246: #if HAVE_SYS_TYPES_H
                   7247: # include <sys/types.h>
                   7248: #endif
                   7249: #if HAVE_SYS_STAT_H
                   7250: # include <sys/stat.h>
                   7251: #endif
                   7252: #if STDC_HEADERS
                   7253: # include <stdlib.h>
                   7254: # include <stddef.h>
                   7255: #else
                   7256: # if HAVE_STDLIB_H
                   7257: #  include <stdlib.h>
                   7258: # endif
                   7259: #endif
                   7260: 
                   7261: int
                   7262: main ()
                   7263: {
                   7264: struct stat64 foo;
                   7265:   ;
                   7266:   return 0;
                   7267: }
                   7268: _ACEOF
                   7269: if ac_fn_c_try_compile "$LINENO"; then :
                   7270:   eval "ac_cv_type_$cv=yes"
                   7271: else
                   7272:   eval "ac_cv_type_$cv=no"
                   7273: fi
                   7274: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7275: fi
                   7276: ac_foo=`eval echo \\$ac_cv_type_$cv`
                   7277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
                   7278: $as_echo "$ac_foo" >&6; }
                   7279: if test "$ac_foo" = yes; then
                   7280:   ac_tr_hdr=HAVE_`echo struct stat64 | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
                   7281: if false; then
                   7282:        ac_fn_c_check_type "$LINENO" "struct stat64" "ac_cv_type_struct_stat64" "$ac_includes_default"
                   7283: if test "x$ac_cv_type_struct_stat64" = xyes; then :
                   7284: 
                   7285: cat >>confdefs.h <<_ACEOF
                   7286: #define HAVE_STRUCT_STAT64 1
                   7287: _ACEOF
                   7288: 
                   7289: 
                   7290: fi
                   7291: 
                   7292: fi
                   7293: 
                   7294: cat >>confdefs.h <<_ACEOF
                   7295: #define $ac_tr_hdr 1
                   7296: _ACEOF
                   7297: 
                   7298: fi
                   7299: 
                   7300: 
                   7301: # if we can't find strcasecmp, look in -lresolv (for Unixware at least)
                   7302: #
                   7303: for ac_func in strcasecmp
                   7304: do :
                   7305:   ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
                   7306: if test "x$ac_cv_func_strcasecmp" = xyes; then :
                   7307:   cat >>confdefs.h <<_ACEOF
                   7308: #define HAVE_STRCASECMP 1
                   7309: _ACEOF
                   7310: 
                   7311: fi
                   7312: done
                   7313: 
                   7314: if test x"$ac_cv_func_strcasecmp" = x"no"; then
                   7315:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
                   7316: $as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
                   7317: if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
                   7318:   $as_echo_n "(cached) " >&6
                   7319: else
                   7320:   ac_check_lib_save_LIBS=$LIBS
                   7321: LIBS="-lresolv  $LIBS"
                   7322: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7323: /* end confdefs.h.  */
                   7324: 
                   7325: /* Override any GCC internal prototype to avoid an error.
                   7326:    Use char because int might match the return type of a GCC
                   7327:    builtin and then its argument prototype would still apply.  */
                   7328: #ifdef __cplusplus
                   7329: extern "C"
                   7330: #endif
                   7331: char strcasecmp ();
                   7332: int
                   7333: main ()
                   7334: {
                   7335: return strcasecmp ();
                   7336:   ;
                   7337:   return 0;
                   7338: }
                   7339: _ACEOF
                   7340: if ac_fn_c_try_link "$LINENO"; then :
                   7341:   ac_cv_lib_resolv_strcasecmp=yes
                   7342: else
                   7343:   ac_cv_lib_resolv_strcasecmp=no
                   7344: fi
                   7345: rm -f core conftest.err conftest.$ac_objext \
                   7346:     conftest$ac_exeext conftest.$ac_ext
                   7347: LIBS=$ac_check_lib_save_LIBS
                   7348: fi
                   7349: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
                   7350: $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
                   7351: if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
                   7352:   cat >>confdefs.h <<_ACEOF
                   7353: #define HAVE_LIBRESOLV 1
                   7354: _ACEOF
                   7355: 
                   7356:   LIBS="-lresolv $LIBS"
                   7357: 
                   7358: fi
                   7359: 
                   7360: fi
                   7361: 
                   7362: for ac_func in aclsort
                   7363: do :
                   7364:   ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
                   7365: if test "x$ac_cv_func_aclsort" = xyes; then :
                   7366:   cat >>confdefs.h <<_ACEOF
                   7367: #define HAVE_ACLSORT 1
                   7368: _ACEOF
                   7369: 
                   7370: fi
                   7371: done
                   7372: 
                   7373: if test x"$ac_cv_func_aclsort" = x"no"; then
                   7374:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aclsort in -lsec" >&5
                   7375: $as_echo_n "checking for aclsort in -lsec... " >&6; }
                   7376: if ${ac_cv_lib_sec_aclsort+:} false; then :
                   7377:   $as_echo_n "(cached) " >&6
                   7378: else
                   7379:   ac_check_lib_save_LIBS=$LIBS
                   7380: LIBS="-lsec  $LIBS"
                   7381: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7382: /* end confdefs.h.  */
                   7383: 
                   7384: /* Override any GCC internal prototype to avoid an error.
                   7385:    Use char because int might match the return type of a GCC
                   7386:    builtin and then its argument prototype would still apply.  */
                   7387: #ifdef __cplusplus
                   7388: extern "C"
                   7389: #endif
                   7390: char aclsort ();
                   7391: int
                   7392: main ()
                   7393: {
                   7394: return aclsort ();
                   7395:   ;
                   7396:   return 0;
                   7397: }
                   7398: _ACEOF
                   7399: if ac_fn_c_try_link "$LINENO"; then :
                   7400:   ac_cv_lib_sec_aclsort=yes
                   7401: else
                   7402:   ac_cv_lib_sec_aclsort=no
                   7403: fi
                   7404: rm -f core conftest.err conftest.$ac_objext \
                   7405:     conftest$ac_exeext conftest.$ac_ext
                   7406: LIBS=$ac_check_lib_save_LIBS
                   7407: fi
                   7408: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_aclsort" >&5
                   7409: $as_echo "$ac_cv_lib_sec_aclsort" >&6; }
                   7410: if test "x$ac_cv_lib_sec_aclsort" = xyes; then :
                   7411:   cat >>confdefs.h <<_ACEOF
                   7412: #define HAVE_LIBSEC 1
                   7413: _ACEOF
                   7414: 
                   7415:   LIBS="-lsec $LIBS"
                   7416: 
                   7417: fi
                   7418: 
                   7419: fi
                   7420: 
                   7421: 
                   7422: 
                   7423: 
                   7424: 
                   7425:   for ac_header in $ac_header_list
                   7426: do :
                   7427:   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   7428: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
                   7429: "
                   7430: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
                   7431:   cat >>confdefs.h <<_ACEOF
                   7432: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   7433: _ACEOF
                   7434: 
                   7435: fi
                   7436: 
                   7437: done
                   7438: 
                   7439: 
                   7440: 
                   7441: 
                   7442: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
                   7443: $as_echo_n "checking whether utime accepts a null argument... " >&6; }
                   7444: if ${ac_cv_func_utime_null+:} false; then :
                   7445:   $as_echo_n "(cached) " >&6
                   7446: else
                   7447:   rm -f conftest.data; >conftest.data
                   7448: # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
                   7449: if test "$cross_compiling" = yes; then :
                   7450:   ac_cv_func_utime_null='guessing yes'
                   7451: else
                   7452:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7453: /* end confdefs.h.  */
                   7454: $ac_includes_default
                   7455:               #ifdef HAVE_UTIME_H
                   7456:               # include <utime.h>
                   7457:               #endif
                   7458: int
                   7459: main ()
                   7460: {
                   7461: struct stat s, t;
                   7462:   return ! (stat ("conftest.data", &s) == 0
                   7463:            && utime ("conftest.data", 0) == 0
                   7464:            && stat ("conftest.data", &t) == 0
                   7465:            && t.st_mtime >= s.st_mtime
                   7466:            && t.st_mtime - s.st_mtime < 120);
                   7467:   ;
                   7468:   return 0;
                   7469: }
                   7470: _ACEOF
                   7471: if ac_fn_c_try_run "$LINENO"; then :
                   7472:   ac_cv_func_utime_null=yes
                   7473: else
                   7474:   ac_cv_func_utime_null=no
                   7475: fi
                   7476: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   7477:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   7478: fi
                   7479: 
                   7480: fi
                   7481: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
                   7482: $as_echo "$ac_cv_func_utime_null" >&6; }
                   7483: if test "x$ac_cv_func_utime_null" != xno; then
                   7484:   ac_cv_func_utime_null=yes
                   7485: 
                   7486: $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
                   7487: 
                   7488: fi
                   7489: rm -f conftest.data
                   7490: 
                   7491: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
                   7492: if test "x$ac_cv_type_size_t" = xyes; then :
                   7493: 
                   7494: else
                   7495: 
                   7496: cat >>confdefs.h <<_ACEOF
                   7497: #define size_t unsigned int
                   7498: _ACEOF
                   7499: 
                   7500: fi
                   7501: 
                   7502: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
                   7503: # for constant arguments.  Useless!
                   7504: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
                   7505: $as_echo_n "checking for working alloca.h... " >&6; }
                   7506: if ${ac_cv_working_alloca_h+:} false; then :
                   7507:   $as_echo_n "(cached) " >&6
                   7508: else
                   7509:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7510: /* end confdefs.h.  */
                   7511: #include <alloca.h>
                   7512: int
                   7513: main ()
                   7514: {
                   7515: char *p = (char *) alloca (2 * sizeof (int));
                   7516:                          if (p) return 0;
                   7517:   ;
                   7518:   return 0;
                   7519: }
                   7520: _ACEOF
                   7521: if ac_fn_c_try_link "$LINENO"; then :
                   7522:   ac_cv_working_alloca_h=yes
                   7523: else
                   7524:   ac_cv_working_alloca_h=no
                   7525: fi
                   7526: rm -f core conftest.err conftest.$ac_objext \
                   7527:     conftest$ac_exeext conftest.$ac_ext
                   7528: fi
                   7529: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
                   7530: $as_echo "$ac_cv_working_alloca_h" >&6; }
                   7531: if test $ac_cv_working_alloca_h = yes; then
                   7532: 
                   7533: $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
                   7534: 
                   7535: fi
                   7536: 
                   7537: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
                   7538: $as_echo_n "checking for alloca... " >&6; }
                   7539: if ${ac_cv_func_alloca_works+:} false; then :
                   7540:   $as_echo_n "(cached) " >&6
                   7541: else
                   7542:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7543: /* end confdefs.h.  */
                   7544: #ifdef __GNUC__
                   7545: # define alloca __builtin_alloca
                   7546: #else
                   7547: # ifdef _MSC_VER
                   7548: #  include <malloc.h>
                   7549: #  define alloca _alloca
                   7550: # else
                   7551: #  ifdef HAVE_ALLOCA_H
                   7552: #   include <alloca.h>
                   7553: #  else
                   7554: #   ifdef _AIX
                   7555:  #pragma alloca
                   7556: #   else
                   7557: #    ifndef alloca /* predefined by HP cc +Olibcalls */
                   7558: void *alloca (size_t);
                   7559: #    endif
                   7560: #   endif
                   7561: #  endif
                   7562: # endif
                   7563: #endif
                   7564: 
                   7565: int
                   7566: main ()
                   7567: {
                   7568: char *p = (char *) alloca (1);
                   7569:                                    if (p) return 0;
                   7570:   ;
                   7571:   return 0;
                   7572: }
                   7573: _ACEOF
                   7574: if ac_fn_c_try_link "$LINENO"; then :
                   7575:   ac_cv_func_alloca_works=yes
                   7576: else
                   7577:   ac_cv_func_alloca_works=no
                   7578: fi
                   7579: rm -f core conftest.err conftest.$ac_objext \
                   7580:     conftest$ac_exeext conftest.$ac_ext
                   7581: fi
                   7582: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
                   7583: $as_echo "$ac_cv_func_alloca_works" >&6; }
                   7584: 
                   7585: if test $ac_cv_func_alloca_works = yes; then
                   7586: 
                   7587: $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
                   7588: 
                   7589: else
                   7590:   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
                   7591: # that cause trouble.  Some versions do not even contain alloca or
                   7592: # contain a buggy version.  If you still want to use their alloca,
                   7593: # use ar to extract alloca.o from them instead of compiling alloca.c.
                   7594: 
                   7595: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
                   7596: 
                   7597: $as_echo "#define C_ALLOCA 1" >>confdefs.h
                   7598: 
                   7599: 
                   7600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
                   7601: $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
                   7602: if ${ac_cv_os_cray+:} false; then :
                   7603:   $as_echo_n "(cached) " >&6
                   7604: else
                   7605:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7606: /* end confdefs.h.  */
                   7607: #if defined CRAY && ! defined CRAY2
                   7608: webecray
                   7609: #else
                   7610: wenotbecray
                   7611: #endif
                   7612: 
                   7613: _ACEOF
                   7614: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   7615:   $EGREP "webecray" >/dev/null 2>&1; then :
                   7616:   ac_cv_os_cray=yes
                   7617: else
                   7618:   ac_cv_os_cray=no
                   7619: fi
                   7620: rm -f conftest*
                   7621: 
                   7622: fi
                   7623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
                   7624: $as_echo "$ac_cv_os_cray" >&6; }
                   7625: if test $ac_cv_os_cray = yes; then
                   7626:   for ac_func in _getb67 GETB67 getb67; do
                   7627:     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   7628: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   7629: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   7630: 
                   7631: cat >>confdefs.h <<_ACEOF
                   7632: #define CRAY_STACKSEG_END $ac_func
                   7633: _ACEOF
                   7634: 
                   7635:     break
                   7636: fi
                   7637: 
                   7638:   done
                   7639: fi
                   7640: 
                   7641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
                   7642: $as_echo_n "checking stack direction for C alloca... " >&6; }
                   7643: if ${ac_cv_c_stack_direction+:} false; then :
                   7644:   $as_echo_n "(cached) " >&6
                   7645: else
                   7646:   if test "$cross_compiling" = yes; then :
                   7647:   ac_cv_c_stack_direction=0
                   7648: else
                   7649:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7650: /* end confdefs.h.  */
                   7651: $ac_includes_default
                   7652: int
1.1.1.3 ! misho    7653: find_stack_direction (int *addr, int depth)
1.1       misho    7654: {
1.1.1.3 ! misho    7655:   int dir, dummy = 0;
        !          7656:   if (! addr)
        !          7657:     addr = &dummy;
        !          7658:   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
        !          7659:   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
        !          7660:   return dir + dummy;
1.1       misho    7661: }
                   7662: 
                   7663: int
1.1.1.3 ! misho    7664: main (int argc, char **argv)
1.1       misho    7665: {
1.1.1.3 ! misho    7666:   return find_stack_direction (0, argc + !argv + 20) < 0;
1.1       misho    7667: }
                   7668: _ACEOF
                   7669: if ac_fn_c_try_run "$LINENO"; then :
                   7670:   ac_cv_c_stack_direction=1
                   7671: else
                   7672:   ac_cv_c_stack_direction=-1
                   7673: fi
                   7674: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   7675:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   7676: fi
                   7677: 
                   7678: fi
                   7679: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
                   7680: $as_echo "$ac_cv_c_stack_direction" >&6; }
                   7681: cat >>confdefs.h <<_ACEOF
                   7682: #define STACK_DIRECTION $ac_cv_c_stack_direction
                   7683: _ACEOF
                   7684: 
                   7685: 
                   7686: fi
                   7687: 
                   7688: for ac_func in waitpid wait4 getcwd strdup chown chmod lchmod mknod mkfifo \
                   7689:     fchmod fstat ftruncate strchr readlink link utime utimes lutimes strftime \
                   7690:     memmove lchown vsnprintf snprintf vasprintf asprintf setsid strpbrk \
                   7691:     strlcat strlcpy strtol mallinfo getgroups setgroups geteuid getegid \
                   7692:     setlocale setmode open64 lseek64 mkstemp64 mtrace va_copy __va_copy \
                   7693:     seteuid strerror putenv iconv_open locale_charset nl_langinfo getxattr \
1.1.1.2   misho    7694:     extattr_get_link sigaction sigprocmask setattrlist getgrouplist \
1.1.1.3 ! misho    7695:     initgroups utimensat posix_fallocate attropen setvbuf usleep
1.1       misho    7696: do :
                   7697:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   7698: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   7699: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   7700:   cat >>confdefs.h <<_ACEOF
                   7701: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   7702: _ACEOF
                   7703: 
                   7704: fi
                   7705: done
                   7706: 
                   7707: 
                   7708: if test x"$ac_cv_func_iconv_open" != x"yes"; then
                   7709:     ac_fn_c_check_func "$LINENO" "libiconv_open" "ac_cv_func_libiconv_open"
                   7710: if test "x$ac_cv_func_libiconv_open" = xyes; then :
                   7711:   ac_cv_func_iconv_open=yes; $as_echo "#define HAVE_ICONV_OPEN 1" >>confdefs.h
                   7712: 
                   7713: fi
                   7714: 
                   7715: fi
                   7716: 
1.1.1.2   misho    7717: 
                   7718: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for useable fallocate" >&5
                   7719: $as_echo_n "checking for useable fallocate... " >&6; }
                   7720: if ${rsync_cv_have_fallocate+:} false; then :
                   7721:   $as_echo_n "(cached) " >&6
                   7722: else
                   7723: 
                   7724: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7725: /* end confdefs.h.  */
                   7726: #include <fcntl.h>
                   7727: #include <sys/types.h>
                   7728: int
                   7729: main ()
                   7730: {
                   7731: fallocate(0, 0, 0, 0);
                   7732:   ;
                   7733:   return 0;
                   7734: }
                   7735: _ACEOF
                   7736: if ac_fn_c_try_link "$LINENO"; then :
                   7737:   rsync_cv_have_fallocate=yes
                   7738: else
                   7739:   rsync_cv_have_fallocate=no
                   7740: fi
                   7741: rm -f core conftest.err conftest.$ac_objext \
                   7742:     conftest$ac_exeext conftest.$ac_ext
                   7743: fi
                   7744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_have_fallocate" >&5
                   7745: $as_echo "$rsync_cv_have_fallocate" >&6; }
                   7746: if test x"$rsync_cv_have_fallocate" = x"yes"; then
                   7747: 
                   7748: $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
                   7749: 
                   7750: fi
                   7751: 
                   7752: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
                   7753: $as_echo_n "checking for SYS_fallocate... " >&6; }
                   7754: if ${rsync_cv_have_sys_fallocate+:} false; then :
                   7755:   $as_echo_n "(cached) " >&6
                   7756: else
                   7757: 
                   7758: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7759: /* end confdefs.h.  */
                   7760: #include <sys/syscall.h>
                   7761: #include <sys/types.h>
                   7762: int
                   7763: main ()
                   7764: {
                   7765: syscall(SYS_fallocate, 0, 0, (loff_t)0, (loff_t)0);
                   7766:   ;
                   7767:   return 0;
                   7768: }
                   7769: _ACEOF
                   7770: if ac_fn_c_try_compile "$LINENO"; then :
                   7771:   rsync_cv_have_sys_fallocate=yes
                   7772: else
                   7773:   rsync_cv_have_sys_fallocate=no
                   7774: fi
                   7775: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7776: fi
                   7777: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_have_sys_fallocate" >&5
                   7778: $as_echo "$rsync_cv_have_sys_fallocate" >&6; }
                   7779: if test x"$rsync_cv_have_sys_fallocate" = x"yes"; then
                   7780: 
                   7781: $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
                   7782: 
                   7783: fi
                   7784: 
                   7785: if test x"$ac_cv_func_posix_fallocate" = x"yes"; then
                   7786:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_fallocate is efficient" >&5
                   7787: $as_echo_n "checking whether posix_fallocate is efficient... " >&6; }
                   7788:     case $host_os in
                   7789:     *cygwin*)
                   7790:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
                   7791: $as_echo "yes" >&6; }
                   7792: 
                   7793: $as_echo "#define HAVE_EFFICIENT_POSIX_FALLOCATE 1" >>confdefs.h
                   7794: 
                   7795:        ;;
                   7796:     *)
                   7797:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   7798: $as_echo "no" >&6; }
                   7799:        ;;
                   7800:     esac
                   7801: fi
                   7802: 
                   7803: 
1.1       misho    7804: for ac_func in getpgrp tcgetpgrp
                   7805: do :
                   7806:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   7807: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   7808: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   7809:   cat >>confdefs.h <<_ACEOF
                   7810: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   7811: _ACEOF
                   7812: 
                   7813: fi
                   7814: done
                   7815: 
                   7816: if test $ac_cv_func_getpgrp = yes; then
                   7817:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
                   7818: $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
                   7819: if ${ac_cv_func_getpgrp_void+:} false; then :
                   7820:   $as_echo_n "(cached) " >&6
                   7821: else
                   7822:   # Use it with a single arg.
                   7823: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7824: /* end confdefs.h.  */
                   7825: $ac_includes_default
                   7826: int
                   7827: main ()
                   7828: {
                   7829: getpgrp (0);
                   7830:   ;
                   7831:   return 0;
                   7832: }
                   7833: _ACEOF
                   7834: if ac_fn_c_try_compile "$LINENO"; then :
                   7835:   ac_cv_func_getpgrp_void=no
                   7836: else
                   7837:   ac_cv_func_getpgrp_void=yes
                   7838: fi
                   7839: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   7840: 
                   7841: fi
                   7842: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
                   7843: $as_echo "$ac_cv_func_getpgrp_void" >&6; }
                   7844: if test $ac_cv_func_getpgrp_void = yes; then
                   7845: 
                   7846: $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
                   7847: 
                   7848: fi
                   7849: 
                   7850: fi
                   7851: 
                   7852: # Check whether --enable-iconv-open was given.
                   7853: if test "${enable_iconv_open+set}" = set; then :
                   7854:   enableval=$enable_iconv_open;
                   7855: else
                   7856:   enable_iconv_open=$ac_cv_func_iconv_open
                   7857: fi
                   7858: 
                   7859: 
                   7860: if test x"$enable_iconv_open" != x"no"; then
                   7861: 
                   7862: $as_echo "#define USE_ICONV_OPEN 1" >>confdefs.h
                   7863: 
                   7864: fi
                   7865: 
                   7866: # Check whether --enable-iconv was given.
                   7867: if test "${enable_iconv+set}" = set; then :
                   7868:   enableval=$enable_iconv;
                   7869: else
                   7870:   enable_iconv=$enable_iconv_open
                   7871: fi
                   7872: 
                   7873: 
                   7874: if test x"$enable_iconv" != x"no"; then
                   7875:        if test x"$enable_iconv" = x"yes"; then
                   7876:                $as_echo "#define ICONV_OPTION NULL" >>confdefs.h
                   7877: 
                   7878:        else
                   7879:                cat >>confdefs.h <<_ACEOF
                   7880: #define ICONV_OPTION "$enable_iconv"
                   7881: _ACEOF
                   7882: 
                   7883:        fi
                   7884: 
                   7885: $as_echo "#define UTF8_CHARSET \"UTF-8\"" >>confdefs.h
                   7886: 
                   7887: fi
                   7888: 
                   7889: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether chown() modifies symlinks" >&5
                   7890: $as_echo_n "checking whether chown() modifies symlinks... " >&6; }
                   7891: if ${rsync_cv_chown_modifies_symlink+:} false; then :
                   7892:   $as_echo_n "(cached) " >&6
                   7893: else
                   7894: 
                   7895:   if test "$cross_compiling" = yes; then :
                   7896:   rsync_cv_chown_modifies_symlink=no
                   7897: else
                   7898:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7899: /* end confdefs.h.  */
                   7900: 
                   7901: #if HAVE_UNISTD_H
                   7902: # include <unistd.h>
                   7903: #endif
                   7904: #include <stdlib.h>
                   7905: #include <errno.h>
                   7906:     main() {
                   7907:        char const *dangling_symlink = "conftest.dangle";
                   7908:        unlink(dangling_symlink);
                   7909:        if (symlink("conftest.no-such", dangling_symlink) < 0) abort();
                   7910:        if (chown(dangling_symlink, getuid(), getgid()) < 0 && errno == ENOENT) exit(1);
                   7911:        exit(0);
                   7912:     }
                   7913: _ACEOF
                   7914: if ac_fn_c_try_run "$LINENO"; then :
                   7915:   rsync_cv_chown_modifies_symlink=yes
                   7916: else
                   7917:   rsync_cv_chown_modifies_symlink=no
                   7918: fi
                   7919: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   7920:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   7921: fi
                   7922: 
                   7923: fi
                   7924: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_chown_modifies_symlink" >&5
                   7925: $as_echo "$rsync_cv_chown_modifies_symlink" >&6; }
                   7926: if test $rsync_cv_chown_modifies_symlink = yes; then
                   7927: 
                   7928: $as_echo "#define CHOWN_MODIFIES_SYMLINK 1" >>confdefs.h
                   7929: 
                   7930: fi
                   7931: 
                   7932: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link() can hard-link symlinks" >&5
                   7933: $as_echo_n "checking whether link() can hard-link symlinks... " >&6; }
                   7934: if ${rsync_cv_can_hardlink_symlink+:} false; then :
                   7935:   $as_echo_n "(cached) " >&6
                   7936: else
                   7937: 
                   7938:   if test "$cross_compiling" = yes; then :
                   7939:   rsync_cv_can_hardlink_symlink=no
                   7940: else
                   7941:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7942: /* end confdefs.h.  */
                   7943: 
                   7944: #if HAVE_UNISTD_H
                   7945: # include <unistd.h>
                   7946: #endif
                   7947: #include <stdlib.h>
                   7948: #include <errno.h>
                   7949: #define FILENAME "conftest.dangle"
                   7950:     main() {
                   7951:        unlink(FILENAME);
                   7952:        if (symlink("conftest.no-such", FILENAME) < 0) abort();
1.1.1.3 ! misho    7953:        unlink(FILENAME "2");
1.1       misho    7954:        if (link(FILENAME, FILENAME "2") < 0) exit(1);
                   7955:        exit(0);
                   7956:     }
                   7957: _ACEOF
                   7958: if ac_fn_c_try_run "$LINENO"; then :
                   7959:   rsync_cv_can_hardlink_symlink=yes
                   7960: else
                   7961:   rsync_cv_can_hardlink_symlink=no
                   7962: fi
                   7963: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   7964:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   7965: fi
                   7966: 
                   7967: fi
                   7968: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_can_hardlink_symlink" >&5
                   7969: $as_echo "$rsync_cv_can_hardlink_symlink" >&6; }
                   7970: if test $rsync_cv_can_hardlink_symlink = yes; then
                   7971: 
                   7972: $as_echo "#define CAN_HARDLINK_SYMLINK 1" >>confdefs.h
                   7973: 
                   7974: fi
                   7975: 
                   7976: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link() can hard-link special files" >&5
                   7977: $as_echo_n "checking whether link() can hard-link special files... " >&6; }
                   7978: if ${rsync_cv_can_hardlink_special+:} false; then :
                   7979:   $as_echo_n "(cached) " >&6
                   7980: else
                   7981: 
                   7982:   if test "$cross_compiling" = yes; then :
                   7983:   rsync_cv_can_hardlink_special=no
                   7984: else
                   7985:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   7986: /* end confdefs.h.  */
                   7987: 
                   7988: #if HAVE_UNISTD_H
                   7989: # include <unistd.h>
                   7990: #endif
                   7991: #include <stdlib.h>
                   7992: #include <errno.h>
                   7993: #define FILENAME "conftest.fifi"
                   7994:     main() {
                   7995:        unlink(FILENAME);
                   7996:        if (mkfifo(FILENAME, 0777) < 0) abort();
1.1.1.3 ! misho    7997:        unlink(FILENAME "2");
1.1       misho    7998:        if (link(FILENAME, FILENAME "2") < 0) exit(1);
                   7999:        exit(0);
                   8000:     }
                   8001: _ACEOF
                   8002: if ac_fn_c_try_run "$LINENO"; then :
                   8003:   rsync_cv_can_hardlink_special=yes
                   8004: else
                   8005:   rsync_cv_can_hardlink_special=no
                   8006: fi
                   8007: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8008:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8009: fi
                   8010: 
                   8011: fi
                   8012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_can_hardlink_special" >&5
                   8013: $as_echo "$rsync_cv_can_hardlink_special" >&6; }
                   8014: if test $rsync_cv_can_hardlink_special = yes; then
                   8015: 
                   8016: $as_echo "#define CAN_HARDLINK_SPECIAL 1" >>confdefs.h
                   8017: 
                   8018: fi
                   8019: 
                   8020: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working socketpair" >&5
                   8021: $as_echo_n "checking for working socketpair... " >&6; }
                   8022: if ${rsync_cv_HAVE_SOCKETPAIR+:} false; then :
                   8023:   $as_echo_n "(cached) " >&6
                   8024: else
                   8025: 
                   8026: if test "$cross_compiling" = yes; then :
                   8027:   rsync_cv_HAVE_SOCKETPAIR=cross
                   8028: else
                   8029:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8030: /* end confdefs.h.  */
                   8031: 
                   8032: #include <sys/types.h>
                   8033: #include <sys/socket.h>
                   8034: 
                   8035: main() {
                   8036:        int fd[2];
                   8037:        exit((socketpair(AF_UNIX, SOCK_STREAM, 0, fd) != -1) ? 0 : 1);
                   8038: }
                   8039: _ACEOF
                   8040: if ac_fn_c_try_run "$LINENO"; then :
                   8041:   rsync_cv_HAVE_SOCKETPAIR=yes
                   8042: else
                   8043:   rsync_cv_HAVE_SOCKETPAIR=no
                   8044: fi
                   8045: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8046:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8047: fi
                   8048: 
                   8049: fi
                   8050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_SOCKETPAIR" >&5
                   8051: $as_echo "$rsync_cv_HAVE_SOCKETPAIR" >&6; }
                   8052: if test x"$rsync_cv_HAVE_SOCKETPAIR" = x"yes"; then
                   8053: 
                   8054: $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
                   8055: 
                   8056: fi
                   8057: 
1.1.1.3 ! misho    8058: ac_fn_c_check_func "$LINENO" "getpass" "ac_cv_func_getpass"
1.1.1.2   misho    8059: if test "x$ac_cv_func_getpass" = xyes; then :
1.1.1.3 ! misho    8060:   $as_echo "#define HAVE_GETPASS 1" >>confdefs.h
1.1.1.2   misho    8061: 
                   8062: else
                   8063:   case " $LIBOBJS " in
1.1.1.3 ! misho    8064:   *" getpass.$ac_objext "* ) ;;
        !          8065:   *) LIBOBJS="$LIBOBJS getpass.$ac_objext"
1.1.1.2   misho    8066:  ;;
                   8067: esac
                   8068: 
                   8069: fi
1.1.1.3 ! misho    8070: 
1.1.1.2   misho    8071: 
                   8072: 
1.1       misho    8073: if test x"$with_included_popt" != x"yes"; then
                   8074:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5
                   8075: $as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
                   8076: if ${ac_cv_lib_popt_poptGetContext+:} false; then :
                   8077:   $as_echo_n "(cached) " >&6
                   8078: else
                   8079:   ac_check_lib_save_LIBS=$LIBS
                   8080: LIBS="-lpopt  $LIBS"
                   8081: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8082: /* end confdefs.h.  */
                   8083: 
                   8084: /* Override any GCC internal prototype to avoid an error.
                   8085:    Use char because int might match the return type of a GCC
                   8086:    builtin and then its argument prototype would still apply.  */
                   8087: #ifdef __cplusplus
                   8088: extern "C"
                   8089: #endif
                   8090: char poptGetContext ();
                   8091: int
                   8092: main ()
                   8093: {
                   8094: return poptGetContext ();
                   8095:   ;
                   8096:   return 0;
                   8097: }
                   8098: _ACEOF
                   8099: if ac_fn_c_try_link "$LINENO"; then :
                   8100:   ac_cv_lib_popt_poptGetContext=yes
                   8101: else
                   8102:   ac_cv_lib_popt_poptGetContext=no
                   8103: fi
                   8104: rm -f core conftest.err conftest.$ac_objext \
                   8105:     conftest$ac_exeext conftest.$ac_ext
                   8106: LIBS=$ac_check_lib_save_LIBS
                   8107: fi
                   8108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5
                   8109: $as_echo "$ac_cv_lib_popt_poptGetContext" >&6; }
                   8110: if test "x$ac_cv_lib_popt_poptGetContext" = xyes; then :
                   8111:   cat >>confdefs.h <<_ACEOF
                   8112: #define HAVE_LIBPOPT 1
                   8113: _ACEOF
                   8114: 
                   8115:   LIBS="-lpopt $LIBS"
                   8116: 
                   8117: else
                   8118:   with_included_popt=yes
                   8119: fi
                   8120: 
                   8121: fi
                   8122: if test x"$ac_cv_header_popt_popt_h" = x"yes"; then
                   8123:     # If the system has /usr/include/popt/popt.h, we enable the
                   8124:     # included popt because an attempt to "#include <popt/popt.h>"
                   8125:     # would use our included header file anyway (due to -I.), and
                   8126:     # might conflict with the system popt.
                   8127:     with_included_popt=yes
                   8128: elif test x"$ac_cv_header_popt_h" != x"yes"; then
                   8129:     with_included_popt=yes
                   8130: fi
                   8131: 
                   8132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use included libpopt" >&5
                   8133: $as_echo_n "checking whether to use included libpopt... " >&6; }
                   8134: if test x"$with_included_popt" = x"yes"; then
                   8135:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $srcdir/popt" >&5
                   8136: $as_echo "$srcdir/popt" >&6; }
                   8137:     BUILD_POPT='$(popt_OBJS)'
1.1.1.3 ! misho    8138:     CFLAGS="-I$srcdir/popt $CFLAGS"
1.1       misho    8139:     if test x"$ALLOCA" != x
                   8140:     then
                   8141:        # this can be removed when/if we add an included alloca.c;
                   8142:        #  see autoconf documentation on AC_FUNC_ALLOCA
                   8143:        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: included libpopt will use malloc, not alloca (which wastes a small amount of memory)" >&5
                   8144: $as_echo "$as_me: WARNING: included libpopt will use malloc, not alloca (which wastes a small amount of memory)" >&2;}
                   8145:     fi
                   8146: else
                   8147:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8148: $as_echo "no" >&6; }
                   8149: fi
                   8150: 
1.1.1.2   misho    8151: # We default to using our zlib unless --with-included-zlib=no is given.
                   8152: if test x"$with_included_zlib" != x"no"; then
                   8153:     with_included_zlib=yes
                   8154: elif test x"$ac_cv_header_zlib_h" != x"yes"; then
                   8155:     with_included_zlib=yes
                   8156: fi
                   8157: if test x"$with_included_zlib" != x"yes"; then
                   8158:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateParams in -lz" >&5
                   8159: $as_echo_n "checking for deflateParams in -lz... " >&6; }
                   8160: if ${ac_cv_lib_z_deflateParams+:} false; then :
                   8161:   $as_echo_n "(cached) " >&6
                   8162: else
                   8163:   ac_check_lib_save_LIBS=$LIBS
                   8164: LIBS="-lz  $LIBS"
                   8165: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8166: /* end confdefs.h.  */
                   8167: 
                   8168: /* Override any GCC internal prototype to avoid an error.
                   8169:    Use char because int might match the return type of a GCC
                   8170:    builtin and then its argument prototype would still apply.  */
                   8171: #ifdef __cplusplus
                   8172: extern "C"
                   8173: #endif
                   8174: char deflateParams ();
                   8175: int
                   8176: main ()
                   8177: {
                   8178: return deflateParams ();
                   8179:   ;
                   8180:   return 0;
                   8181: }
                   8182: _ACEOF
                   8183: if ac_fn_c_try_link "$LINENO"; then :
                   8184:   ac_cv_lib_z_deflateParams=yes
                   8185: else
                   8186:   ac_cv_lib_z_deflateParams=no
                   8187: fi
                   8188: rm -f core conftest.err conftest.$ac_objext \
                   8189:     conftest$ac_exeext conftest.$ac_ext
                   8190: LIBS=$ac_check_lib_save_LIBS
                   8191: fi
                   8192: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateParams" >&5
                   8193: $as_echo "$ac_cv_lib_z_deflateParams" >&6; }
                   8194: if test "x$ac_cv_lib_z_deflateParams" = xyes; then :
                   8195:   cat >>confdefs.h <<_ACEOF
                   8196: #define HAVE_LIBZ 1
                   8197: _ACEOF
                   8198: 
                   8199:   LIBS="-lz $LIBS"
                   8200: 
                   8201: else
                   8202:   with_included_zlib=yes
                   8203: fi
                   8204: 
                   8205: fi
                   8206: 
                   8207: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use included zlib" >&5
                   8208: $as_echo_n "checking whether to use included zlib... " >&6; }
                   8209: if test x"$with_included_zlib" = x"yes"; then
                   8210:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $srcdir/zlib" >&5
                   8211: $as_echo "$srcdir/zlib" >&6; }
                   8212:     BUILD_ZLIB='$(zlib_OBJS)'
1.1.1.3 ! misho    8213:     CFLAGS="-I$srcdir/zlib $CFLAGS"
1.1.1.2   misho    8214: else
1.1.1.3 ! misho    8215: 
        !          8216: $as_echo "#define EXTERNAL_ZLIB 1" >>confdefs.h
        !          8217: 
1.1.1.2   misho    8218:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8219: $as_echo "no" >&6; }
                   8220: fi
                   8221: 
1.1       misho    8222: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned char" >&5
                   8223: $as_echo_n "checking for unsigned char... " >&6; }
                   8224: if ${rsync_cv_SIGNED_CHAR_OK+:} false; then :
                   8225:   $as_echo_n "(cached) " >&6
                   8226: else
                   8227: 
                   8228: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8229: /* end confdefs.h.  */
                   8230: 
                   8231: int
                   8232: main ()
                   8233: {
                   8234: signed char *s = ""
                   8235:   ;
                   8236:   return 0;
                   8237: }
                   8238: _ACEOF
                   8239: if ac_fn_c_try_compile "$LINENO"; then :
                   8240:   rsync_cv_SIGNED_CHAR_OK=yes
                   8241: else
                   8242:   rsync_cv_SIGNED_CHAR_OK=no
                   8243: fi
                   8244: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8245: fi
                   8246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_SIGNED_CHAR_OK" >&5
                   8247: $as_echo "$rsync_cv_SIGNED_CHAR_OK" >&6; }
                   8248: if test x"$rsync_cv_SIGNED_CHAR_OK" = x"yes"; then
                   8249: 
                   8250: $as_echo "#define SIGNED_CHAR_OK 1" >>confdefs.h
                   8251: 
                   8252: fi
                   8253: 
                   8254: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken readdir" >&5
                   8255: $as_echo_n "checking for broken readdir... " >&6; }
                   8256: if ${rsync_cv_HAVE_BROKEN_READDIR+:} false; then :
                   8257:   $as_echo_n "(cached) " >&6
                   8258: else
                   8259: 
                   8260: if test "$cross_compiling" = yes; then :
                   8261:   rsync_cv_HAVE_BROKEN_READDIR=cross
                   8262: else
                   8263:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8264: /* end confdefs.h.  */
                   8265: #include <sys/types.h>
                   8266: #include <dirent.h>
                   8267: main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
                   8268: if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
                   8269: di->d_name[0] == 0) exit(0); exit(1);}
                   8270: _ACEOF
                   8271: if ac_fn_c_try_run "$LINENO"; then :
                   8272:   rsync_cv_HAVE_BROKEN_READDIR=yes
                   8273: else
                   8274:   rsync_cv_HAVE_BROKEN_READDIR=no
                   8275: fi
                   8276: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8277:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8278: fi
                   8279: 
                   8280: fi
                   8281: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_BROKEN_READDIR" >&5
                   8282: $as_echo "$rsync_cv_HAVE_BROKEN_READDIR" >&6; }
                   8283: if test x"$rsync_cv_HAVE_BROKEN_READDIR" = x"yes"; then
                   8284: 
                   8285: $as_echo "#define HAVE_BROKEN_READDIR 1" >>confdefs.h
                   8286: 
                   8287: fi
                   8288: 
                   8289: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimbuf" >&5
                   8290: $as_echo_n "checking for utimbuf... " >&6; }
                   8291: if ${rsync_cv_HAVE_STRUCT_UTIMBUF+:} false; then :
                   8292:   $as_echo_n "(cached) " >&6
                   8293: else
                   8294: 
                   8295: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8296: /* end confdefs.h.  */
                   8297: #include <sys/types.h>
                   8298: #include <utime.h>
                   8299: int
                   8300: main ()
                   8301: {
                   8302: struct utimbuf tbuf;  tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
                   8303:   ;
                   8304:   return 0;
                   8305: }
                   8306: _ACEOF
                   8307: if ac_fn_c_try_compile "$LINENO"; then :
                   8308:   rsync_cv_HAVE_STRUCT_UTIMBUF=yes
                   8309: else
                   8310:   rsync_cv_HAVE_STRUCT_UTIMBUF=no
                   8311: fi
                   8312: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8313: fi
                   8314: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_STRUCT_UTIMBUF" >&5
                   8315: $as_echo "$rsync_cv_HAVE_STRUCT_UTIMBUF" >&6; }
                   8316: if test x"$rsync_cv_HAVE_STRUCT_UTIMBUF" = x"yes"; then
                   8317: 
                   8318: $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
                   8319: 
                   8320: fi
                   8321: 
                   8322: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gettimeofday takes tz argument" >&5
                   8323: $as_echo_n "checking if gettimeofday takes tz argument... " >&6; }
                   8324: if ${rsync_cv_HAVE_GETTIMEOFDAY_TZ+:} false; then :
                   8325:   $as_echo_n "(cached) " >&6
                   8326: else
                   8327: 
                   8328: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8329: /* end confdefs.h.  */
                   8330: #include <sys/time.h>
                   8331: #include <unistd.h>
                   8332: int
                   8333: main ()
                   8334: {
                   8335: struct timeval tv; exit(gettimeofday(&tv, NULL));
                   8336:   ;
                   8337:   return 0;
                   8338: }
                   8339: _ACEOF
                   8340: if ac_fn_c_try_compile "$LINENO"; then :
                   8341:   rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes
                   8342: else
                   8343:   rsync_cv_HAVE_GETTIMEOFDAY_TZ=no
                   8344: fi
                   8345: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   8346: fi
                   8347: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_GETTIMEOFDAY_TZ" >&5
                   8348: $as_echo "$rsync_cv_HAVE_GETTIMEOFDAY_TZ" >&6; }
                   8349: if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" != x"no"; then
                   8350: 
                   8351: $as_echo "#define HAVE_GETTIMEOFDAY_TZ 1" >>confdefs.h
                   8352: 
                   8353: fi
                   8354: 
                   8355: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5
                   8356: $as_echo_n "checking for C99 vsnprintf... " >&6; }
                   8357: if ${rsync_cv_HAVE_C99_VSNPRINTF+:} false; then :
                   8358:   $as_echo_n "(cached) " >&6
                   8359: else
                   8360: 
                   8361: if test "$cross_compiling" = yes; then :
                   8362:   rsync_cv_HAVE_C99_VSNPRINTF=cross
                   8363: else
                   8364:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8365: /* end confdefs.h.  */
                   8366: 
                   8367: #include <sys/types.h>
                   8368: #include <stdarg.h>
                   8369: void foo(const char *format, ...) {
                   8370:        va_list ap;
                   8371:        int len;
                   8372:        char buf[5];
                   8373: 
                   8374:        va_start(ap, format);
                   8375:        len = vsnprintf(0, 0, format, ap);
                   8376:        va_end(ap);
                   8377:        if (len != 5) exit(1);
                   8378: 
                   8379:        if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
                   8380: 
                   8381:        exit(0);
                   8382: }
                   8383: main() { foo("hello"); }
                   8384: 
                   8385: _ACEOF
                   8386: if ac_fn_c_try_run "$LINENO"; then :
                   8387:   rsync_cv_HAVE_C99_VSNPRINTF=yes
                   8388: else
                   8389:   rsync_cv_HAVE_C99_VSNPRINTF=no
                   8390: fi
                   8391: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8392:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8393: fi
                   8394: 
                   8395: fi
                   8396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_C99_VSNPRINTF" >&5
                   8397: $as_echo "$rsync_cv_HAVE_C99_VSNPRINTF" >&6; }
                   8398: if test x"$rsync_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
                   8399: 
                   8400: $as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h
                   8401: 
                   8402: fi
                   8403: 
                   8404: 
                   8405: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for secure mkstemp" >&5
                   8406: $as_echo_n "checking for secure mkstemp... " >&6; }
                   8407: if ${rsync_cv_HAVE_SECURE_MKSTEMP+:} false; then :
                   8408:   $as_echo_n "(cached) " >&6
                   8409: else
                   8410: 
                   8411: if test "$cross_compiling" = yes; then :
                   8412:   rsync_cv_HAVE_SECURE_MKSTEMP=cross
                   8413: else
                   8414:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8415: /* end confdefs.h.  */
                   8416: #include <stdlib.h>
                   8417: #include <sys/types.h>
                   8418: #include <sys/stat.h>
                   8419: #include <unistd.h>
                   8420: main() {
                   8421:   struct stat st;
                   8422:   char tpl[20]="/tmp/test.XXXXXX";
                   8423:   int fd = mkstemp(tpl);
                   8424:   if (fd == -1) exit(1);
                   8425:   unlink(tpl);
                   8426:   if (fstat(fd, &st) != 0) exit(1);
                   8427:   if ((st.st_mode & 0777) != 0600) exit(1);
                   8428:   exit(0);
                   8429: }
                   8430: _ACEOF
                   8431: if ac_fn_c_try_run "$LINENO"; then :
                   8432:   rsync_cv_HAVE_SECURE_MKSTEMP=yes
                   8433: else
                   8434:   rsync_cv_HAVE_SECURE_MKSTEMP=no
                   8435: fi
                   8436: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8437:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8438: fi
                   8439: 
                   8440: fi
                   8441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_SECURE_MKSTEMP" >&5
                   8442: $as_echo "$rsync_cv_HAVE_SECURE_MKSTEMP" >&6; }
                   8443: if test x"$rsync_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
                   8444:     case $host_os in
                   8445:     hpux*)
                   8446:                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping broken HP-UX mkstemp() -- using mktemp() instead" >&5
                   8447: $as_echo "$as_me: WARNING: Skipping broken HP-UX mkstemp() -- using mktemp() instead" >&2;}
                   8448:        ;;
                   8449:     *)
                   8450: 
                   8451: $as_echo "#define HAVE_SECURE_MKSTEMP 1" >>confdefs.h
                   8452: 
                   8453:        ;;
                   8454:     esac
                   8455: fi
                   8456: 
                   8457: 
                   8458: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mknod creates FIFOs" >&5
                   8459: $as_echo_n "checking if mknod creates FIFOs... " >&6; }
                   8460: if ${rsync_cv_MKNOD_CREATES_FIFOS+:} false; then :
                   8461:   $as_echo_n "(cached) " >&6
                   8462: else
                   8463: 
                   8464: if test "$cross_compiling" = yes; then :
                   8465:   rsync_cv_MKNOD_CREATES_FIFOS=cross
                   8466: else
                   8467:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8468: /* end confdefs.h.  */
                   8469: 
                   8470: #include <stdio.h>
                   8471: #include <sys/stat.h>
                   8472: #include <errno.h>
                   8473: main() { int rc, ec; char *fn = "fifo-test";
                   8474: unlink(fn); rc = mknod(fn,S_IFIFO,0600); ec = errno; unlink(fn);
                   8475: if (rc) {printf("(%d %d) ",rc,ec); return ec;}
                   8476: return 0;}
                   8477: _ACEOF
                   8478: if ac_fn_c_try_run "$LINENO"; then :
                   8479:   rsync_cv_MKNOD_CREATES_FIFOS=yes
                   8480: else
                   8481:   rsync_cv_MKNOD_CREATES_FIFOS=no
                   8482: fi
                   8483: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8484:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8485: fi
                   8486: 
                   8487: fi
                   8488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_MKNOD_CREATES_FIFOS" >&5
                   8489: $as_echo "$rsync_cv_MKNOD_CREATES_FIFOS" >&6; }
                   8490: if test x"$rsync_cv_MKNOD_CREATES_FIFOS" = x"yes"; then
                   8491: 
                   8492: $as_echo "#define MKNOD_CREATES_FIFOS 1" >>confdefs.h
                   8493: 
                   8494: fi
                   8495: 
                   8496: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mknod creates sockets" >&5
                   8497: $as_echo_n "checking if mknod creates sockets... " >&6; }
                   8498: if ${rsync_cv_MKNOD_CREATES_SOCKETS+:} false; then :
                   8499:   $as_echo_n "(cached) " >&6
                   8500: else
                   8501: 
                   8502: if test "$cross_compiling" = yes; then :
                   8503:   rsync_cv_MKNOD_CREATES_SOCKETS=cross
                   8504: else
                   8505:   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8506: /* end confdefs.h.  */
                   8507: 
                   8508: #include <stdio.h>
                   8509: #include <sys/stat.h>
                   8510: #include <errno.h>
                   8511: main() { int rc, ec; char *fn = "sock-test";
                   8512: unlink(fn); rc = mknod(fn,S_IFSOCK,0600); ec = errno; unlink(fn);
                   8513: if (rc) {printf("(%d %d) ",rc,ec); return ec;}
                   8514: return 0;}
                   8515: _ACEOF
                   8516: if ac_fn_c_try_run "$LINENO"; then :
                   8517:   rsync_cv_MKNOD_CREATES_SOCKETS=yes
                   8518: else
                   8519:   rsync_cv_MKNOD_CREATES_SOCKETS=no
                   8520: fi
                   8521: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
                   8522:   conftest.$ac_objext conftest.beam conftest.$ac_ext
                   8523: fi
                   8524: 
                   8525: fi
                   8526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_MKNOD_CREATES_SOCKETS" >&5
                   8527: $as_echo "$rsync_cv_MKNOD_CREATES_SOCKETS" >&6; }
                   8528: if test x"$rsync_cv_MKNOD_CREATES_SOCKETS" = x"yes"; then
                   8529: 
                   8530: $as_echo "#define MKNOD_CREATES_SOCKETS 1" >>confdefs.h
                   8531: 
                   8532: fi
                   8533: 
                   8534: #
                   8535: # The following test was mostly taken from the tcl/tk plus patches
                   8536: #
                   8537: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -c -o works" >&5
                   8538: $as_echo_n "checking whether -c -o works... " >&6; }
                   8539: if ${rsync_cv_DASHC_WORKS_WITH_DASHO+:} false; then :
                   8540:   $as_echo_n "(cached) " >&6
                   8541: else
                   8542: 
                   8543: rm -rf conftest*
                   8544: cat > conftest.$ac_ext <<EOF
                   8545: int main() { return 0; }
                   8546: EOF
                   8547: ${CC-cc} -c -o conftest..o conftest.$ac_ext
                   8548: if test -f conftest..o; then
                   8549:     rsync_cv_DASHC_WORKS_WITH_DASHO=yes
                   8550: else
                   8551:     rsync_cv_DASHC_WORKS_WITH_DASHO=no
                   8552: fi
                   8553: rm -rf conftest*
                   8554: 
                   8555: fi
                   8556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_DASHC_WORKS_WITH_DASHO" >&5
                   8557: $as_echo "$rsync_cv_DASHC_WORKS_WITH_DASHO" >&6; }
                   8558: if test x"$rsync_cv_DASHC_WORKS_WITH_DASHO" = x"yes"; then
                   8559:     OBJ_SAVE="#"
                   8560:     OBJ_RESTORE="#"
                   8561:     CC_SHOBJ_FLAG='-o $@'
                   8562: else
                   8563:     OBJ_SAVE=' @b=`basename $@ .o`;rm -f $$b.o.sav;if test -f $$b.o; then mv $$b.o $$b.o.sav;fi;'
                   8564:     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'
                   8565:     CC_SHOBJ_FLAG=""
                   8566: fi
                   8567: 
                   8568: 
                   8569: 
                   8570: 
                   8571: 
                   8572: 
                   8573: 
1.1.1.2   misho    8574: 
                   8575: # Extract the first word of "stunnel", so it can be a program name with args.
                   8576: set dummy stunnel; ac_word=$2
                   8577: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   8578: $as_echo_n "checking for $ac_word... " >&6; }
                   8579: if ${ac_cv_path_STUNNEL+:} false; then :
                   8580:   $as_echo_n "(cached) " >&6
                   8581: else
                   8582:   case $STUNNEL in
                   8583:   [\\/]* | ?:[\\/]*)
                   8584:   ac_cv_path_STUNNEL="$STUNNEL" # Let the user override the test with a path.
                   8585:   ;;
                   8586:   *)
                   8587:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8588: for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
                   8589: do
                   8590:   IFS=$as_save_IFS
                   8591:   test -z "$as_dir" && as_dir=.
                   8592:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho    8593:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.2   misho    8594:     ac_cv_path_STUNNEL="$as_dir/$ac_word$ac_exec_ext"
                   8595:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   8596:     break 2
                   8597:   fi
                   8598: done
                   8599:   done
                   8600: IFS=$as_save_IFS
                   8601: 
                   8602:   test -z "$ac_cv_path_STUNNEL" && ac_cv_path_STUNNEL="stunnel"
                   8603:   ;;
                   8604: esac
                   8605: fi
                   8606: STUNNEL=$ac_cv_path_STUNNEL
                   8607: if test -n "$STUNNEL"; then
                   8608:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STUNNEL" >&5
                   8609: $as_echo "$STUNNEL" >&6; }
                   8610: else
                   8611:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8612: $as_echo "no" >&6; }
                   8613: fi
                   8614: 
                   8615: 
                   8616: # Extract the first word of "stunnel4", so it can be a program name with args.
                   8617: set dummy stunnel4; ac_word=$2
                   8618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
                   8619: $as_echo_n "checking for $ac_word... " >&6; }
                   8620: if ${ac_cv_path_STUNNEL4+:} false; then :
                   8621:   $as_echo_n "(cached) " >&6
                   8622: else
                   8623:   case $STUNNEL4 in
                   8624:   [\\/]* | ?:[\\/]*)
                   8625:   ac_cv_path_STUNNEL4="$STUNNEL4" # Let the user override the test with a path.
                   8626:   ;;
                   8627:   *)
                   8628:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   8629: for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
                   8630: do
                   8631:   IFS=$as_save_IFS
                   8632:   test -z "$as_dir" && as_dir=.
                   8633:     for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.3 ! misho    8634:   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1.1.2   misho    8635:     ac_cv_path_STUNNEL4="$as_dir/$ac_word$ac_exec_ext"
                   8636:     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
                   8637:     break 2
                   8638:   fi
                   8639: done
                   8640:   done
                   8641: IFS=$as_save_IFS
                   8642: 
                   8643:   test -z "$ac_cv_path_STUNNEL4" && ac_cv_path_STUNNEL4="$STUNNEL"
                   8644:   ;;
                   8645: esac
                   8646: fi
                   8647: STUNNEL4=$ac_cv_path_STUNNEL4
                   8648: if test -n "$STUNNEL4"; then
                   8649:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STUNNEL4" >&5
                   8650: $as_echo "$STUNNEL4" >&6; }
                   8651: else
                   8652:   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8653: $as_echo "no" >&6; }
                   8654: fi
                   8655: 
                   8656: 
                   8657: 
1.1       misho    8658: for ac_func in _acl __acl _facl __facl
                   8659: do :
                   8660:   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   8661: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
                   8662: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
                   8663:   cat >>confdefs.h <<_ACEOF
                   8664: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   8665: _ACEOF
                   8666: 
                   8667: fi
                   8668: done
                   8669: 
                   8670: #################################################
                   8671: # check for ACL support
                   8672: 
                   8673: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ACLs" >&5
                   8674: $as_echo_n "checking whether to support ACLs... " >&6; }
                   8675: # Check whether --enable-acl-support was given.
                   8676: if test "${enable_acl_support+set}" = set; then :
                   8677:   enableval=$enable_acl_support;
                   8678: fi
                   8679: 
                   8680: 
                   8681: if test x"$enable_acl_support" = x"no"; then
                   8682:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8683: $as_echo "no" >&6; }
                   8684: else
                   8685:     case "$host_os" in
                   8686:     *sysv5*)
                   8687:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using UnixWare ACLs" >&5
                   8688: $as_echo "Using UnixWare ACLs" >&6; }
                   8689: 
                   8690: $as_echo "#define HAVE_UNIXWARE_ACLS 1" >>confdefs.h
                   8691: 
                   8692: 
                   8693: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
                   8694: 
                   8695:        ;;
1.1.1.2   misho    8696:     solaris*|*cygwin*)
1.1       misho    8697:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using solaris ACLs" >&5
                   8698: $as_echo "Using solaris ACLs" >&6; }
                   8699: 
                   8700: $as_echo "#define HAVE_SOLARIS_ACLS 1" >>confdefs.h
                   8701: 
                   8702:        $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
                   8703: 
                   8704:        ;;
                   8705:     *hpux*)
                   8706:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using HPUX ACLs" >&5
                   8707: $as_echo "Using HPUX ACLs" >&6; }
                   8708: 
                   8709: $as_echo "#define HAVE_HPUX_ACLS 1" >>confdefs.h
                   8710: 
                   8711:        $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
                   8712: 
                   8713:        ;;
                   8714:     *irix*)
                   8715:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using IRIX ACLs" >&5
                   8716: $as_echo "Using IRIX ACLs" >&6; }
                   8717: 
                   8718: $as_echo "#define HAVE_IRIX_ACLS 1" >>confdefs.h
                   8719: 
                   8720:        $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
                   8721: 
                   8722:        ;;
                   8723:     *aix*)
                   8724:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using AIX ACLs" >&5
                   8725: $as_echo "Using AIX ACLs" >&6; }
                   8726: 
                   8727: $as_echo "#define HAVE_AIX_ACLS 1" >>confdefs.h
                   8728: 
                   8729:        $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
                   8730: 
                   8731:        ;;
                   8732:     *osf*)
                   8733:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Tru64 ACLs" >&5
                   8734: $as_echo "Using Tru64 ACLs" >&6; }
                   8735: 
                   8736: $as_echo "#define HAVE_TRU64_ACLS 1" >>confdefs.h
                   8737: 
                   8738:        $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
                   8739: 
                   8740:        LIBS="$LIBS -lpacl"
                   8741:        ;;
                   8742:     darwin*)
                   8743:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS X ACLs" >&5
                   8744: $as_echo "Using OS X ACLs" >&6; }
                   8745: 
                   8746: $as_echo "#define HAVE_OSX_ACLS 1" >>confdefs.h
                   8747: 
                   8748:        $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
                   8749: 
                   8750:        ;;
                   8751:     *)
                   8752:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: running tests:" >&5
                   8753: $as_echo "running tests:" >&6; }
                   8754:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
                   8755: $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
                   8756: if ${ac_cv_lib_acl_acl_get_file+:} false; then :
                   8757:   $as_echo_n "(cached) " >&6
                   8758: else
                   8759:   ac_check_lib_save_LIBS=$LIBS
                   8760: LIBS="-lacl  $LIBS"
                   8761: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8762: /* end confdefs.h.  */
                   8763: 
                   8764: /* Override any GCC internal prototype to avoid an error.
                   8765:    Use char because int might match the return type of a GCC
                   8766:    builtin and then its argument prototype would still apply.  */
                   8767: #ifdef __cplusplus
                   8768: extern "C"
                   8769: #endif
                   8770: char acl_get_file ();
                   8771: int
                   8772: main ()
                   8773: {
                   8774: return acl_get_file ();
                   8775:   ;
                   8776:   return 0;
                   8777: }
                   8778: _ACEOF
                   8779: if ac_fn_c_try_link "$LINENO"; then :
                   8780:   ac_cv_lib_acl_acl_get_file=yes
                   8781: else
                   8782:   ac_cv_lib_acl_acl_get_file=no
                   8783: fi
                   8784: rm -f core conftest.err conftest.$ac_objext \
                   8785:     conftest$ac_exeext conftest.$ac_ext
                   8786: LIBS=$ac_check_lib_save_LIBS
                   8787: fi
                   8788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
                   8789: $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
                   8790: if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
                   8791:   cat >>confdefs.h <<_ACEOF
                   8792: #define HAVE_LIBACL 1
                   8793: _ACEOF
                   8794: 
                   8795:   LIBS="-lacl $LIBS"
                   8796: 
                   8797: fi
                   8798: 
1.1.1.3 ! misho    8799:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL support" >&5
1.1       misho    8800: $as_echo_n "checking for ACL support... " >&6; }
                   8801: if ${samba_cv_HAVE_POSIX_ACLS+:} false; then :
                   8802:   $as_echo_n "(cached) " >&6
                   8803: else
                   8804: 
                   8805:            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8806: /* end confdefs.h.  */
                   8807: #include <sys/types.h>
                   8808: #include <sys/acl.h>
                   8809: int
                   8810: main ()
                   8811: {
                   8812:  acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
                   8813:   ;
                   8814:   return 0;
                   8815: }
                   8816: _ACEOF
                   8817: if ac_fn_c_try_link "$LINENO"; then :
                   8818:   samba_cv_HAVE_POSIX_ACLS=yes
                   8819: else
                   8820:   samba_cv_HAVE_POSIX_ACLS=no
                   8821: fi
                   8822: rm -f core conftest.err conftest.$ac_objext \
                   8823:     conftest$ac_exeext conftest.$ac_ext
                   8824: fi
                   8825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $samba_cv_HAVE_POSIX_ACLS" >&5
                   8826: $as_echo "$samba_cv_HAVE_POSIX_ACLS" >&6; }
                   8827:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACL test results" >&5
                   8828: $as_echo_n "checking ACL test results... " >&6; }
                   8829:        if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
                   8830:            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using posix ACLs" >&5
                   8831: $as_echo "Using posix ACLs" >&6; }
                   8832: 
                   8833: $as_echo "#define HAVE_POSIX_ACLS 1" >>confdefs.h
                   8834: 
                   8835:            $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
                   8836: 
                   8837:            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_perm_np" >&5
                   8838: $as_echo_n "checking for acl_get_perm_np... " >&6; }
                   8839: if ${samba_cv_HAVE_ACL_GET_PERM_NP+:} false; then :
                   8840:   $as_echo_n "(cached) " >&6
                   8841: else
                   8842: 
                   8843:                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   8844: /* end confdefs.h.  */
                   8845: #include <sys/types.h>
                   8846: #include <sys/acl.h>
                   8847: int
                   8848: main ()
                   8849: {
                   8850:  acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
                   8851:   ;
                   8852:   return 0;
                   8853: }
                   8854: _ACEOF
                   8855: if ac_fn_c_try_link "$LINENO"; then :
                   8856:   samba_cv_HAVE_ACL_GET_PERM_NP=yes
                   8857: else
                   8858:   samba_cv_HAVE_ACL_GET_PERM_NP=no
                   8859: fi
                   8860: rm -f core conftest.err conftest.$ac_objext \
                   8861:     conftest$ac_exeext conftest.$ac_ext
                   8862: fi
                   8863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
                   8864: $as_echo "$samba_cv_HAVE_ACL_GET_PERM_NP" >&6; }
                   8865:            if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
                   8866: 
                   8867: $as_echo "#define HAVE_ACL_GET_PERM_NP 1" >>confdefs.h
                   8868: 
                   8869:            fi
                   8870:        else
                   8871:            if test x"$enable_acl_support" = x"yes"; then
                   8872:                as_fn_error $? "Failed to find ACL support" "$LINENO" 5
                   8873:            else
                   8874:                { $as_echo "$as_me:${as_lineno-$LINENO}: result: No ACL support found" >&5
                   8875: $as_echo "No ACL support found" >&6; }
                   8876:            fi
                   8877:        fi
                   8878:        ;;
                   8879:     esac
                   8880: fi
                   8881: 
                   8882: #################################################
                   8883: # check for extended attribute support
                   8884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support extended attributes" >&5
                   8885: $as_echo_n "checking whether to support extended attributes... " >&6; }
                   8886: # Check whether --enable-xattr-support was given.
                   8887: if test "${enable_xattr_support+set}" = set; then :
                   8888:   enableval=$enable_xattr_support;
                   8889: else
1.1.1.2   misho    8890:   case "$ac_cv_func_getxattr$ac_cv_func_extattr_get_link$ac_cv_func_attropen" in
1.1       misho    8891:        *yes*) enable_xattr_support=maybe ;;
                   8892:        *) enable_xattr_support=no ;;
                   8893:        esac
                   8894: fi
                   8895: 
                   8896: 
                   8897: if test x"$enable_xattr_support" = x"no"; then
                   8898:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
                   8899: $as_echo "no" >&6; }
                   8900: else
                   8901:     case "$host_os" in
1.1.1.3 ! misho    8902:     *linux*|*netbsd*)
1.1       misho    8903:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Linux xattrs" >&5
                   8904: $as_echo "Using Linux xattrs" >&6; }
                   8905: 
                   8906: $as_echo "#define HAVE_LINUX_XATTRS 1" >>confdefs.h
                   8907: 
                   8908:        $as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
                   8909: 
1.1.1.2   misho    8910: 
                   8911: $as_echo "#define NO_SYMLINK_USER_XATTRS 1" >>confdefs.h
                   8912: 
1.1.1.3 ! misho    8913:        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
        !          8914: $as_echo_n "checking for getxattr in -lattr... " >&6; }
        !          8915: if ${ac_cv_lib_attr_getxattr+:} false; then :
        !          8916:   $as_echo_n "(cached) " >&6
        !          8917: else
        !          8918:   ac_check_lib_save_LIBS=$LIBS
        !          8919: LIBS="-lattr  $LIBS"
        !          8920: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
        !          8921: /* end confdefs.h.  */
        !          8922: 
        !          8923: /* Override any GCC internal prototype to avoid an error.
        !          8924:    Use char because int might match the return type of a GCC
        !          8925:    builtin and then its argument prototype would still apply.  */
        !          8926: #ifdef __cplusplus
        !          8927: extern "C"
        !          8928: #endif
        !          8929: char getxattr ();
        !          8930: int
        !          8931: main ()
        !          8932: {
        !          8933: return getxattr ();
        !          8934:   ;
        !          8935:   return 0;
        !          8936: }
        !          8937: _ACEOF
        !          8938: if ac_fn_c_try_link "$LINENO"; then :
        !          8939:   ac_cv_lib_attr_getxattr=yes
        !          8940: else
        !          8941:   ac_cv_lib_attr_getxattr=no
        !          8942: fi
        !          8943: rm -f core conftest.err conftest.$ac_objext \
        !          8944:     conftest$ac_exeext conftest.$ac_ext
        !          8945: LIBS=$ac_check_lib_save_LIBS
        !          8946: fi
        !          8947: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
        !          8948: $as_echo "$ac_cv_lib_attr_getxattr" >&6; }
        !          8949: if test "x$ac_cv_lib_attr_getxattr" = xyes; then :
        !          8950:   cat >>confdefs.h <<_ACEOF
        !          8951: #define HAVE_LIBATTR 1
        !          8952: _ACEOF
        !          8953: 
        !          8954:   LIBS="-lattr $LIBS"
        !          8955: 
        !          8956: fi
        !          8957: 
1.1       misho    8958:        ;;
                   8959:     darwin*)
                   8960:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS X xattrs" >&5
                   8961: $as_echo "Using OS X xattrs" >&6; }
                   8962: 
                   8963: $as_echo "#define HAVE_OSX_XATTRS 1" >>confdefs.h
                   8964: 
                   8965:        $as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
                   8966: 
                   8967: 
                   8968: $as_echo "#define NO_DEVICE_XATTRS 1" >>confdefs.h
                   8969: 
                   8970: 
                   8971: $as_echo "#define NO_SPECIAL_XATTRS 1" >>confdefs.h
                   8972: 
                   8973:        ;;
                   8974:     freebsd*)
                   8975:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using FreeBSD extattrs" >&5
                   8976: $as_echo "Using FreeBSD extattrs" >&6; }
                   8977: 
                   8978: $as_echo "#define HAVE_FREEBSD_XATTRS 1" >>confdefs.h
                   8979: 
                   8980:        $as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
                   8981: 
                   8982:        ;;
                   8983:     solaris*)
1.1.1.2   misho    8984:        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Solaris xattrs" >&5
                   8985: $as_echo "Using Solaris xattrs" >&6; }
                   8986: 
                   8987: $as_echo "#define HAVE_SOLARIS_XATTRS 1" >>confdefs.h
                   8988: 
                   8989:        $as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
                   8990: 
1.1       misho    8991: 
                   8992: $as_echo "#define NO_SYMLINK_XATTRS 1" >>confdefs.h
                   8993: 
                   8994:        ;;
                   8995:     *)
                   8996:        if test x"$enable_xattr_support" = x"yes"; then
                   8997:            as_fn_error $? "Failed to find extended attribute support" "$LINENO" 5
                   8998:        else
                   8999:            { $as_echo "$as_me:${as_lineno-$LINENO}: result: No extended attribute support found" >&5
                   9000: $as_echo "No extended attribute support found" >&6; }
                   9001:        fi
                   9002:        ;;
                   9003:     esac
                   9004: fi
                   9005: 
                   9006: if test x"$enable_acl_support" = x"no" -o x"$enable_xattr_support" = x"no" -o x"$enable_iconv" = x"no"; then
                   9007:     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
                   9008: $as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
                   9009:     OLD_CFLAGS="$CFLAGS"
                   9010:     CFLAGS="$CFLAGS -Wno-unused-parameter"
                   9011:     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
                   9012: /* end confdefs.h.  */
                   9013: #include <stdio.h>
                   9014: int
                   9015: main ()
                   9016: {
                   9017: printf("hello\n");
                   9018:   ;
                   9019:   return 0;
                   9020: }
                   9021: _ACEOF
                   9022: if ac_fn_c_try_link "$LINENO"; then :
                   9023:   rsync_warn_flag=yes
                   9024: else
                   9025:   rsync_warn_flag=no
                   9026: fi
                   9027: rm -f core conftest.err conftest.$ac_objext \
                   9028:     conftest$ac_exeext conftest.$ac_ext
                   9029:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_warn_flag" >&5
                   9030: $as_echo "$rsync_warn_flag" >&6; }
                   9031:     if test x"$rsync_warn_flag" = x"no"; then
                   9032:        CFLAGS="$OLD_CFLAGS"
                   9033:     fi
                   9034: fi
                   9035: 
                   9036: case "$CC" in
                   9037: ' checker'*|checker*)
                   9038: 
                   9039: $as_echo "#define FORCE_FD_ZERO_MEMSET 1" >>confdefs.h
                   9040: 
                   9041:     ;;
                   9042: esac
                   9043: 
                   9044: ac_config_files="$ac_config_files Makefile lib/dummy zlib/dummy popt/dummy shconfig"
                   9045: 
                   9046: cat >confcache <<\_ACEOF
                   9047: # This file is a shell script that caches the results of configure
                   9048: # tests run on this system so they can be shared between configure
                   9049: # scripts and configure runs, see configure's option --config-cache.
                   9050: # It is not useful on other systems.  If it contains results you don't
                   9051: # want to keep, you may remove or edit it.
                   9052: #
                   9053: # config.status only pays attention to the cache file if you give it
                   9054: # the --recheck option to rerun configure.
                   9055: #
                   9056: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   9057: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   9058: # following values.
                   9059: 
                   9060: _ACEOF
                   9061: 
                   9062: # The following way of writing the cache mishandles newlines in values,
                   9063: # but we know of no workaround that is simple, portable, and efficient.
                   9064: # So, we kill variables containing newlines.
                   9065: # Ultrix sh set writes to stderr and can't be redirected directly,
                   9066: # and sets the high bit in the cache file unless we assign to the vars.
                   9067: (
                   9068:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   9069:     eval ac_val=\$$ac_var
                   9070:     case $ac_val in #(
                   9071:     *${as_nl}*)
                   9072:       case $ac_var in #(
                   9073:       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
                   9074: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
                   9075:       esac
                   9076:       case $ac_var in #(
                   9077:       _ | IFS | as_nl) ;; #(
                   9078:       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
                   9079:       *) { eval $ac_var=; unset $ac_var;} ;;
                   9080:       esac ;;
                   9081:     esac
                   9082:   done
                   9083: 
                   9084:   (set) 2>&1 |
                   9085:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   9086:     *${as_nl}ac_space=\ *)
                   9087:       # `set' does not quote correctly, so add quotes: double-quote
                   9088:       # substitution turns \\\\ into \\, and sed turns \\ into \.
                   9089:       sed -n \
                   9090:        "s/'/'\\\\''/g;
                   9091:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   9092:       ;; #(
                   9093:     *)
                   9094:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   9095:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   9096:       ;;
                   9097:     esac |
                   9098:     sort
                   9099: ) |
                   9100:   sed '
                   9101:      /^ac_cv_env_/b end
                   9102:      t clear
                   9103:      :clear
                   9104:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   9105:      t end
                   9106:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   9107:      :end' >>confcache
                   9108: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   9109:   if test -w "$cache_file"; then
                   9110:     if test "x$cache_file" != "x/dev/null"; then
                   9111:       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
                   9112: $as_echo "$as_me: updating cache $cache_file" >&6;}
                   9113:       if test ! -f "$cache_file" || test -h "$cache_file"; then
                   9114:        cat confcache >"$cache_file"
                   9115:       else
                   9116:         case $cache_file in #(
                   9117:         */* | ?:*)
                   9118:          mv -f confcache "$cache_file"$$ &&
                   9119:          mv -f "$cache_file"$$ "$cache_file" ;; #(
                   9120:         *)
                   9121:          mv -f confcache "$cache_file" ;;
                   9122:        esac
                   9123:       fi
                   9124:     fi
                   9125:   else
                   9126:     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
                   9127: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
                   9128:   fi
                   9129: fi
                   9130: rm -f confcache
                   9131: 
                   9132: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   9133: # Let make expand exec_prefix.
                   9134: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   9135: 
                   9136: DEFS=-DHAVE_CONFIG_H
                   9137: 
                   9138: ac_libobjs=
                   9139: ac_ltlibobjs=
                   9140: U=
                   9141: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   9142:   # 1. Remove the extension, and $U if already installed.
                   9143:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
                   9144:   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
                   9145:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   9146:   #    will be set to the directory where LIBOBJS objects are built.
                   9147:   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   9148:   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
                   9149: done
                   9150: LIBOBJS=$ac_libobjs
                   9151: 
                   9152: LTLIBOBJS=$ac_ltlibobjs
                   9153: 
                   9154: 
                   9155: 
                   9156: 
                   9157: : "${CONFIG_STATUS=./config.status}"
                   9158: ac_write_fail=0
                   9159: ac_clean_files_save=$ac_clean_files
                   9160: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
                   9161: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
                   9162: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   9163: as_write_fail=0
                   9164: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
                   9165: #! $SHELL
                   9166: # Generated by $as_me.
                   9167: # Run this file to recreate the current configuration.
                   9168: # Compiler output produced by configure, useful for debugging
                   9169: # configure, is in config.log if it exists.
                   9170: 
                   9171: debug=false
                   9172: ac_cs_recheck=false
                   9173: ac_cs_silent=false
                   9174: 
                   9175: SHELL=\${CONFIG_SHELL-$SHELL}
                   9176: export SHELL
                   9177: _ASEOF
                   9178: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
                   9179: ## -------------------- ##
                   9180: ## M4sh Initialization. ##
                   9181: ## -------------------- ##
                   9182: 
                   9183: # Be more Bourne compatible
                   9184: DUALCASE=1; export DUALCASE # for MKS sh
                   9185: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
                   9186:   emulate sh
                   9187:   NULLCMD=:
                   9188:   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
                   9189:   # is contrary to our usage.  Disable this feature.
                   9190:   alias -g '${1+"$@"}'='"$@"'
                   9191:   setopt NO_GLOB_SUBST
                   9192: else
                   9193:   case `(set -o) 2>/dev/null` in #(
                   9194:   *posix*) :
                   9195:     set -o posix ;; #(
                   9196:   *) :
                   9197:      ;;
                   9198: esac
                   9199: fi
                   9200: 
                   9201: 
                   9202: as_nl='
                   9203: '
                   9204: export as_nl
                   9205: # Printing a long string crashes Solaris 7 /usr/bin/printf.
                   9206: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
                   9207: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
                   9208: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
                   9209: # Prefer a ksh shell builtin over an external printf program on Solaris,
                   9210: # but without wasting forks for bash or zsh.
                   9211: if test -z "$BASH_VERSION$ZSH_VERSION" \
                   9212:     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9213:   as_echo='print -r --'
                   9214:   as_echo_n='print -rn --'
                   9215: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
                   9216:   as_echo='printf %s\n'
                   9217:   as_echo_n='printf %s'
                   9218: else
                   9219:   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
                   9220:     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
                   9221:     as_echo_n='/usr/ucb/echo -n'
                   9222:   else
                   9223:     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
                   9224:     as_echo_n_body='eval
                   9225:       arg=$1;
                   9226:       case $arg in #(
                   9227:       *"$as_nl"*)
                   9228:        expr "X$arg" : "X\\(.*\\)$as_nl";
                   9229:        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
                   9230:       esac;
                   9231:       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
                   9232:     '
                   9233:     export as_echo_n_body
                   9234:     as_echo_n='sh -c $as_echo_n_body as_echo'
                   9235:   fi
                   9236:   export as_echo_body
                   9237:   as_echo='sh -c $as_echo_body as_echo'
                   9238: fi
                   9239: 
                   9240: # The user is always right.
                   9241: if test "${PATH_SEPARATOR+set}" != set; then
                   9242:   PATH_SEPARATOR=:
                   9243:   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
                   9244:     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
                   9245:       PATH_SEPARATOR=';'
                   9246:   }
                   9247: fi
                   9248: 
                   9249: 
                   9250: # IFS
                   9251: # We need space, tab and new line, in precisely that order.  Quoting is
                   9252: # there to prevent editors from complaining about space-tab.
                   9253: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   9254: # splitting by setting IFS to empty value.)
                   9255: IFS=" ""       $as_nl"
                   9256: 
                   9257: # Find who we are.  Look in the path if we contain no directory separator.
                   9258: as_myself=
                   9259: case $0 in #((
                   9260:   *[\\/]* ) as_myself=$0 ;;
                   9261:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   9262: for as_dir in $PATH
                   9263: do
                   9264:   IFS=$as_save_IFS
                   9265:   test -z "$as_dir" && as_dir=.
                   9266:     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   9267:   done
                   9268: IFS=$as_save_IFS
                   9269: 
                   9270:      ;;
                   9271: esac
                   9272: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   9273: # in which case we are not to be found in the path.
                   9274: if test "x$as_myself" = x; then
                   9275:   as_myself=$0
                   9276: fi
                   9277: if test ! -f "$as_myself"; then
                   9278:   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   9279:   exit 1
                   9280: fi
                   9281: 
                   9282: # Unset variables that we do not need and which cause bugs (e.g. in
                   9283: # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
                   9284: # suppresses any "Segmentation fault" message there.  '((' could
                   9285: # trigger a bug in pdksh 5.2.14.
                   9286: for as_var in BASH_ENV ENV MAIL MAILPATH
                   9287: do eval test x\${$as_var+set} = xset \
                   9288:   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
                   9289: done
                   9290: PS1='$ '
                   9291: PS2='> '
                   9292: PS4='+ '
                   9293: 
                   9294: # NLS nuisances.
                   9295: LC_ALL=C
                   9296: export LC_ALL
                   9297: LANGUAGE=C
                   9298: export LANGUAGE
                   9299: 
                   9300: # CDPATH.
                   9301: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
                   9302: 
                   9303: 
                   9304: # as_fn_error STATUS ERROR [LINENO LOG_FD]
                   9305: # ----------------------------------------
                   9306: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
                   9307: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
                   9308: # script with STATUS, using 1 if that was 0.
                   9309: as_fn_error ()
                   9310: {
                   9311:   as_status=$1; test $as_status -eq 0 && as_status=1
                   9312:   if test "$4"; then
                   9313:     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
                   9314:     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
                   9315:   fi
                   9316:   $as_echo "$as_me: error: $2" >&2
                   9317:   as_fn_exit $as_status
                   9318: } # as_fn_error
                   9319: 
                   9320: 
                   9321: # as_fn_set_status STATUS
                   9322: # -----------------------
                   9323: # Set $? to STATUS, without forking.
                   9324: as_fn_set_status ()
                   9325: {
                   9326:   return $1
                   9327: } # as_fn_set_status
                   9328: 
                   9329: # as_fn_exit STATUS
                   9330: # -----------------
                   9331: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
                   9332: as_fn_exit ()
                   9333: {
                   9334:   set +e
                   9335:   as_fn_set_status $1
                   9336:   exit $1
                   9337: } # as_fn_exit
                   9338: 
                   9339: # as_fn_unset VAR
                   9340: # ---------------
                   9341: # Portably unset VAR.
                   9342: as_fn_unset ()
                   9343: {
                   9344:   { eval $1=; unset $1;}
                   9345: }
                   9346: as_unset=as_fn_unset
                   9347: # as_fn_append VAR VALUE
                   9348: # ----------------------
                   9349: # Append the text in VALUE to the end of the definition contained in VAR. Take
                   9350: # advantage of any shell optimizations that allow amortized linear growth over
                   9351: # repeated appends, instead of the typical quadratic growth present in naive
                   9352: # implementations.
                   9353: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
                   9354:   eval 'as_fn_append ()
                   9355:   {
                   9356:     eval $1+=\$2
                   9357:   }'
                   9358: else
                   9359:   as_fn_append ()
                   9360:   {
                   9361:     eval $1=\$$1\$2
                   9362:   }
                   9363: fi # as_fn_append
                   9364: 
                   9365: # as_fn_arith ARG...
                   9366: # ------------------
                   9367: # Perform arithmetic evaluation on the ARGs, and store the result in the
                   9368: # global $as_val. Take advantage of shells that can avoid forks. The arguments
                   9369: # must be portable across $(()) and expr.
                   9370: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
                   9371:   eval 'as_fn_arith ()
                   9372:   {
                   9373:     as_val=$(( $* ))
                   9374:   }'
                   9375: else
                   9376:   as_fn_arith ()
                   9377:   {
                   9378:     as_val=`expr "$@" || test $? -eq 1`
                   9379:   }
                   9380: fi # as_fn_arith
                   9381: 
                   9382: 
                   9383: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   9384:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   9385:   as_expr=expr
                   9386: else
                   9387:   as_expr=false
                   9388: fi
                   9389: 
                   9390: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   9391:   as_basename=basename
                   9392: else
                   9393:   as_basename=false
                   9394: fi
                   9395: 
                   9396: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   9397:   as_dirname=dirname
                   9398: else
                   9399:   as_dirname=false
                   9400: fi
                   9401: 
                   9402: as_me=`$as_basename -- "$0" ||
                   9403: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   9404:         X"$0" : 'X\(//\)$' \| \
                   9405:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                   9406: $as_echo X/"$0" |
                   9407:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   9408:            s//\1/
                   9409:            q
                   9410:          }
                   9411:          /^X\/\(\/\/\)$/{
                   9412:            s//\1/
                   9413:            q
                   9414:          }
                   9415:          /^X\/\(\/\).*/{
                   9416:            s//\1/
                   9417:            q
                   9418:          }
                   9419:          s/.*/./; q'`
                   9420: 
                   9421: # Avoid depending upon Character Ranges.
                   9422: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   9423: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   9424: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   9425: as_cr_digits='0123456789'
                   9426: as_cr_alnum=$as_cr_Letters$as_cr_digits
                   9427: 
                   9428: ECHO_C= ECHO_N= ECHO_T=
                   9429: case `echo -n x` in #(((((
                   9430: -n*)
                   9431:   case `echo 'xy\c'` in
                   9432:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                   9433:   xy)  ECHO_C='\c';;
                   9434:   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
                   9435:        ECHO_T='        ';;
                   9436:   esac;;
                   9437: *)
                   9438:   ECHO_N='-n';;
                   9439: esac
                   9440: 
                   9441: rm -f conf$$ conf$$.exe conf$$.file
                   9442: if test -d conf$$.dir; then
                   9443:   rm -f conf$$.dir/conf$$.file
                   9444: else
                   9445:   rm -f conf$$.dir
                   9446:   mkdir conf$$.dir 2>/dev/null
                   9447: fi
                   9448: if (echo >conf$$.file) 2>/dev/null; then
                   9449:   if ln -s conf$$.file conf$$ 2>/dev/null; then
                   9450:     as_ln_s='ln -s'
                   9451:     # ... but there are two gotchas:
                   9452:     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   9453:     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.3 ! misho    9454:     # In both cases, we have to default to `cp -pR'.
1.1       misho    9455:     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.3 ! misho    9456:       as_ln_s='cp -pR'
1.1       misho    9457:   elif ln conf$$.file conf$$ 2>/dev/null; then
                   9458:     as_ln_s=ln
                   9459:   else
1.1.1.3 ! misho    9460:     as_ln_s='cp -pR'
1.1       misho    9461:   fi
                   9462: else
1.1.1.3 ! misho    9463:   as_ln_s='cp -pR'
1.1       misho    9464: fi
                   9465: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   9466: rmdir conf$$.dir 2>/dev/null
                   9467: 
                   9468: 
                   9469: # as_fn_mkdir_p
                   9470: # -------------
                   9471: # Create "$as_dir" as a directory, including parents if necessary.
                   9472: as_fn_mkdir_p ()
                   9473: {
                   9474: 
                   9475:   case $as_dir in #(
                   9476:   -*) as_dir=./$as_dir;;
                   9477:   esac
                   9478:   test -d "$as_dir" || eval $as_mkdir_p || {
                   9479:     as_dirs=
                   9480:     while :; do
                   9481:       case $as_dir in #(
                   9482:       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
                   9483:       *) as_qdir=$as_dir;;
                   9484:       esac
                   9485:       as_dirs="'$as_qdir' $as_dirs"
                   9486:       as_dir=`$as_dirname -- "$as_dir" ||
                   9487: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   9488:         X"$as_dir" : 'X\(//\)[^/]' \| \
                   9489:         X"$as_dir" : 'X\(//\)$' \| \
                   9490:         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   9491: $as_echo X"$as_dir" |
                   9492:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   9493:            s//\1/
                   9494:            q
                   9495:          }
                   9496:          /^X\(\/\/\)[^/].*/{
                   9497:            s//\1/
                   9498:            q
                   9499:          }
                   9500:          /^X\(\/\/\)$/{
                   9501:            s//\1/
                   9502:            q
                   9503:          }
                   9504:          /^X\(\/\).*/{
                   9505:            s//\1/
                   9506:            q
                   9507:          }
                   9508:          s/.*/./; q'`
                   9509:       test -d "$as_dir" && break
                   9510:     done
                   9511:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                   9512:   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
                   9513: 
                   9514: 
                   9515: } # as_fn_mkdir_p
                   9516: if mkdir -p . 2>/dev/null; then
                   9517:   as_mkdir_p='mkdir -p "$as_dir"'
                   9518: else
                   9519:   test -d ./-p && rmdir ./-p
                   9520:   as_mkdir_p=false
                   9521: fi
                   9522: 
1.1.1.3 ! misho    9523: 
        !          9524: # as_fn_executable_p FILE
        !          9525: # -----------------------
        !          9526: # Test if FILE is an executable regular file.
        !          9527: as_fn_executable_p ()
        !          9528: {
        !          9529:   test -f "$1" && test -x "$1"
        !          9530: } # as_fn_executable_p
        !          9531: as_test_x='test -x'
        !          9532: as_executable_p=as_fn_executable_p
1.1       misho    9533: 
                   9534: # Sed expression to map a string onto a valid CPP name.
                   9535: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
                   9536: 
                   9537: # Sed expression to map a string onto a valid variable name.
                   9538: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
                   9539: 
                   9540: 
                   9541: exec 6>&1
                   9542: ## ----------------------------------- ##
                   9543: ## Main body of $CONFIG_STATUS script. ##
                   9544: ## ----------------------------------- ##
                   9545: _ASEOF
                   9546: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
                   9547: 
                   9548: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9549: # Save the log message, to keep $0 and so on meaningful, and to
                   9550: # report actual input values of CONFIG_FILES etc. instead of their
                   9551: # values after options handling.
                   9552: ac_log="
1.1.1.3 ! misho    9553: This file was extended by rsync $as_me 3.1.2, which was
        !          9554: generated by GNU Autoconf 2.69.  Invocation command line was
1.1       misho    9555: 
                   9556:   CONFIG_FILES    = $CONFIG_FILES
                   9557:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   9558:   CONFIG_LINKS    = $CONFIG_LINKS
                   9559:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   9560:   $ $0 $@
                   9561: 
                   9562: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   9563: "
                   9564: 
                   9565: _ACEOF
                   9566: 
                   9567: case $ac_config_files in *"
                   9568: "*) set x $ac_config_files; shift; ac_config_files=$*;;
                   9569: esac
                   9570: 
                   9571: case $ac_config_headers in *"
                   9572: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
                   9573: esac
                   9574: 
                   9575: 
                   9576: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9577: # Files that config.status was made for.
                   9578: config_files="$ac_config_files"
                   9579: config_headers="$ac_config_headers"
                   9580: 
                   9581: _ACEOF
                   9582: 
                   9583: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9584: ac_cs_usage="\
                   9585: \`$as_me' instantiates files and other configuration actions
                   9586: from templates according to the current configuration.  Unless the files
                   9587: and actions are specified as TAGs, all are instantiated by default.
                   9588: 
                   9589: Usage: $0 [OPTION]... [TAG]...
                   9590: 
                   9591:   -h, --help       print this help, then exit
                   9592:   -V, --version    print version number and configuration settings, then exit
                   9593:       --config     print configuration, then exit
                   9594:   -q, --quiet, --silent
                   9595:                    do not print progress messages
                   9596:   -d, --debug      don't remove temporary files
                   9597:       --recheck    update $as_me by reconfiguring in the same conditions
                   9598:       --file=FILE[:TEMPLATE]
                   9599:                    instantiate the configuration file FILE
                   9600:       --header=FILE[:TEMPLATE]
                   9601:                    instantiate the configuration header FILE
                   9602: 
                   9603: Configuration files:
                   9604: $config_files
                   9605: 
                   9606: Configuration headers:
                   9607: $config_headers
                   9608: 
1.1.1.3 ! misho    9609: Report bugs to <http://rsync.samba.org/bugzilla.html>."
1.1       misho    9610: 
                   9611: _ACEOF
                   9612: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9613: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
                   9614: ac_cs_version="\\
1.1.1.3 ! misho    9615: rsync config.status 3.1.2
        !          9616: configured by $0, generated by GNU Autoconf 2.69,
1.1       misho    9617:   with options \\"\$ac_cs_config\\"
                   9618: 
1.1.1.3 ! misho    9619: Copyright (C) 2012 Free Software Foundation, Inc.
1.1       misho    9620: This config.status script is free software; the Free Software Foundation
                   9621: gives unlimited permission to copy, distribute and modify it."
                   9622: 
                   9623: ac_pwd='$ac_pwd'
                   9624: srcdir='$srcdir'
                   9625: INSTALL='$INSTALL'
1.1.1.2   misho    9626: MKDIR_P='$MKDIR_P'
1.1       misho    9627: test -n "\$AWK" || AWK=awk
                   9628: _ACEOF
                   9629: 
                   9630: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9631: # The default lists apply if the user does not specify any file.
                   9632: ac_need_defaults=:
                   9633: while test $# != 0
                   9634: do
                   9635:   case $1 in
                   9636:   --*=?*)
                   9637:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   9638:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   9639:     ac_shift=:
                   9640:     ;;
                   9641:   --*=)
                   9642:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   9643:     ac_optarg=
                   9644:     ac_shift=:
                   9645:     ;;
                   9646:   *)
                   9647:     ac_option=$1
                   9648:     ac_optarg=$2
                   9649:     ac_shift=shift
                   9650:     ;;
                   9651:   esac
                   9652: 
                   9653:   case $ac_option in
                   9654:   # Handling of the options.
                   9655:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   9656:     ac_cs_recheck=: ;;
                   9657:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
                   9658:     $as_echo "$ac_cs_version"; exit ;;
                   9659:   --config | --confi | --conf | --con | --co | --c )
                   9660:     $as_echo "$ac_cs_config"; exit ;;
                   9661:   --debug | --debu | --deb | --de | --d | -d )
                   9662:     debug=: ;;
                   9663:   --file | --fil | --fi | --f )
                   9664:     $ac_shift
                   9665:     case $ac_optarg in
                   9666:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   9667:     '') as_fn_error $? "missing file argument" ;;
                   9668:     esac
                   9669:     as_fn_append CONFIG_FILES " '$ac_optarg'"
                   9670:     ac_need_defaults=false;;
                   9671:   --header | --heade | --head | --hea )
                   9672:     $ac_shift
                   9673:     case $ac_optarg in
                   9674:     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   9675:     esac
                   9676:     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
                   9677:     ac_need_defaults=false;;
                   9678:   --he | --h)
                   9679:     # Conflict between --help and --header
                   9680:     as_fn_error $? "ambiguous option: \`$1'
                   9681: Try \`$0 --help' for more information.";;
                   9682:   --help | --hel | -h )
                   9683:     $as_echo "$ac_cs_usage"; exit ;;
                   9684:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   9685:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   9686:     ac_cs_silent=: ;;
                   9687: 
                   9688:   # This is an error.
                   9689:   -*) as_fn_error $? "unrecognized option: \`$1'
                   9690: Try \`$0 --help' for more information." ;;
                   9691: 
                   9692:   *) as_fn_append ac_config_targets " $1"
                   9693:      ac_need_defaults=false ;;
                   9694: 
                   9695:   esac
                   9696:   shift
                   9697: done
                   9698: 
                   9699: ac_configure_extra_args=
                   9700: 
                   9701: if $ac_cs_silent; then
                   9702:   exec 6>/dev/null
                   9703:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   9704: fi
                   9705: 
                   9706: _ACEOF
                   9707: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9708: if \$ac_cs_recheck; then
1.1.1.3 ! misho    9709:   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1       misho    9710:   shift
                   9711:   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
                   9712:   CONFIG_SHELL='$SHELL'
                   9713:   export CONFIG_SHELL
                   9714:   exec "\$@"
                   9715: fi
                   9716: 
                   9717: _ACEOF
                   9718: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9719: exec 5>>config.log
                   9720: {
                   9721:   echo
                   9722:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   9723: ## Running $as_me. ##
                   9724: _ASBOX
                   9725:   $as_echo "$ac_log"
                   9726: } >&5
                   9727: 
                   9728: _ACEOF
                   9729: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9730: _ACEOF
                   9731: 
                   9732: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9733: 
                   9734: # Handling of arguments.
                   9735: for ac_config_target in $ac_config_targets
                   9736: do
                   9737:   case $ac_config_target in
                   9738:     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
                   9739:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   9740:     "lib/dummy") CONFIG_FILES="$CONFIG_FILES lib/dummy" ;;
                   9741:     "zlib/dummy") CONFIG_FILES="$CONFIG_FILES zlib/dummy" ;;
                   9742:     "popt/dummy") CONFIG_FILES="$CONFIG_FILES popt/dummy" ;;
                   9743:     "shconfig") CONFIG_FILES="$CONFIG_FILES shconfig" ;;
                   9744: 
                   9745:   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
                   9746:   esac
                   9747: done
                   9748: 
                   9749: 
                   9750: # If the user did not use the arguments to specify the items to instantiate,
                   9751: # then the envvar interface is used.  Set only those that are not.
                   9752: # We use the long form for the default assignment because of an extremely
                   9753: # bizarre bug on SunOS 4.1.3.
                   9754: if $ac_need_defaults; then
                   9755:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   9756:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   9757: fi
                   9758: 
                   9759: # Have a temporary directory for convenience.  Make it in the build tree
                   9760: # simply because there is no reason against having it here, and in addition,
                   9761: # creating and moving files from /tmp can sometimes cause problems.
                   9762: # Hook for its removal unless debugging.
                   9763: # Note that there is a small window in which the directory will not be cleaned:
                   9764: # after its creation but before its name has been assigned to `$tmp'.
                   9765: $debug ||
                   9766: {
                   9767:   tmp= ac_tmp=
                   9768:   trap 'exit_status=$?
                   9769:   : "${ac_tmp:=$tmp}"
                   9770:   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
                   9771: ' 0
                   9772:   trap 'as_fn_exit 1' 1 2 13 15
                   9773: }
                   9774: # Create a (secure) tmp directory for tmp files.
                   9775: 
                   9776: {
                   9777:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
                   9778:   test -d "$tmp"
                   9779: }  ||
                   9780: {
                   9781:   tmp=./conf$$-$RANDOM
                   9782:   (umask 077 && mkdir "$tmp")
                   9783: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
                   9784: ac_tmp=$tmp
                   9785: 
                   9786: # Set up the scripts for CONFIG_FILES section.
                   9787: # No need to generate them if there are no CONFIG_FILES.
                   9788: # This happens for instance with `./config.status config.h'.
                   9789: if test -n "$CONFIG_FILES"; then
                   9790: 
                   9791: 
                   9792: ac_cr=`echo X | tr X '\015'`
                   9793: # On cygwin, bash can eat \r inside `` if the user requested igncr.
                   9794: # But we know of no other shell where ac_cr would be empty at this
                   9795: # point, so we can use a bashism as a fallback.
                   9796: if test "x$ac_cr" = x; then
                   9797:   eval ac_cr=\$\'\\r\'
                   9798: fi
                   9799: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
                   9800: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
                   9801:   ac_cs_awk_cr='\\r'
                   9802: else
                   9803:   ac_cs_awk_cr=$ac_cr
                   9804: fi
                   9805: 
                   9806: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
                   9807: _ACEOF
                   9808: 
                   9809: 
                   9810: {
                   9811:   echo "cat >conf$$subs.awk <<_ACEOF" &&
                   9812:   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
                   9813:   echo "_ACEOF"
                   9814: } >conf$$subs.sh ||
                   9815:   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   9816: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
                   9817: ac_delim='%!_!# '
                   9818: for ac_last_try in false false false false false :; do
                   9819:   . ./conf$$subs.sh ||
                   9820:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   9821: 
                   9822:   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
                   9823:   if test $ac_delim_n = $ac_delim_num; then
                   9824:     break
                   9825:   elif $ac_last_try; then
                   9826:     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
                   9827:   else
                   9828:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   9829:   fi
                   9830: done
                   9831: rm -f conf$$subs.sh
                   9832: 
                   9833: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9834: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
                   9835: _ACEOF
                   9836: sed -n '
                   9837: h
                   9838: s/^/S["/; s/!.*/"]=/
                   9839: p
                   9840: g
                   9841: s/^[^!]*!//
                   9842: :repl
                   9843: t repl
                   9844: s/'"$ac_delim"'$//
                   9845: t delim
                   9846: :nl
                   9847: h
                   9848: s/\(.\{148\}\)..*/\1/
                   9849: t more1
                   9850: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
                   9851: p
                   9852: n
                   9853: b repl
                   9854: :more1
                   9855: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   9856: p
                   9857: g
                   9858: s/.\{148\}//
                   9859: t nl
                   9860: :delim
                   9861: h
                   9862: s/\(.\{148\}\)..*/\1/
                   9863: t more2
                   9864: s/["\\]/\\&/g; s/^/"/; s/$/"/
                   9865: p
                   9866: b
                   9867: :more2
                   9868: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
                   9869: p
                   9870: g
                   9871: s/.\{148\}//
                   9872: t delim
                   9873: ' <conf$$subs.awk | sed '
                   9874: /^[^""]/{
                   9875:   N
                   9876:   s/\n//
                   9877: }
                   9878: ' >>$CONFIG_STATUS || ac_write_fail=1
                   9879: rm -f conf$$subs.awk
                   9880: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   9881: _ACAWK
                   9882: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
                   9883:   for (key in S) S_is_set[key] = 1
                   9884:   FS = ""
                   9885: 
                   9886: }
                   9887: {
                   9888:   line = $ 0
                   9889:   nfields = split(line, field, "@")
                   9890:   substed = 0
                   9891:   len = length(field[1])
                   9892:   for (i = 2; i < nfields; i++) {
                   9893:     key = field[i]
                   9894:     keylen = length(key)
                   9895:     if (S_is_set[key]) {
                   9896:       value = S[key]
                   9897:       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
                   9898:       len += length(value) + length(field[++i])
                   9899:       substed = 1
                   9900:     } else
                   9901:       len += 1 + keylen
                   9902:   }
                   9903: 
                   9904:   print line
                   9905: }
                   9906: 
                   9907: _ACAWK
                   9908: _ACEOF
                   9909: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9910: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
                   9911:   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
                   9912: else
                   9913:   cat
                   9914: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
                   9915:   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
                   9916: _ACEOF
                   9917: 
                   9918: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
                   9919: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
                   9920: # trailing colons and then remove the whole line if VPATH becomes empty
                   9921: # (actually we leave an empty line to preserve line numbers).
                   9922: if test "x$srcdir" = x.; then
                   9923:   ac_vpsub='/^[         ]*VPATH[        ]*=[    ]*/{
                   9924: h
                   9925: s///
                   9926: s/^/:/
                   9927: s/[     ]*$/:/
                   9928: s/:\$(srcdir):/:/g
                   9929: s/:\${srcdir}:/:/g
                   9930: s/:@srcdir@:/:/g
                   9931: s/^:*//
                   9932: s/:*$//
                   9933: x
                   9934: s/\(=[  ]*\).*/\1/
                   9935: G
                   9936: s/\n//
                   9937: s/^[^=]*=[      ]*$//
                   9938: }'
                   9939: fi
                   9940: 
                   9941: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   9942: fi # test -n "$CONFIG_FILES"
                   9943: 
                   9944: # Set up the scripts for CONFIG_HEADERS section.
                   9945: # No need to generate them if there are no CONFIG_HEADERS.
                   9946: # This happens for instance with `./config.status Makefile'.
                   9947: if test -n "$CONFIG_HEADERS"; then
                   9948: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
                   9949: BEGIN {
                   9950: _ACEOF
                   9951: 
                   9952: # Transform confdefs.h into an awk script `defines.awk', embedded as
                   9953: # here-document in config.status, that substitutes the proper values into
                   9954: # config.h.in to produce config.h.
                   9955: 
                   9956: # Create a delimiter string that does not exist in confdefs.h, to ease
                   9957: # handling of long lines.
                   9958: ac_delim='%!_!# '
                   9959: for ac_last_try in false false :; do
                   9960:   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
                   9961:   if test -z "$ac_tt"; then
                   9962:     break
                   9963:   elif $ac_last_try; then
                   9964:     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
                   9965:   else
                   9966:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   9967:   fi
                   9968: done
                   9969: 
                   9970: # For the awk script, D is an array of macro values keyed by name,
                   9971: # likewise P contains macro parameters if any.  Preserve backslash
                   9972: # newline sequences.
                   9973: 
                   9974: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   9975: sed -n '
                   9976: s/.\{148\}/&'"$ac_delim"'/g
                   9977: t rset
                   9978: :rset
                   9979: s/^[    ]*#[    ]*define[       ][      ]*/ /
                   9980: t def
                   9981: d
                   9982: :def
                   9983: s/\\$//
                   9984: t bsnl
                   9985: s/["\\]/\\&/g
                   9986: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   9987: D["\1"]=" \3"/p
                   9988: s/^ \('"$ac_word_re"'\)[        ]*\(.*\)/D["\1"]=" \2"/p
                   9989: d
                   9990: :bsnl
                   9991: s/["\\]/\\&/g
                   9992: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
                   9993: D["\1"]=" \3\\\\\\n"\\/p
                   9994: t cont
                   9995: s/^ \('"$ac_word_re"'\)[        ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
                   9996: t cont
                   9997: d
                   9998: :cont
                   9999: n
                   10000: s/.\{148\}/&'"$ac_delim"'/g
                   10001: t clear
                   10002: :clear
                   10003: s/\\$//
                   10004: t bsnlc
                   10005: s/["\\]/\\&/g; s/^/"/; s/$/"/p
                   10006: d
                   10007: :bsnlc
                   10008: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
                   10009: b cont
                   10010: ' <confdefs.h | sed '
                   10011: s/'"$ac_delim"'/"\\\
                   10012: "/g' >>$CONFIG_STATUS || ac_write_fail=1
                   10013: 
                   10014: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10015:   for (key in D) D_is_set[key] = 1
                   10016:   FS = ""
                   10017: }
                   10018: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
                   10019:   line = \$ 0
                   10020:   split(line, arg, " ")
                   10021:   if (arg[1] == "#") {
                   10022:     defundef = arg[2]
                   10023:     mac1 = arg[3]
                   10024:   } else {
                   10025:     defundef = substr(arg[1], 2)
                   10026:     mac1 = arg[2]
                   10027:   }
                   10028:   split(mac1, mac2, "(") #)
                   10029:   macro = mac2[1]
                   10030:   prefix = substr(line, 1, index(line, defundef) - 1)
                   10031:   if (D_is_set[macro]) {
                   10032:     # Preserve the white space surrounding the "#".
                   10033:     print prefix "define", macro P[macro] D[macro]
                   10034:     next
                   10035:   } else {
                   10036:     # Replace #undef with comments.  This is necessary, for example,
                   10037:     # in the case of _POSIX_SOURCE, which is predefined and required
                   10038:     # on some systems where configure will not decide to define it.
                   10039:     if (defundef == "undef") {
                   10040:       print "/*", prefix defundef, macro, "*/"
                   10041:       next
                   10042:     }
                   10043:   }
                   10044: }
                   10045: { print }
                   10046: _ACAWK
                   10047: _ACEOF
                   10048: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10049:   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
                   10050: fi # test -n "$CONFIG_HEADERS"
                   10051: 
                   10052: 
                   10053: eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
                   10054: shift
                   10055: for ac_tag
                   10056: do
                   10057:   case $ac_tag in
                   10058:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   10059:   esac
                   10060:   case $ac_mode$ac_tag in
                   10061:   :[FHL]*:*);;
                   10062:   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
                   10063:   :[FH]-) ac_tag=-:-;;
                   10064:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   10065:   esac
                   10066:   ac_save_IFS=$IFS
                   10067:   IFS=:
                   10068:   set x $ac_tag
                   10069:   IFS=$ac_save_IFS
                   10070:   shift
                   10071:   ac_file=$1
                   10072:   shift
                   10073: 
                   10074:   case $ac_mode in
                   10075:   :L) ac_source=$1;;
                   10076:   :[FH])
                   10077:     ac_file_inputs=
                   10078:     for ac_f
                   10079:     do
                   10080:       case $ac_f in
                   10081:       -) ac_f="$ac_tmp/stdin";;
                   10082:       *) # Look for the file first in the build tree, then in the source tree
                   10083:         # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   10084:         # because $ac_f cannot contain `:'.
                   10085:         test -f "$ac_f" ||
                   10086:           case $ac_f in
                   10087:           [\\/$]*) false;;
                   10088:           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   10089:           esac ||
                   10090:           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
                   10091:       esac
                   10092:       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
                   10093:       as_fn_append ac_file_inputs " '$ac_f'"
                   10094:     done
                   10095: 
                   10096:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   10097:     # use $as_me), people would be surprised to read:
                   10098:     #    /* config.h.  Generated by config.status.  */
                   10099:     configure_input='Generated from '`
                   10100:          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
                   10101:        `' by configure.'
                   10102:     if test x"$ac_file" != x-; then
                   10103:       configure_input="$ac_file.  $configure_input"
                   10104:       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
                   10105: $as_echo "$as_me: creating $ac_file" >&6;}
                   10106:     fi
                   10107:     # Neutralize special characters interpreted by sed in replacement strings.
                   10108:     case $configure_input in #(
                   10109:     *\&* | *\|* | *\\* )
                   10110:        ac_sed_conf_input=`$as_echo "$configure_input" |
                   10111:        sed 's/[\\\\&|]/\\\\&/g'`;; #(
                   10112:     *) ac_sed_conf_input=$configure_input;;
                   10113:     esac
                   10114: 
                   10115:     case $ac_tag in
                   10116:     *:-:* | *:-) cat >"$ac_tmp/stdin" \
                   10117:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
                   10118:     esac
                   10119:     ;;
                   10120:   esac
                   10121: 
                   10122:   ac_dir=`$as_dirname -- "$ac_file" ||
                   10123: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   10124:         X"$ac_file" : 'X\(//\)[^/]' \| \
                   10125:         X"$ac_file" : 'X\(//\)$' \| \
                   10126:         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
                   10127: $as_echo X"$ac_file" |
                   10128:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   10129:            s//\1/
                   10130:            q
                   10131:          }
                   10132:          /^X\(\/\/\)[^/].*/{
                   10133:            s//\1/
                   10134:            q
                   10135:          }
                   10136:          /^X\(\/\/\)$/{
                   10137:            s//\1/
                   10138:            q
                   10139:          }
                   10140:          /^X\(\/\).*/{
                   10141:            s//\1/
                   10142:            q
                   10143:          }
                   10144:          s/.*/./; q'`
                   10145:   as_dir="$ac_dir"; as_fn_mkdir_p
                   10146:   ac_builddir=.
                   10147: 
                   10148: case "$ac_dir" in
                   10149: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10150: *)
                   10151:   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
                   10152:   # A ".." for each directory in $ac_dir_suffix.
                   10153:   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
                   10154:   case $ac_top_builddir_sub in
                   10155:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   10156:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   10157:   esac ;;
                   10158: esac
                   10159: ac_abs_top_builddir=$ac_pwd
                   10160: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   10161: # for backward compatibility:
                   10162: ac_top_builddir=$ac_top_build_prefix
                   10163: 
                   10164: case $srcdir in
                   10165:   .)  # We are building in place.
                   10166:     ac_srcdir=.
                   10167:     ac_top_srcdir=$ac_top_builddir_sub
                   10168:     ac_abs_top_srcdir=$ac_pwd ;;
                   10169:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   10170:     ac_srcdir=$srcdir$ac_dir_suffix;
                   10171:     ac_top_srcdir=$srcdir
                   10172:     ac_abs_top_srcdir=$srcdir ;;
                   10173:   *) # Relative name.
                   10174:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   10175:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   10176:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   10177: esac
                   10178: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   10179: 
                   10180: 
                   10181:   case $ac_mode in
                   10182:   :F)
                   10183:   #
                   10184:   # CONFIG_FILE
                   10185:   #
                   10186: 
                   10187:   case $INSTALL in
                   10188:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   10189:   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
                   10190:   esac
1.1.1.2   misho    10191:   ac_MKDIR_P=$MKDIR_P
                   10192:   case $MKDIR_P in
                   10193:   [\\/$]* | ?:[\\/]* ) ;;
                   10194:   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
                   10195:   esac
1.1       misho    10196: _ACEOF
                   10197: 
                   10198: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10199: # If the template does not know about datarootdir, expand it.
                   10200: # FIXME: This hack should be removed a few years after 2.60.
                   10201: ac_datarootdir_hack=; ac_datarootdir_seen=
                   10202: ac_sed_dataroot='
                   10203: /datarootdir/ {
                   10204:   p
                   10205:   q
                   10206: }
                   10207: /@datadir@/p
                   10208: /@docdir@/p
                   10209: /@infodir@/p
                   10210: /@localedir@/p
                   10211: /@mandir@/p'
                   10212: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
                   10213: *datarootdir*) ac_datarootdir_seen=yes;;
                   10214: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
                   10215:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   10216: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
                   10217: _ACEOF
                   10218: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10219:   ac_datarootdir_hack='
                   10220:   s&@datadir@&$datadir&g
                   10221:   s&@docdir@&$docdir&g
                   10222:   s&@infodir@&$infodir&g
                   10223:   s&@localedir@&$localedir&g
                   10224:   s&@mandir@&$mandir&g
                   10225:   s&\\\${datarootdir}&$datarootdir&g' ;;
                   10226: esac
                   10227: _ACEOF
                   10228: 
                   10229: # Neutralize VPATH when `$srcdir' = `.'.
                   10230: # Shell code in configure.ac might set extrasub.
                   10231: # FIXME: do we really want to maintain this feature?
                   10232: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
                   10233: ac_sed_extra="$ac_vpsub
                   10234: $extrasub
                   10235: _ACEOF
                   10236: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
                   10237: :t
                   10238: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   10239: s|@configure_input@|$ac_sed_conf_input|;t t
                   10240: s&@top_builddir@&$ac_top_builddir_sub&;t t
                   10241: s&@top_build_prefix@&$ac_top_build_prefix&;t t
                   10242: s&@srcdir@&$ac_srcdir&;t t
                   10243: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   10244: s&@top_srcdir@&$ac_top_srcdir&;t t
                   10245: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   10246: s&@builddir@&$ac_builddir&;t t
                   10247: s&@abs_builddir@&$ac_abs_builddir&;t t
                   10248: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   10249: s&@INSTALL@&$ac_INSTALL&;t t
1.1.1.2   misho    10250: s&@MKDIR_P@&$ac_MKDIR_P&;t t
1.1       misho    10251: $ac_datarootdir_hack
                   10252: "
                   10253: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
                   10254:   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
                   10255: 
                   10256: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
                   10257:   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
                   10258:   { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' \
                   10259:       "$ac_tmp/out"`; test -z "$ac_out"; } &&
                   10260:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   10261: which seems to be undefined.  Please make sure it is defined" >&5
                   10262: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   10263: which seems to be undefined.  Please make sure it is defined" >&2;}
                   10264: 
                   10265:   rm -f "$ac_tmp/stdin"
                   10266:   case $ac_file in
                   10267:   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
                   10268:   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
                   10269:   esac \
                   10270:   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
                   10271:  ;;
                   10272:   :H)
                   10273:   #
                   10274:   # CONFIG_HEADER
                   10275:   #
                   10276:   if test x"$ac_file" != x-; then
                   10277:     {
                   10278:       $as_echo "/* $configure_input  */" \
                   10279:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
                   10280:     } >"$ac_tmp/config.h" \
                   10281:       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
                   10282:     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
                   10283:       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
                   10284: $as_echo "$as_me: $ac_file is unchanged" >&6;}
                   10285:     else
                   10286:       rm -f "$ac_file"
                   10287:       mv "$ac_tmp/config.h" "$ac_file" \
                   10288:        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
                   10289:     fi
                   10290:   else
                   10291:     $as_echo "/* $configure_input  */" \
                   10292:       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
                   10293:       || as_fn_error $? "could not create -" "$LINENO" 5
                   10294:   fi
                   10295:  ;;
                   10296: 
                   10297: 
                   10298:   esac
                   10299: 
                   10300: done # for ac_tag
                   10301: 
                   10302: 
                   10303: as_fn_exit 0
                   10304: _ACEOF
                   10305: ac_clean_files=$ac_clean_files_save
                   10306: 
                   10307: test $ac_write_fail = 0 ||
                   10308:   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
                   10309: 
                   10310: 
                   10311: # configure is writing to config.log, and then calls config.status.
                   10312: # config.status does its own redirection, appending to config.log.
                   10313: # Unfortunately, on DOS this fails, as config.log is still kept open
                   10314: # by configure, so config.status won't be able to write to it; its
                   10315: # output is simply discarded.  So we exec the FD to /dev/null,
                   10316: # effectively closing config.log, so it can be properly (re)opened and
                   10317: # appended to by config.status.  When coming back to configure, we
                   10318: # need to make the FD available again.
                   10319: if test "$no_create" != yes; then
                   10320:   ac_cs_success=:
                   10321:   ac_config_status_args=
                   10322:   test "$silent" = yes &&
                   10323:     ac_config_status_args="$ac_config_status_args --quiet"
                   10324:   exec 5>/dev/null
                   10325:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   10326:   exec 5>>config.log
                   10327:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   10328:   # would make configure fail if this is the last instruction.
                   10329:   $ac_cs_success || as_fn_exit 1
                   10330: fi
                   10331: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
                   10332:   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
                   10333: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
                   10334: fi
                   10335: 
                   10336: 
                   10337: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   10338: $as_echo "" >&6; }
                   10339: { $as_echo "$as_me:${as_lineno-$LINENO}: result:     rsync ${RSYNC_VERSION} configuration successful" >&5
                   10340: $as_echo "    rsync ${RSYNC_VERSION} configuration successful" >&6; }
                   10341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
                   10342: $as_echo "" >&6; }
1.1.1.3 ! misho    10343: if test x$HAVE_YODL2MAN != x1; then
        !          10344:     { $as_echo "$as_me:${as_lineno-$LINENO}: result:     Note that yodl2man was not found, so pre-existing manpage files will be" >&5
        !          10345: $as_echo "    Note that yodl2man was not found, so pre-existing manpage files will be" >&6; }
        !          10346:     { $as_echo "$as_me:${as_lineno-$LINENO}: result:     used w/o change (if available) -- no .yo file changes will be used." >&5
        !          10347: $as_echo "    used w/o change (if available) -- no .yo file changes will be used." >&6; }
        !          10348:     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
        !          10349: $as_echo "" >&6; }
        !          10350: fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>