Welcome! Log In Create A New Profile

Advanced

[PATCH] Fix PCRE detection on OSX.

Piotr Sikora
December 07, 2012 03:26PM
Fix PCRE detection on OSX.

OSX ships with PCRE library in /usr, but without headers for it.

OSX default search paths includes both /usr and /usr/local, which
results in library (from /usr) and headers (from /usr/include)
mismatch when PCRE is installed via Homebrew and we try to compile
nginx without "-L/usr/local" parameter.

The solution is to skip the detection using default search paths
on OSX and let ./configure script detect PCRE installed in /usr/local
or other common prefixes.

Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
---
auto/lib/pcre/conf | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/auto/lib/pcre/conf b/auto/lib/pcre/conf
index 6a8c326..bc3bc56 100644
--- a/auto/lib/pcre/conf
+++ b/auto/lib/pcre/conf
@@ -101,7 +101,12 @@ else
ngx_feature_test="pcre *re;
re = pcre_compile(NULL, 0, NULL, 0, NULL);
if (re == NULL) return 1"
- . auto/feature
+
+ if [ "$NGX_SYSTEM" = "Darwin" ]; then
+ ngx_found=no
+ else
+ . auto/feature
+ fi

if [ $ngx_found = no ]; then

--
1.8.0.1

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Fix PCRE detection on OSX.

Piotr Sikora 1100 December 07, 2012 03:26PM

Re: [PATCH] Fix PCRE detection on OSX.

Ruslan Ermilov 437 December 07, 2012 05:22PM

Re: [PATCH] Fix PCRE detection on OSX.

Piotr Sikora 408 December 07, 2012 05:54PM

Re: [PATCH] Fix PCRE detection on OSX.

Tom van der Woerdt 497 December 07, 2012 06:06PM

Re: [PATCH] Fix PCRE detection on OSX.

Piotr Sikora 456 December 07, 2012 06:16PM

Re: [PATCH] Fix PCRE detection on OSX.

Ruslan Ermilov 416 December 08, 2012 12:26AM

Re: [PATCH] Fix PCRE detection on OSX.

Matthieu Tourne 423 December 08, 2012 01:34AM

Re: [PATCH] Fix PCRE detection on OSX.

Piotr Sikora 414 December 08, 2012 02:02AM

Re: [PATCH] Fix PCRE detection on OSX.

Maxim Dounin 755 December 09, 2012 09:38PM

Re: [PATCH] Fix PCRE detection on OSX.

Ruslan Ermilov 573 December 10, 2012 05:32AM

Re: [PATCH] Fix PCRE detection on OSX.

Maxim Dounin 456 December 10, 2012 09:52AM

Re: [PATCH] Fix PCRE detection on OSX.

Ruslan Ermilov 442 December 10, 2012 10:08AM

Re: [PATCH] Fix PCRE detection on OSX.

Piotr Sikora 424 December 11, 2012 03:20AM

Re: [PATCH] Fix PCRE detection on OSX.

Maxim Dounin 547 December 12, 2012 06:06AM

Re: [PATCH] Fix PCRE detection on OSX.

Matthieu Tourne 413 December 07, 2012 06:02PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 166
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready