From 212a7a8604eb77e0981b2f246b95f545d6f2907b Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 16 Feb 2009 05:19:41 +0000 Subject: [PATCH] *** empty log message *** --- src/database.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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. */ -- 1.7.10.4