summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-10-25 01:16:02 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-10-25 01:16:02 +0200
commit0035820e13a915a3bf1a440fcedf8ce25fe37a22 (patch)
tree30eac358bb60f252f33023c2a91ca34f30b8a945 /configure
parent6cc3e6be818f8d15c41e32787ba6885d501e8ed4 (diff)
parent92e84bea6186b8d5ef44cee18b75d0bb633afb8e (diff)
Merge pull request #940 from SaberUK/insp20+fix-makefile
[2.0] Fix some small bugs in the makefile template.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 7 insertions, 5 deletions
diff --git a/configure b/configure
index 33e9b4c50..6a8e28fe9 100755
--- a/configure
+++ b/configure
@@ -260,6 +260,11 @@ if ($config{OSNAME} =~ /darwin/i)
$config{STARTSCRIPT} = "org.inspircd.plist"; # start script for OSX.
$config{CC} = "xcrun clang++"; # C++ compiler for OSX.
}
+elsif ($config{OSNAME} =~ /freebsd/i)
+{
+ chomp(my $fbsd_version = `uname -r`);
+ $config{CC} = $fbsd_version ge '10.0' ? 'clang++' : 'g++';
+}
else
{
$config{CC} = "g++"; # C++ compiler
@@ -281,11 +286,8 @@ if ($config{HAS_OPENSSL} =~ /^([-[:digit:].]+)(?:[a-z])?(?:\-[a-z][0-9])?/) {
}
if (($config{GCCVER} eq "") || ($config{GCCMINOR} eq "")) {
- if ($config{IS_DARWIN} eq "YES") {
- print $config{CC} . " was not found! You require clang++ (the LLVM C++ compiler, part of the OSX developer tools) to build InspIRCd!\n";
- } else {
- print $config{CC} . " was not found! You require g++ (the GNU C++ compiler, part of GCC) to build InspIRCd!\n";
- }
+ print "`$config{CC}` was not found! A C++ compiler is required to build InspIRCd!\n";
+ print "You can pass a custom compiler to $0 using --with-cc=[name].\n";
exit;
}