~brianaker/libmemcached/exception-cleanup

« back to all changes in this revision

Viewing changes to m4/ax_prog_sphinx_build.m4

  • Committer: Brian Aker
  • Date: 2013-04-28 11:30:05 UTC
  • Revision ID: brian@tangent.org-20130428113005-ypc4ekq373v1nvvm
Update rules for sphinx`

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#
5
5
# SYNOPSIS
6
6
#
7
 
#   AX_PROG_SPHINX_BUILD()
 
7
#   AX_PROG_SPHINX_BUILD([ACTION-IF-FOUND], [ACTION-IF-NOT_FOUND])
8
8
#
9
9
# DESCRIPTION
10
10
#
11
 
#   Look for sphinx-build
 
11
#   Look for sphinx-build and make sure it is a recent version of it.
12
12
#
13
13
# LICENSE
14
14
#
15
 
#   Copyright (c) 2012 Brian Aker <brian@tangent.org>
 
15
#   Copyright (c) 2012-2013 Brian Aker <brian@tangent.org>
16
16
#
17
17
#   Copying and distribution of this file, with or without modification, are
18
18
#   permitted in any medium without royalty provided the copyright notice
19
19
#   and this notice are preserved. This file is offered as-is, without any
20
20
#   warranty.
21
21
 
22
 
#serial 2
 
22
#serial 3
23
23
 
24
24
AC_DEFUN([AX_PROG_SPHINX_BUILD],
25
25
    [AC_PREREQ([2.63])dnl
26
 
    AC_CHECK_PROGS([PERL], [perl])
27
 
    AC_CHECK_PROGS([DPKG_GENSYMBOLS], [dpkg-gensymbols], [:])
28
 
    AC_CHECK_PROGS([LCOV], [lcov], [echo lcov not found])
29
 
    AC_CHECK_PROGS([LCOV_GENHTML], [genhtml], [echo genhtml not found])
30
 
 
31
26
    AC_CHECK_PROGS([SPHINXBUILD], [sphinx-build], [:])
32
27
    AS_IF([test "x${SPHINXBUILD}" != "x:"],[
33
28
      AC_CACHE_CHECK([if sphinx is new enough],[ac_cv_recent_sphinx],[
39
34
        ])
40
35
      ])
41
36
 
42
 
    AM_CONDITIONAL([HAVE_DPKG_GENSYMBOLS],[test "x${DPKG_GENSYMBOLS}" != "x:"])
43
37
    AM_CONDITIONAL([HAVE_SPHINX],[test "x${SPHINXBUILD}" != "x:"])
44
38
    AM_CONDITIONAL([HAVE_RECENT_SPHINX],[test "x${ac_cv_recent_sphinx}" = "xyes"])
 
39
 
 
40
    AS_IF([test "x${ac_cv_recent_sphinx}" = "xyes"],
 
41
        [ifelse([$2], , :, [$2])],
 
42
        [ifelse([$3], , :, [$3])])
45
43
])