[Groonga-commit] groonga/groonga at ec2cec4 [master] Revert "groonga-httpd: use pcre related code when pcre library is enabled"

Zurück zum Archiv-Index

Kentaro Hayashi null+****@clear*****
Thu Sep 29 00:47:23 JST 2016


Kentaro Hayashi	2016-09-29 00:47:23 +0900 (Thu, 29 Sep 2016)

  New Revision: ec2cec40efa7aaf6d306c875e2fafd04186438a2
  https://github.com/groonga/groonga/commit/ec2cec40efa7aaf6d306c875e2fafd04186438a2

  Message:
    Revert "groonga-httpd: use pcre related code when pcre library is enabled"
    
    This reverts commit 1062efafb5993b8294cd63174132c1cefda27eaf.
    
    It is better to use predefined NGX_PCRE.

  Modified files:
    src/httpd/nginx-module/config
    src/httpd/nginx-module/ngx_http_groonga_module.c

  Modified: src/httpd/nginx-module/config (+0 -3)
===================================================================
--- src/httpd/nginx-module/config    2016-09-29 00:21:25 +0900 (7ceb128)
+++ src/httpd/nginx-module/config    2016-09-29 00:47:23 +0900 (b79eef6)
@@ -10,9 +10,6 @@ if [ "$GROONGA_HTTPD_IN_TREE" = yes ]; then
   groonga_cflags="-I${GROONGA_HTTPD_IN_TREE_INCLUDE_PATH}"
   groonga_cflags="${groonga_cflags} -DNGX_HTTP_GROONGA_LOG_PATH=\\\"\"${GROONGA_HTTPD_GROONGA_LOG_PATH}\"\\\""
   groonga_cflags="${groonga_cflags} -DNGX_HTTP_GROONGA_QUERY_LOG_PATH=\\\"\"${GROONGA_HTTPD_GROONGA_QUERY_LOG_PATH}\"\\\""
-  if [ "${GROONGA_HTTPD_WITH_PCRE}" = "yes" ]; then
-    groonga_cflags="${groonga_cflags} -DNGX_GRN_SUPPORT_PCRE"
-  fi
   groonga_libs="-L${GROONGA_HTTPD_IN_TREE_LINK_PATH}"
   if [ "${GROONGA_HTTPD_WITH_ONIGMO}" = "yes" ]; then
   groonga_libs="$groonga_libs -L${GROONGA_HTTPD_ONIGMO_IN_TREE_LINK_PATH}"

  Modified: src/httpd/nginx-module/ngx_http_groonga_module.c (+0 -2)
===================================================================
--- src/httpd/nginx-module/ngx_http_groonga_module.c    2016-09-29 00:21:25 +0900 (4c6e6d0)
+++ src/httpd/nginx-module/ngx_http_groonga_module.c    2016-09-29 00:47:23 +0900 (20a739e)
@@ -1330,7 +1330,6 @@ ngx_http_groonga_each_loc_conf(ngx_http_conf_ctx_t *http_conf,
                                            callback,
                                            user_data);
 
-#ifdef NGX_GRN_SUPPORT_PCRE
     if (location_conf->regex_locations) {
       ngx_uint_t j;
       for (j = 0; location_conf->regex_locations[j]; j++) {
@@ -1343,7 +1342,6 @@ ngx_http_groonga_each_loc_conf(ngx_http_conf_ctx_t *http_conf,
         }
       }
     }
-#endif
   }
 }
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index