From f4acb30800ccd46c5ec7bd42d4627cc59accb841 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Tue, 10 Feb 2015 17:54:30 -0800 Subject: [PATCH] Revert "fix configure script to check pthread_atfork(3) in the correct way" This reverts commit 462e13b135cfa772403fddc16105bf23ea78105a. --- folly/configure.ac | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/folly/configure.ac b/folly/configure.ac index 8b3eb1ac..023a9fb6 100644 --- a/folly/configure.ac +++ b/folly/configure.ac @@ -264,23 +264,6 @@ AC_SEARCH_LIBS([clock_gettime], [rt], [Define to 1 if we support clock_gettime(2).]), []) -# Check for pthread_atfork(3). This is not in an AC_CHECK_FUNCS() because we -# want to include pthread.h if necessary. -AC_CACHE_CHECK( - [for pthread_atfork support], - [folly_cv_prog_cc_pthread_atfork], - [AC_COMPILE_IFELSE( - [AC_LANG_SOURCE[ - #include - void func() {pthread_atfork(NULL, NULL, NULL);}] - ], - [folly_cv_prog_cc_pthread_atfork=yes], - [folly_cv_prog_cc_pthread_atfork=no])]) - -if test "$folly_cv_prog_cc_pthread_atfork" = "yes"; then - AC_DEFINE([HAVE_PTHREAD_ATFORK], [1], [Define to 1 if the compiler supports pthread_atfork]) -fi - # Checks for library functions. AC_CHECK_FUNCS([getdelim \ gettimeofday \ @@ -289,6 +272,7 @@ AC_CHECK_FUNCS([getdelim \ pow \ strerror \ pthread_yield \ + pthread_atfork \ malloc_size \ malloc_usable_size \ memrchr \ -- 2.34.1