(trunk) #1581: resolve ambiguity between --enable-gtk and --disable-nls

This commit is contained in:
Charles Kerr 2008-12-10 19:31:21 +00:00
parent 6924741843
commit 09c4ea1c00
1 changed files with 4 additions and 0 deletions

View File

@ -179,6 +179,10 @@ AC_ARG_ENABLE([nls],
AS_HELP_STRING([--enable-nls],[enable native language support]),,
[enable_nls=yes])
if test "x$build_gtk" = "xyes" -a "x$enable_nls" = "xno" ; then
AC_MSG_ERROR("The gtk client cannot be built without nls support. Try adding either --enable-nls or --disable-gtk" )
fi
use_nls=no
if test "x$enable_nls" = "xyes" ; then
use_nls=yes