From 9850f34a3c09d08e44616b3be2ee593a1d1f26e0 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sun, 2 May 2004 07:48:53 +0000 Subject: 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 --- gcc/configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/configure') diff --git a/gcc/configure b/gcc/configure index 1f1baa0..38c2591 100755 --- a/gcc/configure +++ b/gcc/configure @@ -1017,7 +1017,7 @@ esac else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi - cd "$ac_popdir" + cd $ac_popdir done fi @@ -5326,7 +5326,7 @@ echo "${ECHO_T}no" >&6 fi # How about lex? -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 # Extract the first word of "flex", so it can be a program name with args. @@ -5369,7 +5369,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 # Extract the first word of "bison", so it can be a program name with args. -- cgit v1.1