lang/c/msgpack: ./configure requires erb

git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@77 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
This commit is contained in:
frsyuki 2009-02-15 09:09:59 +00:00
parent ccdb39ac60
commit 40ca91e101
4 changed files with 7 additions and 3 deletions

View File

@ -3,7 +3,6 @@ AM_INIT_AUTOMAKE(msgpack, 0.1.0)
AC_CONFIG_HEADER(config.h)
AC_PROG_LIBTOOL
#AC_CHECK_PROG(RUBY, ruby, ruby, [$PATH])
AC_CONFIG_SUBDIRS([c cpp])
AC_OUTPUT([Makefile])

View File

@ -30,7 +30,7 @@ unpack.lo: msgpack/type/tuple.hpp
zone.lo: msgpack/type/tuple.hpp
msgpack/type/tuple.hpp: msgpack/type/tuple.hpp.erb
erb $< > $@
$(ERB) $< > $@
MOSTLYCLEANFILES = msgpack/type/tuple.hpp

View File

@ -9,7 +9,11 @@ fi
AC_PROG_CXX
AC_PROG_LIBTOOL
AC_CHECK_PROG(ERB, erb, erb, [$PATH])
AC_CHECK_PROG(ERB, erb, erb)
if test "x$ERB" = x; then
AC_MSG_ERROR([cannot find erb. Ruby is needed to build.])
fi
AC_CHECK_LIB(stdc++, main)

View File

@ -21,6 +21,7 @@
#include "msgpack/object.hpp"
#include <map>
#include <vector>
#include <algorithm>
namespace msgpack {