From f81967548e849e4a98640f8edcae65839e62ff92 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Sun, 28 Apr 2013 12:07:47 -0400 Subject: [PATCH] Update sphinx --- configure.ac | 14 ++++++++++---- m4/ax_prog_sphinx_build.m4 | 26 +++++++++++--------------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/configure.ac b/configure.ac index 727ee722..2e3920cf 100644 --- a/configure.ac +++ b/configure.ac @@ -104,13 +104,19 @@ PROTOCOL_BINARY_TEST ENABLE_DEPRECATED # Checks for programs. -AC_PROG_AWK -AC_PROG_SED -AC_PROG_MKDIR_P +AC_CHECK_PROGS([DPKG_GENSYMBOLS],[dpkg-gensymbols]) AC_CHECK_PROGS([LEX],['flex'],[:]) +AC_CHECK_PROGS([PERL],[perl]) +AC_CHECK_PROGS([VALGRIND],['valgrind']) +AC_CHECK_PROGS([WINE],['wine']) AC_CHECK_PROGS([YACC],['bison --warnings=all'],[:]) -AX_PROG_SPHINX_BUILD(,[AC_MSG_ERROR([sphinx-build version 1.0 or greater is required])]) +AC_PROG_AWK +AC_PROG_MKDIR_P +AC_PROG_SED AX_PROG_MEMCACHED +AX_PROG_SPHINX_BUILD(,[AC_MSG_ERROR([sphinx-build version 1.0 or greater is required])]) +AX_WITH_PROG([LCOV],[lcov]) +AX_WITH_PROG([LCOV_GENHTML],[genhtml]) # Checks for libraries. AC_SEARCH_LIBS([getopt_long],[gnugetopt]) diff --git a/m4/ax_prog_sphinx_build.m4 b/m4/ax_prog_sphinx_build.m4 index 270067aa..2bbe57e2 100644 --- a/m4/ax_prog_sphinx_build.m4 +++ b/m4/ax_prog_sphinx_build.m4 @@ -22,22 +22,18 @@ #serial 3 AC_DEFUN([AX_PROG_SPHINX_BUILD], - [AC_PREREQ([2.63])dnl - AC_CHECK_PROGS([SPHINXBUILD], [sphinx-build], [:]) - AS_IF([test "x${SPHINXBUILD}" != "x:"],[ - AC_CACHE_CHECK([if sphinx is new enough],[ac_cv_recent_sphinx],[ - - ${SPHINXBUILD} -Q -C -b man -d conftest.d . . >/dev/null 2>&1 - AS_IF([test $? -eq 0],[ac_cv_recent_sphinx=yes], - [ac_cv_recent_sphinx=no]) + [AX_WITH_PROG([SPHINXBUILD],[sphinx-build],[:]) + AS_IF([test x"SPHINXBUILD" = x":"], + [SPHINXBUILD=], + [AS_IF([test -x "$SPHINXBUILD"], + [$SPHINXBUILD -Q -C -b man -d conftest.d . . >/dev/null 2>&1 + AS_IF([test $? -eq 0], ,[SPHINXBUILD=]) rm -rf conftest.d ]) ]) - AM_CONDITIONAL([HAVE_SPHINX],[test "x${SPHINXBUILD}" != "x:"]) - AM_CONDITIONAL([HAVE_RECENT_SPHINX],[test "x${ac_cv_recent_sphinx}" = "xyes"]) - - AS_IF([test "x${ac_cv_recent_sphinx}" = "xyes"], - [ifelse([$2], , :, [$2])], - [ifelse([$3], , :, [$3])]) -]) + AS_IF([test -n "${SPHINXBUILD}"], + [AC_SUBST([SPHINXBUILD]) + ifelse([$1], , :, [$1])], + [ifelse([$2], , :, [$2])]) + ]) -- 2.30.2