3 AM_INIT_AUTOMAKE(kdeaccessibility,1.0.0)
4 KDE_ENABLE_HIDDEN_VISIBILITY
8 CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS"
10 #AC_CHECK_HEADERS(sys/stropts.h stropts.h)
12 dnl ================================================================================
14 dnl See if the latest kspeech.h is installed and if not, compile against
15 dnl kttsd/compat directory.
17 if test "$KTTS_KSPEECH_DIR" = ""; then
18 KDE_CHECK_HEADER(kspeech.h, ktts_have_kspeech_h=yes, ktts_have_kspeech_h=no)
19 have_latest_kspeech=no
20 if test "x$ktts_have_kspeech_h" = xyes; then
21 AC_MSG_CHECKING([whether installed kspeech.h is latest version])
22 ktts_save_cppflags=$CPPFLAGS
24 CPPFLAGS="$all_includes $CPPFLAGS"
27 [#include <kspeech.h>],
29 if (4 == KSpeech::mtHtml);
31 have_latest_kspeech=yes,
32 have_latest_kspeech=no)
33 AC_MSG_RESULT($have_latest_kspeech)
34 CPPFLAGS=$ktts_save_cppflags
37 if test "x$have_latest_kspeech" = xyes; then
38 KTTS_KSPEECH_DIR='$(kde_includes)'
39 KTTS_KSPEECH_INCLUDE=""
40 KTTS_INTERFACES_DIR=""
42 KTTS_KSPEECH_DIR='$(top_srcdir)/kttsd/compat/interfaces/kspeech'
43 KTTS_KSPEECH_INCLUDE='-I$(top_srcdir)/kttsd/compat/interfaces/kspeech'
44 KTTS_INTERFACES_DIR="interfaces"
45 AC_MSG_WARN([Latest kspeech.h not installed. Compiling using kttsd/compat directory.])
48 AC_SUBST(KTTS_KSPEECH_DIR)
49 AC_SUBST(KTTS_KSPEECH_INCLUDE)
50 AC_SUBST(KTTS_INTERFACES_DIR)