| dnl wxWidgets checks. | dnl wxWidgets checks. | ||||
| dnl ================================================================ | dnl ================================================================ | ||||
| AC_CHECK_PROG(WXCONFIG_CHECK,wx-config,yes) | |||||
| if test x"$WXCONFIG_CHECK" != x"yes" ; then | |||||
| AC_MSG_ERROR([Please install wxWidgets which is needed for espeakedit.]) | |||||
| AC_ARG_WITH([wx-config], | |||||
| [AS_HELP_STRING([--with-wx-config], [specify the location of wx-config @<:@default=wx-config@:>@])], | |||||
| [WX_CONFIG=$with_wx_config], | |||||
| [WX_CONFIG=wx-config]) | |||||
| if test ! -e "${WX_CONFIG}" ; then | |||||
| AC_CHECK_PROG(WXCONFIG_CHECK,${WX_CONFIG},yes) | |||||
| if test x"$WXCONFIG_CHECK" != x"yes" ; then | |||||
| AC_MSG_ERROR([Cannot find wxWidgets which is needed for espeakedit to build the voices.]) | |||||
| fi | |||||
| fi | fi | ||||
| WX_LIBS=`wx-config --libs` | |||||
| WX_CXXFLAGS=`wx-config --cxxflags` | |||||
| WX_VERSION=`wx-config --version` | |||||
| WX_LIBS=`${WX_CONFIG} --libs` | |||||
| WX_CXXFLAGS=`${WX_CONFIG} --cxxflags` | |||||
| WX_VERSION=`${WX_CONFIG} --version` | |||||
| AC_SUBST(WX_LIBS) | AC_SUBST(WX_LIBS) | ||||
| AC_SUBST(WX_CXXFLAGS) | AC_SUBST(WX_CXXFLAGS) | ||||
| Compiler: ${CXX} | Compiler: ${CXX} | ||||
| Compiler flags: ${CXXFLAGS} | Compiler flags: ${CXXFLAGS} | ||||
| wxWidgets: ${WX_VERSION} | |||||
| wxWidgets: ${WX_VERSION} (${WX_CONFIG}) | |||||
| pulseaudio: ${have_pulseaudio} | pulseaudio: ${have_pulseaudio} | ||||
| portaudio: ${have_portaudio} | portaudio: ${have_portaudio} | ||||
| sada: ${have_sada} | sada: ${have_sada} |