]> git.itanic.dy.fi Git - maemo-mapper/blob - configure.ac
Made the changes mentioned in debian/changelog in preparation for
[maemo-mapper] / configure.ac
1 #
2 # This file is part of maemo-mapper
3 #
4 # Copyright (C) 2006 John Costigan.
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License along
17 # with this program; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #
20
21 AC_INIT(Makefile.am)
22 AM_INIT_AUTOMAKE(maemo-mapper, 1.4.3)
23
24 AC_PROG_CPP
25 AC_CONFIG_HEADERS(src/config.h)
26 AC_PROG_INSTALL
27 AC_PROG_LIBTOOL
28
29 PKG_CHECK_MODULES(GTK, gtk+-2.0)
30 AC_SUBST(GTK_LIBS)
31 AC_SUBST(GTK_CFLAGS)
32
33 PKG_CHECK_MODULES(OSSO, libosso >= 1 libossohelp osso-ic)
34 AC_SUBST(OSSO_LIBS)
35 AC_SUBST(OSSO_CFLAGS)
36
37 PKG_CHECK_MODULES(HILDON, hildon-libs >= 0.9.50 hildon-fm)
38 AC_SUBST(HILDON_LIBS)
39 AC_SUBST(HILDON_CFLAGS)
40
41 PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11)
42 AC_SUBST(GNOME_VFS_LIBS)
43 AC_SUBST(GNOME_VFS_CFLAGS)
44
45 PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.6.2)
46 AC_SUBST(GCONF_LIBS)
47 AC_SUBST(GCONF_CFLAGS)
48
49 PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= 2.6.16)
50 AC_SUBST(LIBXML2_LIBS)
51 AC_SUBST(LIBXML2_CFLAGS)
52
53 PKG_CHECK_MODULES(LIBCURL, libcurl)
54 AC_SUBST(LIBCURL_LIBS)
55 AC_SUBST(LIBCURL_CFLAGS)
56
57 PKG_CHECK_MODULES(SQLITE, sqlite3)
58 AC_SUBST(SQLITE_LIBS)
59 AC_SUBST(SQLITE_CFLAGS)
60
61
62 # Localisation
63 localedir=`$PKG_CONFIG osso-af-settings --variable=localedir`
64 AC_PROG_INTLTOOL([0.23])
65 GETTEXT_PACKAGE=$PACKAGE
66 AC_SUBST(GETTEXT_PACKAGE)
67 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "${GETTEXT_PACKAGE}", [Name of gettext package])
68 ALL_LINGUAS="en_US en_GB nl_NL it_IT bg_BG fi_FI"
69 AM_GLIB_GNU_GETTEXT
70
71
72 # To make application visible in maemo Task Navigator it needs a Desktop
73 # file for the application.
74 # D-BUS service file is needed to be able to launch the maemo application
75 # and connect it to D-BUS services.
76 # The following line defines install directories for these files.
77 desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir`
78 serviceentrydir=`$PKG_CONFIG osso-af-settings --variable=dbusservicedir`
79
80 # Application pixmaps install directory
81 pixmapdir=`$PKG_CONFIG osso-af-settings --variable=hildonpixmapdir`
82
83 # Application icon install directories
84 icon_26x26dir=$datadir/icons/hicolor/26x26/hildon
85 icon_34x34dir=$datadir/icons/hicolor/34x34/hildon
86 icon_40x40dir=$datadir/icons/hicolor/40x40/hildon
87 icon_50x50dir=$datadir/icons/hicolor/50x50/hildon
88 icon_scalabledir=$datadir/icons/hicolor/scalable/hildon
89
90 # Help file install directory
91 helpfile_enusdir=$datadir/osso-help/en_US
92 AC_SUBST(helpfile_enusdir)
93 helpfile_engbdir=$datadir/osso-help/en_GB
94 AC_SUBST(helpfile_engbdir)
95
96 # Hildon control panel plugin install directories
97 pluginlibdir=`$PKG_CONFIG hildon-control-panel --variable=plugindir`
98 plugindesktopentrydir=`$PKG_CONFIG hildon-control-panel --variable=plugindesktopentrydir`
99
100 # Define as variables in Makefiles
101 AC_SUBST(desktopentrydir)
102 AC_SUBST(serviceentrydir)
103 AC_SUBST(localedir)
104 AC_SUBST(pixmapdir)
105 AC_SUBST(icon_26x26dir)
106 AC_SUBST(icon_34x34dir)
107 AC_SUBST(icon_40x40dir)
108 AC_SUBST(icon_50x50dir)
109 AC_SUBST(icon_scalabledir)
110 AC_SUBST(pluginlibdir)
111 AC_SUBST(plugindesktopentrydir)
112
113 AC_DEFINE_UNQUOTED([LOCALEDIR], "${localedir}", [Runtime locale catalog files path])
114 AC_DEFINE_UNQUOTED([PIXMAPDIR], "${pixmapdir}", [Runtime pixmap files path])
115
116 # Produce output files
117 AC_OUTPUT(
118           Makefile \
119           src/Makefile \
120           data/Makefile \
121           data/help/Makefile \
122           po/Makefile.in \
123           po/Makefile
124 )
125