View | Details | Raw Unified
Collapse All | Expand All

(-) R-2.7.2/src/scripts/javareconf (-9 / +13 lines)
 Lines 125-140    Link Here 
javac_works='not present'
javac_works='not present'
if test -n "$JAVAC"; then
if test -n "$JAVAC"; then
    javac_works='not functional'
    javac_works='not functional'
    rm -rf /tmp/A.java /tmp/A.class
    # edd 25 Aug 2008  use mktemp -t -d
    echo "public class A { }" > /tmp/A.java
    #rm -rf /tmp/A.java /tmp/A.class
    if test -e /tmp/A.java; then
    if jctmpdir=`mktemp -t -d`; then
	if "${JAVAC}" /tmp/A.java >/dev/null; then
      echo "public class A { }" > ${jctmpdir}/A.java
	    if test -e /tmp/A.class; then
      if test -e ${jctmpdir}/A.java; then
		javac_works=yes
        if "${JAVAC}" ${jctmpdir}/A.java >/dev/null; then
	    fi
          if test -e ${jctmpdir}/A.class; then
	fi
            javac_works=yes
          fi
        fi
      fi
    fi
    fi
    rm -rf /tmp/A.java /tmp/A.class
    # rm -rf /tmp/A.java /tmp/A.class
    rm -rf ${jctmpdir}
fi
fi
if test "${javac_works}" = yes; then
if test "${javac_works}" = yes; then
    echo "Java compiler    : ${JAVAC}"
    echo "Java compiler    : ${JAVAC}"