Skip to content

Commit

Permalink
Added check for makeinfo version >= 5.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
simait committed Nov 25, 2014
1 parent 8981863 commit bd5e648
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,25 @@ else
fi
AM_CONDITIONAL([HAVE_HELP2MAN], [test x$HELP2MAN = xhelp2man])

# Check for makeinfo version >= 5, required for building documentation.
AC_PROG_SED
AC_CHECK_PROG([MAKEINFO_FOUND], [makeinfo], [yes])
if test x"${MAKEINFO_FOUND}" = xyes
then
MAKEINFO_VERSION_REQ=5
AC_MSG_CHECKING([makeinfo version >= $MAKEINFO_VERSION_REQ])
MAKEINFO_VERSION=`makeinfo --version | sed -ne 's/^makeinfo .* \([[0-9]]\+\)\.[[0-9]]\+/\1/p'`
if test x$MAKEINFO_VERSION = x -o 0$MAKEINFO_VERSION -lt $MAKEINFO_VERSION_REQ
then
AC_MSG_RESULT([no])
AC_MSG_ERROR([Program 'makeinfo' version >= $MAKEINFO_VERSION_REQ is required.])
else
AC_MSG_RESULT([yes])
fi
else
AC_MSG_ERROR([Missing program 'makeinfo', please install.)])
fi

# Check if we have Python installed
AM_PATH_PYTHON([2.6],, [:])
AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
Expand Down

0 comments on commit bd5e648

Please sign in to comment.