aboutsummaryrefslogtreecommitdiffstats
path: root/meta-cgl-common/recipes-cgl/ucarp/ucarp/ucarp-configure-sha1.patch
blob: 01167d47eca27445504c7516d4c6832ebc046575 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Configure SHA1 option properly

Work around a cross-compiling configuration problem by
defaulting the USE_SYSTEM_CRYPT_SHA1 option.

Upstream-Status: Inappropriate [embedded specific]

Signed-off-by: Greff Moffatt <gregg.moffatt@windriver.com>
Signed-off-by: Aws Ismail <aws.ismail@windriver.com>

diff --git a/configure.ac b/configure.ac
index fa6300f..3978c43 100644
--- a/configure.ac
+++ b/configure.ac
@@ -232,32 +232,6 @@ else
                      [return value of an overflowed snprintf])
 fi
 
-AC_MSG_CHECKING(whether you already have a standard SHA1 implementation)
-AC_RUN_IFELSE([AC_LANG_SOURCE([[
-#include <stdio.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sha1.h>
-
-int main(void)
-{
-    SHA1_CTX ctx;
-    char b[41];
-    
-    SHA1Init(&ctx);
-    SHA1Update(&ctx, (const unsigned char *) "test", 4U);
-    SHA1End(&ctx, b);
-    b[40] = 0;
-    
-    return strcasecmp(b, "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3");
-}
-]])],[
-AC_MSG_RESULT(yes)
-AC_DEFINE(USE_SYSTEM_CRYPT_SHA1,,[Define if you already have standard
-SHA1 functions])
-],[AC_MSG_RESULT(no)
-],[])
-
 AC_MSG_CHECKING([whether syslog names are available])
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 #define SYSLOG_NAMES 1