From 29797dd037009d38e4976249ed21b2076240751e Mon Sep 17 00:00:00 2001
From: Mingli Yu <mingli.yu@windriver.com>
Date: Wed, 4 Nov 2020 04:36:46 +0000
Subject: [PATCH] configure.ac.in: fix configure error

fix the below error:
configure: error: cannot run test program while cross compiling

Upstream-Status: Inappropriate [embedded specific]

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 configure.ac.in | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/configure.ac.in b/configure.ac.in
index a321f9bbf..03f9a31b0 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -642,18 +642,7 @@ if test x$radcli = xtrue; then
   fi
 fi
 
-AC_CACHE_CHECK([if pthread rwlocks are supported], [my_cv_rw_locks_supported], [
-  AC_TRY_RUN([
-  #include <pthread.h>
-
-  int main() {
-    pthread_rwlock_t t;
-    return 0;
-  }
-]
-, [my_cv_rw_locks_supported=yes], [my_cv_rw_locks_supported=no])
-]
-)
+AC_CACHE_CHECK([if pthread rwlocks are supported], [my_cv_rw_locks_supported])
 
 if test "$my_cv_rw_locks_supported" = yes; then
   AC_DEFINE_UNQUOTED(HAVE_RW_LOCK, 1, [pthread rwlocks supported])
-- 
2.26.2

