[PATCH]: Fix configure.ac to allow linking against PCRE on Cygwin

Tim Rice tim at multitalents.net
Tue Nov 27 12:26:03 EST 2001


Commited.

Thanks.

On Mon, 26 Nov 2001, Corinna Vinschen wrote:

> On Sat, Nov 24, 2001 at 01:07:46PM +0100, Corinna Vinschen wrote:
> > On Fri, Nov 23, 2001 at 06:24:38PM -0800, Tim Rice wrote:
> > > Yes, The more I think about it the more I don't like my fix.
> > > Corinna, can you track down where ssh is failing with the libc regex
> > > and write a small test program to test this?
> > 
> > Testing for regfree() or regex.h would be sufficient.  The old V8
> > implementation doesn't have regfree() and the header is regexp.h.
> 
> Aaargh!  Somebody added a regfree stub into Cygwin back in 1997 and
> now we're stuck with that way.  We could remove it from current Cygwin
> sources but that wouldn't help for older Cygwin versions, apparently.
> 
> However, I think the following solution would help.  It tests for
> regcomp() first and if regcomp() is available, it tests additionally
> for regsub() which is not defined in POSIX regex but in V8 regex.
> If regsub() is available, it assumes that the libc version is not
> usable and doesn't define HAVE_REGCOMP.
> 
> Then, if HAVE_REGCOMP isn't defined, it checks for regcomp() in
> libregex and if that's also not available it eventually  checks
> for libpcre.
> 
> Is that ok?
> 
> Corinna
> 
[patch snipped]

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net




More information about the openssh-unix-dev mailing list