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

Re: [XaraXtreme-dev] configure.in:305: error: possibly undefined macro: AM_GNU_GETTEXT



OK, I understand looking for ranlib, but why drop the libtool stuff?
(not that I can immediately think what it is used for).

@@ -162,7 +162,6 @@
if echo $WX_CPPFLAGS | grep -q '__WXGTK__' ; then WX_GTK="yes"
-		PKG_CHECK_MODULES(GTK, [gtk+-2.0])
 		AC_MSG_RESULT([not found])

We need the check for GTK. Reason for deletion? This puts the
GTK libraries directly on the link line which is necessary for
some things, as well as providing their headers on the include

@@ -250,20 +249,7 @@
 	# GTK build, so call FTTEST function to test for FreeType
 	FT_CFLAGS="`$FTCONFIG --cflags`"
-	# check for the Pango package
-	PkgError="no"
-			  [
-			  ],
-			  [
-				PkgError="yes"
-			  ]
-			  )
-	if test PkgError = "yes"; then
-		AC_MSG_ERROR([pangox library not found])
-	fi

This looks for pango, and includes its CFLAGS which is needed
for rendering. Surely FreeBSD supports Pango?

 # pass the Pango, FreeType and GTK flags (required for wxGTK font rendering)

Where are CPPFLAGS_APPEND defined? Should the last one be


Where is that used?

Original errors:
/usr/X11R6/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
/usr/X11R6/share/aclocal/imlib.m4:167: warning: underquoted definition of AM_PATH_GDK_IMLIB
/usr/X11R6/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
/usr/X11R6/share/aclocal/gdk-pixbuf.m4:12: warning: underquoted definition of AM_PATH_GDK_PIXBUF

Those are mostly harmless - it just means the macros were written before
automake got so fussy about quoting.

aclocal:configure.in:9: warning: macro `AM_BINRELOC' not found in library

Luke should have just fixed that.

aclocal:configure.in:319: warning: macro `AM_GNU_GETTEXT' not found in library
aclocal:configure.in:320: warning: macro `AM_GNU_GETTEXT_VERSION' not found in library

Those would seem to indicate that somehow autoreconf isn't picking up
the gettext macros. This is clearly a problem. Note at this stage it
is a warning.

configure.in:70: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

Don't know what this is used for in practice.

configure.in:319: error: possibly undefined macro: AM_GNU_GETTEXT
configure.in:320: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
autoreconf259: /usr/local/bin/autoconf259 failed with exit status: 1

Here's the same problem as above. I had thought that you were allowed
undefined macros (they just didn't expand and gave a warning) provided
code didn't actually pass through them. Looks like I am wrong.

You write:
> gettext.m4 is available here:
>   /usr/local/share/aclocal/gettext.m4

At a guess, does that define AM_GETTEXT rather than AM_GNU_GETTEXT?

But I still don't understand the necessity to delete all the pango
stuff. How can font rendering work without it?