416 Commits

Author SHA1 Message Date
w00t
d697fa15ce Add -Woverloaded-virtual (fixes to follow)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8898 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-11 11:08:41 +00:00
w00t
5db1d322be Add -Wshadow to cflags, and fix a bunch of warnings that come with it. Add a note to webirc that needs looking at.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8892 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-11 09:41:58 +00:00
brain
bfc3de1cc4 Even tidier
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8879 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 17:25:58 +00:00
brain
df167bf4ac Now very tidy make output, with pretty colours :p
(Unless it errors, then you get the full commandline and error output etc)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8878 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 17:22:36 +00:00
brain
eedce11c96 Add -pthread link flag
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8875 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 14:33:30 +00:00
brain
9dbd7d10ac Add threading engine stuff. Docs to follow, untested and not used anywhere yet
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8874 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 14:32:02 +00:00
brain
75d5b90c9c Move run-cc.pl to make/ directory and update paths, keeps root tidy
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8868 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-10 13:30:59 +00:00
aquanight
6650ab5cb5 Add a perl script which will abort compiles for warning messages that don't have a switch to convert to errors (like the one about non-PODs through ...)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8855 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-09 01:55:31 +00:00
aquanight
0808eb7a9d Fix $config{HAS_OPENSSL} winding up undefined and crashing configure if openssl isn't found or otherwise spits garbage for version.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8789 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-02 18:02:47 +00:00
fez
e139829557 fixed type defiined to defined
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8779 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-01 07:33:18 +00:00
aquanight
f652bca336 Revert tmpfile cleanup from r8761, also make configure's perl version check happen during compilation phase so that people don't get millions of useless errors.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8762 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-27 14:49:41 +00:00
aquanight
39e6732f23 Some configure cleanups: like using perl functions/modules instead of system() (symlink, clear, mv, mkdir -p), clean up tmpfile for eval(), use \e instead of \033, and use a heredoc for the big banner on starting configure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8761 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-27 14:32:20 +00:00
brain
586c3cae3d Extra sanity checks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8741 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19 18:50:43 +00:00
brain
789506bf30 Fix freebsd glitches
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8740 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19 18:44:20 +00:00
aquanight
d13cd5ca80 Add ./configure --list-extras, --enable-extras, and --disable-extras
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8739 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19 17:33:13 +00:00
aquanight
37283ce7b3 Modules using NoPedantic now properly respect 'make debug'.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8737 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19 16:58:18 +00:00
w00t
3bbfbc1e07 And another tiny one
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8734 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19 01:26:14 +00:00
w00t
17afa4f05a Patch from aquanight to fix a problem introduced with some of the recent tidyups.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8733 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-19 01:22:28 +00:00
brain
207af6fb2f Aquanight's configure strict/fatal warnings patch
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8731 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17 21:36:02 +00:00
brain
1ccb806885 Relax detection rules on openssl and gnutls, there arent any commonly used versions around any more that we dont support
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8477 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-03 19:48:58 +00:00
brain
4bd6bbfebc Add --disable-rpath. Probably wont backport this for the time being
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8475 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-03 18:09:26 +00:00
brain
34df2c0d94 I was wrong its in one place :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8367 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-25 21:07:15 +00:00
brain
52941397f8 Tidy up
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8366 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-25 21:05:58 +00:00
brain
0117b824f2 More dots!!!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8365 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-25 21:03:50 +00:00
brain
aaff467643 Take out craq i forgot
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8364 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-25 21:00:53 +00:00
brain
da79274a2d Forgot these two lines that prevent duplicate make install/deinstall lines
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8363 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-25 20:56:14 +00:00
brain
a9d2342f6a Make install list list automatically generated from build targets and provide facility for installing extra files.
Using this, cert.pem and key.pem are only copied to the conf dir if you enabled an ssl module.
Also, this provides facility for a 'make deinstall' which should be safe for use in all situations as it always specifies a file by name and never uses wildcards to rm.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8362 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-25 20:51:58 +00:00
brain
2ab88037d8 Pedantic clean
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8349 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-24 18:03:36 +00:00
brain
57f0a0ffb9 -pedantic good, -Wextra bad. read g++ manpage :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8348 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-24 17:46:57 +00:00
brain
cbb8fda4a7 Move socketengines into their own dir. This was all w00t's idea, but i told him no because i didnt think it would work. Now ive done it myself :P ner ner ne ner ner :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8332 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 22:30:25 +00:00
brain
71e400674f -Wall is still required, too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8331 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 22:10:18 +00:00
brain
bfa8e627a1 -W -> -Wextra
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8330 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 22:08:57 +00:00
brain
1db092e08e This now works properly with $NoPedantic macro.
Question: where did all the 'unused parameter' warnings vanish to???


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8329 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 22:07:47 +00:00
brain
c8389f594d Roll back to 8323, the -pedantic switch thing totally breaks building the way i implemented it here :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8328 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 21:50:09 +00:00
brain
89a2c99405 Needs a bit more again
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8327 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 21:43:54 +00:00
brain
f34b16edd7 And fix it.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8326 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 21:39:10 +00:00
brain
cd9b790e48 Add $NoPedantic build macro, for m_mysql because mysql AB dont know how to code :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8325 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 21:36:33 +00:00
brain
e281922d55 Auto generate the install list, no more need to insert it into the .makefile.inc for it to be part of make install
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8312 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-23 16:42:03 +00:00
brain
afdbc67a33 Make this a little more bulletproof
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8309 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 20:16:58 +00:00
brain
af70c67676 Conditionals in the buildsystem language allowing for checking of configure flags:
/* $If: USE_KQUEUE */
/* $ExtraSources: socketengine_kqueue.cpp */
/* $ExtraObjects: socketengine_kqueue.o */
/* $EndIf */
This is used exactly where the example dictates: to pick a socket engine from the socketengine.cpp.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8308 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 20:10:46 +00:00
brain
ab6a7318e3 Remove the need for a bunch of the hard coded arrays/hashes by scanning the src/ dir for tag comments, like in modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8307 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 19:53:23 +00:00
brain
6ded0e838f Big obvious comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8306 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 18:29:23 +00:00
brain
8e5bd0e5d6 Comment all this, and tweak it a little
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8305 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 18:25:37 +00:00
brain
4fd09d8d67 *POSSIBLE BREAKAGE WARNING* new (currently undocumented) buildsystem that builds an operating system specific makefile from a set of hashes/arrays in configure that are OS independent
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8304 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 18:13:45 +00:00
w00t
aef2031c6b Fix this from an experiment I was playing with :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8301 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 15:12:58 +00:00
w00t
5d5285f24b Move cmd_*.cpp to src/commands/. Not done in the nicest of ways yet, but ah well :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8299 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-22 14:13:48 +00:00
brain
1cc2417372 This should be the correct set of tweaks to add user_resolver.cpp.
Maybe as my project for later, this should be an automated process.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8207 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 21:25:49 +00:00
brain
23feae957d Merge in nenolod's unified build patch from bug #413, thanks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8147 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-11 21:22:00 +00:00
brain
aadb840d93 Add -lunwind to libraries on openbsd to fix some compile issues (thanks nenolod)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8119 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-04 21:26:52 +00:00
special
64f5e9a893 Added support for subdirectories in module directories (for organization). I hate perl.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8039 e03df62e-2008-0410-955e-edbf42e46eb7
2007-09-15 10:07:23 +00:00