Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "3rdparty/picojson"]
path = 3rdparty/picojson
url = https://github.com/kazuho/picojson
1 change: 1 addition & 0 deletions 3rdparty/picojson
Submodule picojson added at 25fc21
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Building Mesos modules requires system-wide installation of the following:
1. google-protobuf
2. glog
3. boost
4. picojson

## Build Mesos with some unbundled dependencies

Expand Down
7 changes: 3 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ else
fi
fi

basedir=$(cd $(dirname $0) && pwd)
MESOS_CPPFLAGS="${MESOS_CPPFLAGS} -I${basedir}/3rdparty/picojson"

AC_SUBST(MESOS_CPPFLAGS)
AC_SUBST(MESOS_LDFLAGS)

Expand Down Expand Up @@ -159,10 +162,6 @@ AC_CHECK_HEADER([google/protobuf/message.h],
[AC_MSG_ERROR([google protobuf is not installed.])])],
[AC_MSG_ERROR([google protobuf is not installed.])])

AC_CHECK_HEADER([picojson.h],
[],
[AC_MSG_ERROR([picojson is not installed.])])

AC_CHECK_HEADERS([boost/lexical_cast.hpp boost/functional/hash.hpp],
[],
[AC_MSG_ERROR([boost is not installed.])])
Expand Down