From: Dmitri A. S. <das...@gm...> - 2005-04-13 21:16:55
|
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> ... It also appears that RH is switching back to normal location (at least pcre package from development tree has headers in /usr/include). So may be we just leave it as it is, perhaps add a warning that pcre.h should be symlinked to a standard location? > Regards > Stefan > Dmitri. -- |