# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1045675601 0 # Node ID 18ecaae9cc3b56497921344f66605258947fd2ec # Parent 967b8cd9deb405171d2a3c08d625b9926d977bc9 Changed configure to make sure we find gtk 2.0, and not just pkg-config, when checking for GTK 2.x versus GTK 1.x. diff -r 967b8cd9deb4 -r 18ecaae9cc3b configure --- a/configure Wed Feb 19 11:14:29 2003 +0000 +++ b/configure Wed Feb 19 17:26:41 2003 +0000 @@ -1196,8 +1196,8 @@ ac_config_headers="$ac_config_headers config.h" -DW_MAJOR_VERSION=0 -DW_MINOR_VERSION=5 +DW_MAJOR_VERSION=1 +DW_MINOR_VERSION=0 DW_SUB_VERSION=0 @@ -3615,7 +3615,11 @@ echo "${ECHO_T}no" >&6 fi -if test x"$PKG_CFG" = x; then +if test x"$PKG_CFG" != x; then + GTK_LIBS=`$PKG_CFG --silence-errors --libs gtk+-2.0 gthread-2.0` +fi + +if test x"$GTK_LIBS" = x; then # Check whether --with-glib-prefix or --without-glib-prefix was given. if test "${with_glib_prefix+set}" = set; then diff -r 967b8cd9deb4 -r 18ecaae9cc3b configure.in --- a/configure.in Wed Feb 19 11:14:29 2003 +0000 +++ b/configure.in Wed Feb 19 17:26:41 2003 +0000 @@ -50,7 +50,11 @@ AC_CHECK_LIB(resolv, gethostbyname, LIBS="$LIBS -lresolv",) AC_CHECK_PROG(PKG_CFG, pkg-config, pkg-config) -if test x"$PKG_CFG" = x; then +if test x"$PKG_CFG" != x; then + GTK_LIBS=`$PKG_CFG --silence-errors --libs gtk+-2.0 gthread-2.0` +fi + +if test x"$GTK_LIBS" = x; then AM_PATH_GLIB(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(Cannot find GLIB: Is glib-config in path?))) AM_PATH_GTK(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?)), gthread) AM_PATH_GDK_IMLIB(1.9.4, AC_DEFINE(USE_IMLIB), AC_MSG_ERROR(IMLIB not found or too old. Dynamic Windows cannot build without it.))