Mercurial > sdl-ios-xcode
comparison configure.in @ 1162:2651158f59b8
Enable altivec blitters on PowerPC Linux, and some fixes for recent
GCCs versions.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 20 Oct 2005 06:55:26 +0000 |
parents | af8b0f9ac2f4 |
children | 045f186426e1 |
comparison
equal
deleted
inserted
replaced
1161:05d4b93b911e | 1162:2651158f59b8 |
---|---|
1908 } | 1908 } |
1909 | 1909 |
1910 dnl Check for altivec instruction support using gas syntax | 1910 dnl Check for altivec instruction support using gas syntax |
1911 CheckAltivec() | 1911 CheckAltivec() |
1912 { | 1912 { |
1913 AC_MSG_CHECKING(for GCC Altivec instruction support) | 1913 dnl FIXME: Theoretically, you might not have altivec.h, we should check |
1914 dnl FIXME: that seperately, but I think all major platforms have it | |
1915 dnl FIXME: at the moment... --ryan. | |
1916 | |
1917 save_CFLAGS="${CFLAGS}" | |
1914 have_gcc_altivec=no | 1918 have_gcc_altivec=no |
1915 save_CFLAGS="${CFLAGS}" | 1919 AC_MSG_CHECKING(for Altivec with GCC -maltivec option) |
1916 CFLAGS="${CFLAGS} -DGCC_ALTIVEC -DUSE_ALTIVEC_BLITTERS -faltivec" | 1920 CFLAGS="${save_CFLAGS} -DGCC_ALTIVEC -DUSE_ALTIVEC_BLITTERS -maltivec" |
1917 AC_TRY_COMPILE([ | 1921 AC_TRY_COMPILE([ |
1922 #include <altivec.h> | |
1918 vector unsigned int vzero() { | 1923 vector unsigned int vzero() { |
1919 return vec_splat_u32(0); | 1924 return vec_splat_u32(0); |
1920 } | 1925 } |
1921 ],[ | 1926 ],[ |
1922 ],[ | 1927 ],[ |
1923 have_gcc_altivec=yes | 1928 have_gcc_altivec=yes |
1924 ]) | 1929 ]) |
1930 AC_MSG_RESULT($have_gcc_altivec) | |
1931 | |
1932 if test x$have_gcc_altivec = xno; then | |
1933 AC_MSG_CHECKING(for Altivec with GCC -faltivec option) | |
1934 CFLAGS="${CFLAGS} -DGCC_ALTIVEC -DUSE_ALTIVEC_BLITTERS -faltivec" | |
1935 AC_TRY_COMPILE([ | |
1936 #include <altivec.h> | |
1937 vector unsigned int vzero() { | |
1938 return vec_splat_u32(0); | |
1939 } | |
1940 ],[ | |
1941 ],[ | |
1942 have_gcc_altivec=yes | |
1943 ]) | |
1944 AC_MSG_RESULT($have_gcc_altivec) | |
1945 fi | |
1946 | |
1925 if test x$have_gcc_altivec = xno; then | 1947 if test x$have_gcc_altivec = xno; then |
1926 CFLAGS="${save_CFLAGS}" | 1948 CFLAGS="${save_CFLAGS}" |
1927 fi | 1949 fi |
1928 AC_MSG_RESULT($have_gcc_altivec) | |
1929 } | 1950 } |
1930 | 1951 |
1931 dnl Check for a valid linux/version.h | 1952 dnl Check for a valid linux/version.h |
1932 CheckLinuxVersion() | 1953 CheckLinuxVersion() |
1933 { | 1954 { |