From 050f8ab275a7a5f3d94045da6b15a2b63dfbeb3f Mon Sep 17 00:00:00 2001
From: Jim Somerville <Jim.Somerville@windriver.com>
Date: Tue, 14 Oct 2014 02:56:08 -0400
Subject: [PATCH] Skip AC_RUN_IFELSE tests

Upstream-Status: Inappropriate [cross compiling specific]

Such tests are not supported in a cross compile
environment.  Choose sane defaults.

Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>

---
 acinclude/lib-checks.m4 |  8 ++++++--
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/acinclude/lib-checks.m4 b/acinclude/lib-checks.m4
index 9793b9a..4f2dc83 100644
--- a/acinclude/lib-checks.m4
+++ b/acinclude/lib-checks.m4
@@ -207,7 +207,9 @@ AC_DEFUN([SQUID_CHECK_OPENSSL_CONST_SSL_METHOD],[
   [
    AC_MSG_RESULT([no])
   ],
-  [])
+  [
+   AC_MSG_RESULT([skipped - can't test in cross-compiled env])
+  ])
 
 SQUID_STATE_ROLLBACK(check_const_SSL_METHOD)
 ])
@@ -349,7 +351,9 @@ AC_DEFUN([SQUID_CHECK_OPENSSL_TXTDB],[
   ],[
     AC_MSG_RESULT([yes])
     AC_DEFINE(SQUID_USE_SSLLHASH_HACK, 1)
-  ],[])
+  ],[
+    AC_MSG_RESULT([skipped - can't test in cross-compiled env])
+  ])
 
   SQUID_STATE_ROLLBACK(check_TXTDB)
 ])
