view m4/error.m4 @ 4305:784fa3ead9d6

(gl_ERROR): Do not put under dynamic conditions some code which expansion is under static control. Patch imported from Akim Demaille's patch to Bison; see <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 22 Apr 2003 03:28:22 +0000
parents c842eddb3b4f
children 8b869710f671
line wrap: on
line source

#serial 7

AC_DEFUN([gl_ERROR],
[
  AC_FUNC_ERROR_AT_LINE
  dnl Note: AC_FUNC_ERROR_AT_LINE does AC_LIBSOURCES([error.h, error.c]).
  jm_PREREQ_ERROR
])

# Prerequisites of lib/error.c.
AC_DEFUN([jm_PREREQ_ERROR],
[
  AC_REQUIRE([AC_HEADER_STDC])
  AC_REQUIRE([AC_FUNC_VPRINTF])
  AC_CHECK_FUNCS(strerror)
  AC_CHECK_DECLS([strerror])
  AC_FUNC_STRERROR_R
])