]> err.no Git - mapper/commitdiff
Add espeak check.
authorKaj-Michael Lang <milang@onion.tal.org>
Fri, 27 Jul 2007 12:25:39 +0000 (15:25 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Fri, 27 Jul 2007 12:25:39 +0000 (15:25 +0300)
configure.ac

index f6998edd3373a5215145406d7d211ce4cade57b3..196cec0d2434769d7b72c1063d47d948943d8315 100644 (file)
@@ -128,6 +128,15 @@ AC_CHECK_LIB([expat], [XML_ParserCreate],
   AC_SUBST(EXPAT_LIB)
 )
 
+AC_CHECK_HEADER(espeak/speak_lib.h)
+ESPEAK_LIBS="-lespeak"
+ESPEAK_CFLAGS="-I/usr/include/espeak"
+AC_CHECK_LIB([espeak], [espeak_Initialize],
+  AC_DEFINE(HAVE_ESPEAK, 1, [Defined if you have espeak])
+  AC_SUBST(ESPEAK_CFLAGS)
+  AC_SUBST(ESPEAK_LIB)
+)
+
 # Localisation
 if test "x$HAVE_HILDON" = "xyes"; then
  localedir=`$PKG_CONFIG osso-af-settings --variable=localedir`