summaryrefslogtreecommitdiff
path: root/m4/protos.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-12-21 01:56:50 +0000
committerJim Meyering <jim@meyering.net>1996-12-21 01:56:50 +0000
commit58dfd6b4420c1d0d9136dfa98829ccd17853b064 (patch)
treeb10ebcf306455a04b25fd831347552f3736adec1 /m4/protos.m4
parent5fc47138b1f01f5ec8d449585bd19abea4da7960 (diff)
downloadcoreutils-58dfd6b4420c1d0d9136dfa98829ccd17853b064.tar.xz
copied from automake-1.1l
Diffstat (limited to 'm4/protos.m4')
-rw-r--r--m4/protos.m425
1 files changed, 25 insertions, 0 deletions
diff --git a/m4/protos.m4 b/m4/protos.m4
new file mode 100644
index 000000000..5c82294eb
--- /dev/null
+++ b/m4/protos.m4
@@ -0,0 +1,25 @@
+## ------------------------------- ##
+## Check for function prototypes. ##
+## From Franc,ois Pinard ##
+## ------------------------------- ##
+
+# serial 1
+
+AC_DEFUN(AM_C_PROTOTYPES,
+[AC_REQUIRE([AM_PROG_CC_STDC])
+AC_BEFORE([$0], [AC_C_INLINE])
+AC_MSG_CHECKING([for function prototypes])
+if test "$am_cv_prog_cc_stdc" != no; then
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(PROTOTYPES)
+ U= ANSI2KNR=
+else
+ AC_MSG_RESULT(no)
+ U=_ ANSI2KNR=./ansi2knr
+ # Ensure some checks needed by ansi2knr itself.
+ AC_HEADER_STDC
+ AC_CHECK_HEADERS(string.h)
+fi
+AC_SUBST(U)dnl
+AC_SUBST(ANSI2KNR)dnl
+])