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



commit 4b98c512df9102086f9c6babb04fed3533b73925
Author: Colin Walters <walters verbum org>
Date:   Thu Apr 12 13:54:55 2012 -0400

    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

 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c93fcec..72a1cb1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2568,7 +2568,7 @@ dnl ******************************************************************
 
 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)
   if test x$GLIB_GENMARSHAL = xno; then
     AC_MSG_ERROR(Could not find a glib-genmarshal in your PATH)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]