9 |
# |
# |
10 |
|
|
11 |
FC=g77 |
FC=g77 |
12 |
|
CC=gcc34 |
13 |
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_EXTENDED_F77' |
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_EXTENDED_F77' |
14 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
15 |
NOOPTFLAGS='-O0' |
NOOPTFLAGS='-O0' |
45 |
LIBS='-L/usr/lib/netcdf-3' |
LIBS='-L/usr/lib/netcdf-3' |
46 |
fi |
fi |
47 |
fi |
fi |
48 |
elif test -d /usr/include/netcdf ; then |
elif test -d /usr/include/netcdf -o -f /usr/include/netcdf.h ; then |
49 |
#-- allows a "compat"(gcc 3.4) 2nd version of libs for g77 , next to the |
#-- allows a "compat"(gcc 3.4) 2nd version of libs for g77 , next to the |
50 |
# standard one (for gfortran, gcc 4.x). But uses same include files. |
# standard one (for gfortran, gcc 4.x). But uses same include files. |
51 |
INCLUDES='-I/usr/include/netcdf' |
if test -d /usr/include/netcdf ; then |
52 |
|
INCLUDES='-I/usr/include/netcdf' |
53 |
|
fi |
54 |
if test -d /usr/lib64/netcdf34 ; then |
if test -d /usr/lib64/netcdf34 ; then |
55 |
if test -f /usr/lib64/netcdf34/libnetcdf_g77.a ; then |
if test -f /usr/lib64/netcdf34/libnetcdf_g77.a ; then |
56 |
LIBS='-L/usr/lib64/netcdf34 -lnetcdf_g77' |
LIBS='-L/usr/lib64/netcdf34 -lnetcdf_g77' |