summaryrefslogtreecommitdiff
path: root/m4/fptools_nocache_check.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/fptools_nocache_check.m4')
-rw-r--r--m4/fptools_nocache_check.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/m4/fptools_nocache_check.m4 b/m4/fptools_nocache_check.m4
new file mode 100644
index 0000000000..a309fd9792
--- /dev/null
+++ b/m4/fptools_nocache_check.m4
@@ -0,0 +1,11 @@
+dnl FPTOOLS_NOCACHE_CHECK prints a message, then sets the
+dnl values of the second argument to the result of running
+dnl the commands given by the third. It does not cache its
+dnl result, so it is suitable for checks which should be
+dnl run every time.
+dnl
+AC_DEFUN([FPTOOLS_NOCACHE_CHECK],
+[AC_MSG_CHECKING([$1])
+ $3
+ AC_MSG_RESULT([$][$2])
+])