configure script update to make it build on win32/mingw

This commit is contained in:
Arvid Norberg 2008-04-27 23:19:42 +00:00
parent 8d5812011e
commit 357795bb17
1 changed files with 4 additions and 3 deletions

View File

@ -96,9 +96,10 @@ dnl try different ways of resolving gethostbyname
AC_CHECK_FUNC(gethostbyname, ,
AC_CHECK_LIB(resolv, gethostbyname, ,
AC_CHECK_LIB(nsl, gethostbyname, ,
AC_CHECK_LIB(ws2_32, main, ,
AC_CHECK_LIB(wsock32, main, ,
AC_MSG_ERROR([gethostbyname not found. Stopped.])))))
AC_CHECK_LIB(ws2_32, main,
AC_CHECK_LIB(wsock32, main, [LIBS="$LIBS -lws2_32 -lwsock32";] ,
AC_MSG_ERROR([wsock32 not found. Stopped.])) ,
AC_MSG_ERROR([gethostbyname not found. Stopped.]))))
)
dnl find out what kind of logging to use