diff options
Diffstat (limited to 'auto')
| -rw-r--r-- | auto/lib/conf | 5 | ||||
| -rw-r--r-- | auto/sources | 7 | ||||
| -rw-r--r-- | auto/summary | 6 | ||||
| -rwxr-xr-x | auto/unix | 6 |
4 files changed, 21 insertions, 3 deletions
diff --git a/auto/lib/conf b/auto/lib/conf index b5271a225..0739a72d4 100644 --- a/auto/lib/conf +++ b/auto/lib/conf @@ -2,12 +2,15 @@ if [ $PCRE != NO ]; then CORE_INCS="$CORE_INCS -I $PCRE" + CORE_DEPS="$CORE_DEPS $REGEX_DEPS" + CORE_SRCS="$CORE_SRCS $REGEX_SRCS" if [ "$PLATFORM" = "win32" ]; then - CFLAGS="$CFLAGS -D PCRE_STATIC" + CFLAGS="$CFLAGS -D PCRE_STATIC -D HAVE_PCRE=1" CORE_LIBS="$CORE_LIBS pcre.lib" CORE_LINK="$CORE_LINK -libpath:$PCRE" else + CFLAGS="$CFLAGS -D HAVE_PCRE=1" CORE_DEPS="$CORE_DEPS $PCRE/.libs/libpcre.a" CORE_LIBS="$CORE_LIBS -L $PCRE/.libs -lpcre" fi diff --git a/auto/sources b/auto/sources index 1e8790fd9..b2eec4426 100644 --- a/auto/sources +++ b/auto/sources @@ -5,6 +5,7 @@ CORE_INCS="-I src/core" CORE_DEPS="src/core/nginx.h \ src/core/ngx_config.h \ + src/core/ngx_atomic.h \ src/core/ngx_log.h \ src/core/ngx_alloc.h \ src/core/ngx_array.h \ @@ -15,7 +16,6 @@ CORE_DEPS="src/core/nginx.h \ src/core/ngx_inet.h \ src/core/ngx_file.h \ src/core/ngx_crc.h \ - src/core/ngx_regex.h \ src/core/ngx_rbtree.h \ src/core/ngx_times.h \ src/core/ngx_connection.h \ @@ -32,13 +32,16 @@ CORE_SRCS="src/core/nginx.c \ src/core/ngx_parse.c \ src/core/ngx_inet.c \ src/core/ngx_file.c \ - src/core/ngx_regex.c \ src/core/ngx_rbtree.c \ src/core/ngx_times.c \ src/core/ngx_conf_file.c \ src/core/ngx_garbage_collector.c" +REGEX_DEPS="src/core/ngx_regex.h" +REGEX_SRCS="src/core/ngx_regex.c" + + EVENT_MODULES="ngx_events_module ngx_event_core_module" EVENT_INCS="-I src/event -I src/event/modules" diff --git a/auto/summary b/auto/summary index 19afd04b1..28fe5f5d5 100644 --- a/auto/summary +++ b/auto/summary @@ -2,6 +2,12 @@ echo echo "Configuration summary" +case $PCRE in + YES) echo " + using system PCRE library" ;; + NO) echo " + PCRE library is not found" ;; + *) echo " + using PCRE library: $PCRE" ;; +esac + case $MD5 in YES) echo " + using system md5 library" ;; NO) echo " + md5 library is not found" ;; @@ -83,6 +83,12 @@ n = pwrite(1, buf, 1, 0)" . auto/func +ngx_func="strsignal()" +ngx_func_inc="#include <string.h>" +ngx_func_test="char *s = strsignal(1)" +. auto/func + + ngx_func="strerror_r()" ngx_func_inc="#include <string.h>" ngx_func_test="char buf[20]; strerror_r(1, buf, 20)" |
