summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.hs8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.hs b/configure.hs
index 3b12e0f..bced948 100644
--- a/configure.hs
+++ b/configure.hs
@@ -98,10 +98,14 @@ getUserLink = concatMap (g . drop (length linkop)) . filter (isPrefixOf linkop)
98 cs x = x 98 cs x = x
99 99
100main = do 100main = do
101 info <- maybeGetPersistBuildConfig "dist"
102 case info of
103 Nothing -> putStrLn "Please run \"cabal clean\" first." >> exitFailure
104 Just bInfo -> mainOk bInfo
105
106mainOk bInfo = do
101 putStr "Checking foreign libraries..." 107 putStr "Checking foreign libraries..."
102
103 args <- getArgs 108 args <- getArgs
104 Just bInfo <- maybeGetPersistBuildConfig "dist"
105 109
106 let Just lib = library . localPkgDescr $ bInfo 110 let Just lib = library . localPkgDescr $ bInfo
107 buildInfo = libBuildInfo lib 111 buildInfo = libBuildInfo lib