aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-10-10 10:27:23 +0100
committerThomas <thomas@xteddy.org>2013-10-11 14:36:28 +0100
commitb8b31ad53e693675dbe1e2f7a66c69701f119754 (patch)
treed0626933700a4af1c22ed8830545c36df910a1b3 /configure.ac
parent7f479ffdce8f49f6c57d575b708c4cbe8cbe18df (diff)
downloadrtmux-b8b31ad53e693675dbe1e2f7a66c69701f119754.tar.gz
rtmux-b8b31ad53e693675dbe1e2f7a66c69701f119754.tar.bz2
rtmux-b8b31ad53e693675dbe1e2f7a66c69701f119754.zip
Add openat() 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 590b9db0..b047eef2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -323,6 +323,13 @@ if test "x$found_cfmakeraw" = xyes; then
fi
AM_CONDITIONAL(NO_CFMAKERAW, [test "x$found_cfmakeraw" = xno])
+# Look for openat, compat/openat.c used if missing.
+AC_CHECK_FUNC(openat, found_openat=yes, found_openat=no)
+if test "x$found_openat" = xyes; then
+ AC_DEFINE(HAVE_OPENAT)
+fi
+AM_CONDITIONAL(NO_OPENAT, [test "x$found_openat" = 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)