From 71c86fd9b7103008bce3bdd9ae011db08dd64c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Tue, 17 Jun 2008 12:29:46 +0200 Subject: Don't use C++ for socklen_t tests. I think socklen_t was being tested with C++ to improve the warnings, but as we don't need a C++ compiler, it's not a good idea to use it. Also, with libtool 2.2 the C++ compiler is not tested by default anymore, so the macro would simply fail. On GNU/Linux and FreeBSD the test should work just as fine as it is. If you have problems on any other operating systems, please report and we'll see to fix it. --- m4/_xine.m4 | 2 -- 1 file changed, 2 deletions(-) (limited to 'm4') diff --git a/m4/_xine.m4 b/m4/_xine.m4 index 930703bbb..3ebbb028d 100644 --- a/m4/_xine.m4 +++ b/m4/_xine.m4 @@ -542,7 +542,6 @@ _ACEOF dnl Check for the type of the third argument of getsockname AC_DEFUN([AC_CHECK_SOCKLEN_T], [ AC_MSG_CHECKING(for socklen_t) - AC_LANG_PUSH(C++) AC_CACHE_VAL(ac_cv_socklen_t, [ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include @@ -558,7 +557,6 @@ getsockname(0,(struct sockaddr*)0, &a);]])], [ac_cv_socklen_t=int],[ac_cv_socklen_t=size_t]) fi ]) - AC_LANG_POP([C++]) AC_MSG_RESULT($ac_cv_socklen_t) if test "$ac_cv_socklen_t" != "socklen_t"; then -- cgit v1.2.3