Change AC_SEARCH_LIBS to AC_CHECK_LIB at configure.ac file 57/87457/1 accepted/tizen_3.0.m2_base tizen_3.0.m2_base accepted/tizen/3.0.m2/base/20170104.081920 accepted/tizen/3.0/base/20161028.103407 accepted/tizen/base/20160923.170218 submit/tizen_3.0.m2_base/20170104.073748 submit/tizen_3.0_base/20161028.062326 submit/tizen_base/20160909.043141
authorDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 8 Sep 2016 05:42:14 +0000 (14:42 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 8 Sep 2016 05:42:14 +0000 (14:42 +0900)
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 <dh0128.kwak@samsung.com>
configure.ac

index f08867c..f7ac5bf 100644 (file)
@@ -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])