Add support for maemo-launcher
[cinaest] / configure.ac
index 460da3f..b4c9c05 100644 (file)
@@ -47,6 +47,21 @@ PKG_CHECK_MODULES(HILDONMIME, libhildonmime >= 2.1.3)
 AC_SUBST(HILDONMIME_LIBS)
 AC_SUBST(HILDONMIME_CFLAGS)
 
+AC_ARG_ENABLE([maemo-launcher],
+              [AS_HELP_STRING([--enable-maemo-launcher],
+                              [build with maemo-launcher support])],
+                              [case "${enableval}" in
+                               yes) maemo_launcher=true ;;
+                               no)  maemo_launcher=false ;;
+                               *) AC_MSG_ERROR([bad value ${enableval} for --enable-maemo-launcher])
+                               esac], [maemo_launcher=false])
+if test x$maemo_launcher = xtrue
+then
+       PKG_CHECK_MODULES(MAEMO_LAUNCHER, [maemo-launcher-app])
+       AC_SUBST(MAEMO_LAUNCHER_CFLAGS)
+       AC_SUBST(MAEMO_LAUNCHER_LIBS)
+fi
+
 PKG_CHECK_MODULES(OSSO, libosso >= 2.20)
 AC_SUBST(OSSO_LIBS)
 AC_SUBST(OSSO_CFLAGS)