Fix --with-javaport=no in configure.

Signed-off-by: Justin Too <doubleotoo@gmail.com>
Merge commit '70ab9e2b704665d4f88361084fb604f010a1b593' into HEAD