configure.ac: Replace HAVE_LIBRARY with AC_CHECK_LIB
AC_CHECK_LIB
was introduced in autoconf 2.0 (1994) to replace HAVE_LIBRARY
Clears autoconf warnings of:
configure.ac:108: warning: The macro `AC_HAVE_LIBRARY' is obsolete.
configure.ac:108: You should run autoupdate.
./lib/autoconf/libs.m4:138: AC_HAVE_LIBRARY is expanded from...
configure.ac:108: the top level