Commit ae90119c authored by Diego Biurrun's avatar Diego Biurrun

configure: Simplify license incompatibility check

parent e46a6fb7
...@@ -1219,12 +1219,15 @@ EXAMPLE_LIST=" ...@@ -1219,12 +1219,15 @@ EXAMPLE_LIST="
transcode_aac_example transcode_aac_example
" "
HWACCEL_LIBRARY_LIST=" HWACCEL_LIBRARY_NONFREE_LIST="
cuda cuda
libnpp
"
HWACCEL_LIBRARY_LIST="
$HWACCEL_LIBRARY_NONFREE_LIST
d3d11va d3d11va
dxva2 dxva2
libmfx libmfx
libnpp
mmal mmal
nvenc nvenc
omx omx
...@@ -1233,25 +1236,45 @@ HWACCEL_LIBRARY_LIST=" ...@@ -1233,25 +1236,45 @@ HWACCEL_LIBRARY_LIST="
vdpau vdpau
" "
EXTERNAL_LIBRARY_GPL_LIST="
libcdio
libx264
libx265
libxavs
libxvid
x11grab
"
EXTERNAL_LIBRARY_NONFREE_LIST="
libfaac
libfdk_aac
openssl
"
EXTERNAL_LIBRARY_VERSION3_LIST="
libopencore_amrnb
libopencore_amrwb
libvo_aacenc
libvo_amrwbenc
"
EXTERNAL_LIBRARY_LIST=" EXTERNAL_LIBRARY_LIST="
$EXTERNAL_LIBRARY_GPL_LIST
$EXTERNAL_LIBRARY_NONFREE_LIST
$EXTERNAL_LIBRARY_VERSION3_LIST
avisynth avisynth
bzlib bzlib
frei0r frei0r
gnutls gnutls
libbs2b libbs2b
libcdio
libdc1394 libdc1394
libdcadec libdcadec
libfaac
libfdk_aac
libfontconfig libfontconfig
libfreetype libfreetype
libgsm libgsm
libilbc libilbc
libkvazaar libkvazaar
libmp3lame libmp3lame
libopencore_amrnb
libopencore_amrwb
libopencv libopencv
libopenh264 libopenh264
libopenjpeg libopenjpeg
...@@ -1263,21 +1286,13 @@ EXTERNAL_LIBRARY_LIST=" ...@@ -1263,21 +1286,13 @@ EXTERNAL_LIBRARY_LIST="
libspeex libspeex
libtheora libtheora
libtwolame libtwolame
libvo_aacenc
libvo_amrwbenc
libvorbis libvorbis
libvpx libvpx
libwavpack libwavpack
libwebp libwebp
libx264
libx265
libxavs
libxcb libxcb
libxcb_shm libxcb_shm
libxcb_xfixes libxcb_xfixes
libxvid
openssl
x11grab
zlib zlib
" "
...@@ -4087,26 +4102,12 @@ EOF ...@@ -4087,26 +4102,12 @@ EOF
fi fi
die_license_disabled() { die_license_disabled() {
enabled $1 || { enabled $2 && die "$2 is $1 and --enable-$1 is not specified."; } enabled $1 || { enabled $v && die "$v is $1 and --enable-$1 is not specified."; }
} }
die_license_disabled gpl libcdio map "die_license_disabled gpl" $EXTERNAL_LIBRARY_GPL_LIST
die_license_disabled gpl libx264 map "die_license_disabled nonfree" $EXTERNAL_LIBRARY_NONFREE_LIST $HWACCEL_LIBRARY_NONFREE_LIST
die_license_disabled gpl libx265 map "die_license_disabled version3" $EXTERNAL_LIBRARY_VERSION3_LIST
die_license_disabled gpl libxavs
die_license_disabled gpl libxvid
die_license_disabled gpl x11grab
die_license_disabled nonfree cuda
die_license_disabled nonfree libfaac
die_license_disabled nonfree libfdk_aac
die_license_disabled nonfree libnpp
die_license_disabled nonfree openssl
die_license_disabled version3 libopencore_amrnb
die_license_disabled version3 libopencore_amrwb
die_license_disabled version3 libvo_aacenc
die_license_disabled version3 libvo_amrwbenc
enabled version3 && { enabled gpl && enable gplv3 || enable lgplv3; } enabled version3 && { enabled gpl && enable gplv3 || enable lgplv3; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment