65 |
if test -z "$MAKEINFO"; then |
if test -z "$MAKEINFO"; then |
66 |
missing="\`makeinfo' is missing." |
missing="\`makeinfo' is missing." |
67 |
else |
else |
68 |
|
AC_MSG_CHECKING([for makeinfo version]) |
69 |
# We need an additional level of quoting to make sed's regexps work. |
# We need an additional level of quoting to make sed's regexps work. |
70 |
[makeinfo_version=`$MAKEINFO --version 2>&1 \ |
[makeinfo_version=`$MAKEINFO --version 2>&1 \ |
71 |
| sed 's/^.* \([^ ]\+\)$/\1/;1q'`] |
| sed 's/^.* \([^ ]\+\)$/\1/;1q'`] |
72 |
|
AC_MSG_RESULT([$makeinfo_version]) |
73 |
# Consider only the first two numbers in version number string. |
# Consider only the first two numbers in version number string. |
74 |
[makeinfo_version_major=`echo $makeinfo_version \ |
[makeinfo_version_major=`echo $makeinfo_version \ |
75 |
| sed 's/^\([0-9]*\).*$/\1/'`] |
| sed 's/^\([0-9]*\).*$/\1/'`] |
98 |
fi |
fi |
99 |
|
|
100 |
if test -n "$missing"; then |
if test -n "$missing"; then |
101 |
if test ! -f doc/groff \ |
if test ! -f doc/groff.info \ |
102 |
|| test ${srcdir}/doc/groff.texinfo -nt doc/groff; then |
|| test ${srcdir}/doc/groff.texinfo -nt doc/groff.info; then |
103 |
AC_MSG_ERROR($missing |
AC_MSG_ERROR($missing |
104 |
[Get the `texinfo' package version 4.8 or newer.]) |
[Get the `texinfo' package version 4.8 or newer.]) |
105 |
else |
else |