diff --git a/configure.ac b/configure.ac index 1218e38..df7ee89 100644 --- a/configure.ac +++ b/configure.ac @@ -80,6 +80,7 @@ case $host_os in build_egl=no build_glx=yes build_wgl=no + build_apple=yes has_znow=no EPOXY_LINK_LIBS="" ;; @@ -110,6 +111,11 @@ if test x$build_wgl = xyes; then AC_DEFINE([BUILD_WGL], [1], [build WGL tests]) fi +AM_CONDITIONAL(BUILD_APPLE, test x$build_apple = xyes) +if test x$build_apple = xyes; then + AC_DEFINE([BUILD_APPLE], [1], [build APPLE is apple (for testing)]) +fi + AM_CONDITIONAL(HAS_ZNOW, test x$has_znow = xyes) AC_CHECK_LIB([dl], [dlopen], [DLOPEN_LIBS="-ldl"]) diff --git a/test/Makefile.am b/test/Makefile.am index 5a8c49a..7e43dd7 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -85,6 +85,7 @@ endif if BUILD_EGL if BUILD_GLX +if !BUILD_APPLE EGL_AND_GLX_TESTS = \ egl_and_glx_different_pointers_egl_glx \ egl_and_glx_different_pointers_egl \ @@ -92,17 +93,24 @@ EGL_AND_GLX_TESTS = \ $() endif endif +endif -GLX_TESTS = \ +if !BUILD_APPLE +GLX_NON_APPLE_TESTS = \ glx_alias_prefer_same_name \ + glx_gles2 \ + $() +endif + +GLX_TESTS = \ glx_beginend \ glx_public_api \ glx_public_api_core \ - glx_gles2 \ glx_glxgetprocaddress_nocontext \ glx_has_extension_nocontext \ glx_static \ $(GLX_SHARED_ZNOW) \ + $(GLX_NON_APPLE_TESTS) \ $() GLX_LIBS = libglx_common.la