Revision 997f3ba4 configure

View differences:

configure
1837 1837
    }
1838 1838
    case $cpu in
1839 1839
        601|ppc601|PowerPC601)
1840
            add_cflags -mcpu=601
1840
            cpuflags="-mcpu=601"
1841 1841
            warn_altivec enabled PPC601
1842 1842
        ;;
1843 1843
        603*|ppc603*|PowerPC603*)
1844
            add_cflags -mcpu=603
1844
            cpuflags="-mcpu=603"
1845 1845
            warn_altivec enabled PPC603
1846 1846
        ;;
1847 1847
        604*|ppc604*|PowerPC604*)
1848
            add_cflags -mcpu=604
1848
            cpuflags="-mcpu=604"
1849 1849
            warn_altivec enabled PPC604
1850 1850
        ;;
1851 1851
        G3|g3|75*|ppc75*|PowerPC75*)
1852
            add_cflags -mcpu=750 -mpowerpc-gfxopt
1852
            cpuflags="-mcpu=750 -mpowerpc-gfxopt"
1853 1853
            warn_altivec enabled PPC75x
1854 1854
        ;;
1855 1855
        G4|g4|745*|ppc745*|PowerPC745*)
1856
            add_cflags -mcpu=7450 -mpowerpc-gfxopt
1856
            cpuflags="-mcpu=7450 -mpowerpc-gfxopt"
1857 1857
            warn_altivec disabled PPC745x
1858 1858
        ;;
1859 1859
        74*|ppc74*|PowerPC74*)
1860
            add_cflags -mcpu=7400 -mpowerpc-gfxopt
1860
            cpuflags="-mcpu=7400 -mpowerpc-gfxopt"
1861 1861
            warn_altivec disabled PPC74xx
1862 1862
        ;;
1863 1863
        G5|g5|970|ppc970|PowerPC970|power4*|Power4*)
1864
            add_cflags -mcpu=970 -mpowerpc-gfxopt -mpowerpc64
1864
            cpuflags="-mcpu=970 -mpowerpc-gfxopt -mpowerpc64"
1865 1865
            warn_altivec disabled PPC970
1866 1866
        ;;
1867 1867
        Cell|CELL|cell)
1868
            add_cflags -mcpu=cell
1868
            cpuflags="-mcpu=cell"
1869 1869
            warn_altivec disabled Cell
1870 1870
            enable ldbrx
1871 1871
        ;;
1872 1872
        # targets that do NOT support conditional mov (cmov)
1873 1873
        i[345]86|pentium|pentium-mmx|k6|k6-[23]|winchip-c6|winchip2|c3)
1874
            add_cflags -march=$cpu
1874
            cpuflags="-march=$cpu"
1875 1875
            disable cmov
1876 1876
        ;;
1877 1877
        # targets that do support conditional mov (cmov)
1878 1878
        i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64|k8|opteron|athlon-fx|core2)
1879
            add_cflags -march=$cpu
1879
            cpuflags="-march=$cpu"
1880 1880
            enable cmov
1881 1881
            enable fast_cmov
1882 1882
        ;;
1883 1883
        # targets that do support conditional mov but on which it's slow
1884 1884
        pentium4|pentium4m|prescott|nocona)
1885
            add_cflags -march=$cpu
1885
            cpuflags="-march=$cpu"
1886 1886
            enable cmov
1887 1887
            disable fast_cmov
1888 1888
        ;;
1889 1889
        sparc64)
1890
            add_cflags -mcpu=v9
1890
            cpuflags="-mcpu=v9"
1891 1891
        ;;
1892 1892
        arm11*|cortex*)
1893
            add_cflags -mcpu=$cpu
1893
            cpuflags="-mcpu=$cpu"
1894 1894
            enable fast_unaligned
1895 1895
        ;;
1896 1896
        armv[67]*)
1897
            add_cflags -march=$cpu
1897
            cpuflags="-march=$cpu"
1898 1898
            enable fast_unaligned
1899 1899
        ;;
1900 1900
        armv*)
1901
            add_cflags -march=$cpu
1901
            cpuflags="-march=$cpu"
1902 1902
        ;;
1903 1903
        arm*)
1904
            add_cflags -mcpu=$cpu
1904
            cpuflags="-mcpu=$cpu"
1905 1905
        ;;
1906 1906
        ev4|ev45|ev5|ev56|pca56|ev6|ev67)
1907
            enabled ccc && add_cflags -arch $cpu || add_cflags -mcpu=$cpu
1907
            enabled ccc && cpuflags="-arch $cpu" || cpuflags="-mcpu=$cpu"
1908 1908
        ;;
1909 1909
        bf*)
1910
            add_cflags -mcpu=$cpu
1910
            cpuflags="-mcpu=$cpu"
1911 1911
        ;;
1912 1912
        mips*|[45]k*|[237]4k*|m4k|r*000|loongson2[ef])
1913
            add_cflags -march=$cpu
1913
            cpuflags="-march=$cpu"
1914 1914
        ;;
1915 1915
        *)
1916 1916
            echo "WARNING: Unknown CPU \"$cpu\", ignored."
......
1918 1918
    esac
1919 1919
fi
1920 1920

  
1921
add_cflags $cpuflags
1922

  
1921 1923
check_cc <<EOF || die "Symbol mangling check failed."
1922 1924
int ff_extern;
1923 1925
EOF

Also available in: Unified diff