Re: [Flex-devel] Is GNU m4 really needed?
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Isaac D. <id...@la...> - 2012-03-02 02:17:36
|
On Fri, 24 Feb 2012 14:44:57 +0000 Tim Landscheidt <ti...@ti...> wrote: > I replaced the test for GNU M4 with a feature test for "m4 > -P" in the attached patch. Could you try it out on NetBSD? > (You will have to regenerate "configure" with "autoconf".) It builds with NetBSD m4, if autotools is absent (or non-executable!) If autotools is installed, autom4te will die because of the missing GNU M4. What I did that worked: #gm4 is GNU m4 #m4 is netbsd m4 patch autoconf #requires gm4 chmod -x /usr/bin/pkg/gm4 #simulate no GNU m4 #autotools needs GNU m4, and "missing" doesn't check beforehand #This scenario wouldn't happen without tinkering. chmod -x /usr/pkg/bin/auto* /configure make The steps up to chmod -x roughly correspond to creating a release; those afterwards correspond to building from the tarball. So yes, it works for all sane configurations; it fails when you -install GNU M4 -then install autotools -then remove gnu m4 (breaks autotools) -- Isaac Dunham <id...@la...> |