AC_PREREQ(2.59)
AC_INIT(stx-btree, 0.7)
AC_CONFIG_SRCDIR([include/stx/btree.h])
AC_CONFIG_AUX_DIR(scripts)
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE
if test "$CFLAGS" == ""; then
CFLAGS="-g"
fi
if test "$CXXFLAGS" == ""; then
CXXFLAGS="-g"
fi
AC_PROG_CXX
AC_PROG_CC
AC_LANG([C++])
AC_HEADER_STDC
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AM_PATH_CPPUNIT(1.10.0)
AM_CONDITIONAL(HAVE_CPPUNIT, test x$CPPUNIT_CONFIG != xno)
AC_ARG_ENABLE(speedtest,
[ --enable-speedtest Build the speedtest (takes lots of RAM) (default: no)],
[case "${enableval}" in
yes) speedtest=true ;;
no) speedtest=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-speedtest) ;;
esac],[speedtest=false])
AM_CONDITIONAL(BUILD_SPEEDTEST, test x$speedtest = xtrue)
AC_CONFIG_FILES([Makefile
testsuite/Makefile
speedtest/Makefile])
AC_OUTPUT