[Libreoffice-commits] core.git: configure.ac
Fridrich Štrba
fridrich.strba at bluewin.ch
Tue Sep 12 11:38:09 UTC 2017
configure.ac | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 047b4c14ada038204a1e1280742960db00a5d1f2
Author: Fridrich Štrba <fridrich.strba at bluewin.ch>
Date: Tue Sep 12 10:32:26 2017 +0200
Detect libjawt automatically on java9 too
Change-Id: Ie8eb53a915682b7a188b1af4b2d435eb0cc9ff81
diff --git a/configure.ac b/configure.ac
index f616afef856e..4cd1700088d5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7000,7 +7000,12 @@ then
my_java_arch=$host_cpu
;;
esac
- JAWTLIB="-L$JAVA_HOME/jre/lib/$my_java_arch -ljawt"
+ # This is where JDK9 puts the library
+ if test -e "$JAVA_HOME/lib/libjawt.so"; then
+ JAWTLIB="-L$JAVA_HOME/lib/ -ljawt"
+ else
+ JAWTLIB="-L$JAVA_HOME/jre/lib/$my_java_arch -ljawt"
+ fi
AS_IF([test "$JAVA_ARCH" != ""], [AC_DEFINE_UNQUOTED([JAVA_ARCH], ["$JAVA_ARCH"])])
fi
AC_MSG_RESULT([$JAWTLIB])
More information about the Libreoffice-commits
mailing list