]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - configure
Fixed a little bug that would come back to bite us when gcc3.5 comes out...
[user/henk/code/inspircd.git] / configure
index 24e6c6de1c3951f3e851139bbc6239dd77fbeaec..6f54c538698fe10f28636c94cc38c82742f1fc35 100755 (executable)
--- a/configure
+++ b/configure
@@ -395,8 +395,8 @@ 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;37mOptimation Flag:\033[1;32m\t\t$OPTIMISATI"
+echo -e "\033[0;37mGCC Version Found:\033[1;32m\t\t$GCCVER.$GCC34"
+echo -e "\033[0;37mOptimatizaton Flag:\033[1;32m\t\t$OPTIMISATI"
 echo -e "\033[0;37m"
 
 echo "Writing cache file for future ./configures ..."
@@ -427,9 +427,9 @@ echo "/* Auto generated by configure, do not modify! */" >include/inspircd_confi
 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
+       if [ "$GCC34" -gt "3" ] ; then
+               echo "#define GCC34" >>include/inspircd_config.h
+       fi
 fi
 echo "#define SYSLOG_FACILITY LOG_DAEMON" >>include/inspircd_config.h
 echo "#define SYSLOG_LEVEL LOG_NOTICE" >>include/inspircd_config.h