diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-11-23 19:55:51 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-11-23 19:55:51 +0100 |
commit | 685a3eb11ab5167758449410961c753e5685830b (patch) | |
tree | a8dbff6e7aa688986d68c72e05305d935a64d42f | |
parent | 5cc2e000c7e9424edfd7643db495e17bc148ecc7 (diff) |
Make configure fail if nls is enabled but the gettext tools are not found.
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index e1b7e05..47fedd6 100644 --- a/configure.ac +++ b/configure.ac @@ -148,8 +148,14 @@ AC_ARG_WITH([nls], AS_IF([test "x$with_nls" == "xyes"], [AC_MSG_RESULT([*** Building with nls support!]) AC_CHECK_PROGS([XGETTEXT], [xgettext]) + AS_IF([test "x$XGETTEXT" = "x"], + AC_MSG_ERROR([Missing xgettext tool.])) AC_CHECK_PROGS([MSGMERGE], [msgmerge]) + AS_IF([test "x$MSGMERGE" = "x"], + AC_MSG_ERROR([Missing msgmerge tool.])) AC_CHECK_PROGS([MSGFMT], [msgfmt]) + AS_IF([test "x$MSGFMT" = "x"], + AC_MSG_ERROR([Missing msgfmt tool.])) AC_DEFINE_UNQUOTED([WITH_NLS], , [Build with nls support])], [AC_MSG_WARN([*** Building without nls support!])] ) |