summaryrefslogtreecommitdiff
path: root/libraries/ghc-prim
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2018-09-19 15:23:27 -0400
committerBen Gamari <ben@smart-cactus.org>2018-09-20 10:13:55 -0400
commitd7fa8695324d6e0c3ea77228f9de93d529afc23e (patch)
tree7b9f23449b7c8bbc1ebe9c23dcaf831f2d3f1824 /libraries/ghc-prim
parentba086ca72ee6c77abba685f3100ad513e38a1a87 (diff)
downloadhaskell-d7fa8695324d6e0c3ea77228f9de93d529afc23e.tar.gz
Revert "adds -latomic to. ghc-prim"
This commit was never properly justified and relies on the existence of libatomic, which doesn't appear to exist on Darwin. This reverts commit ec9aacf3eb2975fd302609163aaef429962ecd87.
Diffstat (limited to 'libraries/ghc-prim')
-rw-r--r--libraries/ghc-prim/Setup.hs2
-rw-r--r--libraries/ghc-prim/aclocal.m417
-rw-r--r--libraries/ghc-prim/configure.ac18
-rw-r--r--libraries/ghc-prim/ghc-prim.buildinfo.in2
4 files changed, 1 insertions, 38 deletions
diff --git a/libraries/ghc-prim/Setup.hs b/libraries/ghc-prim/Setup.hs
index cccc416d78..5bb17e2392 100644
--- a/libraries/ghc-prim/Setup.hs
+++ b/libraries/ghc-prim/Setup.hs
@@ -18,7 +18,7 @@ import System.Exit
import System.Directory
main :: IO ()
-main = do let hooks = autoconfUserHooks {
+main = do let hooks = simpleUserHooks {
regHook = addPrimModule
$ regHook simpleUserHooks,
buildHook = build_primitive_sources
diff --git a/libraries/ghc-prim/aclocal.m4 b/libraries/ghc-prim/aclocal.m4
deleted file mode 100644
index 81fc44c500..0000000000
--- a/libraries/ghc-prim/aclocal.m4
+++ /dev/null
@@ -1,17 +0,0 @@
-# FP_GCC_SUPPORTS__ATOMICS
-# ------------------------
-# Does gcc support the __atomic_* family of builtins?
-AC_DEFUN([FP_GCC_SUPPORTS__ATOMICS],
-[
- AC_REQUIRE([AC_PROG_CC])
- AC_MSG_CHECKING([whether GCC supports __atomic_ builtins])
- echo 'int test(int *x) { int y; __atomic_load(x, &y, __ATOMIC_SEQ_CST); return y; }' > conftest.c
- if $CC -c conftest.c > /dev/null 2>&1; then
- CONF_GCC_SUPPORTS__ATOMICS=YES
- AC_MSG_RESULT([yes])
- else
- CONF_GCC_SUPPORTS__ATOMICS=NO
- AC_MSG_RESULT([no])
- fi
- rm -f conftest.c conftest.o
-])
diff --git a/libraries/ghc-prim/configure.ac b/libraries/ghc-prim/configure.ac
deleted file mode 100644
index 8249be31a9..0000000000
--- a/libraries/ghc-prim/configure.ac
+++ /dev/null
@@ -1,18 +0,0 @@
-AC_INIT([ghc-prim package], [2.1], [glasgow-haskell-bugs@haskell.org], [ghc-prim])
-
-AC_CONFIG_SRCDIR([ghc-prim.cabal])
-
-# -------------------------------------------------------------------------
-dnl ** Used to determine how to compile ghc-prim's atomics.c, used by
-dnl unregisterised, Sparc, and PPC backends.
-FP_GCC_SUPPORTS__ATOMICS
-AC_DEFINE([HAVE_C11_ATOMICS], [$CONF_GCC_SUPPORTS__ATOMICS], [Does GCC support __atomic primitives?])
-
-if test "$CONF_GCC_SUPPORTS__ATOMICS" = "YES"
-then PRIM_CFLAGS=-DHAVE_C11_ATOMICS
- PRIM_EXTRA_LIBRARIES=atomic
-fi
-AC_SUBST([PRIM_CFLAGS])
-AC_SUBST([PRIM_EXTRA_LIBRARIES])
-AC_CONFIG_FILES([ghc-prim.buildinfo])
-AC_OUTPUT
diff --git a/libraries/ghc-prim/ghc-prim.buildinfo.in b/libraries/ghc-prim/ghc-prim.buildinfo.in
deleted file mode 100644
index a0932824c5..0000000000
--- a/libraries/ghc-prim/ghc-prim.buildinfo.in
+++ /dev/null
@@ -1,2 +0,0 @@
-cc-options: @PRIM_CFLAGS@
-extra-libraries: @PRIM_EXTRA_LIBRARIES@ \ No newline at end of file