+2003-04-05 Bruno Haible <bruno@clisp.org>
+
+ * canonicalize.m4 (gl_CANONICALIZE): Use AC_CHECK_FUNCS, so that
+ HAVE_CANONICALIZE_FILE_NAME gets defined.
+ * error.m4 (jm_PREREQ_ERROR): New macro.
+ (gt_FUNC_ERROR_AT_LINE): Invoke it.
+
2003-04-05 Bruno Haible <bruno@clisp.org>
* relocatable.m4 (AC_RELOCATABLE_LIBRARY): Use the final value of
[
dnl Do this replacement check manually because the file name is shorter
dnl than the function name.
- AC_CHECK_FUNC(canonicalize_file_name, , [
+ AC_CHECK_FUNCS(canonicalize_file_name)
+ if test $ac_cv_func_canonicalize_file_name = no; then
AC_LIBOBJ(canonicalize)
AC_DEFINE([realpath], [rpl_realpath],
[Define to a replacement function name for realpath().])
gl_PREREQ_CANONICALIZE
- ])
+ fi
])
# Prerequisites of lib/canonicalize.c.
-# error.m4 serial 1 (gettext-0.11)
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# error.m4 serial 2 (gettext-0.12)
+dnl Copyright (C) 2002-2003 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
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().])
+ else
+ jm_PREREQ_ERROR
fi
])
+
+# Prerequisites of lib/error.c.
+AC_DEFUN([jm_PREREQ_ERROR],
+[
+ AC_REQUIRE([AC_HEADER_STDC])
+ AC_CHECK_FUNCS_ONCE(doprnt vprintf)
+ AC_CHECK_FUNCS(strerror)
+ AC_CHECK_DECLS([strerror])
+ AC_FUNC_STRERROR_R
+])