1
AC_INIT([libgweather], [3.2.1],
2
[http://bugzilla.gnome.org/enter_bug.cgi?product=libgweather])
5
AM_CONFIG_HEADER(config.h)
6
AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-bzip2 tar-ustar])
3
[http://bugzilla.gnome.org/enter_bug.cgi?product=libgweather],
5
[http://live.gnome.org/LibGWeather])
8
AC_CONFIG_HEADERS([config.h])
9
AC_CONFIG_MACRO_DIR([m4])
10
AC_CONFIG_AUX_DIR([build-aux])
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])
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
19
24
AC_SUBST(LT_VERSION)
22
AC_MSG_CHECKING([for Win32])
25
gweather_native_win32="yes"
28
gweather_native_win32="no"
31
AC_MSG_RESULT([$gweather_native_win32])
32
AM_CONDITIONAL(OS_WIN32, [test "$gweather_native_win32" = "yes"])
34
26
GTK_REQUIRED=2.90.0
36
LIBSOUP_REQUIRED=2.4.0
37
LIBSOUP_GNOME_REQUIRED=2.25.1
28
LIBSOUP_REQUIRED=2.34.0
39
29
LIBXML_REQUIRED=2.6.0
41
GNOME_MAINTAINER_MODE_DEFINES
44
LT_INIT([dlopen win32-dll disable-static])
46
IT_PROG_INTLTOOL([0.40.6])
32
LT_INIT([disable-static])
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])
47
39
PKG_PROG_PKG_CONFIG([0.19])
50
AC_PATH_PROG(GCONFTOOL, gconftool-2)
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)])],
57
AM_CONDITIONAL(USE_ONE_BIG_XML, test "x$enable_big_xml" = "xyes")
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])
71
58
GNOME_COMPILE_WARNINGS([maximum])
73
if test "x$enable_maintainer_mode" = "xyes"; then
74
CFLAGS="$CFLAGS $DISABLE_DEPRECATED"
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"
83
63
dnl -- Check for libxml (required) ------------------------------------------
84
64
PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED)
85
AC_SUBST(LIBXML_CFLAGS)
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)
98
dnl -- check for gconf (required) -----------------------------------------
99
PKG_CHECK_MODULES(GCONF,
100
[gconf-2.0 >= $GCONF_REQUIRED])
101
AC_SUBST(GCONF_CFLAGS)
67
PKG_CHECK_MODULES(LIBSOUP, [libsoup-2.4 >= $LIBSOUP_REQUIRED])
69
dnl -- check for glib and gio (required) -----------------------------------------
70
PKG_CHECK_MODULES(GIO,
71
[glib-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED])
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"
77
IT_PROG_INTLTOOL([0.50.0])
112
79
GETTEXT_PACKAGE=libgweather-3.0
113
80
AC_SUBST(GETTEXT_PACKAGE)
114
81
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext Package])
118
83
dnl ***************************************************************************
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>]], [[
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
##################################################
148
GTK_DOC_CHECK([1.11],[--flavour no-tmpl])
185
150
GOBJECT_INTROSPECTION_CHECK([0.9.5])
187
152
dnl ***************************************************************************
188
153
dnl *** Output Makefiles et al ***
189
154
dnl ***************************************************************************
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
202
if test "x$enable_big_xml" = "xyes"; then
203
LOCATIONS_XML_TRANSLATIONS="one big file"
205
LOCATIONS_XML_TRANSLATIONS="one file per translation"
208
169
dnl ***************************************************************************
209
170
dnl *** Display Summary ***