Fix for PR automake/175:
[automake.git] / m4 / error.m4
blobfc8b4649dfeef9aebba14055b5245bfedfafc48f
1 # From Jim Meyering.  Use this if you use the GNU error.[ch].
2 # FIXME: Migrate into libit
4 AC_DEFUN([AM_FUNC_ERROR_AT_LINE],
5 [AC_CACHE_CHECK([for error_at_line], am_cv_lib_error_at_line,
6  [AC_TRY_LINK([],[error_at_line(0, 0, "", 0, "");],
7               am_cv_lib_error_at_line=yes,
8               am_cv_lib_error_at_line=no)])
9  if test $am_cv_lib_error_at_line = no; then
10    LIBOBJS="$LIBOBJS error.$ac_objext"
11  fi
12  AC_SUBST(LIBOBJS)dnl