aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2015-11-18 12:54:29 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2015-11-18 12:54:29 +0000
commita77960c540b6ee27ad5538a638ae3615cd025539 (patch)
tree7b5f3bfc26c9b9b8cf42669c2b1a204ce1b3ac5e /configure.ac
parent349a62ed4f6ece8a5cf5fd332ba7c9a75777ccb3 (diff)
downloadrtmux-a77960c540b6ee27ad5538a638ae3615cd025539.tar.gz
rtmux-a77960c540b6ee27ad5538a638ae3615cd025539.tar.bz2
rtmux-a77960c540b6ee27ad5538a638ae3615cd025539.zip
Add reallocarray to compat.
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 a2b9e054..6cd859f0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -365,6 +365,13 @@ if test "x$found_openat" = xyes; then
fi
AM_CONDITIONAL(NO_OPENAT, [test "x$found_openat" = xno])
+# Look for reallocarray, compat/reallocarray.c used if missing.
+AC_CHECK_FUNC(reallocarray, found_reallocarray=yes, found_reallocarray=no)
+if test "x$found_reallocarray" = xyes; then
+ AC_DEFINE(HAVE_REALLOCARRAY)
+fi
+AM_CONDITIONAL(NO_REALLOCARRAY, [test "x$found_reallocarray" = xno])
+
# Look for getopt. glibc's getopt does not enforce argument order and the ways
# of making it do so are stupid, so just use our own instead.
AC_CHECK_FUNC(getopt, found_getopt=yes, found_getopt=no)