changeset 14945:76f9d77a4915

freadable: Move AC_LIBOBJ invocations to module description. * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from here... * modules/freadable (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 07 May 2011 12:31:11 +0200
parents 69610f25d34f
children fff577282e62
files ChangeLog m4/freadable.m4 modules/freadable
diffstat 3 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-07  Bruno Haible  <bruno@clisp.org>
+
+	freadable: Move AC_LIBOBJ invocations to module description.
+	* m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
+	here...
+	* modules/freadable (configure.ac): ... to here.
+
 2011-05-07  Bruno Haible  <bruno@clisp.org>
 
 	fpurge: Move AC_LIBOBJ invocations to module description.
--- a/m4/freadable.m4
+++ b/m4/freadable.m4
@@ -1,4 +1,4 @@
-# freadable.m4 serial 1
+# freadable.m4 serial 2
 dnl Copyright (C) 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,
@@ -7,7 +7,4 @@
 AC_DEFUN([gl_FUNC_FREADABLE],
 [
   AC_CHECK_FUNCS_ONCE([__freadable])
-  if test $ac_cv_func___freadable = no; then
-    AC_LIBOBJ([freadable])
-  fi
 ])
--- a/modules/freadable
+++ b/modules/freadable
@@ -12,6 +12,9 @@
 
 configure.ac:
 gl_FUNC_FREADABLE
+if test $ac_cv_func___freadable = no; then
+  AC_LIBOBJ([freadable])
+fi
 
 Makefile.am: