autoconf
[Top][All Lists]
Advanced

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

Re: specify AC_INIT version externally


From: Ralf Wildenhues
Subject: Re: specify AC_INIT version externally
Date: Thu, 7 Jan 2010 21:07:41 +0100
User-agent: Mutt/1.5.20 (2009-10-28)

* Carsten Heinrici wrote on Thu, Jan 07, 2010 at 09:00:06PM CET:
> why not including just another m4 file which defines the version number?
> example:

That is a possibility.

> ./version.m4
>   m4_define([VERSION_NUMBER],[1.2.3])
> 
> ./package/configure.ac
>   m4_include([../version.m4])
>   AC_INIT([package],VERSION_NUMBER)

FWIW, it is a bit safer wrt. m4 quoting to use something like
   AC_INIT([package], m4_defn([VERSION_NUMBER])

(unfortunately, normal quoting won't work here).

Cheers,
Ralf




reply via email to

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