From: Wayne Davison Date: Sun, 21 Jun 2020 19:54:02 +0000 (-0700) Subject: Output a helpful msg about configure only if the command fails. X-Git-Tag: v3.2.1pre1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7587e20cf405021b2cbd8fe3ceebfba056e3f938;p=thirdparty%2Frsync.git Output a helpful msg about configure only if the command fails. --- diff --git a/Makefile.in b/Makefile.in index f52976e9..6ca7d9eb 100644 --- a/Makefile.in +++ b/Makefile.in @@ -133,11 +133,10 @@ rounding.h: rounding.c rsync.h proto.h @rm -f rounding.out simd-checksum-x86_64.o: simd-checksum-x86_64.cpp - @echo "If this fails to compile and you can't fix it, re-run $(srcdir)/configure with --disable-simd." - $(CXX) -I. $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $(srcdir)/simd-checksum-x86_64.cpp + @$(srcdir)/cmdormsg disable-simd $(CXX) -I. $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $(srcdir)/simd-checksum-x86_64.cpp lib/md5-asm-x86_64.o: lib/md5-asm-x86_64.S config.h lib/md-defines.h - $(CC) -I. @NOEXECSTACK@ -c -o $@ $(srcdir)/lib/md5-asm-x86_64.S + @$(srcdir)/cmdormsg disable-asm $(CC) -I. @NOEXECSTACK@ -c -o $@ $(srcdir)/lib/md5-asm-x86_64.S tls$(EXEEXT): $(TLS_OBJ) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(TLS_OBJ) $(LIBS) diff --git a/cmdormsg b/cmdormsg new file mode 100755 index 00000000..ccf9527f --- /dev/null +++ b/cmdormsg @@ -0,0 +1,11 @@ +#!/bin/sh + +srcdir=`dirname $0` +opt="$1" +shift + +echo "$*" +if ! "${@}"; then + echo "If you can't fix the issue, re-run $srcdir/configure with --$opt." + exit 1 +fi