~ubuntu-branches/ubuntu/trusty/libgweather/trusty-updates

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-05-27 11:58:15 UTC
  • mfrom: (13.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20130527115815-l51yffuy20gbv9q0
Tags: 3.8.0-1ubuntu1
* Sync with Debian (LP: #1184168). Remaining changes: 
  - debian/control.in, debian/rules:
    + Run autoreconf
  - debian/rules:
    + Generate POT files on build
  - debian/patches/01_gettext_not_xml.patch: 
    + using gettext rather than add translations to the xml databases
  - debian/patches/02_no_external_gettext.patch:
    + Can't have both IT_PROG_INTLTOOL and AM_GNU_GETTEXT

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT([libgweather], [3.2.1],
2
 
        [http://bugzilla.gnome.org/enter_bug.cgi?product=libgweather])
3
 
AC_PREREQ(2.62)
4
 
 
5
 
AM_CONFIG_HEADER(config.h)
6
 
AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-bzip2 tar-ustar])
 
1
AC_INIT([libgweather],
 
2
        [3.8.0],
 
3
        [http://bugzilla.gnome.org/enter_bug.cgi?product=libgweather],
 
4
        [libgweather],
 
5
        [http://live.gnome.org/LibGWeather])
 
6
AC_PREREQ([2.64])
 
7
 
 
8
AC_CONFIG_HEADERS([config.h])
 
9
AC_CONFIG_MACRO_DIR([m4])
 
10
AC_CONFIG_AUX_DIR([build-aux])
 
11
 
 
12
AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz tar-ustar])
7
13
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
8
 
AC_CONFIG_MACRO_DIR([m4])
9
14
 
10
15
# Before making a release, the LT_VERSION string should be modified.
11
16
# The string is of the form C:R:A.
15
20
#   change to C+1:0:0
16
21
# - If the interface is the same as the previous version, change to C:R+1:A
17
22
 
18
 
LT_VERSION=0:4:0
 
23
LT_VERSION=3:3:0
19
24
AC_SUBST(LT_VERSION)
20
25
 
21
 
AC_CANONICAL_HOST
22
 
AC_MSG_CHECKING([for Win32])
23
 
case "$host" in
24
 
  *-*-mingw*)
25
 
    gweather_native_win32="yes"
26
 
    ;;
27
 
  *)
28
 
    gweather_native_win32="no"
29
 
    ;;
30
 
esac
31
 
AC_MSG_RESULT([$gweather_native_win32])
32
 
AM_CONDITIONAL(OS_WIN32, [test "$gweather_native_win32" = "yes"])
33
 
 
34
26
GTK_REQUIRED=2.90.0
35
 
GLIB_REQUIRED=2.13.0
36
 
LIBSOUP_REQUIRED=2.4.0
37
 
LIBSOUP_GNOME_REQUIRED=2.25.1
38
 
GCONF_REQUIRED=2.8.0
 
27
GLIB_REQUIRED=2.35.1
 
28
LIBSOUP_REQUIRED=2.34.0
39
29
LIBXML_REQUIRED=2.6.0
40
30
 
41
 
GNOME_MAINTAINER_MODE_DEFINES
42
 
 
43
31
LT_PREREQ([2.2.6])
44
 
LT_INIT([dlopen win32-dll disable-static])
45
 
 
46
 
IT_PROG_INTLTOOL([0.40.6])
 
32
LT_INIT([disable-static])
 
33
LT_LIB_M
 
34
 
 
35
dnl IT_PROG_INTLTOOL does this for us in the case of the po/ subdir, but we're on our own for po-locations
 
36
AC_OUTPUT_COMMANDS([sed -e "/POTFILES =/r po/POTFILES" po-locations/Makefile.in > po-locations/Makefile])
 
37
IT_PO_SUBDIR([po-locations])
 
38
 
47
39
PKG_PROG_PKG_CONFIG([0.19])
48
40
 
49
41
AC_PROG_CC
50
 
AC_PATH_PROG(GCONFTOOL, gconftool-2)
 
42
AM_PROG_CC_C_O
51
43
 
52
 
AC_ARG_ENABLE(all-translations-in-one-xml,
53
 
        [AC_HELP_STRING([--enable-all-translations-in-one-xml],
54
 
                        [Put all translations in a big Locations.xml file (slow to parse)])],
55
 
        [enable_big_xml=yes],
56
 
        [enable_big_xml=no])
57
 
AM_CONDITIONAL(USE_ONE_BIG_XML, test "x$enable_big_xml" = "xyes")
 
44
GLIB_GSETTINGS
58
45
 
59
46
AC_ARG_ENABLE(locations-compression,
60
 
        [AC_HELP_STRING([--enable-locations-compression],
 
47
        [AS_HELP_STRING([--enable-locations-compression],
61
48
                        [Compress Locations.xml files])],
62
49
        [enable_locations_compression=yes],
63
50
        [enable_locations_compression=no])
70
57
 
71
58
GNOME_COMPILE_WARNINGS([maximum])
72
59
 
73
 
if test "x$enable_maintainer_mode" = "xyes"; then
74
 
        CFLAGS="$CFLAGS $DISABLE_DEPRECATED"
75
 
fi
76
 
 
77
60
dnl -- Check for GTK+ 3.0 (required) ------------------------------------------
78
61
PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_REQUIRED)
79
 
GTK_CFLAGS="$GTK_CFLAGS -DGTK_DISABLE_SINGLE_INCLUDES"
80
 
AC_SUBST(GTK_CFLAGS)
81
 
AC_SUBST(GTK_LIBS)
82
62
 
83
63
dnl -- Check for libxml (required) ------------------------------------------
84
64
PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED)
85
 
AC_SUBST(LIBXML_CFLAGS)
86
 
AC_SUBST(LIBXML_LIBS)
87
65
 
88
66
dnl -- check for libsoup (required) -----------------------------------------
89
 
PKG_CHECK_MODULES(LIBSOUP_GNOME,
90
 
                  [libsoup-gnome-2.4 >= $LIBSOUP_GNOME_REQUIRED],
91
 
                  [LIBSOUP_CFLAGS="$LIBSOUP_GNOME_CFLAGS"
92
 
                   LIBSOUP_LIBS="$LIBSOUP_GNOME_LIBS"
93
 
                   AC_DEFINE(HAVE_LIBSOUP_GNOME, 1, [Have libsoup-gnome])],
94
 
                  [PKG_CHECK_MODULES(LIBSOUP, [libsoup-2.4 >= $LIBSOUP_REQUIRED])])
95
 
AC_SUBST(LIBSOUP_CFLAGS)
96
 
AC_SUBST(LIBSOUP_LIBS)
97
 
 
98
 
dnl -- check for gconf (required) -----------------------------------------
99
 
PKG_CHECK_MODULES(GCONF, 
100
 
                  [gconf-2.0 >= $GCONF_REQUIRED])
101
 
AC_SUBST(GCONF_CFLAGS)
102
 
AC_SUBST(GCONF_LIBS)
103
 
 
104
 
AM_GCONF_SOURCE_2
 
67
PKG_CHECK_MODULES(LIBSOUP, [libsoup-2.4 >= $LIBSOUP_REQUIRED])
 
68
 
 
69
dnl -- check for glib and gio (required) -----------------------------------------
 
70
PKG_CHECK_MODULES(GIO,
 
71
                  [glib-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED])
105
72
 
106
73
dnl -- check for glib; redundant at this point, but sets $GLIB_MKENUMS
107
74
AM_PATH_GLIB_2_0($GLIB_REQUIRED)
108
 
CFLAGS="$CFLAGS -DG_DISABLE_SINGLE_INCLUDES"
109
75
 
110
76
dnl gettext
 
77
IT_PROG_INTLTOOL([0.50.0])
111
78
 
112
79
GETTEXT_PACKAGE=libgweather-3.0
113
80
AC_SUBST(GETTEXT_PACKAGE)
114
81
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext Package])
115
 
AM_GLIB_GNU_GETTEXT
116
 
 
117
82
 
118
83
dnl ***************************************************************************
119
84
dnl ***  REGEX                                                              ***
144
109
dnl *** _NL_MEASUREMENT_MEASUREMENT is an enum and not a define             ***
145
110
dnl ***************************************************************************
146
111
AC_MSG_CHECKING([for _NL_MEASUREMENT_MEASUREMENT])
147
 
AC_TRY_LINK([#include <langinfo.h>], [
 
112
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[
148
113
char c;
149
114
c = *((unsigned char *)  nl_langinfo(_NL_MEASUREMENT_MEASUREMENT));
150
 
], gtk_ok=yes, gtk_ok=no)
 
115
]])],[gtk_ok=yes],[gtk_ok=no])
151
116
AC_MSG_RESULT($gtk_ok)
152
117
if test "$gtk_ok" = "yes"; then
153
118
  AC_DEFINE([HAVE__NL_MEASUREMENT_MEASUREMENT], [1],
180
145
##################################################
181
146
# Checks for gtk-doc and docbook-tools
182
147
##################################################
183
 
GTK_DOC_CHECK([1.9])
 
148
GTK_DOC_CHECK([1.11],[--flavour no-tmpl])
184
149
 
185
150
GOBJECT_INTROSPECTION_CHECK([0.9.5])
186
151
 
187
152
dnl ***************************************************************************
188
153
dnl *** Output Makefiles et al                                              ***
189
154
dnl ***************************************************************************
190
 
AC_OUTPUT([
 
155
AC_CONFIG_FILES([
191
156
Makefile
192
157
doc/Makefile
193
158
po/Makefile.in
194
 
po-locations/Makefile
 
159
po-locations/Makefile.in
195
160
libgweather/Makefile
196
161
libgweather/gweather-3.0.pc
197
162
libgweather/gweather-3.0-uninstalled.pc
198
163
data/Makefile
199
164
icons/Makefile
 
165
schemas/Makefile
200
166
])
201
 
 
202
 
if test "x$enable_big_xml" = "xyes"; then
203
 
        LOCATIONS_XML_TRANSLATIONS="one big file"
204
 
else
205
 
        LOCATIONS_XML_TRANSLATIONS="one file per translation"
206
 
fi
 
167
AC_OUTPUT
207
168
 
208
169
dnl ***************************************************************************
209
170
dnl *** Display Summary                                                     ***
215
176
        Source code location:           ${srcdir}
216
177
        Compiler:                       ${CC}
217
178
        Introspection support:          ${found_introspection}
218
 
        Locations.xml translations:     ${LOCATIONS_XML_TRANSLATIONS}
219
 
        Locations.xml compression:      ${enable_locations_compression}
220
179
" >&2