From 32da59bb0c32ec726beb7871a6871fe980575f96 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 19 Apr 2016 17:22:22 -0700 Subject: [PATCH] Avoid AC_PREPROC_IFELSE glitch in configure.ac MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem reported by Angelo Graziosi in: http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00545.html * configure.ac (gl_gcc_warnings): Work around an Autoconf glitch: AC_PREPROC_IFELSE doesn’t generate a simple shell command. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index dbb5ad2..1cd9017 100644 --- a/configure.ac +++ b/configure.ac @@ -879,8 +879,9 @@ AC_DEFUN # however, if there is also a .tarball-version file it is probably # just a release imported into Git for patch management. gl_gcc_warnings=no - test -e "$srcdir"/.git && test ! -f "$srcdir"/.tarball-version && + if test -e "$srcdir"/.git && test ! -f "$srcdir"/.tarball-version; then gl_GCC_VERSION_IFELSE([5], [3], [gl_gcc_warnings=warn-only])] + fi ) # clang is unduly picky about some things. -- 2.5.5