summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8ef6b72)
Show IPv6 availability in --version.
VPATH=$(srcdir)
SHELL=/bin/sh
VPATH=$(srcdir)
SHELL=/bin/sh
.SUFFIXES:
.SUFFIXES: .c .o
.SUFFIXES:
.SUFFIXES: .c .o
$(OBJS): config.h *.h */*.h
$(OBJS): config.h *.h */*.h
+# TODO: Add 'dist' target; need to know which files will be included
\ No newline at end of file
- rprintf(FINFO, "rsyncd version %s starting, listening on port %d\n", VERSION,
+ rprintf(FINFO, "rsyncd version %s starting, listening on port %d\n",
+ RSYNC_VERSION,
rsync_port);
/* TODO: If listening on a particular address, then show that
* address too. */
rsync_port);
/* TODO: If listening on a particular address, then show that
* address too. */
AC_PROG_INSTALL
AC_SUBST(SHELL)
AC_PROG_INSTALL
AC_SUBST(SHELL)
+RSYNC_VERSION=2.4.7pre2
+AC_SUBST(RSYNC_VERSION)
+AC_DEFINE_UNQUOTED(RSYNC_VERSION, ["$RSYNC_VERSION"], [rsync release version])
+
# compile with optimisation and without debugging by default, unless
# --debug is given. We must decide this before testing the compiler.
# compile with optimisation and without debugging by default, unless
# --debug is given. We must decide this before testing the compiler.
yes
#endif],
[ipv6type=$i;
yes
#endif],
[ipv6type=$i;
- CFLAGS="-DINET6 $CFLAGS"])
+ AC_DEFINE(INET6, 1, [true if you have IPv6])
+ ])
;;
kame)
# http://www.kame.net/
;;
kame)
# http://www.kame.net/
#ifdef __KAME__
yes
#endif],
#ifdef __KAME__
yes
#endif],
- [ipv6type=$i;
- CFLAGS="-DINET6 $CFLAGS"])
+ [ipv6type=$i;
+ AC_DEFINE(INET6, 1, [true if you have IPv6])])
;;
linux-glibc)
# http://www.v6.linux.or.jp/
;;
linux-glibc)
# http://www.v6.linux.or.jp/
yes
#endif],
[ipv6type=$i;
yes
#endif],
[ipv6type=$i;
- CFLAGS="-DINET6 $CFLAGS"])
+AC_DEFINE(INET6, 1, [true if you have IPv6])])
;;
linux-inet6)
# http://www.v6.linux.or.jp/
;;
linux-inet6)
# http://www.v6.linux.or.jp/
ipv6lib=inet6
ipv6libdir=/usr/inet6/lib
ipv6trylibc=yes;
ipv6lib=inet6
ipv6libdir=/usr/inet6/lib
ipv6trylibc=yes;
- CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
+ AC_DEFINE(INET6, 1, [true if you have IPv6])
+ CFLAGS="-I/usr/inet6/include $CFLAGS"
[ipv6type=$i;
ipv6lib=inet6;
ipv6libdir=/usr/local/v6/lib;
[ipv6type=$i;
ipv6lib=inet6;
ipv6libdir=/usr/local/v6/lib;
- CFLAGS="-DINET6 $CFLAGS"])
+ AC_DEFINE(INET6, 1, [true if you have IPv6])])
;;
v6d)
AC_EGREP_CPP(yes, [
;;
v6d)
AC_EGREP_CPP(yes, [
[ipv6type=$i;
ipv6lib=v6;
ipv6libdir=/usr/local/v6/lib;
[ipv6type=$i;
ipv6lib=v6;
ipv6libdir=/usr/local/v6/lib;
- CFLAGS="-I/usr/local/v6/include $CFLAGS"])
+ AC_DEFINE(INET6, 1, [true if you have IPv6])])
;;
zeta)
AC_EGREP_CPP(yes, [
;;
zeta)
AC_EGREP_CPP(yes, [
[ipv6type=$i;
ipv6lib=inet6;
ipv6libdir=/usr/local/v6/lib;
[ipv6type=$i;
ipv6lib=inet6;
ipv6libdir=/usr/local/v6/lib;
- CFLAGS="-DINET6 $CFLAGS"])
+ AC_DEFINE(INET6, 1, [true if you have IPv6])])
;;
esac
if test "$ipv6type" != "unknown"; then
;;
esac
if test "$ipv6type" != "unknown"; then
char const *got_socketpair = "no ";
char const *hardlinks = "no ";
char const *links = "no ";
char const *got_socketpair = "no ";
char const *hardlinks = "no ";
char const *links = "no ";
+ char const *ipv6 = "no ";
#ifdef HAVE_SOCKETPAIR
got_socketpair = "";
#ifdef HAVE_SOCKETPAIR
got_socketpair = "";
+#if INET6
+ ipv6 = "";
+#endif
+
rprintf(f, "%s version %s protocol version %d\n",
rprintf(f, "%s version %s protocol version %d\n",
- RSYNC_NAME, VERSION, PROTOCOL_VERSION);
+ RSYNC_NAME, RSYNC_VERSION, PROTOCOL_VERSION);
rprintf(f,
"Copyright (C) 1996-2001 by Andrew Tridgell and others\n");
rprintf(f, "<http://rsync.samba.org/>\n");
rprintf(f, "Capabilities: %d-bit files, %ssocketpairs, "
rprintf(f,
"Copyright (C) 1996-2001 by Andrew Tridgell and others\n");
rprintf(f, "<http://rsync.samba.org/>\n");
rprintf(f, "Capabilities: %d-bit files, %ssocketpairs, "
- "%shard links, %ssymlinks, batchfiles\n\n",
+ "%shard links, %ssymlinks, batchfiles, %sIPv6\n\n",
(int) (sizeof(OFF_T) * 8),
(int) (sizeof(OFF_T) * 8),
- got_socketpair,
- hardlinks, links);
+ got_socketpair, hardlinks, links, ipv6);
#ifdef NO_INT64
rprintf(f, "WARNING: no 64-bit integers on this platform!\n");
#ifdef NO_INT64
rprintf(f, "WARNING: no 64-bit integers on this platform!\n");
#include "proto.h"
#include "lib/mdfour.h"
#include "proto.h"
#include "lib/mdfour.h"
+++ /dev/null
-#define VERSION "2.4.6dev"