From 1872c2735a19137697ec8d4fd54fb9bdc76af08f Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Fri, 16 Mar 2007 22:47:55 +0000 Subject: [PATCH] Strip \r's to fix building on Windows --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 2afb4d3..b83dfb4 100644 --- a/configure.ac +++ b/configure.ac @@ -63,7 +63,7 @@ AC_DEFINE_UNQUOTED(LEADING_UNDERSCORE, $LEADING_UNDERSCORE, # Find pwd, in a cygwin friendly way. # Suggested by: http://www.haskell.org/ghc/docs/latest/html/users_guide/ch11s04.html -TOP=`echo "Directory.getCurrentDirectory >>= putStrLn.init.tail.show " | ghc --interactive -ignore-dot-ghci -v0` +TOP=`echo "Directory.getCurrentDirectory >>= putStrLn.init.tail.show " | ghc --interactive -ignore-dot-ghci -v0 | tr -d '\r'` AC_DEFINE_UNQUOTED(TOP, "$TOP", [Path to top of build tree]) AC_SUBST(TOP) @@ -100,7 +100,7 @@ AC_SUBST(GLASGOW_HASKELL) # find path to GHC libs, for runtime_loader if test -n "$GHC" ; then AC_MSG_CHECKING([for ghc library directory]) - GHC_LIB_PATH=`$GHC --print-libdir` + GHC_LIB_PATH=`$GHC --print-libdir | tr -d '\r'` AC_MSG_RESULT([$GHC_LIB_PATH]) fi AC_DEFINE_UNQUOTED(GHC_LIB_PATH, "$GHC_LIB_PATH", [Path to ghc libraries])