build: When cross compiling, don't require host binaries if tests are not enabled

These binaries are now only used by the test suite.  glib-genmarshal
*used* to be required to generate marshallers, but isn't anymore now
that we use libffi (via g_cclosure_marshal_generic).

https://bugzilla.gnome.org/show_bug.cgi?id=667806
This commit is contained in:
Colin Walters 2012-04-12 13:54:55 -04:00
parent f084b60377
commit 4b98c512df

View File

@ -2568,7 +2568,7 @@ dnl ******************************************************************
AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes) AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)
if test $cross_compiling = yes; then if test $cross_compiling = yes && test x$enable_modular_tests = xyes; then
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal, no) AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal, no)
if test x$GLIB_GENMARSHAL = xno; then if test x$GLIB_GENMARSHAL = xno; then
AC_MSG_ERROR(Could not find a glib-genmarshal in your PATH) AC_MSG_ERROR(Could not find a glib-genmarshal in your PATH)