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

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



Vasil Dimov wrote:
On Fri, Jun 02, 2006 at 04:24:28PM +0100, Alex Bligh wrote:
[...]
Equally,
it /should/ be possible to write configure.in in a manner which
works on all platforms.


I have a strong will to do this, and hope to get some help from you
because I am not an autotools expert at all.

It sounds like autoconf is fundamentally not working as expected on
your system. At least 3 macros are simply not being found. Rather than
deleting macros, we should be finding out why.


I am working towards this way. This is what I get from *unmodified*
configure.in from version 1241:


--- cut ---
cd /tmp/xaralx-devel/work/XaraLX-0.5r1241 && /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 -B /usr/local/share/aclocal -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:315: warning: macro `AM_GNU_GETTEXT' not found in library
aclocal:configure.in:316: warning: macro `AM_GNU_GETTEXT_VERSION' not found in library
configure.in:66: 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:315: error: possibly undefined macro: AM_GNU_GETTEXT
configure.in:316: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
autoreconf259: /usr/local/bin/autoconf259 failed with exit status: 1
*** Error code 1
--- cut ---
Vasil,

Is gettext.m4 in /usr/local/share/aclocal (or maybe /usr/local/X11R6/share/aclocal)? If so it may be worth copying it into /usr/X11R6/share/aclocal since this seems to be where your *.m4 files are coming from (verify this by executing 'aclocal --print-ac-dir'). You'll need to call aclocal after doing this, althought this should be done by autoreconf -f -i -s anyway.

If this is the case, the problem is just that you installed gettext in a not very standard place.

   Luke