(_): Honor the setting of ENABLE_NLS. Otherwise,
authorJim Meyering <jim@meyering.net>
Sun, 21 Oct 2001 09:01:24 +0000 (09:01 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 21 Oct 2001 09:01:24 +0000 (09:01 +0000)
this code would end up calling gettext even in packages built
with --disable-nls.

lib/obstack.c

index 7b1206c..0244da3 100644 (file)
@@ -459,7 +459,7 @@ _obstack_memory_used (h)
 \f
 /* Define the error handler.  */
 # ifndef _
-#  if defined HAVE_LIBINTL_H || defined _LIBC
+#  if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC
 #   include <libintl.h>
 #   ifndef _
 #    define _(Str) gettext (Str)