From: Sadie Powell Date: Sun, 28 Feb 2021 19:54:12 +0000 (+0000) Subject: Warn users of old compiler versions about the upcoming version bump. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=384c880cc67fef92599a47ffab45af0c4c8f78f6;p=user%2Fhenk%2Fcode%2Finspircd.git Warn users of old compiler versions about the upcoming version bump. --- diff --git a/configure b/configure index a980aee98..63256f87a 100755 --- a/configure +++ b/configure @@ -308,6 +308,20 @@ to Perl v5.26 or newer. EOW } +# Warn about compiler versions that will not be supported in the future. +my %future_compilers = ( + AppleClang => version->parse('10.0'), + Clang => version->parse('5.0'), + GCC => version->parse('7.0'), +); +if (exists $future_compilers{$compiler{NAME}} && $compiler{VERSION} lt $future_compilers{$compiler{NAME}}) { + print_warning <<"EOW"; +You are building InspIRCd with $compiler{NAME} v$compiler{VERSION}. This is very old and +will not be supported by the next major version of InspIRCd. Please consider +updating to $compiler{NAME} v$future_compilers{$compiler{NAME}} or newer. +EOW +} + # Check that the user actually wants this version. if (defined $version{REAL_LABEL}) { print_warning <<'EOW';