BFD protocol strictly depends on pthreads being enabled,
but the compilation configuration checks do not reflect it now.
Add a check for pthreads when BFD is included in the
configured protocols.
Thank you Alexander Zubkov <green@qrator.net> for the report and patch!
Closes: #306
protocols=`echo "$with_protocols" | sed 's/,/ /g'`
if test "$protocols" = no ; then protocols= ; fi
for a in $protocols ; do
+ if test "$a" = bfd && ! test "$enable_pthreads" = yes ; then
+ AC_MSG_RESULT([failed])
+ AC_MSG_ERROR([Protocol $a requires pthreads])
+ fi
if ! test -f $srcdir/proto/$a/Makefile ; then
AC_MSG_RESULT([failed])
AC_MSG_ERROR([Requested protocol $a not found])