summaryrefslogtreecommitdiff
path: root/Setup.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Setup.hs')
-rw-r--r--Setup.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Setup.hs b/Setup.hs
index dd86bba..50e7b54 100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -1,4 +1,8 @@
+{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -Wall #-}
+
+#if defined(VERSION_hgettext)
+
import System.FilePath ( (</>), (<.>) )
import Distribution.PackageDescription
@@ -92,3 +96,12 @@ generateModule pkg lbi =
tar = GetText.targetDataDir lbi
-- Cargo-culted from hgettext
+
+#else
+
+import Distribution.Simple
+
+main :: IO ()
+main = defaultMain
+
+#endif