commit 4571a17fb625caf38abbd301a4efc5fa4503db7c
Author: phantomjinx <p.g.richard...@phantomjinx.co.uk>
Date:   Tue Jan 4 21:49:14 2011 +0000

    Alternate version numbering technique using m4
    
    * configure.ac
     * Move version number script out of AC_INIT macro so it uses a static var
    
    * version.m4
     * Use this to establish dynamic version number. Should be run before
       AC_INIT and should be hopefully compatible with autoconf 2.66+

 configure.ac |    3 ++-
 version.m4   |    2 ++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 95cc140..908e566 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,9 +1,10 @@
 dnl Process this file with autoconf to produce a configure script.
+m4_include([./version.m4])
 
 # Require autoconf 2.55 or higher
 AC_PREREQ(2.65)
 
-AC_INIT([gtkpod],[m4_esyscmd(./version.sh | tr -d '\n')])
+AC_INIT([gtkpod], m4_defn([VERSION_NUMBER]))
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_SRCDIR(src/main.c)
 
diff --git a/version.m4 b/version.m4
new file mode 100644
index 0000000..ae46db0
--- /dev/null
+++ b/version.m4
@@ -0,0 +1,2 @@
+m4_define([VERSION_NUMBER],[m4_esyscmd(./version.sh | tr -d '\n')])
+

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to