aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2004-05-02 07:48:53 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2004-05-02 07:48:53 +0000
commit9850f34a3c09d08e44616b3be2ee593a1d1f26e0 (patch)
treeaf036adf42f561c0088ecc7bee94f7449d2a590f /gcc/configure.ac
parent764678d17d7e22a3b5d087b3f3e1d9a518df9a22 (diff)
downloadgcc-9850f34a3c09d08e44616b3be2ee593a1d1f26e0.zip
gcc-9850f34a3c09d08e44616b3be2ee593a1d1f26e0.tar.gz
gcc-9850f34a3c09d08e44616b3be2ee593a1d1f26e0.tar.bz2
configure.ac (FLEX, BISON): Only use tools from the build tree if build equals host.
* configure.ac (FLEX, BISON): Only use tools from the build tree if build equals host. * configure: Rebuilt. From-SVN: r81406
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index c5b354a..799f3ef 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -760,7 +760,7 @@ fi
# How about lex?
dnl Don't use AC_PROG_LEX; we insist on flex.
dnl LEXLIB is not useful in gcc.
-if test -f $srcdir/../flex/skel.c; then
+if test x${build} = x${host} && test -f $srcdir/../flex/skel.c; then
FLEX='$(objdir)/../flex/flex'
else
AC_CHECK_PROG(FLEX, flex, flex, ${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex)
@@ -768,7 +768,7 @@ fi
# Bison?
# The -L switch is so bison can find its skeleton file.
-if test -f $srcdir/../bison/bison.simple; then
+if test x${build} = x${host} && test -f $srcdir/../bison/bison.simple; then
BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
else
AC_CHECK_PROG(BISON, bison, bison, ${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison)