dnl Process this file with autoconf to produce a configure script. AC_INIT(src/scores.cc) dnl Initialize automake AM_INIT_AUTOMAKE(gma, 0.6) dnl We're using c++ AC_LANG_CPLUSPLUS dnl Checks for programs. AC_PROG_AWK AC_PROG_CXX AC_PROG_INSTALL AC_PROG_LN_S dnl Checks for libraries. AC_SUBST(READLINE) AC_CHECK_LIB(readline, readline, AC_DEFINE(HAVE_LIBREADLINE) READLINE=-lreadline, READLINE=) dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADER(stl.h, , AC_MSG_ERROR([This program requires STL to compile. Sorry.])) AC_CHECK_HEADER(string, , AC_MSG_ERROR([This program requires the STL string class to compile. Sorry.])) AC_CHECK_HEADER(limits.h, , AC_MSG_ERROR([This program needs limits.h.])) AC_EGREP_CPP(int_min_defined, [ #include #ifdef INT_MIN int_min_defined #endif ], , AC_MSG_ERROR([This program expects limits.h to define INT_MIN.])) dnl Compiler flags CXXFLAGS="-Wall -g -O" AC_SUBST(CXXFLAGS) dnl Checks for library functions. AC_OUTPUT(Makefile src/Makefile)