diff options
-rw-r--r-- | configure.in | 33 |
1 files changed, 12 insertions, 21 deletions
diff --git a/configure.in b/configure.in index 6e6e7d0..99889fa 100644 --- a/configure.in +++ b/configure.in | |||
@@ -178,32 +178,23 @@ fi | |||
178 | Xext_lib="" | 178 | Xext_lib="" |
179 | 179 | ||
180 | dnl Check for XShape extension support and proper library files. | 180 | dnl Check for XShape extension support and proper library files. |
181 | SHAPE="" | ||
182 | AC_MSG_CHECKING([whether to build support for the XShape extension]) | 181 | AC_MSG_CHECKING([whether to build support for the XShape extension]) |
183 | AC_ARG_ENABLE( | 182 | AC_ARG_ENABLE( |
184 | shape, [ --enable-shape enable support of the XShape extension ([default=yes])]) | 183 | shape, [ --enable-shape enable support of the XShape extension ([default=yes])], |
184 | if test x$enableval = "xyes"; then | ||
185 | AC_MSG_RESULT([yes]) | ||
186 | AC_CHECK_LIB(Xext, XShapeCombineShape, | ||
187 | AC_DEFINE(SHAPE, 1, "shaped window support") | ||
188 | LIBS="$LIBS -lXext") | ||
189 | else | ||
190 | AC_MSG_RESULT([no]) | ||
191 | fi, | ||
185 | 192 | ||
186 | : ${enableval="yes"} | ||
187 | if test x$enableval = "xyes"; then | ||
188 | AC_MSG_RESULT([yes]) | 193 | AC_MSG_RESULT([yes]) |
189 | AC_CHECK_LIB(Xext, XShapeCombineShape, | 194 | AC_CHECK_LIB(Xext, XShapeCombineShape, |
190 | AC_MSG_CHECKING([for X11/extensions/shape.h]) | 195 | AC_DEFINE(SHAPE, 1, "shaped window support") |
191 | AC_TRY_LINK( | 196 | LIBS="$LIBS -lXext") |
192 | #include <X11/Xlib.h> | 197 | ) |
193 | #include <X11/Xutil.h> | ||
194 | #include <X11/extensions/shape.h> | ||
195 | , long foo = ShapeSet, | ||
196 | AC_MSG_RESULT([yes]) | ||
197 | SHAPE="-DSHAPE"; Xext_lib="-lXext", | ||
198 | AC_MSG_RESULT([no]) | ||
199 | ) | ||
200 | ) | ||
201 | else | ||
202 | AC_MSG_RESULT([no]) | ||
203 | fi | ||
204 | AC_SUBST(SHAPE) | ||
205 | CXXFLAGS="$CXXFLAGS $SHAPE" | ||
206 | LIBS="$LIBS $Xext_lib" | ||
207 | 198 | ||
208 | dnl Check for the Slit | 199 | dnl Check for the Slit |
209 | AC_MSG_CHECKING([whether to include the Slit]) | 200 | AC_MSG_CHECKING([whether to include the Slit]) |