From: Dwight Engen Date: Thu, 5 Sep 2013 20:40:49 +0000 (-0400) Subject: add AS_VAR_COPY for older autoconf versions X-Git-Tag: lxc-1.0.0.alpha1~1^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a1675bf08b35bd5a5078f5638048c2c72c3e981;p=thirdparty%2Flxc.git add AS_VAR_COPY for older autoconf versions Signed-off-by: Dwight Engen Acked-by: Stéphane Graber --- diff --git a/configure.ac b/configure.ac index 1e2c713ee..0909da30b 100644 --- a/configure.ac +++ b/configure.ac @@ -150,6 +150,16 @@ AM_COND_IF([ENABLE_PYTHON], PKG_CHECK_MODULES([PYTHONDEV], [python3 >= 3.2],[],[AC_MSG_ERROR([You must install python3-dev])]) AC_DEFINE_UNQUOTED([ENABLE_PYTHON], 1, [Python3 is available])]) +# Not in older autoconf versions +# AS_VAR_COPY(DEST, SOURCE) +# ------------------------- +# Set the polymorphic shell variable DEST to the contents of the polymorphic +# shell variable SOURCE. +m4_ifdef([AS_VAR_COPY], [], +[AC_DEFUN([AS_VAR_COPY], + [AS_LITERAL_IF([$1[]$2], [$1=$$2], [eval $1=\$$2])]) +]) + dnl PKG_CHECK_VAR was introduced with pkg-config 0.28 m4_ifdef([PKG_CHECK_VAR], [], [AC_DEFUN([PKG_CHECK_VAR],