Affects Version/s: 0.12.0
Fix Version/s: None
Component/s: Build Process
While configuring thrift-0.12.0 on Red Hat Linux and targeting Java and Perl, I used --prefix and defined $JAVA_PREFIX and $PERL_PREFIX in order to control where Thrift is installed. Both --prefix and $PERL_PREFIX worked as intended. However, setting $JAVA_PREFIX resulted in $JAVA_PREFIX/usr/local/lib. This is because of the following code in the configure script:
if test "x$JAVA_PREFIX" != x; then :
elif test "x$PREFIX" != x; then :
I believe the above code should be replaced with one that sets $JAVA_PREFIX to /usr/local/lib only if it is not defined.