summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2003-09-27 18:58:11 +0000
committerfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2003-09-27 18:58:11 +0000
commit71747e6a92ea79e4d3861cab05faa1600311c4f1 (patch)
tree1f90906dba84cf3e026326a0e888e8735cf66d2c
parent0f7cb413728742c3bd114bee728e047cc0753b21 (diff)
Added Support for GCC 2 back.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@190 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index aad323d85..3d2dc5fb5 100755
--- a/configure
+++ b/configure
@@ -56,6 +56,7 @@ make >> /dev/null
cd ..
ME=`pwd`
+GCCVER=`gcc -dumpversion | cut -c 1`
CONFIG_DIR=$ME/conf
MODULE_DIR=$ME/modules
MAX_CLIENT=`fdscount/fdcounter`
@@ -329,6 +330,7 @@ echo -e "\033[0;37mMax User Channels\033[1;32m\t\t$MAX_CHANNE"
echo -e "\033[0;37mMax nickname length:\033[1;32m\t\t$NICK_LENGT"
echo -e "\033[0;37mMax channel length:\033[1;32m\t\t$CHAN_LENGT"
echo -e "\033[0;37mMax mode length:\033[1;32m\t\t$MAXI_MODES"
+echo -e "\033[0;37mGCC Version Found:\033[1;32m\t\t$GCCVER"
echo -e "\033[0;37m"
echo "Writing cache file for future ./configures ..."
@@ -348,6 +350,9 @@ echo "Writing include/inspircd_config.h ..."
echo "/* Auto generated by configure, do not modify! */" >include/inspircd_config.h
echo "" >>include/inspircd_config.h
+if [ "$GCCVER" -eq "3" ] ; then
+echo "#define GCC3" >>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