diff options
author | Peter Stuge <peter@stuge.se> | 2011-09-15 16:48:35 +0200 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2011-10-17 16:25:50 +0200 |
commit | cbc2d7b2de58cf5fb02d9e5a39be0870527f8632 (patch) | |
tree | 64a4efc49425d23576a05296f0c8e64041ba1619 /configure.ac | |
parent | 384a528ed7adde935681313dacc5cd79e4be9ea1 (diff) |
Support release candidate versions in configure.ac and libusb-1.0.rc
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index ff3a259..8020907 100644 --- a/configure.ac +++ b/configure.ac @@ -3,6 +3,9 @@ m4_define([LU_VERSION_H], m4_include([libusb/version.h])) m4_define([LU_DEFINE_VERSION_ATOM], [m4_define([$1], m4_bregexp(LU_VERSION_H, [^#define\s*$1\s*\([0-9]*\).*], [\1]))]) +m4_define([LU_DEFINE_VERSION_RC_ATOM], + [m4_define([$1], m4_bregexp(LU_VERSION_H, + [^#define\s*$1\s*"\(-rc[0-9]*\)".*], [\1]))]) dnl The m4_bregexp() returns (only) the numbers following the #define named dnl in the first macro parameter. m4_define() then defines the name for use dnl in AC_INIT(). @@ -10,8 +13,9 @@ dnl in AC_INIT(). LU_DEFINE_VERSION_ATOM([LIBUSB_MAJOR]) LU_DEFINE_VERSION_ATOM([LIBUSB_MINOR]) LU_DEFINE_VERSION_ATOM([LIBUSB_MICRO]) +LU_DEFINE_VERSION_RC_ATOM([LIBUSB_RC]) -AC_INIT([libusb], LIBUSB_MAJOR[.]LIBUSB_MINOR[.]LIBUSB_MICRO, [libusb-devel@lists.sourceforge.net], [libusb], [http://www.libusb.org/]) +AC_INIT([libusb], LIBUSB_MAJOR[.]LIBUSB_MINOR[.]LIBUSB_MICRO[]LIBUSB_RC, [libusb-devel@lists.sourceforge.net], [libusb], [http://www.libusb.org/]) # Library versioning # These numbers should be tweaked on every release. Read carefully: |