Add support for newer automake's.
Add support for newer automake's.

Patch provided by facebook, attribution is to one or more of:
Marc, Steve, Haiping Zhao, and Paul Saab, Steven Grimm, etc.

adamdeprince/flashcached,adamdeprince/flashcached,adamdeprince/flashcached