Re: How to dinamically set VERSION for AC_INIT

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

 



On date Friday 2007-12-14 15:56:49 +0100, Andreas Schwab wrote:
> Stefano Sabatini <stefano.sabatini-lala@xxxxxxxx> writes:
> 
> > Hi all autoconfers,
> >
> > I have a package managed by SVN, and I would like to assign the
> > AC_PACKAGE_VERSION using the current SVN version number.
> >
> > So I hacked up this in configure.in:
> >
> > SVN_VERSION=`./version.sh`
> >
> > AC_INIT(my-fine-package, $SVN_VERSION)
> 
> AC_INIT(my-fine-package, m4_esyscmd([./version.sh | tr -d '\n']))
> 
> Note that you need to manually remove the final newline, unlike command
> substitutions m4_esyscmd does not do that for you.

Thanks so much Andreas and Eric for your quick replies, your solution
works just fine.

Best regards.
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux