libapparmor: Check for podchecker during configure stage

Fail the configure stage if podchecker is not available since man page
generation always happens.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Acked-by: Steve Beattie <steve@nxnw.org>
This commit is contained in:
Tyler Hicks 2014-11-17 21:19:55 -06:00
parent 3c7621b511
commit b57a229c56
2 changed files with 14 additions and 0 deletions

View file

@ -14,6 +14,9 @@ PKG_PROG_PKG_CONFIG
AC_PATH_PROG([SWIG], [swig])
sinclude(m4/ac_podchecker.m4)
PROG_PODCHECKER
sinclude(m4/ac_pod2man.m4)
PROG_POD2MAN

View file

@ -0,0 +1,11 @@
AC_DEFUN([PROG_PODCHECKER],[
AC_CHECK_PROG(PODCHECKER,podchecker,podchecker,no)
if test "$PODCHECKER" = "no"; then
AC_MSG_ERROR([
The podchecker program was not found in the default path. podchecker is part of
Perl, which can be retrieved from:
https://www.perl.org
])
fi
])