You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by tn...@apache.org on 2014/11/10 08:32:27 UTC

[2/2] mesos git commit: Added check for apr and svn headers besides libraries in 3rdparty

Added check for apr and svn headers besides libraries in 3rdparty

Review: https://reviews.apache.org/r/27704


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f8c89e8e
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/f8c89e8e
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/f8c89e8e

Branch: refs/heads/master
Commit: f8c89e8eda098be9c9a592e53edadc457796d3de
Parents: 42458bf
Author: Timothy Chen <tn...@gmail.com>
Authored: Thu Nov 6 14:01:43 2014 -0800
Committer: Timothy Chen <tn...@gmail.com>
Committed: Sun Nov 9 23:34:03 2014 -0800

----------------------------------------------------------------------
 3rdparty/libprocess/configure.ac | 27 +++++++++++++++++++++------
 1 file changed, 21 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/f8c89e8e/3rdparty/libprocess/configure.ac
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/configure.ac b/3rdparty/libprocess/configure.ac
index 18eb681..314c8b8 100644
--- a/3rdparty/libprocess/configure.ac
+++ b/3rdparty/libprocess/configure.ac
@@ -203,8 +203,13 @@ else
     CPPFLAGS="-I/usr/include/apr-1 -I/usr/include/apr-1.0 $CPPFLAGS"
 fi
 
-AC_CHECK_LIB([apr-1], [apr_initialize], [],
-             [AC_MSG_ERROR([cannot find libapr-1
+AC_CHECK_HEADERS([apr_pools.h],
+                 [AC_CHECK_LIB([apr-1], [apr_initialize], [],
+                               [AC_MSG_ERROR([cannot find libapr-1
+-------------------------------------------------------------------
+libapr-1 is required for mesos to build.
+-------------------------------------------------------------------
+                        ])])], [AC_MSG_ERROR([cannot find libapr-1 headers
 -------------------------------------------------------------------
 libapr-1 is required for mesos to build.
 -------------------------------------------------------------------
@@ -222,15 +227,25 @@ else
     CPPFLAGS="-I/usr/include/subversion-1 $CPPFLAGS"
 fi
 
-AC_CHECK_LIB([svn_subr-1], [svn_stringbuf_create_ensure], [],
-             [AC_MSG_ERROR([cannot find libsvn_subr-1
+AC_CHECK_HEADERS([svn_version.h],
+                 [AC_CHECK_LIB([svn_subr-1], [svn_stringbuf_create_ensure], [],
+                               [AC_MSG_ERROR([cannot find libsvn_subr-1
+-------------------------------------------------------------------
+libsubversion-1 is required for mesos to build.
+-------------------------------------------------------------------
+                        ])])], [AC_MSG_ERROR([cannot find libsvn_subr-1 headers
 -------------------------------------------------------------------
 libsubversion-1 is required for mesos to build.
 -------------------------------------------------------------------
 ])])
 
-AC_CHECK_LIB([svn_delta-1], [svn_txdelta], [],
-             [AC_MSG_ERROR([cannot find libsvn_delta-1
+AC_CHECK_HEADERS([svn_delta.h],
+                 [AC_CHECK_LIB([svn_delta-1], [svn_txdelta], [],
+                               [AC_MSG_ERROR([cannot find libsvn_delta-1
+-------------------------------------------------------------------
+libsubversion-1 is required for mesos to build.
+-------------------------------------------------------------------
+                        ])])], [AC_MSG_ERROR([cannot find libsvn_delta-1 headers
 -------------------------------------------------------------------
 libsubversion-1 is required for mesos to build.
 -------------------------------------------------------------------