configure: Add checks for fnmatch support.