X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=configure.ac;h=245a183618a428ce02134779112260a10eca471d;hp=7d8d54591f1b6cb7b01b54bdbec439b11351cc13;hb=a4debfe4a5f5d339410788971b698ba00cb7f09c;hpb=ca0f7bdfba63140dca0bd20586d31980f3938eb2 diff --git a/configure.ac b/configure.ac index 7d8d545..245a183 100644 --- a/configure.ac +++ b/configure.ac @@ -10,7 +10,7 @@ AC_INIT([Yoink], [0.1], [chaz@dogcows.com], [yoink]) AC_CANONICAL_TARGET -AC_CONFIG_SRCDIR([src/YoinkApp.cc]) +AC_CONFIG_SRCDIR([src/GameLayer.cc]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE @@ -94,6 +94,11 @@ AC_ARG_WITH([log-level], [log_level=$withval], [log_level=3]) +AC_ARG_ENABLE([double], + [ --enable-double use double-precision numbers], + [double=$enableval], + [double=no]) + if test x$developer = xyes then @@ -128,6 +133,13 @@ then CXXFLAGS="$CXXFLAGS -Wextra -Wno-unused-parameter" fi +if test x$double = xyes +then + AC_DEFINE([USE_DOUBLE_PRECISION], 1, + [Define to 1 if you want to use double-precison numbers.]) +fi + + AC_DEFINE_UNQUOTED([YOINK_LOGLEVEL], [$log_level], [Define to detail level of logging.]) @@ -153,12 +165,6 @@ AC_DEFINE_UNQUOTED([YOINK_DATADIR], ["$DATADIR"], [Define to path of game asset directory.]) -CONFIGFILES="/etc/yoinkrc:\$HOME/.yoinkrc" - -AC_DEFINE_UNQUOTED([YOINK_CONFIGFILES], ["$CONFIGFILES"], - [Define to colon-delimited configuration file paths.]) - - # # Split the version number into components. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~