Bladeren bron

configure.ac: fix X11 detection

Nathalie Furmento 14 jaren geleden
bovenliggende
commit
dc33eba3d9
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      configure.ac

+ 2 - 2
configure.ac

@@ -888,10 +888,10 @@ AC_SUBST(STARPU_OPENGL_RENDER, $enable_opengl_render)
 AC_MSG_RESULT($enable_opengl_render)
 
 AC_PATH_XTRA
-if test x$x_includes != xNONE; then
+if test "x$X_LIBS" != "x"; then
 	AC_DEFINE(STARPU_HAVE_X11, [1], [enable X11])
 fi
-AM_CONDITIONAL(HAVE_X11, test x$x_includes != xNONE)
+AM_CONDITIONAL([HAVE_X11], [test "x$X_LIBS" != "x"])
 
 # In case there are BLAS kernels that are used by the example applications
 # we may specify which library to use. Note that this is not used for StarPU