]> git.pld-linux.org Git - packages/ghc.git/commitdiff
- find perl 5.10
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 25 Feb 2008 08:07:56 +0000 (08:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- use fgrep (or should escape the dot)

Changed files:
    ghc-perl10.patch -> 1.1

ghc-perl10.patch [new file with mode: 0644]

diff --git a/ghc-perl10.patch b/ghc-perl10.patch
new file mode 100644 (file)
index 0000000..1dff51d
--- /dev/null
@@ -0,0 +1,27 @@
+--- ghc-6.6.1/aclocal.m4~      2008-02-25 02:59:57.000000000 +0200
++++ ghc-6.6.1/aclocal.m4       2008-02-25 09:54:07.863241936 +0200
+@@ -565,16 +565,20 @@
+ dnl
+ AC_DEFUN([FPTOOLS_CHECK_PERL_VERSION],
+ [$PerlCmd -v >conftest.out 2>&1
+-   if grep "v5.6" conftest.out >/dev/null 2>&1; then
++   if fgrep "v5.6" conftest.out >/dev/null 2>&1; then
+       :
+    else
+-      if grep "v5.8" conftest.out >/dev/null 2>&1; then
++      if fgrep "v5.8" conftest.out >/dev/null 2>&1; then
+          :
+       else
+-         if grep "version 6" conftest.out >/dev/null 2>&1; then
++         if fgrep "v5.10" conftest.out >/dev/null 2>&1; then
+             :
+          else
+-            AC_MSG_ERROR([your version of perl probably won't work, try upgrading it.])
++            if fgrep "version 6" conftest.out >/dev/null 2>&1; then
++               :
++            else
++               AC_MSG_ERROR([your version of perl probably won't work, try upgrading it.])
++            fi
+          fi
+       fi
+    fi
This page took 0.036392 seconds and 4 git commands to generate.