--- a/make/autoconf/basics.m4 Thu Aug 31 08:45:18 2017 +0200
+++ b/make/autoconf/basics.m4 Fri Oct 20 13:10:35 2017 +0200
@@ -1160,7 +1160,15 @@
$2
fi
else
- if $DF -l $1 > /dev/null 2>&1; then
+ # JDK-8189619
+ # df on AIX does not understand -l. On modern AIXes it understands "-T local" which
+ # is the same. On older AIXes we just continue to live with a "not local build" warning.
+ if test "x$OPENJDK_TARGET_OS" = xaix; then
+ DF_LOCAL_ONLY_OPTION='-T local'
+ else
+ DF_LOCAL_ONLY_OPTION='-l'
+ fi
+ if $DF $DF_LOCAL_ONLY_OPTION $1 > /dev/null 2>&1; then
$2
else
$3