1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-25 23:44:13 +02:00

TimeScale effect improvements, updating to sbsms 2, not including GUI changes (except removing obsolete transient sharpening option). See Bug 485.

This commit is contained in:
clayton.otey
2012-04-16 18:26:48 +00:00
parent aa0738a81a
commit 87fb427603
37 changed files with 12087 additions and 9726 deletions

View File

@@ -1,4 +1,4 @@
AC_INIT([sbsms],[1.5.0])
AC_INIT([sbsms],[2.0.0])
dnl Use the m4/ directory to contain libtool macros that will be needed to
dnl go with the ltmain.sh script (both will be created/updated via the command
@@ -8,8 +8,8 @@ AC_CONFIG_MACRO_DIR([m4])
#------------------------------------------------------------------------------------
# Library's "official" release version:
LIBSBSMS_RELEASE_MAJOR=1
LIBSBSMS_RELEASE_MINOR=7
LIBSBSMS_RELEASE_MAJOR=2
LIBSBSMS_RELEASE_MINOR=0
LIBSBSMS_RELEASE_BUILD=0
AC_CONFIG_SRCDIR([src/sbsms.cpp])
AC_CANONICAL_TARGET([])
@@ -34,7 +34,7 @@ AC_DISABLE_SHARED dnl allows for optimizations
# 6. If any interfaces have been removed since the last public release, then set age
# to 0.
SHARED_VERSION_INFO="8:0:7"
SHARED_VERSION_INFO="10:0:0"
AC_PROG_LIBTOOL
AM_PROG_LIBTOOL
@@ -47,29 +47,29 @@ cxxflags_save="$CXXFLAGS"
AC_LANG([C++])
AC_PROG_CXX
AC_PROG_CXXCPP
AX_COMPILER_VENDOR
# restore those variables back
CFLAGS="$cflags_save"
CPPFLAGS="$cppflags_save"
CXXFLAGS="$cxxflags_save"
AC_CHECK_FUNCS(malloc calloc free memcpy memmove)
AC_CHECK_LIB([m],floor)
AC_CHECK_FUNCS(floor sqrt log exp sin cos)
AC_C99_FUNC_LRINT()
AC_C99_FUNC_LRINTF()
AC_SUBST(SHLIB_VERSION_ARG)
AC_SUBST(SHARED_VERSION_INFO)
AC_ARG_ENABLE(universal_binary,[ --enable-universal_binary enable universal binary build: (default: disable)],[enable_universal_binary=$enableval],[enable_universal_binary=no])
AC_ARG_ENABLE(static,[ --enable-static enable static build: (default: disable)],[enable_static=$enableval],[enable_static=no])
AC_ARG_ENABLE(debug,[ --enable-debug enable debug build: (default: disable)],[enable_debug=$enableval],[enable_debug=no])
SBSMS_CFLAGS="-ffast-math -fstrict-aliasing"
AC_ARG_ENABLE(multithreaded,[ --enable-multithreaded enable multithreaded build: (default: disable)],[enable_multithreaded=$enableval],[enable_multithreaded=no])
AC_ARG_ENABLE(sse, [AC_HELP_STRING([--enable-sse],[enable SSE optimizations])], enable_sse=$enableval, enable_sse=yes)
AC_ARG_ENABLE(universal_binary,[ --enable-universal_binary enable universal binary build: (default: disable)],[enable_universal_binary=$enableval],[enable_universal_binary=no])
SBSMS_CFLAGS="-ffast-math -funroll-loops"
if test x$enable_static = xno; then
case "$target_os" in
@@ -81,35 +81,47 @@ if test x$enable_static = xno; then
esac
fi
if test x$enable_debug = xyes; then
SBSMS_CFLAGS="$SBSMS_CFLAGS -g -O3"
else
SBSMS_CFLAGS="$SBSMS_CFLAGS -O3 -fomit-frame-pointer"
fi
if test x$enable_multithreaded = xyes; then
AC_DEFINE(MULTITHREADED,1,[Define to compile multithreaded sbsms])
fi
echo "${ax_cv_cxx_compiler_vendor} XXX"
if test x$enable_sse = xyes; then
if test "${ax_cv_cxx_compiler_vendor}" = "gnu"; then
AX_CHECK_COMPILER_FLAGS(-msse, [SBSMS_CFLAGS="$SBSMS_CFLAGS -msse"],[AC_MSG_ERROR([Need a version of gcc with -msse])])
fi
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <xmmintrin.h>]], [[__m128 v,w; float p[8]; v = _mm_loadu_ps(p); _mm_storeu_ps(p,v); w = _mm_loadl_pi(w,(const __m64*)p); w = _mm_loadh_pi(w,(const __m64*)p); _mm_storel_pi((__m64 *)p, w); _mm_storeh_pi((__m64 *)p, w); v = _mm_add_ps(v,w); v = _mm_sub_ps(v,w); v = _mm_mul_ps(v,w); v = _mm_shuffle_ps(v,w,_MM_SHUFFLE(0,1,2,3)); w = _mm_set1_ps(0.0f);]])], [sse_ok=yes], [sse_ok=no])
if test x$sse_ok = xyes; then
AC_DEFINE(ENABLE_SSE,1,[Define to enable sse])
fi
fi
if test x$enable_universal_binary = xyes; then
case "$target_os" in
darwin*)
SBSMS_CFLAGS="$SBSMS_CFLAGS -mmacosx-version-min=10.4 -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
SBSMS_CFLAGS="$SBSMS_CFLAGS -mmacosx-version-min=10.4 -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Xarch_i386 -DAPPLE_I386 -Xarch_ppc -DAPPLE_PPC"
;;
*)
;;
esac
fi
case "$target_os" in
darwin*)
macosx="yes"
;;
*)
macosx="no"
;;
esac
if test x$enable_debug = xyes; then
SBSMS_CFLAGS="$SBSMS_CFLAGS -g"
else
SBSMS_CFLAGS="$SBSMS_CFLAGS -O3"
fi
AC_SUBST(SBSMS_CFLAGS)
AM_INIT_AUTOMAKE([])
AM_INIT_AUTOMAKE([no-dependencies])
AM_MAINTAINER_MODE([enabled])
AC_CONFIG_FILES([Makefile src/Makefile libsbsms.spec sbsms.pc])
AC_OUTPUT