porting to automake