From: Jim Meyering <jim@meyering.net>
Date: Sun, 21 Oct 2001 13:39:12 +0000 (+0000)
Subject: (_): Honor the setting of ENABLE_NLS.  Otherwise,
X-Git-Tag: emacs-unicode-base~25
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=0b709a46f29426427b3092467e9cf2df58d3db2c;p=gnulib.git

(_): Honor the setting of ENABLE_NLS.  Otherwise,
this code would end up calling gettext even in packages built
with --disable-nls.
---

diff --git a/lib/regex.c b/lib/regex.c
index 1840b03ef7..560a594476 100644
--- a/lib/regex.c
+++ b/lib/regex.c
@@ -91,7 +91,7 @@
 # endif
 
 /* This is for other GNU distributions with internationalized messages.  */
-# if HAVE_LIBINTL_H || defined _LIBC
+# if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC
 #  include <libintl.h>
 #  ifdef _LIBC
 #   undef gettext