From: rich burridge Date: Sat, 9 Jul 2016 02:08:45 +0000 (-0700) Subject: Fix conststrings compiler version string generation. (closes #3852) X-Git-Tag: mutt-1-7-rel~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63883a091e1c124c77c6bd86391391d1bf1a02e5;p=mutt 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. --- diff --git a/Makefile.am b/Makefile.am index 82fe15df..a0524956 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