[gnome-shell] Modernize autotools configuration



commit d62b4cf130abca975f16be987c51279037020a50
Author: Javier Jardón <jjardon gnome org>
Date:   Sun Feb 7 02:19:41 2010 +0100

    Modernize autotools configuration
    
    New requirements:
    autoconf >= 2.63
    libtool >= 2.2.6
    intltool >= 0.40.6
    pkg-config >= 0.22
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=609205

 Makefile.am  |    3 +++
 autogen.sh   |    3 +--
 configure.ac |   51 +++++++++++++++++++++++++++++++++------------------
 3 files changed, 37 insertions(+), 20 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index e1a7cd1..8957f9c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,6 @@
+# Point to our macro directory and pick up user flags from the environment
+ACLOCAL_AMFLAGS  = -I m4 ${ACLOCAL_FLAGS}
+
 SUBDIRS = data js src tests po man
 
 EXTRA_DIST =		\
diff --git a/autogen.sh b/autogen.sh
index 54b24b6..e963b9a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -5,7 +5,6 @@ srcdir=`dirname $0`
 test -z "$srcdir" && srcdir=.
 
 PKG_NAME="gnome-shell"
-REQUIRED_AUTOMAKE_VERSION=1.10
 
 (test -f $srcdir/configure.ac \
   && test -d $srcdir/src) || {
@@ -15,7 +14,7 @@ REQUIRED_AUTOMAKE_VERSION=1.10
 }
 
 which gnome-autogen.sh || {
-    echo "You need to install gnome-common from GNOME Subversion (or from"
+    echo "You need to install gnome-common from GNOME Git (or from"
     echo "your OS vendor's package manager)."
     exit 1
 }
diff --git a/configure.ac b/configure.ac
index ec9b3b6..4c0aacd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,29 +1,44 @@
-AC_INIT(gnome-shell, 2.28.1)
+AC_PREREQ(2.63)
+AC_INIT([gnome-shell],[2.28.1],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell],[gnome-shell])
 
-AC_CONFIG_AUX_DIR(config)
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_SRCDIR([src/shell-global.c])
+AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_AUX_DIR([config])
 
-AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip foreign])
+AM_INIT_AUTOMAKE([1.10 check-news dist-bzip2 no-dist-gzip foreign])
 AM_MAINTAINER_MODE
+m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
 
-m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],)
-
-AC_CONFIG_HEADERS(config.h)
-
-AC_DISABLE_STATIC
+# Checks for programs.
 AC_PROG_CC
 # Needed for per-target cflags, like in gnomeshell-taskpanel
 AM_PROG_CC_C_O
-AM_PROG_LIBTOOL
 
-GETTEXT_PACKAGE=gnome-shell
-AC_SUBST(GETTEXT_PACKAGE)
-AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
-                   [The prefix for our gettext translation domains.])
+# Initialize libtool
+LT_PREREQ([2.2.6])
+LT_INIT([disable-static])
+
+# Checks for header files.
+AC_PATH_X
+AC_CHECK_HEADERS([fcntl.h float.h libintl.h paths.h stdlib.h string.h unistd.h])
 
-PKG_PROG_PKG_CONFIG(0.16)
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_INLINE
+AC_TYPE_SIZE_T
+AC_TYPE_UID_T
 
-IT_PROG_INTLTOOL(0.26)
+# Checks for library functions.
+AC_CHECK_FUNCS([floor getusershell memset strchr strdup strrchr strstr strtol strtoul])
+
+# i18n
+IT_PROG_INTLTOOL([0.40.6])
+AC_SUBST([GETTEXT_PACKAGE], [gnome-shell])
+AM_GNU_GETTEXT_VERSION([0.17])
 AM_GLIB_GNU_GETTEXT
+AC_DEFINE([GETTEXT_PACKAGE], [PACKAGE_TARNAME], [The prefix for our gettext translation domains.])
+
+PKG_PROG_PKG_CONFIG([0.22])
 
 AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
 AM_GCONF_SOURCE_2
@@ -94,8 +109,7 @@ AC_SUBST(TYPELIBDIR)
 # Stay command-line compatible with the gnome-common configure option. Here
 # minimum/yes/maximum are the same, however.
 AC_ARG_ENABLE(compile_warnings,
-  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
-                 [Turn on compiler warnings]),,
+  AS_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],[Turn on compiler warnings]),,
   enable_compile_warnings=error)
 
 changequote(,)dnl
@@ -122,7 +136,7 @@ changequote([,])dnl
 AC_PATH_PROG(mutter, [mutter])
 AC_SUBST(mutter)
 
-AC_OUTPUT([
+AC_CONFIG_FILES([
   Makefile
   data/Makefile
   js/Makefile
@@ -133,3 +147,4 @@ AC_OUTPUT([
   po/Makefile.in
   man/Makefile
 ])
+AC_OUTPUT



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]