Update the autotools stuff to allow sqlite handling.

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@382 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Pasi Kallinen 2007-12-29 01:01:07 +00:00
parent 4145814352
commit de9c0c60c9
1 changed files with 20 additions and 1 deletions

View File

@ -2,7 +2,7 @@ dnl Use autoconf 2.53
dnl (Things tend to break across versions, they're neither upwards nor dnl (Things tend to break across versions, they're neither upwards nor
dnl downward compatible. Blame GNU.) dnl downward compatible. Blame GNU.)
AC_INIT(dgamelaunch, [1.4.7]) AC_INIT(dgamelaunch, [1.4.8])
AC_PREREQ(2.53) AC_PREREQ(2.53)
AC_CONFIG_HEADER(config.h) AC_CONFIG_HEADER(config.h)
@ -71,6 +71,25 @@ AC_ARG_ENABLE(enable-virus,
AC_SUBST(EDITOR) AC_SUBST(EDITOR)
AC_ARG_ENABLE(enable-sqlite,
[AC_HELP_STRING([--enable-sqlite], [Use SQLite for the database instead of flat text file.])],
[], [])
if test "$enable_sqlite" = yes; then
AC_MSG_RESULT([Using SQLite for the database])
AC_DEFINE(USE_SQLITE3,1,[Use SQLite for the database instead of flat text file.])
LIBS="$LIBS -lsqlite3"
fi
AC_ARG_WITH(sqlite-db,
[AC_HELP_STRING([--with-sqlite-db=PATH], [Define the path and filename of the SQLite database.])],
[dgl_sqlite_db=$withval], [dgl_sqlite_db="/dgldir/dgamelaunch.db"])
AC_DEFINE_UNQUOTED(DGL_SQLITE_DB, "$dgl_sqlite_db", [Path and filename of the SQLite database.])
AC_ARG_WITH(config-file, AC_ARG_WITH(config-file,
[AC_HELP_STRING([--with-config-file=PATH], [Define the path to the default configuration file.])], [AC_HELP_STRING([--with-config-file=PATH], [Define the path to the default configuration file.])],
[configfile=$withval], [configfile="/etc/dgamelaunch.conf"]) [configfile=$withval], [configfile="/etc/dgamelaunch.conf"])