Commit 8ce7b821 authored by Eddie Kohler's avatar Eddie Kohler

Improve configury to allow build with gcc-4.8 on Mac OS X Yosemite.

parent 05020a53
......@@ -7,12 +7,13 @@
# undef __CHAR_UNSIGNED__
#endif
/* Define to byte order of target machine. */
#undef CLICK_BYTE_ORDER
#define CLICK_BIG_ENDIAN 4321
#define CLICK_LITTLE_ENDIAN 1234
#define CLICK_NO_ENDIAN 0
/* Define to byte order of target machine. */
#undef CLICK_BYTE_ORDER
/* Define to enable debugging support for Click scheduling. */
#undef CLICK_DEBUG_SCHEDULING
......
This diff is collapsed.
......@@ -571,9 +571,13 @@ dnl
dnl timestamps
dnl
AC_CHECK_HEADERS([time.h])
AC_CHECK_HEADERS_ONCE([time.h])
AC_CHECK_SIZEOF([struct timeval])
AC_CHECK_TYPES([struct timespec], have_timespec=yes, have_timespec=no)
AC_CHECK_TYPES([struct timespec], [have_timespec=yes], [have_timespec=no],
[AC_INCLUDES_DEFAULT
[#ifdef HAVE_TIME_H]
[# include <time.h>]
[#endif]])
if test "x$have_timespec" = xyes; then
AC_CHECK_SIZEOF([struct timespec])
fi
......@@ -638,7 +642,7 @@ dnl
dnl headers, event detection, dynamic linking
dnl
AC_CHECK_HEADERS([termio.h netdb.h sys/event.h pwd.h grp.h execinfo.h])
AC_CHECK_HEADERS_ONCE([termio.h netdb.h sys/event.h pwd.h grp.h execinfo.h])
CLICK_CHECK_POLL_H
AC_CHECK_FUNCS([pselect sigaction])
......@@ -700,7 +704,7 @@ dnl mmap
dnl
AC_LANG_C
AC_CHECK_HEADERS(sys/mman.h)
AC_CHECK_HEADERS_ONCE([sys/mman.h])
AC_FUNC_MMAP
AC_LANG_CPLUSPLUS
AC_CHECK_FUNCS(madvise)
......@@ -1114,7 +1118,7 @@ dnl
dnl kernel interfaces
dnl
AC_CHECK_HEADERS([ifaddrs.h linux/if_tun.h net/if_dl.h net/if_tap.h net/if_tun.h net/if_types.h net/bpf.h netpacket/packet.h])
AC_CHECK_HEADERS_ONCE([ifaddrs.h linux/if_tun.h net/if_dl.h net/if_tap.h net/if_tun.h net/if_types.h net/bpf.h netpacket/packet.h])
dnl
......
......@@ -72,12 +72,14 @@ if test "x$enable_user_multithread" = xyes; then
AC_SEARCH_LIBS([pthread_create], [pthread], [ac_have_libpthread=yes], [ac_have_libpthread=no])
AC_CHECK_HEADERS([pthread.h], [ac_have_pthread_h=yes], [ac_have_pthread_h=no])
if test "$ac_have_libpthread$ac_have_pthread_h" = yesyes; then
AC_DEFINE(HAVE_USER_MULTITHREAD)
if echo "$LIBS" | grep -e -lpthread >/dev/null 2>&1; then
PTHREAD_LIBS="-lpthread"
fi
AC_DEFINE([HAVE_USER_MULTITHREAD])
AC_CHECK_DECLS([pthread_setaffinity_np], [], [], [#define _GNU_SOURCE
#include <pthread.h>])
if echo "$LIBS" | grep -e -lpthread >/dev/null 2>&1; then
PTHREAD_LIBS="-lpthread"
fi
else
AC_MSG_ERROR([
AC_MSG_ERROR([
=========================================
Can't find -lpthread and/or <pthread.h>, so I can't compile with
......@@ -177,6 +179,7 @@ AC_ARG_ENABLE([int64],
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(size_t)
AC_CHECK_SIZEOF(ptrdiff_t)
AC_CHECK_SIZEOF([void *])
CLICK_CHECK_INTEGER_TYPES
CLICK_CHECK_ALIGNMENT
......@@ -194,9 +197,13 @@ dnl
dnl timestamps
dnl
AC_CHECK_HEADERS([time.h])
AC_CHECK_HEADERS_ONCE([time.h])
AC_CHECK_SIZEOF([struct timeval])
AC_CHECK_TYPES([struct timespec], have_timespec=yes, have_timespec=no)
AC_CHECK_TYPES([struct timespec], [have_timespec=yes], [have_timespec=no],
[AC_INCLUDES_DEFAULT
[#ifdef HAVE_TIME_H]
[# include <time.h>]
[#endif]])
if test "x$have_timespec" = xyes; then
AC_CHECK_SIZEOF([struct timespec])
fi
......@@ -230,18 +237,18 @@ dnl
dnl headers, event detection, dynamic linking
dnl
AC_CHECK_HEADERS([termio.h netdb.h sys/event.h pwd.h grp.h execinfo.h])
AC_CHECK_HEADERS_ONCE([termio.h netdb.h sys/event.h pwd.h grp.h execinfo.h])
CLICK_CHECK_POLL_H
AC_CHECK_FUNCS([pselect sigaction])
AC_CHECK_FUNCS([kqueue], [have_kqueue=yes])
if test "x$have_kqueue" = xyes; then
AC_CACHE_CHECK([whether EV_SET last argument is void *], [ac_cv_ev_set_udata_pointer],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
#include <sys/event.h>
#include <sys/time.h>]], [[struct kevent kev; EV_SET(&kev, 1, EVFILT_WRITE, EV_ADD, 0, 0, (void *) &kev);]])], [ac_cv_ev_set_udata_pointer=yes], [ac_cv_ev_set_udata_pointer=no])])
if test $ac_cv_ev_set_udata_pointer = yes; then
AC_DEFINE([HAVE_EV_SET_UDATA_POINTER], [1], [Define if the last argument to EV_SET has pointer type.])
AC_DEFINE([HAVE_EV_SET_UDATA_POINTER], [1], [Define if the last argument to EV_SET has pointer type.])
fi
fi
......@@ -265,12 +272,12 @@ dnl if test "$enable_userlevel" = yes; then
SOCKET_LIBS="$LIBS"; LIBS="$savelibs"
AC_CACHE_CHECK([whether accept() uses socklen_t], [ac_cv_accept_socklen_t],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
#include <sys/socket.h>
]], [[socklen_t sl; (void) accept(0, (struct sockaddr *) 0, &sl);]])],
ac_cv_accept_socklen_t=yes, ac_cv_accept_socklen_t=no)])
ac_cv_accept_socklen_t=yes, ac_cv_accept_socklen_t=no)])
if test "$ac_cv_accept_socklen_t" = yes; then
AC_DEFINE([HAVE_ACCEPT_SOCKLEN_T], [1], [Define if accept() uses socklen_t.])
AC_DEFINE([HAVE_ACCEPT_SOCKLEN_T], [1], [Define if accept() uses socklen_t.])
fi
dnl fi
AC_SUBST(SOCKET_LIBS)
......@@ -289,7 +296,7 @@ dnl mmap
dnl
AC_LANG_C
AC_CHECK_HEADERS(sys/mman.h)
AC_CHECK_HEADERS_ONCE([sys/mman.h])
AC_FUNC_MMAP
AC_LANG_CPLUSPLUS
AC_CHECK_FUNCS(madvise)
......@@ -344,7 +351,7 @@ AC_ARG_ENABLE(task-heap, [ --enable-task-heap use heap for task list], :,
if test $enable_task_heap = yes -a $enable_stride = yes; then
AC_DEFINE(HAVE_TASK_HEAP)
elif test $enable_task_heap = yes; then
AC_MSG_WARN([
AC_MSG_WARN([
=========================================
Ignoring --enable-task-heap, which is incompatible with --disable-stride.
......@@ -367,14 +374,14 @@ AC_ARG_ENABLE(valgrind, [ --enable-valgrind extra support for debugging w
if test $enable_valgrind = yes; then
AC_CHECK_HEADERS(valgrind/memcheck.h, ac_found_valgrind_memcheck_h=yes, ac_found_valgrind_memcheck_h=no)
if test $ac_found_valgrind_memcheck_h = no; then
AC_MSG_ERROR([
AC_MSG_ERROR([
=========================================
Can't find Valgrind header file 'valgrind/memcheck.h'.
Try again without '--enable-valgrind'.
=========================================])
dnl ' fix syntax highlighting
dnl ' fix syntax highlighting
fi
AC_DEFINE([HAVE_VALGRIND], [1], [Define if Click should use Valgrind client requests.])
fi
......@@ -423,15 +430,15 @@ shell_mkbuild () {
val=`eval echo '$'"$1"`
pval="$prefix"
while test -n "$pval" -a -n "$val"; do
component=`echo "$val" | sed 's,^\(/[[^/]]*\).*,\1,'`
pcomponent=`echo "$pval" | sed 's,^\(/[[^/]]*\).*,\1,'`
if test "$component" != "$pcomponent"; then break; fi
val=`echo "$val" | sed 's,^/[[^/]]*,,'`
pval=`echo "$pval" | sed 's,^/[[^/]]*,,'`
component=`echo "$val" | sed 's,^\(/[[^/]]*\).*,\1,'`
pcomponent=`echo "$pval" | sed 's,^\(/[[^/]]*\).*,\1,'`
if test "$component" != "$pcomponent"; then break; fi
val=`echo "$val" | sed 's,^/[[^/]]*,,'`
pval=`echo "$pval" | sed 's,^/[[^/]]*,,'`
done
while test -n "$pval"; do
val="/..$val"
pval=`echo "$pval" | sed 's,^/[[^/]]*,,'`
val="/..$val"
pval=`echo "$pval" | sed 's,^/[[^/]]*,,'`
done
eval "clickbuild_$1='"'$'"{clickbuild_prefix}$val'"
}
......@@ -448,6 +455,13 @@ for i in bin clickdata data dataroot include lib sbin; do
done
dnl
dnl kernel interfaces
dnl
AC_CHECK_HEADERS_ONCE([ifaddrs.h linux/if_tun.h net/if_dl.h net/if_tap.h net/if_tun.h net/if_types.h net/bpf.h netpacket/packet.h])
dnl pcap library
dnl note: no longer need pcap under Linux
......@@ -455,13 +469,13 @@ dnl if test "$enable_userlevel" = yes; then
CLICK_CHECK_LIBPCAP
CLICK_CHECK_NETMAP
if test "$HAVE_PCAP" != yes -a "$HAVE_NETMAP" != yes -a "$ac_cv_under_linux" != yes; then
AC_MSG_WARN([
AC_MSG_WARN([
=========================================
pcap.h and/or -lpcap not found; user-level driver can't steal packets.
=========================================])
dnl ' fix syntax highlighting
dnl ' fix syntax highlighting
fi
DRIVERS="$DRIVERS userlevel"
AC_DEFINE(HAVE_USERLEVEL_DRIVER)
......@@ -510,12 +524,12 @@ if test "$properprefix" != no; then
AC_LANG_CPLUSPLUS
if test $have_prop_h = yes -a $have_libproper = yes; then
AC_DEFINE(HAVE_PROPER)
test -n "$properprefix" && PROPER_INCLUDES="-I$properprefix/include" && PROPER_LIBS="-L$properprefix/lib"
PROPER_LIBS="$PROPER_LIBS -lproper"
AC_DEFINE(HAVE_PROPER)
test -n "$properprefix" && PROPER_INCLUDES="-I$properprefix/include" && PROPER_LIBS="-L$properprefix/lib"
PROPER_LIBS="$PROPER_LIBS -lproper"
elif test $explicit_proper = yes; then
PROPER_INCLUDES= PROPER_LIBS=
AC_MSG_ERROR([
PROPER_INCLUDES= PROPER_LIBS=
AC_MSG_ERROR([
=========================================
You explicitly specified --with-proper, but the proper headers and/or
......@@ -548,13 +562,13 @@ if test "$expatprefix" != no; then
LDFLAGS="$saveflags"
if test $have_expat_h = yes -a $have_libexpat = yes; then
AC_DEFINE(HAVE_EXPAT)
XML2CLICK=xml2click
test -n "$expatprefix" && EXPAT_INCLUDES="-I$expatprefix/include" && EXPAT_LIBS="-L$expatprefix/lib"
EXPAT_LIBS="$EXPAT_LIBS -lexpat"
AC_DEFINE(HAVE_EXPAT)
XML2CLICK=xml2click
test -n "$expatprefix" && EXPAT_INCLUDES="-I$expatprefix/include" && EXPAT_LIBS="-L$expatprefix/lib"
EXPAT_LIBS="$EXPAT_LIBS -lexpat"
elif test $explicit_expat = yes; then
EXPAT_INCLUDES= EXPAT_LIBS=
AC_MSG_ERROR([
EXPAT_INCLUDES= EXPAT_LIBS=
AC_MSG_ERROR([
=========================================
You explicitly specified --with-expat, but the expat headers and/or libraries
......@@ -602,10 +616,10 @@ AC_MSG_CHECKING(for working makeinfo)
MAKEINFO=${MAKEINFO-makeinfo}
if ($MAKEINFO --version) < /dev/null > conftest.out 2>&1; then
if test `head -n 1 conftest.out | sed 's/^.* \([[0-9]][[0-9]]*\).*$/\1/'` -ge 4; then
AC_MSG_RESULT(found)
AC_MSG_RESULT(found)
else
MAKEINFO='$(conf_auxdir)/missing makeinfo'
AC_MSG_RESULT(old)
MAKEINFO='$(conf_auxdir)/missing makeinfo'
AC_MSG_RESULT(old)
fi
else
MAKEINFO='$(conf_auxdir)/missing makeinfo'
......@@ -617,10 +631,10 @@ TEXI2DVI=${TEXI2DVI-texi2dvi}
if ($TEXI2DVI --version) < /dev/null > conftest.out 2>&1; then
dnl Search for a good version of texi2dvi
if test `head -n 1 conftest.out | sed 's/.*Texinfo \([[0-9]][[0-9]]*\).*/\1/'` -ge 4; then
AC_MSG_RESULT(found)
AC_MSG_RESULT(found)
else
TEXI2DVI='$(conf_auxdir)/missing texi2dvi'
AC_MSG_RESULT(old)
TEXI2DVI='$(conf_auxdir)/missing texi2dvi'
AC_MSG_RESULT(old)
fi
else
TEXI2DVI='$(conf_auxdir)/missing texi2dvi'
......@@ -630,7 +644,7 @@ fi
dnl Assume any version of install-info is OK
if test ${INSTALL_INFO-xxx} = xxx; then
AC_PATH_PROG(INSTALL_INFO, install-info, '$(conf_auxdir)/missing install-info',
$PATH:/sbin:/usr/sbin:/usr/local/sbin)
$PATH:/sbin:/usr/sbin:/usr/local/sbin)
fi
AC_MSG_CHECKING(for working install-info)
if ($INSTALL_INFO --version) < /dev/null > conftest.out 2>&1; then
......
......@@ -73,7 +73,7 @@ AC_DEFUN([CLICK_PROG_CC], [
test -z "$ac_user_cflags" && \
CFLAGS="$CFLAGS$WARNING_CFLAGS"
AC_CHECK_HEADERS(sys/types.h unistd.h)
AC_CHECK_HEADERS_ONCE([sys/types.h unistd.h])
])
......@@ -236,10 +236,10 @@ dnl
AC_DEFUN([CLICK_CHECK_DYNAMIC_LINKING], [
DL_LIBS=
AC_CHECK_HEADERS(dlfcn.h, ac_have_dlfcn_h=yes, ac_have_dlfcn_h=no)
AC_CHECK_HEADERS_ONCE([dlfcn.h])
AC_CHECK_FUNC(dlopen, ac_have_dlopen=yes,
[AC_CHECK_LIB(dl, dlopen, [ac_have_dlopen=yes; DL_LIBS="-ldl"], ac_have_dlopen=no)])
if test "x$ac_have_dlopen" = xyes -a "x$ac_have_dlfcn_h" = xyes; then
if test "x$ac_have_dlopen" = xyes -a "x$ac_cv_header_dlfcn_h" = xyes; then
AC_DEFINE([HAVE_DYNAMIC_LINKING], [1], [Define if dynamic linking is possible.])
ac_have_dynamic_linking=yes
fi
......@@ -281,7 +281,7 @@ AC_DEFUN([CLICK_CHECK_BUILD_DYNAMIC_LINKING], [
CXX="$BUILD_CXX"; CXXCPP="$BUILD_CXX -E"
unset ac_cv_header_dlfcn_h ac_cv_func_dlopen ac_cv_lib_dl_dlopen
BUILD_DL_LIBS=
AC_CHECK_HEADERS(dlfcn.h, ac_build_have_dlfcn_h=yes, ac_build_have_dlfcn_h=no)
AC_CHECK_HEADERS([dlfcn.h], [ac_build_have_dlfcn_h=yes], [ac_build_have_dlfcn_h=no])
AC_CHECK_FUNC(dlopen, ac_build_have_dlopen=yes,
[AC_CHECK_LIB(dl, dlopen, [ac_build_have_dlopen=yes; BUILD_DL_LIBS="-ldl"], ac_have_dlopen=no)])
if test "x$ac_build_have_dlopen" = xyes -a "x$ac_build_have_dlfcn_h" = xyes; then
......@@ -577,8 +577,9 @@ dnl HAVE_INDIFFERENT_ALIGNMENT.
dnl
AC_DEFUN([CLICK_CHECK_ALIGNMENT], [
AC_CHECK_HEADERS_ONCE([inttypes.h])
AC_CACHE_CHECK([whether machine is indifferent to alignment], [ac_cv_alignment_indifferent],
[if test "x$have_inttypes_h" = xyes; then inttypes_hdr='inttypes.h'; else inttypes_hdr='sys/types.h'; fi
[if test "x$ac_cv_header_inttypes_h" = xyes; then inttypes_hdr='inttypes.h'; else inttypes_hdr='sys/types.h'; fi
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <$inttypes_hdr>
#include <stdlib.h>
......@@ -616,21 +617,21 @@ dnl
AC_DEFUN([CLICK_CHECK_INTEGER_TYPES], [
AC_C_CHAR_UNSIGNED
AC_CHECK_HEADERS(inttypes.h, have_inttypes_h=yes, have_inttypes_h=no)
AC_CHECK_HEADERS_ONCE([inttypes.h])
if test $have_inttypes_h = no; then
if test x$ac_cv_header_inttypes_h = xno; then
AC_CACHE_CHECK(for uintXX_t typedefs, ac_cv_uint_t,
[AC_EGREP_HEADER(dnl
changequote(<<,>>)<<(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]>>changequote([,]),
sys/types.h, ac_cv_uint_t=yes, ac_cv_uint_t=no)])
fi
if test $have_inttypes_h = no -a "$ac_cv_uint_t" = no; then
if test x$ac_cv_header_inttypes_h = xno -a "$ac_cv_uint_t" = no; then
AC_CACHE_CHECK(for u_intXX_t typedefs, ac_cv_u_int_t,
[AC_EGREP_HEADER(dnl
changequote(<<,>>)<<(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]>>changequote([,]),
sys/types.h, ac_cv_u_int_t=yes, ac_cv_u_int_t=no)])
fi
if test $have_inttypes_h = yes -o "$ac_cv_uint_t" = yes; then :
if test x$ac_cv_header_inttypes_h = xyes -o "$ac_cv_uint_t" = yes; then :
elif test "$ac_cv_u_int_t" = yes; then
AC_DEFINE([HAVE_U_INT_TYPES], [1], [Define if you have u_intXX_t types but not uintXX_t types.])
else
......@@ -646,12 +647,12 @@ Neither uint32_t nor u_int32_t defined by <inttypes.h> or <sys/types.h>!
dnl
dnl CLICK_CHECK_INT64_TYPES
dnl Finds definitions for 'int64_t' and 'uint64_t'.
dnl On input, shell variable 'have_inttypes_h' should be 'yes' if the header
dnl file <inttypes.h> exists. If no 'uint64_t', looks for 'u_int64_t'.
dnl If no 'uint64_t', looks for 'u_int64_t'.
dnl
AC_DEFUN([CLICK_CHECK_INT64_TYPES], [
if test "x$have_inttypes_h" = xyes; then
AC_CHECK_HEADERS_ONCE([inttypes.h])
if test "x$ac_cv_header_inttypes_h" = xyes; then
inttypes_hdr='inttypes.h'
else
inttypes_hdr='sys/types.h'
......@@ -704,60 +705,9 @@ dnl Checks endianness of machine.
dnl
AC_DEFUN([CLICK_CHECK_ENDIAN], [
AC_CHECK_HEADERS(endian.h machine/endian.h,
dnl autoconf 2.53 versus autoconf 2.13
if test "x$ac_header" != x; then
endian_hdr=$ac_header
else
endian_hdr=$ac_hdr
fi
break, endian_hdr=no)
if test "x$endian_hdr" != xno; then
AC_CACHE_CHECK(endianness, ac_cv_endian, [
dnl cannot use AC_PREPROC_IFELSE because it throws out the results
ac_cv_endian=0
cat > conftest.$ac_ext <<EOF
[#]line __oline__ "configure"
#include "confdefs.h"
#include <$endian_hdr>
#ifdef __BYTE_ORDER
__BYTE_ORDER
#elif defined(BYTE_ORDER)
BYTE_ORDER
#else
0
#endif
EOF
ac_try="$ac_cpp conftest.$ac_ext >conftest.result 2>conftest.out"
AC_TRY_EVAL(ac_try)
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
ac_cv_endian=`grep '^[[1234]]' conftest.result`
test -z "$ac_cv_endian" && ac_cv_endian=0
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_ext conftest.result conftest.out])
elif test "x$cross_compiling" != xyes ; then
AC_CACHE_CHECK(endianness, ac_cv_endian,
[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdlib.h>
#include <stdio.h>
int main(int argc, char *argv[]) {
union { int i; char c[4]; } u;
FILE *f = fopen("conftestdata", "w");
if (!f)
exit(1);
u.i = ('1') | ('2' << 8) | ('3' << 16) | ('4' << 24);
fprintf(f, "%4.4s\n", u.c);
exit(0);
}]])], [ac_cv_endian=`cat conftestdata`], [ac_cv_endian=0], [ac_cv_endian=0])])
else
ac_cv_endian=0
fi
AC_DEFINE_UNQUOTED([CLICK_BYTE_ORDER], $ac_cv_endian, [Define to byte order of target machine.])
AC_CHECK_HEADERS(byteswap.h)
AC_CHECK_HEADERS_ONCE([endian.h machine/endian.h byteswap.h])
AC_C_BIGENDIAN([endian=CLICK_BIG_ENDIAN], [endian=CLICK_LITTLE_ENDIAN], [endian=CLICK_NO_ENDIAN], [endian=CLICK_NO_ENDIAN])
AC_DEFINE_UNQUOTED([CLICK_BYTE_ORDER], [$endian], [Define to byte order of target machine.])
])
......@@ -835,7 +785,7 @@ AC_DEFUN([CLICK_CHECK_COMPILER_INTRINSICS], [
AC_DEFINE([HAVE___THREAD_STORAGE_CLASS], [1], [Define if you have the __thread storage class specifier.])
fi
AC_CHECK_HEADERS(strings.h)
AC_CHECK_HEADERS_ONCE([strings.h])
AC_CHECK_FUNCS(ffs ffsl ffsll)
])
......@@ -906,8 +856,8 @@ dnl HAVE_POLL_H.
dnl
AC_DEFUN([CLICK_CHECK_POLL_H], [
AC_CHECK_HEADER(poll.h, ac_cv_poll_h=yes, ac_cv_poll_h=no)
if test "$ac_cv_poll_h" = yes; then
AC_CHECK_HEADERS_ONCE([poll.h])
if test x"$ac_cv_header_poll_h" = xyes; then
AC_CACHE_CHECK([whether <poll.h> is emulated], [ac_cv_emulated_poll_h],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <poll.h>
#ifdef _POLL_EMUL_H_
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment