freopen: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 7 May 2011 10:48:09 +0000 (12:48 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:00 +0000 (00:06 +0200)
* m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
invocations from here...
* modules/freopen (configure.ac): ... to here.

ChangeLog
m4/freopen.m4
modules/freopen

index 30a32c8..1377257 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-07  Bruno Haible  <bruno@clisp.org>
 
+       freopen: Move AC_LIBOBJ invocations to module description.
+       * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
+       invocations from here...
+       * modules/freopen (configure.ac): ... to here.
+
+2011-05-07  Bruno Haible  <bruno@clisp.org>
+
        free: Move AC_LIBOBJ invocations to module description.
        * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
        invocations from here...
index 37476e0..c981a11 100644 (file)
@@ -1,4 +1,4 @@
-# freopen.m4 serial 2
+# freopen.m4 serial 3
 dnl Copyright (C) 2007-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,
@@ -11,8 +11,6 @@ AC_DEFUN([gl_FUNC_FREOPEN],
   case "$host_os" in
     mingw* | pw*)
       REPLACE_FREOPEN=1
-      AC_LIBOBJ([freopen])
-      gl_PREREQ_FREOPEN
       ;;
   esac
 ])
index 5c556e4..8704c04 100644 (file)
@@ -10,6 +10,10 @@ stdio
 
 configure.ac:
 gl_FUNC_FREOPEN
+if test $REPLACE_FREOPEN = 1; then
+  AC_LIBOBJ([freopen])
+  gl_PREREQ_FREOPEN
+fi
 gl_STDIO_MODULE_INDICATOR([freopen])
 
 Makefile.am: