diff options
| author | bringert <bringert@cs.chalmers.se> | 2005-12-13 21:03:56 +0000 |
|---|---|---|
| committer | bringert <bringert@cs.chalmers.se> | 2005-12-13 21:03:56 +0000 |
| commit | 5a480fac520db1bab6f1336bee9b2031dbd36cab (patch) | |
| tree | 01210f87844268c0652867df51f4831094fa3e17 /src/configure.ac | |
| parent | 9f867c4922cccb6e61b273a55103e2afaeac4bde (diff) | |
Added semi-working speech_input command.
Diffstat (limited to 'src/configure.ac')
| -rw-r--r-- | src/configure.ac | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/configure.ac b/src/configure.ac index 64e1015bc..bfab7aebf 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -116,6 +116,41 @@ esac AC_SUBST(INTERRUPT) dnl *********************************************** +dnl ATK speech recognition +dnl *********************************************** + +AC_ARG_WITH(atk, + AC_HELP_STRING([--with-atk=<use ATK speech recognition>], + [Choose whether to compile in support for speech + recognition using ATK. Requires ATK and libatkrec. + Available alternatives are: 'yes', 'no' + (default = no)]), + [ATK="$withval"], + [ATK="no"]) + +case $ATK in + yes) + AC_MSG_CHECKING([for atkrec package]) + ATKREC_VERSION=`ghc-pkg latest atkrec` + if test "$ATKREC_VERSION" = ""; then + AC_MSG_RESULT(['not found']) + AC_MSG_WARN([Disabling ATK support.]) + ATK="no" + else + AC_MSG_RESULT([$ATKREC_VERSION]) + fi + ;; + no) + ;; + *) + AC_MSG_ERROR([Bad value for --with-atk: $ATK]) + + ;; +esac + +AC_SUBST(ATK) + +dnl *********************************************** dnl java stuff dnl *********************************************** |
