diff options
author | Ian Lynagh <igloo@earth.li> | 2009-05-04 10:53:24 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-05-04 10:53:24 +0000 |
commit | bb60c721074fba76f4909c6aa8096df1dfcaa914 (patch) | |
tree | 7fdc70ab84af4e44803f04a35e134ced49f89f15 | |
parent | 5eb445c891b8e84e4c003a49c4cafea5205015a1 (diff) | |
download | haskell-bb60c721074fba76f4909c6aa8096df1dfcaa914.tar.gz |
Test "ghc-pkg check" passes in bindisttest
Also fixes it so that it really does pass (we weren't substituting the
GMP variables in the RTS package config).
-rw-r--r-- | bindisttest/Makefile | 1 | ||||
-rw-r--r-- | distrib/configure-bin.ac | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/bindisttest/Makefile b/bindisttest/Makefile index 1599b37c31..1abbd788a2 100644 --- a/bindisttest/Makefile +++ b/bindisttest/Makefile @@ -36,6 +36,7 @@ endif $(BIN_DIST_INST_DIR)/bin/ghc --make HelloWorld ./HelloWorld > output $(CONTEXT_DIFF) output expected_output + $(BIN_DIST_INST_DIR)/bin/ghc-pkg check clean distclean: $(RM) -rf $(BIN_DIST_INST_SUBDIR) diff --git a/distrib/configure-bin.ac b/distrib/configure-bin.ac index 62562b864b..783c1f1680 100644 --- a/distrib/configure-bin.ac +++ b/distrib/configure-bin.ac @@ -105,6 +105,25 @@ AC_SUBST(exeext) FP_FIND_ROOT +dnl-------------------------------------------------------------------- +dnl * Deal with arguments telling us gmp is somewhere odd +dnl-------------------------------------------------------------------- + +FP_ARG_GMP + +GMP_INCLUDE_DIRS= +GMP_LIB_DIRS= +if test "x$gmp_libraries" != "xNONE"; then + LDFLAGS="-L$gmp_libraries $LDFLAGS" + GMP_LIB_DIRS=$gmp_libraries +fi +if test "x$gmp_includes" != "xNONE"; then + CPPFLAGS="-I$gmp_includes $CPPFLAGS" + GMP_INCLUDE_DIRS=$gmp_includes +fi +AC_SUBST(GMP_INCLUDE_DIRS) +AC_SUBST(GMP_LIB_DIRS) + # dnl ** Check Perl installation ** # |