summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-29 00:53:04 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-29 00:53:04 +0000
commit0e79cbf8ba1bd3aa2ae8cc552a73b66a13bd4315 (patch)
treec6e1a31a88b8f1a24341558c604037bf1430ae01
parent3df76b0d28a2beb6e8827bf90e253528f4977c49 (diff)
Updated for test gcc4 compatibility
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1253 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure13
1 files changed, 10 insertions, 3 deletions
diff --git a/configure b/configure
index fd532cb51..3bf91a2ca 100755
--- a/configure
+++ b/configure
@@ -364,10 +364,17 @@ sub writefiles {
#define MAXBUF 514
EOF
- if ($config{GCCVER} == 3) {
+ if ($config{GCCVER} > 3) {
print FILEHANDLE "#define GCC3\n";
- if ($config{GCC34} > 3) {
- print FILEHANDLE "#define GCC34\n";
+ print FILEHANDLE "#define GCC34\n";
+ }
+ else
+ {
+ if ($config{GCCVER} == 3) {
+ print FILEHANDLE "#define GCC3\n";
+ if ($config{GCC34} > 3) {
+ print FILEHANDLE "#define GCC34\n";
+ }
}
}
if ($config{HAS_STRLCPY} eq "true") {