[sysprof] build: Update autotools configuration a bit



commit f5570adcd6d36db0005080789da9adddb5f698d7
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Jan 24 23:11:40 2011 +0000

    build: Update autotools configuration a bit

 Makefile.am  |    2 ++
 autogen.sh   |    2 ++
 configure.ac |   19 ++++++++++++-------
 3 files changed, 16 insertions(+), 7 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 6436ab9..0520f5f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,5 @@
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
 #SUBDIRS = $(MODULE_SUBDIR)
 #DIST_SUBDIRS = module
 
diff --git a/autogen.sh b/autogen.sh
index 27d4025..095dd7c 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -7,6 +7,8 @@ test -n "$srcdir" || srcdir=.
 olddir=`pwd`
 cd "$srcdir"
 
+mkdir m4
+
 AUTORECONF=`which autoreconf`
 if test -z $AUTORECONF; then
         echo "*** No autoreconf found, please install it ***"
diff --git a/configure.ac b/configure.ac
index 64e1f2d..b550391 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,20 +1,25 @@
-AC_PREREQ(2.54)
+AC_PREREQ([2.63])
 
 AC_INIT([sysprof], [1.1.7])
-AC_CONFIG_SRCDIR(sysprof.glade)
 
-AM_INIT_AUTOMAKE(no-define)
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_SRCDIR([sysprof.glade])
+AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_AUX_DIR([build-aux])
 
-AM_CONFIG_HEADER(config.h)
-
-AC_PROG_CC
-AC_PROG_INSTALL
+AM_INIT_AUTOMAKE([1.10 -Wall no-define])
+AM_MAINTAINER_MODE([enable])
 
 # Support silent build rules, requires at least automake-1.11. Disable
 # by either passing --disable-silent-rules to configure or passing V=1
 # to make
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
+# Check for programs
+AC_PROG_CC
+AM_PROG_CC_C_O
+AC_PROG_INSTALL
+
 changequote(,)dnl
 if test "x$GCC" = "xyes"; then
   case " $CFLAGS " in



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