acl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH acl/committed] use autoconf APIs to test & error out


From: Mike Frysinger
Subject: [PATCH acl/committed] use autoconf APIs to test & error out
Date: Sat, 12 Nov 2022 20:43:44 +0700

Practically speaking, it should be the same.
---
 configure.ac | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 4abb9933948a..e5588d2dcdd3 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)
 
-- 
2.38.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]