close: use gl_REPLACE_FCLOSE only if defined
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 25 Jul 2011 14:38:52 +0000 (07:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 25 Jul 2011 14:39:36 +0000 (07:39 -0700)
commitb94f2b3ac7049ef66bded4596431c453e3710209
tree761f3ad2a687fe432f3c0ded64063cf49122d827
parentd72683055ea46253d8eb8f89341eff5414ae6ca0
close: use gl_REPLACE_FCLOSE only if defined

* m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
is defined.  The close module doesn't depend on the fclose module
any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
<http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
I reproduced the problem with "./gnulib-tool --test close sys_socket".
ChangeLog
m4/close.m4