AC_PREREQ(2.52)
-AC_INIT(grip, 3.3.1, http://sf.net/tracker/?group_id=3714&atid=103714)
+AC_INIT(grip, 3.4.0, [http://sf.net/tracker/?group_id=3714&atid=103714])
AC_CONFIG_SRCDIR(src/main.c)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_PROG_LIBTOOL
-PKG_CHECK_MODULES(GNOME, libgnomeui-2.0 >= 2.2.0,
- [LIBS="$LIBS $GNOME_LIBS"
- CFLAGS="$CFLAGS $GNOME_CFLAGS"])
+dnl Check for Gtk+-2.0
+PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.8, CFLAGS="${CFLAGS} $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS")
+
+dnl Check for popt library (popt doesn't use pkg-config)
+AC_CHECK_HEADER(popt.h, , AC_MSG_ERROR([popt header file not found.]))
+AC_CHECK_LIB(popt, poptGetContext, [LIBS="$LIBS -lpopt"], AC_MSG_ERROR([popt library not found.]))
PKG_CHECK_MODULES(TERMINAL_WIDGET, vte)
CFLAGS="$TERMINAL_WIDGET_CFLAGS $CFLAGS"