diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index ce310285..7dd911c2 100644 --- a/configure.ac +++ b/configure.ac @@ -6,9 +6,12 @@ AC_PREREQ(2.61) m4_include([version.m4]) AC_INIT([ledger],[VERSION_NUMBER],[johnw@newartisans.com]) + +AC_CONFIG_AUX_DIR([.]) +AM_INIT_AUTOMAKE([dist-bzip2 foreign]) + AC_CONFIG_SRCDIR([src/main.cc]) AC_CONFIG_HEADER([acconf.h]) -AM_INIT_AUTOMAKE([dist-bzip2 foreign]) # Checks for programs. AC_PROG_CXX @@ -23,6 +26,20 @@ AM_CONDITIONAL(HAVE_VALGRIND, test x$VALGRIND_TEST = xtrue) AM_PATH_LISPDIR # Check for options +AC_ARG_ENABLE(gdtoa, + [ --disable-gdtoa Do not build with David Gay's gdtoa library], + [case "${enableval}" in + yes) gdtoa=true ;; + no) gdtoa=false ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-gdtoa) ;; + esac],[gdtoa=true]) + +if test x$gdtoa = xtrue; then + AM_CONDITIONAL(HAVE_GDTOA, true) + AC_DEFINE([HAVE_GDTOA], [1], [Whether gdtoa is available]) + AC_CONFIG_SUBDIRS([lib/gdtoa]) +fi + AC_ARG_ENABLE(debug, [ --enable-debug Turn on debugging], [case "${enableval}" in |