From eb4a08c8ea701ba8677675ae8197da8f2173fe2a Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Tue, 1 Jan 2008 21:41:17 +0000 Subject: [PATCH] configure now accepts parameter --num-games=INT which will set the maximum number of games dgamelaunch supports. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@400 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- configure.ac | 7 +++++++ dgamelaunch.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 771f0a8..6d4d13f 100644 --- a/configure.ac +++ b/configure.ac @@ -87,7 +87,14 @@ if test "$enable_sqlite" = yes; then AC_DEFINE_UNQUOTED(USE_SQLITE_DB, "$dgl_sqlite_db", [Path and filename of the SQLite database.]) fi +def_dgl_num_games=4 +AC_ARG_WITH(num-games, +[AC_HELP_STRING([--num-games=INT], [Max. number of games this dgamelaunch supports per dgl installation.])], +[dgl_num_games=$withval], [dgl_num_games=$def_dgl_num_games]) + +AC_DEFINE_UNQUOTED(DIFF_GAMES, $dgl_num_games, [Max. number of games this dgamelaunch supports per dgl installation.]) +AC_MSG_RESULT([Number of games this dgamelaunch supports: $dgl_num_games]); AC_ARG_WITH(config-file, [AC_HELP_STRING([--with-config-file=PATH], [Define the path to the default configuration file.])], diff --git a/dgamelaunch.h b/dgamelaunch.h index 99b2d8f..33df470 100644 --- a/dgamelaunch.h +++ b/dgamelaunch.h @@ -14,7 +14,7 @@ /* max # of different games playable from within this dgl */ -#define DIFF_GAMES 4 +/*#define DIFF_GAMES 4*/ typedef enum {