memcached: add knob to detect whether hugetlbfs are checked

Add knob to detect whether hugetlbfs are checked or not.

Upstream-Status: Pending

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
 configure.ac | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

--- a/configure.ac
+++ b/configure.ac
@@ -488,8 +488,12 @@ if test "x$enable_static" = "xyes"; then
 fi
 
 dnl ----------------------------------------------------------------------------
+AC_ARG_ENABLE(hugetlbfs,
+  [AS_HELP_STRING([--enable-hugetlbfs],[Enable hugetlbfs])])
 
-AC_SEARCH_LIBS(gethugepagesizes, hugetlbfs)
+if test "x$enable_hugetlbfs" = "xyes"; then
+  AC_SEARCH_LIBS(gethugepagesizes, hugetlbfs)
+fi
 
 AC_HEADER_STDBOOL
 AH_BOTTOM([#if HAVE_STDBOOL_H
