automake
[Top][All Lists]
Advanced

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

Re: Automake 1.12.0b test release


From: Bob Friesenhahn
Subject: Re: Automake 1.12.0b test release
Date: Sun, 20 May 2012 15:38:32 -0500 (CDT)
User-agent: Alpine 2.01 (GSO 1266 2009-07-14)

On Sun, 20 May 2012, Stefano Lattarini wrote:

What is the workaround for this?

Yes: the version-generating script should be executed at autoconf runtime 
instead;
here is what GNU coreutils does, for example:

 AC_INIT([GNU coreutils],
          m4_esyscmd([build-aux/git-version-gen .tarball-version]),
          address@hidden)

This usage is also compatible with older Automake versions BTW, so you could
start using it right now if you want.

I looked at what coreutils does and am still confused. The script in coreutils refers to $srcdir in its help message. However, in the context where my script gets executed, $srcdir is not defined. I am not seeing how the coreutils approach works unless configure is executed in the source tree (something I only do for testing). How does one find the top source directory?

AC_INIT(m4_esyscmd([$srcdir/scripts/pkginfo.sh package]),
        m4_esyscmd([$srcdir/scripts/pkginfo.sh version]),
        m4_esyscmd([$srcdir/scripts/pkginfo.sh bugslist]))

Ideas?

CDPATH="${ZSH_VERSION+.}:" && cd /home/bfriesen/src/graphics/GM && /bin/bash /home/bfriesen/src/graphics/GM/ltdl/config/missing --run aclocal-1.11 -I ltdl/m4 -I m4
scripts/pkginfo.sh: /version.sh: not found
scripts/pkginfo.sh: /version.sh: not found
scripts/pkginfo.sh: /version.sh: not found
configure.ac:120: error: AC_INIT should be called with package and version arguments /usr/local/share/aclocal-1.11/init.m4:26: AM_INIT_AUTOMAKE is expanded from...
configure.ac:120: the top level
autom4te: /usr/local/bin/m4 failed with exit status: 1
aclocal-1.11: autom4te failed with exit status: 1
gmake: *** [/home/bfriesen/src/graphics/GM/aclocal.m4] Error 1
freddy:~/build/GM-16-static% gmake
CDPATH="${ZSH_VERSION+.}:" && cd /home/bfriesen/src/graphics/GM && /bin/bash /home/bfriesen/src/graphics/GM/ltdl/config/missing --run aclocal-1.11 -I ltdl/m4 -I m4
scripts/pkginfo.sh: /version.sh: not found
scripts/pkginfo.sh: /version.sh: not found
configure.ac:122: error: AC_INIT should be called with package and version arguments /usr/local/share/aclocal-1.11/init.m4:26: AM_INIT_AUTOMAKE is expanded from...
configure.ac:122: the top level
autom4te: /usr/local/bin/m4 failed with exit status: 1
aclocal-1.11: autom4te failed with exit status: 1
gmake: *** [/home/bfriesen/src/graphics/GM/aclocal.m4] Error 1
freddy:~/build/GM-16-static% gmake
CDPATH="${ZSH_VERSION+.}:" && cd /home/bfriesen/src/graphics/GM && /bin/bash /home/bfriesen/src/graphics/GM/ltdl/config/missing --run aclocal-1.11 -I ltdl/m4 -I m4
sh: /scripts/pkginfo.sh:  not found
sh: /scripts/pkginfo.sh:  not found
sh: /scripts/pkginfo.sh:  not found
configure.ac:122: error: AC_INIT should be called with package and version arguments /usr/local/share/aclocal-1.11/init.m4:26: AM_INIT_AUTOMAKE is expanded from...
configure.ac:122: the top level
autom4te: /usr/local/bin/m4 failed with exit status: 1
aclocal-1.11: autom4te failed with exit status: 1
gmake: *** [/home/bfriesen/src/graphics/GM/aclocal.m4] Error 1

Bob
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]