summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-25 05:54:33 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-03-25 05:54:33 +0000
commita0ef1070aa77fec38d6bf5e162f5667736c56b1f (patch)
tree6369e2e3369b546f4a6319230189ff95b6907ee9 /configure
parent71552d40b60e57b8658d7660df5b9145af4d03af (diff)
Added detection for gcc 3.4... where they changed the namespaces again.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@901 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index e9e006bca..24e6c6de1 100755
--- a/configure
+++ b/configure
@@ -14,6 +14,7 @@ echo "Configuring default values..."
ME=`pwd`
GCCVER=`gcc -dumpversion | cut -c 1`
+GCC34=`gcc -dumpversion | cut -c 3`
CONFIG_DIR=$ME/conf
MODULE_DIR=$ME/modules
BINARY_DIR=$ME/bin
@@ -417,6 +418,7 @@ echo "NICK_LENGT=\"$NICK_LENGT\"" >> .config.cache
echo "MAXI_MODES=\"$MAXI_MODES\"" >> .config.cache
echo "OPTIMITEMP=\"$OPTIMITEMP\"" >> .config.cache
echo "OPTIMISATI=\"$OPTIMISATI\"" >> .config.cache
+echo "GCC34=\"$GCC34\"" >> .config.cache
echo "COPY_CONF=\"$COPY_CONF\"" >> .config.cache
echo "Writing include/inspircd_config.h ..."
@@ -426,6 +428,9 @@ echo "" >>include/inspircd_config.h
if [ "$GCCVER" -eq "3" ] ; then
echo "#define GCC3" >>include/inspircd_config.h
fi
+if [ "$GCC34" -eq "3.4" ] ; then
+echo "#define GCC34" >>include/inspircd_config.h
+fi
echo "#define SYSLOG_FACILITY LOG_DAEMON" >>include/inspircd_config.h
echo "#define SYSLOG_LEVEL LOG_NOTICE" >>include/inspircd_config.h
echo "#define CONFIG_FILE \"$CONFIG_DIR/inspircd.conf\"" >>include/inspircd_config.h