This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Configure patch] Issue error if bison not found


On Thu, Nov 28, 2002 at 05:18:08AM +0000, Hans-Peter Nilsson wrote:
> On Thu, 28 Nov 2002, Craig Rodrigues wrote:
> > Index: configure.in
> >    AC_CHECK_PROG(BISON, bison, bison, false)
> 
> Should be (IIUC):
> AC_CHECK_PROG (BISON, bison, bison, missing bison)

I don't understand you correctly.

With my patch, configure will bomb and issue a useful error message
saying that bison is missing.
With your patch, configure will generate a Makefile with:

BISON=missing bison

then if I try to do:
make bootstrap,

Bootstrapping the compiler
if test -f stage_last ; then  LAST=`cat stage_last`; rm $LAST; make LANGUAGES="c
 gcov c++" $LAST;  else  make stage1_build;  fi
make CC="gcc" libdir=/home/rodrigc/testgcc/testgcc1/lib LANGUAGES="c"  CFLAGS="-
g" MAKEINFO="makeinfo"  MAKEINFOFLAGS="" COVERAGE_FLAGS=
(cd /home/rodrigc/testgcc/gcc/gcc &&  missing bison  -d -o gengtype-yacc.c gengt
ype-yacc.y ||  ( rm -f /home/rodrigc/testgcc/gcc/gcc/gengtype-yacc.c && false )
)
missing: not found
*** Error code 1




-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@attbi.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]