summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2012-01-12 10:17:01 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2012-01-12 10:17:01 +0000
commit8e6b3914ef77fc80af9fc5ca84b755c84551a245 (patch)
treeac6c9bba3f52209020ab7365dcd8a04f591c164a
parent7ca37b6e58a8aed699fd2d461fcbb9a2704550a7 (diff)
downloadclutter-8e6b3914ef77fc80af9fc5ca84b755c84551a245.tar.gz
build: Remove a bunch of useless checks
Some pkg-config dependencies are still there from the days when Cogl was in tree - and even then, they barely made sense.
-rw-r--r--.gitignore1
-rw-r--r--configure.ac33
2 files changed, 6 insertions, 28 deletions
diff --git a/.gitignore b/.gitignore
index 458c5bc14..75c50b470 100644
--- a/.gitignore
+++ b/.gitignore
@@ -76,6 +76,7 @@ TAGS
/tests/conform/test-launcher.sh
/tests/interactive/wrapper.sh
/po/POTFILES
+/po/clutter-1.0.pot
/po/*.gmo
/po/Makefile.in.in
/po/Makevars.template
diff --git a/configure.ac b/configure.ac
index cc1e5512f..f33efd4f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -272,26 +272,13 @@ AS_IF([test "x$enable_x11" = "xyes"],
SUPPORT_GLX=1
SUPPORT_COGL=1
- # Mesa 7.3 added a GL pkg-config file, finally, but if a pkg-config
- # file isn't found just add -lGL and hope for the best.
- PKG_CHECK_EXISTS([gl],
- [BACKEND_PC_FILES="$BACKEND_PC_FILES gl"],
- [FLAVOUR_LIBS="$FLAVOUR_LIBS -lGL"])
-
- # We might fall back to DRM for sync-to-vblank on GLX
- PKG_CHECK_EXISTS([libdrm],
- [
- AC_DEFINE([HAVE_DRM], [1], [Have libdrm support])
- BACKEND_PC_FILES="$BACKEND_PC_FILES libdrm"
- ],
- [])
-
- # we use fontconfig API and pango-fc when the fontconfig
- # configuration changes
+ # we use fontconfig API and pango-ft2 when the fontconfig
+ # configuration changes; we don't expose any API for this
+ # so we add pango-ft2 to the private Requires.
PKG_CHECK_EXISTS([pangoft2],
[
AC_DEFINE([HAVE_PANGO_FT2], [1], [Supports PangoFt2])
- BACKEND_PC_FILES="$BACKEND_PC_FILES pangoft2"
+ BACKEND_PC_FILES_PRIVATE="$BACKEND_PC_FILES_PRIVATE pangoft2"
],
[])
@@ -307,7 +294,6 @@ AS_IF([test "x$enable_gdk" = "xyes"],
SUPPORT_COGL=1
BACKEND_PC_FILES="$BACKEND_PC_FILES gdk-3.0"
- PKG_CHECK_EXISTS([gl], [BACKEND_PC_FILES="$BACKEND_PC_FILES gl"], [])
])
AS_IF([test "x$enable_wayland" = "xyes"],
@@ -404,13 +390,6 @@ AS_IF([test "x$enable_egl" = "xyes"],
SUPPORT_EGL=1
SUPPORT_COGL=1
- # if Mesa has support for egl, we can use it as well
- PKG_CHECK_EXISTS([egl],
- [
- BACKEND_PC_FILES="$BACKEND_PC_FILES egl"
- ],
- [])
-
FLAVOUR_LIBS="$FLAVOUR_LIBS $TSLIB_LIBS $EVDEV_LIBS"
FLAVOUR_CFLAGS="$FLAVOUR_CFLAGS $TSLIB_CFLAGS $EVDEV_CFLAGS"
@@ -496,8 +475,6 @@ AM_CONDITIONAL(SUPPORT_OSX, [test "x$SUPPORT_OSX" = "x1"])
AM_CONDITIONAL(SUPPORT_WIN32, [test "x$SUPPORT_WIN32" = "x1"])
AM_CONDITIONAL(SUPPORT_CEX100, [test "x$SUPPORT_CEX100" = "x1"])
AM_CONDITIONAL(SUPPORT_WAYLAND, [test "x$SUPPORT_WAYLAND" = "x1"])
-AM_CONDITIONAL(SUPPORT_STUB, [test "x$SUPPORT_WIN32" = "x1" -o \
- "x$SUPPORT_OSX" = "x1"])
AM_CONDITIONAL(USE_COGL, [test "x$SUPPORT_COGL" = "x1"])
AM_CONDITIONAL(USE_TSLIB, [test "x$have_tslib" = "xyes"])
@@ -964,7 +941,7 @@ CLUTTER_REQUIRES="$CLUTTER_BASE_PC_FILES $BACKEND_PC_FILES"
PKG_CHECK_MODULES(CLUTTER_DEPS, [$CLUTTER_REQUIRES])
AC_SUBST(CLUTTER_REQUIRES)
-AS_IF([test "x$CLUTTER_BASE_PC_FILES_PRIVATE" != "x" && test "x$BACKEND_PC_FILES_PRIVATE" != "x"],
+AS_IF([test "x$CLUTTER_BASE_PC_FILES_PRIVATE" != "x" -o test "x$BACKEND_PC_FILES_PRIVATE" != "x"],
[
CLUTTER_REQUIRES_PRIVATE="$CLUTTER_BASE_PC_FILES_PRIVATE $BACKEND_PC_FILES_PRIVATE"
PKG_CHECK_MODULES(CLUTTER_DEPS_PRIVATE, [$CLUTTER_REQUIRES_PRIVATE])