chiark / gitweb /
Compile to nothing in absence of GTK, for the benefit of parent packages
[mgLib] / configure.in
index 5f71233224f4ac598f1268c3868926fb3e6969f8..4ed36432b1ceca0ba425efa1e05a7e2b32174bf8 100644 (file)
@@ -1,6 +1,6 @@
 dnl -*-fundamental-*-
 dnl
-dnl $Id: configure.in,v 1.3 1999/03/24 22:22:59 mdw Exp $
+dnl $Id: configure.in,v 1.4 1999/03/25 23:36:08 mdw Exp $
 dnl
 dnl Configuration script for mgLib
 dnl
@@ -28,6 +28,10 @@ dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 dnl ----- Revision history --------------------------------------------------
 dnl
 dnl $Log: configure.in,v $
+dnl Revision 1.4  1999/03/25 23:36:08  mdw
+dnl Compile to nothing in absence of GTK, for the benefit of parent packages
+dnl which contain non-GTK-dependent parts.
+dnl
 dnl Revision 1.3  1999/03/24 22:22:59  mdw
 dnl Remove redundant call to AC_PROG_INSTALL.
 dnl
@@ -47,8 +51,9 @@ AC_CHECK_PROG(AR, ar, ar)
 AC_PROG_RANLIB
 
 AM_PATH_GTK(1.0.0,
-            [LIBS="$LIBS $GTK_LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS"],
-            [AC_MSG_ERROR([couldn't find GTK])])
+            [LIBS="$LIBS $GTK_LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS"
+            AC_DEFINE(HAVE_GTK)],
+            [AC_MSG_WARN([couldn't find GTK])])
 
 mdw_OPT_mLib_DEBUG(mgLib)