Ticket #6737: CPU_auto-detection.patch

File CPU_auto-detection.patch, 1.4 KB (added by mythtv@…, 4 years ago)
  • configure

     
    24022402check_deps $ARCH_EXT_LIST 
    24032403 
    24042404# if no tune setting and we know cpu class look at $processor 
    2405 if ! enabled_any cpu_override cross_compile && enabled proc_opt; then 
     2405if ! enabled_any cpu_override cross_compile proc_opt; then 
    24062406# first try to tune based on processor info 
     2407# Intel i7 processors (EMT64T capable) 
     2408   if expr "$processor" : ".*Intel(R).*Core(TM) i7 CPU.*" > /dev/null ; then 
     2409       cpu="core2" 
    24072410# EM64T era Intel Xeon 
    2408    if expr "$processor" : ".*Intel(R) Xeon(R) CPU.*51[1-6][08]" > /dev/null ; then 
     2411   elif expr "$processor" : ".*Intel(R) Xeon(R) CPU.*51[1-6][08]" > /dev/null ; then 
    24092412       cpu="core2" 
    24102413   elif expr "$processor" : ".*Intel(R) Xeon(R) CPU.*54[0-9][025]" > /dev/null ; then 
    24112414       cpu="core2" 
     
    25012504# AMD Opteron 
    25022505   elif expr "$processor" : ".*AMD Opteron(tm)" >/dev/null ; then 
    25032506       cpu="k8" 
     2507# Athlon MP 
     2508   elif expr "$processor" : ".*AMD Athlon(tm) MP.*" > /dev/null ; then 
     2509       cpu="athlon-mp" 
    25042510# Athlon XP 
    25052511   elif expr "$processor" : "athlon-xp" > /dev/null ; then 
    25062512       cpu="athlon-xp" 
     
    25562562   elif test x"$arch_raw" = x"i386"; then 
    25572563       cpu="i386" 
    25582564       proc_error_msg="yes" 
     2565   else 
     2566       proc_error_msg="yes" 
    25592567   fi 
    25602568fi 
    25612569