[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
Re: [XaraXtreme-dev] configure.in:305: error: possibly undefined macro: AM_GNU_GETTEXT
- From: Vasil Dimov <vd@xxxxxxxxxxx>
- Date: Fri, 2 Jun 2006 17:14:18 +0300
- Subject: Re: [XaraXtreme-dev] configure.in:305: error: possibly undefined macro: AM_GNU_GETTEXT
On Fri, Jun 02, 2006 at 02:48:04PM +0100, Ben Fowler wrote:
> On 02/06/06, Vasil Dimov <vd@xxxxxxxxxxx> wrote:
> >On Fri, Jun 02, 2006 at 02:24:43PM +0100, Ben Fowler wrote:
> >> On 02/06/06, Vasil Dimov <vd@xxxxxxxxxxx> wrote:
> >> [ snip ]
> >>
> >> Do you have a file 'binreloc.m4' ?
> >
> >Yes there is binreloc.m4 in the current directory, this is the extracted
> >http://downloads.xara.com/opensource/XaraLX-0.5r1239.tar.bz2
> >
>
> Thanks, Vasil.
>
> >Btw this is just a warning, the real problem is the GETTEXT macro.
>
> I don't claim to be a language lawyer, and if I were I would be very
> far from having a licence to practice within the autoconf
> jurisdiction; but it is quite common for these scripts to under-report
> errors and warnings, and I do assure than once your build tree is
> correctly established, you will not have that warning, and you must
> treat it as an error to be fixed.
>
> On the gettext question, you should go by what Alex has posted (which
> is correct).
But as Luke noticed this error appears during autoreconf, so obviously
it cannot be fixed by a ./configure parameters.
>
> Don't take this the wrong way if it seems abrupt, but could you
> confirm that all you did was download the provided source, check the
> instructions and attempt to build it starting from the command
> ./autogen.sh;
Not really, the following changes were applied after extracting the
archive, to make it work with version 1184 under FreeBSD:
--- freebsd_changes.diff begins here ---
diff -urN XaraLX-0.5r1239/configure.in /tmp/xaralx-devel/work/XaraLX-0.5r1239/configure.in
--- XaraLX-0.5r1239/configure.in Thu Jun 1 22:30:32 2006
+++ /tmp/xaralx-devel/work/XaraLX-0.5r1239/configure.in Fri Jun 2 16:56:38 2006
@@ -67,7 +67,7 @@
AC_PROG_INSTALL
# We don't need dlopen right now and it's not supported on Darwin
# AC_LIBTOOL_DLOPEN
-AC_PROG_LIBTOOL
+AC_PROG_RANLIB
AC_C_BIGENDIAN
AC_CHECK_SIZEOF(void*)
@@ -162,7 +162,6 @@
if echo $WX_CPPFLAGS | grep -q '__WXGTK__' ; then
WX_GTK="yes"
AC_MSG_RESULT([found])
- PKG_CHECK_MODULES(GTK, [gtk+-2.0])
else
AC_MSG_RESULT([not found])
fi
@@ -250,20 +249,7 @@
# GTK build, so call FTTEST function to test for FreeType
FTTEST
FT_CFLAGS="`$FTCONFIG --cflags`"
-
- # check for the Pango package
- PkgError="no"
- PKG_CHECK_MODULES(PANGOX, pangox,
- [
- PANGO_CFLAGS="$PANGOX_CFLAGS"
- ],
- [
- PkgError="yes"
- ]
- )
- if test PkgError = "yes"; then
- AC_MSG_ERROR([pangox library not found])
- fi
+ PANGO_CFLAGS=""
else
# non-GTK build, i.e., MacOS, so Pango and FreeType are not required
FT_CFLAGS=""
@@ -281,8 +267,8 @@
fi
# pass the Pango, FreeType and GTK flags (required for wxGTK font rendering)
-CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS $PANGO_CFLAGS $FT_CFLAGS $GTK_CFLAGS $LIBXML2_CFLAGS"
-CXXFLAGS="$CXXFLAGS $WX_CPPFLAGS $PANGO_CFLAGS $FT_CFLAGS $GTK_CFLAGS $LIBXML2_CFLAGS"
+CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS $PANGO_CFLAGS $FT_CFLAGS $GTK_CFLAGS $LIBXML2_CFLAGS $CPPFLAGS_APPEND"
+CXXFLAGS="$CXXFLAGS $WX_CPPFLAGS $PANGO_CFLAGS $FT_CFLAGS $GTK_CFLAGS $LIBXML2_CFLAGS $CPPFLAGS_APPEND"
AC_MSG_CHECKING([Linker])
case $host in
@@ -333,6 +319,7 @@
AM_CONDITIONAL(SVNVERSION_ENABLE, [test "$SvnVersionEnable" = "yes"])
AC_SUBST(TOPDIR)
+AC_SUBST(WX_CPPFLAGS)
AC_SUBST(WX_LIBS)
AC_SUBST(XRCINCLUDE)
AC_SUBST(XARALANGUAGE)
--- freebsd_changes.diff ends here ---
If I use the original configure.in 1:1 from the archive I get this
result:
(notice the actual autoreconf invocation)
cd /tmp/xaralx-devel/work/XaraLX-0.5r1239 && /usr/bin/env PATH=/usr/local/libexec/automake19:/usr/local/libexec/autoconf259:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin ACLOCAL=/usr/local/bin/aclocal19 AUTOMAKE=/usr/local/bin/automake19 AUTOCONF=/usr/local/bin/autoconf259 AUTOHEADER=/usr/local/bin/autoheader259 AUTOIFNAMES=/usr/local/bin/ifnames259 AUTOM4TE=/usr/local/bin/autom4te259 AUTORECONF=/usr/local/bin/autoreconf259 AUTOSCAN=/usr/local/bin/autoscan259 AUTOUPDATE=/usr/local/bin/autoupdate259 /usr/local/bin/autoreconf259 -f -s -i
/usr/X11R6/share/aclocal/libart.m4:11: warning: underquoted definition of AM_PATH_LIBART
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/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
aclocal:configure.in:9: warning: macro `AM_BINRELOC' not found in library
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
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.
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
*** Error code 1
--
Vasil Dimov
gro.DSBeerF@dv
Testing can show the presence of bugs, but not their absence.
-- Edsger W. Dijkstra