error: account for the possibility of freopen (stdout).
[gnulib.git] / m4 / error.m4
1 #serial 12
2
3 # Copyright (C) 1996-1998, 2001-2004, 2009 Free Software
4 # Foundation, Inc.
5 #
6 # This file is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 AC_DEFUN([gl_ERROR],
11 [
12   AC_FUNC_ERROR_AT_LINE
13   dnl Note: AC_FUNC_ERROR_AT_LINE does AC_LIBSOURCES([error.h, error.c]).
14   gl_PREREQ_ERROR
15 ])
16
17 # Prerequisites of lib/error.c.
18 AC_DEFUN([gl_PREREQ_ERROR],
19 [
20   AC_REQUIRE([AC_FUNC_STRERROR_R])
21   AC_REQUIRE([AC_C_INLINE])
22   :
23 ])