diff --git a/configure.ac b/configure.ac
index 16500818c0366b21d9681538f684181357b6273c..73cf86818337e7b04e336e23006e60e1637b838e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1044,8 +1044,6 @@ dnl ** check for eventfd which is needed by the I/O manager
 AC_CHECK_HEADERS([sys/eventfd.h])
 AC_CHECK_FUNCS([eventfd])
 
-AC_CHECK_FUNCS([getpid getuid raise])
-
 GHC_ADJUSTORS_METHOD([Target])
 AC_SUBST([UseLibffiForAdjustors])
 
diff --git a/rts/configure.ac b/rts/configure.ac
index 706f579a9c5763993911b99213a4ce03527340dd..ff9afdb6bf58cf8107045d521187b82e61392597 100644
--- a/rts/configure.ac
+++ b/rts/configure.ac
@@ -33,6 +33,8 @@ GHC_CONVERT_PLATFORM_PARTS([host], [Host])
 FPTOOLS_SET_PLATFORM_VARS([host], [Host])
 FPTOOLS_SET_HASKELL_PLATFORM_VARS([Host])
 
+AC_CHECK_FUNCS([getpid getuid raise])
+
 dnl ** Check for __thread support in the compiler
 AC_MSG_CHECKING(for __thread support)
 AC_COMPILE_IFELSE(