192 Commits

Author SHA1 Message Date
special
0b72c64a03 Added the execruntime() function for Compile/Linker flags - executes shell commands at compile time rather than during configure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7458 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-17 08:26:25 +00:00
peavey
f2acdbc382 OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 17:30:04 +00:00
peavey
bab14f0dd2 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are auto skipped by svn.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 17:14:45 +00:00
brain
c36ea00019 Backport patch from stskeeps for checking success of gnutls cert generation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7435 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-11 19:50:26 +00:00
special
97590f9239 Added a prompt for certificate expiry time to openssl cert generation. Patch by yell0w
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7411 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-26 06:05:39 +00:00
special
ed7912c90f Fixed the order of fields in openssl certificate generation; this would make really broken certificates. Thanks to yell0w
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7410 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-26 05:22:03 +00:00
brain
cbb888a470 Allow for resizing of MAXBUF above/below 512 via non-interactive configure. (Some crazy mofo on the forums asked for this, good luck its your funeral :p)
THIS IS UNSUPPORTED BY US IF YOU CHANGE IT, WE WON'T EVEN TELL YOU HOW :)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7022 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-14 16:31:49 +00:00
brain
01daa1fc77 Add openssl cert generation prettyness, make it like our gnutls one. It seems that openssl doesnt support templating like gnutls, so we pipe the input in from configure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6952 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-10 13:53:16 +00:00
brain
3f8f4808f2 Fix for bug typo, dont let it creep into the release!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6892 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-05 20:53:26 +00:00
brain
f22b487249 Fix for feature request in bug #262, needs a bit of QA. Simpler prompting for gnutls cert generation in configure, we now use our nice configuration system to prompt for the more important details,
which we use to fill in a certtool template. Much nicer.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6890 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-05 20:07:25 +00:00
brain
a772b4dbf5 Add licensing headers to files which are missing them and make sure they are up to date in others (e.g. point at the developer page on the wiki not list names)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6759 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-07 21:01:01 +00:00
brain
c1f88cfa9c Addition of feature request outlined in bug #195, suggested by Bricker
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6602 e03df62e-2008-0410-955e-edbf42e46eb7
2007-02-19 19:57:41 +00:00
brain
ac8e7547b8 Fix typo reported by owine (bug #208)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6566 e03df62e-2008-0410-955e-edbf42e46eb7
2007-02-10 20:44:49 +00:00
w00t
3102dedbb8 New patch from BuildSmart for OS X support, not broken like the last one
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6473 e03df62e-2008-0410-955e-edbf42e46eb7
2007-02-01 12:14:54 +00:00
brain
ccd20043dd Fix for bug #187
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6441 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-26 17:17:24 +00:00
brain
25608bd1ad Add check for openssl >= 0.9.7, and fix for if the library cant be found at all
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6424 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-21 16:29:48 +00:00
brain
ae895cb010 Fix broken function vcheck() that checks one dot-delimited version string against another
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6422 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-21 16:25:33 +00:00
brain
aad77f47af Add extra macro pkgconfversion("packagename", "version");
dies if the version you specify isnt installed.
Also added to m_sqlite3:   pkgconfversion("sqlite3", "3.3")
Note: this will die at configuration time, not compilation time.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6421 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-21 16:06:10 +00:00
brain
f9e38155c6 Fix library detection flags (bad define put into the ldflags)
Change default flags from "-g" to "-O2 -g1". This takes us down from a build size of 350mb+ to 35mb, and still gives us the ability to backtrace! :)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6419 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-21 12:30:21 +00:00
brain
53a28836a2 Fix the commandline stuff up to actually work!
Also, fix 'locate' detection of files when pkg-config cant find them.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6415 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-20 22:49:54 +00:00
brain
1403bd4c85 If we're not in interactive mode, then we dont prompt interactively for the value.
We look for the configuration item in the commandline, --$package-includes="" or --$package-libs="" and use that.
If its not defined, we die() with a message to specify the path using that commandline item. This also applies to ./configure -modupdate.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6414 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-20 22:33:55 +00:00
brain
aca1b631d7 Additional feature, pass -DVERSION_PKGCONFMODNAME="xxx" to modules that use the pkgconfig detection macros (the modules can use this if they like)
Extra tweak/fix: Allow for configure cache values containing the = symbol


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6413 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-20 22:18:50 +00:00
brain
614618a21f And fix it so it works
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6412 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-20 22:05:11 +00:00
brain
0106c221c0 Better detection
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6411 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-20 22:03:42 +00:00
brain
f8706cb333 Add caching of all detected values :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6410 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-20 21:44:48 +00:00
brain
dff9228f24 Proritise cached value above a search
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6409 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-20 21:42:57 +00:00
brain
5784c43969 Fixes to make ./configure prompt for libs if all else fails (discussed earlier with w00t).
The values prompted for are cached, so if you specify them then ./configure -update wont prompt again for them


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6408 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-20 21:41:29 +00:00
brain
e75369a727 Add O_NOFOLLOW to file write call, which prevents following of symlinks making our temp file writing completely secure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6358 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-16 21:40:14 +00:00
brain
3446072b3e Move showhelp() into make/configure.pm
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6323 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 17:07:09 +00:00
brain
5ecbb6f80f Slightly decraqed configure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6322 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 16:46:24 +00:00
brain
4b508594ae Starting tidying up the configure script, and moving a lot of stuff into functions in the make/ dir
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6320 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 16:26:30 +00:00
brain
f6f45af59e Fix broken ./configure macros broken by introduction of an eval
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6316 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 02:19:27 +00:00
brain
72b28ac3df Output which module is executing the macro
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6314 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 00:54:04 +00:00
brain
55f4198a35 Formatting glitch
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6313 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 00:49:16 +00:00
brain
4f08be1ae8 Improved detail in configure, and two new functions exec() and eval() are more accountable
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6312 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 00:48:22 +00:00
brain
f9d43fcd9f Add eval() and exec() macros, that evaluate perl and execute commands at configure time, rather than delaying them with backticks till compile time. This picks up any errors sooner.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6311 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 00:39:29 +00:00
brain
fdabab1b82 Take out unneccessary chomp()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6310 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 00:15:28 +00:00
brain
3b98fdf9f3 Make the rpath() macro handle lines with multiple -L in them
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6309 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 00:15:09 +00:00
brain
7e014c9b8c Output for 'using defaults' when nothing of interest found
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6308 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-14 00:03:50 +00:00
brain
2e9951e823 Colour coding, tidying, and more verbose output to configure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6307 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-13 23:58:51 +00:00
brain
4f0e6377e8 Extra stuff to improve buildsystem, calculate lib and include dirs at configure time rather than at build time. This means that we can also throw errors at configure time if we cant find the libraries,
rather than erroring at buildtime like we used to.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6306 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-13 23:53:08 +00:00
brain
ad4d207905 Tidy up the buildsystem a lot by encapsulating repeated detection routines for lib dirs and header dirs in make/utilities.pm.
See the pl files in src/modules/extra for how to use the functions.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6305 e03df62e-2008-0410-955e-edbf42e46eb7
2007-01-13 23:29:40 +00:00