summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2015-01-17 10:37:09 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2015-01-19 10:32:56 -0800
commit9f4cac7656b221ce2a8f97e7bd31e5e23126d001 (patch)
treedbee780cbb01371e51ee7b1da6982265ad697cd7
parentfe8eab93e9bcdbe8bb8052434bb5e676e3a0ee8f (diff)
Add AC_USE_SYSTEM_EXTENSIONS to expose arc4random() interfaces in headers
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index cf6b309..d117aa1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,10 @@ AC_INIT([libXdmcp], [1.1.1],
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXdmcp])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS([config.h])
+# Set common system defines for POSIX extensions, such as _GNU_SOURCE
+# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
+# to avoid autoconf errors.
+AC_USE_SYSTEM_EXTENSIONS
# Initialize Automake
AM_INIT_AUTOMAKE([foreign dist-bzip2])