-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
108 lines (86 loc) · 3.23 KB
/
configure.ac
File metadata and controls
108 lines (86 loc) · 3.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT([Multispeech], [4.6.3], [https://github.com/poretsky/multispeech/issues/new], [], [https://github.com/poretsky/multispeech])
AC_CONFIG_SRCDIR([src/core/speech_server.cpp])
AC_CONFIG_HEADERS([sysconfig.h])
AC_CONFIG_MACRO_DIRS([m4])
AM_INIT_AUTOMAKE([foreign])
AC_DISABLE_STATIC
LT_INIT
AC_SUBST(VERSION)
AC_REQUIRE_AUX_FILE([INSTALL])
AC_REQUIRE_AUX_FILE([COPYING])
# Guess environment.
AC_CANONICAL_HOST
AC_CANONICAL_BUILD
# Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_CXXCPP
AC_PROG_INSTALL
if test "$ac_cv_prog_cc_g" = "no" -o "$ac_cv_prog_cxx_g" = "no"
then AC_MSG_ERROR([No C/C++ compiler present])
fi
# Language choice.
AC_LANG([C++])
AX_CXX_COMPILE_STDCXX([23], [], [optional])
if test x$ax_cv_cxx_compile_cxx23 != xyes ; then
AX_CXX_COMPILE_STDCXX([20], [], [optional])
if test x$ax_cv_cxx_compile_cxx20 != xyes ; then
AX_CXX_COMPILE_STDCXX([17], [], [optional])
if test x$ax_cv_cxx_compile_cxx17 != xyes ; then
AX_CXX_COMPILE_STDCXX([14], [], [optional])
if test x$ax_cv_cxx_compile_cxx14 != xyes ; then
AX_CXX_COMPILE_STDCXX_11
fi
fi
fi
fi
AX_CHECK_VSCRIPT
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
AC_TYPE_SIZE_T
# Checks for required headers and libraries.
AC_CHECK_HEADERS([iconv.h unistd.h fcntl.h signal.h sys/types.h sys/wait.h sys/stat.h], [], AC_MSG_ERROR([Some system headers are not found]))
AC_CHECK_HEADERS([cmath cstdlib ctime cerrno cstring], [], AC_MSG_ERROR([Some StdC++ headers are not found]))
AC_CHECK_HEADERS([exception stdexcept string sstream iostream ostream memory queue vector map stack list typeinfo algorithm locale utility], [], AC_MSG_ERROR([Some STL headers are not found]))
AM_PATH_PORTAUDIOCPP
AM_PATH_PULSEAUDIO
AM_PATH_SNDFILE
AM_PATH_BOBCAT
AM_PATH_SOUNDTOUCH([], [], AC_MSG_ERROR([the SoundTouch library is missing or corrupted]))
AX_BOOST_BASE([1.49], [], AC_MSG_ERROR([the Boost library is missing or corrupted]))
AX_BOOST_FILESYSTEM
if test "$ax_cv_boost_filesystem" != "yes"
then AC_MSG_ERROR([Boost file system support library is missing or corrupted])
fi
AX_BOOST_IOSTREAMS
if test "$ax_cv_boost_iostreams" != "yes"
then AC_MSG_ERROR([Boost iostreams support library is missing or corrupted])
fi
AX_BOOST_LOCALE
if test "$ax_cv_boost_locale" != "yes"
then AC_MSG_ERROR([Boost locale support library is missing or corrupted])
fi
AX_BOOST_PROGRAM_OPTIONS
if test "$ax_cv_boost_program_options" != "yes"
then AC_MSG_ERROR([Boost program options support library is missing or corrupted])
fi
AX_BOOST_REGEX
if test "$ax_cv_boost_regex" != "yes"
then AC_MSG_ERROR([Boost regex support library is missing or corrupted])
fi
AX_BOOST_SYSTEM
if test "$ax_cv_boost_system" != "yes"
then AC_MSG_ERROR([Boost system support library is missing or corrupted])
fi
AX_BOOST_THREAD
if test "$ax_cv_boost_thread" != "yes"
then AC_MSG_ERROR([Boost thread support library is missing or corrupted])
fi
# Check for additional headers.
AC_CHECK_HEADERS([libspeechd_version.h])
# Output results.
AC_CONFIG_FILES([Makefile src/Makefile src/core/Makefile src/emacspeak_ss/Makefile src/ssip/Makefile doc/Makefile])
AC_OUTPUT