Repository: mesos Updated Branches: refs/heads/master 3bfb136e9 -> f8c89e8ed
Added check for apr and svn headers besides libraries Review: https://reviews.apache.org/r/27701 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/42458bf2 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/42458bf2 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/42458bf2 Branch: refs/heads/master Commit: 42458bf2ad7fde97b18b167ba79b67effe43b0e9 Parents: 3bfb136 Author: Timothy Chen <[email protected]> Authored: Thu Nov 6 14:01:33 2014 -0800 Committer: Timothy Chen <[email protected]> Committed: Sun Nov 9 23:34:01 2014 -0800 ---------------------------------------------------------------------- configure.ac | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/42458bf2/configure.ac ---------------------------------------------------------------------- diff --git a/configure.ac b/configure.ac index 4504006..c287a17 100644 --- a/configure.ac +++ b/configure.ac @@ -651,8 +651,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. ------------------------------------------------------------------- @@ -670,15 +675,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. -------------------------------------------------------------------
