From mboxrd@z Thu Jan 1 00:00:00 1970 From: DJ Delorie To: obrien@FreeBSD.org Cc: jjohnstn@redhat.com, gcc-patches@gcc.gnu.org, binutils@sources.redhat.com, gdb@sources.redhat.com Subject: Re: libibery regex Date: Wed, 11 Jul 2001 08:35:00 -0000 Message-id: <200107111534.LAA17720@greed.delorie.com> References: <200107091924.PAA15845@greed.delorie.com> <3B4B2F4C.257185A8@cygnus.com> <200107101645.MAA08773@greed.delorie.com> <3B4B4E2F.3DEFD9E7@cygnus.com> <200107110022.UAA30714@greed.delorie.com> <20010710213513.A3359@dragon.nuxi.com> X-SW-Source: 2001-07/msg00092.html > I don't quite understand the need of this. What is wrong with using > native regex libs (if they exist). This makes it sound like this > version would always be used -- adding to code bloat. The problem is that libiberty can't conditionally provide the right regex header based on what it determines about the host regex. Programs which use will NOT use libiberty's regex. Programs that use "xregex.h" will ALWAYS use libiberty's regex, which is always the "latest" GNU regex. If your package can reliably detect if the host regex is acceptable, then use that conditional to select between regex.h and xregex.h and you'll get what you want. However, many projects include a complete local copy of GNU regex and use that. This patch at least collects those to one location and keeps it up to date (there are at least two or three places, I think). We want to get rid of those local copies.