mirror of
https://github.com/RPCS3/soundtouch.git
synced 2024-11-27 05:10:49 +00:00
Added openmp configuration for gnu buid
This commit is contained in:
parent
d7d0a5c0f9
commit
6935032a52
15
configure.ac
15
configure.ac
@ -78,10 +78,15 @@ AC_C_INLINE
|
||||
AC_ARG_ENABLE(integer-samples,
|
||||
[AC_HELP_STRING([--enable-integer-samples],
|
||||
[use integer samples instead of floats
|
||||
[default=yes]])],,
|
||||
[default=no]])],,
|
||||
[enable_integer_samples=no])
|
||||
|
||||
|
||||
AC_ARG_ENABLE(openmp,
|
||||
[AC_HELP_STRING([--enable-openmp],
|
||||
[use parallel multicore calculation through OpenMP [default=yes]])],,
|
||||
[enable_openmp=yes])
|
||||
|
||||
# Let the user enable/disable the x86 optimizations.
|
||||
# Useful when compiling on non-x86 architectures.
|
||||
AC_ARG_ENABLE([x86-optimizations],
|
||||
@ -105,6 +110,14 @@ else
|
||||
fi
|
||||
|
||||
|
||||
if test "x$enable_openmp" = "xyes"; then
|
||||
echo "****** openmp optimizations enabled ******"
|
||||
CXXFLAGS="-fopenmp $CXXFLAGS"
|
||||
else
|
||||
echo "****** openmp optimizations disabled ******"
|
||||
fi
|
||||
|
||||
|
||||
# Check if optimizations are supported in the system at build time.
|
||||
if test "x$enable_x86_optimizations" = "xyes" -a "x$ac_cv_header_cpuid_h" = "xyes"; then
|
||||
echo "****** x86 optimizations enabled ******"
|
||||
|
@ -48,7 +48,7 @@ soundstretch_LDADD=../SoundTouch/libSoundTouch.la -lm
|
||||
#soundstretch_LDFLAGS=-s
|
||||
|
||||
## additional compiler flags
|
||||
soundstretch_CXXFLAGS=-O3 -fopenmp
|
||||
soundstretch_CXXFLAGS=-O3
|
||||
|
||||
#clean-local:
|
||||
# -rm -f additional-files-to-remove-on-make-clean
|
||||
|
@ -34,7 +34,7 @@ libSoundTouch_la_SOURCES=AAFilter.cpp FIRFilter.cpp FIFOSampleBuffer.cpp \
|
||||
InterpolateShannon.cpp
|
||||
|
||||
# Compiler flags
|
||||
AM_CXXFLAGS=-O3 -fopenmp -I../../include
|
||||
AM_CXXFLAGS=-O3 -I../../include
|
||||
|
||||
# Compile the files that need MMX and SSE individually.
|
||||
libSoundTouch_la_LIBADD=libSoundTouchMMX.la libSoundTouchSSE.la
|
||||
|
Loading…
Reference in New Issue
Block a user