summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--volk/config/orc.m44
-rw-r--r--volk/volk.pc.in2
2 files changed, 5 insertions, 1 deletions
diff --git a/volk/config/orc.m4 b/volk/config/orc.m4
index df0f3d6f3..d17160a9a 100644
--- a/volk/config/orc.m4
+++ b/volk/config/orc.m4
@@ -22,6 +22,7 @@ AC_DEFUN([ORC_CHECK],
AC_SUBST(ORC_CFLAGS)
LV_HAVE_ORC=yes
LV_HAVE_ORCC=yes
+ LV_ORC_PKGCONFIG="-lvolk_orc"
if test "x$cross_compiling" = "xyes" ; then
LV_HAVE_ORCC=no
fi
@@ -32,14 +33,17 @@ AC_DEFUN([ORC_CHECK],
AC_DEFINE(DISABLE_ORC, 1, [Disable Orc])
LV_HAVE_ORC=no
LV_HAVE_ORCC=no
+ LV_ORC_PKGCONFIG=""
])
else
AC_DEFINE(DISABLE_ORC, 1, [Disable Orc])
LV_HAVE_ORC=no
LV_HAVE_ORCC=no
+ LV_ORC_PKGCONFIG=""
fi
AM_CONDITIONAL(LV_HAVE_ORC, [test "x$LV_HAVE_ORC" = "xyes"])
AM_CONDITIONAL(LV_HAVE_ORCC, [test "x$LV_HAVE_ORCC" = "xyes"])
+ AC_SUBST(LV_ORC_PKGCONFIG)
]))
AC_DEFUN([ORC_OUTPUT],
diff --git a/volk/volk.pc.in b/volk/volk.pc.in
index b03dbdada..85425ba64 100644
--- a/volk/volk.pc.in
+++ b/volk/volk.pc.in
@@ -10,6 +10,6 @@ Name: volk
Description: VOLK.. Vector Optimized Library of Kernels
Requires:
Version: @VERSION@
-Libs: -lvolk -lvolk_runtime -lvolk_orc
+Libs: -lvolk -lvolk_runtime @LV_ORC_PKGCONFIG@
Cflags: -I${includedir} ${LV_CXXFLAGS}