m4: update autoconf macros

This fixes configure for autoconf 2.69