source: trunk/third/libiconv/m4/error.m4 @ 20454

Revision 20454, 1.2 KB checked in by ghudson, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20453, which included commits to RCS files with non-trunk default branches.
Line 
1# error.m4 serial 2 (gettext-0.12)
2dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
3dnl This file is free software, distributed under the terms of the GNU
4dnl General Public License.  As a special exception to the GNU General
5dnl Public License, this file may be distributed as part of a program
6dnl that contains a configuration script generated by Autoconf, under
7dnl the same distribution terms as the rest of that program.
8
9# A modified version of AM_FUNC_ERROR_AT_LINE that triggers HAVE_ERROR_AT_LINE
10# in config.h instead of modifying LIBOBJS.
11AC_DEFUN([gt_FUNC_ERROR_AT_LINE],
12[
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().])
20  else
21    jm_PREREQ_ERROR
22  fi
23])
24
25# Prerequisites of lib/error.c.
26AC_DEFUN([jm_PREREQ_ERROR],
27[
28  AC_REQUIRE([AC_HEADER_STDC])
29  AC_REQUIRE([AC_FUNC_VPRINTF])
30  AC_CHECK_FUNCS(strerror)
31  AC_CHECK_DECLS([strerror])
32  AC_FUNC_STRERROR_R
33])
Note: See TracBrowser for help on using the repository browser.