summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-08-11 09:48:42 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-08-11 09:48:42 +1000
commit17de663a71bcad6f69414eb6bc6bf9b76a6bf5f4 (patch)
treee6448115a4f3c622228c41e1014fb094a746b968
parent64ca88570b71289a019a2d130b1a30dc474ef52d (diff)
fix glamor header check
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--configure.ac10
1 files changed, 3 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index 2177c24..dbaf623 100644
--- a/configure.ac
+++ b/configure.ac
@@ -140,14 +140,10 @@ if test "x$have_list_h" = xyes; then
#include "list.h"])
fi
+AC_CHECK_HEADERS([glamor.h],[found_glamor_header=yes],[found_glamor_header=no],
+ [#include "xorg-server.h"])
AC_MSG_CHECKING([whether to include GLAMOR support])
-
-AC_COMPILE_IFELSE(AC_LANG_PROGRAM(
-[[
- #include <glamor.h>
-]],[[]]),[found_glamor_header=yes],[found_glamor_header=no])
-
-if test "$found_glamor_header" = "yes" && pkg-config --exists "xorg-server >= 1.15.99.901"
+if test "x$found_glamor_header" = xyes && pkg-config --exists "xorg-server >= 1.15.99.901"
then
AC_DEFINE(HAVE_GLAMOR, 1, [Build support for glamor acceleration])
AC_MSG_RESULT([yes])