Commit 9f2c1c77 authored by Anton Khirnov's avatar Anton Khirnov Committed by Derek Buitenhuis

configure: Allow linking to CUDA dynamically instead of dlopen()ing it at runtime

This currently doesn't do anything, but will be used later for hwaccel
filters and libavutil.
Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent e1c15a94
...@@ -196,6 +196,7 @@ Individual component options: ...@@ -196,6 +196,7 @@ Individual component options:
External library support: External library support:
--enable-avisynth enable reading of AviSynth script files [no] --enable-avisynth enable reading of AviSynth script files [no]
--disable-bzlib disable bzlib [autodetect] --disable-bzlib disable bzlib [autodetect]
--enable-cuda enable dynamically linked CUDA [no]
--enable-chromaprint enable audio fingerprinting with chromaprint [no] --enable-chromaprint enable audio fingerprinting with chromaprint [no]
--enable-fontconfig enable fontconfig, useful for drawtext filter [no] --enable-fontconfig enable fontconfig, useful for drawtext filter [no]
--enable-frei0r enable frei0r video filtering [no] --enable-frei0r enable frei0r video filtering [no]
...@@ -1426,6 +1427,7 @@ EXTERNAL_LIBRARY_LIST=" ...@@ -1426,6 +1427,7 @@ EXTERNAL_LIBRARY_LIST="
bzlib bzlib
chromaprint chromaprint
crystalhd crystalhd
cuda
decklink decklink
frei0r frei0r
gcrypt gcrypt
...@@ -4883,6 +4885,7 @@ die_license_disabled gpl libxavs ...@@ -4883,6 +4885,7 @@ die_license_disabled gpl libxavs
die_license_disabled gpl libxvid die_license_disabled gpl libxvid
die_license_disabled gpl x11grab die_license_disabled gpl x11grab
die_license_disabled nonfree cuda
die_license_disabled nonfree libfaac die_license_disabled nonfree libfaac
die_license_disabled nonfree nvenc die_license_disabled nonfree nvenc
enabled gpl && die_license_disabled_gpl nonfree libfdk_aac enabled gpl && die_license_disabled_gpl nonfree libfdk_aac
...@@ -5452,6 +5455,7 @@ enabled avfoundation_indev && { check_lib2 CoreGraphics/CoreGraphics.h CGGetActi ...@@ -5452,6 +5455,7 @@ enabled avfoundation_indev && { check_lib2 CoreGraphics/CoreGraphics.h CGGetActi
enabled avisynth && { { check_lib2 "windows.h" LoadLibrary; } || enabled avisynth && { { check_lib2 "windows.h" LoadLibrary; } ||
{ check_lib2 "dlfcn.h" dlopen -ldl; } || { check_lib2 "dlfcn.h" dlopen -ldl; } ||
die "ERROR: LoadLibrary/dlopen not found for avisynth"; } die "ERROR: LoadLibrary/dlopen not found for avisynth"; }
enabled cuda && check_lib cuda.h cuInit -lcuda
enabled chromaprint && require chromaprint chromaprint.h chromaprint_get_version -lchromaprint enabled chromaprint && require chromaprint chromaprint.h chromaprint_get_version -lchromaprint
enabled decklink && { check_header DeckLinkAPI.h || die "ERROR: DeckLinkAPI.h header not found"; } enabled decklink && { check_header DeckLinkAPI.h || die "ERROR: DeckLinkAPI.h header not found"; }
enabled frei0r && { check_header frei0r.h || die "ERROR: frei0r.h header not found"; } enabled frei0r && { check_header frei0r.h || die "ERROR: frei0r.h header not found"; }
......
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