changeset 14947:5f944f7ea38d

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.
author Bruno Haible <bruno@clisp.org>
date Sat, 07 May 2011 12:48:09 +0200
parents fff577282e62
children f3ac4841af77
files ChangeLog m4/freopen.m4 modules/freopen
diffstat 3 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
--- a/m4/freopen.m4
+++ b/m4/freopen.m4
@@ -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 @@
   case "$host_os" in
     mingw* | pw*)
       REPLACE_FREOPEN=1
-      AC_LIBOBJ([freopen])
-      gl_PREREQ_FREOPEN
       ;;
   esac
 ])
--- a/modules/freopen
+++ b/modules/freopen
@@ -10,6 +10,10 @@
 
 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: