Make configure.ac check for a library function that we actually use.