17 |
FOPTIM='-O3 -malign-double -funroll-loops' |
FOPTIM='-O3 -malign-double -funroll-loops' |
18 |
else |
else |
19 |
# Try to follow IEEE-754 |
# Try to follow IEEE-754 |
20 |
FFLAGS='-Wimplicit -Wunused -ffloat-store' |
has_sse2=f |
21 |
|
grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1 && has_sse2=t |
22 |
|
if test "x$has_sse2" = xt ; then |
23 |
|
FFLAGS='-Wimplicit -Wunused -mfpmath=sse -msse -msse2' |
24 |
|
else |
25 |
|
FFLAGS='-Wimplicit -Wunused -ffloat-store' |
26 |
|
fi |
27 |
|
# echo 'FFLAGS="'$FFLAGS'"' |
28 |
FOPTIM='-O0 -malign-double' |
FOPTIM='-O0 -malign-double' |
29 |
fi |
fi |
30 |
|
|
31 |
|
if test -d /usr/include/netcdf-3 ; then |
32 |
|
INCLUDES='-I/usr/include/netcdf-3' |
33 |
|
LIBS='-L/usr/lib/netcdf-3' |
34 |
|
elif test -d /usr/include/netcdf ; then |
35 |
|
INCLUDES='-I/usr/include/netcdf' |
36 |
|
fi |
37 |
|
|