diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c
index 56495ab293c47b93388b2730353c2d0363aa2be5..54cf12b55c24d6e6062f36f26c0683cde1a68c4e 100644 (file)
--- a/program/src/rrd_tool.c
+++ b/program/src/rrd_tool.c
#ifdef HAVE_LOCALE_H
setlocale(LC_ALL, "");
#endif
-#ifdef HAVE_LIBINTL_H
+
+#if defined(HAVE_LIBINTL_H) && defined(BUILD_LIBINTL)
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
textdomain(GETTEXT_PACKAGE);