dnl Process this file with autoconf to produce a configure script. AC_INIT([Kinfold], [1.0], [rna@tbi.univie.ac.at]) dnl Every other copy of the package version number gets its value from here AM_INIT_AUTOMAKE dnl configure options AM_WITH_DMALLOC dnl Checks for programs. AC_PROG_CC AC_PROG_MAKE_SET dnl create a config.h file (Automake will add -DHAVE_CONFIG_H) AM_CONFIG_HEADER(config.h) AC_SUBST(VERSION) ISODATE=`date +%Y-%m-%d` AC_SUBST(ISODATE) AC_CANONICAL_HOST AC_ARG_WITH(ViennaRNA-include, [ --with-ViennaRNA-include where to search for ViennaRNA header files], ac_VRNA_includes="$withval", ) AC_ARG_WITH(ViennaRNA-lib, [ --with-ViennaRNA-lib where to search for libRNA.a], ac_VRNA_lib="$withval", ) AC_PATH_VRNA dnl Checks for libraries. dnl Replace `main' with a function in -lm: AC_CHECK_LIB(m, exp) dnl checking for -lRNA will fail if both are built simultaneously dnl AC_CHECK_LIB(RNA, fold) LIBS=["-lRNA ${LIBS}"] dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(limits.h sys/time.h unistd.h fold.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST dnl Checks for library functions. AC_CHECK_FUNCS(strdup) AC_OUTPUT(Makefile Example/Makefile)