AC_INIT(src/idcount.cxx) AM_INIT_AUTOMAKE(libpenknife++,0.0.1) # AM_CONFIG_HEADER(config.h) AC_SUBST(VERSION) dnl Checks for programs. AC_PROG_CXX AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AM_PROG_LIBTOOL dnl Check commandline options AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug], [enable assertion checks])], , enable_debug="no") if test "x$enable_debug" = "xno"; then CPPFLAGS="$CPPFLAGS -DNDEBUG" fi AC_ARG_ENABLE(test, [AC_HELP_STRING([--enable-test], [enable test suite])], , enable_test="no") if test ! "x$enable_test" = "xno"; then AC_PATH_PROG(CPPUNIT_CONFIG,cppunit-config,no) if test "x$CPPUNIT_CONFIG" = "xno"; then AC_MSG_ERROR([cppunit is needed but not found.]) fi CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` AC_SUBST(CPPUNIT_CFLAGS) AC_SUBST(CPPUNIT_LIBS) fi dnl Checks for libraries. dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(limits.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T dnl Checks for library functions. AC_OUTPUT(libpenknife++.pc Makefile src/Makefile include/Makefile include/penknife++/Makefile libpenknife++.spec tests/Makefile)