summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2014-05-06 07:05:16 +0000
committerLuis de Bethencourt <luis@debethencourt.com>2014-05-06 11:13:56 -0400
commit1f5d3c3163cc3399251827235355087c2affa790 (patch)
tree385af80fa43936609ad08274a600a4bd6ca01de4 /m4
parent211fa5f2d0930dfd6891b386d42edba6d88c2a19 (diff)
m4: in X11 check for libX11 as well as Xlib.h
https://bugzilla.gnome.org/show_bug.cgi?id=729621
Diffstat (limited to 'm4')
-rw-r--r--m4/gst-x11.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/m4/gst-x11.m4 b/m4/gst-x11.m4
index d3baf2d..1723ca5 100644
--- a/m4/gst-x11.m4
+++ b/m4/gst-x11.m4
@@ -9,7 +9,11 @@ AC_DEFUN([AG_GST_CHECK_X],
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
dnl now try to find the HEADER
- AC_CHECK_HEADER(X11/Xlib.h, HAVE_X="yes", HAVE_X="no")
+ HAVE_X="no"
+ AC_CHECK_HEADER([X11/Xlib.h], [
+ dnl and then the library with the most uniquitous function
+ AC_CHECK_LIB(X11, [XSync], [HAVE_X="yes"], [], [$X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS])
+ ])
if test "x$HAVE_X" = "xno"
then