Replace AC_CHECK_LIB with AC_SEARCH_LIBS in configure.ac