1
m4_define([__apparmor_version], m4_sinclude(common/Version))
2
m4_ifdef(__apparmor_version, , m4_define([__apparmor_version], m4_sinclude(../../common/Version)))
3
m4_define([__aalen], decr(len(__apparmor_version)))
4
m4_define([apparmor_version], m4_substr(__apparmor_version, 0, __aalen))
8
AM_INIT_AUTOMAKE(libapparmor1, apparmor_version)
14
AC_PATH_PROG([SWIG], [swig])
16
sinclude(m4/ac_pod2man.m4)
19
AC_MSG_CHECKING(Checking for Python)
21
[ --with-python enable the python wrapper [[default=no]]],
22
[AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)])
23
if test "$with_python" = "yes"; then
24
AC_PATH_PROG(PYTHON, python, no)
25
if test x$PYTHON = xno; then
28
sinclude(m4/ac_python_devel.m4)
34
AC_MSG_CHECKING(Checking for perl)
36
[ --with-perl enable the perl wrapper [[default=no]]],
37
[AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)])
38
if test "$with_perl" = "yes"; then
39
AC_PATH_PROG(PERL, perl, no)
40
if test x$PERL = xno; then
43
perl_includedir="`$PERL -e 'use Config; print $Config{archlib}'`/CORE"
44
AC_CHECK_FILE($perl_includedir/perl.h, enable_perl=yes, enable_perl=no)
49
AC_MSG_CHECKING(Checking for ruby)
51
[ --with-ruby enable the ruby wrapper [[default=no]]],
52
[AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)])
53
if test "$with_ruby" = "yes"; then
54
AC_PATH_PROG([RUBY], [ruby])
58
AM_CONDITIONAL(HAVE_PYTHON, test x$with_python = xyes)
59
AM_CONDITIONAL(HAVE_PERL, test x$with_perl = xyes)
60
AM_CONDITIONAL(HAVE_RUBY, test x$with_ruby = xyes)
61
AM_CONDITIONAL(BUILD_ROOTLIB, test x$enable_rootlib = xyes)
64
AC_CHECK_HEADERS(unistd.h stdint.h)
66
AC_CHECK_FUNCS(asprintf)
83
testsuite/config/Makefile
84
testsuite/libaalogparse.test/Makefile
85
testsuite/lib/Makefile