configure: Use AC_PATH_PROG{,S} for external programs used by the library.