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])])
# 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