« Return to Thread: Automake 1.12.0b test release

Re: Automake 1.12.0b test release

by Bob Friesenhahn :: Rate this Message:

| View in Thread

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]),
>           [bug-coreutils@...])
>
> 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
bfriesen@..., http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

 « Return to Thread: Automake 1.12.0b test release