aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2014-07-24 21:31:07 +0100
committerThomas Adam <thomas@xteddy.org>2014-08-09 20:31:48 +0100
commit92997b781a035626bef4e84fbcd7f2282f761a3c (patch)
tree711027ebb888ed30f3623f634ed05f14d216d6eb /configure.ac
parenta131b82e95df990528371b1d9ca40ee2be264fc8 (diff)
downloadrtmux-92997b781a035626bef4e84fbcd7f2282f761a3c.tar.gz
rtmux-92997b781a035626bef4e84fbcd7f2282f761a3c.tar.bz2
rtmux-92997b781a035626bef4e84fbcd7f2282f761a3c.zip
Add compat/fparseln() for non-BSD systems
Linux and friends don't natively have fparseln() so add it to compat/ and ensure autotools can pick it up.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a81ecc42..82533a35 100644
--- a/configure.ac
+++ b/configure.ac
@@ -295,6 +295,13 @@ if test "x$found_fgetln" = xyes; then
fi
AM_CONDITIONAL(NO_FGETLN, [test "x$found_fgetln" = xno])
+# Look for fparseln, compat/fparseln.c used if missing.
+AC_CHECK_FUNC(fparseln, found_fparseln=yes, found_fparseln=no)
+if test "x$found_fparseln" = xyes; then
+ AC_DEFINE(HAVE_FPARSELN)
+fi
+AM_CONDITIONAL(NO_FPARSELN, [test "x$found_fparseln" = xno])
+
# Look for strcasestr, compat/strcasestr.c used if missing.
AC_CHECK_FUNC(strcasestr, found_strcasestr=yes, found_strcasestr=no)
if test "x$found_strcasestr" = xyes; then