From 5adcd45748d040770e2eabd7799f88c046c4afc5 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 19 May 2005 03:08:57 +0000 Subject: What openbsd muppet decided to rename gcc3?! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1448 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 6153eb110..7b51640f7 100755 --- a/configure +++ b/configure @@ -33,6 +33,7 @@ chomp($config{MAX_CLIENT_T} = `sh -c \"ulimit -n\"`); # FD Limit chomp($config{GCCVER} = `gcc -dumpversion | cut -c 1`); # Major GCC Version chomp($config{GCC34} = `gcc -dumpversion | cut -c 3`); # Minor GCC Version chomp($config{OSNAME} = `/bin/uname`); # Operating System Name +$config{CC} = `g++`; # C++ compiler if ((!$config{OSNAME}) || ($config{OSNAME} eq "")) { chomp($config{OSNAME} = `/usr/bin/uname`); @@ -287,6 +288,7 @@ print "\033[0mMax channel length:\033[1;32m\t\t$config{CHAN_LENGT}\n"; print "\033[0mMax mode length:\033[1;32m\t\t$config{MAXI_MODES}\n"; print "\033[0mGCC Version Found:\033[1;32m\t\t$config{GCCVER}.$config{GCC34}\n"; print "\033[0mOptimatizaton Flag:\033[1;32m\t\t$config{OPTIMISATI}\033[0m\n\n"; +print "\033[0mCompiler program:\033[1;32m\t\t$config{CC}\033[0m\n\n"; makecache(); writefiles(); @@ -381,6 +383,9 @@ sub getosflags { $config{LDLIBS} = "-Ldl"; $config{FLAGS} = "-fPIC -frtti $OPTIMISATI -Woverloaded-virtual $config{OPTIMISATI}"; $config{MAKEPROG} = "gmake"; + if ($config{OSNAME} eq "OpenBSD") { + $config{CC} = "eg++"; + } } else { $config{LDLIBS} = "-ldl"; $config{FLAGS} = "-fPIC -frtti $OPTIMISATI -Woverloaded-virtual $config{OPTIMISATI}"; -- cgit v1.2.3