From 1f5d3c3163cc3399251827235355087c2affa790 Mon Sep 17 00:00:00 2001 From: Руслан Ижбулатов Date: Tue, 6 May 2014 07:05:16 +0000 Subject: m4: in X11 check for libX11 as well as Xlib.h https://bugzilla.gnome.org/show_bug.cgi?id=729621 --- m4/gst-x11.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'm4') 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 -- cgit v1.2.3