There's an autoconf macro for this in the Debian `libltdl-dev' package,
though not in the main `libtool' package.
I think some BSDs are foolish enough to put `_' on symbols even though
they notionally use ELF. This may not be enough to make things work on
them, but it should at least help a bit.