From 61aaaa74706a93611152975c07cda9bb7ac97bb0 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 31 May 2006 14:08:58 +0000 Subject: [PATCH] * Fix a build failure when X11R7 is available but OpenGL isn't. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index adf2ff4..b5c445d 100644 --- a/configure.ac +++ b/configure.ac @@ -146,10 +146,10 @@ if test "${enable_x11}" != "no"; then AC_CHECK_LIB(X11, XOpenDisplay, [ac_cv_my_have_x11="yes" if test -n "${x_includes}"; then X_CFLAGS="-I${x_includes}"; fi - if test -n "${x_libraries}"; then X_LIBS="-lX11 -L${x_libraries}"; fi + if test -n "${x_libraries}"; then X_LIBS="-L${x_libraries}"; fi AC_DEFINE(USE_X11, 1, Define to 1 to activate the X11 backend driver) CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}" - CACA_LIBS="${CACA_LIBS} ${X_LIBS}" + CACA_LIBS="${CACA_LIBS} -lX11 ${X_LIBS}" CACA_DRIVERS="${CACA_DRIVERS} x11"], [ac_cv_my_have_x11="no"], [[`if test -n "${x_libraries}"; then echo -L${x_libraries}; fi`]])