diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-11-12 20:38:42 +0700 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-11-12 20:38:42 +0700 |
commit | 0e6c0f153cc73f6a88f771e82b4b6e1fc7ca3e80 (patch) | |
tree | 0c332301b27243b16a0888b2f9b0cb2eb54dbf1c | |
parent | 8733cc5bb1e7d1f0afcd909cd7fd505d3b4d2951 (diff) | |
download | acl-0e6c0f153cc73f6a88f771e82b4b6e1fc7ca3e80.tar.gz |
use autoconf APIs to test & error out
Practically speaking, it should be the same.
-rw-r--r-- | configure.ac | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 4abb993..e5588d2 100644 --- a/configure.ac +++ b/configure.ac @@ -44,10 +44,8 @@ AS_IF([test "x$enable_debug" = "xyes"], dnl Automatically increment the revision for every release. set -- $(IFS=.; echo ${PACKAGE_VERSION}) -if test $# -ne 3 -o ${#1} -gt 1 -o ${#2} -gt 1 -o ${#3} -gt 2; then - echo "This PACKAGE_VERSION breaks LT_REVISION" >&2 - exit 1 -fi +AS_IF([test $# -ne 3 -o ${#1} -gt 1 -o ${#2} -gt 1 -o ${#3} -gt 2], + [AC_MSG_ERROR([This PACKAGE_VERSION breaks LT_REVISION])]) LT_REVISION=$(printf "%d%d%02d" "$1" "$2" "$3") AC_SUBST(LT_REVISION) |