From d84bdc8236801e95e976b65de09ac90b92e37998 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 2 Jan 2017 11:47:40 +0000 Subject: make: Check for Sphinx before checking docs Signed-off-by: Stephen Finucane Signed-off-by: Ben Pfaff --- m4/openvswitch.m4 | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'm4') diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4 index a44822319..6515ed7bb 100644 --- a/m4/openvswitch.m4 +++ b/m4/openvswitch.m4 @@ -400,7 +400,7 @@ else: AM_CONDITIONAL([HAVE_PYTHON3], [test "$HAVE_PYTHON3" = yes])]) -dnl Checks for dot. +dnl Checks for flake8. AC_DEFUN([OVS_CHECK_FLAKE8], [AC_CACHE_CHECK( [for flake8], @@ -412,6 +412,18 @@ AC_DEFUN([OVS_CHECK_FLAKE8], fi]) AM_CONDITIONAL([HAVE_FLAKE8], [test "$ovs_cv_flake8" = yes])]) +dnl Checks for sphinx. +AC_DEFUN([OVS_CHECK_SPHINX], + [AC_CACHE_CHECK( + [for sphinx], + [ovs_cv_sphinx], + [if sphinx-build --version >/dev/null 2>&1; then + ovs_cv_sphinx=yes + else + ovs_cv_sphinx=no + fi]) + AM_CONDITIONAL([HAVE_SPHINX], [test "$ovs_cv_sphinx" = yes])]) + dnl Checks for dot. AC_DEFUN([OVS_CHECK_DOT], [AC_CACHE_CHECK( -- cgit v1.2.1