Automake.
* doc/autoconf.texi (Particular Functions): Adjust.
+2000-08-01 Akim Demaille <akim@epita.fr>
+
+ * acfunctions.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from
+ Automake.
+ * doc/autoconf.texi (Particular Functions): Adjust.
+
2000-08-01 Akim Demaille <akim@epita.fr>
Create acfunctions.m4, in charge of the macros related to
** Specific Macros
- AC_FUNC_CHOWN, AC_FUNC_MALLOC, AC_FUNC_STRERROR_R,
- AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, AC_FUNC_STAT, AC_FUNC_LSTAT.
+ AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, AC_FUNC_STAT, AC_FUNC_LSTAT,
+ AC_FUNC_ERROR_AT_LINE.
New.
- AC_FUNC_GETGROUPS
bcopy AC_HEADER_STDC
bzero AC_HEADER_STDC
chown AC_FUNC_CHOWN
+error AC_FUNC_ERROR_AT_LINE
+error_at_line AC_FUNC_ERROR_AT_LINE
fnmatch AC_FUNC_FNMATCH
getgroups AC_FUNC_GETGROUPS
getloadavg AC_FUNC_GETLOADAVG
])
+# AC_FUNC_ERROR_AT_LINE
+# ---------------------
+AC_DEFUN([AC_FUNC_ERROR_AT_LINE],
+[AC_CACHE_CHECK([for error_at_line], ac_cv_lib_error_at_line,
+[AC_TRY_LINK([],[error_at_line (0, 0, "", 0, "");],
+ ac_cv_lib_error_at_line=yes,
+ ac_cv_lib_error_at_line=no)])
+if test $ac_cv_lib_error_at_line = no; then
+ AC_LIBOBJ(error)
+fi
+])
+
+
+# AU::AM_FUNC_ERROR_AT_LINE
+# -------------------------
+AU_ALIAS([AM_FUNC_ERROR_AT_LINE], [AC_FUNC_ERROR_AT_LINE])
+
+
# AC_FUNC_FNMATCH
# ---------------
# We look for fnmatch.h to avoid that the test fails in C++.
return value for an error indicator.
@end defmac
+@defmac AC_FUNC_ERROR_AT_LINE
+@maindex FUNC_ERROR_AT_LINE
+If the @code{error_at_line} function is not found, require an
+@code{AC_LIBOBJ} replacement of @samp{error}.
+@end defmac
+
@defmac AC_FUNC_FNMATCH
@maindex FUNC_FNMATCH
If the @code{fnmatch} function is available and works (unlike the one on
])
+# AC_FUNC_ERROR_AT_LINE
+# ---------------------
+AC_DEFUN([AC_FUNC_ERROR_AT_LINE],
+[AC_CACHE_CHECK([for error_at_line], ac_cv_lib_error_at_line,
+[AC_TRY_LINK([],[error_at_line (0, 0, "", 0, "");],
+ ac_cv_lib_error_at_line=yes,
+ ac_cv_lib_error_at_line=no)])
+if test $ac_cv_lib_error_at_line = no; then
+ AC_LIBOBJ(error)
+fi
+])
+
+
+# AU::AM_FUNC_ERROR_AT_LINE
+# -------------------------
+AU_ALIAS([AM_FUNC_ERROR_AT_LINE], [AC_FUNC_ERROR_AT_LINE])
+
+
# AC_FUNC_FNMATCH
# ---------------
# We look for fnmatch.h to avoid that the test fails in C++.
bcopy AC_HEADER_STDC
bzero AC_HEADER_STDC
chown AC_FUNC_CHOWN
+error AC_FUNC_ERROR_AT_LINE
+error_at_line AC_FUNC_ERROR_AT_LINE
fnmatch AC_FUNC_FNMATCH
getgroups AC_FUNC_GETGROUPS
getloadavg AC_FUNC_GETLOADAVG