classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Explictly test for Xtest extension library


From: Mark Wielaard
Subject: [cp-patches] Explictly test for Xtest extension library
Date: Thu, 06 Jan 2005 13:52:21 +0100

Hi,

The GdkRobot support needs the Xtest extension library to compile and
link properly. This patch adds explicit configure tests for it:

2005-01-06  Mark Wielaard  <address@hidden>

        * configure.ac: Add explicit X and libXtst tests when gtk+ peers are
        enabled.

This should help those having problems compiling the native gtk-peer
stuff by pointing out early that required libraries are missing.

Committed,

Mark

--- configure.ac        3 Jan 2005 12:20:54 -0000       1.67
+++ configure.ac        6 Jan 2005 12:41:37 -0000
@@ -225,6 +225,13 @@
   dnl Check for AWT related gthread/gtk/libart_lgpl
   if test "x${COMPILE_GTK_PEER}" = xyes; then
      AC_PATH_XTRA
+     if test "$no_x" = yes; then
+         AC_MSG_ERROR([GTK+ peers requested but no X library available])
+     fi
+     dnl We explicitly want the XTest Extension for Robot support.
+     AC_CHECK_LIB([Xtst], [XTestQueryExtension], [true],
+                 [AC_MSG_ERROR([libXtst NOT found, required for GdkRobot])],
+                 [${X_LIBS}])
      PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 libart-2.0)
      AC_SUBST(GTK_CFLAGS)
      AC_SUBST(GTK_LIBS)

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]