source: trunk/essentials/sys-devel/automake-1.4/m4/protos.m4

Last change on this file was 3124, checked in by bird, 18 years ago

automake 1.4-p6

File size: 632 bytes
Line 
1## ------------------------------- ##
2## Check for function prototypes. ##
3## From Franc,ois Pinard ##
4## ------------------------------- ##
5
6# serial 1
7
8AC_DEFUN([AM_C_PROTOTYPES],
9[AC_REQUIRE([AM_PROG_CC_STDC])
10AC_REQUIRE([AC_PROG_CPP])
11AC_MSG_CHECKING([for function prototypes])
12if test "$am_cv_prog_cc_stdc" != no; then
13 AC_MSG_RESULT(yes)
14 AC_DEFINE(PROTOTYPES,1,[Define if compiler has function prototypes])
15 U= ANSI2KNR=
16else
17 AC_MSG_RESULT(no)
18 U=_ ANSI2KNR=./ansi2knr
19 # Ensure some checks needed by ansi2knr itself.
20 AC_HEADER_STDC
21 AC_CHECK_HEADERS(string.h)
22fi
23AC_SUBST(U)dnl
24AC_SUBST(ANSI2KNR)dnl
25])
Note: See TracBrowser for help on using the repository browser.