From: David Petera Date: Mon, 24 Nov 2025 13:39:38 +0000 (+0100) Subject: Conf: Check for enabled pthreads when using BFD X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08c1ab21a1a238054ba916011ddaada8efe8ab04;p=thirdparty%2Fbird.git Conf: Check for enabled pthreads when using BFD 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 for the report and patch! Closes: #306 --- diff --git a/configure.ac b/configure.ac index cf6a2d581..fc7f76e20 100644 --- a/configure.ac +++ b/configure.ac @@ -340,6 +340,10 @@ AC_MSG_CHECKING([protocols]) 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])