1 |
#------------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------------ |
2 |
# LinuxSampler's / liblinuxsampler's "official" release version: |
# LinuxSampler's / liblinuxsampler's "official" release version: |
3 |
|
|
4 |
m4_define(linuxsampler_release_major, 1) |
m4_define(linuxsampler_release_major, 2) |
5 |
m4_define(linuxsampler_release_minor, 0) |
m4_define(linuxsampler_release_minor, 1) |
6 |
m4_define(linuxsampler_release_build, 0.svn28) |
m4_define(linuxsampler_release_build, 1.svn38) |
7 |
|
|
8 |
|
|
9 |
AC_INIT([linuxsampler],[linuxsampler_release_major.linuxsampler_release_minor.linuxsampler_release_build]) |
AC_INIT([linuxsampler],[linuxsampler_release_major.linuxsampler_release_minor.linuxsampler_release_build]) |
26 |
# 6. If any interfaces have been removed since the last public release, then set age |
# 6. If any interfaces have been removed since the last public release, then set age |
27 |
# to 0. |
# to 0. |
28 |
|
|
29 |
LIBLINUXSAMPLER_LT_CURRENT=3 |
LIBLINUXSAMPLER_LT_CURRENT=5 |
30 |
LIBLINUXSAMPLER_LT_REVISION=0 |
LIBLINUXSAMPLER_LT_REVISION=0 |
31 |
LIBLINUXSAMPLER_LT_AGE=0 |
LIBLINUXSAMPLER_LT_AGE=0 |
32 |
SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE" |
SHARED_VERSION_INFO="$LIBLINUXSAMPLER_LT_CURRENT:$LIBLINUXSAMPLER_LT_REVISION:$LIBLINUXSAMPLER_LT_AGE" |
35 |
# the LSCP specification version this LinuSampler release complies with: |
# the LSCP specification version this LinuSampler release complies with: |
36 |
|
|
37 |
LSCP_RELEASE_MAJOR=1 |
LSCP_RELEASE_MAJOR=1 |
38 |
LSCP_RELEASE_MINOR=6 |
LSCP_RELEASE_MINOR=7 |
39 |
|
|
40 |
AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.]) |
AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.]) |
41 |
AC_DEFINE_UNQUOTED(LSCP_RELEASE_MINOR, ${LSCP_RELEASE_MINOR}, [LSCP spec minor version this release complies with.]) |
AC_DEFINE_UNQUOTED(LSCP_RELEASE_MINOR, ${LSCP_RELEASE_MINOR}, [LSCP spec minor version this release complies with.]) |
42 |
|
|
43 |
|
AM_INIT_AUTOMAKE([subdir-objects]) |
44 |
|
AC_PROG_CC |
45 |
AC_PROG_CXX |
AC_PROG_CXX |
46 |
AC_LIBTOOL_WIN32_DLL |
AC_LIBTOOL_WIN32_DLL |
47 |
AC_PROG_LIBTOOL |
AC_PROG_LIBTOOL |
48 |
|
AC_PROG_LEX |
49 |
|
AC_PROG_YACC |
50 |
|
|
51 |
AC_SUBST(SHLIB_VERSION_ARG) |
AC_SUBST(SHLIB_VERSION_ARG) |
52 |
AC_SUBST(SHARED_VERSION_INFO) |
AC_SUBST(SHARED_VERSION_INFO) |
64 |
|
|
65 |
AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes) |
AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes) |
66 |
|
|
67 |
|
# make sure C++14 is supported by compiler |
68 |
|
# (add CXXFLAGS if required [e.g. -std=c++14]) |
69 |
|
m4_ifdef([m4_include(m4/ax_cxx_compile_stdcxx.m4)],, |
70 |
|
[sinclude([m4/ax_cxx_compile_stdcxx.m4])]) |
71 |
|
AX_CXX_COMPILE_STDCXX(14, [], mandatory) |
72 |
|
|
73 |
AC_MSG_CHECKING([whether x86 architecture]) |
AC_MSG_CHECKING([whether x86 architecture]) |
74 |
def_arch_x86=0 |
def_arch_x86=0 |
75 |
case $host_cpu in |
case $host_cpu in |
158 |
CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" |
CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" |
159 |
CC="$PTHREAD_CC" |
CC="$PTHREAD_CC" |
160 |
|
|
161 |
|
|
162 |
|
# check for compiler's pragma diagnostic capabilities |
163 |
|
m4_ifdef([m4_include(m4/pragma_diagnostics.m4)],, |
164 |
|
[sinclude([m4/pragma_diagnostics.m4])]) |
165 |
|
ACX_CXX_PRAGMA_DIAGNOSTICS |
166 |
|
|
167 |
|
|
168 |
# check for a bug in NPTL-enabled glibc |
# check for a bug in NPTL-enabled glibc |
169 |
# (see Gentoo bug report #194076) |
# (see Gentoo bug report #194076) |
170 |
AC_ARG_ENABLE(nptl-bug-check, |
AC_ARG_ENABLE(nptl-bug-check, |
194 |
echo "NPTL glibc bug check disabled" |
echo "NPTL glibc bug check disabled" |
195 |
fi |
fi |
196 |
|
|
197 |
# FIXME: this is actually a dependency of libgig, not of LS directly, why |
|
198 |
# isn't it hidden by libgig? |
# In case Bison is available, determine the exact version, since we need to |
199 |
AC_CHECK_HEADERS(uuid/uuid.h) |
# use different custom parser code for Bison 2.x vs. Bison 3.x generated |
200 |
AC_SEARCH_LIBS(uuid_generate, uuid) |
# parser yacc tables. |
201 |
|
if echo "$YACC" | grep -q bison; then |
202 |
|
# NOTE: m4 removes [], that's why it needs to be escaped |
203 |
|
bison_version=[`$YACC --version | head -n 1 | sed -e 's/[^0-9.]*\([-0-9.]\+\)$/\1/'`] |
204 |
|
bison_version_major=`echo $bison_version | cut -d. -f1` |
205 |
|
bison_version_minor=`echo $bison_version | cut -d. -f2` |
206 |
|
AC_DEFINE_UNQUOTED(HAVE_BISON_MAJ,$bison_version_major,[Define to the major version of the GNU Bison program installed.]) |
207 |
|
AC_DEFINE_UNQUOTED(HAVE_BISON_MIN,$bison_version_minor,[Define to the minor version of the GNU Bison program installed.]) |
208 |
|
fi |
209 |
|
|
210 |
|
|
211 |
|
|
542 |
|
|
543 |
# LV2 |
# LV2 |
544 |
PKG_CHECK_MODULES(LV2, lv2 >= 1.0.0, config_have_lv2="yes", config_have_lv2="no") |
PKG_CHECK_MODULES(LV2, lv2 >= 1.0.0, config_have_lv2="yes", config_have_lv2="no") |
545 |
|
if test "$config_have_lv2" != "yes"; then |
546 |
|
PKG_CHECK_MODULES(LV2, lv2core >= 1.0.0, config_have_lv2="yes", config_have_lv2="no") |
547 |
|
fi |
548 |
AC_SUBST(LV2_CFLAGS) |
AC_SUBST(LV2_CFLAGS) |
549 |
AC_SUBST(LV2_LIBS) |
AC_SUBST(LV2_LIBS) |
550 |
AM_CONDITIONAL(HAVE_LV2, test $config_have_lv2 = "yes") |
AM_CONDITIONAL(HAVE_LV2, test $config_have_lv2 = "yes") |
610 |
# Checks for various DLL libraries |
# Checks for various DLL libraries |
611 |
|
|
612 |
# Check presence of libgig |
# Check presence of libgig |
613 |
libgig_version="3.3.0" |
libgig_version="4.2.0" |
614 |
PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false) |
PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false) |
615 |
if test "$HAVE_GIG" = "false"; then |
if test "$HAVE_GIG" = "false"; then |
616 |
echo "Required libgig version not found!" |
echo "Required libgig version not found!" |
1338 |
# Create Build Files |
# Create Build Files |
1339 |
|
|
1340 |
AC_CONFIG_HEADERS([config.h]) |
AC_CONFIG_HEADERS([config.h]) |
|
AM_INIT_AUTOMAKE |
|
1341 |
|
|
1342 |
AC_LANG([C++]) |
AC_LANG([C++]) |
1343 |
|
|
1371 |
src/hostplugins/lv2/manifest.ttl \ |
src/hostplugins/lv2/manifest.ttl \ |
1372 |
src/hostplugins/vst/Makefile \ |
src/hostplugins/vst/Makefile \ |
1373 |
src/hostplugins/au/Makefile \ |
src/hostplugins/au/Makefile \ |
1374 |
|
src/scriptvm/Makefile \ |
1375 |
|
src/scriptvm/editor/Makefile \ |
1376 |
src/shell/Makefile \ |
src/shell/Makefile \ |
1377 |
linuxsampler.spec \ |
linuxsampler.spec \ |
1378 |
debian/Makefile \ |
debian/Makefile \ |