From 3acd86a8d90595a63babe88c4c7c2cb1fd5465cf Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 3 Jan 2021 16:08:09 -0800 Subject: [PATCH] configure: Ensure the version always has 3 parts in PSPP_CHECK_XGETTEXT. Makes configure succeed on Debian for me, where "xgettext --version" prints 0.21 as the version. --- acinclude.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 750a87efb1..c657b46e1f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -362,6 +362,10 @@ AC_DEFUN([PSPP_CHECK_XGETTEXT], [pspp_cv_progrecent_xgettext], [pspp_cv_progrecent_xgettext=maybe ver=`$ac_cv_prog_XGETTEXT --version | sed -n -e '/xgettext/s/[[^0-9]]*\([[0-9\.]][[0-9\.]]*\).*/\1/p'` + case $ver in # ( + *.*.*) ;; # ( + *.*) ver="$ver.0" ;; + esac majmin=`echo $ver | sed -e 's/\.[[0-9]]*$//'` major=`echo $majmin | sed -e 's/\.[[0-9]]*$//'` minor=`echo $majmin | sed -e 's/^[[0-9]]*\.//'` -- 2.30.2