Hello Enrico,

Friday, December 21, 2001, 11:40:57 AM, you wrote:

ES> Hello,

ES> while trying to build the avifile-20011220 snapshot with installed
ES> autoconf-2.52f and automake-1.5, I get

ES> | $ configure
ES> | ...
ES> | 
ES> | $ LANG=C make
ES> | cd . && /bin/sh /var/volatile/rpm/SOURCES/avifile0.6-20011220/missing --run 
aclocal 
ES> | cd . && \
ES> | /bin/sh /var/volatile/rpm/SOURCES/avifile0.6-20011220/missing --run automake 
--foreign  Makefile
ES> | cd . && perl admin/am_edit --foreign-libtool --no-final Makefile.in
ES> | Can't open perl script "admin/am_edit": No such file or directory
ES> | make: *** [Makefile.in] Error 2

Did you run autogen.sh?

ES> Probably, this is caused by automake which detects a change somewhere and
ES> tries to rebuild all Makefile's. Such unwanted changes on user-side can
ES> be bypassed by using the AM_MAINTAINER_MODE macro in the configure.in.
ES> Developers will have to use './configure --enable-maintainer-mode' to
ES> achieve the current behavior (regenerating Makefile when Makefile.am has
ES> been changed).

ES> The attached patch will add this macro.

It is arguable that this behavior is really unwanted, since you
wouldn't have modified one of makefile.am's without reason...

ES> There are some other issues leading to some incompatibility with the GNU
ES> buildsystem. E.g., automake requires the files NEWS and AUTHORS. These
ES> files are missing in all three subdirs which are having a ./configure. This
ES> strictness can be removed by an

ES> | AUTOMAKE_OPTIONS = foreign

Or by '--foreign' option in autogen.sh.

ES> in the appropriate Makefile.am. I suggest to add the NEWS and AUTHORS
ES> files to the toplevel directory and to add the AUTOMAKE_OPTIONS to

ES>                         ./libmmxnow/Makefile.am
ES> and
ES>                   ./plugins/libmad/libmad/Makefile.am


ES> Another issue shown by 'autoreconf' is

ES> | configure.in:64: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET

ES> I am not sure if it is an automake bug or an avifile one; the AC_ARG_PROGRAM
ES> is implicitly called by AM_INIT_AUTOMAKE. To circumvent it, just move the
ES> AC_CANONICAL* stuff before AM_INIT_AUTOMAKE.

This must be a bug of autoconf/automake. Info page of automake says
that AM_INIT_AUTOMAKE is supposed to be right after AC_INIT.


-- 
Best regards,
 Eugene                            mailto:[EMAIL PROTECTED]


_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to