[libgdata] [build] Modernise configure.ac
- From: Philip Withnall <pwithnall src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgdata] [build] Modernise configure.ac
- Date: Tue, 26 Jan 2010 13:41:54 +0000 (UTC)
commit d39736dbc915a83c8ea687f714eb58ea61caa224
Author: Philip Withnall <philip tecnocode co uk>
Date: Tue Jan 26 13:40:42 2010 +0000
[build] Modernise configure.ac
Don't use deprecated Autoconf macros any more.
See: http://live.gnome.org/GnomeGoals/ModernAutotools
configure.ac | 28 +++++++++++++++-------------
libgdata.doap | 2 +-
2 files changed, 16 insertions(+), 14 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4631a97..78acc27 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,29 +1,24 @@
-AC_PREREQ(2.52)
+AC_PREREQ(2.63)
m4_define(gdata_major_version, 0)
m4_define(gdata_minor_version, 6)
m4_define(gdata_micro_version, 0)
-AC_INIT([libgdata], [gdata_major_version.gdata_minor_version.gdata_micro_version])
+AC_INIT([libgdata],[gdata_major_version.gdata_minor_version.gdata_micro_version],[https://bugzilla.gnome.org/enter_bug.cgi?product=libgdata],
+ [libgdata],[http://live.gnome.org/libgdata])
AC_CONFIG_SRCDIR([gdata/gdata.h])
AC_CONFIG_HEADERS([config.h])
-AC_GNU_SOURCE
+AC_USE_SYSTEM_EXTENSIONS
AM_INIT_AUTOMAKE([1.9 dist-bzip2 no-dist-gzip check-news subdir-objects])
# Enable silent build when available (Automake 1.11)
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
-GETTEXT_PACKAGE=gdata
-AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define to the Gettext package name])
-AC_SUBST(GETTEXT_PACKAGE)
-AM_GLIB_GNU_GETTEXT
-IT_PROG_INTLTOOL([0.40.0])
-
AC_PROG_CXX
AM_PROG_CC_C_O
-AC_PROG_LIBTOOL()
+LT_INIT([])
PKG_PROG_PKG_CONFIG
AC_PATH_PROG([GLIB_GENMARSHAL],[glib-genmarshal])
@@ -59,13 +54,12 @@ AC_SUBST(GDATA_CFLAGS)
AC_SUBST(GDATA_LIBS)
# Optional dependencies
-
PKG_CHECK_MODULES(GDK, gdk-2.0, have_gdk=yes, have_gdk=no)
if test "x$have_gdk" = "xyes"; then
AC_DEFINE(HAVE_GDK, 1, [Defined if GDK+ is installed])
fi
-AC_SUBST(GDK_CFLAGS) # TODO: test how this fairs without gdk-2.0.pc avail
+AC_SUBST(GDK_CFLAGS)
AC_SUBST(GDK_LIBS)
# GNOME support, which pulls in libsoup-gnome-2.4 to provide transparent proxy support
@@ -81,6 +75,13 @@ fi
AC_SUBST(GNOME_CFLAGS)
AC_SUBST(GNOME_LIBS)
+# Internationalisation support
+GETTEXT_PACKAGE=gdata
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define to the Gettext package name])
+AC_SUBST(GETTEXT_PACKAGE)
+AM_GLIB_GNU_GETTEXT
+IT_PROG_INTLTOOL([0.40.0])
+
# Code testing coverage with gcov
AC_MSG_CHECKING(whether to build with gcov testing)
AC_ARG_ENABLE(gcov, AS_HELP_STRING([--enable-gcov], [Whether to enable gcov testing]),, enable_gcov=no)
@@ -116,7 +117,7 @@ AC_SUBST([AM_LDFLAGS])
GTK_DOC_CHECK(1.0)
-AC_OUTPUT([
+AC_CONFIG_FILES([
Makefile
libgdata.pc
gdata/tests/Makefile
@@ -125,3 +126,4 @@ docs/Makefile
docs/reference/Makefile
docs/reference/version.xml
])
+AC_OUTPUT
diff --git a/libgdata.doap b/libgdata.doap
index d96a380..e584b02 100644
--- a/libgdata.doap
+++ b/libgdata.doap
@@ -2,7 +2,7 @@
<name xml:lang="en">libgdata</name>
<shortdesc xml:lang="en">GLib-based library for accessing online service APIs using the GData protocol</shortdesc>
<description xml:lang="en">libgdata is a GLib-based library for accessing online service APIs using the GData protocol â?? most notably, Google's services. It provides APIs to access the common Google services, and has full asynchronous support.</description>
- <homepage rdf:resource="http://live.gnome.org/libgdata/"/>
+ <homepage rdf:resource="http://live.gnome.org/libgdata"/>
<license rdf:resource="http://usefulinc.com/doap/licenses/lgpl"/>
<download-page rdf:resource="http://download.gnome.org/sources/libgdata/"/>
<maintainer>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]