popen: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 15:04:18 +0000 (17:04 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:36 +0000 (00:06 +0200)
* m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
invocations from here...
* modules/popen (configure.ac): ... to here.

ChangeLog
m4/popen.m4
modules/popen

index 9f4d73ca8133623ce20b689e6a0dee597eaf69b7..951ff389b04b7649634a98752a0a6621fbde06be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+       popen: Move AC_LIBOBJ invocations to module description.
+       * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
+       invocations from here...
+       * modules/popen (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        poll: Move AC_LIBOBJ invocations to module description.
index 7477923efdbcb6ee1466811e82dceac70073ce23..c45298145f43dd5dbdfcff22437daad6d00bf402 100644 (file)
@@ -1,4 +1,4 @@
-# popen.m4 serial 3
+# popen.m4 serial 4
 dnl Copyright (C) 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,
@@ -27,8 +27,6 @@ AC_DEFUN([gl_FUNC_POPEN],
   ])
   if test "$gl_cv_func_popen_works" = no; then
     REPLACE_POPEN=1
-    AC_LIBOBJ([popen])
-    gl_PREREQ_POPEN
   fi
 ])
 
index d4ba0ab062cf6eaab088d5fd717ee0f766d53025..37b3cf6ca849a8aa997f1b8b33ef97f752d0be36 100644 (file)
@@ -11,6 +11,10 @@ open            [test $REPLACE_POPEN = 1]
 
 configure.ac:
 gl_FUNC_POPEN
+if test $REPLACE_POPEN = 1; then
+  AC_LIBOBJ([popen])
+  gl_PREREQ_POPEN
+fi
 gl_STDIO_MODULE_INDICATOR([popen])
 
 Makefile.am: