From 9a9a1c5fbc327311ce2bd53e8da5d1b68a1c9382 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sat, 13 Mar 2010 17:36:44 +0100 Subject: [PATCH] Rename HAVE_X -> HAVE_X11 This change is just for consistency reasons. Signed-off-by: Johannes Schindelin --- client_examples/Makefile.am | 2 +- configure.ac | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/client_examples/Makefile.am b/client_examples/Makefile.am index fa71a50..ca5085d 100644 --- a/client_examples/Makefile.am +++ b/client_examples/Makefile.am @@ -21,7 +21,7 @@ SDLvncviewer_CFLAGS=$(SDL_CFLAGS) SDLvncviewer_SOURCES=SDLvncviewer.c scrap.c -if HAVE_X +if HAVE_X11 X11_LIB=-lX11 endif diff --git a/configure.ac b/configure.ac index 795b5af..7ef9e71 100644 --- a/configure.ac +++ b/configure.ac @@ -47,7 +47,7 @@ AM_CONDITIONAL(HAVE_MP3LAME, test "$HAVE_MP3LAME" = "true") AC_CHECK_HEADER(thenonexistentheader.h, HAVE_THENONEXISTENTHEADER_H="true") # Checks for X libraries -HAVE_X="false" +HAVE_X11="false" AC_PATH_XTRA AH_TEMPLATE(HAVE_X11, [X11 build environment present]) @@ -122,14 +122,14 @@ fi # end x11vnc only. if test "x$with_x" = "xno"; then - HAVE_X="false" + HAVE_X11="false" elif test "$X_CFLAGS" != "-DX_DISPLAY_MISSING"; then AC_CHECK_LIB(X11, XGetImage, [AC_DEFINE(HAVE_X11) HAVE_X="true"], - HAVE_X="false", + HAVE_X11="false", $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS) # x11vnc only: - if test $HAVE_X = "true" -a "$build_x11vnc" = "yes"; then + if test $HAVE_X11 = "true" -a "$build_x11vnc" = "yes"; then X_PRELIBS="$X_PRELIBS -lXext" AC_CHECK_LIB(Xext, XShmGetImage, @@ -248,12 +248,12 @@ elif test "$X_CFLAGS" != "-DX_DISPLAY_MISSING"; then fi AC_SUBST(X_LIBS) -AM_CONDITIONAL(HAVE_X, test $HAVE_X != "false") +AM_CONDITIONAL(HAVE_X11, test $HAVE_X != "false") # x11vnc only: if test "$build_x11vnc" = "yes"; then -if test "x$HAVE_X" = "xfalse" -a "x$with_x" != "xno"; then +if test "x$HAVE_X11" = "xfalse" -a "x$with_x" != "xno"; then AC_MSG_ERROR([ ========================================================================== *** A working X window system build environment is required to build *** @@ -271,7 +271,7 @@ or for native Mac OS X), specify the --without-x configure option. ]) fi -if test "x$HAVE_X" = "xtrue" -a "x$HAVE_XTEST" != "xtrue"; then +if test "x$HAVE_X11" = "xtrue" -a "x$HAVE_XTEST" != "xtrue"; then AC_MSG_WARN([ ========================================================================== *** A working build environment for the XTEST extension was not found ***