test harness: improve catching of usage errors in script 'test-driver'
[platform/upstream/automake.git] / m4 / obsolete.m4
1 #  -*- Autoconf -*-
2 # Obsolete and "removed" macros, that must however still report explicit
3 # error messages when used, to smooth transition.
4 #
5 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
6 #
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.
10
11 AC_DEFUN([AM_CONFIG_HEADER],
12 [AC_DIAGNOSE([obsolete],
13 ['$0': this macro is obsolete.
14 You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
15 AC_CONFIG_HEADERS($@)])
16
17 AC_DEFUN([AM_PROG_CC_STDC],
18 [AC_PROG_CC
19 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
20 AC_DIAGNOSE([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'.])])
25
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])