From 7117dab0c2bc4db60e8313fc83b8792330079719 Mon Sep 17 00:00:00 2001
From: Pietro Incardona <incardon@mpi-cbg.de>
Date: Fri, 6 Nov 2015 12:26:35 +0100
Subject: [PATCH] Fixing BOOST detection

---
 m4/ax_boost_iostreams.m4           | 6 ++++--
 m4/ax_boost_program_options.m4     | 6 ++++--
 m4/ax_boost_unit_test_framework.m4 | 8 +++++---
 3 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/m4/ax_boost_iostreams.m4 b/m4/ax_boost_iostreams.m4
index 4ada3ee..b4e970b 100644
--- a/m4/ax_boost_iostreams.m4
+++ b/m4/ax_boost_iostreams.m4
@@ -103,10 +103,12 @@ AC_DEFUN([AX_BOOST_IOSTREAMS],
 
             fi
             if test "x$ax_lib" = "x"; then
-                AC_MSG_ERROR(Could not find a version of the library!)
+                echo "Could not find a version of the library!"
+                exit 202
             fi
 			if test "x$link_iostreams" != "xyes"; then
-				AC_MSG_ERROR(Could not link against $ax_lib !)
+				echo "Could not link against $ax_lib !"
+                                exit 202
 			fi
 		fi
 
diff --git a/m4/ax_boost_program_options.m4 b/m4/ax_boost_program_options.m4
index 0f0022e..e508ea3 100644
--- a/m4/ax_boost_program_options.m4
+++ b/m4/ax_boost_program_options.m4
@@ -96,10 +96,12 @@ AC_DEFUN([AX_BOOST_PROGRAM_OPTIONS],
                   done
                 fi
             if test "x$ax_lib" = "x"; then
-                AC_MSG_ERROR(Could not find a version of the library!)
+                echo "Could not find a version of the library!"
+                exit 202
             fi
 				if test "x$link_program_options" != "xyes"; then
-					AC_MSG_ERROR([Could not link against [$ax_lib] !])
+					echo "Could not link against [$ax_lib] !"
+                                        exit 202
 				fi
 		fi
 		CPPFLAGS="$CPPFLAGS_SAVED"
diff --git a/m4/ax_boost_unit_test_framework.m4 b/m4/ax_boost_unit_test_framework.m4
index 4b809cc..ff3e8b0 100644
--- a/m4/ax_boost_unit_test_framework.m4
+++ b/m4/ax_boost_unit_test_framework.m4
@@ -124,14 +124,16 @@ AC_DEFUN([AX_BOOST_UNIT_TEST_FRAMEWORK],
                done
             fi
             if test "x$ax_lib" = "x"; then
-                AC_MSG_ERROR(Could not find a version of the library!)
+                echo "Could not find a version of the library!"
+                exit 202
             fi
 			if test "x$link_unit_test_framework" != "xyes"; then
-				AC_MSG_ERROR(Could not link against $ax_lib !)
+				echo "Could not link against $ax_lib !"
+                                exit 202
 			fi
 		fi
 
 		CPPFLAGS="$CPPFLAGS_SAVED"
 	LDFLAGS="$LDFLAGS_SAVED"
 	fi
-])
\ No newline at end of file
+])
-- 
GitLab