Ticket #10028: 0001-shasum-a-256-is-an-alternative-for-sha256-on-Mac-OS-.patch

File 0001-shasum-a-256-is-an-alternative-for-sha256-on-Mac-OS-.patch, 751 bytes (added by nielx, 11 years ago)
  • configure

    From b11f8175643eb6c84aa0f9b790a9261d4ff62ac6 Mon Sep 17 00:00:00 2001
    From: Niels Sascha Reedijk <niels.reedijk@gmail.com>
    Date: Sun, 29 Sep 2013 10:21:06 +0200
    Subject: [PATCH 1/4] shasum -a 256 is an alternative for sha256 on Mac OS X
    
    ---
     configure | 2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/configure b/configure
    index 0351300..9bcba39 100755
    a b if sha256sum < /dev/null > /dev/null 2>&1; then  
    482482    HOST_SHA256=sha256sum
    483483elif sha256 < /dev/null > /dev/null 2>&1; then
    484484    HOST_SHA256="sha256 -q"
     485elif shasum < /dev/null > /dev/null 2>&1; then
     486    HOST_SHA256="shasum -a 256"
    485487else
    486488    echo "Error: Neither sha256sum nor sha256 seem to be available!" >&2
    487489    exit 1