Subject: Automake 1.7.2 question
To: None <tech-pkg@NetBSD.ORG>
From: MLH <MLH@goathill.org>
List: tech-pkg
Date: 06/13/2003 01:19:14
There is a pkg I'm trying to build that was packaged with Automake
1.7.2 :

cd .. &&  /bin/sh /opt/pkgsrc/devel/qdp++/work.kingu/qdp++/config/missing
  --run automake-1.7 --gnu  examples/Makefile
configure.ac:6: version mismatch.  This is Automake 1.7.5,
configure.ac:6: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:6: comes from Automake 1.7.2.  You should recreate
configure.ac:6: aclocal.m4 with aclocal and run automake again.
*** Error code 1

Stop.
make: stopped in /opt/pkgsrc/devel/qdp++/work.kingu/qdp++/examples

Followed instructions and it doesn't appear to build the makefiles
correctly with 1.7.5 so I followed directions in Packages.txt :
and for packages that need automake and autoconf:

        AUTOMAKE_REQD=  1.7.1   # if default version is not good enough
        ...

        pre-configure:
                cd ${WRKSRC};                                           \
                ${ACLOCAL};                                             \
                ${AUTOHEADER};                                          \
                ${AUTOMAKE} -a --foreign -i;                            \
                ${AUTOCONF}

        ...
        .include "../mk/automake.mk"

resulting in:
---------------
DISTNAME=               qdp++-1.3.3
WRKSRC=                 ${WRKDIR}/qdp++
CATEGORIES=             devel
MASTER_SITES=           http://www.jlab.org/~edwards/qcdapi/code/level2/

MAINTAINER=             INSERT_YOUR_MAIL_ADDRESS_HERE
HOMEPAGE=               http://www.jlab.org/~edwards/qdp/
COMMENT=                SHORT_DESCRIPTION_OF_THE_PACKAGE

AUTOMAKE_REQD=  1.7.2
GNU_CONFIGURE=  yes
USE_GCC3=YES

pre-configure:
        cd ${WRKSRC};                                           \
        ${ACLOCAL};                                             \
        ${AUTOHEADER};                                          \
        ${AUTOMAKE} -a --foreign -i;                            \
        ${AUTOCONF}

.include "../../mk/automake.mk"
.include "../../mk/gcc.buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
------------------
Extracting for qdp++-1.3.3
===> Required installed package automake>=1.7.2: automake-1.7.5 found
===> Required installed package autoconf>=2.50: autoconf-2.57 found
===> Patching for qdp++-1.3.3
===> Configuring for qdp++-1.3.3
cd /opt/pkgsrc/devel/qdp++/work.kingu/qdp++;
/usr/pkg/bin/aclocal-1.7;
/usr/pkg/bin/autoheader;
/usr/pkg/bin/automake-1.7 -a --foreign -i;
/usr/pkg/bin/autoconf
autoheader: error: AC_CONFIG_HEADERS not found in configure.ac
*** Error code 1

Suggestions? Thanks