summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libssh2/files/0001-configure-Conditionally-undefine-backend-m4-macro.patch
blob: 1128c7ea0c2ff1e8c297df26ea8cad2de2955163 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From efe7101786193eaddb749c0583af6b54aec6f289 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 2 Feb 2021 18:45:16 -0800
Subject: [PATCH] configure: Conditionally undefine backend m4 macro

Unlike the M4 builtin, this macro fails if macro is not defined
therefore recover the behavior of the builtin.

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index fe5054a..758f8c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -127,7 +127,7 @@ fi
 m4_set_foreach([crypto_backends], [backend],
   [AM_CONDITIONAL(m4_toupper(backend), test "$found_crypto" = "backend")]
 )
-m4_undefine([backend])
+m4_ifdef([backend], [m4_undefine([backend])])
 
 
 # libz
-- 
2.30.0