# Process this file with autoconf to produce a configure script. AC_INIT([alf],[0.1],[montanaro@users.sourceforge.net]) AC_CONFIG_SRCDIR([src/alf.c]) AM_CONFIG_HEADER([config.h]) # release version - adjust ALF_{MAJOR,MINOR} to reflect release numbers ALF_MAJOR=0 ALF_MINOR=1 ALF_VERSION="$ALF_MAJOR.$ALF_MINOR" AC_SUBST(ALF_MAJOR) AC_SUBST(ALF_MINOR) AC_SUBST(ALF_VERSION) AM_INIT_AUTOMAKE(alf, $ALF_VERSION) # library versioning - adjust ALF_LT_{CURRENT,REVISION,AGE} to reflect # current library version info # see http://sources.redhat.com/autobook/autobook/autobook_91.html to # get a refresher on CURRENT, REVISION, and AGE ALF_LT_CURRENT=0 ALF_LT_REVISION=0 ALF_LT_AGE=0 AM_PATH_PYTHON AM_CHECK_PYTHON_HEADERS([PYSUBDIR=python],[]) AC_SUBST(PYSUBDIR) # Checks for programs. AC_PROG_CXX AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_RANLIB dnl Initialize libtool AC_PROG_CC AC_LIBTOOL_WIN32_DLL AC_PROG_LIBTOOL ALF_LT_VERSION="$ALF_LT_CURRENT:$ALF_LT_REVISION:$ALF_LT_AGE" AC_SUBST(ALF_LT_VERSION) # Checks for libraries. # FIXME: Replace `main' with a function in `-le': AC_CHECK_LIB([e], [main]) # FIXME: Replace `main' with a function in `-links': AC_CHECK_LIB([inks], [main]) # Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC AC_CHECK_HEADERS([errno.h stdlib.h string.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_OFF_T AC_TYPE_SIZE_T # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_SETVBUF_REVERSED AC_CHECK_FUNCS([ftruncate getcwd memset rmdir strdup]) AC_CONFIG_FILES([Makefile src/Makefile python/Makefile test/Makefile]) AC_OUTPUT