diff -r 5ca768410aba -r 2ea1262921e0 common/autoconf/basics.m4 --- a/common/autoconf/basics.m4 Wed Aug 27 11:19:01 2014 +0200 +++ b/common/autoconf/basics.m4 Fri Aug 29 12:02:20 2014 +0200 @@ -849,7 +849,12 @@ if test -f $DELETEDIR/TestIfFindSupportsDelete; then # No, it does not. rm $DELETEDIR/TestIfFindSupportsDelete - FIND_DELETE="-exec rm \{\} \+" + if test "x$OPENJDK_TARGET_OS" = "xaix"; then + # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list + FIND_DELETE="-print | xargs rm" + else + FIND_DELETE="-exec rm \{\} \+" + fi AC_MSG_RESULT([no]) else AC_MSG_RESULT([yes])