1
# error.m4 serial 2 (gettext-0.12)
2
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
3
dnl This file is free software, distributed under the terms of the GNU
4
dnl General Public License. As a special exception to the GNU General
5
dnl Public License, this file may be distributed as part of a program
6
dnl that contains a configuration script generated by Autoconf, under
7
dnl the same distribution terms as the rest of that program.
9
# A modified version of AM_FUNC_ERROR_AT_LINE that triggers HAVE_ERROR_AT_LINE
10
# in config.h instead of modifying LIBOBJS.
11
AC_DEFUN([gt_FUNC_ERROR_AT_LINE],
13
AC_CACHE_CHECK([for error_at_line], am_cv_lib_error_at_line,
14
[AC_TRY_LINK([],[error_at_line(0, 0, "", 0, "");],
15
am_cv_lib_error_at_line=yes,
16
am_cv_lib_error_at_line=no)])
17
if test $am_cv_lib_error_at_line = yes; then
18
AC_DEFINE(HAVE_ERROR_AT_LINE, 1,
19
[Define to 1 if you have the functions error() and error_at_line().])
25
# Prerequisites of lib/error.c.
26
AC_DEFUN([jm_PREREQ_ERROR],
28
AC_REQUIRE([AC_HEADER_STDC])
29
AC_REQUIRE([AC_FUNC_VPRINTF])
30
AC_CHECK_FUNCS(strerror)
31
AC_CHECK_DECLS([strerror])