~ubuntu-branches/ubuntu/oneiric/gnome-system-monitor/oneiric-proposed

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2011-06-21 16:49:23 UTC
  • mto: (2.1.7 sid) (1.1.59 upstream)
  • mto: This revision was merged to the branch mainline in revision 78.
  • Revision ID: james.westby@ubuntu.com-20110621164923-o6titd2srek1uh84
Tags: upstream-3.0.1
ImportĀ upstreamĀ versionĀ 3.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Process this file with autoconf to produce a configure script.
 
2
 
 
3
AC_PREREQ([2.63])
 
4
 
 
5
AC_INIT([gnome-system-monitor],
 
6
        [3.0.1],
 
7
        [http://bugzilla.gnome.org/enter_bug.cgi?product=system-monitor],
 
8
        [gnome-system-monitor])
 
9
 
 
10
AC_CONFIG_HEADERS([config.h])
 
11
AC_CONFIG_SRCDIR([configure.ac])
 
12
AC_CONFIG_MACRO_DIR([m4])
 
13
 
 
14
AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-bzip2])
 
15
AM_SILENT_RULES([yes])
 
16
 
 
17
# Check For programs
 
18
AC_PROG_CC
 
19
AC_PROG_CXX
 
20
AC_LANG([C++])
 
21
AC_LANG_COMPILER_REQUIRE
 
22
 
 
23
# Initialize libtool
 
24
LT_PREREQ([2.2])
 
25
LT_INIT
 
26
 
 
27
# Package dependencies
 
28
GLIB_REQUIRED=2.28.0
 
29
LIBWNCK_REQUIRED=2.91.0
 
30
LIBGTOP_REQUIRED=2.28.2
 
31
GTK_REQUIRED=3.0
 
32
GNOME_ICON_THEME_REQUIRED=2.31
 
33
GTKMM_REQUIRED=2.99
 
34
GIOMM_REQUIRED=2.27
 
35
GLIBMM_REQUIRED=2.27
 
36
LIBXML_REQUIRED=2.0
 
37
RSVG_REQUIRED=2.12
 
38
 
 
39
PKG_CHECK_MODULES(PROCMAN, glib-2.0 >= $GLIB_REQUIRED libgtop-2.0 >= $LIBGTOP_REQUIRED libwnck-3.0 >= $LIBWNCK_REQUIRED gtk+-3.0 >= $GTK_REQUIRED gnome-icon-theme >= $GNOME_ICON_THEME_REQUIRED gtkmm-3.0 >= $GTKMM_REQUIRED libxml-2.0 >= $LIBXML_REQUIRED librsvg-2.0 >= $RSVG_REQUIRED glibmm-2.4 >= $GLIBMM_REQUIRED giomm-2.4 >= $GIOMM_REQUIRED)
 
40
 
 
41
# Compiler warnings
 
42
GNOME_COMPILE_WARNINGS([maximum])
 
43
 
 
44
AC_ARG_ENABLE(more-warnings,
 
45
[AS_HELP_STRING([--enable-more-warnings],[Maximum compiler warnings])],
 
46
set_more_warnings="$enableval",[
 
47
    set_more_warnings=yes
 
48
])
 
49
AC_MSG_CHECKING(for more warnings, including -Werror)
 
50
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
 
51
    AC_MSG_RESULT(yes)
 
52
    CFLAGS="\
 
53
    -Wall \
 
54
    -Winline \
 
55
    -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
 
56
    -Wnested-externs -Wpointer-arith \
 
57
    -Wcast-align -Wsign-compare \
 
58
    -std=gnu89 \
 
59
    $CFLAGS"
 
60
    CXXFLAGS="-Wall -std=c++98 $CXXFLAGS"
 
61
else
 
62
    AC_MSG_RESULT(no)
 
63
fi
 
64
 
 
65
dnl CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden $CXXFLAGS"
 
66
dnl CXXFLAGS="-fvisibility-inlines-hidden $CXXFLAGS"
 
67
 
 
68
GLIB_GSETTINGS
 
69
 
 
70
# i18n stuff
 
71
IT_PROG_INTLTOOL([0.41.0])
 
72
 
 
73
AM_GNU_GETTEXT([external])
 
74
AM_GNU_GETTEXT_VERSION([0.17])
 
75
 
 
76
GETTEXT_PACKAGE=gnome-system-monitor
 
77
AC_SUBST(GETTEXT_PACKAGE)
 
78
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
 
79
                   [The gettext catalog name])
 
80
 
 
81
# Documentation
 
82
GNOME_DOC_INIT([0.20])
 
83
 
 
84
AC_CONFIG_FILES([
 
85
Makefile
 
86
src/Makefile
 
87
pixmaps/Makefile
 
88
po/Makefile.in
 
89
help/Makefile
 
90
gnome-system-monitor.desktop.in
 
91
])
 
92
 
 
93
AC_OUTPUT
 
94
 
 
95
echo "
 
96
 
 
97
Configuration:
 
98
 
 
99
        Source code location:   ${srcdir}
 
100
        C Compiler:             ${CC}
 
101
        C++ Compiler:           ${CXX}
 
102
        CFLAGS:                 ${CFLAGS}
 
103
        CXXFLAGS:               ${CXXFLAGS}
 
104
        Maintainer mode:        ${USER_MAINTAINER_MODE}
 
105
        Languages:              ${ALL_LINGUAS}
 
106
"