From 68b2cc55389d4691fdf6e124feb26e08258db967 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Thu, 29 Nov 2001 00:04:48 +0000 Subject: [PATCH] Show version when configuring. If we don't seem to have an ANSI compiler, then omit a warning as soon as that is discovered, because it is likely to break later configure tests. This doesn't seem to catch the particular HP-UX compiler I was after, which is non-ANSI but only emits a warning on this configure test. Nevertheless probably better to have it in. --- NEWS | 4 ++-- configure.in | 14 +++++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 96ba3e95..ec9c0650 100644 --- a/NEWS +++ b/NEWS @@ -81,8 +81,8 @@ rsync 2.4.7 (sometime in 2001, maybe :) -*- indented-text -*- FreeBSD 3.3-RELEASE i386 cc FreeBSD 4.1.1-RELEASE i386 cc FreeBSD 4.3-STABLE i386 cc - HP-UX 10.10 gcc - HP-UX 11.11 cc + HP PA-RISC HP-UX 10.20 gcc + HP PA-RISC HP-UX 11.11 cc IRIX 6.5 MIPS cc IRIX 6.5 MIPS gcc Mac OS X PPC (--disable-ipv6) cc diff --git a/configure.in b/configure.in index 85ecac47..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. -- 2.34.1