glib-2.0.m4 patch



Don't even bother with GLib stuff if pkg-config is not found or too old.

--- glib-2.0.m4.orig    Wed Apr 18 09:43:17 2001
+++ glib-2.0.m4 Wed Apr 18 09:48:09 2001
@@ -30,11 +31,7 @@

   AC_PATH_PROG(PKG_CONFIG, pkg-config, no)

-  min_glib_version=ifelse([$1], ,1.3.3,$1)
-  AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
-
   no_glib=""
-
   if test x$PKG_CONFIG != xno ; then
     if pkg-config --atleast-pkgconfig-version 0.5 ; then
       :
@@ -46,6 +43,9 @@
   fi

   if test x"$no_glib" = x ; then
+    min_glib_version=ifelse([$1], ,1.3.3,$1)
+    AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
+
     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \






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