@ -2230,29 +2230,29 @@ fi
fi
fi
# sphinx-build for documentation, and also check for a new enough version
# sphinx-build for documentation, and also check for a new enough version
AC_PATH_PROG(HAVE_SPHINXBUILD, sphinx-build, "no" )
AC_PATH_PROG([SPHINX_BUILD], [sphinx-build], [no] )
if test "$HAVE_ SPHINXBUILD" != "no"; then
if test "$SPHINX_ BUILD" != "no"; then
MIN_SPHINX_BUILD_VERSION="3.4.3"
MIN_SPHINX_BUILD_VERSION="3.4.3"
sphinx_build_version=$($HAVE_ SPHINXBUILD --version 2>&1 | cut -d' ' -f2-)
sphinx_build_version=$($SPHINX_ BUILD --version 2>&1 | cut -d' ' -f2-)
AC_MSG_CHECKING([for sphinx-build >= $MIN_SPHINX_BUILD_VERSION])
AC_MSG_CHECKING([for sphinx-build >= $MIN_SPHINX_BUILD_VERSION])
AS_VERSION_COMPARE([$sphinx_build_version], [$MIN_SPHINX_BUILD_VERSION],
AS_VERSION_COMPARE([$sphinx_build_version], [$MIN_SPHINX_BUILD_VERSION],
[
[
AC_MSG_RESULT([no, documentation will not be built])
AC_MSG_RESULT([no, documentation will not be built])
HAVE_ SPHINXBUILD="no"
SPHINX_ BUILD="no"
],
],
[], [])
[], [])
if test "$HAVE_ SPHINXBUILD" != "no"; then
if test "$SPHINX_ BUILD" != "no"; then
AC_MSG_RESULT(yes)
AC_MSG_RESULT([ yes] )
fi
fi
fi
fi
if test "$HAVE_ SPHINXBUILD" = "no"; then
if test "$SPHINX_ BUILD" = "no"; then
enable_sphinxbuild=no
enable_sphinxbuild=no
if test -e "$srcdir/doc/userguide/suricata.1"; then
if test -e "$srcdir/doc/userguide/suricata.1"; then
have_suricata_man=yes
have_suricata_man=yes
fi
fi
fi
fi
AM_CONDITIONAL([HAVE_ SPHINXBUILD], [test "x$enable_sphinxbuild" != "xno"])
AM_CONDITIONAL([SPHINX_ BUILD], [test "x$enable_sphinxbuild" != "xno"])
AM_CONDITIONAL([HAVE_SURICATA_MAN], [test "x$have_suricata_man" = "xyes"])
AM_CONDITIONAL([HAVE_SURICATA_MAN], [test "x$have_suricata_man" = "xyes"])
# pdflatex for the pdf version of the user manual
# pdflatex for the pdf version of the user manual