]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Move m4/error.m4 to gettext-runtime/m4/error.m4.
authorBruno Haible <bruno@clisp.org>
Fri, 14 Feb 2003 12:34:46 +0000 (12:34 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:09:20 +0000 (12:09 +0200)
gettext-runtime/m4/error.m4 [moved from m4/error.m4 with 100% similarity]
gettext-tools/m4/error.m4 [new file with mode: 0644]

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 (file)
index 0000000..5849460
--- /dev/null
@@ -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
+])