the #include <pcre.h>, is not <pcre/pcre.h>,
adding -I/usr/include/pcre or something else to the build-wide CFLAGS is ugly.
Should we use the pcre-config to find out the flags in different systems in a more general way.
CentOS 4.6 : /usr/include/pcre/pcre.h.
CentOS 5.2 : /usr/include/pcre.h
openBSD : I don't have one to verify.
fix libpcre include and library paths by using pcre-config
found the same problem in dialplan also. Same trick can be done in that module Makefile.
Hi Jinke,
thank you for the patch. I've added them with some small extensions to the sr git master branch. I changed the dialplan (and the lcr) module also, as you suggested.
Henning