summaryrefslogtreecommitdiff
path: root/m4/fp_check_prog.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/fp_check_prog.m4')
-rw-r--r--m4/fp_check_prog.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/m4/fp_check_prog.m4 b/m4/fp_check_prog.m4
new file mode 100644
index 0000000000..33ad72732b
--- /dev/null
+++ b/m4/fp_check_prog.m4
@@ -0,0 +1,8 @@
+# FP_CHECK_PROG(VARIABLE, PROG-TO-CHECK-FOR,
+# [VALUE-IF-NOT-FOUND], [PATH], [REJECT])
+# -----------------------------------------------------
+# HACK: A small wrapper around AC_CHECK_PROG, setting VARIABLE to the full path
+# of PROG-TO-CHECK-FOR when found.
+AC_DEFUN([FP_CHECK_PROG],
+[AC_CHECK_PROG([$1], [$2], [$as_dir/$ac_word$ac_exec_ext], [$3], [$4], [$5])][]dnl
+)# FP_CHECK_PROC