diff options
-rwxr-xr-x | configure | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |