summaryrefslogtreecommitdiffhomepage
path: root/auto (follow)
AgeCommit message (Collapse)AuthorFilesLines
2016-10-04Configure: removed the --with-ipv6 option.Maxim Dounin4-31/+27
IPv6 now compiled-in automatically if support is found. If there is a need to disable it for some reason, --with-cc-opt="-DNGX_HAVE_INET6=0" can be used for this.
2016-10-03Modules compatibility: --with-compat configure option.Maxim Dounin2-0/+18
2016-09-20Perl: pass additional linker options to perl module.Konstantin Pavlov3-1/+5
Previously flags passed by --with-ld-opt were not used when building perl module, which meant hardening flags provided by package build systems were not applied.
2016-09-15Stream: ssl_preread module.Vladimir Homutov2-0/+14
The ssl_preread module extracts information from the SSL Client Hello message without terminating SSL. Currently, only $ssl_preread_server_name variable is supported, which contains server name from the SNI extension.
2016-09-15Stream: filters.Roman Arutyunyan2-2/+5
2016-09-01Stream: realip module.Dmitry Volyntsev2-0/+13
2016-09-05Stream: log module.Vladimir Homutov1-0/+2
2016-07-15Events: support for EPOLLEXCLUSIVE.Valentin Bartenev2-0/+17
This flag appeared in Linux 4.5 and is useful for avoiding thundering herd problem. The current Linux kernel implementation walks the list of exclusive waiters, and queues an event to each epfd, until it finds the first waiter that has threads blocked on it via epoll_wait().
2016-07-12Stream: split_clients module.Vladimir Homutov2-0/+15
2016-06-30Stream: geo module.Vladimir Homutov2-0/+13
2016-07-12Stream: geoip module.Vladimir Homutov2-0/+16
2016-07-12Stream: individual build options for modules.Vladimir Homutov1-2/+16
2016-06-27Configure: stop polluting NGX_ namespace.Piotr Sikora2-4/+1
While there, fix the only test that used alternative variable name. Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2016-06-27Configure: fix build with -Werror=old-style-definition.Piotr Sikora7-7/+10
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2016-06-27Configure: fix build with -Werror=nonnull.Piotr Sikora1-1/+1
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2016-06-27Configure: fix build with -Werror=unused-but-set-variable.Piotr Sikora4-12/+17
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2016-06-27Configure: fix build with -Werror=unused-value.Piotr Sikora1-1/+1
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2016-06-27Configure: style.Piotr Sikora1-2/+2
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2015-10-23Configure: remove auto/lib/test, unused since nginx-0.1.2.Piotr Sikora1-40/+0
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2016-05-18Stream: return module.Roman Arutyunyan2-0/+11
2016-06-29Stream: map module.Vladimir Homutov2-0/+11
2016-07-04Stream: variables and script.Vladimir Homutov1-0/+4
This is a port of corresponding http code with unrelated features excluded.
2016-06-30Internal md5 and sha1 implementations are now always used.Maxim Dounin21-589/+39
This reduces the number of moving parts in ABI compatibility checks. Additionally, it also allows to use OpenSSL in FIPS mode while still using md5 for non-security tasks.
2016-06-20Set IP_BIND_ADDRESS_NO_PORT socket option for upstream sockets.Andrei Belov1-0/+13
2016-06-09An internal SHA1 implementation.Maxim Dounin1-0/+1
2016-06-07Configure: revised GCC version processing.Sergey Kandaurov1-7/+6
Now GCC 6 and onwards will use -Wno-unused-parameter.
2015-12-18Upstream: the "transparent" parameter of proxy_bind and friends.Roman Arutyunyan1-0/+38
This parameter lets binding the proxy connection to a non-local address. Upstream will see the connection as coming from that address. When used with $remote_addr, upstream will accept the connection from real client address. Example: proxy_bind $remote_addr transparent;
2016-04-07Fixed spelling.Josh Soref1-2/+2
2016-04-01Compatibility with FreeBSD 2.2.9.Maxim Dounin1-2/+3
Added (RTLD_NOW | RTLD_GLOBAL) to dlopen() test. There is no RTLD_GLOBAL on FreeBSD 2.2.9. Added uint32_t test, with fallback to u_int32_t, similar to uint64_t one. Added fallback to u_int32_t in in_addr_t test. With these changes it is now possible to compile nginx on FreeBSD 2.2.9 with only few minor warnings (assuming -Wno-error).
2016-04-01Configure: improved multiple types handling in auto/types/typedef.Maxim Dounin1-1/+5
2016-04-01Configure: fixed autotest source code logging.Maxim Dounin2-6/+9
Fixed a regression introduced in rev. 434548349838 that prevented auto/types/sizeof and auto/types/typedef properly reporting autotest source code to autoconf.err in case of test failure.
2016-03-31SSL: initialization changes for OpenSSL 1.1.0.Maxim Dounin1-1/+1
OPENSSL_config() deprecated in OpenSSL 1.1.0. Additionally, SSL_library_init(), SSL_load_error_strings() and OpenSSL_add_all_algorithms() are no longer available if OPENSSL_API_COMPAT is set to 0x10100000L. The OPENSSL_init_ssl() function is now used instead with appropriate arguments to trigger the same behaviour. The configure test changed to use SSL_CTX_set_options(). Deinitialization now happens automatically in OPENSSL_cleanup() called via atexit(3), so we no longer call EVP_cleanup() and ENGINE_cleanup() directly.
2016-01-20Stream: UDP proxy.Roman Arutyunyan3-2/+42
2016-03-10Configure: style.Ruslan Ermilov1-22/+22
Generate Makefile with not so long lines.
2016-03-10Dynamic modules: do not overwrite old modules on install.Maxim Dounin3-5/+16
Just using "cp" is incorrect, as it will overwrite old files possibly used by OS, leading to unexpected effects. Changed to "mv + cp", much like used for the main binary.
2016-03-10Configure: style.Ruslan Ermilov1-5/+5
Removed extraneous braces around shell variables.
2016-02-26Dynamic modules: perl.Ruslan Ermilov9-20/+39
2016-02-29Dynamic modules: expose the "modules" target.Ruslan Ermilov1-0/+3
2016-02-25Dynamic modules: make sure to call config.make for dynamic addons.Ruslan Ermilov1-2/+2
2016-02-19Configure: added "build" target.Maxim Dounin2-4/+5
The "build" target introduced to do all build-related tasks, and it is now used in Makefile and in objs/Makefile as a dependency for the "install" target. In particular, this resolves problems as observed with dynamic modules by people trying to do "make install" without calling "make" first.
2016-02-19Configure: skip building OpenSSL documentation to conserve time.Sergey Kandaurov1-1/+1
The install_sw target first appeared in OpenSSL 0.9.7e and is documented since OpenSSL 1.0.0 as the way to install the OpenSSL software without documentation.
2016-02-18Configure: fixed static nginx build with OpenSSL (ticket #903).Ruslan Ermilov2-7/+9
Before 7142b04337d6, it was possible to build the OpenSSL library along with nginx, and link nginx statically with this library (--with-openssl=DIR --with-ld-opt=-static --with-http_ssl_module). This was broken on Linux by not adding -ldl after -lcrypto. The fix also makes it possible to link nginx statically on Linux with the system OpenSSL library, which never worked before.
2016-02-13Win32: simplified and improved handling of MSVC versions.Maxim Dounin10-49/+41
Now we always set NGX_CC_NAME to "msvc", and additionally test compiler version as reported by "cl" in auto/cc/msvc (the same version is also available via the _MSC_VER define). In particular, this approach allows to properly check for C99 variadic macros support, which previously was not used with MSVC versions not explicitly recognized. Now unneeded wildcards in NGX_CC_NAME tests for msvc removed accordingly, as well as unused wildcards for owc and icc.
2016-02-11HTTP/2: implemented HPACK Huffman encoding for response headers.Valentin Bartenev1-0/+10
This reduces the size of headers by over 30% on average. Based on the patch by Vlad Krasnov: http://mailman.nginx.org/pipermail/nginx-devel/2015-December/007682.html
2016-02-10Dynamic modules: added auth_basic module libs via ngx_module_libs=.Ruslan Ermilov1-2/+1
2016-02-08Dynamic modules: NGX_STREAM define removed.Maxim Dounin1-2/+0
It's not used and contradicts the idea of dynamic loading.
2016-02-05Dynamic modules: added dlsym() to configure test.Valentin Bartenev1-1/+1
It appears that AddressSanitizer in GCC 5 intercepts dlopen() and dlclose() but not dlsym().
2016-02-05Dynamic modules: fixed a copy-n-paste error.Ruslan Ermilov1-1/+1
2016-02-04Dynamic modules.Maxim Dounin16-24/+483
The auto/module script is extended to understand ngx_module_link=DYNAMIC. When set, it links the module as a shared object rather than statically into nginx binary. The module can later be loaded using the "load_module" directive. New auto/module parameter ngx_module_order allows to define module loading order in complex cases. By default the order is set based on ngx_module_type. 3rd party modules can be compiled dynamically using the --add-dynamic-module configure option, which will preset ngx_module_link to "DYNAMIC" before calling the module config script. Win32 support is rudimentary, and only works when using MinGW gcc (which is able to handle exports/imports automatically). In collaboration with Ruslan Ermilov.
2016-02-04Dynamic modules: auto/module script.Maxim Dounin4-558/+848
This script simplifies configuration of additional modules, including 3rd party ones. The script is extensible, and will be used to introduce dynamic linking of modules in upcoming changes. 3rd party module config scripts are called with ngx_module_link preset to "ADDON" - this allows config scripts to call auto/module without ngx_module_link explicitly defined, as well as testing if new interface is in place if compatibility with older nginx versions is desired. In collaboration with Ruslan Ermilov.