1 | AC_INIT([gnome-desktop], [2.8.3], |
---|
2 | [http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-desktop]) |
---|
3 | AC_CONFIG_SRCDIR([libgnome-desktop]) |
---|
4 | |
---|
5 | AM_INIT_AUTOMAKE |
---|
6 | AM_CONFIG_HEADER(config.h) |
---|
7 | |
---|
8 | dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work |
---|
9 | AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}") |
---|
10 | |
---|
11 | # Before making a release, the LT_VERSION string should be modified. |
---|
12 | # The string is of the form C:R:A. |
---|
13 | # - If interfaces have been changed or added, but binary compatibility has |
---|
14 | # been preserved, change to C+1:0:A+1 |
---|
15 | # - If binary compatibility has been broken (eg removed or changed interfaces) |
---|
16 | # change to C+1:0:0 |
---|
17 | # - If the interface is the same as the previous version, change to C:R+1:A |
---|
18 | |
---|
19 | LT_VERSION=3:13:1 |
---|
20 | AC_SUBST(LT_VERSION) |
---|
21 | |
---|
22 | AM_MAINTAINER_MODE |
---|
23 | |
---|
24 | AC_PROG_INTLTOOL |
---|
25 | |
---|
26 | AC_ISC_POSIX |
---|
27 | AC_PROG_CC |
---|
28 | AC_STDC_HEADERS |
---|
29 | AC_LIBTOOL_WIN32_DLL |
---|
30 | AM_PROG_LIBTOOL |
---|
31 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
---|
32 | |
---|
33 | GNOME_PLATFORM=2 |
---|
34 | GNOME_MINOR=8 |
---|
35 | GNOME_MICRO=3 |
---|
36 | GNOME_DISTRIBUTOR="GNOME.Org" |
---|
37 | GNOME_DATE=`date +"%Y-%m-%d"` |
---|
38 | |
---|
39 | AC_ARG_WITH(gnome_distributor, [ --with-gnome-distributor=DISTRIBUTOR Specify name of GNOME distributor]) |
---|
40 | |
---|
41 | if test "x$with_gnome_distributor" != x ; then |
---|
42 | GNOME_DISTRIBUTOR=$with_gnome_distributor |
---|
43 | fi |
---|
44 | |
---|
45 | AC_SUBST(GNOME_PLATFORM) |
---|
46 | AC_SUBST(GNOME_MINOR) |
---|
47 | AC_SUBST(GNOME_MICRO) |
---|
48 | AC_SUBST(GNOME_DISTRIBUTOR) |
---|
49 | AC_SUBST(GNOME_DATE) |
---|
50 | |
---|
51 | GNOME_COMPILE_WARNINGS(yes) |
---|
52 | |
---|
53 | AC_ARG_ENABLE(deprecations, |
---|
54 | [AC_HELP_STRING([--enable-deprecations], |
---|
55 | [warn about deprecated usages [default=no]])],, |
---|
56 | [enable_deprecations=no]) |
---|
57 | |
---|
58 | if test "x$enable_deprecations" = "xyes"; then |
---|
59 | DISABLE_DEPRECATED_CFLAGS="\ |
---|
60 | -DG_DISABLE_DEPRECATED \ |
---|
61 | -DGDK_DISABLE_DEPRECATED \ |
---|
62 | -DGTK_DISABLE_DEPRECATED \ |
---|
63 | -DGDK_PIXBUF_DISABLE_DEPRECATED \ |
---|
64 | -DGNOME_DISABLE_DEPRECATED" |
---|
65 | AC_SUBST(DISABLE_DEPRECATED_CFLAGS) |
---|
66 | fi |
---|
67 | |
---|
68 | dnl If you add a version number here, you *must* add an AC_SUBST line for |
---|
69 | dnl it too, or it will never make it into the spec file! |
---|
70 | |
---|
71 | GDK_PIXBUF_REQUIRED=2.0.3 |
---|
72 | GTK_REQUIRED=2.1.2 |
---|
73 | LIBGNOMECANVAS_REQUIRED=2.0.0 |
---|
74 | LIBGNOMEUI_REQUIRED=2.1.0 |
---|
75 | GNOME_VFS_REQUIRED=2.0.0 |
---|
76 | STARTUP_NOTIFICATION_REQUIRED=0.5 |
---|
77 | |
---|
78 | AC_SUBST(GTK_REQUIRED) |
---|
79 | AC_SUBST(GDK_PIXBUF_REQUIRED) |
---|
80 | AC_SUBST(LIBGNOMEUI_REQUIRED) |
---|
81 | AC_SUBST(LIBGNOMECANVAS_REQUIRED) |
---|
82 | AC_SUBST(GNOME_VFS_REQUIRED) |
---|
83 | AC_SUBST(STARTUP_NOTIFICATION_REQUIRED) |
---|
84 | |
---|
85 | if $PKG_CONFIG --atleast-version $STARTUP_NOTIFICATION_REQUIRED libstartup-notification-1.0; then |
---|
86 | echo "Building with libstartup-notification" |
---|
87 | AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, |
---|
88 | [Define if the startup-notification package is present]) |
---|
89 | with_startup_notification=yes |
---|
90 | STARTUP_NOTIFICATION_PACKAGE=libstartup-notification-1.0 |
---|
91 | else |
---|
92 | echo "***** WARNING: Building without libstartup-notification" |
---|
93 | with_startup_notification=no |
---|
94 | STARTUP_NOTIFICATION_PACKAGE= |
---|
95 | fi |
---|
96 | |
---|
97 | AC_SUBST(STARTUP_NOTIFICATION_PACKAGE) |
---|
98 | |
---|
99 | dnl pkg-config dependency checks |
---|
100 | |
---|
101 | PKG_CHECK_MODULES(GNOME_DESKTOP, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED $STARTUP_NOTIFICATION_PACKAGE) |
---|
102 | |
---|
103 | PKG_CHECK_MODULES(GNOME_ABOUT, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libgnomecanvas-2.0 >= $LIBGNOMECANVAS_REQUIRED) |
---|
104 | |
---|
105 | dnl scrollkeeper checks |
---|
106 | |
---|
107 | AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no) |
---|
108 | if test x$SCROLLKEEPER_CONFIG = xno; then |
---|
109 | AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package) |
---|
110 | fi |
---|
111 | |
---|
112 | dnl Language Support |
---|
113 | |
---|
114 | GETTEXT_PACKAGE=gnome-desktop-2.0 |
---|
115 | AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", |
---|
116 | [The gettext translation domain]) |
---|
117 | AC_SUBST(GETTEXT_PACKAGE) |
---|
118 | |
---|
119 | ALL_LINGUAS="af am ar az be bg bn br bs ca cs cy da de el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja kn ko li lt lv mi mk ml mn mr ms nb ne nl nn no nso pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th tk tr uk vi wa yi yo zh_CN zh_TW zu" |
---|
120 | AM_GLIB_GNU_GETTEXT |
---|
121 | |
---|
122 | |
---|
123 | dnl Place to look for KDE menus |
---|
124 | |
---|
125 | AC_ARG_WITH(kde-datadir, [ --with-kde-datadir=DIR Location of KDE data]) |
---|
126 | |
---|
127 | if test "x$with_kde_datadir" = x ; then |
---|
128 | kde_datadir=/usr/share |
---|
129 | else |
---|
130 | kde_datadir=$with_kde_datadir |
---|
131 | fi |
---|
132 | |
---|
133 | AC_DEFINE_UNQUOTED(KDE_MENUDIR, "$kde_datadir/applnk", |
---|
134 | [The KDE menu directory]) |
---|
135 | AC_DEFINE_UNQUOTED(KDE_ICONDIR, "$kde_datadir/icons", |
---|
136 | [The KDE icon directory]) |
---|
137 | AC_DEFINE_UNQUOTED(KDE_MINI_ICONDIR, "$kde_datadir/icons/mini", |
---|
138 | [The KDE mini icon directory]) |
---|
139 | |
---|
140 | dnl Don't use AC_PROG_AWK since we need the full pathname. |
---|
141 | AC_PATH_PROGS(AWK, mawk gawk nawk awk, ) |
---|
142 | AC_PATH_PROGS(PERL, perl5 perl) |
---|
143 | |
---|
144 | dnl define a MAINT-like variable REBUILD which is set if Perl |
---|
145 | dnl and awk are found, so autogenerated sources can be rebuilt |
---|
146 | AC_ARG_ENABLE(rebuilds, [ --disable-rebuilds disable all source autogeneration rules],,enable_rebuilds=yes) |
---|
147 | REBUILD=\# |
---|
148 | if test "x$enable_rebuilds" = "xyes" && \ |
---|
149 | test -n "$PERL" && \ |
---|
150 | $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \ |
---|
151 | test -n "$AWK" ; then |
---|
152 | REBUILD= |
---|
153 | fi |
---|
154 | AC_SUBST(REBUILD) |
---|
155 | |
---|
156 | AC_CONFIG_FILES([ |
---|
157 | Makefile |
---|
158 | gnome-desktop.spec |
---|
159 | desktop-links/Makefile |
---|
160 | gnome-about/Makefile |
---|
161 | gnome-about/headers/Makefile |
---|
162 | libgnome-desktop/Makefile |
---|
163 | libgnome-desktop/libgnome/Makefile |
---|
164 | libgnome-desktop/libgnomeui/Makefile |
---|
165 | libgnome-desktop/gnome-desktop-2.0.pc |
---|
166 | libgnome-desktop/gnome-desktop-2.0-uninstalled.pc |
---|
167 | gnome-version.xml.in |
---|
168 | po/Makefile.in |
---|
169 | pixmaps/Makefile |
---|
170 | desktop-docs/Makefile |
---|
171 | desktop-docs/fdl/Makefile |
---|
172 | desktop-docs/fdl/C/Makefile |
---|
173 | desktop-docs/fdl/eu/Makefile |
---|
174 | desktop-docs/gpl/Makefile |
---|
175 | desktop-docs/gpl/C/Makefile |
---|
176 | desktop-docs/gpl/eu/Makefile |
---|
177 | desktop-docs/lgpl/Makefile |
---|
178 | desktop-docs/lgpl/C/Makefile |
---|
179 | desktop-docs/lgpl/eu/Makefile |
---|
180 | desktop-docs/gnome-feedback/Makefile |
---|
181 | desktop-docs/gnome-feedback/C/Makefile |
---|
182 | desktop-docs/gnome-feedback/eu/Makefile |
---|
183 | man/Makefile |
---|
184 | ]) |
---|
185 | |
---|
186 | AC_OUTPUT |
---|