]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Added Support for GCC 2 back.
authorfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 27 Sep 2003 18:58:11 +0000 (18:58 +0000)
committerfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 27 Sep 2003 18:58:11 +0000 (18:58 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@190 e03df62e-2008-0410-955e-edbf42e46eb7

configure

index aad323d85e094b4a7680caa6e200d129e363edf2..3d2dc5fb5087ca5d5db10979c1dc0ed43f780eec 100755 (executable)
--- 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