AC_ARG_ENABLE([770],AS_HELP_STRING([--enable-770],[Build for Nokia 770/N800]),
[enable_770=$enableval], [enable_770=no])
+AC_ARG_ENABLE([gst],AS_HELP_STRING([--enable-gst],[Enable support for gstreamer]),
+ [enable_gst=$enableval], [enable_gst=no])
+
AC_ARG_ENABLE([hildon],AS_HELP_STRING([--enable-hildon],[Build for Hildon]),
[enable_hildon=$enableval], [enable_hildon=no])
fi
AM_CONDITIONAL(HAVE_GYPSY, [test "$enable_gypsy" = "yes"])
-
if test "x$enable_geoclue" = "xyes" ; then
PKG_CHECK_MODULES(GEOCLUE, geoclue, HAVE_GEOCLUE=yes, HAVE_GEOCLUE=no)
if test "x$HAVE_GEOCLUE" = "xyes"; then
fi
AM_CONDITIONAL(HAVE_GEOCLUE, [test "$enable_geoclue" = "yes"])
-
-PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10, HAVE_GST=yes, HAVE_GST=no)
-if test "x$HAVE_GST" = "xyes"; then
- AC_DEFINE(WITH_GST, 1, [build with Gstreamer])
- GSTREAMER_LIBS="$GSTREAMER_LIBS -lgstapp-0.10"
- AC_SUBST(GSTREAMER_LIBS)
- AC_SUBST(GSTREAMER_CFLAGS)
-else
- AC_MSG_ERROR([Mapper requires gstreamer.])
+if test "x$enable_gst" = "xyes" ; then
+ PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10, HAVE_GST=yes, HAVE_GST=no)
+ if test "x$HAVE_GST" = "xyes"; then
+ AC_DEFINE(WITH_GST, 1, [build with Gstreamer])
+ GSTREAMER_LIBS="$GSTREAMER_LIBS -lgstapp-0.10"
+ AC_SUBST(GSTREAMER_LIBS)
+ AC_SUBST(GSTREAMER_CFLAGS)
+ else
+ AC_MSG_ERROR([Gstreamer requested but can not be found.])
+ fi
fi
+AM_CONDITIONAL(HAVE_GST, [test "$enable_gst" = "yes"])
AC_CHECK_HEADERS(bzlib.h,
BZ2_LIBS="$BZ2_LIBS -lbz2",
)
AC_SUBST(EXPAT_LIBS)
-AC_CHECK_HEADER(espeak/speak_lib.h, HAVE_ESPEAK=yes, HAVE_ESPEAK=no)
if test "x$HAVE_GST" = "xyes"; then
-ESPEAK_LIBS="-lespeak"
-ESPEAK_CFLAGS="-I/usr/include/espeak"
-AC_CHECK_LIB([espeak], [espeak_Initialize],
- AC_DEFINE(WITH_ESPEAK, 1, [Defined if you have espeak])
- AC_SUBST(ESPEAK_CFLAGS)
- AC_SUBST(ESPEAK_LIBS)
-)
+ AC_CHECK_HEADER(espeak/speak_lib.h, HAVE_ESPEAK=yes, HAVE_ESPEAK=no)
+ if test "x$HAVE_ESPEAK" = "xyes"; then
+ ESPEAK_LIBS="-lespeak"
+ ESPEAK_CFLAGS="-I/usr/include/espeak"
+ AC_CHECK_LIB([espeak], [espeak_Initialize],
+ AC_DEFINE(WITH_ESPEAK, 1, [Defined if you have espeak])
+ AC_SUBST(ESPEAK_CFLAGS)
+ AC_SUBST(ESPEAK_LIBS))
+ else
+ AC_MSG_ERROR([Speech output requires espeak.])
+ fi
fi
# Localisation
if test x$enable_gypsy = xyes; then
AC_MSG_NOTICE([** Gypsy D-Bus GPS support enabled])
fi
+
+if test x$enable_gst = xyes; then
+AC_MSG_NOTICE([** Gstreamer support enabled])
+fi