From: handa Date: Mon, 16 Feb 2009 05:19:41 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: XML-BEFORE-XEX~4 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=212a7a8604eb77e0981b2f246b95f545d6f2907b;p=m17n%2Fm17n-lib.git *** empty log message *** --- diff --git a/src/database.c b/src/database.c index d1caecf..6809851 100644 --- a/src/database.c +++ b/src/database.c @@ -1381,9 +1381,13 @@ mdatabase__init () work = mtext (); mdatabase__dir_list = mplist (); - /** The macro M17NDIR specifies a directory where the system-wide - MDB_DIR file exists. */ - mplist_set (mdatabase__dir_list, Mt, get_dir_info (M17NDIR, 1)); + /* The environment variable M17N_SYSTEM_DIR specifies the directory + where a system wide MDB_DIR file exists. If the variable is not + specified, use the macro M17NDIR. */ + path = getenv ("M17N_SYSTEM_DIR"); + if (! path) + path = M17NDIR; + mplist_set (mdatabase__dir_list, Mt, get_dir_info (path, 1)); /* The variable mdatabase_dir specifies a directory where an application program specific MDB_DIR file exists. */