From: Hans-Peter Nilsson Date: Sat, 12 Apr 2008 18:40:10 +0000 (+0000) Subject: Makefile.tpl: Error early unless at least GNU make 3.80. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=295e261a166495a75b00891227e8a6ae08324a0d;p=gcc.git Makefile.tpl: Error early unless at least GNU make 3.80. * Makefile.tpl : Error early unless at least GNU make 3.80. * Makefile.in: Regenerate. From-SVN: r134225 --- diff --git a/ChangeLog b/ChangeLog index df848735062..8b128971e27 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-12 Hans-Peter Nilsson + + * Makefile.tpl : Error early unless at least GNU make 3.80. + * Makefile.in: Regenerate. + 2008-04-11 Eric B. Weddington * configure.ac: Do not build libssp for the AVR. diff --git a/Makefile.in b/Makefile.in index edd2984fce4..dc3b0c5569a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -20,6 +20,14 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # +# First, test for a proper version of make, but only where one is required. + +@if gcc +ifeq (,$(.VARIABLES)) # The variable .VARIABLES, new with 3.80, is never empty. +$(error GNU make version 3.80 or newer is required.) +endif +@endif gcc + # ------------------------------- # Standard Autoconf-set variables # ------------------------------- diff --git a/Makefile.tpl b/Makefile.tpl index 95441f5bc43..e9629e2da2c 100644 --- a/Makefile.tpl +++ b/Makefile.tpl @@ -23,6 +23,14 @@ in # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # +# First, test for a proper version of make, but only where one is required. + +@if gcc +ifeq (,$(.VARIABLES)) # The variable .VARIABLES, new with 3.80, is never empty. +$(error GNU make version 3.80 or newer is required.) +endif +@endif gcc + # ------------------------------- # Standard Autoconf-set variables # -------------------------------