Commit Graph

89 Commits

Author SHA1 Message Date
J-P Nurmi 197411e602 Display development version as "1.7.x" - ref #748 2015-03-01 23:04:37 +01:00
Thomas Kriechbaumer 53e5e99d42 add homebrew locations for openssl, icu4c, python3 2015-02-27 16:17:08 +00:00
Alexey Sokolov f54c3b9e2d Remove --with-openssl from ./configure
1. The same functionality is achievable via
./configure LDFLAGS=-L/foo/lib CXXFLAGS=-I/foo/include PKG_CONFIG_PATH=/foo/lib/pkgconfig
2. Only openssl had this special flag, but not python, not zlib, etc.
3. It's confusing, lots of people try --with-openssl=/usr/bin/openssl
2015-02-17 00:23:29 +01:00
J-P Nurmi 2397f8842a Bump the version to 1.7 2015-02-16 23:49:26 +01:00
Alexey Sokolov f47e8465ef Increase the version number to 1.6.0 2015-02-12 21:05:44 +00:00
J-P Nurmi 1c07c38477 configure: pass ICU build flags to modules 2014-11-06 23:08:51 +01:00
J-P Nurmi ba64324a39 Introduce patch level version number for bug fix releases
The patch level version number is ignored in module and config
version compatibility checks. Radically simplified, bug fix
releases shall not touch the headers nor change the config file.
2014-10-20 07:45:58 +02:00
ylfchild c4daa57344 fixed typo in configure.ac 2014-09-20 12:06:48 +00:00
BtbN 7b7d10fd84 Remove _GLIBCXX_CONCEPT_CHECKS debug define
This debug feature does not support any C++11 features.
It breaks for example the compilation of vector<unique_ptr>.

The upstream issue is:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57011
2014-09-05 23:56:41 +02:00
Alexey Sokolov 700c899698 Fix build on cygwin after switch to -std=c++11 2014-08-14 00:17:13 +01:00
Alexey Sokolov 1f89b67a88 Enable C++11.
It bumps requirements for SWIG to 3.0.0, and for compiler.
2014-08-11 21:13:53 +01:00
Alexey Sokolov 370659895b Increase the version number to 1.5 2014-04-14 22:48:50 +01:00
Alexey Sokolov 0696a6ed23 Cleanup old tests (pre-gtest) 2014-03-03 21:38:18 +00:00
Uli Schlachter 0a0be7710f configure: Fix --disable-charset
Somehow I ended up only testing the automatic detection and the error message
from --enable-charset. I totally forgot that --disable-charset should skip the
whole check.

Thanks to Robby for reporting this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-03-01 16:57:09 +01:00
Uli Schlachter a074c23e39 configure: Add --enable/disable-charset
This override the auto detection. If --enable-charset is given, but icu can't be
found, configure will error out.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-02-25 17:13:01 +01:00
Uli Schlachter 4676fa0a7f configure: Give a reason for disabled features
This adds a short reason to the summary at the end of configure (for options
where it makes sense, e.g. not debug or ipv6).

Example:

  charset:      no (icu-uc not found via pkg-config)

Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-02-24 18:27:07 +01:00
Alexey Sokolov a83c8239cf Fix znc-buildmod
It failed to build some modules...

Thanks to kay45 for reporting this
2014-02-17 00:48:42 +00:00
Alexey Sokolov 591b95ed54 MacOS X: require SWIG 2.0.12
To fix build of modpython
2014-02-09 23:46:14 +00:00
Alexey Sokolov cfc1227171 Drop old charset module
It didn't work well with webadmin
2014-01-25 13:50:07 +00:00
Alexey Sokolov c0a5ecb40b Add support for character encodings
Previous commit added support of it to Csocket.
When encoding is specified, core will convert incoming messages to UTF-8,
and outgoing messages from UTF-8.
When no encoding is specified, it will do nothing to bytes, like before.
This is to be changed somewhere in future, to have UTF-8 on wire by
default too.
When encoding's name starts with *, incoming messages will be treated as
UTF-8, if it is already correct UTF-8. Otherwise, it's converted.

Fix #151
Fix #366
2014-01-25 13:50:07 +00:00
Alexey Sokolov 72f171dd0d Don't redefine _FORTIFY_SOURCE if compiler already defines it 2014-01-19 10:13:30 +00:00
Alexey Sokolov 1790778417 Add ./configure --with-gtest=/path/to/gtest
The specified dir is expected to contain files DIR/src/gtest-all.cc and
DIR/src/gtest_main.cc

This is to make Debian happy, because make test doesn't require internet
access anymore.
2013-11-17 20:03:24 +04:00
Alexey Sokolov e8e95d770e Increase the version number to 1.3 2013-11-04 16:25:07 +04:00
Alexey Sokolov 49cf40b19c Increase the version number to 1.2 2013-11-04 16:07:13 +04:00
Alexey Sokolov 1c06af3b38 Fix: Don't try to include zncconfig.h when it doesn't exist yet 2013-10-13 21:08:43 +04:00
Alexey Sokolov da05a290e6 Force including zncconfig.h at the beginning of every .cpp
Otherwise it's easy to have STL compiled with different options in
different .cpp's, which leads to very weird crashes.
2013-10-13 21:00:43 +04:00
Alexey Sokolov d0e0b565ba Use modified AM_ICONV instead of AC_CHECK_FUNC for iconv
Modifications from /usr/share/aclocal/ version:
1. Don't use AC_LIB_RPATH
2. AC_SUBST([HAVE_ICONV])

So now charset module is buildable on openbsd with:
./configure CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib

Fix #255
2013-05-29 21:15:24 +04:00
Alexey Sokolov 89d4c9faeb Fix compilation on OpenBSD
That OS doesn't support AI_ADDRCONFIG, but in that case we
defined HAVE_PTHREAD, but didn't add needed params to compiler

Thanks to fred for shell access for tests
2013-05-17 00:20:30 +04:00
Alexey Sokolov 6569508522 Merge commit 'refs/pull/306/head' of github.com:znc/znc 2013-05-12 08:59:01 +04:00
Uli Schlachter 75f2e3fa41 Add a generic threads abstraction
This should make it easier to work with threads. It provides classes for mutexes
and condition variables. Additionally, there is a special CMutexGuard that
automatically unlocks the mutex on destruction and a CThreadPool class.

This thread pool is used to replace the thread pool in the sockets code.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-03-15 11:58:22 +01:00
Ingmar Runge ea94795646 HTTPSock: Gzip compression for static files (text/* mime types + files
with .js extension) and dynamic HTML responses (if gzip is available and
the compression method is supported by the requesting HTTP client).
2013-03-08 09:49:45 +01:00
Alexey Sokolov 183a261e69 Really disable charset module if iconv is not found.
On some systems CHARSET variable is set...

Thanks to Hoss for reporting it
2013-01-27 01:19:45 +07:00
Alexey Sokolov da5c6b6a8b Bump SWIG req to 2.0.8, remove our hacks around old SWIG. 2012-11-07 02:02:22 +07:00
Alexey Sokolov 071801a65d Increase the version number to 1.1 2012-11-07 01:33:45 +07:00
Alexey Sokolov 73b2daf24d Increase the version number to 1.0 2012-11-06 22:41:24 +07:00
Alexey Sokolov d543728215 Fix installing without root when systemd exists.
Try to detect path to systemd units only when
--with-systemdsystemunitdir is used without the path.

If this option isn't specified at all, no need to install systemd file.

Thanks to n0kS for reporting this.
2012-10-29 01:39:24 +07:00
Alexey Sokolov 44d8aaa13a Improve message in ./configure about SWIG 2012-10-07 09:06:26 +07:00
Uli Schlachter afb4830057 Fix configure with -Werror=unused-variable
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-09-23 11:14:20 +02:00
Alexey Sokolov 9b2898f603 Implement setting "Max number of networks" for user.
Fix #226
2012-09-20 01:24:47 +07:00
Alexey Sokolov 3d280b1c58 Merge commit 'refs/pull/183/head' of github.com:znc/znc 2012-09-04 07:41:40 +07:00
Wulf C. Krueger 524ec57224 configure.ac: Move the pkg_config check upwards to allow using it earlier. 2012-09-03 20:40:42 +02:00
Alexey Sokolov a1e8b0867e Fix --enable-debug on cygwin. 2012-08-26 22:28:59 +07:00
Alexey Sokolov b1b92468d8 Fix out-of-tree build of modperl/modpython.
It was broken when compiling from tarball (where swig files already
exist), but with swig around
2012-08-20 20:54:42 +07:00
Alexey Sokolov f94cb24fed Fix SSL on cygwin. 2012-08-20 00:32:36 +07:00
Alexey Sokolov 16f510f820 Make SilverLeo happy :P
By displaying info about available and required SWIGs in ./configure
2012-08-15 21:52:12 +07:00
Alexey Sokolov cc52a7d2be Add several fixed files for swig.
Workaround for broken swig, which allows old swig versions to work too.

These files should be removed when fixed swig is released.

Thanks to Juvenal for suggestion.
2012-08-15 01:42:46 +07:00
Alexey Sokolov d37cb447a0 Use gettimeofday instead of clock_gettime.
POSIX.1-2008 deprecates gettimeofday...
So perhaps it will be changed back in future.

For now gettimeofday is more portable :(
2012-08-09 00:37:16 +07:00
Alexey Sokolov 54f558a4ee Fix configure script 2012-08-08 23:25:36 +07:00
Alexey Sokolov 3d152b160f Check for SWIG's features, not only version. 2012-08-08 23:16:57 +07:00
Alexey Sokolov 44b382c6fc Update server-time implementation to match new standard. #181 2012-08-05 09:45:48 +07:00