Peter Williams <[EMAIL PROTECTED]> writes: > This sounds like it calls for AC_TRY_LINK. Is there a reason that this > won't work? > > LIBS="-lbfd" > > AC_TRY_LINK(,,[ > BFD_DEPLIBS="-lbfd" > ],[ > LIBS="$LIBS -liberty" > AC_TRY_LINK(,,[ > BFD_DEPLIBS="-lbfd -liberty" > ],[ > AC_MSG_ERROR([Cannot figure out how to link with > the BFD library; see config.log for more information]) > ]) > ])
Well, this check is wrong because if you need to use -liberty, than you have a non-shared and thus unusable libbfd. I'm now using ===== old_LIBS=$LIBS LIBS="-lbfd" AC_MSG_CHECKING(whether we have a shared libbfd.so) AC_TRY_LINK_FUNC(_sch_istable,,[AC_MSG_ERROR([ *** You libbfd is unusable for the debugger. *** Please read the binutils and libbfd issues section in README.FreeBSD.])]) LIBS=$old_LIBS AC_MSG_RESULT(ok) ===== and the README.FreeBSD file explains the issue. -- Martin Baulig [EMAIL PROTECTED] [EMAIL PROTECTED] _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
