22 |
|
|
23 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
24 |
# No need for IEEE-754 |
# No need for IEEE-754 |
25 |
FFLAGS='-Wimplicit -Wunused -Wuninitialized' |
# "warning: -Wuninitialized is not supported without -O" |
26 |
|
FFLAGS='-Wunused' |
27 |
FOPTIM='-O3 -malign-double -funroll-loops' |
FOPTIM='-O3 -malign-double -funroll-loops' |
28 |
else |
else |
29 |
# Try to follow IEEE-754 |
# Try to follow IEEE-754 |
30 |
has_sse2=f |
has_sse2=f |
31 |
grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1 && has_sse2=t |
grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1 && has_sse2=t |
32 |
if test "x$has_sse2" = xt ; then |
if test "x$has_sse2" = xt ; then |
33 |
FFLAGS='-Wimplicit -Wunused -mfpmath=sse -msse -msse2' |
FFLAGS='-Wunused -mfpmath=sse -msse -msse2' |
34 |
else |
else |
35 |
FFLAGS='-Wimplicit -Wunused -ffloat-store' |
FFLAGS='-Wunused -ffloat-store' |
36 |
fi |
fi |
37 |
# echo 'FFLAGS="'$FFLAGS'"' |
# echo 'FFLAGS="'$FFLAGS'"' |
38 |
FOPTIM='-O0 -malign-double' |
FOPTIM='-O0 -malign-double' |