summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorrhp <rhp>2001-06-02 04:14:18 +0000
committerrhp <rhp>2001-06-02 04:14:18 +0000
commite47c4d16a27aae7c3b8831b9855f25a9dfb8473f (patch)
tree7eed1568650b2cc6248312d6359cea522df599ce /configure.in
parent31d6e2dca070048c339cf7b418ff51d74192b121 (diff)
downloadmetacity-e47c4d16a27aae7c3b8831b9855f25a9dfb8473f.tar.gz
metacity-e47c4d16a27aae7c3b8831b9855f25a9dfb8473f.tar.bz2
...
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in73
1 files changed, 73 insertions, 0 deletions
diff --git a/configure.in b/configure.in
new file mode 100644
index 0000000..33e4dc9
--- /dev/null
+++ b/configure.in
@@ -0,0 +1,73 @@
+AC_INIT(src/display.c)
+
+AM_CONFIG_HEADER(config.h)
+
+AM_INIT_AUTOMAKE(metacity, 2.3)
+
+GETTEXT_PACKAGE=metacity
+AC_SUBST(GETTEXT_PACKAGE)
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
+
+AM_MAINTAINER_MODE
+
+AC_PROG_CC
+AC_ISC_POSIX
+AC_HEADER_STDC
+AC_ARG_PROGRAM
+AM_PROG_LIBTOOL
+
+changequote(,)dnl
+if test "x$GCC" = "xyes"; then
+ case " $CFLAGS " in
+ *[\ \ ]-Wall[\ \ ]*) ;;
+ *) CFLAGS="$CFLAGS -Wall" ;;
+ esac
+
+ if test "x$enable_ansi" = "xyes"; then
+ case " $CFLAGS " in
+ *[\ \ ]-ansi[\ \ ]*) ;;
+ *) CFLAGS="$CFLAGS -ansi" ;;
+ esac
+
+ case " $CFLAGS " in
+ *[\ \ ]-pedantic[\ \ ]*) ;;
+ *) CFLAGS="$CFLAGS -pedantic" ;;
+ esac
+ fi
+fi
+changequote([,])dnl
+
+ALL_LINGUAS=""
+AM_GNU_GETTEXT
+
+if test -z "$PKG_CONFIG"; then
+ AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+fi
+
+## see if we have Pango built with xft support
+if $PKG_CONFIG --exists pangoxft ; then
+ PANGO_PACKAGES="pangox pangoxft"
+ have_xft=true
+ AC_DEFINE(HAVE_XFT)
+else
+ PANGO_PACKAGES="pangox"
+ have_xft=false
+fi
+AM_CONDITIONAL(HAVE_XFT, $have_xft)
+
+## here we get the flags we'll actually use
+PKG_CHECK_MODULES(UISLAVE, gtk+-2.0 >= 1.3.5)
+PKG_CHECK_MODULES(METACITY, $PANGO_PACKAGES)
+
+# Check for shaped window extension
+AC_CHECK_LIB(Xext, XShapeCombineMask, AC_DEFINE(HAVE_SHAPE_EXT),,$METACITY_LIBS)
+
+AC_OUTPUT([
+Makefile
+intl/Makefile
+po/Makefile.in
+src/Makefile
+src/uislave/Makefile
+])
+
+