PKG_CHECK_MODULES(NOTIFICATION, [notification])
# Check tts library
-PKG_CHECK_MODULES(TTS, [tts])
+PKG_CHECK_MODULES(TTS, [tts],
+ [ISF_HAS_TTS=yes],
+ [ISF_HAS_TTS=no])
+
+if test "$ISF_HAS_TTS" = "yes"; then
+ AC_DEFINE(HAVE_TTS,1,[Have TTS functions.])
+fi
# Check vconf library
PKG_CHECK_MODULES(VCONF, [vconf],
#include <privilege-control.h>
#include "isf_panel_utility.h"
#include <dlog.h>
+#if HAVE_TTS
#include <tts.h>
+#endif
using namespace scim;
static Ecore_File_Monitor *_helper_ise_em = NULL;
static Ecore_File_Monitor *_keyboard_ise_em = NULL;
+#if HAVE_TTS
static tts_h _tts = NULL;
+#endif
static bool _candidate_will_hide = false;
static bool feedback_initialized = false;
{
SCIM_DEBUG_MAIN (3) << __FUNCTION__ << "...\n";
+#if HAVE_TTS
int r = tts_create (&_tts);
if (TTS_ERROR_NONE != r) {
LOGW ("tts_create FAILED : result(%d)\n", r);
}
}
return true;
+#else
+ return false;
+#endif
}
/**
{
SCIM_DEBUG_MAIN (3) << __FUNCTION__ << "...\n";
+#if HAVE_TTS
if (_tts) {
int r = tts_unprepare (_tts);
if (TTS_ERROR_NONE != r) {
LOGW ("tts_destroy FAILED : result(%d)\n", r);
}
}
+#endif
}
/**
{
SCIM_DEBUG_MAIN (3) << __FUNCTION__ << " str=" << str << "\n";
+#if HAVE_TTS
if (_tts == NULL) {
if (!ui_open_tts ())
return;
}
}
}
+#endif
}
/**