Change AC_SEARCH_LIBS to AC_CHECK_LIB at configure.ac file 58/87458/1
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:45:03 +0000 (22:45 -0700)
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])