fpurge: migrate into <stdio.h>
[gnulib.git] / m4 / fpurge.m4
1 # fpurge.m4 serial 3
2 dnl Copyright (C) 2007, 2009 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_DEFUN([gl_FUNC_FPURGE],
8 [
9   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
10   AC_CHECK_FUNCS_ONCE([fpurge])
11   AC_CHECK_FUNCS_ONCE([__fpurge])
12   AC_CHECK_DECLS([fpurge], , , [[#include <stdio.h>]])
13   dnl For now, lib/fpurge.c is always compiled.
14   if test "x$ac_cv_func_fpurge" = xyes; then
15     REPLACE_FPURGE=1
16   fi
17   if test "x$ac_cv_have_decl_fpurge" = xno; then
18     HAVE_DECL_FPURGE=0
19   fi
20 ])