I am trying to run configure for a GNU project on plan9.
yes I know, but stay with me...
it mostly works but part of the configure script fails where it runs
awk over a header file and uses a rather sill RE to find all defines/undefines.
/^[\t ]*#[\t ]*(define|undef)[\t
]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t
(]|$)// { print; }
For some reasone they don't like character class ranges, and if I
replaces the lists with ranges the RE works as I expect,
/^[\t ]*#[\t ]*(define|undef)[\t ]+[_a-zA-Z][_a-zA-Z0-9]*([\t (]|$)/ { print; }
I looked at the awk source and even upped MAXRE - though its
existing value of 512 looks fine to me.
anyone any ideas why awk might not match with an RE like this?
-Steve