dnl Process this file with autoconf to produce a configure script. AC_INIT(ale.in) dnl Find acc on G. B. Reilly's system. AC_CHECK_PROG(CC, acc, acc) AC_PROG_CC dnl Set the version number here, so it gets into all the Makefiles. AC_SUBST(VERSION) VERSION=0.2 dnl Set the repository revision here ('?' if svn is not available). AC_SUBST(SVN_REVISION) AC_CHECK_PROG(SVN_REVISION,svnadmin,`svnversion -n .`,?) dnl Find Emacs, and AC_PATH_PROG(EMACS,emacs) test -d ${prefix}/include && CPPFLAGS="${CPPFLAGS} -I${prefix}/include" dnl If the GDBM library is installed, build the GDBM reader; dnl otherwise, forget about it. Why halt the entire build because we dnl can't provide one feature? AC_SUBST(GDBM_EXEC) AC_CHECK_LIB(gdbm, gdbm_open) AC_CHECK_HEADER(gdbm.h) case "${ac_cv_header_gdbm_h}${ac_cv_lib_gdbm}" in "yesyes" ) GDBM_EXEC='gdbm' ;; * ) GDBM_EXEC='' AC_MSG_WARN(couldn't find the gdbm library and header file) AC_MSG_WARN(the editor will not be able to read or write gdbm files) ;; esac dnl Choose a name for the binaries subdirectory. AC_SUBST(ARCHITECTURE) AC_MSG_CHECKING(for name of system architecture) AC_CACHE_VAL(ale_cv_sys_architecture, [ ale_cv_sys_architecture=`PATH=".:..:${PATH}";config.guess || echo 'mystery'` ] ) ARCHITECTURE="${ale_cv_sys_architecture}" AC_MSG_RESULT(${ale_cv_sys_architecture}) AC_OUTPUT( Makefile analyses/Makefile docs/Makefile lisp/Makefile phylo/Makefile readers/Makefile www/index.html) dnl Beware: AC_MSG_WARN(Using Ale version $VERSION and local svn revision $SVN_REVISION)