From e3654fa880932f80d3ec6c8eb71453ca08c5a043 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 8 Jul 2016 19:08:45 -0700 Subject: [PATCH] Fix conststrings compiler version string generation. (closes #3852) The Makefile.am tries compiler flags -v, --version, and -V but neglected to filter error messages if these flags aren't recognized. --- Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 82fe15dff..a05249561 100644 --- a/Makefile.am +++ b/Makefile.am @@ -99,9 +99,9 @@ mutt_dotlock.c: dotlock.c conststrings.c: txt2c config.status ( \ - $(CC) -v || \ - $(CC) --version || \ - $(CC) -V || \ + ($(CC) -v >/dev/null 2>&1 && $(CC) -v) || \ + ($(CC) --version >/dev/null 2>&1 && $(CC) --version) || \ + ($(CC) -V >/dev/null 2>&1 && $(CC) -V) || \ echo "unknown compiler"; \ ) 2>&1 | ${srcdir}/txt2c.sh cc_version >conststrings_c echo "$(CFLAGS)" | ${srcdir}/txt2c.sh cc_cflags >>conststrings_c -- 2.40.0