From: Michael Steinert Date: Tue, 14 Mar 2017 14:35:08 +0000 (-0700) Subject: Fix the --disable-follytestmain option X-Git-Tag: v2017.03.20.00~10 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=151beb17120f18dd55231e24a3d61143ea5f01b6;p=folly.git Fix the --disable-follytestmain option Summary: This option is useful when compiling on systems that do not want to include libunwind. Closes https://github.com/facebook/folly/pull/558 Reviewed By: andrewjcg Differential Revision: D4701878 Pulled By: yfeldblum fbshipit-source-id: 61765e2e04ea1da510f06d7805c2c54381aa771e --- diff --git a/folly/configure.ac b/folly/configure.ac index 44869b27..0ee732e5 100644 --- a/folly/configure.ac +++ b/folly/configure.ac @@ -558,9 +558,8 @@ AC_CHECK_HEADER([linux/membarrier.h], AC_DEFINE([HAVE_LINUX_MEMBARRIER_H], [1], AC_ARG_ENABLE([follytestmain], AS_HELP_STRING([--enable-follytestmain], [enables using main function from folly for tests]), - [follytestmain=${enableval}], [follytestmain=no]) + [use_follytestmain=${enableval}], [use_follytestmain=yes]) -use_follytestmain=yes # libdwarf used to install in /usr/include, now installs in /usr/include/libdwarf. AC_CHECK_HEADERS([libdwarf/dwarf.h dwarf.h], [break]) # Check whether we have both the library and the header