freeswitch / spandsp

SpanDSP is a low-level signal processing library that modulates and demodulates signals commonly used in telephony, such as the "noise" generated by a fax modem or DTMF touchpad.
Other
144 stars 118 forks source link

configure.ac: fix AVX, SSE and MMX options #20

Open ffontaine opened 3 years ago

ffontaine commented 3 years ago

AVX, SSE and MMX options are broken since https://github.com/freeswitch/spandsp/commit/87a900c70df73e128a5926587047f529105f5f64

For example, when the user enables SSE, it will also enable MMX and the user can't disable MMX

Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com

coppice-git commented 3 years ago

The cascading of higher levels of MMX/SSE/AVX enabling the lower levels is by design. There are no devices with SSE which do not support MMX.

If spandsp is not building for an i686 machine, this needs to be fixed. What is the build platform where it is failing?

I just tried building the current spandsp code on an (not very recent) Fedora i686 machine with "./configure --enable-sse2" and it builds OK. So, the reported problem seems to relate to a particular environment.

ffontaine commented 3 years ago

Build failure is raised on buildroot by the following toolchain: http://autobuild.buildroot.org/toolchains/tarballs/br-i386-pentium4-full-2020.02.tar.bz2 I opened issue #21

xrobau commented 3 years ago

The build script in #21 is explicitly enabling things that the CPU target doesn't support.