aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/src/utils.c10
-rw-r--r--libcrystfel/src/utils.h6
2 files changed, 16 insertions, 0 deletions
diff --git a/libcrystfel/src/utils.c b/libcrystfel/src/utils.c
index fb532dc9..048180cf 100644
--- a/libcrystfel/src/utils.c
+++ b/libcrystfel/src/utils.c
@@ -803,3 +803,13 @@ char *load_entire_file(const char *filename)
}
+/* -------------------------- libcrystfel features ------------------------ */
+
+int crystfel_has_peakfinder9()
+{
+#ifdef HAVE_FDIP
+ return 1;
+#else
+ return 0;
+#endif
+}
diff --git a/libcrystfel/src/utils.h b/libcrystfel/src/utils.h
index d90ae461..a43263e0 100644
--- a/libcrystfel/src/utils.h
+++ b/libcrystfel/src/utils.h
@@ -292,6 +292,12 @@ static inline void mean_variance(const double x, const double w,
*sumw = temp;
}
+
+/* -------------------------- libcrystfel features ------------------------ */
+
+extern int crystfel_has_peakfinder9(void);
+
+
#ifdef __cplusplus
}
#endif