summaryrefslogtreecommitdiff
path: root/cpp/configure.in
blob: 2c3e5d07458e084d8a7c300312175f944d96e82c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
AC_INIT(object.cpp)
AM_INIT_AUTOMAKE(msgpack, 0.1.0)
AC_CONFIG_HEADER(config.h)

AC_SUBST(CXXFLAGS)
if test "" = "$CXXFLAGS"; then
	CXXFLAGS="-g -O4"
fi

AC_PROG_CXX
AC_PROG_LIBTOOL

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)

CXXFLAGS="-O4 -Wall $CXXFLAGS -I.."

AC_OUTPUT([Makefile])