eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure.ac 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. AC_PREREQ([2.65])
  2. AC_INIT([eSpeak], [1.46], [https://github.com/rhdunn/espeak/issues], [espeak], [https://github.com/rhdunn/espeak])
  3. AM_INIT_AUTOMAKE()
  4. m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES])
  5. AM_SILENT_RULES([yes])
  6. AC_CONFIG_SRCDIR([src])
  7. AC_CONFIG_MACRO_DIR([m4])
  8. AC_CONFIG_HEADERS([config.h])
  9. dnl ================================================================
  10. dnl Program checks.
  11. dnl ================================================================
  12. AC_PROG_CXX
  13. AC_PROG_MAKE_SET
  14. AC_PROG_LIBTOOL
  15. dnl ================================================================
  16. dnl getopt checks.
  17. dnl ================================================================
  18. AC_CHECK_HEADERS([getopt.h])
  19. AC_CHECK_FUNCS([getopt_long])
  20. dnl ================================================================
  21. dnl PulseAudio checks.
  22. dnl ================================================================
  23. AC_ARG_WITH([pulseaudio],
  24. [AS_HELP_STRING([--with-pulseaudio], [use the pulseaudio library for audio output @<:@default=yes@:>@])],
  25. [])
  26. if test "$with_pulseaudio" = "no"; then
  27. echo "Disabling pulseaudio output support via pulseaudio"
  28. have_pulseaudio=no
  29. else
  30. PKG_CHECK_MODULES(PULSEAUDIO, [libpulse >= 0.9],
  31. [
  32. have_pulseaudio=yes
  33. ],[
  34. have_pulseaudio=no
  35. ])
  36. fi
  37. dnl ================================================================
  38. dnl Audio checks.
  39. dnl ================================================================
  40. if test "$have_pulseaudio" = yes ; then
  41. AUDIO=pulseaudio
  42. else
  43. AUDIO=disabled
  44. fi
  45. AC_SUBST(AUDIO)
  46. AM_CONDITIONAL(AUDIO_RUNTIME, [test x"$AUDIO" = xruntime])
  47. AM_CONDITIONAL(AUDIO_PULSEAUDIO, [test x"$AUDIO" = xpulseaudio])
  48. AM_CONDITIONAL(AUDIO_PORTAUDIO, [test x"$AUDIO" = xportaudio])
  49. AM_CONDITIONAL(AUDIO_PORTAUDIO0, [test x"$AUDIO" = xportaudio0])
  50. AM_CONDITIONAL(AUDIO_PORTAUDIO2, [test x"$AUDIO" = xportaudio2])
  51. AM_CONDITIONAL(AUDIO_SADA, [test x"$AUDIO" = xsada])
  52. dnl ================================================================
  53. dnl wxWidgets checks.
  54. dnl ================================================================
  55. AC_CHECK_PROG(WXCONFIG_CHECK,wx-config,yes)
  56. if test x"$WXCONFIG_CHECK" != x"yes" ; then
  57. AC_MSG_ERROR([Please install wxWidgets which is needed for espeakedit.])
  58. fi
  59. WX_LIBS=`wx-config --libs`
  60. WX_CXXFLAGS=`wx-config --cxxflags`
  61. WX_VERSION=`wx-config --version`
  62. AC_SUBST(WX_LIBS)
  63. AC_SUBST(WX_CXXFLAGS)
  64. dnl ================================================================
  65. dnl Generate output.
  66. dnl ================================================================
  67. AC_CONFIG_FILES([Makefile src/Makefile])
  68. AC_OUTPUT
  69. AC_MSG_NOTICE([
  70. Configuration for eSpeak complete.
  71. Source code location: ${srcdir}
  72. Compiler: ${CXX}
  73. Compiler flags: ${CXXFLAGS}
  74. wxWidgets: ${WX_VERSION}
  75. pulseaudio: ${have_pulseaudio}
  76. audio configuration: ${AUDIO}
  77. ])