On 11.11.2010 09:37, Paolo Bonzini wrote: > On 11/11/2010 01:08 AM, Matthias Klose wrote: >> + if test x${default_ld} = xgold; then >> + AC_MSG_ERROR([either gold or ld can be the default ld]) >> + fi > > If you test for x${ENABLE_GOLD} = xdefault, the default_ld variable can go away. no. ENABLE_GOLD is set to yes in the case statement above. The error message would even trigger if gold is enabled but not the default. >> + no) >> + if test x${ENABLE_GOLD} != xyes; then >> + AC_MSG_ERROR([gold must be enabled to disable ld]) >> + fi > > I think this is not necessary, you can disable both packages. This would have > the same effect as --without-gnu-ld. Please conditionalize the message on > $use_gnu_ld != no and make it a warning rather than an error. > > Ok with this fixed. made it a warning. Kept the condition. Having $use_gnu_ld != no still prints the warning for --enable-gold --disable-ld. Matthias