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 77fe5cacd36f7089ed26dda758669331c40df8b6..9bb63424ad8631480ed385b4420bf6909ed203f3 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 f649113eae11607a1bb3f0f472a5ef8ab580bcf6..7e227acfc0627848e239d06a8e3e34f20f31f4e9 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