aboutsummaryrefslogtreecommitdiff
path: root/gcc/aclocal.m4
diff options
context:
space:
mode:
authorNathanael Nerode <neroden@gcc.gnu.org>2003-12-07 16:12:26 +0000
committerNathanael Nerode <neroden@gcc.gnu.org>2003-12-07 16:12:26 +0000
commit63cf211af7291642bb723a58898f78fe1a1cf3de (patch)
tree5d3cc3e248587e0531f90d1946a83849642a3b9e /gcc/aclocal.m4
parentb8ec65864910c06bc4b1ceb4e59f02c09693dce6 (diff)
downloadgcc-63cf211af7291642bb723a58898f78fe1a1cf3de.zip
gcc-63cf211af7291642bb723a58898f78fe1a1cf3de.tar.gz
gcc-63cf211af7291642bb723a58898f78fe1a1cf3de.tar.bz2
configure.in, aclocal.m4: Revert to pre-2.5x conversion status.
* configure.in, aclocal.m4: Revert to pre-2.5x conversion status. * configure: Regenerate with autoconf 2.13. From-SVN: r74396
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r--gcc/aclocal.m423
1 files changed, 22 insertions, 1 deletions
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4
index 054a2bb..788db37 100644
--- a/gcc/aclocal.m4
+++ b/gcc/aclocal.m4
@@ -16,6 +16,27 @@ if test $ac_cv_header_stdbool_h = yes; then
fi
])
+dnl Fixed AC_CHECK_TYPE that doesn't need anything in acconfig.h.
+dnl Remove after migrating to 2.5x.
+AC_DEFUN([gcc_AC_CHECK_TYPE],
+[AC_REQUIRE([AC_HEADER_STDC])dnl
+AC_MSG_CHECKING(for $1)
+AC_CACHE_VAL(ac_cv_type_$1,
+[AC_EGREP_CPP(dnl
+changequote(<<,>>)dnl
+<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl
+changequote([,]), [#include <sys/types.h>
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
+AC_MSG_RESULT($ac_cv_type_$1)
+if test $ac_cv_type_$1 = no; then
+ AC_DEFINE($1, $2, [Define as \`$2' if <sys/types.h> doesn't define.])
+fi
+])
+
+
dnl See whether we can include both string.h and strings.h.
AC_DEFUN([gcc_AC_HEADER_STRING],
[AC_CACHE_CHECK([whether string.h and strings.h may both be included],
@@ -732,7 +753,7 @@ AC_DEFUN([gcc_GAS_CHECK_FEATURE],
if test $in_tree_gas = yes; then
gcc_GAS_VERSION_GTE_IFELSE($3, [[$2]=yes])
el])if test x$gcc_cv_as != x; then
- echo ifelse(m4_substr([$5],0,1),[$], "[$5]", '[$5]') > conftest.s
+ echo ifelse(substr([$5],0,1),[$], "[$5]", '[$5]') > conftest.s
if AC_TRY_COMMAND([$gcc_cv_as $4 -o conftest.o conftest.s >&AC_FD_CC])
then
ifelse([$6],, [$2]=yes, [$6])