[Dillo-dev]Test for socklen_t in configure.in
Hi there, Our configure.in is in need of a test for socklen_t. I thought this one could be a good one: dnl ------------------- dnl Check for socklen_t dnl ------------------- dnl AC_MSG_CHECKING(for socklen_t) AC_TRY_COMPILE([#include <sys/types.h> #include <sys/socket.h> socklen_t x; ], [], [AC_MSG_RESULT(yes)], [ AC_TRY_COMPILE([#include <sys/types.h> #include <sys/socket.h> int accept(int, struct sockaddr *, size_t *); ], [], [ AC_MSG_RESULT(size_t) AC_DEFINE(socklen_t, size_t)], [ AC_MSG_RESULT(int) AC_DEFINE(socklen_t, int)])]) but my autoheader complains... Can someone please complete the patch, I'm currently chasing a segfault bug I found... TIA Jorge.-
On Wed, 28 Apr 2004, Jorge Arellano Cid wrote:
Hi there,
Our configure.in is in need of a test for socklen_t. I thought this one could be a good one:
dnl ------------------- dnl Check for socklen_t dnl ------------------- dnl [...]
but my autoheader complains...
Can someone please complete the patch, I'm currently chasing a segfault bug I found...
Fixed, and commited. It only requires testing, specially on non GNU/Linux environments, specially the *BSD ones. Please tell me how it works. Cheers Jorge.-
Hi, works fine here on a pretty current DragonFly BSD machine. Relevant lines from config.log: configure:3666: checking for socklen_t configure:3692: gcc -c -g -O2 -I/usr/local/include conftest.c >&5 configure:3695: $? = 0 configure:3698: test -s conftest.o configure:3701: $? = 0 configure:3754: result: socklen_t <snip> ac_cv_prog_make_make_set=yes ac_cv_socklen_t=socklen_t ac_cv_target= Cheers, Johannes On Fri, Apr 30, 2004 at 08:30:37AM -0400, Jorge Arellano Cid wrote:
On Wed, 28 Apr 2004, Jorge Arellano Cid wrote:
Hi there,
Our configure.in is in need of a test for socklen_t. I thought this one could be a good one:
dnl ------------------- dnl Check for socklen_t dnl ------------------- dnl [...]
but my autoheader complains...
Can someone please complete the patch, I'm currently chasing a segfault bug I found...
Fixed, and commited. It only requires testing, specially on non GNU/Linux environments, specially the *BSD ones.
Please tell me how it works.
Cheers Jorge.-
_______________________________________________ Dillo-dev mailing list Dillo-dev@lists.auriga.wearlab.de http://lists.auriga.wearlab.de/cgi-bin/mailman/listinfo/dillo-dev
Hi, Sorry, I just realized that a "pre" tarball is required to test the socklen_t detection (else it depends on the local machine's installed auto* tools). I'm preparing it, stay tuned. Cheers Jorge.-
participants (2)
-
Johannes Hofmann
-
Jorge Arellano Cid