msgpack/configure.in

45 lines
809 B
Plaintext
Raw Normal View History

AC_INIT(msgpack/unpack_template.h)
2009-02-22 15:47:06 +09:00
AC_CONFIG_AUX_DIR(ac)
2009-08-06 13:51:49 +09:00
AM_INIT_AUTOMAKE(msgpack, 0.3.4)
AC_CONFIG_HEADER(config.h)
2009-02-22 15:14:21 +09:00
AC_SUBST(CFLAGS)
if test "" = "$CFLAGS"; then
CFLAGS="-g -O4"
fi
AC_PROG_CC
CFLAGS="-O4 -Wall $CFLAGS -I.."
AC_MSG_CHECKING([if c++ api is enabled])
AC_ARG_ENABLE(cxx,
AS_HELP_STRING([--disable-cxx],
[don't build c++ api.]) )
AC_MSG_RESULT($enable_cxx)
if test "$enable_cxx" != "no"; then
AC_SUBST(CXXFLAGS)
if test "" = "$CXXFLAGS"; then
CXXFLAGS="-g -O4"
fi
AC_CHECK_PROG(ERB, erb, erb)
if test "x$ERB" = x; then
AC_MSG_ERROR([cannot find erb. Ruby is needed to build.])
fi
fi
# FIXME
AC_PROG_CXX
CXXFLAGS="-O4 -Wall $CXXFLAGS -I.. -I../c"
2009-02-22 15:14:21 +09:00
AM_CONDITIONAL(ENABLE_CXX, test "$enable_cxx" != "no")
AC_PROG_LIBTOOL
2009-02-22 15:14:21 +09:00
AC_OUTPUT([Makefile c/Makefile cpp/Makefile])