On Mon, 23 Dec 2013, Diego Biurrun wrote:

This avoids printing a detected threading type in the short summary
when threading is disabled overall.  To have the information about
whether or not threading is enabled available, move the block after
the global component dependency checking.
---
configure | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/configure b/configure
index 462e3ba..86e9ede 100755
--- a/configure
+++ b/configure
@@ -3882,14 +3882,6 @@ if ! disabled pthreads && ! enabled w32threads; then
    fi
fi

-for thread in $THREADS_LIST; do
-    if enabled $thread; then
-        test -n "$thread_type" &&
-            die "ERROR: Only one thread type must be selected." ||
-            thread_type="$thread"
-    fi
-done
-
disabled  zlib || check_lib   zlib.h      zlibVersion -lz   || disable  zlib
disabled bzlib || check_lib2 bzlib.h BZ2_bzlibVersion -lbz2 || disable bzlib

@@ -4205,6 +4197,16 @@ check_deps $CONFIG_LIST       \
! enabled_any memalign posix_memalign aligned_malloc &&
    enabled_any $need_memalign && enable memalign_hack

+if enabled $threads; then

Where is $threads ever set? Or do you mean "enabled threads"?

If that's the case, I guess this patch is ok.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to