Commit Graph

149 Commits

Author SHA1 Message Date
psychon
17e7b0f4cf Increase the version number to 0.093
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2059 726aef4b-f618-498e-8847-2d620e286838
2010-07-03 09:39:39 +00:00
psychon
4c69e66dec Make --with-openssl do more
It now also adds lib64 to the library search path. On 32-bit systems this won't
hurt because such a directory most likely does not exist.

Also, because we are trying to find pkg-config via openssl first, the
appropriate dirs are also added to $PKG_CONFIG_PATH.

Thanks to DarthGandalf for some good suggestions on this one.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2056 726aef4b-f618-498e-8847-2d620e286838
2010-07-03 07:56:04 +00:00
psychon
a4d46e8c3c Check for c-ares 1.5.0 or later in configure
There was an API change to the callback type of ares_gethostbyname() in 1.5.0,
so znc won't compile with anything older than that.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2055 726aef4b-f618-498e-8847-2d620e286838
2010-07-03 07:52:46 +00:00
psychon
811b04dfce Add aclocal.m4 and regenerate configure
The always-changing versions of the pkg-config m4 macros are mildly annoying.
To work around this, we now have a file aclocal.m4 (generated by aclocal) that
contains all the needed external macros. If you just call "autoconf", it will
use the macros from that file. "autoreconf" will call "aclocal" and "autoconf"
so that both files are up-to-date.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2054 726aef4b-f618-498e-8847-2d620e286838
2010-07-03 07:50:22 +00:00
psychon
68c5ee5909 Try to use pkg-config for finding openssl
If using pkg-config fails, we fall back to the old method with AC_CHECK_LIB().


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2018 726aef4b-f618-498e-8847-2d620e286838
2010-06-07 19:34:20 +00:00
psychon
39a215f35b configure: Really automatically disable perl if it's not found
Since r1895 configure tries to disable perl if it doesn't find the perl binary
or libperl, but there was a bug. If the perl binary existed but libperl wasn't
found, it pretended to disable modperl but didn't really. Whoops.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2017 726aef4b-f618-498e-8847-2d620e286838
2010-06-07 19:05:51 +00:00
psychon
35ef37acc4 Increase the version number to 0.091
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2009 726aef4b-f618-498e-8847-2d620e286838
2010-06-06 07:26:05 +00:00
psychon
501c76a4d5 Increase the version number to 0.090
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2007 726aef4b-f618-498e-8847-2d620e286838
2010-06-06 07:23:52 +00:00
psychon
1794ecd8c2 Better error message if pkg-config is not found
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1983 726aef4b-f618-498e-8847-2d620e286838
2010-05-13 18:44:25 +00:00
psychon
e2c694c933 configure: Check earlier for dlopen()
Linking against libcrypto.a apparently needs libdl, so we should check for this
before trying to find openssl's libs.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1969 726aef4b-f618-498e-8847-2d620e286838
2010-05-04 19:27:58 +00:00
cflakes
d72fc441d2 Added some more flags to the "summary" that configure prints at the end.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1950 726aef4b-f618-498e-8847-2d620e286838
2010-04-28 23:01:18 +00:00
cflakes
dee94a0bb8 Added the necessary checks for (lib)iconv in order to enable
the charset module from extra to do its thing. This has been
a pain in the ass and I'd like to thank psychon who made most
of the autofoo happen and BrianC for finding out that BSD sucks
and for testing! Yay!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1947 726aef4b-f618-498e-8847-2d620e286838
2010-04-27 15:40:24 +00:00
psychon
5f1a1d0153 Outsmart autoconf
When checking for libperl, evil little autoconf thought we intent to use perl
everywhere (HAHA, no!) so it went forward and added -lperl to $LIBS. Despite
this being a bad idea in general (come on, it's perl!), this also made
subsequent checks fail because the linker didn't find libperl (we reverted back
LDFLAGS to an older value after checking for perl and so the path to libperl got
lost).

Fix this by outsmarting autoconf. Let's wait for the autofail to strike back!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1946 726aef4b-f618-498e-8847-2d620e286838
2010-04-27 15:30:50 +00:00
psychon
0f6c1f9e16 Look, an invisible pink unicorn!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1928 726aef4b-f618-498e-8847-2d620e286838
2010-04-23 16:38:03 +00:00
psychon
fe6a930a01 Add ./configure --enable-run-from-source
Unless this flag is used, znc will no longer look for modules in ./modules/
because this might be exploitable by lucky attackers.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1927 726aef4b-f618-498e-8847-2d620e286838
2010-04-23 16:27:21 +00:00
psychon
57cfa9502f Re-intend stuff I was previously to lazy to
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1897 726aef4b-f618-498e-8847-2d620e286838
2010-04-07 19:28:39 +00:00
psychon
16464664e8 Fail less badly if perl isn't found
After this, perl, c-ares and openssl now are handled similar if they aren't
found.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1895 726aef4b-f618-498e-8847-2d620e286838
2010-04-07 16:55:27 +00:00
psychon
521695fbd9 Fail less badly if openssl isn't found
Instead of erroring out, openssl is now disabled with a warning if it's not
found, unless you explicitly used --enable-openssl in which case configure will
error out again.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1894 726aef4b-f618-498e-8847-2d620e286838
2010-04-07 16:30:55 +00:00
psychon
f023242555 Switch to using $SSL instead of $NOSSL in configure
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1893 726aef4b-f618-498e-8847-2d620e286838
2010-04-07 16:13:17 +00:00
psychon
5a8193565d Fix some minor "Whooops"
Someone semi-messed-up Makefile.in and the very same guy forgot to regenerate
configure when he modified configure.in. Whooops.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1829 726aef4b-f618-498e-8847-2d620e286838
2010-03-14 12:19:54 +00:00
psychon
e8dc3de47a Fix --disable-tcl
Thanks to Efreak for finding this.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1782 726aef4b-f618-498e-8847-2d620e286838
2010-02-21 08:14:40 +00:00
cflakes
b6e07d9327 Increase the version number to 0.089. This forces psychon to release the next version as 0.090 and from there on we can go to 1.0 or 2.0.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1768 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 13:25:35 +00:00
psychon
4a38a76e0c Increase the version number to 0.081
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1756 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 11:51:05 +00:00
psychon
ed378aab62 Increase the version number to 0.080
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1754 726aef4b-f618-498e-8847-2d620e286838
2010-02-18 11:49:00 +00:00
psychon
1b51f15d47 Switch to Csocket's c-ares code
This removes all of znc's c-ares code and instead enables Csocket's built-in
version. That code is newer than ZNC's, but should hopefully work just as good.
Let's wait for the bug reports....


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1704 726aef4b-f618-498e-8847-2d620e286838
2010-01-10 13:20:20 +00:00
psychon
e7c78159f8 Increase the version number to 0.079
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1678 726aef4b-f618-498e-8847-2d620e286838
2009-12-18 16:09:35 +00:00
psychon
f1945fdde4 Increase the version number to to 0.078
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1676 726aef4b-f618-498e-8847-2d620e286838
2009-12-18 16:06:15 +00:00
psychon
65394f611f Regenerate configure with newer autoconf
The small change to configure.in seems to be necessary to still get the output
we want. No idea what happened so that this changed.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1674 726aef4b-f618-498e-8847-2d620e286838
2009-12-11 15:18:00 +00:00
psychon
ad0cba603d Regenerate configure
No idea why, but autoconf failed badly on that last commit. :(


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1645 726aef4b-f618-498e-8847-2d620e286838
2009-10-09 17:11:49 +00:00
psychon
158702a9c3 configure: Automatically disable c-ares if it is not found
With this patch configure no longer fails if either pkg-config or c-ares are
unavailable. Instead, c-ares is just disabled.

If one uses ./configure --enable-c-ares, configure will fail if c-ares is not
found.

./configure --disable-c-ares obviously won't care about c-ares. ;)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1644 726aef4b-f618-498e-8847-2d620e286838
2009-10-09 17:07:22 +00:00
psychon
653eb8a0e0 configure.in: Don't explicitly set default prefix
configure automatically sets the prefix to /usr/local if the user didn't set one
explicitly with --prefix, but it does so later than our own code. This must have
been a problem in the past, but now everything works fine without this hack.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1637 726aef4b-f618-498e-8847-2d620e286838
2009-09-24 19:38:36 +00:00
psychon
08045fff41 Increase the version number to 0.077
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1636 726aef4b-f618-498e-8847-2d620e286838
2009-09-24 19:06:46 +00:00
psychon
738d8aca64 Increase the version number to 0.076
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1634 726aef4b-f618-498e-8847-2d620e286838
2009-09-24 19:04:57 +00:00
psychon
7e61148a19 Use more sane and proper English in configure
Thanks to Kuja


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1630 726aef4b-f618-498e-8847-2d620e286838
2009-09-18 07:54:23 +00:00
psychon
61449c6f97 Import SilverLeo's modtcl from znc-extra
The configure and Makefile stuff was taken from there, too. By default modtcl is
disabled, use --enable-extra --enable-tcl to get it.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1609 726aef4b-f618-498e-8847-2d620e286838
2009-08-22 15:45:32 +00:00
psychon
0b7576a474 Add support for extra modules
This commits adds the necessary build system fun for extra modules in
modules/extra which can be enabled with --enable-extra.

This is a preparation for the import of znc-extra.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1605 726aef4b-f618-498e-8847-2d620e286838
2009-08-20 19:49:21 +00:00
psychon
dbc1fede3d Regenerate configure with newer autoconf
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1604 726aef4b-f618-498e-8847-2d620e286838
2009-08-20 19:22:22 +00:00
psychon
2d0f451097 Enable large file support in configure if possible
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1587 726aef4b-f618-498e-8847-2d620e286838
2009-08-05 19:36:13 +00:00
psychon
16372a5830 Use @PACKAGE_VERSION@ instead of @VERSION@
autoconf automatically substitutes @PACKAGE_VERSION@, so there is not much point
into adding another substitute for this.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1582 726aef4b-f618-498e-8847-2d620e286838
2009-07-26 19:38:57 +00:00
psychon
7c1689db7c Increase the version number to 0.075
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1578 726aef4b-f618-498e-8847-2d620e286838
2009-07-23 16:59:41 +00:00
psychon
a684891599 Increase the version number to 0.074
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1576 726aef4b-f618-498e-8847-2d620e286838
2009-07-23 16:56:53 +00:00
psychon
e11dbf2290 Increase the version number to 0.073
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1573 726aef4b-f618-498e-8847-2d620e286838
2009-07-21 19:45:05 +00:00
psychon
9f71f301ce Increase the version number to 0.072
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1571 726aef4b-f618-498e-8847-2d620e286838
2009-07-21 19:42:57 +00:00
psychon
1105652c1d m4 sucks and autoconf is ugly
For some reason this interpreted some comma as an argument separator and choked
up badly from there on.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1566 726aef4b-f618-498e-8847-2d620e286838
2009-07-17 21:04:41 +00:00
psychon
951382255b Improve the error message if c-ares or pkg-config is not found
This now states more explicitly that c-ares is not strictly required.

Thanks to flakes for noticing that the error messages needs improvement and to
w00t for improving the improved error message flakes and me came up with.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1565 726aef4b-f618-498e-8847-2d620e286838
2009-07-17 20:44:53 +00:00
psychon
76b40e35f2 configure: Error out if pkg-config is not found
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1553 726aef4b-f618-498e-8847-2d620e286838
2009-06-30 13:33:42 +00:00
psychon
f77e526652 Add c-ares support
Every socket which is based on CZNCSock will now use c-ares for its name
resolving. This is possible thanks to CSocket's Csock::GetAddrInfo() which
lets one override the DNS lookup.

This can be disabled with --disable-c-ares.

If IPv6 is enabled and Csocket didn't specify which kind of lookup (ipv4/ipv6)
it wants, we first do an ipv4 lookup. If that lookup doesn't yield any useful
result, we try again with an ipv6 lookup. If one wants to force ipv6 usage on a
domain which also resolves to an ipv4 address, he has to set an ipv6 vhost.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1551 726aef4b-f618-498e-8847-2d620e286838
2009-06-30 09:56:01 +00:00
psychon
b21000a731 Increase the version number to 0.071
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1518 726aef4b-f618-498e-8847-2d620e286838
2009-05-23 10:47:07 +00:00
psychon
29dd48dbd0 Increase the version number to 0.070
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1516 726aef4b-f618-498e-8847-2d620e286838
2009-05-23 10:45:12 +00:00
psychon
bbb62bed08 Install a file for pkg-config
configure now generates to files for pkg-config:
znc.pc and znc-uninstalled.pc

This is supposed to replace the znc-config binary. Everything which can be done
with znc-config can now also be done with pkg-config.

znc-uninstalled.pc is only generated by configure, but not installed by the
Makefiles. It's there to fix some kind of bug we have with znc-config.

ZNC can run quite fine from the source, there is no need to ever run
"make install". The only problem is that e.g. znc-extra won't build, since
it gets -I/usr/local/include/znc from znc-config which doesn't work since znc
was never installed.

pkg-config has a nice fix for this: If you ask for "a", but "a-uninstalled"
exists, pkg-config will use the later one instead. This is used in
znc-uninstalled.pc to output a different -I flag which works for the
uninstalled headers.
(You only have to set $PKG_CONFIG_PATH to znc's source dir for this to work)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1503 726aef4b-f618-498e-8847-2d620e286838
2009-05-03 11:23:05 +00:00