Subject: Re: problems building graphics/mng
To: =?ISO-8859-1?Q?C=E9sar_Catri=E1n?= C. <ccatrian@eml.cc>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-pkg
Date: 05/28/2004 19:31:32
On Fri, 28 May 2004, C=E9sar Catri=E1n C. wrote:

> can someone help me with this please?
>
> =3D=3D=3D> Configuring for mng-1.0.7
> cd /home/cetrox/src/pkgsrc/graphics/mng/work.core/libmng-1.0.7;     /bin/=
ln -sf makefiles/configure.in .;       /bin/ln -sf makefiles/Makefile.am .;=
  /usr/pkg/bin/aclocal-1.8;     /usr/pkg/bin/libtoolize --automake;  /usr/p=
kg/bin/automake-1.8 -a --foreign -i;   /usr/pkg/bin/autoconf
[...]
> configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
> configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAK=
E,
> configure.in: that aclocal.m4 is present in the top-level directory,
> configure.in: and that aclocal.m4 was recently regenerated (using aclocal=
).
> configure.in: installing `./install-sh'
> configure.in: installing `./missing'
> Makefile.am:12: Libtool library used but `LIBTOOL' is undefined
> Makefile.am:12:
> Makefile.am:12: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBT=
OOL'
> Makefile.am:12: to `configure.in' and run `aclocal' and `autoconf' again.
> configure.in:8: error: possibly undefined macro: AM_INIT_AUTOMAKE
>       If this token and others are legitimate, please use m4_pattern_allo=
w.
>       See the Autoconf documentation.
> configure.in:17: error: possibly undefined macro: AM_C_PROTOTYPES
> configure.in:21: error: possibly undefined macro: AM_PROG_LIBTOOL
> *** Error code 1
>
> Stop.
> make: stopped in /home/cetrox/src/pkgsrc/graphics/mng

I can't reproduce the problem readily (NetBSD 1.6ZL, automake 1.8.3),
but it does look like this software was originally using automake 1.3.
Try forcing 1.4, the oldest version pkgsrc can readily force, with the
following patch, and let us know how it works out.

Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/graphics/mng/Makefile,v
retrieving revision 1.16
diff -u -r1.16 Makefile
--- Makefile=096 Apr 2004 09:17:56 -0000=091.16
+++ Makefile=0929 May 2004 00:22:14 -0000
@@ -17,6 +17,9 @@
 GNU_CONFIGURE=3D=09=09yes
 USE_LIBTOOL=3D=09=09yes

+AUTOMAKE_REQD=3D=09=091.4
+AUTOCONF_REQD=3D=09=092.58
+
 CONFIGURE_ARGS+=3D=09--with-jpeg=3D${BUILDLINK_PREFIX.jpeg}
 CONFIGURE_ARGS+=3D=09--with-lcms=3D${BUILDLINK_PREFIX.lcms}
 CPPFLAGS+=3D=09=09${BUILDLINK_CPPFLAGS.lcms}


Frederick