[PATCH libxtrans 2/3] xtrans.m4: replace deprecated AC_HAVE_LIBRARY with AC_CHECK_LIB
Gaetan Nadon
memsize at videotron.ca
Mon Dec 16 06:46:30 PST 2013
The #define HAVE_LIBWS2_32 is still done and the lib ws2_32 is
prepended to LIBS if found.
Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
xtrans.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xtrans.m4 b/xtrans.m4
index 352e654..f578b3f 100644
--- a/xtrans.m4
+++ b/xtrans.m4
@@ -29,7 +29,7 @@ AC_DEFUN([XTRANS_TCP_FLAGS],[
AC_SEARCH_LIBS(socket, [socket])
AC_SEARCH_LIBS(gethostbyname, [nsl])
if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
- AC_HAVE_LIBRARY([ws2_32])
+ AC_CHECK_LIB([ws2_32],[main])
fi
# Needs to come after above checks for libsocket & libnsl for SVR4 systems
--
1.7.9.5
More information about the xorg-devel
mailing list