glib-2.0.m4 cause some error



With latest glib (CVS HEAD) and pkg-config 0.6 installed,
the configure script of pango produces some errors.
(I know that pkg-configure 0.7 is required, and with pkg-config 0.7, 
these errors will not occur)

> checking for pkg-config... /usr/bin/pkg-config
> AUTHORS COPYING CVS ChangeLog INSTALL Makefile.am Makefile.in NEWS README README.win32 TODO TODO.xml acconfig.h aclocal.m4 autogen.sh confdefs.h config.cache config.guess config.h.in config.h.win32 config.log config.sub configure configure.in debian docs examples fonts install-sh libtool ltmain.sh missing mkinstalldirs modules pango pango-config.in pango-uninstalled.pc.in pango.pc.in pango.spec.in pangoft2-uninstalled.pc.in pangoft2.pc.in pangox-uninstalled.pc.in pangox.pc.in pangoxft-uninstalled.pc.in pangoxft.pc.in stamp-h.in tests tools pkg-config too old
> ./configure: version: command not found
> ./configure: no: command not found
> checking for GLIB - version >= 1.3.5... ./configure: no: command not found
> ./configure: no_glib: command not found
> no
>*** A new enough version of pkg-config was not found.
>*** See http://pkgconfig.sourceforge.net
>checking Whether to build OpenType test programs... no
>checking modules to link statically... 

These are caused by glib-2.0.m4, and can be fixed by the following
patch.

*************
--- glib-2.0.m4.orig	Sun Jun 10 20:40:19 2001
+++ glib-2.0.m4	Sun Jun 10 23:48:18 2001
@@ -36,9 +36,9 @@
     if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
       :
     else
-      echo *** pkg-config too old; version 0.7 or better required.
       no_glib=yes
       PKG_CONFIG=no
+      AC_MSG_ERROR(*** pkg-config too old; version 0.7 or better required.)
     fi
   fi
 
@@ -54,7 +54,7 @@
   if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
         :
   else
-        no_glib = yes
+        no_glib=yes
   fi
 
   if test x"$no_glib" = x ; then
*************

  KUSANO Takayuki <URL:http://www.asahi-net.or.jp/~AE5T-KSN/>




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