From 8d86d395dcf6a5f192b6987485bb7aef49f1fefc Mon Sep 17 00:00:00 2001 From: Jeff Smith Date: Fri, 12 Mar 2010 18:55:09 -0600 Subject: Use X_LIBS from pkg-config, instead of libdir, for locating libX11 Signed-off-by: Jeff Smith Signed-off-by: Dan Nicholson --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ed47f428c9..35fbcd9d85 100644 --- a/configure.ac +++ b/configure.ac @@ -547,7 +547,9 @@ else x11_pkgconfig=no fi dnl Use the autoconf macro if no pkg-config files -if test "$x11_pkgconfig" = no; then +if test "$x11_pkgconfig" = yes; then + PKG_CHECK_MODULES([X], [x11]) +else AC_PATH_XTRA fi -- cgit v1.2.3