When trying to use lighttpd mod_rewrite and/or mod_redirect, they complain about missing pcre support (even though pcre is installed).
The problem is that the lighttpd configure script doesn't define HAVE_PCRE_H (which is checked for in src/mod_rewrite.c).
The culprit in the source is
if test "x$cross_compiling" = xno; then
[ ... check for PCRE ... ]
fi
In short, "Check for PCRE only if we aren't crosscompiling; if we are, we don't have it."
The PCRE_LIB= setting in the ipkg makefile isn't sufficient because it does't set HAVE_PCRE_H, which is checked for in the source.
A quick (and crude but effective ) hack would be adding
AC_DEFINE([HAVE_PCRE_H], [1], [Use PCRE])
AC_DEFINE([HAVE_LIBPCRE], [1], [Use PCRE])
to lighttpd's configure.in.
While at it, lighttpd 1.4.2 is out w/ loads of bugfixes, the package should probably be updated.
I've uploaded a patch to current OpenWRT CVS (doing both the fix and update) is to http://www.arklinux.org/~bero/openwrt-lighttpd.patch
(Last edited by bero on 31 Aug 2005, 16:26)