From 6c9b7087723f3419d2be6b54c828e5afe19b8d79 Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 20 Mar 2004 12:41:23 +0000 Subject: [PATCH] Add C-Preprocessor define CDIO_VERSION so this can easily be tested in C/C++ applications. --- configure.ac | 10 ++++++++-- include/cdio/version.h.in | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index e9910373..50d9e625 100644 --- a/configure.ac +++ b/configure.ac @@ -15,14 +15,20 @@ dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA dnl 02111-1307, USA. +define(RELEASE_NUM, 68) +define(CDIO_VERSION_STR, 0.$1cvs) + AC_PREREQ(2.52) -AC_REVISION([$Id: configure.ac,v 1.71 2004/03/20 03:15:35 rocky Exp $])dnl -AC_INIT(libcdio, 0.68cvs) +AC_REVISION([$Id: configure.ac,v 1.72 2004/03/20 12:41:23 rocky Exp $])dnl +AC_INIT(libcdio, CDIO_VERSION_STR(RELEASE_NUM)) AC_CONFIG_SRCDIR(src/cd-info.c) AM_INIT_AUTOMAKE AC_CANONICAL_HOST AM_CONFIG_HEADER(config.h) +LIBCDIO_VERSION_NUM=RELEASE_NUM +AC_SUBST(LIBCDIO_VERSION_NUM) + AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir) AM_MISSING_PROG(CVS2CL, cvs2cl, $missing_dir) AM_MAINTAINER_MODE diff --git a/include/cdio/version.h.in b/include/cdio/version.h.in index 1349bf63..2727cdd2 100644 --- a/include/cdio/version.h.in +++ b/include/cdio/version.h.in @@ -1,6 +1,9 @@ -/* $Id: version.h.in,v 1.2 2003/11/17 11:50:37 rocky Exp $ */ +/* $Id: version.h.in,v 1.3 2004/03/20 12:41:23 rocky Exp $ */ /** \file version.h * \brief A file simply containing the library version number. */ #define CDIO_VERSION "@VERSION@" + +/* This can be used for testing in the C preprocessor */ +#define LIBCDIO_VERSION_NUM @LIBCDIO_VERSION_NUM@