summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 4878fdc0..ce88f550 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -68,7 +68,7 @@ AC_DEFUN([GROFF_MAKEINFO],
AC_MSG_CHECKING([for makeinfo version])
# We need an additional level of quoting to make sed's regexps work.
[makeinfo_version=`$MAKEINFO --version 2>&1 \
- | sed 's/^.* \([^ ]\+\)$/\1/;1q'`]
+ | sed -e 's/^.* \([^ ][^ ]*\)$/\1/' -e '1q'`]
AC_MSG_RESULT([$makeinfo_version])
# Consider only the first two numbers in version number string.
[makeinfo_version_major=`echo $makeinfo_version \
@@ -78,7 +78,7 @@ AC_DEFUN([GROFF_MAKEINFO],
makeinfo_version_minor=0
else
[makeinfo_version_minor=`echo $makeinfo_version \
- | sed 's/^[^.]\+\(.*\)$/\1/'`]
+ | sed 's/^[^.][^.]*\(.*\)$/\1/'`]
# No minor version number at all?
if test -z "$makeinfo_version_minor"; then
makeinfo_version_minor=0