diff --git a/configure.ac b/configure.ac index 6f9f600..428a690 100644 --- a/configure.ac +++ b/configure.ac @@ -485,6 +485,12 @@ fi AM_CONDITIONAL(HAVE_GTK, [test "x$enable_gtk" = xyes]) +dnl =================================== +dnl memalign (used for tests) + +AC_CHECK_FUNC(memalign, have_memalign=yes, have_memalign=no) +AM_CONDITIONAL(HAVE_MEMALIGN, test x$have_memalign = xyes) + AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) AC_SUBST(DEP_CFLAGS) diff --git a/test/Makefile.am b/test/Makefile.am index c56f62d..5987dce 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -4,7 +4,6 @@ INCLUDES = -I$(top_srcdir)/pixman -I$(top_builddir)/pixman TESTPROGRAMS = \ region-test \ scaling-test \ - blitters-test \ fetch-test \ oob-test \ window-test \ @@ -13,11 +12,20 @@ TESTPROGRAMS = \ fetch_test_LDADD = $(TEST_LDADD) region_test_LDADD = $(TEST_LDADD) scaling_test_LDADD = $(TEST_LDADD) -blitters_test_LDADD = $(TEST_LDADD) trap_crasher_LDADD = $(TEST_LDADD) oob_test_LDADD = $(TEST_LDADD) window_test_LDADD = $(TEST_LDADD) +# test that needs memalign (not easy on mingw) +if HAVE_MEMALIGN + +TESTPROGRAMS += \ + blitters-test + +blitters_test_LDADD = $(TEST_LDADD) + +endif + # GTK using test programs if HAVE_GTK