Add C-Preprocessor define CDIO_VERSION so this can easily be tested in

C/C++ applications.
This commit is contained in:
rocky
2004-03-20 12:41:23 +00:00
parent 515f6fbea5
commit 6c9b708772
2 changed files with 12 additions and 3 deletions

View File

@@ -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 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
dnl 02111-1307, USA. dnl 02111-1307, USA.
define(RELEASE_NUM, 68)
define(CDIO_VERSION_STR, 0.$1cvs)
AC_PREREQ(2.52) AC_PREREQ(2.52)
AC_REVISION([$Id: configure.ac,v 1.71 2004/03/20 03:15:35 rocky Exp $])dnl AC_REVISION([$Id: configure.ac,v 1.72 2004/03/20 12:41:23 rocky Exp $])dnl
AC_INIT(libcdio, 0.68cvs) AC_INIT(libcdio, CDIO_VERSION_STR(RELEASE_NUM))
AC_CONFIG_SRCDIR(src/cd-info.c) AC_CONFIG_SRCDIR(src/cd-info.c)
AM_INIT_AUTOMAKE AM_INIT_AUTOMAKE
AC_CANONICAL_HOST AC_CANONICAL_HOST
AM_CONFIG_HEADER(config.h) 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(HELP2MAN, help2man, $missing_dir)
AM_MISSING_PROG(CVS2CL, cvs2cl, $missing_dir) AM_MISSING_PROG(CVS2CL, cvs2cl, $missing_dir)
AM_MAINTAINER_MODE AM_MAINTAINER_MODE

View File

@@ -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 /** \file version.h
* \brief A file simply containing the library version number. * \brief A file simply containing the library version number.
*/ */
#define CDIO_VERSION "@VERSION@" #define CDIO_VERSION "@VERSION@"
/* This can be used for testing in the C preprocessor */
#define LIBCDIO_VERSION_NUM @LIBCDIO_VERSION_NUM@