build: fix error when running configure --disable-doc

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-01-29 18:13:35 +01:00
parent 1a510c57e9
commit 4c7a3074bb

View file

@ -24,12 +24,12 @@ AC_ARG_ENABLE([doc],
AS_HELP_STRING([--disable-doc], [Do not generate documentation]),
[generate_doc="$enableval"], [generate_doc=auto])
AX_PYTHON
if test "x$generate_doc" != "xno"; then
AC_PROG_SED
AC_PROG_EGREP
AX_PYTHON
AC_CHECK_PROG(HAVE_DOXYGEN, [doxygen], yes, no)
if test "x$HAVE_DOXYGEN" = "xno" -a "x$generate_doc" = "xyes"; then
AC_MSG_ERROR([*** doxygen package required to generate documentation])