* [PATCH 1/2] Fix struct ip_mreq detection
@ 2010-10-19 15:31 Tristan Colgate
2010-10-19 18:52 ` Andy Wingo
0 siblings, 1 reply; 3+ messages in thread
From: Tristan Colgate @ 2010-10-19 15:31 UTC (permalink / raw)
To: guile-devel
Probably not the ideal fix, I tried using AC_CHECK_TYPE and adding
netinet/in.h but it didn't work. I've just copied the approach used
for LINGER
--
Tristan Colgate-McFarlane
----
"You can get all your daily vitamins from 52 pints of guiness, and a
glass of milk"
configure.ac | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 34ec603..ec82791 100644
--- a/configure.ac
+++ b/configure.ac
@@ -673,7 +673,22 @@ AC_CHECK_TYPE(socklen_t, ,
#endif
#include <sys/socket.h>
])
-AC_CHECK_TYPE(struct ip_mreq)
+
+AC_MSG_CHECKING(for struct ip_mreq)
+AC_CACHE_VAL(scm_cv_struct_ip_mreq,
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>]],
+ [[struct ip_mreq req;]])],
+ [scm_cv_struct_ip_mreq="yes"],
+ [scm_cv_struct_ip_mreq="no"]))
+AC_MSG_RESULT($scm_cv_struct_ip_mreq)
+if test $scm_cv_struct_ip_mreq = yes; then
+ AC_DEFINE([HAVE_STRUCT_IP_MREQ], 1,
+ [Define this if your system defines struct ip_mreq, for use with the
+ setsockopt system call.])
+fi
GUILE_HEADER_LIBC_WITH_UNISTD
--
1.7.2.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-20 21:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-19 15:31 [PATCH 1/2] Fix struct ip_mreq detection Tristan Colgate
2010-10-19 18:52 ` Andy Wingo
[not found] ` <AANLkTik9+GeGDexi4PozcDPtF-RSZAtwKg91mkNxZaV9@mail.gmail.com>
[not found] ` <AANLkTimJ3wo_cTsBOBacu8e7bWVa5s2BQ1f1swh94F1J@mail.gmail.com>
2010-10-20 21:16 ` Andy Wingo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).