AC_INIT([celltowerinfo], [0.0.2], [https://garage.maemo.org/tracker/?group_id=1314]) AM_INIT_AUTOMAKE([]) AM_CONFIG_HEADER(config.h) AC_CANONICAL_HOST AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LIBTOOL AC_PROG_INTLTOOL([0.23]) AC_HEADER_STDC # Option to enable debugging AC_ARG_ENABLE(debug, [AC_HELP_STRING([ --enable-debug],[Debugging (default=no)])], [with_debug=yes], [with_debug=no]) if test "x$with_debug" == "xyes" ; then CFLAGS="$CFLAGS -ggdb -O0 -DDEBUG -Wall -DUSE_HILDON" else CFLAGS="$CFLAGS -O2 -Wall -DUSE_HILDON" fi # Hildon library dependencies PKG_CHECK_MODULES(HILDON, hildon-1) AC_SUBST(HILDON_LIBS) AC_SUBST(HILDON_CFLAGS) # OSSO application framework dependencies PKG_CHECK_MODULES(OSSO, osso-af-settings >= 0.8.5 libosso >= 0.9.17) AC_SUBST(OSSO_LIBS) AC_SUBST(OSSO_CFLAGS) # Location PKG_CHECK_MODULES(LOCATION, liblocation) AC_SUBST(LOCATION_LIBS) AC_SUBST(LOCATION_CFLAGS) # Localisation GETTEXT_PACKAGE=$PACKAGE AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "${GETTEXT_PACKAGE}", [Name of gettext package]) ALL_LINGUAS="en_GB" AM_GLIB_GNU_GETTEXT # To make application visible in maemo Task Navigator it needs a Desktop # file for the application. # D-BUS service file is needed to be able to launch the maemo application # and connect it to D-BUS services. # The following line defines install directories for these files. desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir` serviceentrydir=`$PKG_CONFIG osso-af-settings --variable=dbusservicedir` # Application locale install directory localedir=`$PKG_CONFIG osso-af-settings --variable=localedir` # Application pixmaps install directory #pixmapdir=`$PKG_CONFIG osso-af-settings --variable=hildonpixmapdir` # Application icon install directories icon_32x32dir=$datadir/icons/hicolor/32x32/apps icon_48x48dir=$datadir/icons/hicolor/48x48/apps #icon_scalabledir=$datadir/icons/hicolor/scalable/apps # Help file install directory helpfile_engbdir=$datadir/hildon-help/en_GB # Hildon control panel plugin install directories pluginlibdir=`$PKG_CONFIG hildon-control-panel --variable=plugindir` plugindesktopentrydir=`$PKG_CONFIG hildon-control-panel --variable=plugindesktopentrydir` # Define as variables in Makefiles AC_SUBST(desktopentrydir) AC_SUBST(serviceentrydir) AC_SUBST(localedir) #AC_SUBST(pixmapdir) AC_SUBST(icon_32x32dir) AC_SUBST(icon_48x48dir) #AC_SUBST(icon_scalabledir) AC_SUBST(pluginlibdir) AC_SUBST(plugindesktopentrydir) AC_SUBST(helpfile_engbdir) AC_DEFINE_UNQUOTED([LOCALEDIR], "${localedir}", [Runtime locale catalog files path]) #AC_DEFINE_UNQUOTED([PIXMAPDIR], "${pixmapdir}", [Runtime pixmap files path] # Produce output files AC_OUTPUT( Makefile \ src/Makefile \ data/Makefile \ po/Makefile.in \ po/Makefile )