diff options
Diffstat (limited to 'gl/m4/error.m4')
| -rw-r--r-- | gl/m4/error.m4 | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/gl/m4/error.m4 b/gl/m4/error.m4 index 9f1307a4..29e6fdc9 100644 --- a/gl/m4/error.m4 +++ b/gl/m4/error.m4 | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #serial 12 | 1 | #serial 14 |
| 2 | 2 | ||
| 3 | # Copyright (C) 1996-1998, 2001-2004, 2009-2010 Free Software Foundation, Inc. | 3 | # Copyright (C) 1996-1998, 2001-2004, 2009-2013 Free Software Foundation, Inc. |
| 4 | # | 4 | # |
| 5 | # This file is free software; the Free Software Foundation | 5 | # This file is free software; the Free Software Foundation |
| 6 | # gives unlimited permission to copy and/or distribute it, | 6 | # gives unlimited permission to copy and/or distribute it, |
| @@ -8,15 +8,20 @@ | |||
| 8 | 8 | ||
| 9 | AC_DEFUN([gl_ERROR], | 9 | AC_DEFUN([gl_ERROR], |
| 10 | [ | 10 | [ |
| 11 | AC_FUNC_ERROR_AT_LINE | 11 | dnl We don't use AC_FUNC_ERROR_AT_LINE any more, because it is no longer |
| 12 | dnl Note: AC_FUNC_ERROR_AT_LINE does AC_LIBSOURCES([error.h, error.c]). | 12 | dnl maintained in Autoconf and because it invokes AC_LIBOBJ. |
| 13 | gl_PREREQ_ERROR | 13 | AC_CACHE_CHECK([for error_at_line], [ac_cv_lib_error_at_line], |
| 14 | [AC_LINK_IFELSE( | ||
| 15 | [AC_LANG_PROGRAM( | ||
| 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])]) | ||
| 14 | ]) | 20 | ]) |
| 15 | 21 | ||
| 16 | # Prerequisites of lib/error.c. | 22 | # Prerequisites of lib/error.c. |
| 17 | AC_DEFUN([gl_PREREQ_ERROR], | 23 | AC_DEFUN([gl_PREREQ_ERROR], |
| 18 | [ | 24 | [ |
| 19 | AC_REQUIRE([AC_FUNC_STRERROR_R]) | 25 | AC_REQUIRE([AC_FUNC_STRERROR_R]) |
| 20 | AC_REQUIRE([AC_C_INLINE]) | ||
| 21 | : | 26 | : |
| 22 | ]) | 27 | ]) |
