all repos — fluxbox @ e90c3678d9e54bc9251619fdee2d7341f042167b

custom fork of the fluxbox windowmanager

move #define SHAPE to config.h instead of -DSHAPE on command line
Mark Tiefenbruck mark@fluxbox.org
commit

e90c3678d9e54bc9251619fdee2d7341f042167b

parent

8e96ffb74b98b08ac35dcd1c861421c65a55cbe6

1 files changed, 12 insertions(+), 21 deletions(-)

jump to
M configure.inconfigure.in

@@ -178,32 +178,23 @@

Xext_lib="" dnl Check for XShape extension support and proper library files. -SHAPE="" AC_MSG_CHECKING([whether to build support for the XShape extension]) AC_ARG_ENABLE( - shape, [ --enable-shape enable support of the XShape extension ([default=yes])]) + shape, [ --enable-shape enable support of the XShape extension ([default=yes])], + if test x$enableval = "xyes"; then + AC_MSG_RESULT([yes]) + AC_CHECK_LIB(Xext, XShapeCombineShape, + AC_DEFINE(SHAPE, 1, "shaped window support") + LIBS="$LIBS -lXext") + else + AC_MSG_RESULT([no]) + fi, -: ${enableval="yes"} -if test x$enableval = "xyes"; then AC_MSG_RESULT([yes]) AC_CHECK_LIB(Xext, XShapeCombineShape, - AC_MSG_CHECKING([for X11/extensions/shape.h]) - AC_TRY_LINK( -#include <X11/Xlib.h> -#include <X11/Xutil.h> -#include <X11/extensions/shape.h> -, long foo = ShapeSet, - AC_MSG_RESULT([yes]) - SHAPE="-DSHAPE"; Xext_lib="-lXext", - AC_MSG_RESULT([no]) - ) - ) -else - AC_MSG_RESULT([no]) -fi -AC_SUBST(SHAPE) -CXXFLAGS="$CXXFLAGS $SHAPE" -LIBS="$LIBS $Xext_lib" + AC_DEFINE(SHAPE, 1, "shaped window support") + LIBS="$LIBS -lXext") +) dnl Check for the Slit AC_MSG_CHECKING([whether to include the Slit])