Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: location of pcre.h



Borsenkow Andrej (Andrej.Borsenkow@xxxxxxxxxxxxxx) wrote:
> Do they have anything else in /usr/include/pcre? Else I'd call this broken
> (yet another thing in 7.0).

Yes, pcreposix.h is also there.

> Obvious fix is to check for both pcre.h and pcre/pcre.h and take whatever
> exists
> 
> #ifdef HAVE_PCRE_H
> #include <pcre.h>
> #else
> #ifdef HAVE_PCRE_PCRE_H - ick!
> #include <pcre/pcre.h>
> #else
> #error pcre not found
> #endif
> #endif

Yep.  Presumably this needs some autoconf wizardry to set
HAVE_PCRE_PCRE_H in the first place, which is where I get lost ...

> Additionally, pcre should be compiled conditionally only if prerequisites
> are found (compare termcap.mdd or terminfo.mdd).

There must be a bug in that too then, because I get

  checking for pcre.h... no



Messages sorted by: Reverse Date, Date, Thread, Author