summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-01-13 14:07:37 +0100
committerAnton Khirnov <anton@khirnov.net>2016-02-14 22:08:13 +0100
commitc51b2c79a7ba084253e892c56dd49ee97115c7de (patch)
tree6c5256804069367e6cedf0e9f390d86b54405fbf /configure
parentbd49be885e9ad6bae599c54473ba2fa2957eb140 (diff)
Allow linking to CUDA dynamically instead of dlopen()ing it at runtime
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index 9ee700a96b..fc75e1825b 100755
--- a/configure
+++ b/configure
@@ -179,6 +179,7 @@ Individual component options:
External library support:
--enable-avisynth enable reading of AviSynth script files [no]
--enable-bzlib enable bzlib [autodetect]
+ --enable-cuda enable dynamically linked CUDA [no]
--enable-frei0r enable frei0r video filtering
--enable-gnutls enable gnutls [no]
--enable-libbs2b enable bs2b DSP library [no]
@@ -1238,6 +1239,7 @@ EXAMPLE_LIST="
EXTERNAL_LIBRARY_LIST="
avisynth
bzlib
+ cuda
frei0r
gnutls
libbs2b
@@ -4043,6 +4045,7 @@ 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 nvenc
@@ -4523,6 +4526,7 @@ done
enabled avisynth && { check_lib2 "avisynth/avisynth_c.h windows.h" LoadLibrary ||
check_lib2 "avxsynth/avxsynth_c.h dlfcn.h" dlopen -ldl ||
die "ERROR: LoadLibrary/dlopen not found, or avisynth header not found"; }
+enabled cuda && check_lib cuda.h cuInit -lcuda
enabled frei0r && { check_header frei0r.h || die "ERROR: frei0r.h header not found"; }
enabled gnutls && require_pkg_config gnutls gnutls/gnutls.h gnutls_global_init
enabled libbs2b && require_pkg_config libbs2b bs2b.h bs2b_open
@@ -4617,7 +4621,7 @@ if enabled libdc1394; then
fi
if enabled nvenc; then
- check_header cuda.h || die "ERROR: cuda.h not found.";
+ enabled cuda || check_header cuda.h || die "ERROR: cuda.h not found.";
check_header nvEncodeAPI.h || die "ERROR: nvEncodeAPI.h not found.";
check_cpp_condition nvEncodeAPI.h "NVENCAPI_MAJOR_VERSION >= 5" ||
die "ERROR: NVENC API version 4 or older is not supported";