changeset 19886:49ebd9c51a99

configure should fall back on -mcpu=pentium4 if -mcpu=prescott and -mcpu=nocona are not supported. patch by Sergey Svishchev, svs+mplayer grep ru
author diego
date Mon, 18 Sep 2006 16:24:16 +0000
parents 7f9b2b26e905
children 1259d6add8e6
files configure
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Sep 18 14:27:35 2006 +0000
+++ b/configure	Mon Sep 18 16:24:16 2006 +0000
@@ -1010,6 +1010,9 @@
 	fi
       fi
     fi
+    if test "$proc" = "nocona" || test "$proc" = "prescott" ; then
+      cc_check -march=$proc $cpuopt=$proc || proc=pentium4
+    fi
     if test "$proc" = "pentium4" || test "$proc" = "pentium-m" || test "$proc" = "pentium3" || test "$proc" = "pentium2" || test "$proc" = "athlon" || test "$proc" = "c3-2"; then
       cc_check -march=$proc $cpuopt=$proc  || proc=i686
     fi