Recent releases of Ubuntu and Debian have switched to using --as-needed as default when linking binaries.
As a result the AC_COMPUTE_NEEDED_DSO fails to find the required DSO names during execution of configure resulting in a build failure.
Explicitly using "
Wl,-no-as-needed" in this macro when required resolves this issue.
See http://wiki.debian.org/ToolChain/DSOLinking for a few more details