mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 00:14:44 +01:00
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:
parent
3c7621b511
commit
b57a229c56
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
11
libraries/libapparmor/m4/ac_podchecker.m4
Normal file
11
libraries/libapparmor/m4/ac_podchecker.m4
Normal 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
|
||||
])
|
Loading…
Add table
Reference in a new issue