summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2015-06-27 23:14:46 -0500
committerNicolas Williams <nico@cryptonector.com>2015-06-27 23:14:46 -0500
commit6366cfd7a4275a25e128cc55f4c24a4079bc7005 (patch)
treecac50923b71e245890d14f9122805805fe29cd8a /config
parent9985c019751ed848dfa66499b31960ef308fed94 (diff)
Add `pow`, better libm detection (fix #443)
Diffstat (limited to 'config')
-rw-r--r--config/m4/check-math-func.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/config/m4/check-math-func.m4 b/config/m4/check-math-func.m4
new file mode 100644
index 00000000..ce632726
--- /dev/null
+++ b/config/m4/check-math-func.m4
@@ -0,0 +1,4 @@
+dnl AC_FIND_FUNC(func, arguments)
+AC_DEFUN([AC_CHECK_MATH_FUNC], [
+ AC_FIND_FUNC_NO_LIBS([$1], [m], [#include <math.h>], [$2])
+])