diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-27 20:55:33 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-27 20:55:37 -0700 |
commit | bfb6044479e8e974e848f47969f75b84865fea13 (patch) | |
tree | d8631e32a64744389b9c6e2291ff901f771c0745 /configure.ac | |
parent | 7848ba1d292f55553058c1f17596baa1094cdae5 (diff) |
Replace several malloc+sprintf pairs with asprintf() calls
Includes fallback uAsprintf() for systems without asprintf yet
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 66db16a..c1ad70f 100644 --- a/configure.ac +++ b/configure.ac @@ -27,6 +27,8 @@ AC_INIT([xkbprint], [1.0.3], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xkbprint]) AC_CONFIG_SRCDIR([Makefile.am]) AC_CONFIG_HEADERS([config.h]) +# Needed for asprintf on GNU libc +AC_USE_SYSTEM_EXTENSIONS # Initialize Automake AM_INIT_AUTOMAKE([foreign dist-bzip2]) @@ -38,6 +40,8 @@ m4_ifndef([XORG_MACROS_VERSION], XORG_MACROS_VERSION(1.8) XORG_DEFAULT_OPTIONS +AC_CHECK_FUNCS([asprintf]) + # Checks for pkg-config packages PKG_CHECK_MODULES(XKBPRINT, [xkbfile x11 xproto >= 7.0.17]) |