From ea9f119b615918916f54d04bd9f784acdec87dd5 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 23 Jan 2001 08:03:26 +0000 Subject: Add test for new enough binutils version, move compiler/binutils test up. * configure.in: Add test for new enough binutils version, move compiler/binutils test up. --- configure.in | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index d3daf7debd..261a5e1b11 100644 --- a/configure.in +++ b/configure.in @@ -567,6 +567,21 @@ AC_CHECK_PROG_VER(SED, gsed sed, --version, [GNU sed version \([0-9]*\.[0-9.]*\)], [3.0[2-9]*|3.[1-9]*|[4-9]*], SED=: aux_missing=t) +AC_PROG_CC_LOCAL +AC_CANONICAL_BUILD +if test $host != $build; then + AC_CHECK_PROGS(BUILD_CC, gcc cc) +fi +AC_SUBST(cross_compiling) +AC_PROG_CPP +LIBC_PROG_BINUTILS +AC_CHECK_TOOL(MIG, mig) + +# Accept binutils 2.10.1 or newer (and also any ia64 2.9 version) +AC_CHECK_PROG_VER(AS, $AS, --version, + [GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\)], + [2.10.[1-9]* | 2.1[1-9]* | 2.9-ia64-*], AS=: critic_missing=t) + if test -n "$critic_missing"; then AC_MSG_ERROR([ *** Some critical program is missing or too old. @@ -582,16 +597,6 @@ test -n "$aux_missing" && AC_MSG_WARN([ CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'` AC_SUBST(CCVERSION) -AC_PROG_CC_LOCAL -AC_CANONICAL_BUILD -if test $host != $build; then - AC_CHECK_PROGS(BUILD_CC, gcc cc) -fi -AC_SUBST(cross_compiling) -AC_PROG_CPP -LIBC_PROG_BINUTILS -AC_CHECK_TOOL(MIG, mig) - # if using special system headers, find out the compiler's sekrit # header directory and add that to the list. NOTE: Only does the right # thing on a system that doesn't need fixincludes. (Not presently a problem.) -- cgit v1.2.3