2 # This file is part of maemo-mapper
4 # Copyright (C) 2006 John Costigan.
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.
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.
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.
22 AM_INIT_AUTOMAKE(maemo-mapper, 1.1)
25 AC_CONFIG_HEADERS(src/config.h)
28 AC_PROG_INTLTOOL([0.23])
30 PKG_CHECK_MODULES(GTK, gtk+-2.0)
34 PKG_CHECK_MODULES(OSSO, libosso >= 1 libossohelp)
38 PKG_CHECK_MODULES(HILDON, hildon-libs >= 0.9.50 hildon-fm)
40 AC_SUBST(HILDON_CFLAGS)
42 PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11)
43 AC_SUBST(GNOME_VFS_LIBS)
44 AC_SUBST(GNOME_VFS_CFLAGS)
46 PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.6.2)
48 AC_SUBST(GCONF_CFLAGS)
50 PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= 2.6.16)
51 AC_SUBST(LIBXML2_LIBS)
52 AC_SUBST(LIBXML2_CFLAGS)
56 GETTEXT_PACKAGE=$PACKAGE
57 AC_SUBST(GETTEXT_PACKAGE)
58 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "${GETTEXT_PACKAGE}", [Name of gettext package])
59 ALL_LINGUAS="en_US nl_NL"
62 # To make application visible in maemo Task Navigator it needs a Desktop
63 # file for the application.
64 # D-BUS service file is needed to be able to launch the maemo application
65 # and connect it to D-BUS services.
66 # The following line defines install directories for these files.
67 desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir`
68 serviceentrydir=`$PKG_CONFIG osso-af-settings --variable=dbusservicedir`
70 # Application locale install directory
71 localedir=`$PKG_CONFIG osso-af-settings --variable=localedir`
73 # Application pixmaps install directory
74 pixmapdir=`$PKG_CONFIG osso-af-settings --variable=hildonpixmapdir`
76 # Application icon install directories
77 icon_26x26dir=$datadir/icons/hicolor/26x26/hildon
78 icon_34x34dir=$datadir/icons/hicolor/34x34/hildon
79 icon_40x40dir=$datadir/icons/hicolor/40x40/hildon
80 icon_50x50dir=$datadir/icons/hicolor/50x50/hildon
81 icon_scalabledir=$datadir/icons/hicolor/scalable/hildon
83 # Help file install directory
84 helpfile_engbdir=$datadir/osso-help/en_US
86 # Hildon control panel plugin install directories
87 pluginlibdir=`$PKG_CONFIG hildon-control-panel --variable=plugindir`
88 plugindesktopentrydir=`$PKG_CONFIG hildon-control-panel --variable=plugindesktopentrydir`
90 # Define as variables in Makefiles
91 AC_SUBST(desktopentrydir)
92 AC_SUBST(serviceentrydir)
95 AC_SUBST(icon_26x26dir)
96 AC_SUBST(icon_34x34dir)
97 AC_SUBST(icon_40x40dir)
98 AC_SUBST(icon_50x50dir)
99 AC_SUBST(icon_scalabledir)
100 AC_SUBST(pluginlibdir)
101 AC_SUBST(plugindesktopentrydir)
102 AC_SUBST(helpfile_engbdir)
104 AC_DEFINE_UNQUOTED([LOCALEDIR], "${localedir}", [Runtime locale catalog files path])
105 AC_DEFINE_UNQUOTED([PIXMAPDIR], "${pixmapdir}", [Runtime pixmap files path])
107 # Produce output files