m4 from base is able to do the job, if properly wrapped to mimic GNU m4 Differential Revision: https://reviews.freebsd.org/D21835
m4 from base is able to do the job, if properly wrapped to mimic GNU m4 Differential Revision: https://reviews.freebsd.org/D21835