summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2005-07-11 22:28:03 +0000
committerKeith Packard <keithp@keithp.com>2005-07-11 22:28:03 +0000
commit0e95afc461f8f72759911400f664a05a6cd90312 (patch)
treee77a426530360a41ac47821bc2c6b4c24c6d25f0
parent7098e81fd4d933ca922431280579049396466d23 (diff)
Require modular X library. Unify dependency _CFLAGS/_LIBS
-rw-r--r--ChangeLog7
-rw-r--r--configure.ac47
-rw-r--r--xcomposite.pc.in6
3 files changed, 13 insertions, 47 deletions
diff --git a/ChangeLog b/ChangeLog
index 3fa7b32..b9d492a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-07-11 Keith Packard <keithp@keithp.com>
+
+ * configure.ac:
+ * xcomposite.pc.in:
+ Require modular X library.
+ Unify dependency _CFLAGS/_LIBS
+
2004-11-22 Carl Worth <cworth@cworth.org>
* configure.ac: Remove AC_CONFIG_AUX_DIR (it was in the wrong
diff --git a/configure.ac b/configure.ac
index 9f065af..507f376 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,47 +44,6 @@ AM_CONFIG_HEADER(config.h)
AC_PROG_CC
AC_PROG_LIBTOOL
-# Check for X
-PKG_CHECK_MODULES(X, xproto,
- [x_found_with_pkgconfig=yes],
- [x_found_with_pkgconfig=no])
-AC_SUBST(X_CFLAGS)
-AC_SUBST(X_LIBS)
-
-if test "$x_found_with_pkgconfig" = "no"
-then
- AC_PATH_XTRA
- X_LIBS="$X_LIBS -lX11"
-
- if test "x$no_x" = "xyes"
- then
- AC_MSG_ERROR([X is required, but it was either disabled or not found.])
- fi
-
- save_LIBS="$LIBS"
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $X_CFLAGS"
- LIBS="$LIBS $X_LIBS"
-
- AC_MSG_CHECKING([for XTHREADS in Xlib])
- AC_RUN_IFELSE(
- [AC_LANG_PROGRAM([[#include <X11/Xlib.h>]],
- [[return XInitThreads() == 0 ? 0 : 1;]])],
- [xthreads=no],
- [xthreads=yes],
- [xthreads=yes])
-
- AC_MSG_RESULT($xthreads)
-
- LIBS="$save_LIBS"
- CFLAGS="$save_CFLAGS"
-
- if test "x$xthreads" = "xyes"
- then
- X_CFLAGS="$X_CFLAGS -DXTHREADS"
- fi
-fi
-
# Check compositeext configuration, strip extra digits from package version to
# find the required protocol version
@@ -92,9 +51,9 @@ if test "$VERSION" = "" ; then
VERSION=$PACKAGE_VERSION;
fi
COMPOSITEEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`]
-PKG_CHECK_MODULES(XCOMPOSITE, [compositeproto >= $COMPOSITEEXT_VERSION] xfixes)
-AC_SUBST(XCOMPOSITE_CFLAGS)
-AC_SUBST(XCOMPOSITE_LIBS)
+PKG_CHECK_MODULES(DEP, [compositeproto >= $COMPOSITEEXT_VERSION] x11)
+AC_SUBST(DEP_CFLAGS)
+AC_SUBST(DEP_LIBS)
AC_OUTPUT([Makefile
src/Makefile
diff --git a/xcomposite.pc.in b/xcomposite.pc.in
index 2d47fa4..2e51c29 100644
--- a/xcomposite.pc.in
+++ b/xcomposite.pc.in
@@ -3,8 +3,8 @@ exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
-Name: Xdamage
+Name: Xcomposite
Description: X Composite Library
Version: @PACKAGE_VERSION@
-Cflags: -I${includedir} @XCOMPOSITE_CFLAGS@ @X_CFLAGS@
-Libs: -L${libdir} -lXcomposite @XCOMPOSITE_LIBS@ @X_LIBS@
+Cflags: -I${includedir} @DEP_CFLAGS@
+Libs: -L${libdir} -lXcomposite @DEP_LIBS@