The GNU M4 Manual gives lots of simple examples. Reading the two (very short) sections http://www.gnu.org/software/m4/manual/m4.html#Ifdef and http://www.gnu.org/software/m4/manual/m4.html#Include, you can do something like this:
define(`foo',1) ifdef(`foo',include(`foo.m4')) But it's really hard to sway the "don't like" argument -- I don't like beef liver and nothing you say will change my mind. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Brett Nemeroff Sent: Wednesday, April 11, 2012 10:54 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] RFC: text pre-processing in OpenSIPS cfg file On Wed, Apr 11, 2012 at 10:41 AM, Bogdan-Andrei Iancu <[email protected]> wrote: > Well, it is not only about personal preferences and how is nicer, etc...you > should consider also the required work to do - at the end somebody has to > implement this. And my questions is: considering that the development > resources are limited, does it make sense to invest them in just creating an > alternative to something already existing ? > I honestly didn't like using M4. And it's not an opensips thing, it's an M4 thing. I just don't like M4. I'm sure it can be attributed to me not really knowing it, but I found that I couldn't really do what I wanted with it without some sort of hacking. I wanted to do conditional includes and such. Maybe all I needed was some good examples. Is there anyway to build m4 into the opensips pre-processor? so opensips can just run the m4 file? -Brett _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
