summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2014-01-29 10:08:28 +0000
committerNanang Izzuddin <nanang@teluu.com>2014-01-29 10:08:28 +0000
commit17414be78d49c9a7651f11a4ab390b28672645ef (patch)
tree39c4a81bf7e2dac10f968d33443beb5374a20ad7 /aconfigure.ac
parentb648dafe05dd3ba3b830435db4af3e3ee3620609 (diff)
Misc (re #1630): Modified configure script to only include libnsl if needed, e.g: on Solaris networking functions are in libnsl (thanks Jeremy Laine for the patch).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4721 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/aconfigure.ac b/aconfigure.ac
index 20467f2c..1a137b6e 100644
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -113,10 +113,10 @@ AC_CHECK_LIB(ole32,puts)
AC_CHECK_LIB(winmm,puts)
AC_CHECK_LIB(socket,puts)
AC_CHECK_LIB(rt,puts)
-AC_CHECK_LIB(nsl,puts)
AC_CHECK_LIB(m,sin)
AC_CHECK_LIB(uuid,uuid_generate)
AC_CHECK_LIB(uuid,uuid_generate,[ac_has_uuid_lib=1])
+AC_SEARCH_LIBS(gethostbyname,nsl)
AC_MSG_RESULT([Setting PJ_M_NAME to $target_cpu])
AC_DEFINE_UNQUOTED(PJ_M_NAME,["$target_cpu"])