summaryrefslogtreecommitdiffstats
path: root/clients/tde/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'clients/tde/configure.in.in')
-rw-r--r--clients/tde/configure.in.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/clients/tde/configure.in.in b/clients/tde/configure.in.in
index a47e6de..7a8a6da 100644
--- a/clients/tde/configure.in.in
+++ b/clients/tde/configure.in.in
@@ -9,3 +9,31 @@ fi
KDE_INIT_DOXYGEN([The API Reference], [Version $VERSION])
+# -----------------------------------------------------------------
+#
+# pkg config check
+#
+# -----------------------------------------------------------------
+
+AC_ARG_VAR(PKGCONFIGFOUND, [Path to pkg-config])
+AC_CHECK_PROG(PKGCONFIGFOUND, pkg-config,[yes])
+
+#------------------------------------------------------------------
+#
+# Check for ffts
+#
+#------------------------------------------------------------------
+
+LIB_FFTS=""
+
+if test x$PKGCONFIGFOUND = xyes; then
+ PKG_CHECK_MODULES(FFTS, ffts >= 0.7, have_ffts=yes,have_ffts=no)
+
+ if test x$have_ffts = xyes; then
+ AC_DEFINE(HAVE_FFTS, 1, [have FFTS transform library])
+ LIB_FFTS=`pkg-config --libs ffts`
+ fi
+fi
+
+AC_SUBST(LIB_FFTS)
+AM_CONDITIONAL(with_included_ffts, [test x$included_ffts = xyes]) \ No newline at end of file