configure.in (make_compare_target): Move test to ...

2003-08-08  Kelley Cook  <kelleycook@wideopenwest.com>

	* configure.in (make_compare_target): Move test to ...
	* aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
	* configure: Regenerate.

From-SVN: r70392
This commit is contained in:
Kelley Cook 2003-08-12 22:35:22 +00:00 committed by R. Kelley Cook
parent 560ad596bd
commit 3a000df0e6
4 changed files with 272 additions and 263 deletions

View File

@ -1,3 +1,9 @@
2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
* configure.in (make_compare_target): Move test to ...
* aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
* configure: Regenerate.
2003-08-12 Richard Sandiford <rsandifo@redhat.com>
* config/mips/iris6.h: Convert to C90 prototypes.

23
gcc/aclocal.m4 vendored
View File

@ -101,6 +101,29 @@ if test x = y ; then
fi
])
dnl 'make compare' can be significantly faster, if cmp itself can
dnl skip bytes instead of using tail. The test being performed is
dnl "if cmp --ignore-initial=2 t1 t2 && ! cmp --ignore-initial=1 t1 t2"
dnl but we need to sink errors and handle broken shells.
AC_DEFUN(gcc_AC_PROG_CMP_IGNORE_INITIAL,
[AC_CACHE_CHECK([for cmp's capabilities], gcc_cv_prog_cmp_skip,
[ 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
gcc_cv_prog_cmp_skip=slowcompare
else
gcc_cv_prog_cmp_skip=gnucompare
fi
else
gcc_cv_prog_cmp_skip=slowcompare
fi
rm t1 t2
])
make_compare_target=$gcc_cv_prog_cmp_skip
AC_SUBST(make_compare_target)
])
dnl See if the printf functions in libc support %p in format strings.
AC_DEFUN(gcc_AC_FUNC_PRINTF_PTR,
[AC_CACHE_CHECK(whether the printf functions support %p,

482
gcc/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -599,6 +599,9 @@ gcc_AC_PROG_LN_S
AC_PROG_RANLIB
gcc_AC_PROG_INSTALL
# See if cmp has --ignore-initial.
gcc_AC_PROG_CMP_IGNORE_INITIAL
# See if we have the mktemp command.
AC_CHECK_PROG(have_mktemp_command, mktemp, yes, no)
@ -634,27 +637,6 @@ else
GENERATED_MANPAGES=
fi
# 'make compare' can be significantly faster, if cmp itself can
# skip bytes instead of using tail. The test being performed is
# "if cmp --ignore-initial=2 t1 t2 && ! cmp --ignore-initial=1 t1 t2"
# but we need to sink errors and handle broken shells.
AC_CACHE_CHECK([for cmp's capabilities], gcc_cv_prog_cmp_skip,
[ 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
gcc_cv_prog_cmp_skip=slowcompare
else
gcc_cv_prog_cmp_skip=gnucompare
fi
else
gcc_cv_prog_cmp_skip=slowcompare
fi
rm t1 t2
])
make_compare_target=$gcc_cv_prog_cmp_skip
AC_SUBST(make_compare_target)
# How about lex?
dnl Don't use AC_PROG_LEX; we insist on flex.
dnl LEXLIB is not useful in gcc.