3 AC_INIT([irreco], [0.6.5.1])
5 AM_CONFIG_HEADER(config.h)
11 AC_PROG_INTLTOOL([0.23])
18 AC_ARG_ENABLE([debug],
19 [AC_HELP_STRING([--enable-debug=ARG],
20 [Enable / disable debugging. Disabled by default])],
21 [enable_debug=$enableval],
23 AS_IF( [test "$enable_debug" != "yes"], [enable_debug=no])
24 AS_IF( [test "$enable_debug" = "yes"],
25 [CFLAGS="$CFLAGS -O0 -Wall -ansi -pedantic -ggdb -DDEBUG"],
26 [CFLAGS="$CFLAGS -O2 -Wall -ansi -pedantic"])
27 AC_SUBST(enable_debug)
31 # Pkg-config install option
34 [AC_HELP_STRING([--enable-dev=ARG],
35 [Install irreco backend dev files. Disabled by default])],
36 [enable_dev=$enableval],
38 AS_IF( [test "$enable_dev" != "yes"], [enable_dev=no])
40 AM_CONDITIONAL([IRRECO_DEV], [test x$enable_dev = xyes])
46 PKG_CHECK_MODULES(IRRECO, hildon-fm-2 hildon-1 gnome-vfs-2.0 libosso libsoup-2.2)
48 AC_SUBST(IRRECO_CFLAGS)
54 #XMLRPC_C_LIBS=`xmlrpc-c-config client --ldadd`
55 #XMLRPC_C_CFLAGS=`xmlrpc-c-config client --cflags`
56 #AC_SUBST(XMLRPC_C_LIBS)
57 #AC_SUBST(XMLRPC_C_CFLAGS)
62 SOUP_C_LIBS=`-L/usr/lib`
63 SOUP_C_CFLAGS=`-L/usr/lib -I/user/include`
65 AC_SUBST(SOUP_C_CFLAGS)
72 GETTEXT_PACKAGE=$PACKAGE
73 AC_SUBST(GETTEXT_PACKAGE)
74 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "${GETTEXT_PACKAGE}", \
75 [Name of gettext package])
81 # Application locale install directory
83 localedir=`$PKG_CONFIG osso-af-settings --variable=localedir`
85 AC_DEFINE_UNQUOTED([LOCALEDIR], "${localedir}", \
86 [Runtime locale catalog files path])
89 # To make application visible in maemo Task Navigator it needs a Desktop
90 # file for the application.
91 # D-BUS service file is needed to be able to launch the maemo application
92 # and connect it to D-BUS services.
93 # The following line defines install directories for these files.
94 #desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir`
95 #serviceentrydir=`$PKG_CONFIG osso-af-settings --variable=dbusservicedir`
96 #AC_SUBST(desktopentrydir)
97 #AC_SUBST(serviceentrydir)
103 AC_DEFINE_UNQUOTED([PACKAGE_DBUS_NAME], ["org.maemo." PACKAGE_NAME], [D-Bus name])
107 # Application pixmaps install directory
109 pixmapdir=`$PKG_CONFIG osso-af-settings --variable=hildonpixmapdir`
111 AC_DEFINE_UNQUOTED([PIXMAPDIR], "${pixmapdir}", [Runtime pixmap files path])
115 # Application icon install directories
117 icon_26x26dir=$datadir/icons/hicolor/26x26/hildon
118 icon_32x32dir=$datadir/icons/hicolor/32x32/hildon
119 icon_40x40dir=$datadir/icons/hicolor/40x40/hildon
120 icon_64x64dir=$datadir/icons/hicolor/64x64/hildon
121 icon_scalabledir=$datadir/icons/hicolor/scalable/hildon
122 AC_SUBST(icon_26x26dir)
123 AC_SUBST(icon_32x32dir)
124 AC_SUBST(icon_40x40dir)
125 AC_SUBST(icon_64x64dir)
126 AC_SUBST(icon_scalabledir)
132 irreco_icon=${prefix}/share/icons/hicolor/64x64/hildon/irreco.png
133 AC_SUBST(irreco_icon)
134 AC_DEFINE_UNQUOTED([IRRECO_ICON], "${irreco_icon}", \
139 # Button style install directory.
141 # It would be nicer to use '$libdir/irreco/buttons/', but due to the way
142 # autoconf expands variable name, that would lead to config.h having
143 # something like '$prefix/lib/irreco/buttons/'. So one must use use $prefix
145 # buttonstyledir_suffix=/lib/irreco/buttons/
146 # AC_SUBST(buttonstyledir_suffix)
147 # buttonstyledir=${prefix}${buttonstyledir_suffix}
148 # AC_SUBST(buttonstyledir)
149 # AC_DEFINE_UNQUOTED([IRRECO_BUTTON_STYLE_DIR], "${buttonstyledir}", \
150 # [Button style directory])
153 # Theme install directory.
155 # It would be nicer to use '$libdir/irreco/themes/', but due to the way
156 # autoconf expands variable name, that would lead to config.h having
157 # something like '$prefix/lib/irreco/themes/'. So one must use use $prefix
159 themedir_suffix=/lib/irreco/themes/
160 AC_SUBST(themedir_suffix)
161 themedir=${prefix}${themedir_suffix}
163 AC_DEFINE_UNQUOTED([IRRECO_THEME_DIR], "${themedir}", \
168 # Backend install directory.
170 irrecobackenddir_suffix=/lib/irreco/backends/
171 irrecobackenddir=${prefix}${irrecobackenddir_suffix}
172 AC_SUBST(irrecobackenddir)
173 AC_SUBST(irrecobackenddir_suffix)
174 AC_DEFINE_UNQUOTED([IRRECO_BACKEND_DIR], "${irrecobackenddir}", \
179 # Image style install directories.
181 irreco_image_dir=$prefix/lib/irreco/images
182 irreco_bg_image_dir=$prefix/lib/irreco/images/bg
183 irreco_icon_hardkeydir=${prefix}/lib/irreco/images/icon/hardkeys
184 irreco_default_bg_image="Irreco Logo.png"
185 AC_SUBST(irreco_image_dir)
186 AC_SUBST(irreco_bg_image_dir)
187 AC_SUBST(irreco_icon_hardkeydir)
188 AC_SUBST(irreco_default_bg_image)
189 AC_DEFINE_UNQUOTED([IRRECO_IMAGE_DIR], "${irreco_image_dir}", \
190 [Irreco Image directory])
191 AC_DEFINE_UNQUOTED([IRRECO_BG_IMAGE_DIR], "${irreco_bg_image_dir}", \
192 [Irreco background image directory])
193 AC_DEFINE_UNQUOTED([IRRECO_DEFAULT_BG_IMAGE], "${irreco_default_bg_image}", \
194 [Default irreco background image])
195 AC_DEFINE_UNQUOTED([IRRECO_ICON_HARDKEY_DIR], "${irreco_icon_hardkeydir}", \
196 [Hardkey icon directory])
201 irreco_header_dir_suffix=/irreco
202 irreco_header_dir=${includedir}${irreco_header_dir_suffix}
203 AC_SUBST(irreco_header_dir)
204 AC_SUBST(irreco_header_dir_suffix)
209 AC_ARG_WITH([database],
210 [AS_HELP_STRING([--with-database=DIR],
211 [Location of Webdb database])],
212 [irreco_webdb_url=$withval],
213 [irreco_webdb_url="http://mercury.wipsl.com/irreco/webdb/"])
214 AC_DEFINE_UNQUOTED([IRRECO_WEBDB_URL], "${irreco_webdb_url}", \
215 [Webdb database url])
220 irreco_app_name_short="Irreco"
221 irreco_app_name_long="Ir Remote Controller"
222 irreco_app_name_conbined="Irreco - Ir Remote Controller"
223 AC_SUBST(irreco_app_name_short)
224 AC_SUBST(irreco_app_name_long)
225 AC_SUBST(irreco_app_name_conbined)
226 AC_DEFINE_UNQUOTED([IRRECO_APP_NAME_SHORT], "${irreco_app_name_short}", \
227 [Irreco applicatio name])
228 AC_DEFINE_UNQUOTED([IRRECO_APP_NAME_LONG], "${irreco_app_name_long}", \
229 [Irreco applicatio name])
230 AC_DEFINE_UNQUOTED([IRRECO_APP_NAME_CONBINED], "${irreco_app_name_conbined}", \
231 [Irreco applicatio name])
235 # Produce output files
240 data/images/Makefile \
241 data/images/bg/Makefile \
242 data/icons/Makefile \
243 data/icons/hardkeys/Makefile \
244 data/irreco.desktop \
245 data/org.maemo.irreco.service \
247 data/irreco-util.pc \