Increasing debian package version
[celltowerinfo] / configure.ac
1
2 AC_INIT([celltowerinfo], [0.0.2], [https://garage.maemo.org/tracker/?group_id=1314])
3 AM_INIT_AUTOMAKE([])
4 AM_CONFIG_HEADER(config.h)
5
6 AC_CANONICAL_HOST
7
8 AC_PROG_CC
9 AC_PROG_CPP
10 AC_PROG_INSTALL
11 AC_PROG_LIBTOOL
12 AC_PROG_INTLTOOL([0.23])
13 AC_HEADER_STDC
14
15 # Option to enable debugging
16 AC_ARG_ENABLE(debug,
17         [AC_HELP_STRING([  --enable-debug],[Debugging (default=no)])],
18         [with_debug=yes], [with_debug=no])
19
20 if test "x$with_debug" == "xyes" ; then
21   CFLAGS="$CFLAGS -ggdb -O0 -DDEBUG -Wall -DUSE_HILDON"
22 else
23   CFLAGS="$CFLAGS -O2 -Wall -DUSE_HILDON"
24 fi
25
26 # Hildon library dependencies
27 PKG_CHECK_MODULES(HILDON, hildon-1)
28 AC_SUBST(HILDON_LIBS)
29 AC_SUBST(HILDON_CFLAGS)
30
31 # OSSO application framework dependencies
32 PKG_CHECK_MODULES(OSSO, osso-af-settings >= 0.8.5 libosso >= 0.9.17)
33 AC_SUBST(OSSO_LIBS)
34 AC_SUBST(OSSO_CFLAGS)
35
36 # Location
37 PKG_CHECK_MODULES(LOCATION, liblocation)
38 AC_SUBST(LOCATION_LIBS)
39 AC_SUBST(LOCATION_CFLAGS)
40
41 # Localisation
42 GETTEXT_PACKAGE=$PACKAGE
43 AC_SUBST(GETTEXT_PACKAGE)
44 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "${GETTEXT_PACKAGE}", [Name of gettext package])
45 ALL_LINGUAS="en_GB"
46 AM_GLIB_GNU_GETTEXT
47
48 # To make application visible in maemo Task Navigator it needs a Desktop
49 # file for the application.
50 # D-BUS service file is needed to be able to launch the maemo application
51 # and connect it to D-BUS services.
52 # The following line defines install directories for these files.
53 desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir`
54 serviceentrydir=`$PKG_CONFIG osso-af-settings --variable=dbusservicedir`
55
56 # Application locale install directory
57 localedir=`$PKG_CONFIG osso-af-settings --variable=localedir`
58
59 # Application pixmaps install directory
60 #pixmapdir=`$PKG_CONFIG osso-af-settings --variable=hildonpixmapdir`
61
62 # Application icon install directories
63 icon_32x32dir=$datadir/icons/hicolor/32x32/apps
64 icon_48x48dir=$datadir/icons/hicolor/48x48/apps
65 #icon_scalabledir=$datadir/icons/hicolor/scalable/apps
66
67 # Help file install directory
68 helpfile_engbdir=$datadir/hildon-help/en_GB
69
70 # Hildon control panel plugin install directories
71 pluginlibdir=`$PKG_CONFIG hildon-control-panel --variable=plugindir`
72 plugindesktopentrydir=`$PKG_CONFIG hildon-control-panel --variable=plugindesktopentrydir`
73
74 # Define as variables in Makefiles
75 AC_SUBST(desktopentrydir)
76 AC_SUBST(serviceentrydir)
77 AC_SUBST(localedir)
78 #AC_SUBST(pixmapdir)
79 AC_SUBST(icon_32x32dir)
80 AC_SUBST(icon_48x48dir)
81 #AC_SUBST(icon_scalabledir)
82 AC_SUBST(pluginlibdir)
83 AC_SUBST(plugindesktopentrydir)
84 AC_SUBST(helpfile_engbdir)
85
86 AC_DEFINE_UNQUOTED([LOCALEDIR], "${localedir}", [Runtime locale catalog files path])
87 #AC_DEFINE_UNQUOTED([PIXMAPDIR], "${pixmapdir}", [Runtime pixmap files path]
88 # Produce output files
89 AC_OUTPUT(
90     Makefile \
91     src/Makefile \
92     data/Makefile \
93     po/Makefile.in \
94     po/Makefile
95 )
96