summaryrefslogtreecommitdiff
path: root/m4/error.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/error.m4')
-rw-r--r--m4/error.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/m4/error.m4 b/m4/error.m4
new file mode 100644
index 000000000..eac272a50
--- /dev/null
+++ b/m4/error.m4
@@ -0,0 +1,13 @@
+dnl From Jim Meyering. Use this if you use the GNU error.[ch].
+dnl FIXME: Migrate into libit
+
+AC_DEFUN(AM_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 = no; then
+ LIBOBJS="$LIBOBJS error.o"
+ fi
+ AC_SUBST(LIBOBJS)dnl
+])