diff options
-rw-r--r-- | configure.ac | 10 |
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]) |