ERR: Search for gethostbyname which is the one needed

This commit is contained in:
Andy Cedilnik 2003-05-14 08:17:06 -04:00
parent 02f7cfbcbe
commit ce0f0838e1
1 changed files with 2 additions and 2 deletions

View File

@ -98,10 +98,10 @@ ENDMACRO(CHECK_LIBRARY_EXISTS_CONCAT)
CHECK_LIBRARY_EXISTS_CONCAT("dl" dlopen HAVE_LIBDL)
CHECK_LIBRARY_EXISTS_CONCAT("ucb" gethostname HAVE_LIBUCB)
CHECK_LIBRARY_EXISTS_CONCAT("socket" connect HAVE_LIBSOCKET)
CHECK_LIBRARY_EXISTS("c" gethostname "" NOT_NEED_LIBNSL)
CHECK_LIBRARY_EXISTS("c" gethostbyname "" NOT_NEED_LIBNSL)
IF(NOT NOT_NEED_LIBNSL)
CHECK_LIBRARY_EXISTS_CONCAT("nsl" gethostname HAVE_LIBNSL)
CHECK_LIBRARY_EXISTS_CONCAT("nsl" gethostbyname HAVE_LIBNSL)
ENDIF(NOT NOT_NEED_LIBNSL)
CHECK_LIBRARY_EXISTS_CONCAT("ws2_32" getch HAVE_LIBWS2_32)