~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

Viewing changes to libraries/libapparmor/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-04-27 10:38:07 UTC
  • mfrom: (5.1.118 natty)
  • Revision ID: james.westby@ubuntu.com-20110427103807-ym3rhwys6o84ith0
Tags: 2.6.1-2
debian/copyright: clarify for some full organization names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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))
 
5
 
 
6
AC_INIT(configure.in)
 
7
 
 
8
AM_INIT_AUTOMAKE(libapparmor1, apparmor_version)
 
9
 
 
10
AM_PROG_LEX
 
11
AC_PROG_YACC
 
12
AC_PROG_SED
 
13
 
 
14
AC_PATH_PROG([SWIG], [swig])
 
15
 
 
16
sinclude(m4/ac_pod2man.m4)
 
17
PROG_POD2MAN
 
18
 
 
19
AC_MSG_CHECKING(Checking for Python)
 
20
AC_ARG_WITH(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
 
26
      enable_python = no
 
27
   else 
 
28
     sinclude(m4/ac_python_devel.m4)
 
29
     AC_PYTHON_DEVEL
 
30
     AM_PATH_PYTHON
 
31
   fi
 
32
fi
 
33
 
 
34
AC_MSG_CHECKING(Checking for perl)
 
35
AC_ARG_WITH(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
 
41
      enable_perl=no
 
42
   else
 
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)
 
45
   fi
 
46
fi
 
47
 
 
48
 
 
49
AC_MSG_CHECKING(Checking for ruby)
 
50
AC_ARG_WITH(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])
 
55
fi
 
56
 
 
57
 
 
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)
 
62
 
 
63
AC_HEADER_STDC
 
64
AC_CHECK_HEADERS(unistd.h stdint.h)
 
65
 
 
66
AC_CHECK_FUNCS(asprintf)
 
67
 
 
68
AM_PROG_CC_C_O
 
69
AC_C_CONST
 
70
AM_PROG_LIBTOOL
 
71
 
 
72
AC_OUTPUT(
 
73
Makefile
 
74
doc/Makefile
 
75
src/Makefile
 
76
swig/Makefile
 
77
swig/perl/Makefile
 
78
swig/perl/Makefile.PL
 
79
swig/python/Makefile
 
80
swig/python/setup.py
 
81
swig/ruby/Makefile
 
82
testsuite/Makefile
 
83
testsuite/config/Makefile
 
84
testsuite/libaalogparse.test/Makefile
 
85
testsuite/lib/Makefile
 
86
)