summaryrefslogtreecommitdiff
path: root/m4/obsolete.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/obsolete.m4')
-rw-r--r--m4/obsolete.m411
1 files changed, 9 insertions, 2 deletions
diff --git a/m4/obsolete.m4 b/m4/obsolete.m4
index 46e067d89..2f9d3a861 100644
--- a/m4/obsolete.m4
+++ b/m4/obsolete.m4
@@ -1,6 +1,5 @@
# -*- Autoconf -*-
-# Obsolete and "removed" macros, that must however still report explicit
-# error messages when used, to smooth transition.
+# Deprecated, obsolescent or and obsolete macros.
#
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
#
@@ -8,6 +7,14 @@
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
+AC_DEFUN([AM_PROG_MKDIR_P],
+[AC_REQUIRE([AC_PROG_MKDIR_P])dnl
+AC_SUBST([mkdir_p], ['$(MKDIR_P)'])dnl
+AC_DIAGNOSE([obsolete],
+[macro '$0' is deprecated.
+You should use the Autoconf-provided 'AC][_PROG_MKDIR_P' macro instead,
+and use '$(MKDIR_P)' instead of '$(mkdir_p)' in your Makefile.am files.])])
+
AC_DEFUN([AM_CONFIG_HEADER],
[AC_DIAGNOSE([obsolete],
['$0': this macro is obsolete.