diff options
author | rhp <rhp> | 2001-06-22 06:21:44 +0000 |
---|---|---|
committer | rhp <rhp> | 2001-06-22 06:21:44 +0000 |
commit | 043b048c5583e6db1e10a92f1b7c9d0f9c4c6149 (patch) | |
tree | 3d30b3e6dd7d62d7eef8c312632f886e430280e1 /configure.in | |
parent | 67d9ca1d9f4cfa1a97b6815a47e86acb38737c9f (diff) | |
download | metacity-043b048c5583e6db1e10a92f1b7c9d0f9c4c6149.tar.gz |
...
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.in b/configure.in index b4631cc9..7150d923 100644 --- a/configure.in +++ b/configure.in @@ -43,6 +43,25 @@ AM_GNU_GETTEXT ## here we get the flags we'll actually use PKG_CHECK_MODULES(METACITY, gtk+-2.0 >= 1.3.6) +CFLAGS="$METACITY_CFLAGS $CFLAGS" + +found_sm=false +case "$METACITY_LIBS" in + *-lSM*) + found_sm=true + ;; + *) + AC_CHECK_LIB(SM, SmcSaveYourselfDone, + AC_CHECK_HEADERS(X11/SM/SMlib.h, + METACITY_LIBS="-lSM -lICE $METACITY_LIBS" found_sm=true), + , $METACITY_LIBS) + ;; +esac + +if test "$found_sm" = "true"; then + AC_DEFINE(HAVE_SM) +fi + # Check for shaped window extension AC_CHECK_LIB(Xext, XShapeCombineMask, AC_DEFINE(HAVE_SHAPE_EXT),,$METACITY_LIBS) |