aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2009-04-13 11:11:57 +0000
committerStefan Bühler <stbuehler@web.de>2009-04-13 11:11:57 +0000
commit36734bc41f20ad2fa63f63089ebccfc9b7291e61 (patch)
treef34c518858b136f2c5efa4f925578753d32e43b4
parentf3ea7f34be83dd2dcaeab6f7bb6feb8dc43f4d02 (diff)
downloadspawn-fcgi-36734bc41f20ad2fa63f63089ebccfc9b7291e61.tar.gz
spawn-fcgi-36734bc41f20ad2fa63f63089ebccfc9b7291e61.zip
Add check to link against socket/nsl if needed (fixes #1960)
git-svn-id: svn://svn.lighttpd.net/spawn-fcgi/trunk@43 4a9f3682-ca7b-49a8-9a55-ba4640e46f83
-rw-r--r--NEWS1
-rw-r--r--configure.ac6
2 files changed, 6 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 479c348..5b49193 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,7 @@ NEWS
* Add homepage to README
* Add IPv6 support
* Fix problems with usernames starting with a digit and not existing uids; add warning if only user privs are dropped. (fixes #1959)
+ * Add check to link against socket/nsl if needed (fixes #1960)
- 1.6.1 - 2009-03-29
diff --git a/configure.ac b/configure.ac
index f23a7ec..b8a60ac 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,6 +31,10 @@ AC_HEADER_TIME
AC_CHECK_TYPES(socklen_t,,,[#include <sys/types.h>
#include <sys/socket.h>])
+## solaris needs -lsocket -lnsl
+AC_SEARCH_LIBS([socket],[socket])
+AC_SEARCH_LIBS([inet_addr],[nsl socket])
+
# Checks for library functions.
AC_FUNC_CHOWN
AC_FUNC_FORK
@@ -40,7 +44,7 @@ AC_FUNC_STAT
AC_CHECK_FUNCS([dup2 memset putenv select socket strerror strtol issetugid inet_pton])
-dnl Check for IPv6 support
+# Check for IPv6 support
AC_ARG_ENABLE(ipv6,
AC_HELP_STRING([--disable-ipv6],[disable IPv6 support]),