diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-11-06 20:23:04 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2021-11-13 06:10:57 +0000 |
commit | ab2779b5cba0dc511b8c2bafedff20d8b1577891 (patch) | |
tree | 79cc1f9404c1a521a91ebc7c162064cd87a07729 /m4/fp_check_pthreads.m4 | |
parent | 6900174b5102ca317905c4a029a8f1489260be39 (diff) | |
download | haskell-wip/rts-configure-cabal-file.tar.gz |
Revert "TEMP PTHREAD"wip/rts-configure-cabal-file
This reverts commit 7097474fc9a4aaefee743e3739fb10846681a9dc.
Diffstat (limited to 'm4/fp_check_pthreads.m4')
-rw-r--r-- | m4/fp_check_pthreads.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/m4/fp_check_pthreads.m4 b/m4/fp_check_pthreads.m4 index 68f17177c3..a93496f614 100644 --- a/m4/fp_check_pthreads.m4 +++ b/m4/fp_check_pthreads.m4 @@ -27,6 +27,10 @@ AC_DEFUN([FP_CHECK_PTHREADS], ]) AC_DEFINE_UNQUOTED([NEED_PTHREAD_LIB], [$need_lpthread], [Define 1 if we need to link code using pthreads with -lpthread]) + AS_IF([test x"$need_lpthread" = 1], + [PTHREAD_LIB=pthread], + [PTHREAD_LIB='']) + AC_SUBST([PTHREAD_LIB]) dnl Setting thread names dnl ~~~~~~~~~~~~~~~~~~~~ |