[Git][ghc/ghc][master] autoconf: remove unused context diff check

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Wed May 22 04:37:09 UTC 2024



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
b7bcf729 by Cheng Shao at 2024-05-22T00:35:32-04:00
autoconf: remove unused context diff check

This patch removes redundant autoconf check for the context diff
program given it isn't actually been used anywhere, especially since
make removal.

- - - - -


2 changed files:

- configure.ac
- − m4/fp_prog_context_diff.m4


Changes:

=====================================
configure.ac
=====================================
@@ -709,9 +709,6 @@ AC_SUBST(TargetHasIdentDirective)
 GHC_GNU_NONEXEC_STACK
 AC_SUBST(TargetHasGnuNonexecStack)
 
-dnl ** figure out how to do context diffs
-FP_PROG_CONTEXT_DIFF
-
 dnl Let's make sure install-sh is executable here.  If we got it from
 dnl a darcs repo, it might not be (see bug #978).
 chmod +x install-sh


=====================================
m4/fp_prog_context_diff.m4 deleted
=====================================
@@ -1,23 +0,0 @@
-# FP_PROG_CONTEXT_DIFF
-# --------------------
-# Figure out how to do context diffs. Sets the output variable ContextDiffCmd.
-#
-# Note: NeXTStep thinks diff'ing a file against itself is "trouble".
-AC_DEFUN([FP_PROG_CONTEXT_DIFF],
-[AC_CACHE_CHECK([for a working context diff], [fp_cv_context_diff],
-[echo foo > conftest1
-echo foo > conftest2
-fp_cv_context_diff=no
-for fp_var in '-U 1' '-u1' '-C 1' '-c1'
-do
-  if diff $fp_var conftest1 conftest2 > /dev/null 2>&1; then
-    fp_cv_context_diff="diff $fp_var"
-    break
-  fi
-done])
-if test x"$fp_cv_context_diff" = xno; then
-   AC_MSG_ERROR([cannot figure out how to do context diffs])
-fi
-AC_SUBST(ContextDiffCmd, [$fp_cv_context_diff])
-])# FP_PROG_CONTEXT_DIFF
-



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b7bcf72990c20bf88c57d7d2b4478d8f2ad18ac3

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b7bcf72990c20bf88c57d7d2b4478d8f2ad18ac3
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240522/e334b03d/attachment-0001.html>


More information about the ghc-commits mailing list