Changeset View
Changeset View
Standalone View
Standalone View
contrib/ldns/m4/ax_have_poll.m4
# =========================================================================== | # =========================================================================== | ||||
# http://www.gnu.org/software/autoconf-archive/ax_have_poll.html | # https://www.gnu.org/software/autoconf-archive/ax_have_poll.html | ||||
# =========================================================================== | # =========================================================================== | ||||
# | # | ||||
# SYNOPSIS | # SYNOPSIS | ||||
# | # | ||||
# AX_HAVE_POLL([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | # AX_HAVE_POLL([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | ||||
# AX_HAVE_PPOLL([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | # AX_HAVE_PPOLL([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | ||||
# | # | ||||
# DESCRIPTION | # DESCRIPTION | ||||
Show All 18 Lines | |||||
# | # | ||||
# Copyright (c) 2009 Peter Simons <simons@cryp.to> | # Copyright (c) 2009 Peter Simons <simons@cryp.to> | ||||
# | # | ||||
# Copying and distribution of this file, with or without modification, are | # Copying and distribution of this file, with or without modification, are | ||||
# permitted in any medium without royalty provided the copyright notice | # permitted in any medium without royalty provided the copyright notice | ||||
# and this notice are preserved. This file is offered as-is, without any | # and this notice are preserved. This file is offered as-is, without any | ||||
# warranty. | # warranty. | ||||
#serial 7 | #serial 8 | ||||
AC_DEFUN([AX_HAVE_POLL], [dnl | AC_DEFUN([AX_HAVE_POLL], [dnl | ||||
AC_MSG_CHECKING([for poll(2)]) | AC_MSG_CHECKING([for poll(2)]) | ||||
AC_CACHE_VAL([ax_cv_have_poll], [dnl | AC_CACHE_VAL([ax_cv_have_poll], [dnl | ||||
AC_LINK_IFELSE([dnl | AC_LINK_IFELSE([dnl | ||||
AC_LANG_PROGRAM( | AC_LANG_PROGRAM( | ||||
[#include <poll.h>], | [#include <poll.h>], | ||||
[int rc; rc = poll((struct pollfd *)(0), 0, 0);])], | [int rc; rc = poll((struct pollfd *)(0), 0, 0);])], | ||||
Show All 27 Lines |