poll: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 14:58:50 +0000 (16:58 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:36 +0000 (00:06 +0200)
* m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
invocations from here...
* modules/poll (configure.ac): ... to here.

ChangeLog
m4/poll.m4
modules/poll

index f2cd4ef..9f4d73c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       poll: Move AC_LIBOBJ invocations to module description.
+       * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
+       invocations from here...
+       * modules/poll (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        pipe-posix: Move AC_LIBOBJ invocations to module description.
        * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
        * modules/pipe-posix (configure.ac): ... to here.
index d226e1c..e489df7 100644 (file)
@@ -1,4 +1,4 @@
-# poll.m4 serial 13
+# poll.m4 serial 14
 dnl Copyright (c) 2003, 2005-2007, 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -63,8 +63,7 @@ This is MacOSX or AIX
     fi
   fi
   if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
-    AC_LIBOBJ([poll])
-    gl_PREREQ_POLL
+    :
   else
     AC_DEFINE([HAVE_POLL], [1],
       [Define to 1 if you have the 'poll' function and it works.])
index 478e99b..f1f22bf 100644 (file)
@@ -15,6 +15,10 @@ errno           [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
 
 configure.ac:
 gl_FUNC_POLL
+if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
+  AC_LIBOBJ([poll])
+  gl_PREREQ_POLL
+fi
 gl_POLL_MODULE_INDICATOR([poll])
 
 Makefile.am: