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

« back to all changes in this revision

Viewing changes to deprecated/management/profile-editor/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
AC_INIT(src/profileeditor.cpp)
 
2
AM_INIT_AUTOMAKE(profileeditor, 0.9)
 
3
 
 
4
AC_PROG_CXX
 
5
AC_PROG_INSTALL
 
6
AC_LIBTOOL_DLOPEN
 
7
AC_PROG_LIBTOOL
 
8
 
 
9
CPPFLAGS="$CPPFLAGS -Wall -g -fexceptions"
 
10
CXXFLAGS="$CPPFLAGS -Wall -g -fexceptions"
 
11
 
 
12
WXCONFIG=wx-config
 
13
AC_ARG_WITH(wx-config,
 
14
[[  --with-wx-config=FILE     Use the given path to wx-config when determining
 
15
                            wxWidgets configuration; defaults to "wx-config"]],
 
16
[
 
17
    if test "$withval" != "yes" -a "$withval" != ""; then
 
18
        WXCONFIG=$withval
 
19
    fi
 
20
])
 
21
 
 
22
wxversion=0
 
23
 
 
24
AC_DEFUN([WXTEST],
 
25
[
 
26
        AC_REQUIRE([AC_PROG_AWK])
 
27
        AC_MSG_CHECKING([wxWidgets version])
 
28
        if wxversion=`$WXCONFIG --version`; then
 
29
                AC_MSG_RESULT([$wxversion])
 
30
        else
 
31
                AC_MSG_RESULT([not found])
 
32
                AC_MSG_ERROR([wxWidgets is required. Try --with-wx-config.])
 
33
        fi])
 
34
 
 
35
# Call WXTEST func
 
36
WXTEST
 
37
 
 
38
# Verify minimus requires
 
39
vers=`echo $wxversion | $AWK 'BEGIN { FS = "."; } { printf "% d", ($1 * 1000 + $2) * 1000 + $3;}'`
 
40
if test -n "$vers" && test "$vers" -ge 2006000; then
 
41
        WX_CPPFLAGS="`$WXCONFIG --cppflags`"
 
42
        WX_CXXFLAGS="`$WXCONFIG --cxxflags | sed -e 's/-fno-exceptions//'`"
 
43
        WX_LIBS="`$WXCONFIG --libs`"
 
44
else
 
45
        AC_MSG_ERROR([wxWidgets 2.6.0 or newer is required])
 
46
fi
 
47
 
 
48
 
 
49
CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
 
50
CXXFLAGS="$CXXFLAGS $WX_CPPFLAGS"
 
51
 
 
52
 
 
53
AC_SUBST(WX_LIBS)
 
54
 
 
55
AC_OUTPUT(Makefile src/Makefile src/wxStyledTextCtrl/Makefile doc/Makefile)