]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Modernize cups-poll.m4.
authorMichael R Sweet <msweet@msweet.org>
Sat, 6 Mar 2021 23:35:44 +0000 (18:35 -0500)
committerMichael R Sweet <msweet@msweet.org>
Sat, 6 Mar 2021 23:35:44 +0000 (18:35 -0500)
config-scripts/cups-poll.m4
configure

index e4ddf028d9f27ddeefbaccf1c7451c561bbc3e8e..d07404dd8d21e4c54fa76b15ab069409f46a7525 100644 (file)
@@ -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?])
+])
index 0ed6aa48a0483c6e129ccc0630d39a4ed4102351..171755d82ba0100f1d796b2a4d2d77330c537ee3 100755 (executable)
--- 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