mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 01:20:38 +00:00
* configure.ac: Improve checks for flite.
* configure: Regnerate * Tools/speech/GNUmakefile: Use variables for flite libraries. * Tools/speech/FliteSpeechEngine.m: Switch to use register_cmu_us_kal16.
This commit is contained in:
parent
78b330ff70
commit
9a889f5c48
5 changed files with 78 additions and 8 deletions
58
configure
vendored
58
configure
vendored
|
@ -635,6 +635,8 @@ GSCUPS_LIBS
|
|||
GSCUPS_LDFLAGS
|
||||
GSCUPS_CFLAGS
|
||||
have_cups
|
||||
FLITE_EXTRA_LIBS
|
||||
FLITE_BASE_LIBS
|
||||
BUILD_SPEECH
|
||||
BUILD_SOUND
|
||||
HAVE_ICU
|
||||
|
@ -5576,14 +5578,66 @@ if test "x$ac_cv_header_flite_flite_h" = xyes; then :
|
|||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_FLITE_FLITE_H 1
|
||||
_ACEOF
|
||||
|
||||
have_flite=yes
|
||||
else
|
||||
have_flite=no
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
if test $have_speech = yes -a $enable_speech = yes; then
|
||||
if test $have_flite = yes -a $have_speech = yes -a $enable_speech = yes; then
|
||||
BUILD_SPEECH="speech say"
|
||||
FLITE_BASE_LIBS="-lflite_usenglish -lflite_cmulex -lflite"
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cmu_us_kal16 in -lflite_cmu_us_kal16" >&5
|
||||
$as_echo_n "checking for register_cmu_us_kal16 in -lflite_cmu_us_kal16... " >&6; }
|
||||
if ${ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal16+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
ac_check_lib_save_LIBS=$LIBS
|
||||
LIBS="-lflite_cmu_us_kal16 $LIBS"
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
/* Override any GCC internal prototype to avoid an error.
|
||||
Use char because int might match the return type of a GCC
|
||||
builtin and then its argument prototype would still apply. */
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
char register_cmu_us_kal16 ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
return register_cmu_us_kal16 ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal16=yes
|
||||
else
|
||||
ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal16=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
LIBS=$ac_check_lib_save_LIBS
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal16" >&5
|
||||
$as_echo "$ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal16" >&6; }
|
||||
if test "x$ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal16" = xyes; then :
|
||||
have_kal16=yes
|
||||
else
|
||||
have_kal16=no
|
||||
fi
|
||||
|
||||
if test $have_kal16; then
|
||||
FLITE_EXTRA_LIBS="-lflite_cmu_us_kal16"
|
||||
else
|
||||
BUILD_SPEECH=
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue