summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-03-11 17:23:38 +0000
committerThomas Adam <thomas@xteddy.org>2020-03-11 17:23:38 +0000
commite512a3642ae3c05ae5ff26342aef66fc7c02916d (patch)
tree2119b53e11f6f2d393581b30fa7a1fddf23cbb13 /configure.ac
parent8d1d7fd775f8c92f4d6c7e6a4fa462f992ae381e (diff)
parentc820585dd0b5060d57296ae1086908e0b67b47b5 (diff)
Merge branch 'obsd-master'
Also add a check for -lm via AC_SEARCH_LIBS in configure.ac for portablility fixes.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 380eea73..8729e3f8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -122,6 +122,9 @@ AC_REPLACE_FUNCS([ \
])
AC_FUNC_STRNLEN
+# Look for libm
+AC_SEARCH_LIBS(sqrt, m)
+
# Look for clock_gettime. Must come before event_init.
AC_SEARCH_LIBS(clock_gettime, rt)