test: protect more yacc declarations against C vs. C++ linkage.
[automake.git] / m4 / obsolete.m4
blob8058300fb477a9e2699003c705ab4a7356b122d3
1 #  -*- Autoconf -*-
2 # Obsolete and "removed" macros, that must however still report explicit
3 # error messages when used, to smooth transition.
5 # Copyright (C) 1996-2024 Free Software Foundation, Inc.
7 # This file is free software; the Free Software Foundation
8 # gives unlimited permission to copy and/or distribute it,
9 # with or without modifications, as long as this notice is preserved.
11 AC_DEFUN([AM_CONFIG_HEADER],
12 [m4_warn([obsolete],
13 ['$0': this macro is obsolete.
14 You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
15 AC_CONFIG_HEADERS($@)])
17 AC_DEFUN([AM_PROG_CC_STDC],
18 [AC_PROG_CC
19 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
20 m4_warn([obsolete],
21 ['$0': this macro is obsolete.
22 You should simply use the 'AC][_PROG_CC' macro instead.
23 Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
24 but upon 'ac_cv_prog_cc_stdc'.])])
26 AC_DEFUN([AM_C_PROTOTYPES],
27          [AC_FATAL([automatic de-ANSI-fication support has been removed])])
28 AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])