From: Bruno Haible Date: Fri, 14 Feb 2003 12:34:46 +0000 (+0000) Subject: Move m4/error.m4 to gettext-runtime/m4/error.m4. X-Git-Tag: v0.12~851 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3ac599d4e6d0b58595afb269a9760275de424a2;p=thirdparty%2Fgettext.git Move m4/error.m4 to gettext-runtime/m4/error.m4. --- diff --git a/m4/error.m4 b/gettext-runtime/m4/error.m4 similarity index 100% rename from m4/error.m4 rename to gettext-runtime/m4/error.m4 diff --git a/gettext-tools/m4/error.m4 b/gettext-tools/m4/error.m4 new file mode 100644 index 000000000..5849460bd --- /dev/null +++ b/gettext-tools/m4/error.m4 @@ -0,0 +1,21 @@ +# error.m4 serial 1 (gettext-0.11) +dnl Copyright (C) 2002 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +# A modified version of AM_FUNC_ERROR_AT_LINE that triggers HAVE_ERROR_AT_LINE +# in config.h instead of modifying LIBOBJS. +AC_DEFUN([gt_FUNC_ERROR_AT_LINE], +[ + AC_CACHE_CHECK([for error_at_line], am_cv_lib_error_at_line, + [AC_TRY_LINK([],[error_at_line(0, 0, "", 0, "");], + am_cv_lib_error_at_line=yes, + am_cv_lib_error_at_line=no)]) + if test $am_cv_lib_error_at_line = yes; then + AC_DEFINE(HAVE_ERROR_AT_LINE, 1, + [Define to 1 if you have the functions error() and error_at_line().]) + fi +])