summaryrefslogtreecommitdiffhomepage
path: root/auto (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2015-04-03Configure: style.Maxim Dounin1-1/+1
2015-03-20Removed busy locks.Ruslan Ermilov1-7/+1
2015-03-20Removed old pthread implementation.Ruslan Ermilov1-2/+0
2015-03-20Removed old FreeBSD rfork() thread implementation.Ruslan Ermilov1-3/+0
2015-03-14Events: implemented epoll notification mechanism.Valentin Bartenev1-0/+23
2015-03-14Thread pools implementation.Valentin Bartenev6-0/+42
2015-03-13Configure: removed obsolete threads bits.Ruslan Ermilov4-52/+0
2015-03-18Configure: fixed type max value detection.Ruslan Ermilov1-12/+2
The code tried to use suffixes for "long" and "long long" types, but it never worked as intended due to the bug in the shell code. Also, the max value for any 64-bit type other than "long long" on platforms with 32-bit "long" would be incorrect if the bug was fixed. So instead of fixing the bug in the shell code, always use the "int" constant for 32-bit types, and "long long" constant for 64-bit types.
2015-03-17Core: expose maximum values of time_t and ngx_int_t.Ruslan Ermilov1-0/+1
These are needed to detect overflows.
2015-03-13Configure: removed redundant auto/have call.Ruslan Ermilov1-1/+0
The auto/feature call above is enough to set NGX_HAVE_SENDFILE.
2015-02-11Configure: typo fixed.Sergey Kandaurov1-1/+1
2015-02-11Unbreak building on FreeBSD without file AIO.Valentin Bartenev1-3/+5
It appeared that the NGX_HAVE_AIO_SENDFILE macro was defined regardless of the "--with-file-aio" configure option and the NGX_HAVE_FILE_AIO macro. Now they are related. Additionally, fixed one macro.
2014-07-31Configure: remove outdated and unused patch.zlib.h.Piotr Sikora1-10/+0
Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
2014-06-26Configure: restored "nginx/" missed in 6e4bb1d6679d.Maxim Dounin1-1/+2
2014-06-26Configure: style.Maxim Dounin1-2/+4
2014-06-17Configure: workaround for system perl on OS X (ticket #576).Maxim Dounin1-0/+5
2014-06-02Upstream: generic hash module.Roman Arutyunyan3-0/+13
2014-05-28Configure: added -Wno-deprecated-declarations on OS X.Maxim Dounin2-0/+10
Previous workaround to avoid warnings on OS X due to deprecated system OpenSSL library (introduced in a3870ea96ccd) no longer works, as the MAC_OS_X_VERSION_MIN_REQUIRED macro is ignored on OS X 10.9 if a compiler used supports __attribute__(availability).
2014-05-23Events: use eventfd() instead of syscall(SYS_eventfd) if possible.Ruslan Ermilov1-6/+27
This fixes --with-file-aio support on systems that lack eventfd() syscall, notably aarch64 Linux. The syscall(SYS_eventfd) may still be necessary on systems that have eventfd() syscall in the kernel but lack it in glibc, e.g. as seen in the current CentOS 5 release.
2014-05-12Added syslog support for error_log and access_log directives.Vladimir Homutov1-2/+4
2014-05-20Configure: the --build= option.Ruslan Ermilov2-0/+7
If set, its value is output in "nginx -v" and in the error log.
2014-04-30Configure: typo fixed.Maxim Dounin1-1/+1
2014-04-07Win32: fixed link flags with MSVC, broken by bfe536716dbf.Maxim Dounin1-1/+1
Notably, "-debug" was omitted, resulting in an executable without debug symbols.
2014-03-17Added server-side support for PROXY protocol v1 (ticket #355).Roman Arutyunyan1-2/+4
Client address specified in the PROXY protocol header is now saved in the $proxy_protocol_addr variable and can be used in the realip module. This is currently not implemented for mail.
2014-02-13Win32: MSVC 2013 compatibility.Maxim Dounin1-0/+1
Warnings about GetVersionEx() deprecation silenced. Precompiled object linked in.
2014-01-28Configure: enabled -Werror for clang.Ruslan Ermilov1-1/+1
Modern clang versions seem to no longer produce warnings for system headers on Linux (at least clang 3.3 works), hence the change. For older versions --with-cc-opt="-Wno-error" can be used as a workaround.
2013-12-06Configure: enable -Wconditional-uninitialized with clang.Ruslan Ermilov1-0/+1
2013-12-03Added support for TCP_FASTOPEN supported in Linux >= 3.7.1.Mathew Rodley1-0/+12
--- auto/unix | 12 ++++++++++++ src/core/ngx_connection.c | 32 ++++++++++++++++++++++++++++++++ src/core/ngx_connection.h | 4 ++++ src/http/ngx_http.c | 4 ++++ src/http/ngx_http_core_module.c | 21 +++++++++++++++++++++ src/http/ngx_http_core_module.h | 3 +++ 6 files changed, 76 insertions(+)
2013-11-11Configure: call "make distclean" for libatomic.Piotr Sikora1-1/+3
Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
2013-11-04Configure: call "make clean" for OpenSSL only if Makefile exists.Piotr Sikora1-1/+1
This change allows to build nginx against git checkout of OpenSSL. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
2013-09-30Mail: mail dependencies are now honored while building addons.Maxim Dounin1-0/+2
2013-07-12Events: support for EPOLLRDHUP (ticket #320).Valentin Bartenev2-0/+17
Since Linux 2.6.17, epoll is able to report about peer half-closed connection using special EPOLLRDHUP flag on a read event.
2013-09-04Configure: TCP_KEEPIDLE test name simplified.Maxim Dounin1-1/+1
2013-09-04Configure: fixed building with Sun C if CFLAGS set (ticket #65).Maxim Dounin1-0/+23
2013-09-04Win32: MinGW GCC compatibility.Maxim Dounin5-12/+52
Several warnings silenced, notably (ngx_socket_t) -1 is now checked on socket operations instead of -1, as ngx_socket_t is unsigned on win32 and gcc complains on comparison. With this patch, it's now possible to compile nginx using mingw gcc, with options we normally compile on win32.
2013-09-04Win32: Borland C compatibility fixes.Maxim Dounin1-2/+2
Several false positive warnings silenced, notably W8012 "Comparing signed and unsigned" (due to u_short values promoted to int), and W8072 "Suspicious pointer arithmetic" (due to large type values added to pointers). With this patch, it's now again possible to compile nginx using bcc32, with options we normally compile on win32 minus ipv6 and ssl.
2013-09-04Win32: Open Watcom C compatibility fixes.Maxim Dounin2-5/+5
Precompiled headers are disabled as they lead to internal compiler errors with long configure lines. Couple of false positive warnings silenced. Various win32 typedefs are adjusted to work with Open Watcom C 1.9 headers. With this patch, it's now again possible to compile nginx using owc386, with options we normally compile on win32 minus ipv6 and ssl.
2013-09-02Disable symlinks: use O_PATH to open path components.Valentin Bartenev1-0/+16
It was introduced in Linux 2.6.39, glibc 2.14 and allows to obtain file descriptors without actually opening files. Thus made it possible to traverse path with openat() syscalls without the need to have read permissions for path components. It is effectively emulates O_SEARCH which is missing on Linux. O_PATH is used in combination with O_RDONLY. The last one is ignored if O_PATH is used, but it allows nginx to not fail when it was built on modern system (i.e. glibc 2.14+) and run with a kernel older than 2.6.39. Then O_PATH is unknown to the kernel and ignored, while O_RDONLY is used. Sadly, fstat() is not working with O_PATH descriptors till Linux 3.6. As a workaround we fallback to fstatat() with the AT_EMPTY_PATH flag that was introduced at the same time as O_PATH.
2013-08-23Updated PCRE used for win32 builds.Maxim Dounin3-3/+6
As of PCRE 8.33, config.h.generic no longer contains boolean macros. Two of them (SUPPORT_PCRE8 and HAVE_MEMMOVE) were added to appropriate makefiles. This allows PCRE 8.33 to compile and don't change anything for previous versions.
2013-08-23Configure: pcre.lib dependencies fix.Maxim Dounin1-1/+2
Previously, an attempt to build pcre.lib on win32 before anything else failed due to no pcre.h.
2013-08-21Auth request module import.Maxim Dounin3-0/+12
2013-08-05Core: guard use of AI_ADDRCONFIG.Ruslan Ermilov1-6/+2
Some systems (notably NetBSD and OpenBSD) lack AI_ADDRCONFIG support. Reported by Piotr Sikora.
2013-08-05Core: only resolve address families configured on the local system.Ruslan Ermilov1-2/+6
This is done by passing AI_ADDRCONFIG to getaddrinfo(). On Linux, setting net.ipv6.conf.all.disable_ipv6 to 1 will now be respected. On FreeBSD, AI_ADDRCONFIG filtering is currently implemented by attempting to create a datagram socket for the corresponding family, which succeeds even if the system doesn't in fact have any addresses of that family configured. That is, if the system with IPv6 support in the kernel doesn't have IPv6 addresses configured, AI_ADDRCONFIG will filter out IPv6 only inside a jail without IPv6 addresses or with IPv6 disabled.
2013-07-31Configure: fixed autotest cleanup commands.Sergey Kandaurov8-9/+9
Previously, if configured with --with-cc="clang -g", the autotest.dSYM directories were left unremoved.
2013-07-11Configure: perl Makefile rebuild after configure.Maxim Dounin1-0/+1
The $NGX_AUTO_CONFIG_H added to perl module Makefile dependencies to make sure it's always rebuild after a configure. It is needed as we expand various variables used for Makefile generation during configure (in particular, nginx version).
2013-05-23Configure: fixed test of OS X atomic(3).Ruslan Ermilov1-1/+1
2013-04-29Configure: fixed detection of newer Apple clang compilers.Ruslan Ermilov2-3/+3
2013-04-19Configure: fixed perl Makefile generation (ticket #334).Maxim Dounin1-1/+1
Dependancy tracking introduced in r5169 were not handled absolute path names properly. Absolute names might appear in CORE_DEPS if --with-openssl or --with-pcre configure arguments are used to build OpenSSL/PCRE libraries. Additionally, revert part of r5169 to set NGX_INCS from Makefile variables. Makefile variables have $ngx_include_opt in them, which might result in wrong include paths being used. As a side effect, this also restores build with --with-http_perl_module and --without-http at the same time.
2013-04-18Configure: uniformly refer to libs when searching for md5 and sha1.Ruslan Ermilov2-4/+4
2013-04-10Configure: fixed nginx.so rebuild (broken by r5145).Maxim Dounin1-1/+2
To avoid further breaks it's now done properly, all the dependencies are now passed to Makefile.PL. While here, fixed include list passed to Makefile.PL to use Makefile variables rather than a list expanded during configure.