1# -*- Autoconf -*- 2# Process this file with autoconf to produce a configure script. 3 4AC_PREREQ(2.59) 5AC_INIT(hts_engine_API, 1.10, hts-engine-users@lists.sourceforge.net, hts_engine_API) 6AC_CONFIG_AUX_DIR([config]) 7AC_COPYRIGHT(Copyright 2001-2015 Nagoya Institute of Technology) 8AC_COPYRIGHT(Copyright 2001-2008 Tokyo Institute of Technology) 9AM_INIT_AUTOMAKE 10 11# Checks for C compiler 12AC_PROG_CC 13AM_PROG_CC_C_O 14AC_PROG_INSTALL 15AC_PROG_RANLIB 16AN_MAKEVAR([AR], [AC_PROG_AR]) 17AN_PROGRAM([ar], [AC_PROG_AR]) 18AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)]) 19AC_PROG_AR 20 21 22# Checks for libraries. 23AC_CHECK_LIB([m], [log]) 24 25 26# Checks for header files. 27AC_HEADER_STDC 28AC_CHECK_HEADERS([stdlib.h string.h]) 29 30 31# Checks for typedefs, structures, and compiler characteristics. 32AC_C_CONST 33AC_TYPE_SIZE_T 34 35# Checks for library functions. 36AC_FUNC_VPRINTF 37AC_CHECK_FUNCS([sqrt strchr strrchr strstr]) 38 39 40# Checks for embedded device compile 41AC_ARG_ENABLE(embedded, [ --enable-embedded turn on compiling for embedded devices (default=no)],,enable_embedded=no) 42AC_MSG_CHECKING(whether to enable compiling for embedded devices) 43if test x$enable_embedded = xyes; then 44 AC_MSG_RESULT(yes) 45 AC_DEFINE(HTS_EMBEDDED) 46else 47 AC_MSG_RESULT(no) 48fi 49 50 51# Checks for using festival 52AC_ARG_ENABLE(festival, [ --enable-festival use memory allocation/free functions of speech tools (default=no)],,enable_festival=no) 53AC_MSG_CHECKING(whether to use memory allocation/free functions of speech tools) 54if test x$enable_festival = xyes; then 55 AC_MSG_RESULT(yes) 56 AC_DEFINE(FESTIVAL) 57else 58 AC_MSG_RESULT(no) 59fi 60 61 62AC_CANONICAL_HOST 63AC_C_BIGENDIAN 64 65 66# Checks library for windows audio devices 67case "$host_os" in 68 *win32* | *wince* | *cygwin* | *mingw* ) 69 AC_HAVE_LIBRARY([winmm],,AC_MSG_ERROR(No winmm)) 70 ;; 71 *) 72 ;; 73esac 74 75 76AC_CONFIG_FILES([Makefile bin/Makefile lib/Makefile]) 77 78AC_OUTPUT 79 80