From 80c9b417ea3e450c00aac0e93072b85a2c96a484 Mon Sep 17 00:00:00 2001 From: Brett Grandbois Date: Fri, 11 May 2018 11:12:28 +1000 Subject: configure: only test for msgfmt if NLS enabled in environments where --disable-nls is specified msgfmt is unnecessary and therefore may not be available Signed-off-by: Brett Grandbois Signed-off-by: Samuel Mendoza-Jonas --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1fa0ea4..564cb5d 100644 --- a/configure.ac +++ b/configure.ac @@ -39,7 +39,7 @@ AM_INIT_AUTOMAKE AC_GNU_SOURCE AM_GNU_GETTEXT([external]) AM_GNU_GETTEXT_VERSION(0.18.1) -if test -z "$($MSGFMT --version)"; then +if test "$USE_NLS" = "yes" -a -z "$($MSGFMT --version)"; then AC_MSG_ERROR([[Please install gettext]]) fi LT_INIT -- cgit v1.2.1