bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: gettext 0.17 build problem with libcroco


From: Bruno Haible
Subject: Re: gettext 0.17 build problem with libcroco
Date: Fri, 9 Nov 2007 13:27:20 +0100
User-agent: KMail/1.5.4

Paul Eggert wrote:
> > Can you look at the version of glib.h and glibconfig.h that you have 
> > installed?
> 
> Thanks, I didn't even know there was one there.  It is an old glib
> 1.2.8 version compiled by our system administrators long ago, for the
> wrong architecture no doubt.  It is in /usr/local/include.  It does
> not define G_BEGIN_DECLS.

Thanks for these details. So apparently the linker was picking up a libglib-2.0
correctly but the -I options pointed to an old glib.h or and old glibconfig.h.

I'm adding this protection:

2007-11-09  Bruno Haible  <address@hidden>

        * m4/libglib.m4 (gl_LIBGLIB): Ensure that the <glib.h> is from a glib
        version >= 2.0.
        Reported by Paul Eggert <address@hidden>.

*** m4/libglib.m4       28 Oct 2007 17:41:41 -0000      1.4
--- m4/libglib.m4       9 Nov 2007 12:26:56 -0000
***************
*** 1,5 ****
! # libglib.m4 serial 2 (gettext-0.17)
! dnl Copyright (C) 2006 Free Software Foundation, Inc.
  dnl This file is free software; the Free Software Foundation
  dnl gives unlimited permission to copy and/or distribute it,
  dnl with or without modifications, as long as this notice is preserved.
--- 1,5 ----
! # libglib.m4 serial 3 (gettext-0.17)
! dnl Copyright (C) 2006-2007 Free Software Foundation, Inc.
  dnl This file is free software; the Free Software Foundation
  dnl gives unlimited permission to copy and/or distribute it,
  dnl with or without modifications, as long as this notice is preserved.
***************
*** 35,41 ****
        dnl one that built the library.
        AC_LIB_LINKFLAGS_BODY([glib-2.0])
        LIBS="$gl_save_LIBS $LIBGLIB_2_0"
!       AC_TRY_LINK([#include <glib.h>],
          [g_string_new ("foo");],
          [gl_cv_libglib=yes
           gl_cv_LIBGLIB="$LIBGLIB_2_0"
--- 35,45 ----
        dnl one that built the library.
        AC_LIB_LINKFLAGS_BODY([glib-2.0])
        LIBS="$gl_save_LIBS $LIBGLIB_2_0"
!       AC_TRY_LINK([#include <glib.h>
! #ifndef G_BEGIN_DECLS
! error this glib.h includes a glibconfig.h from a glib version 1.x
! #endif
! ],
          [g_string_new ("foo");],
          [gl_cv_libglib=yes
           gl_cv_LIBGLIB="$LIBGLIB_2_0"
***************
*** 44,50 ****
        if test "$gl_cv_libglib" != yes; then
          gl_save_CPPFLAGS="$CPPFLAGS"
          CPPFLAGS="$CPPFLAGS $INCGLIB_2_0"
!         AC_TRY_LINK([#include <glib.h>],
            [g_string_new ("foo");],
            [gl_cv_libglib=yes
             gl_cv_LIBGLIB="$LIBGLIB_2_0"
--- 48,58 ----
        if test "$gl_cv_libglib" != yes; then
          gl_save_CPPFLAGS="$CPPFLAGS"
          CPPFLAGS="$CPPFLAGS $INCGLIB_2_0"
!         AC_TRY_LINK([#include <glib.h>
! #ifndef G_BEGIN_DECLS
! error this glib.h includes a glibconfig.h from a glib version 1.x
! #endif
! ],
            [g_string_new ("foo");],
            [gl_cv_libglib=yes
             gl_cv_LIBGLIB="$LIBGLIB_2_0"
***************
*** 56,62 ****
            dnl and /usr/lib/glib-2.0/include.
            if test -n "$LIBGLIB_2_0_PREFIX"; then
              CPPFLAGS="$gl_save_CPPFLAGS 
-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 
-I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
!             AC_TRY_LINK([#include <glib.h>],
                [g_string_new ("foo");],
                [gl_cv_libglib=yes
                 gl_cv_LIBGLIB="$LIBGLIB_2_0"
--- 64,74 ----
            dnl and /usr/lib/glib-2.0/include.
            if test -n "$LIBGLIB_2_0_PREFIX"; then
              CPPFLAGS="$gl_save_CPPFLAGS 
-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 
-I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
!             AC_TRY_LINK([#include <glib.h>
! #ifndef G_BEGIN_DECLS
! error this glib.h includes a glibconfig.h from a glib version 1.x
! #endif
! ],
                [g_string_new ("foo");],
                [gl_cv_libglib=yes
                 gl_cv_LIBGLIB="$LIBGLIB_2_0"





reply via email to

[Prev in Thread] Current Thread [Next in Thread]