Make sure we have a valid gettext usermode when building (#476189)

Test that HAVE_GETTEXT is true and we can find gmsgfmt.  Bomb
out of configure if either fails, because the build will fail later.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16526 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2007-09-12 15:56:04 +00:00
parent 6fb3651d09
commit 80c5c1fb80

View File

@ -884,6 +884,15 @@ AC_ARG_ENABLE( locale-specific-tax,
[ --enable-locale-specific-tax enable localized tax categories (experimental)],
AC_DEFINE(LOCALE_SPECIFIC_TAX,1,Enable the experimental locale-specific tax categories) )
dnl Make sure we have a proper gettext installed
AC_MSG_CHECKING(for a valid gettext/gmsgfmt installation)
if test "$gt_cv_have_gettext" != "yes" || test "x$GMSGFMT" = "x"; then
AC_MSG_RESULT(no)
AC_MSG_ERROR([Cannot find Glib Gettext. Maybe you need to install the gettext package?])
else
AC_MSG_RESULT(yes - $GMSGFMT)
fi
### --------------------------------------------------------------------------
### help files