834 |
if test "x$LINK" = x ; then |
if test "x$LINK" = x ; then |
835 |
LINK=$FC |
LINK=$FC |
836 |
fi |
fi |
|
if test "x$CPP" = x ; then |
|
|
CPP="cpp" |
|
|
fi |
|
837 |
if test "x$MAKE" = x ; then |
if test "x$MAKE" = x ; then |
838 |
MAKE="make" |
MAKE="make" |
839 |
fi |
fi |
840 |
|
if test "x$CPP" = x ; then |
841 |
|
CPP=cpp |
842 |
|
fi |
843 |
|
#EH3 === UGLY === |
844 |
|
# The following an ugly little hack to check for $CPP in /lib/ and it |
845 |
|
# should eventually be replaced with a more general function that |
846 |
|
# searches a combo of the user's path and a list of "usual suspects" |
847 |
|
# to find the correct location for binaries such as $CPP. |
848 |
|
for i in " " "/lib/" ; do |
849 |
|
echo "#define A a" | $i$CPP > test_cpp 2>&1 && CPP=$i$CPP |
850 |
|
done |
851 |
|
#EH3 === UGLY === |
852 |
echo "#define A a" | $CPP > test_cpp 2>&1 |
echo "#define A a" | $CPP > test_cpp 2>&1 |
853 |
RETVAL=$? |
RETVAL=$? |
854 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |