From 4e865f22598b6bfa9131fb487af29a1c8a8a1561 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 18 May 2005 20:01:34 +0000 Subject: Fixes for solaris git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1431 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 5152dc94d..2832f5554 100755 --- a/configure +++ b/configure @@ -32,7 +32,7 @@ $config{USE_EPOLL} = "y"; # epoll enabled 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} = `uname -s`); # Operating System Name +chomp($config{OSNAME} = `/bin/uname -s`); # Operating System Name if (!$config{OSNAME}) { $config{OSNAME} = "Unknown"; # For use when uname fails. @@ -383,7 +383,7 @@ sub getosflags { $config{FLAGS} = "-fPIC -frtti $OPTIMISATI -Woverloaded-virtual $config{OPTIMISATI}"; $config{MAKEPROG} = "make"; } - if ($config{OSNAME} eq "SunOS") { + if ($config{OSNAME} =~ /SunOS/) { # solaris/sunos needs these $config{LDLIBS} = $config{LDLIBS} . " -lsocket -lnsl"; } @@ -437,7 +437,7 @@ sub writefiles { #define MAXBUF 514 EOF - if ($config{OSNAME} eq "SunOS") { + if ($config{OSNAME} =~ /SunOS/) { print FILENAME "#define IS_SOLARIS"; } if ($config{GCCVER} > 3) { -- cgit v1.2.3