Commit baade80b by Phil Edwards

configure.in: More general test for cmp --ignore-initial.

2003-04-29  Phil Edwards  <pme@gcc.gnu.org>

	* configure.in:  More general test for cmp --ignore-initial.
	* configure:  Regenerate.

From-SVN: r66265
parent 84d8756d
2003-04-29 Phil Edwards <pme@gcc.gnu.org>
* configure.in: More general test for cmp --ignore-initial.
* configure: Regenerate.
2003-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> 2003-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* tree.c (save_expr): Don't fold a COMPONENT_REF. * tree.c (save_expr): Don't fold a COMPONENT_REF.
......
...@@ -645,16 +645,25 @@ else ...@@ -645,16 +645,25 @@ else
GENERATED_MANPAGES= GENERATED_MANPAGES=
fi fi
# If GNU cmp is present and recent enough, 'make compare' can be # 'make compare' can be significantly faster, if cmp itself can
# significantly faster. # skip bytes instead of using tail. The test being performed is
gcc_AC_CHECK_PROG_VER(gnucmp, cmp, --version, # "if cmp --ignore-initial=2 t1 t2 && ! cmp --ignore-initial=1 t1 t2"
[(GNU diffutils) \([0-9][0-9.]*\)], [2.[4-9]*]) # but we need to sink errors and handle broken shells.
if test $gcc_cv_prog_cmp_modern = yes; then AC_MSG_CHECKING([for cmp's capabilities])
make_compare_target=gnucompare echo abfoo >t1
echo cdfoo >t2
if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
make_compare_target=slowcompare
else
make_compare_target=gnucompare
fi
else else
make_compare_target=slowcompare make_compare_target=slowcompare
fi fi
rm t1 t2
AC_SUBST(make_compare_target) AC_SUBST(make_compare_target)
AC_MSG_RESULT($make_compare_target)
# How about lex? # How about lex?
dnl Don't use AC_PROG_LEX; we insist on flex. dnl Don't use AC_PROG_LEX; we insist on flex.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment