From: Stefan v. d. W. <st...@su...> - 2005-04-13 21:57:49
|
On Wed, Apr 13, 2005 at 03:16:47PM -0600, Dmitri A. Sergatskov wrote: > Stefan van der Walt wrote: > > > > >I think that Debian (and some other distros) modify the path to > >pcre.h. I notice now that there is a `pcre-config' available. Maybe > >we should rather use that to determine compiler flags. > > > > Yes we can use that: > > [dima@localhost ~]$ pcre-config --cflags > -I/usr/include/pcre > > But it also means that actual source files should also have ugliness like > > #ifdef __HAVE_PCRE__ > #include <pcre.h> > #elsif __HAVE_PCRE_PCRE__ > #include <pcre/pcre.h> This shouldn't be necessary if we specify -I/usr/lib/pcre Regards Stefan |