From: Bruno Haible Date: Sat, 7 May 2011 11:37:56 +0000 (+0200) Subject: ftello: Respect rules for use of AC_LIBOBJ. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f7e77da36ef75b226431d1ae778b383edb17193;p=pspp ftello: Respect rules for use of AC_LIBOBJ. * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro. (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from here... * modules/ftello (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index 21c341f2d9..c908033334 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-05-07 Bruno Haible + + ftello: Respect rules for use of AC_LIBOBJ. + * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro. + (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from + here... + * modules/ftello (configure.ac): ... to here. + 2011-05-07 Bruno Haible fseeko: Simplify. diff --git a/m4/ftello.m4 b/m4/ftello.m4 index 599f8f2047..10cf4291bf 100644 --- a/m4/ftello.m4 +++ b/m4/ftello.m4 @@ -1,4 +1,4 @@ -# ftello.m4 serial 9 +# ftello.m4 serial 10 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, @@ -124,12 +124,4 @@ main (void) esac fi fi - if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then - gl_REPLACE_FTELLO - fi -]) - -AC_DEFUN([gl_REPLACE_FTELLO], -[ - AC_LIBOBJ([ftello]) ]) diff --git a/modules/ftello b/modules/ftello index b042e84808..6cce8470e9 100644 --- a/modules/ftello +++ b/modules/ftello @@ -17,6 +17,9 @@ AC_REQUIRE([AC_FUNC_FSEEKO]) configure.ac: gl_FUNC_FTELLO +if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then + AC_LIBOBJ([ftello]) +fi gl_STDIO_MODULE_INDICATOR([ftello]) Makefile.am: