m4-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PCRE regex syntax


From: Daniel Richard G.
Subject: Re: PCRE regex syntax
Date: Sat, 5 May 2007 16:35:37 -0400

On Sat, 2007 May 05 07:33:22 -0600, Eric Blake wrote:
> 
> Is there a GPL or LGPL implementation of PCRE available for inclusion?  Is
> PCRE already available as an installed library (preferably libtool-ized)?

PCRE is distributed under a three-clause BSD license, and so should be 
compatible on that account. Most Linux systems (at least) should have the 
library installed, as many, many programs use it.

Re libtool support, PCRE's build system has been using it for some time, 
but only recently to the extent of installing the *.la files. IIRC, version 
7.1 and beyond.

> It would have to be a module; Gary already argued against my proposal for
> sucking in even regular regex to the base m4 binary to implement
> - --warn-macro-sequence for m4 1.9+ (still on my list of things to do; I've
> been distracted by other tasks lately, such as getting printf and fflush
> to work in a POSIX-compliant manner).
>
> > (I suspect that the manner in which the third-party dependency is handled 
> > is of greater concern than the actual implementation/integration.)
> 
> It would be similar to how the third-party gmp library is handled for the
> mpeval module.

Sounds reasonable. (Although you'd probably get a lot of mileage adding 
optional PCRE support directly into gnulib....)

Adding the necessary hooks looks like a non-trivial task, however (esp. as 
far as making the set of available RE syntaxes dynamic), so that'll 
probably have to wait for everyone's undivided attention.


--Daniel


-- 
NAME   = Daniel Richard G.       ##  Remember, skunks       _\|/_  meef?
EMAIL1 = address@hidden        ##  don't smell bad---    (/o|o\) /
EMAIL2 = address@hidden      ##  it's the people who   < (^),>
WWW    = http://www.******.org/  ##  annoy them that do!    /   \
--
(****** = site not yet online)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]