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.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. AC_PREREQ([2.65])
  2. AC_INIT([Unicode Character Database Tools], [11.0.0], [https://github.com/rhdunn/ucd-tools/issues], [ucd-tools], [https://github.com/rhdunn/ucd-tools])
  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. LT_INIT
  10. dnl ================================================================
  11. dnl Program checks.
  12. dnl ================================================================
  13. AC_PROG_CC
  14. AC_PROG_CXX
  15. AC_PROG_MAKE_SET
  16. dnl ================================================================
  17. dnl library checks.
  18. dnl ================================================================
  19. AC_CHECK_HEADERS([stddef.h]) dnl C89
  20. AC_CHECK_FUNCS([iswblank]) dnl C99
  21. AC_TYPE_UINT8_T
  22. AC_TYPE_UINT32_T
  23. dnl ================================================================
  24. dnl UCD data configuration.
  25. dnl ================================================================
  26. AC_ARG_WITH([unicode-version],
  27. [AS_HELP_STRING([--with-unicode-version], [Unicode version to support @<:@default=11.0.0@:>@])],
  28. [AS_IF([test x"$withval" != x],
  29. [UCD_VERSION="$withval"])],
  30. [UCD_VERSION="11.0.0"])
  31. AC_SUBST(UCD_VERSION)
  32. AC_ARG_WITH([emoji-version],
  33. [AS_HELP_STRING([--with-emoji-version], [Unicode emoji version to support @<:@default=5.0@:>@])],
  34. [AS_IF([test x"$withval" != x],
  35. [EMOJI_VERSION="$withval"])],
  36. [EMOJI_VERSION="5.0"])
  37. AC_SUBST(EMOJI_VERSION)
  38. dnl ================================================================
  39. dnl Compiler warnings.
  40. dnl
  41. dnl Reference: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
  42. dnl ================================================================
  43. AX_CHECK_COMPILE_FLAG([-Wmissing-prototypes], [CFLAGS="-Wmissing-prototypes $CFLAGS"])
  44. AX_CHECK_COMPILE_FLAG([-Wreturn-type], [CFLAGS="-Wreturn-type $CFLAGS"])
  45. dnl ================================================================
  46. dnl Generate output.
  47. dnl ================================================================
  48. AC_CONFIG_FILES([Makefile])
  49. AC_OUTPUT
  50. AC_MSG_NOTICE([
  51. Configuration for Unicode Character Data Tools complete.
  52. Source code location: ${srcdir}
  53. C Compiler: ${CC}
  54. C Compiler flags: ${CFLAGS}
  55. C++ Compiler: ${CXX}
  56. C++ Compiler flags: ${CXXFLAGS}
  57. Unicode version: ${UCD_VERSION}
  58. Emoji version: ${EMOJI_VERSION}
  59. ])