From fca85d531a161fdf6cb1d1cc0bf11e0c5d0b44fd Mon Sep 17 00:00:00 2001
From: Pietro Incardona <incardon@mpi-cbg.de>
Date: Thu, 10 Nov 2016 01:03:09 +0100
Subject: [PATCH] Adding missing library for intel compiler

---
 configure.ac      | 3 +++
 script/detect_gcc | 8 ++------
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 78e94cf74..0134a6920 100644
--- a/configure.ac
+++ b/configure.ac
@@ -154,6 +154,9 @@ if [x"have_quad_math" == x"yes" $&& x"have_quad_math" == x"yes" ]; then
     LIBQUADMATH=" -lquadmath "
 fi
 
+AC_CHECK_LIB(ifcore, for_copy, [ LIBIFCORE=-lifcore  ], [ LIBIFCORE= ])
+AC_SUBST(LIBIFCORE)
+
 AC_SUBST(OPENMP_CFLAGS)
 AC_SUBST(OPENMP_LDFLAGS)
 
diff --git a/script/detect_gcc b/script/detect_gcc
index 928ec0cc8..85155f597 100755
--- a/script/detect_gcc
+++ b/script/detect_gcc
@@ -128,12 +128,12 @@ function detect_compiler()
         dgc_middle=$(icpc --version | grep icpc | sed 's/.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\2/g')
         dgc_minor=$(icpc --version | grep icpc | sed 's/.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\3/g')
 
-        if [ $dgc_major -gt 16 ]; then
+        if [ $dgc_major -gt 17 ]; then
           echo -e "icpc $dgc_major.$dgc_middle.$dgc_minor \033[92;1m SUCCESS \033[0m"
           dgc_compiler=icpc
           dgc_ret=1
           icpc_found=1
-        elif [ $dgc_major -lt 16 ]; then
+        elif [ $dgc_major -lt 17 ]; then
           echo -e "icpc $dgc_major.$dgc_middle.$dgc_minor  \033[91;5;1m FAILED \033[0m your icpc version is too old intel 16.0.2 at least required"
           dgc_ret=0
           icpc_found=0
@@ -142,10 +142,6 @@ function detect_compiler()
           dgc_compiler=icpc
           dgc_ret=1
           icpc_found=1
-        elif [ $dgc_middle -lt 0 ]; then
-          echo -e "icpc $dgc_major.$dgc_middle.$dgc_minor \033[91;5;1m FAILED \033[0m your icpc version is too old 16.0.2 at least required"
-          dgc_ret=0
-          icpc_found=0
         else
           echo -e "icpc $dgc_major.$dgc_middle.$dgc_minor \033[92;1m SUCCESS \033[0m"
           dgc_compiler=icpc
-- 
GitLab