Valdis Vitolins 7 years ago
parent
commit
f51d639b01
2 changed files with 59 additions and 41 deletions
  1. 1
    0
      CHANGELOG.md
  2. 58
    41
      configure.ac

+ 1
- 0
CHANGELOG.md View File



### 1.49.3 - (In Development) ### 1.49.3 - (In Development)


* Add a `--disable-rpath` option to prevent libtool hardcoding rpaths in the executable.
* Add more tests to check the various parts of espeak-ng. * Add more tests to check the various parts of espeak-ng.
* Various changes to clean up the codebase. * Various changes to clean up the codebase.
* Fix various compiler warnings (`-Winitialized`, `-Wmissing-prototypes`, `-Wreturn-type`, * Fix various compiler warnings (`-Winitialized`, `-Wmissing-prototypes`, `-Wreturn-type`,

+ 58
- 41
configure.ac View File

AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h]) AC_CONFIG_HEADERS([config.h])


dnl ================================================================
dnl configure arguments
dnl ================================================================

AC_ARG_ENABLE([rpath],
[AS_HELP_STRING([--enable-rpath], [set hardcoded rpaths in the executable @<:@default=yes@:>@])],
[],
[enable_rpath=yes])

AC_ARG_WITH([gradle],
[AS_HELP_STRING([--with-gradle], [specify the gradle program to use @<:@default=gradle@:>@])],
[GRADLE=$with_gradle],
[GRADLE=gradle])

AC_ARG_WITH([pcaudiolib],
[AS_HELP_STRING([--with-pcaudiolib], [use the pcaudiolib library for audio output @<:@default=yes@:>@])],
[])

AC_ARG_WITH([klatt],
[AS_HELP_STRING([--with-klatt], [enable the Klatt formant synthesizer @<:@default=yes@:>@])],
[])

AC_ARG_WITH([mbrola],
[AS_HELP_STRING([--with-mbrola], [enable the MBROLA speech synthesizer @<:@default=yes@:>@])],
[])

AC_ARG_WITH([sonic],
[AS_HELP_STRING([--with-sonic], [enable the sonic library to speed up the audio @<:@default=yes@:>@])],
[])

AC_ARG_WITH([async],
[AS_HELP_STRING([--with-async], [enable support for async command processing @<:@default=yes@:>@])],
[])

AC_ARG_WITH([extdict-ru],
[AS_HELP_STRING([--with-extdict-ru], [use the extended Russian Dictionary file @<:@default=no@:>@])],
[])

AC_ARG_WITH([extdict-zh],
[AS_HELP_STRING([--with-extdict-zh], [use the extended Mandarin Chinese Dictionary file @<:@default=no@:>@])],
[])

AC_ARG_WITH([extdict-zhy],
[AS_HELP_STRING([--with-extdict-zhy], [use the extended Cantonese Chinese Dictionary file @<:@default=no@:>@])],
[])

AC_ARG_WITH([libfuzzer],
[AS_HELP_STRING([--with-libfuzzer], [enable libFuzzer in the fuzzer tests @<:@default=no@:>@])],
[])

dnl ================================================================ dnl ================================================================
dnl Program checks. dnl Program checks.
dnl ================================================================ dnl ================================================================
dnl gradle checks. dnl gradle checks.
dnl ================================================================ dnl ================================================================


AC_ARG_WITH([gradle],
[AS_HELP_STRING([--with-gradle], [specify the gradle program to use @<:@default=gradle@:>@])],
[GRADLE=$with_gradle],
[GRADLE=gradle])

AC_MSG_CHECKING([for gradle]) AC_MSG_CHECKING([for gradle])
if test -e ${GRADLE} ; then if test -e ${GRADLE} ; then
AC_MSG_RESULT([${GRADLE}]) AC_MSG_RESULT([${GRADLE}])
dnl PCAudioLib checks. dnl PCAudioLib checks.
dnl ================================================================ dnl ================================================================


AC_ARG_WITH([pcaudiolib],
[AS_HELP_STRING([--with-pcaudiolib], [use the pcaudiolib library for audio output @<:@default=yes@:>@])],
[])

if test "$with_pcaudiolib" = "no"; then if test "$with_pcaudiolib" = "no"; then
echo "Disabling audio output support via pcaudiolib" echo "Disabling audio output support via pcaudiolib"
have_pcaudiolib=no have_pcaudiolib=no
dnl Optional compilation checks. dnl Optional compilation checks.
dnl ================================================================ dnl ================================================================


AC_ARG_WITH([klatt],
[AS_HELP_STRING([--with-klatt], [enable the Klatt formant synthesizer @<:@default=yes@:>@])],
[])

if test "$with_klatt" = "no" ; then if test "$with_klatt" = "no" ; then
have_klatt=no have_klatt=no
else else
have_klatt=yes have_klatt=yes
fi fi


AC_ARG_WITH([mbrola],
[AS_HELP_STRING([--with-mbrola], [enable the MBROLA speech synthesizer @<:@default=yes@:>@])],
[])

if test "$with_mbrola" = "no" ; then if test "$with_mbrola" = "no" ; then
have_mbrola=no have_mbrola=no
else else
have_mbrola=yes have_mbrola=yes
fi fi


AC_ARG_WITH([sonic],
[AS_HELP_STRING([--with-sonic], [enable the sonic library to speed up the audio @<:@default=yes@:>@])],
[])

if test "$with_sonic" = "no" ; then if test "$with_sonic" = "no" ; then
have_sonic=no have_sonic=no
else else
]) ])
fi fi


AC_ARG_WITH([async],
[AS_HELP_STRING([--with-async], [enable support for async command processing @<:@default=yes@:>@])],
[])

if test "$with_async" = "no" ; then if test "$with_async" = "no" ; then
have_async=no have_async=no
else else
dnl Extended dictionary checks. dnl Extended dictionary checks.
dnl ================================================================ dnl ================================================================


AC_ARG_WITH([extdict-ru],
[AS_HELP_STRING([--with-extdict-ru], [use the extended Russian Dictionary file @<:@default=no@:>@])],
[])

if test "$with_extdict_ru" = "yes" ; then if test "$with_extdict_ru" = "yes" ; then
have_extdict_ru=yes have_extdict_ru=yes
else else
have_extdict_ru=no have_extdict_ru=no
fi fi


AC_ARG_WITH([extdict-zh],
[AS_HELP_STRING([--with-extdict-zh], [use the extended Mandarin Chinese Dictionary file @<:@default=no@:>@])],
[])

if test "$with_extdict_zh" = "yes" ; then if test "$with_extdict_zh" = "yes" ; then
have_extdict_zh=yes have_extdict_zh=yes
else else
have_extdict_zh=no have_extdict_zh=no
fi fi


AC_ARG_WITH([extdict-zhy],
[AS_HELP_STRING([--with-extdict-zhy], [use the extended Cantonese Chinese Dictionary file @<:@default=no@:>@])],
[])

if test "$with_extdict_zhy" = "yes" ; then if test "$with_extdict_zhy" = "yes" ; then
have_extdict_zhy=yes have_extdict_zhy=yes
else else
dnl libFuzzer checks. dnl libFuzzer checks.
dnl ================================================================ dnl ================================================================


AC_ARG_WITH([libfuzzer],
[AS_HELP_STRING([--with-libfuzzer], [enable libFuzzer in the fuzzer tests @<:@default=no@:>@])],
[])

if test "$with_libfuzzer" = "yes" ; then if test "$with_libfuzzer" = "yes" ; then
have_libfuzzer=yes have_libfuzzer=yes
else else
AC_CONFIG_FILES([Makefile espeak-ng.pc]) AC_CONFIG_FILES([Makefile espeak-ng.pc])
AC_OUTPUT AC_OUTPUT


if test "$enable_rpath" = "yes" ; then
true
else
# See https://old-en.opensuse.org/openSUSE:Packaging_Guidelines#Removing_Rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
fi

AC_MSG_NOTICE([ AC_MSG_NOTICE([


Configuration for eSpeak NG complete. Configuration for eSpeak NG complete.

Loading…
Cancel
Save