summaryrefslogtreecommitdiffstats
path: root/patches/eggdbus-0.6/0003-update-autotoolization.patch
blob: 8909fb4b0f7b1ed76658964ae60d2734742c3e6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Sat, 29 Oct 2011 19:14:59 +0200
Subject: [PATCH] update autotoolization

This patch updates the autotool-infrastructure for recent tools.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
 Makefile.am              |    2 ++
 configure.ac             |   15 ++++++++-------
 docs/eggdbus/Makefile.am |    2 +-
 docs/tests/Makefile.am   |    2 +-
 src/eggdbus/Makefile.am  |    2 +-
 src/tests/Makefile.am    |    2 +-
 6 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index c1f1470..9ab8648 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,7 @@
 ## Process this file with automake to produce Makefile.in
 
+ACLOCAL_AMFLAGS = -I m4
+
 SUBDIRS = src docs
 
 NULL =
diff --git a/configure.ac b/configure.ac
index 0f31dea..5ad85af 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,16 +1,16 @@
 dnl Process this file with autoconf to produce a configure script.
 
-AC_PREREQ(2.59c)
-AC_INIT(eggdbus, 0.6, davidz@redhat.com)
+AC_PREREQ(2.64)
+AC_INIT([eggdbus],[0.6],[davidz@redhat.com])
 AM_INIT_AUTOMAKE(eggdbus, 0.6)
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
 AM_MAINTAINER_MODE
 
-AC_ISC_POSIX
 AC_PROG_CC
-AM_PROG_CC_STDC
+am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
+
 AC_HEADER_STDC
-AM_PROG_LIBTOOL
+LT_INIT
 AC_PROG_MAKE_SET
 AC_PROG_LN_S
 AC_SYS_LARGEFILE
@@ -135,7 +135,7 @@ if test "x$GCC" = "xyes"; then
   LDFLAGS="-Wl,--as-needed $LDFLAGS"
 fi
 
-AC_OUTPUT([
+AC_CONFIG_FILES([
 Makefile
 eggdbus-1.pc
 src/Makefile
@@ -147,6 +147,7 @@ docs/man/Makefile
 docs/tests/Makefile
 docs/eggdbus/Makefile
 ])
+AC_OUTPUT
 
 dnl ==========================================================================
 echo "
diff --git a/docs/eggdbus/Makefile.am b/docs/eggdbus/Makefile.am
index 94c00bf..e30e6c3 100644
--- a/docs/eggdbus/Makefile.am
+++ b/docs/eggdbus/Makefile.am
@@ -34,7 +34,7 @@ IGNORE_HFILES= 			\
 
 # CFLAGS and LDFLAGS for compiling scan program. Only needed
 # if $(DOC_MODULE).types is non-empty.
-INCLUDES = \
+AM_CPPFLAGS = \
 	$(DBUS_GLIB_CFLAGS)						\
 	$(GLIB_CFLAGS)							\
 	$(GIO_CFLAGS)							\
diff --git a/docs/tests/Makefile.am b/docs/tests/Makefile.am
index 5f7940c..3ba5cba 100644
--- a/docs/tests/Makefile.am
+++ b/docs/tests/Makefile.am
@@ -29,7 +29,7 @@ IGNORE_HFILES= 			\
 
 # CFLAGS and LDFLAGS for compiling scan program. Only needed
 # if $(DOC_MODULE).types is non-empty.
-INCLUDES = \
+AM_CPPFLAGS = \
 	$(DBUS_GLIB_CFLAGS)						\
 	$(GLIB_CFLAGS)							\
 	$(GIO_CFLAGS)							\
diff --git a/src/eggdbus/Makefile.am b/src/eggdbus/Makefile.am
index 95615cd..0f96181 100644
--- a/src/eggdbus/Makefile.am
+++ b/src/eggdbus/Makefile.am
@@ -1,7 +1,7 @@
 
 NULL =
 
-INCLUDES =                                              		\
+AM_CPPFLAGS =                                              		\
 	-I$(top_builddir)/src                           		\
 	-I$(top_srcdir)/src                             		\
 	-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\"       		\
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
index 7bc1b24..71a3e82 100644
--- a/src/tests/Makefile.am
+++ b/src/tests/Makefile.am
@@ -1,7 +1,7 @@
 
 NULL =
 
-INCLUDES =                                              		\
+AM_CPPFLAGS =                                              		\
 	-I$(top_builddir)/src                           		\
 	-I$(top_srcdir)/src                             		\
 	-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\"       		\