(trunk) #4744 "Fix IT_PROG_INTLTOOL failing if intltool is not installed" -- fixed w/revised patch :)

This commit is contained in:
Jordan Lee 2012-02-03 17:28:48 +00:00
parent e599b3a738
commit 1816a92d6f
1 changed files with 3 additions and 1 deletions

View File

@ -390,7 +390,9 @@ dnl it should be safe to re-edit 0.40 back down to 0.23
use_nls=no
if test "x$enable_nls" = "xyes" ; then
use_nls=yes
IT_PROG_INTLTOOL([0.35.0],[no-xml])
m4_ifdef([IT_PROG_INTLTOOL],
[IT_PROG_INTLTOOL([0.35.0],[no-xml])],
[AC_MSG_ERROR("--enable-nls requires intltool to be installed.")])
AC_CHECK_HEADERS([libintl.h])
GETTEXT_PACKAGE=transmission-gtk
AC_SUBST(GETTEXT_PACKAGE)