summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-13 21:29:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-13 21:29:34 +0000
commit9c2f93089bbac577f69d7af67c707d32317f012a (patch)
tree9f2aa811661f9736e08ae813b9ae40ed9fafd740 /configure
parentaa5ff42284dc5af948f556bf169008fa2991ef84 (diff)
Fix configure stuff AGAIN.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5983 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure36
1 files changed, 20 insertions, 16 deletions
diff --git a/configure b/configure
index 184d5b389..f332e7395 100755
--- a/configure
+++ b/configure
@@ -1069,23 +1069,25 @@ sub dir_check {
}
sub getosflags {
- if ($config{OSNAME} =~ /BSD$/) {
- $config{LDLIBS} = "-lstdc++";
- $config{FLAGS} = "-fno-strict-aliasing -fPIC -Wall -Woverloaded-virtual $config{OPTIMISATI}";
+
+ $config{LDLIBS} = "-lstdc++";
+ $config{FLAGS} = "-fno-strict-aliasing -fPIC -Wall -Woverloaded-virtual $config{OPTIMISATI}";
+ $config{MAKEPROG} = "make";
+
+ if ($config{OSNAME} eq "OpenBSD") {
$config{MAKEPROG} = "gmake";
- if ($config{OSNAME} eq "OpenBSD") {
- chomp($foo = `eg++ -dumpversion | cut -c 1`);
- # theyre running the package version of gcc (eg++)... detect it and set up its version numbers.
- # if theyre not running this, configure lets the build continue but they probably wont manage to
- # compile as this standard version is 2.95.3!
- if ($foo ne "") {
- $config{CC} = "eg++";
- chomp($config{GCCVER} = `eg++ -dumpversion | cut -c 1`); # we must redo these if we change the compiler path
- }
- return "OpenBSD";
+ chomp($foo = `eg++ -dumpversion | cut -c 1`);
+ # theyre running the package version of gcc (eg++)... detect it and set up its version numbers.
+ # if theyre not running this, configure lets the build continue but they probably wont manage to
+ # compile as this standard version is 2.95.3!
+ if ($foo ne "") {
+ $config{CC} = "eg++";
+ chomp($config{GCCVER} = `eg++ -dumpversion | cut -c 1`); # we must redo these if we change the compiler path
}
- return $config{OSNAME};
- } else {
+ return "OpenBSD";
+ }
+
+ if ($config{OSNAME} =~ /Linux/) {
$config{LDLIBS} = "-ldl -lstdc++";
$config{FLAGS} = "-fno-strict-aliasing -fPIC -Wall -Woverloaded-virtual $config{OPTIMISATI}";
$config{FLAGS} .= " " . $ENV{CXXFLAGS} if exists($ENV{CXXFLAGS});
@@ -1106,7 +1108,6 @@ sub getosflags {
return "Cygwin-Static";
}
$config{FLAGS} .= " " . $ENV{CXXFLAGS} if exists($ENV{CXXFLAGS});
- return "Linux";
}
if ($config{OSNAME} =~ /SunOS/)
@@ -1116,6 +1117,7 @@ sub getosflags {
# nsl = dns stuff
# rt = POSIX realtime extensions
# resolv = inet_aton only (why isnt this in nsl?!)
+ $config{MAKEPROG} = "gmake";
$config{LDLIBS} = $config{LDLIBS} . " -lsocket -lnsl -lrt -lresolv";
return "Solaris";
}
@@ -1126,6 +1128,8 @@ sub getosflags {
$config{FLAGS} =~ s/-fPIC //;
return "MinGW";
}
+
+ return $config{OSNAME};
}
sub is_dir {