874 |
MPI= |
MPI= |
875 |
MPIPATH= |
MPIPATH= |
876 |
TS= |
TS= |
877 |
|
HAVE_TEST_L= |
878 |
|
|
879 |
# DEFINES checked by test compilation or command-line |
# DEFINES checked by test compilation or command-line |
880 |
HAVE_SYSTEM= |
HAVE_SYSTEM= |
1339 |
EOF |
EOF |
1340 |
exit 1 |
exit 1 |
1341 |
fi |
fi |
1342 |
|
test -L genmake_tlink > /dev/null 2>&1 |
1343 |
|
RETVAL=$? |
1344 |
|
if test "x$RETVAL" = x0 ; then |
1345 |
|
HAVE_TEST_L=t |
1346 |
|
fi |
1347 |
rm -f genmake_test_ln genmake_tlink |
rm -f genmake_test_ln genmake_tlink |
1348 |
|
|
1349 |
# Check for broken *.F/*.f handling and fix if possible |
# Check for broken *.F/*.f handling and fix if possible |
1926 |
for sf in $sfiles ; do |
for sf in $sfiles ; do |
1927 |
if test ! -r ".links.tmp/$sf" ; then |
if test ! -r ".links.tmp/$sf" ; then |
1928 |
if test -f "$d/$sf" ; then |
if test -f "$d/$sf" ; then |
1929 |
|
ignore_f=f |
1930 |
case $d/$sf in |
case $d/$sf in |
1931 |
./$PACKAGES_DOT_H) |
./$PACKAGES_DOT_H) |
1932 |
;; |
;; |
1937 |
./BUILD_INFO.h) |
./BUILD_INFO.h) |
1938 |
;; |
;; |
1939 |
*) |
*) |
1940 |
touch .links.tmp/$sf |
# For the local directory *ONLY*, |
1941 |
deplist="$deplist $sf" |
# ignore all soft-links |
1942 |
|
if test "x$HAVE_TEST_L" = xt -a "x$d" = x. -a -L $sf ; then |
1943 |
|
ignore_f=t |
1944 |
|
else |
1945 |
|
touch .links.tmp/$sf |
1946 |
|
deplist="$deplist $sf" |
1947 |
|
fi |
1948 |
;; |
;; |
1949 |
esac |
esac |
1950 |
extn=`echo $sf | $AWK -F. '{print $NF}'` |
if test "x$ignore_f" = xf ; then |
1951 |
case $extn in |
extn=`echo $sf | $AWK -F. '{print $NF}'` |
1952 |
F) |
case $extn in |
1953 |
echo " \\" >> srclist.inc |
F) |
1954 |
printf " $sf" >> srclist.inc |
echo " \\" >> srclist.inc |
1955 |
;; |
printf " $sf" >> srclist.inc |
1956 |
F90) |
;; |
1957 |
echo " \\" >> f90srclist.inc |
F90) |
1958 |
printf " $sf" >> f90srclist.inc |
echo " \\" >> f90srclist.inc |
1959 |
;; |
printf " $sf" >> f90srclist.inc |
1960 |
c) |
;; |
1961 |
echo " \\" >> csrclist.inc |
c) |
1962 |
printf " $sf" >> csrclist.inc |
echo " \\" >> csrclist.inc |
1963 |
;; |
printf " $sf" >> csrclist.inc |
1964 |
h) |
;; |
1965 |
echo " \\" >> hlist.inc |
h) |
1966 |
printf " $sf" >> hlist.inc |
echo " \\" >> hlist.inc |
1967 |
;; |
printf " $sf" >> hlist.inc |
1968 |
flow) |
;; |
1969 |
echo " \\" >> ad_flow_files.inc |
flow) |
1970 |
printf " $sf" >> ad_flow_files.inc |
echo " \\" >> ad_flow_files.inc |
1971 |
;; |
printf " $sf" >> ad_flow_files.inc |
1972 |
esac |
;; |
1973 |
|
esac |
1974 |
|
fi |
1975 |
fi |
fi |
1976 |
fi |
fi |
1977 |
done |
done |