]> skyeroc.xyz Git - dgamelaunch/commitdiff
Define both USE_SQLITE3 and USE_SQLITE_DB when --enable-sqlite and/or --sqlite-db...
authorPasi Kallinen <paxed@alt.org>
Tue, 1 Jan 2008 11:28:51 +0000 (11:28 +0000)
committerPasi Kallinen <paxed@alt.org>
Tue, 1 Jan 2008 11:28:51 +0000 (11:28 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@388 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

configure.ac

index 604c82eb7b835e2100e98caa30c63fb070d1bce7..771f0a86f3052831b2e834769809212d574452ad 100644 (file)
@@ -76,18 +76,17 @@ AC_ARG_ENABLE(enable-sqlite,
 [AC_HELP_STRING([--enable-sqlite], [Use SQLite for the database instead of flat text file.])],
 [], [])
 
+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; enable_sqlite=yes], [dgl_sqlite_db="/dgldir/dgamelaunch.db"])
+
 if test "$enable_sqlite" = yes; then
-   AC_MSG_RESULT([Using SQLite for the database])
+   AC_MSG_RESULT([Using SQLite for the database, located at $dgl_sqlite_db])
    AC_DEFINE(USE_SQLITE3,1,[Use SQLite for the database instead of flat text file.])
    LIBS="$LIBS -lsqlite3"
+   AC_DEFINE_UNQUOTED(USE_SQLITE_DB, "$dgl_sqlite_db", [Path and filename of the SQLite database.])
 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(USE_SQLITE_DB, "$dgl_sqlite_db", [Path and filename of the SQLite database.])
-
 
 
 AC_ARG_WITH(config-file,