From: frostycoolslug Date: Sat, 27 Sep 2003 18:58:11 +0000 (+0000) Subject: Added Support for GCC 2 back. X-Git-Tag: v2.0.23~11242 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=71747e6a92ea79e4d3861cab05faa1600311c4f1;p=user%2Fhenk%2Fcode%2Finspircd.git Added Support for GCC 2 back. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@190 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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