S="${WORKDIR}/${MY_P}"
has_xop() {
echo | $(tc-getCC) ${CFLAGS} -E -dM - | grep -q "#define __XOP__ 1"
}
has_avx() {
echo | $(tc-getCC) ${CFLAGS} -E -dM - | grep -q "#define __AVX__ 1"
get_target() {
if use alpha; then
echo "linux-alpha"
elif use amd64; then
echo "linux-x86-64"
if has_xop; then
echo "linux-x86-64-xop"
elif has_avx; then
echo "linux-x86-64-avx"
else
fi
elif use ppc; then
#if use altivec; then
# echo "linux-ppc32-altivec"
elif use sparc; then
echo "linux-sparc"
elif use x86; then
if use sse2; then
echo "linux-x86-xop"
echo "linux-x86-avx"
elif use sse2; then
echo "linux-x86-sse2"
elif use mmx; then
echo "linux-x86-mmx"