diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | config/ChangeLog | 4 | ||||
-rw-r--r-- | config/version.h.in | 4 | ||||
-rw-r--r-- | configure.ac | 3 |
4 files changed, 13 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2009-04-19 Roland McGrath <roland@redhat.com> + + * configure.ac (eu_version): Round down here, not in version.h macros. + 2009-04-17 Roland McGrath <roland@redhat.com> * configure.ac (eu_version): Compute number 1000 times larger, diff --git a/config/ChangeLog b/config/ChangeLog index 327e5c1c..798a2f93 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2009-04-19 Roland McGrath <roland@redhat.com> + + * version.h.in: Revert last change. + 2009-04-17 Roland McGrath <roland@redhat.com> * version.h.in (_ELFUTILS_PREREQ): Multiple major by 1000000 and minor diff --git a/config/version.h.in b/config/version.h.in index f678c696..82c846e9 100644 --- a/config/version.h.in +++ b/config/version.h.in @@ -1,5 +1,5 @@ /* Version information about elfutils development libraries. - Copyright (C) 2008-2009 Red Hat, Inc. + Copyright (C) 2008 Red Hat, Inc. This file is part of Red Hat elfutils. Red Hat elfutils is free software; you can redistribute it and/or modify @@ -53,6 +53,6 @@ #define _ELFUTILS_VERSION @eu_version@ #define _ELFUTILS_PREREQ(major, minor) \ - ((_ELFUTILS_VERSION + 999) / 1000 >= ((major) * 1000 + (minor))) + (_ELFUTILS_VERSION >= ((major) * 1000 + (minor))) #endif /* elfutils/version.h */ diff --git a/configure.ac b/configure.ac index c074e973..aeb40d11 100644 --- a/configure.ac +++ b/configure.ac @@ -290,4 +290,7 @@ case "$eu_version" in *) AC_MSG_ERROR([confused by version number '$PACKAGE_VERSION']) ;; esac +# Round up to the next release API (x.y) version. +[eu_version=$[($eu_version + 999) / 1000]] + AC_OUTPUT |