configure: Add function to check for particular function in header