]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Configuration errors now go to the error log
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 30 May 2005 23:58:24 +0000 (23:58 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 30 May 2005 23:58:24 +0000 (23:58 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1575 e03df62e-2008-0410-955e-edbf42e46eb7

configure
src/inspircd.cpp

index 71f72d6971b90eeaf175e196bab95b3fd5e661d8..0739a3b77a355c1710c7e2619fcd86dbecd00586 100755 (executable)
--- a/configure
+++ b/configure
@@ -189,6 +189,11 @@ Your operating system is: \033[1;32m$config{OSNAME}\033[0m ($wholeos), fdmax: $c
 $config{CHANGE_COMPILER} = "n";
 print "I have detected the following compiler: \033[1;32m$config{CC}\033[0m (version \033[1;32m$config{GCCVER}.$config{GCC34}\033[0m)\n";
 
+if ($config{GCCVER} < 3)
+{
+       print "\033[1;32mIMPORTANT!\033[0m A GCC 2.x compiler has been detected, and
+should NOT be used. You should probably specify a newer compiler.\n";
+}
 yesno(CHANGE_COMPILER,"Do you want to change the compiler?");
 if ($config{CHANGE_COMPILER} =~ /y/i)
 {
index 70aa4326cc9eff2d4a79704b57037c4390e7735f..3ec24e38f7cca6ac13e037f778f74e398c712808 100644 (file)
@@ -269,6 +269,7 @@ void ReadConfig(bool bail, userrec* user)
        if (!LoadConf(CONFIG_FILE,&config_f,&errstr))
        {
                errstr.seekg(0);
+               log(DEFAULT,"There were errors in your configuration:\n%s",errstr.str().c_str());
                if (bail)
                {
                        printf("There were errors in your configuration:\n%s",errstr.str().c_str());