summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-07 19:52:03 +0000
committerJim Meyering <jim@meyering.net>2003-03-07 19:52:03 +0000
commitf7fcb9082236e3fd16cbb7ae7594009fa242b5e8 (patch)
treee7794acb1a172c71c26fdf0bd82e8e458ea5cc66 /m4
parentcb79312b0ca9ed5677eefc2ebf128bfffb625da2 (diff)
downloadcoreutils-f7fcb9082236e3fd16cbb7ae7594009fa242b5e8.tar.xz
(AC_LANG_SOURCE(C)): New macro.
Diffstat (limited to 'm4')
-rw-r--r--m4/jm-macros.m420
1 files changed, 19 insertions, 1 deletions
diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4
index 0c879947b..418b846cf 100644
--- a/m4/jm-macros.m4
+++ b/m4/jm-macros.m4
@@ -1,4 +1,22 @@
-#serial 59 -*- autoconf -*-
+#serial 60 -*- autoconf -*-
+
+m4_undefine([AC_LANG_SOURCE(C)])
+dnl The following is identical to the definition in c.m4
+dnl from the autoconf cvs repository on 2003-03-07.
+dnl FIXME: remove this code once we upgrade to autoconf-2.58.
+
+# We can't use '#line $LINENO "configure"' here, since
+# Sun c89 (Sun WorkShop 6 update 2 C 5.3 Patch 111679-08 2002/05/09)
+# rejects $LINENO greater than 32767, and some configure scripts
+# are longer than 32767 lines.
+m4_define([AC_LANG_SOURCE(C)],
+[/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$1])
+
dnl Misc type-related macros for fileutils, sh-utils, textutils.