--- gst/audioresample/speex_resampler_float.c.orig	Fri Dec 30 13:29:15 2011
+++ gst/audioresample/speex_resampler_float.c	Wed Feb 22 20:06:10 2012
@@ -17,8 +17,12 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef __SSE__
 #define _USE_SSE
+#endif
+#ifdef __SSE2__
 #define _USE_SSE2
+#endif
 #define FLOATING_POINT
 #define OUTSIDE_SPEEX
 #define RANDOM_PREFIX resample_float

--- gst/audioresample/speex_resampler_double.c.orig	Fri Dec 30 13:29:15 2011
+++ gst/audioresample/speex_resampler_double.c	Wed Feb 22 20:06:10 2012
@@ -17,7 +17,9 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef __SSE2__
 #define _USE_SSE2
+#endif
 #define FLOATING_POINT
 #define DOUBLE_PRECISION
 #define OUTSIDE_SPEEX

--- gst/audioresample/resample_sse.h.orig	Fri Dec 30 13:29:15 2011
+++ gst/audioresample/resample_sse.h	Wed Feb 22 20:06:10 2012
@@ -34,6 +34,7 @@
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
+#ifdef _USE_SSE
 #ifdef HAVE_XMMINTRIN_H
 #include <xmmintrin.h>
 #endif
@@ -72,6 +73,7 @@ static inline float interpolate_product_single(const f
    _mm_store_ss(&ret, sum);
    return ret;
 }
+#endif
 
 #ifdef _USE_SSE2
 #ifdef HAVE_EMMINTRIN_H
