summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-06-30 11:38:20 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2015-07-02 17:02:21 +0200
commit2d054e0e6901a1cfbe396f30d9899da46ff533d9 (patch)
treed192b089c4f1ff062318c78cac51d0d1c939acc1
parent6183bbde2470cbf2c212d00d1c4b782f23dcd638 (diff)
m4: Add compat AS_VAR_APPEND for older autoconf
This causes failures on EL6 otherwise as autoconf is too old there.
-rw-r--r--configure.ac4
-rw-r--r--m4/spice-deps.m45
2 files changed, 5 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 3a8c0e5..4287f92 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,10 +12,6 @@ AC_CONFIG_AUX_DIR([build-aux])
# For automake >= 1.12
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
-# For autoconf <= 2.63
-m4_ifndef([AS_VAR_APPEND],
- AC_DEFUN([AS_VAR_APPEND], $1=$$1$2))
-
# Checks for programs
AM_INIT_AUTOMAKE([1.11 dist-xz no-dist-gzip tar-ustar foreign -Wall -Werror])
AM_MAINTAINER_MODE
diff --git a/m4/spice-deps.m4 b/m4/spice-deps.m4
index df35a92..68dec42 100644
--- a/m4/spice-deps.m4
+++ b/m4/spice-deps.m4
@@ -1,3 +1,8 @@
+# For autoconf < 2.63
+m4_ifndef([AS_VAR_APPEND],
+ AC_DEFUN([AS_VAR_APPEND], $1=$$1$2))
+
+
# SPICE_CHECK_SYSDEPS()
# ---------------------
# Checks for header files and library functions needed by spice-common.