summaryrefslogtreecommitdiffstats
path: root/build/linux/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'build/linux/configure.ac')
-rw-r--r--build/linux/configure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/build/linux/configure.ac b/build/linux/configure.ac
index ac0d82f..cb478f7 100644
--- a/build/linux/configure.ac
+++ b/build/linux/configure.ac
@@ -135,6 +135,13 @@ fi
AC_ARG_VAR(NVCCFLAGS, [CUDA nvcc flags])
+PKGCONFIG_CFLAGS_EXTRA=
+if test x"$HAVECUDA" = xyes; then
+ PKGCONFIG_CFLAGS_EXTRA="-DASTRA_CUDA"
+fi
+AC_SUBST(PKGCONFIG_CFLAGS_EXTRA)
+
+
AC_SUBST(HAVECUDA)
AC_SUBST(LDFLAGS_CUDA)
@@ -295,7 +302,7 @@ AC_SUBST(SAVED_CXXFLAGS)
AC_SUBST(SAVED_NVCCFLAGS)
AC_SUBST(SAVED_LDFLAGS)
AC_SUBST(SAVED_LIBS)
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([Makefile libastra.pc])
AC_OUTPUT
echo