1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/audio/xmms-eq/files/patch-configure
Jean-Yves Lefort 09774d0817 Fix the build on some non-i386 platforms.
Reported by:	pointyhat
2005-06-30 00:21:03 +00:00

57 lines
1.5 KiB
Plaintext

--- configure.orig Sun May 16 03:59:17 2004
+++ configure Thu Jun 30 02:09:17 2005
@@ -9664,7 +9664,7 @@
sse2=no
fi;
-ARCH_DEFINES_DEFAULT="-DARCH_X86"
+ARCH_DEFINES_DEFAULT=""
if test "x$debug" = xyes; then
XF_CFLAGS="-Wall -g -O2 -DDEBUG $XF_CFLAGS"
else
@@ -9689,10 +9689,10 @@
fi
have_solaris=no
-arch_type=ix86
-SSE_RES=`cat /proc/cpuinfo|grep sse`
-SSE2_RES=`cat /proc/cpuinfo|grep sse2`
-MMX_RES=`cat /proc/cpuinfo|grep mmx`
+arch_type=unknown
+SSE_RES=`grep 'Features=.*[<,]SSE[>,]' /var/run/dmesg.boot`
+SSE2_RES=`grep 'Features=.*[<,]SSE2[>,]' /var/run/dmesg.boot`
+MMX_RES=`grep 'Features=.*[<,]MMX[>,]' /var/run/dmesg.boot`
ARCH_DEFINES=""
if test "x$mmx" = xyes; then
@@ -9708,27 +9708,8 @@
if test "x$debug" = xno; then
case "$host" in
i386-*-* | i86pc-*-*)
- ;;
- i486-*-*)
- ARCH_DEFINES="-march=i486"
- ;;
- i586-*-*)
- ARCH_DEFINES="-march=i586"
- if test "x$benchmark" = xyes; then
- XF_CFLAGS="$XF_CFLAGS -DBENCHMARK"
- fi
- if test "x$autodetect" = xyes; then
- if test "x$MMX_RES" != x; then
- mmx=yes
- fi
- fi
- if test "x$mmx" = xyes; then
- autodetect=no
- ARCH_DEFINES="$ARCH_DEFINES -m3dnow -mmmx"
- fi
- ;;
- i686-*-*)
- ARCH_DEFINES="-march=i686"
+ ARCH_DEFINES_DEFAULT="-DARCH_X86"
+ arch_type=ix86
if test "x$benchmark" = xyes; then
XF_CFLAGS="$XF_CFLAGS -DBENCHMARK"
fi