From be1c2a01dc8af1fcef6bf1b80c5a4038603d24b7 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Mon, 15 Dec 2014 20:43:45 +0100 Subject: [PATCH] configure: require a minimum version for Autoconf to avoid wrong generation As found by Douglas Torrance, when the 'configure' script is generated using v2.68 of autoconf then it gets wrongly generated due to a regression in the handling of names in AS_VAR_PUSHDEF, and crashes with this kind of sibylline messages: checking CFLAGS for -Wtrampolines... ./configure: line 11916: wm_cv_c_check_compopt_Werror_trampolines=no, unknown: command not found This patch adds a check on autoconf version to ensure the problem will get caught as soon as possible. Signed-off-by: Christophe CURIS --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index c9ed50ce..ad4bef61 100644 --- a/configure.ac +++ b/configure.ac @@ -8,7 +8,14 @@ dnl autoconf dnl libtoolize --force --automake dnl automake -a --gnu --include-deps dnl + + +dnl Due to a bug in Autoconf 2.68 (apparently a regression), we need at least +dnl version 2.68b which includes this patch: +dnl http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=2b0d95faef68d7ed7c08b0edb9ff1c38728376fa dnl +dnl Because the 2.69 was released only a few month later, let's just ask for it +AC_PREREQ([2.69]) AC_INIT(WindowMaker, 0.95.6, , WindowMaker, http://www.windowmaker.org/) -- 2.11.4.GIT