aclocal.m4: add support for versioned darwin triplets

Authored by trofi on Jun 1 2017, 4:30 PM.