From a6000be09142b1a086256dba93ecb17998099c7e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= <cboesch@gopro.com>
Date: Fri, 28 Jul 2017 13:44:07 +0200
Subject: [PATCH 8/8] build: add --disable-autodetect switch
---
Changelog | 1 +
configure | 12 ++++++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
@@ -29,6 +29,7 @@ version <next>:
- limiter video filter
- libvmaf video filter
- Dolby E decoder and SMPTE 337M demuxer
+- add --disable-autodetect build switch
version 3.3:
- CrystalHD decoder moved to new decode API
@@ -109,6 +109,7 @@ Configuration options:
--enable-gray enable full grayscale support (slower color)
--disable-swscale-alpha disable alpha channel support in swscale
--disable-all disable building components, libraries and programs
+ --disable-autodetect disable automatically detected external libraries [no]
Program options:
--disable-programs do not build command line programs
@@ -1683,6 +1684,7 @@ CONFIG_LIST="
$LIBRARY_LIST
$PROGRAM_LIST
$SUBSYSTEM_LIST
+ autodetect
fontconfig
memory_poisoning
neon_clobber_test
@@ -3579,13 +3581,19 @@ for e in $env; do
eval "export $e"
done
+if disabled autodetect; then
+ disable_weak $EXTERNAL_AUTODETECT_LIBRARY_LIST
+ disable_weak $HWACCEL_AUTODETECT_LIBRARY_LIST
+fi
# Mark specifically enabled, but normally autodetected libraries as requested.
for lib in $AUTODETECT_LIBS; do
enabled $lib && request $lib
done
#TODO: switch to $AUTODETECT_LIBS when $THREADS_LIST is supported the same way
-enable_weak $EXTERNAL_AUTODETECT_LIBRARY_LIST
-enable_weak $HWACCEL_AUTODETECT_LIBRARY_LIST
+if ! disabled autodetect; then
+ enable_weak $EXTERNAL_AUTODETECT_LIBRARY_LIST
+ enable_weak $HWACCEL_AUTODETECT_LIBRARY_LIST
+fi
disabled logging && logfile=/dev/null
--
2.13.3