From 5ec1d95fd8ae3ff082da6cd449b528d5613b1f9b Mon Sep 17 00:00:00 2001
From: Juan Escobar <escj@aero.obs-mip.fr>
Date: Tue, 13 Sep 2016 10:15:30 +0200
Subject: [PATCH] Juan 13/09/2016:Rules.LXgfortran.mk , compile the tools if
 gfortran >= 5.X

---
 src/Rules.LXgfortran.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Rules.LXgfortran.mk b/src/Rules.LXgfortran.mk
index 6be97fa9e..43b62b2a7 100644
--- a/src/Rules.LXgfortran.mk
+++ b/src/Rules.LXgfortran.mk
@@ -94,8 +94,10 @@ HDF_CONF= CFLAGS=-std=c99
 #
 # LIBTOOLS flags
 #
-#if MNH_TOOLS exists => compile the tools
+#if MNH_TOOLS exists => compile the tools if gfortran >= 5.X
+ifeq ($(shell test $$( gfortran -dumpversion | cut -b1 ) -ge 5 ; echo $$?),0)
 MNH_TOOLS = yes
+endif
 #
 ##########################################################
 #                                                        #
-- 
GitLab