Re: [gtk-list] autoconf woes



On Thu, Nov 18, 1999 at 12:59:07PM -0500, Aaron Walker wrote:
> I am setting up my program to use automake/autoconf.  Instead of writing
> configure.in from scratch, I just copied it from another project that I
> used it with.  I changed the following appropriately:
> 
> AC_INIT(gchat.c)
> AM_INIT_AUTOMAKE(gchat, 0.1)
> 
> Both automake and autoconf produce no errors.
> When I run ./configure, I get the following:
> 
> ./configure: syntax error near unexpected token
> 'AM_INIT_AUTOMAKE(gchat, '
> ./configure: ./configure: line 524:    'AM_INIT_AUTOMAKE(gchat, 0.1)'
> 
> How could this be if I copied the configure.in from a *working*
> configure.in and just changed the program-specific stuff.  If I cd to
> the directory of the other project and run configure, it works just
> fine.
> 
> Any ideas?
This took me quite some time too.

You need to run aclocal, maybe with an -I /usr/share/aclocal/gnome as option
to generate an aclocal.m4 that contains all needed macros. Do this before
running configure

Nils

--
Plug-and-Play is really nice, unfortunately it only works 50% of the time.
To be specific the "Plug" almost always works.            --unknown source

PGP signature



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