2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(hts_engine_API, 1.08, hts-engine-users@lists.sourceforge.net)
6 AC_CONFIG_AUX_DIR([config])
7 AC_COPYRIGHT(Copyright 2001-2013 Nagoya Institute of Technology)
8 AC_COPYRIGHT(Copyright 2001-2008 Tokyo Institute of Technology)
9 AM_INIT_AUTOMAKE(hts_engine_API, 1.08, nostdinc no-installinfo no-installman)
11 # Checks for C compiler
16 AN_MAKEVAR([AR], [AC_PROG_AR])
17 AN_PROGRAM([ar], [AC_PROG_AR])
18 AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)])
22 # Checks for libraries.
23 AC_CHECK_LIB([m], [log])
26 # Checks for header files.
28 AC_CHECK_HEADERS([stdlib.h string.h])
31 # Checks for typedefs, structures, and compiler characteristics.
35 # Checks for library functions.
37 AC_CHECK_FUNCS([sqrt strchr strrchr strstr])
40 # Checks for embedded device compile
41 AC_ARG_ENABLE(embedded, [ --enable-embedded turn on compiling for embedded devices (default=no)],,enable_embedded=no)
42 AC_MSG_CHECKING(whether to enable compiling for embedded devices)
43 if test x$enable_embedded = xyes; then
45 AC_DEFINE(HTS_EMBEDDED)
51 # Checks for using festival
52 AC_ARG_ENABLE(festival, [ --enable-festival use memory allocation/free functions of speech tools (default=no)],,enable_festival=no)
53 AC_MSG_CHECKING(whether to use memory allocation/free functions of speech tools)
54 if test x$enable_festival = xyes; then
66 # Checks library for windows audio devices
68 *win32* | *wince* | *cygwin* | *mingw* )
69 AC_HAVE_LIBRARY([winmm],,AC_MSG_ERROR(No winmm))
76 AC_CONFIG_FILES([Makefile bin/Makefile lib/Makefile])