Skip to content

Commit

Permalink
Use libsocket and libnsl as necessary on Solaris
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Nov 6, 2012
1 parent 008e396 commit c0f90d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Expand Up @@ -135,6 +135,9 @@ AS_COMPILER_FLAGS(CFLAGS,
-Wpointer-arith
-Wwrite-strings")

AC_CHECK_FUNC(socket, [], AC_CHECK_LIB(socket, socket, [], AC_ERROR(Cannot find socket() function)))
AC_CHECK_FUNC(inet_aton, [], AC_CHECK_LIB(nsl, inet_aton, [], AC_ERROR(Cannot find inet_aton() function)))

AC_ENABLE_SHARED
AC_DISABLE_STATIC

Expand Down

0 comments on commit c0f90d0

Please sign in to comment.