From e9ed05ff0a182194b94dd44682a55f625ba5972e Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Thu, 8 Sep 2016 14:42:14 +0900 Subject: [PATCH] Change AC_SEARCH_LIBS to AC_CHECK_LIB at configure.ac file Build break at Address Sanitizer testing. [Model] [BinType] AP [Customer] OPEN [Issue#] N/A [Request] N/A [Occurrence Version] N/A [Problem] Build break at Address Sanitizer testing [Cause & Measure] Change AC_SEARCH_LIBS to AC_CHECK_LIB at configure.ac file [Checking Method] N/A [Team] Open Source Management and Setting Part [Developer] dh0128.kwak [Solution company] Samsung [Change Type] N/A Change-Id: I68b2e5fc95e365c74db4891365100d48d5d82ebb Signed-off-by: DongHun Kwak --- configure.ac | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index f08867c..f7ac5bf 100644 --- a/configure.ac +++ b/configure.ac @@ -233,9 +233,11 @@ AC_ARG_ENABLE([numa], if test "x$enable_numa" = xno; then AC_DEFINE([NUMA_DISABLE], [1], [disable NUMA/Node support in top]) else - AC_SEARCH_LIBS([dlopen], [dl], [], - [AC_MSG_ERROR([dynamic linking unavailable, circumvent with --disable-numa])]) - DL_LIB="$ac_cv_search_dlopen" + AC_CHECK_LIB(dl, dlopen, [have_dlopen=yes], [have_dlopen=no]) + if test "x$have_dlopen" = xno; then + AC_MSG_ERROR([dynamic linking unavailable, circumvent with --disable-numa]) + fi + DL_LIB="-ldl" fi AC_SUBST([DL_LIB]) -- 2.7.4