summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-06-05 11:04:03 +0000
committerDiego Biurrun <diego@biurrun.de>2009-06-05 11:04:03 +0000
commit9cad0e4ed827953634dfb895a4876fefa512a277 (patch)
tree2b51f4c7a6598a01fb50ec0ec64ad85bdc988b7e /configure
parent4656c375bc21368b2801977595c6b13e4302b4b8 (diff)
Add configure option to upgrade (L)GPL to version 3.
Originally committed as revision 19116 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index c35bfbb9b5..58f36c2de1 100755
--- a/configure
+++ b/configure
@@ -75,6 +75,7 @@ show_help(){
echo " --enable-shared build shared libraries [no]"
echo " --enable-gpl allow use of GPL code, the resulting libs"
echo " and binaries will be under GPL [no]"
+ echo " --enable-version3 upgrade (L)GPL to version 3 [no]"
echo " --enable-nonfree allow use of nonfree code, the resulting libs"
echo " and binaries will be unredistributable [no]"
echo " --disable-ffmpeg disable ffmpeg build"
@@ -812,6 +813,7 @@ CONFIG_LIST="
small
static
swscale_alpha
+ version3
x11grab
zlib
"
@@ -933,6 +935,8 @@ HAVE_LIST="
# options emitted with CONFIG_ prefix but not available on command line
CONFIG_EXTRA="
+ gplv3
+ lgplv3
"
CMDLINE_SELECT="
@@ -1757,6 +1761,7 @@ die_license_disabled nonfree libamr_nb
die_license_disabled nonfree libamr_wb
die_license_disabled nonfree libfaac
+enabled version3 && { enabled gpl && enable gplv3 || enable lgplv3; }
check_deps $ARCH_EXT_LIST
@@ -2391,6 +2396,10 @@ done
license="LGPL version 2.1 or later"
if enabled nonfree; then
license="nonfree and unredistributable"
+elif enabled gplv3; then
+ license="GPL version 3 or later"
+elif enabled lgplv3; then
+ license="LGPL version 3 or later"
elif enabled gpl; then
license="GPL version 2 or later"
fi