From: Michael R Sweet Date: Sat, 6 Mar 2021 23:35:44 +0000 (-0500) Subject: Modernize cups-poll.m4. X-Git-Tag: v2.4b1~217 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc750db54a2ab17bfba820ee01cddff6e9f89853;p=thirdparty%2Fcups.git Modernize cups-poll.m4. --- diff --git a/config-scripts/cups-poll.m4 b/config-scripts/cups-poll.m4 index e4ddf028d9..d07404dd8d 100644 --- a/config-scripts/cups-poll.m4 +++ b/config-scripts/cups-poll.m4 @@ -1,12 +1,20 @@ dnl dnl Select/poll stuff for CUPS. dnl -dnl Copyright 2007-2011 by Apple Inc. -dnl Copyright 2006 by Easy Software Products, all rights reserved. +dnl Copyright © 2021 by OpenPrinting. +dnl Copyright © 2007-2011 by Apple Inc. +dnl Copyright © 2006 by Easy Software Products, all rights reserved. dnl -dnl Licensed under Apache License v2.0. See the file "LICENSE" for more information. +dnl Licensed under Apache License v2.0. See the file "LICENSE" for more +dnl information. dnl -AC_CHECK_FUNC(poll, AC_DEFINE(HAVE_POLL)) -AC_CHECK_FUNC(epoll_create, AC_DEFINE(HAVE_EPOLL)) -AC_CHECK_FUNC(kqueue, AC_DEFINE(HAVE_KQUEUE)) +AC_CHECK_FUNC([poll], [ + AC_DEFINE([HAVE_POLL], [1], [Have poll function?]) +]) +AC_CHECK_FUNC([epoll_create], [ + AC_DEFINE([HAVE_EPOLL], [1], [Have epoll function?]) +]) +AC_CHECK_FUNC([kqueue], [ + AC_DEFINE([HAVE_KQUEUE], [1], [Have kqueue function?]) +]) diff --git a/configure b/configure index 0ed6aa48a0..171755d82b 100755 --- a/configure +++ b/configure @@ -8937,21 +8937,30 @@ fi ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" if test "x$ac_cv_func_poll" = xyes then : - printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h + + +printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h + fi ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create" if test "x$ac_cv_func_epoll_create" = xyes then : - printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h + + +printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h + fi ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" if test "x$ac_cv_func_kqueue" = xyes then : - printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h + + +printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h + fi