fix a few missed CUDA_PATH refs
authorGood Guy <good1.2guy@gmail.com>
Wed, 26 Jun 2019 13:08:23 +0000 (07:08 -0600)
committerGood Guy <good1.2guy@gmail.com>
Wed, 26 Jun 2019 13:08:23 +0000 (07:08 -0600)
cinelerra-5.1/configure.ac
cinelerra-5.1/plugin_cuda

index 77fe5ca..9bb6342 100644 (file)
@@ -691,7 +691,7 @@ CHECK_WANT([LV2], [auto], [use lv2], [
  CFLAGS="$saved_CFLAGS"])
 
 CHECK_WANT([CUDA], [auto], [build cuda plugins], [
-  CHECK_HEADERS([CUDA], [cuda sdk], [/usr/local/cuda/include/cuda.h])])
+  CHECK_HEADERS([CUDA], [cuda sdk], [${CUDA_PATH:-/usr/local/cuda}/include/cuda.h])])
 
 CHECK_WANT([DL], [auto], [system has libdl], [
  CHECK_LIB([DL], [dl], [dlopen])])
index f649113..7e227ac 100644 (file)
@@ -14,7 +14,7 @@ GENCODE_FLAGS += -gencode arch=compute_$(HIGHEST_SM),code=compute_$(HIGHEST_SM)
 
 # samples source access BEWARE!
 # contains includes which conflict: search /usr/include first
-CFLAGS += -I/usr/include -I/usr/local/cuda/samples
+CFLAGS += -I/usr/include -I$(CUDA_PATH)/samples
 CFLAGS += -I$(CUDA_PATH)/samples/common/inc
 CFLAGS += -I$(CUDA_PATH)/targets/x86_64-linux/include
 CFLAGS += -Wno-unused-function