X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/3966b9c609fef966743d50b5dca8d783a30c396d..68b2cc55389d4691fdf6e124feb26e08258db967:/configure.in diff --git a/configure.in b/configure.in index a701a004..72f1ab41 100644 --- a/configure.in +++ b/configure.in @@ -5,6 +5,12 @@ AC_CONFIG_SRCDIR([byteorder.h]) AC_CONFIG_HEADER(config.h) AC_PREREQ(2.52) +RSYNC_VERSION=2.4.7pre5 +AC_SUBST(RSYNC_VERSION) +AC_MSG_NOTICE([Configuring rsync $RSYNC_VERSION]) + +AC_DEFINE_UNQUOTED(RSYNC_VERSION, ["$RSYNC_VERSION"], [rsync release version]) + LDFLAGS=${LDFLAGS-""} AC_CANONICAL_TARGET([]) @@ -13,11 +19,13 @@ dnl Checks for programs. AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL +AC_PROG_CC_STDC AC_SUBST(SHELL) -RSYNC_VERSION=2.4.7pre4 -AC_SUBST(RSYNC_VERSION) -AC_DEFINE_UNQUOTED(RSYNC_VERSION, ["$RSYNC_VERSION"], [rsync release version]) +if test "$xac_cv_prog_cc_stdc" = xno +then + AC_MSG_WARN([rsync requires an ANSI C compiler and you don't seem to have one]) +fi # compile with optimisation and without debugging by default, unless # --debug is given. We must decide this before testing the compiler. @@ -94,6 +102,11 @@ ipv6type=unknown ipv6lib=none ipv6trylibc=yes +AC_ARG_ENABLE(ipv6, + AC_HELP_STRING([--disable-ipv6], [don't even try to use IPv6])) + +if test "x$enable_ipv6" != xno +then AC_MSG_CHECKING([ipv6 stack type]) for i in inria kame linux-glibc linux-inet6 toshiba v6d zeta; do case $i in @@ -179,7 +192,8 @@ yes done AC_MSG_RESULT($ipv6type) -AC_SEARCH_LIBS(getaddrinfo, inet6) + AC_SEARCH_LIBS(getaddrinfo, inet6) +fi AC_C_BIGENDIAN AC_HEADER_DIRENT