build: remove duplicated entries in $(TESTS)
[automake.git] / m4 / protos.m4
blobf710293e9b8daec0b530d7c273698f5f48d013d3
1 ## ------------------------------- ##                       -*- Autoconf -*-
2 ## Check for function prototypes.  ##
3 ## From Franc,ois Pinard           ##
4 ## ------------------------------- ##
5 # Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2006
6 # Free Software Foundation, Inc.
8 # This file is free software; the Free Software Foundation
9 # gives unlimited permission to copy and/or distribute it,
10 # with or without modifications, as long as this notice is preserved.
12 # serial 5
14 AC_DEFUN([AM_C_PROTOTYPES],
15 [AC_REQUIRE([AC_C_PROTOTYPES])
16 AC_DIAGNOSE([obsolete],
17             [$0: automatic de-ANSI-fication support is deprecated])
18 if test "$ac_cv_prog_cc_stdc" != no; then
19   U= ANSI2KNR=
20 else
21   U=_ ANSI2KNR=./ansi2knr
23 # Ensure some checks needed by ansi2knr itself.
24 AC_REQUIRE([AC_HEADER_STDC])
25 AC_CHECK_HEADERS([string.h])
26 AC_SUBST([U])dnl
27 AC_SUBST([ANSI2KNR])dnl
28 _AM_SUBST_NOTMAKE([ANSI2KNR])dnl
31 AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])