summaryrefslogtreecommitdiff
path: root/devel/darcs/patches/patch-ac
blob: 0a1a5780edc3f7b1752a8dae744cefe214b8967c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
$NetBSD: patch-ac,v 1.1 2007/03/24 17:58:04 kristerw Exp $

Patch needed for GHC 6.6.

--- configure.orig	2006-06-16 20:59:33.000000000 +0200
+++ configure	2007-03-24 18:37:35.000000000 +0100
@@ -3188,7 +3188,7 @@
  rm -f Main.hi Main.o
 
   check_module_save_GHCFLAGS=$GHCFLAGS
-  GHCFLAGS="$GHCFLAGS -package text"
+  GHCFLAGS="$GHCFLAGS -package regex-compat"
 
 
 cat << \EOF > conftest.hs
@@ -3205,8 +3205,8 @@
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; } && test -s conftest
 then
-  echo "$as_me:$LINENO: result: in package text" >&5
-echo "${ECHO_T}in package text" >&6
+  echo "$as_me:$LINENO: result: in package regex-compat" >&5
+echo "${ECHO_T}in package regex-compat" >&6
 
 else
   echo "configure: failed program was:" >&5
@@ -3215,8 +3215,8 @@
  rm -f Main.hi Main.o
 
     GHCFLAGS=$check_module_save_GHCFLAGS
-    echo "$as_me:$LINENO: result: no; and neither in package text" >&5
-echo "${ECHO_T}no; and neither in package text" >&6
+    echo "$as_me:$LINENO: result: no; and neither in package regex-compat" >&5
+echo "${ECHO_T}no; and neither in package regex-compat" >&6
 
 fi
 
@@ -3305,7 +3305,7 @@
 cat << \EOF > conftest.hs
 -- #line 3306 "configure"
 import Control.Monad.Error
-main = seq (putStr undefined) (putStr "Hello world.\n")
+main = seq (strMsg "foo" :: String) (putStr "Hello world.\n")
 
 EOF
 rm -f Main.hi Main.o
@@ -3332,7 +3332,7 @@
 cat << \EOF > conftest.hs
 -- #line 3333 "configure"
 import Control.Monad.Error
-main = seq (putStr undefined) (putStr "Hello world.\n")
+main = seq (strMsg "foo" :: String) (putStr "Hello world.\n")
 
 EOF
 rm -f Main.hi Main.o
@@ -3372,7 +3372,7 @@
 cat << \EOF > conftest.hs
 -- #line 3373 "configure"
 import Control.Monad.Error
-main = seq (putStr undefined) (putStr "Hello world.\n")
+main = seq (strMsg "foo" :: String) (putStr "Hello world.\n")
 
 EOF
 rm -f Main.hi Main.o
@@ -3399,7 +3399,7 @@
 cat << \EOF > conftest.hs
 -- #line 3400 "configure"
 import Control.Monad.Error
-main = seq (putStr undefined) (putStr "Hello world.\n")
+main = seq (strMsg "foo" :: String) (putStr "Hello world.\n")
 
 EOF
 rm -f Main.hi Main.o
@@ -3504,6 +3504,76 @@
 
 
 
+echo "$as_me:$LINENO: checking for module Text.Html" >&5
+echo $ECHO_N "checking for module Text.Html... $ECHO_C" >&6
+
+
+cat << \EOF > conftest.hs
+-- #line 3516 "configure"
+import Text.Html
+main = seq (text "foo") (putStr "Hello world.\n")
+
+EOF
+rm -f Main.hi Main.o
+if { ac_try='$GHC $GHCFLAGS -o conftest conftest.hs'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; } && test -s conftest
+then
+  echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+
+else
+  echo "configure: failed program was:" >&5
+  cat conftest.hs >&5
+  echo "end of failed program." >&5
+ rm -f Main.hi Main.o
+
+  check_module_save_GHCFLAGS=$GHCFLAGS
+  GHCFLAGS="$GHCFLAGS -package html"
+
+
+cat << \EOF > conftest.hs
+-- #line 3543 "configure"
+import Text.Html
+main = seq (text "foo") (putStr "Hello world.\n")
+
+EOF
+rm -f Main.hi Main.o
+if { ac_try='$GHC $GHCFLAGS -o conftest conftest.hs'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; } && test -s conftest
+then
+  echo "$as_me:$LINENO: result: in package html" >&5
+echo "${ECHO_T}in package html" >&6
+
+else
+  echo "configure: failed program was:" >&5
+  cat conftest.hs >&5
+  echo "end of failed program." >&5
+ rm -f Main.hi Main.o
+
+    GHCFLAGS=$check_module_save_GHCFLAGS
+    echo "$as_me:$LINENO: result: no; and neither in package html" >&5
+echo "${ECHO_T}no; and neither in package html" >&6
+
+fi
+
+
+
+fi
+
+
+
+
+
+
+
 cat << \EOF >> Workaround.hs.prefix
            getCurrentDirectory,
 EOF