]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
m4/acinclude.m4: fix for build error 'possibly undefined macro: AS_VAR_COPY' 730/head
authorMarek Schimara <Marek.Schimara@bull.net>
Wed, 22 Jun 2016 08:41:25 +0000 (10:41 +0200)
committerMarek Schimara <Marek.Schimara@bull.net>
Tue, 23 Aug 2016 11:45:09 +0000 (13:45 +0200)
        This happens with autoconf 2.63 or older (RHEL 6)

m4/acinclude.m4

index 78c2ccf9eba46174f160bc0342859a59e3dc65d8..4b7197c16b5ef5fddc5944d1991defa56b0bed21 100644 (file)
@@ -13,6 +13,15 @@ dnl EX_CHECK_ALL(library, function, header, pkgconf name, tested-version, homepa
 dnl              $1       $2        $3      $4            $5              $6        $7
 dnl
 dnl
+
+dnl
+dnl Fix for 'configure:31803: error: possibly undefined macro: AS_VAR_COPY'
+dnl     when building on RHEL 6 (autoconf 2.63)
+dnl     see https://github.com/gdnsd/gdnsd/issues/85
+m4_ifndef([AS_VAR_COPY],
+[m4_define([AS_VAR_COPY],
+[AS_LITERAL_IF([$1[]$2], [$1=$$2], [eval $1=\$$2])])])
+
 AC_DEFUN([EX_CHECK_ALL],
 [
  AC_LANG_PUSH(C)