]> git.sesse.net Git - ffmpeg/commitdiff
Merge commit '62be1caf161c1241a9e148f347850cfe092588dc'
authorJames Almer <jamrial@gmail.com>
Sun, 12 Nov 2017 02:11:44 +0000 (23:11 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 12 Nov 2017 02:11:44 +0000 (23:11 -0300)
* commit '62be1caf161c1241a9e148f347850cfe092588dc':
  configure: Bail out early if neither static nor shared libs are built

Merged-by: James Almer <jamrial@gmail.com>
1  2 
configure

diff --cc configure
index b5a45ef7d861f14d8075117abcf9f2bfff39a285,70463ae2c833ff4c4e0b2420b3ee8ecd3b4d294f..ffe5278f9c92dd4115f2358307b802dd0fc52e62
+++ b/configure
@@@ -3705,25 -2855,20 +3705,36 @@@ for e in $env; d
      eval "export $e"
  done
  
 +if disabled autodetect; then
 +
 +    # Unless iconv is explicitely disabled by the user, we still want to probe
 +    # for the iconv from the libc.
 +    disabled iconv || enable libc_iconv
 +
 +    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
 +
  disabled logging && logfile=/dev/null
  
 -# Die early if licensing-related configure options are incompatible.
+ # we need to build at least one lib type
+ if ! enabled_any static shared; then
+     cat <<EOF
+ At least one library type must be built.
+ Specify --enable-static to build the static libraries or --enable-shared to
+ build the shared libraries as well. To only build the shared libraries specify
+ --disable-static in addition to --enable-shared.
+ EOF
+     exit 1
+ fi
  die_license_disabled() {
      enabled $1 || { enabled $v && die "$v is $1 and --enable-$1 is not specified."; }
  }
@@@ -5307,18 -4195,7 +5318,7 @@@ set_default libdi
  set_default $PATHS_LIST
  set_default nm
  
- # we need to build at least one lib type
- if ! enabled_any static shared; then
-     cat <<EOF
- At least one library type must be built.
- Specify --enable-static to build the static libraries or --enable-shared to
- build the shared libraries as well. To only build the shared libraries specify
- --disable-static in addition to --enable-shared.
- EOF
-     exit 1
- fi
 -disabled optimizations || check_cflags -fomit-frame-pointer
 +disabled optimizations || enabled ossfuzz || check_cflags -fomit-frame-pointer
  
  enable_weak_pic() {
      disabled pic && return