Description: Implement configure option -threaded
Author: John MacFarlane <jgm@berkeley.edu>
Forwarded: not-needed
Last-Update: 2010-04-21
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -124,6 +124,9 @@
                  tests/RunTests.hs
 Extra-Tmp-Files: man/man1/pandoc.1, man/man1/markdown2pdf.1
 
+Flag threaded
+  Description:   Compile markdown2pdf with -threaded option.
+  Default:       True
 Flag highlighting
   Description:   Compile in support for syntax highlighting of code blocks.
   Default:       False
@@ -204,9 +207,9 @@
   Hs-Source-Dirs:     src
   Main-Is:            pandoc.hs
   if impl(ghc >= 6.12)
-    Ghc-Options:   -O2 -Wall -threaded -fno-warn-unused-do-bind
+    Ghc-Options:   -O2 -Wall -fno-warn-unused-do-bind
   else
-    Ghc-Options:     -O2 -Wall -threaded
+    Ghc-Options:     -O2 -Wall
   Ghc-Prof-Options:   -auto-all -caf-all
   Extensions:         CPP
 
@@ -223,7 +226,10 @@
 Executable markdown2pdf
   Hs-Source-Dirs:     src
   Main-Is:            markdown2pdf.hs
-  Ghc-Options:        -Wall -threaded
+  if flag(threaded)
+    Ghc-Options:        -Wall -threaded
+  else
+    Ghc-Options:        -Wall
   Ghc-Prof-Options:   -auto-all
   Extensions:         CPP
   if flag(wrappers)
