Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 198 lines (171 sloc) 5.319 kB
7546a8a @rainwoodman bump the version to 0.7.9,
rainwoodman authored
1 AC_INIT(gnome-globalmenu, [0.7.9], [rainwoodman@gmail.com], [gnome-globalmenu])
8f0ee05 @rainwoodman Big bang - cleanup all vapi files.
rainwoodman authored
2
3 AC_CONFIG_MACRO_DIR([autotools])
4 AC_CONFIG_AUX_DIR([autotools])
5 AC_SUBST(ACLOCAL_AMFLAGS, "-I autotools")
1d6d5b2 @rainwoodman Initialize the reposity
rainwoodman authored
6
a4308a7 @rainwoodman Moving files arround.
rainwoodman authored
7 AM_INIT_AUTOMAKE([1.9 tar-ustar dist-bzip2 subdir-objects])
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
8 AC_CONFIG_SRCDIR([Makefile.am])
9 AC_CONFIG_HEADERS(config.h)
10
11 # maintainer mode
1d6d5b2 @rainwoodman Initialize the reposity
rainwoodman authored
12 AM_MAINTAINER_MODE
13
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
14
15 # Checks for programs.
16 AC_PROG_CC
17 AM_PROG_CC_C_O
18 AC_LIBTOOL_DLOPEN
1013dbf @rainwoodman Clean up packaging. DISABLE_STATIC again.
rainwoodman authored
19 AC_DISABLE_STATIC
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
20 AC_PROG_LIBTOOL
8f0ee05 @rainwoodman Big bang - cleanup all vapi files.
rainwoodman authored
21 DOLT
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
22 AC_SUBST(CFLAGS)
23 AC_SUBST(CPPFLAGS)
24 AC_SUBST(LDFLAGS)
25
26 AM_GCONF_SOURCE_2
27
b107862 @rainwoodman Use AC_PATH_PROG to figure out the location of gconftool-2,
rainwoodman authored
28 AC_PATH_PROG(GCONFTOOL, gconftool-2)
29
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
30 # tests
6ff409a @rainwoodman Disable all tests.
rainwoodman authored
31 #USE_TESTS=false
32 #AC_ARG_ENABLE(
33 # [tests],
34 # AC_HELP_STRING([--enable-tests], [enable tests, default is yes]),
35 # [ test "x$enableval" == xno && USE_TESTS=false ],
36 # [ USE_TESTS=true ])
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
37 AM_CONDITIONAL([ENABLE_TESTS], [test "x$USE_TESTS" == xtrue])
38
230453c @rainwoodman everything should build OK now.
rainwoodman authored
39 # misc defines
40 AC_DEFINE(WNCK_I_KNOW_THIS_IS_UNSTABLE, 1, [libwnck is happy with this])
41 AC_DEFINE(GMENU_I_KNOW_THIS_IS_UNSTABLE, 1,[libgnome-menus is happy with this])
42 AC_DEFINE(GDataTestFunc, void*, [Workaround GDataTestFunc problem])
43
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
44 # intl
45 AM_GLIB_GNU_GETTEXT
9abcee1 @rainwoodman Add the (disabled) lines for autopoint support.
rainwoodman authored
46 # The following lines replaces glib-gettext with autopoint which doesn't work with GNOME
47 #AM_GNU_GETTEXT(external)
48 #AM_GNU_GETTEXT_VERSION(0.14.5)
49 IT_PROG_INTLTOOL
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
50 GETTEXT_PACKAGE=gnome-globalmenu
51 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [gettext package])
52 AC_SUBST(GETTEXT_PACKAGE)
b1654c6 @rainwoodman define localedir if not defined yet.
rainwoodman authored
53 if test "x$localedir" == x; then
54 localedir='${datadir}/locale'
55 AC_SUBST(localedir)
56 fi
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
57 # Check for Vala
df856c0 @rainwoodman bump the vala requirement.
rainwoodman authored
58 VALA_PROG_VALAC(0.7.7)
8a68d90 @rainwoodman Fixed the uncompilable problem for requirement autoconf 2.63.
rainwoodman authored
59
5335bef @rainwoodman Lots lots of changes during the APS meeting.
rainwoodman authored
60 VALA_DEFAULT_PKGS="--vapidir \$(top_srcdir) --vapidir \$(top_srcdir)/vapi --pkg configmake --pkg config"
8f0ee05 @rainwoodman Big bang - cleanup all vapi files.
rainwoodman authored
61 AC_SUBST(VALA_DEFAULT_PKGS)
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
62 # check for modules
ba02fde @rainwoodman move the vala version checks to configure.ac
rainwoodman authored
63
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
64 GLIB_REQUIRED=2.10.0
c9ae596 @rainwoodman the gtk module now compilers under RHEL 5.2, with gtk 2.10
rainwoodman authored
65 GTK_REQUIRED=2.10.0
7ee6098 @fengshenx add i18n files.
fengshenx authored
66
c9ae596 @rainwoodman the gtk module now compilers under RHEL 5.2, with gtk 2.10
rainwoodman authored
67 WNCK_REQUIRED=2.16.0
68 PANEL_REQUIRED=2.16.0
69 GMENU_REQUIRED=2.16.0
bc732a6 @rainwoodman Send an notification to the user if the plugin is not enabled via des…
rainwoodman authored
70 NOTIFY_REQUIRED=0.4.0
b5eaca8 @rainwoodman Packaging changes -- overlinking and underlinking.
rainwoodman authored
71 X11_REQUIRED=1.1.0
f27f52c @rainwoodman options to build the xfce applet and directory for the xfce applet.
rainwoodman authored
72 XFCE4_PANEL_REQUIRED=4.4.3
1d6d5b2 @rainwoodman Initialize the reposity
rainwoodman authored
73
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
74 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gmodule-2.0 >= $GLIB_REQUIRED)
75 AC_SUBST(GLIB_CFLAGS)
76 AC_SUBST(GLIB_LIBS)
d7ac41e @rainwoodman Take advantages of GIO for logging in gnomenugtk
rainwoodman authored
77
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
78 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED)
79 AC_SUBST(GTK_CFLAGS)
80 AC_SUBST(GTK_LIBS)
3ee4624 @rainwoodman Merge changes from 0.6-devel
rainwoodman authored
81
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
82 PKG_CHECK_MODULES(WNCK, libwnck-1.0 >= $WNCK_REQUIRED)
83 AC_SUBST(WNCK_CFLAGS)
84 AC_SUBST(WNCK_LIBS)
3ee4624 @rainwoodman Merge changes from 0.6-devel
rainwoodman authored
85
bd35045 @rainwoodman Move application.vala and task-utils into libgnomenu. Deprecate gnome…
rainwoodman authored
86 PKG_CHECK_MODULES(GMENU, libgnome-menu >= $GMENU_REQUIRED)
87 AC_SUBST(GMENU_CFLAGS)
88 AC_SUBST(GMENU_LIBS)
89
b5eaca8 @rainwoodman Packaging changes -- overlinking and underlinking.
rainwoodman authored
90 PKG_CHECK_MODULES(X11, x11 >= $X11_REQUIRED)
91 AC_SUBST(X11_CFLAGS)
92 AC_SUBST(X11_LIBS)
bc732a6 @rainwoodman Send an notification to the user if the plugin is not enabled via des…
rainwoodman authored
93
77b7176 @rainwoodman --without-gnome-panel to disable building the panel applet; getting r…
rainwoodman authored
94 AC_ARG_WITH(
31f8421 @rainwoodman Try to build the gobject-introspection typelib for libgnomenu,
rainwoodman authored
95 [gir],
96 AC_HELP_STRING([--with-gir], [enable building gir typelib]),
97 [],
98 [with_gir=no])
99 AS_IF([test "x$with_gir" != xno],
100 [
101 AC_PATH_PROG(GIRCOMPILER, [g-ir-compiler] )
102 AS_IF([test -n "$GIRCOMPILER" ],
103 [with_gir=true],
104 AC_MSG_FAILURE(
105 [test for g-ir-compiler failed. (--without-gir to disable).]
106 )
107 )
108 AC_SUBST(GIRCOMPILER)
109 GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
110 AC_SUBST(GIRDIR)
111 TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
112 AC_SUBST(TYPELIBDIR)
113 ]
114 )
115 AM_CONDITIONAL(WITH_GIR, [test "x$with_gir" = xtrue ])
116 AC_ARG_WITH(
77b7176 @rainwoodman --without-gnome-panel to disable building the panel applet; getting r…
rainwoodman authored
117 [gnome-panel],
118 AC_HELP_STRING([--without-gnome-panel], [disable gnome panel applet]),
119 [],
120 [with_gnome_panel=yes])
121 AS_IF([test "x$with_gnome_panel" != xno],
1b4dd53 @rainwoodman Fix Issue 278, gmenu deeply needed even if gnome-panel applet is disa…
rainwoodman authored
122 [PKG_CHECK_MODULES(GNOME_PANEL,
123 [ libpanelapplet-2.0 >= $PANEL_REQUIRED,
bd35045 @rainwoodman Move application.vala and task-utils into libgnomenu. Deprecate gnome…
rainwoodman authored
124 libnotify >= $NOTIFY_REQUIRED
1b4dd53 @rainwoodman Fix Issue 278, gmenu deeply needed even if gnome-panel applet is disa…
rainwoodman authored
125 ],
77b7176 @rainwoodman --without-gnome-panel to disable building the panel applet; getting r…
rainwoodman authored
126 [
127 with_gnome_panel=true;
1b4dd53 @rainwoodman Fix Issue 278, gmenu deeply needed even if gnome-panel applet is disa…
rainwoodman authored
128 AC_SUBST(GNOME_PANEL_CFLAGS)
129 AC_SUBST(GNOME_PANEL_LIBS)
0519e64 @rainwoodman gnomenu-private -> gnomenu
rainwoodman authored
130 BONOBO_SERVER_DIR="$($PKG_CONFIG --variable=libdir bonobo-activation-2.0)/bonobo/servers"
131 AC_SUBST(BONOBO_SERVER_DIR)
77b7176 @rainwoodman --without-gnome-panel to disable building the panel applet; getting r…
rainwoodman authored
132 ],
133 [
134 with_gnome_panel=false;
135 if test "x$with_gnome_panel" != xcheck; then
136 AC_MSG_FAILURE(
d697482 @lviggiani The test for libpanelapplet-2.0 is also testing for libnotify but the
lviggiani authored
137 [test for libpanelapplet-2.0 and libnotify failed. (--without-gnome-panel to disable).])
77b7176 @rainwoodman --without-gnome-panel to disable building the panel applet; getting r…
rainwoodman authored
138 fi;]
139 )])
140 AM_CONDITIONAL(WITH_GNOME_PANEL, [test "x$with_gnome_panel" = xtrue ])
141
f27f52c @rainwoodman options to build the xfce applet and directory for the xfce applet.
rainwoodman authored
142 AC_ARG_WITH(
143 [xfce4-panel],
144 AC_HELP_STRING([--with-xfce4-panel], [enable xfce panel applet]),
145 [],
66cf890 @rainwoodman Rename libgnomenu -> libserver.
rainwoodman authored
146 [with_xfce4_panel=check])
f27f52c @rainwoodman options to build the xfce applet and directory for the xfce applet.
rainwoodman authored
147 AS_IF([test "x$with_xfce4_panel" != xno],
148 [PKG_CHECK_MODULES(XFCE4_PANEL, [libxfce4panel-1.0 >= $XFCE4_PANEL_REQUIRED],
149 [
150 with_xfce4_panel=true;
151 AC_SUBST(XFCE4_PANEL_CFLAGS)
152 AC_SUBST(XFCE4_PANEL_LIBS)
64dfa01 @rainwoodman Issue304
rainwoodman authored
153 XFCE4_PANEL_PLUGIN_DIR="$($PKG_CONFIG --variable=libexecdir libxfce4panel-1.0)/xfce4/panel-plugins"
154 XFCE4_PANEL_DESKTOP_DIR="$($PKG_CONFIG --variable=datadir libxfce4panel-1.0)/xfce4/panel-plugins"
0519e64 @rainwoodman gnomenu-private -> gnomenu
rainwoodman authored
155 AC_SUBST(XFCE4_PANEL_PLUGIN_DIR)
156 AC_SUBST(XFCE4_PANEL_DESKTOP_DIR)
f27f52c @rainwoodman options to build the xfce applet and directory for the xfce applet.
rainwoodman authored
157 ],
158 [
159 with_xfce4_panel=false;
160 if test "x$with_xfce4_panel" != xcheck; then
161 AC_MSG_FAILURE(
162 [test for libxfce4panel-1.0 failed. (--without-xfce4-panel to disable).])
163 fi;]
164 )])
165 AM_CONDITIONAL(WITH_XFCE4_PANEL, [test "x$with_xfce4_panel" = xtrue ])
166
3ee4624 @rainwoodman Merge changes from 0.6-devel
rainwoodman authored
167
0519e64 @rainwoodman gnomenu-private -> gnomenu
rainwoodman authored
168 GTK_MODULES_DIR="$($PKG_CONFIG --variable=libdir gtk+-2.0)/gtk-2.0/modules"
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
169 AC_SUBST(GTK_MODULES_DIR)
04100c6 @fengshenx few typing errors
fengshenx authored
170
1c88515 @rainwoodman Fix Issue 280. Add svn version string to the gtk-module and gnomeapplet.
rainwoodman authored
171 # svnversion
5335bef @rainwoodman Lots lots of changes during the APS meeting.
rainwoodman authored
172 dnl AC_PATH_PROG(SVNVERSION_BIN, [svnversion])
173 dnl SVNVERSION=`$SVNVERSION_BIN|sed -e 's;:;_;g' -e 's;exported;;'`
174 dnl AC_SUBST(SVNVERSION)
175 dnl AC_DEFINE_UNQUOTED(SVNVERSION, "$SVNVERSION", [svn version if appropriate])
1c88515 @rainwoodman Fix Issue 280. Add svn version string to the gtk-module and gnomeapplet.
rainwoodman authored
176
c9ae596 @rainwoodman the gtk module now compilers under RHEL 5.2, with gtk 2.10
rainwoodman authored
177 # old automake fix
178 AC_SUBST(abs_top_srcdir)
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
179 # output
180
181 AC_CONFIG_FILES(
182 [Makefile
464030e @rainwoodman Rename libcompat to legacy-support.
rainwoodman authored
183 legacy-support/Makefile
66cf890 @rainwoodman Rename libgnomenu -> libserver.
rainwoodman authored
184 libserver/Makefile
2cb0abc @rainwoodman Rename libserver.la to libglobalmenu-server.la
rainwoodman authored
185 libserver/globalmenu-server.pc
b34eb32 @rainwoodman Start the settings library
rainwoodman authored
186 libsettings/Makefile
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
187 applet/Makefile
f27f52c @rainwoodman options to build the xfce applet and directory for the xfce applet.
rainwoodman authored
188 xfce/Makefile
f76d3ae @rainwoodman dist the vapi files
rainwoodman authored
189 vapi/Makefile
d005b28 @rainwoodman Move globalmenu-plugin to topsrcdir.
rainwoodman authored
190 globalmenu-plugin/Makefile
049cc19 @rainwoodman rename gnomenu-panel to globalmenu-gnome-panel
rainwoodman authored
191 globalmenu-gnome-panel/Makefile
049ca9b @rainwoodman move write settings to tools/
rainwoodman authored
192 tools/Makefile
8a2f53b @rainwoodman Move schemas in to a subdir.
rainwoodman authored
193 schemas/Makefile
0fc20a7 @rainwoodman Merge 0.7-devel to trunk
rainwoodman authored
194 po/Makefile.in
195 ])
196
197 AC_OUTPUT
Something went wrong with that request. Please try again.