David Pointon wrote: > AFAICT, the problem stems from a generated shell function called > ac_fn_cxx_try_link
Sure, but that function depends on the appropriate -L, -I, -l, etc. options being set appropriately for your system, and if those options are messed up than that function won't work. It appears that the options are messed up somehow. Most likely it's OpenJDK since we aren't observing the problem with other packages that use Autoconf. It's of course possible that it is an Autoconf bug but we'll need someone to debug the script in question to determine that, and most likely that'll have to be someone with OpenJDK build expertise.