summaryrefslogtreecommitdiff
path: root/m4macros
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2002-02-14 00:28:02 +0000
committerJames Henstridge <jamesh@src.gnome.org>2002-02-14 00:28:02 +0000
commitb0db44badcd03917491f9a4d52243dcae59d5281 (patch)
tree670ecc6452e3a42434b21ebb4688cd02ecb48722 /m4macros
parentad24759fc104d4c3b155c70394179708dd85d8a1 (diff)
add third argument to the AC_DEFINE calls, so users of the macro don't
2002-02-14 James Henstridge <james@daa.com.au> * m4macros/glib-gettext.m4: add third argument to the AC_DEFINE calls, so users of the macro don't need to add entries to acconfig.h in their package.
Diffstat (limited to 'm4macros')
-rw-r--r--m4macros/glib-gettext.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/m4macros/glib-gettext.m4 b/m4macros/glib-gettext.m4
index d81c8c83e..703f17833 100644
--- a/m4macros/glib-gettext.m4
+++ b/m4macros/glib-gettext.m4
@@ -58,7 +58,8 @@ AC_DEFUN(AM_GLIB_WITH_NLS,
if test "$gt_cv_func_dgettext_libc" = "yes" \
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
- AC_DEFINE(HAVE_GETTEXT)
+ AC_DEFINE(HAVE_GETTEXT,1,
+ [Define if the GNU gettext() function is already present or preinstalled.])
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
if test "$MSGFMT" != "no"; then
@@ -92,7 +93,8 @@ AC_DEFUN(AM_GLIB_WITH_NLS,
fi
if test "$nls_cv_use_gnu_gettext" != "yes"; then
- AC_DEFINE(ENABLE_NLS)
+ AC_DEFINE(ENABLE_NLS, 1,
+ [always defined to indicate that i18n is enabled])
else
dnl Unset this variable since we use the non-zero value as a flag.
CATOBJEXT=