X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=configure;h=5873961ecab57515107ad6ffe359b2e391862819;hb=4f79296bc078c4e0d615abbf2da6b19f5164acbd;hp=6fba700ceb4e4ce4f5043abb0b2ee908ccdc4bb5;hpb=02267976f636e3c4fffc8732a949b4777a771ca2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/configure b/configure index 6fba700ce..5873961ec 100755 --- a/configure +++ b/configure @@ -153,12 +153,12 @@ chomp($config{HAS_OPENSSL} = `pkg-config --modversion openssl 2>/dev/null`); chomp(our $gnutls_ver = $config{HAS_GNUTLS}); chomp(our $openssl_ver = $config{HAS_OPENSSL}); -$config{USE_GNUTLS} = "n"; +$config{USE_GNUTLS} = 0; if (defined $opt_use_gnutls) { $config{USE_GNUTLS} = "y"; # Use gnutls. } -$config{USE_OPENSSL} = "n"; # Use openssl. +$config{USE_OPENSSL} = 0; # Use openssl. if (defined $opt_use_openssl) { $config{USE_OPENSSL} = "y"; @@ -281,6 +281,21 @@ STOP print "\e[0m\n\n"; print "The following compiler has been detected: \e[1;32m$cxx{NAME} $cxx{VERSION}\e[0m ($config{CXX})\n\n"; + # Check that the user actually wants this version. + if (index($version, '+') != -1) { + print <<"EOW" ; +\e[1;31mWARNING!\e[0m You are building a development version. This contains code which has +not been tested as heavily and may contain various faults which could seriously +affect the running of your server. It is recommended that you use a stable +version instead. + +You can obtain the latest stable version from https://github.com/inspircd/inspircd/releases +or by running `git checkout insp20` if you are installing from Git. + +EOW + exit 1 unless prompt_bool(1, 'I understand this warning and want to continue anyway.', 0); + } + # Directory Settings.. my $tmpbase = $config{BASE_DIR}; $config{BASE_DIR} = prompt_dir(1, 'What directory do you wish to install the InspIRCd base?', $config{BASE_DIR});