diff mbox series

[v1,5/6] configure: move pthreads check to properly defined macro

Message ID 1517403609-12603-6-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v1,1/6] configure: set ODP_ABI_COMPAT before descending into platform | expand

Commit Message

Github ODP bot Jan. 31, 2018, 1 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 440 (lumag:build-fixes)
 ** https://github.com/Linaro/odp/pull/440
 ** Patch: https://github.com/Linaro/odp/pull/440.patch
 ** Base sha: b95ccd3db6eeb7358a877541747e06354429acdd
 ** Merge commit sha: 6f20299f993632a4dda987a31b37160d80c25279
 **/
 m4/odp_pthread.m4                        | 7 +++++++
 platform/linux-generic/m4/configure.m4   | 2 +-
 platform/linux-generic/m4/odp_pthread.m4 | 8 --------
 3 files changed, 8 insertions(+), 9 deletions(-)
 create mode 100644 m4/odp_pthread.m4
 delete mode 100644 platform/linux-generic/m4/odp_pthread.m4
diff mbox series

Patch

diff --git a/m4/odp_pthread.m4 b/m4/odp_pthread.m4
new file mode 100644
index 000000000..f2654ac4e
--- /dev/null
+++ b/m4/odp_pthread.m4
@@ -0,0 +1,7 @@ 
+# ODP_PTHREAD
+# -----------
+# Check for pthreads availability
+AC_DEFUN([ODP_PTHREAD], [dnl
+AX_PTHREAD([CC="$PTHREAD_CC"],
+	   [AC_MSG_FAILURE([We require pthreads to be available])])
+])
diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4
index 08ea1a338..7fa3652e2 100644
--- a/platform/linux-generic/m4/configure.m4
+++ b/platform/linux-generic/m4/configure.m4
@@ -3,7 +3,7 @@  IMPLEMENTATION_NAME="odp-linux"
 ODP_VISIBILITY
 ODP_ATOMIC
 
-m4_include([platform/linux-generic/m4/odp_pthread.m4])
+ODP_PTHREAD
 ODP_TIMER
 ODP_OPENSSL
 m4_include([platform/linux-generic/m4/odp_pcap.m4])
diff --git a/platform/linux-generic/m4/odp_pthread.m4 b/platform/linux-generic/m4/odp_pthread.m4
deleted file mode 100644
index 486158942..000000000
--- a/platform/linux-generic/m4/odp_pthread.m4
+++ /dev/null
@@ -1,8 +0,0 @@ 
-##########################################################################
-# Check for pthreads availability
-##########################################################################
-
-AX_PTHREAD([CC="$PTHREAD_CC"], [
-    echo "Error! We require pthreads to be available"
-    exit -1
-    ])