3 # Copyright (C) 1996-1998, 2001-2004, 2009-2012 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
11 dnl We don't use AC_FUNC_ERROR_AT_LINE any more, because it is no longer
12 dnl maintained in Autoconf and because it invokes AC_LIBOBJ.
13 AC_CACHE_CHECK([for error_at_line], [ac_cv_lib_error_at_line],
16 [[#include <error.h>]],
17 [[error_at_line (0, 0, "", 0, "an error occurred");]])],
18 [ac_cv_lib_error_at_line=yes],
19 [ac_cv_lib_error_at_line=no])])
22 # Prerequisites of lib/error.c.
23 AC_DEFUN([gl_PREREQ_ERROR],
25 AC_REQUIRE([AC_FUNC_STRERROR_R])
26 AC_REQUIRE([AC_C_INLINE])