From 004335d118c65662e406ded71ab2842af330029e Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 18 May 2005 19:55:37 +0000 Subject: updated for solaris -lsocket / -lnsl git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1429 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 34e18cc5c..ee2f00a8b 100755 --- a/configure +++ b/configure @@ -383,6 +383,10 @@ sub getosflags { $config{FLAGS} = "-fPIC -frtti $OPTIMISATI -Woverloaded-virtual $config{OPTIMISATI}"; $config{MAKEPROG} = "make"; } + if ($config{OSNAME} eq "SunOS") { + # solaris/sunos needs these + $config{LDLIBS} = $config{LDLIBS} . " -lsocket -lnsl"; + } } sub is_dir { @@ -433,6 +437,9 @@ sub writefiles { #define MAXBUF 514 EOF + if ($config{OSNAME} eq "SunOS") + print FILENAME "#define IS_SOLARIS"; + } if ($config{GCCVER} > 3) { print FILEHANDLE "#define GCC3\n"; print FILEHANDLE "#define GCC34\n"; -- cgit v1.2.3