From 0583769c423c5b2ed1a6b9c2abfdf268f7c47c7b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 22 Aug 2012 21:27:56 +0900 Subject: [PATCH] Check intptr_t using C++ compiler Patch from Stephen Ludin --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index d4bac5a..ee1b176 100644 --- a/configure.ac +++ b/configure.ac @@ -169,6 +169,7 @@ AM_CONDITIONAL([HAVE_EPOLL], [ test "x${have_epoll}" = "xyes" ]) AC_CHECK_FUNCS([kqueue], [have_kqueue=yes]) AM_CONDITIONAL([HAVE_KQUEUE], [test "x${have_kqueue}" = "xyes"]) +AC_LANG_PUSH(C++) AC_MSG_CHECKING([whether struct kevent.udata is intptr_t]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include @@ -185,6 +186,7 @@ if test "x$kevent_udata_intptr_t" = "xyes"; then AC_DEFINE([KEVENT_UDATA_INTPTR_T], [1], [Define to 1 if struct kevent.udata is intptr_t]) fi +AC_LANG_POP() if test "x$maintainer_mode" != "xno"; then CFLAGS="$CFLAGS -Wall -Wextra -Werror"