0002-add-an-option-to-disable-glx-support.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From a9efde0fb2678cd26bdf26d256732d97ded0c595 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
  3. Date: Wed, 6 May 2015 11:05:48 +0200
  4. Subject: [PATCH 2/4] add an option to disable glx support
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. this option would help us in yocto to get deterministic build results
  9. Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
  10. Fetched from pull #81 on github for libepoxy:
  11. https://github.com/anholt/libepoxy/pull/81/commits
  12. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  13. ---
  14. configure.ac | 9 ++++++++-
  15. 1 file changed, 8 insertions(+), 1 deletion(-)
  16. diff --git a/configure.ac b/configure.ac
  17. index 225ab73..d3d947c 100644
  18. --- a/configure.ac
  19. +++ b/configure.ac
  20. @@ -58,7 +58,14 @@ AC_CHECK_HEADER([KHR/khrplatform.h],
  21. # uintptr_t to a void *") by default. Kill that.
  22. XORG_TESTSET_CFLAG(CWARNFLAGS, [-Wno-int-conversion])
  23. -PKG_CHECK_MODULES(X11, [x11], [x11=yes], [x11=no])
  24. +AC_ARG_ENABLE([glx],
  25. + [AS_HELP_STRING([--disable-glx],
  26. + [disable if you don't want x11/glx support])],
  27. + [],
  28. + [enable_glx=yes]
  29. + )
  30. +
  31. +PKG_CHECK_MODULES(X11, [x11], [x11=$enable_glx], [x11=no])
  32. AM_CONDITIONAL(HAVE_X11, test x$x11 = xyes)