about summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorSander van der Burg <s.vanderburg@tudelft.nl>2009-10-08T14·50+0000
committerSander van der Burg <s.vanderburg@tudelft.nl>2009-10-08T14·50+0000
commit53a4981fa28a9f13758554b643c06e871ede8dbd (patch)
tree0a3aa72306d7c6882483ef920f7c055b5b9f1069 /configure.ac
parent18f0ff003d711f88a8682131108b101debec3737 (diff)
Added optional parameter which adds -lnsl -lsocket to make the Nix package manager work on OpenSolaris
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index d1cfe2fbf261..b5c24743449f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,6 +76,12 @@ if test "$sys_name" = "cygwin"; then
     AC_DEFINE(CANNOT_DELETE_OPEN_FILES, 1, [Whether it is impossible to delete open files.])
 fi
 
+# Solaris-specific stuff.
+if test "$sys_name" = "sunos"; then
+    # Solaris requires -lsocket -lnsl for network functions
+    ADDITIONAL_NETWORK_LIBS="-lsocket -lnsl"
+    AC_SUBST(ADDITIONAL_NETWORK_LIBS)
+fi
 
 AC_PROG_CC
 AC_PROG_CXX