summaryrefslogtreecommitdiff
path: root/m4/fp_compute_int.m4
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-04-02 11:52:47 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-05-05 05:42:38 -0400
commit7ffbdc3fa603c6411249ba9b758cf8f109c5fb30 (patch)
tree8a05d6e03ce2790e6e59651c824e569fee088d33 /m4/fp_compute_int.m4
parent6acadb79afe685c635fd255f90551a0fbfcbe3dc (diff)
downloadhaskell-7ffbdc3fa603c6411249ba9b758cf8f109c5fb30.tar.gz
Break up aclocal.m4
Diffstat (limited to 'm4/fp_compute_int.m4')
-rw-r--r--m4/fp_compute_int.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/m4/fp_compute_int.m4 b/m4/fp_compute_int.m4
new file mode 100644
index 0000000000..68afe22ef7
--- /dev/null
+++ b/m4/fp_compute_int.m4
@@ -0,0 +1,12 @@
+# FP_COMPUTE_INT(EXPRESSION, VARIABLE, INCLUDES, IF-FAILS)
+# --------------------------------------------------------
+# Assign VARIABLE the value of the compile-time EXPRESSION using INCLUDES for
+# compilation. Execute IF-FAILS when unable to determine the value. Works for
+# cross-compilation, too.
+#
+# Implementation note: We are lazy and use an internal autoconf macro, but it
+# is supported in autoconf versions 2.50 up to the actual 2.57, so there is
+# little risk.
+AC_DEFUN([FP_COMPUTE_INT],
+[AC_COMPUTE_INT([$2], [$1], [$3], [$4])[]dnl
+])# FP_COMPUTE_INT