From patchwork Wed Nov 11 15:00:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Michael X-Patchwork-Id: 23586 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 9BFF944B9C3 for ; Wed, 11 Nov 2020 17:29:54 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 65AB468BEB5; Wed, 11 Nov 2020 17:29:54 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk1-f195.google.com (mail-qk1-f195.google.com [209.85.222.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 790AF68814A for ; Wed, 11 Nov 2020 17:29:47 +0200 (EET) Received: by mail-qk1-f195.google.com with SMTP id u4so1973294qkk.10 for ; Wed, 11 Nov 2020 07:29:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=u07+vElF0aOAK99lcot1G/O30cL80RInZQY+z0kpV64=; b=ch7B8R1uAol2rdpMXbuvs1u8WJIH+IMRD32rXN2VWdA8ycAy76lFe8ak1JMig/XN+x 8mjMGn+sRCXZaQ8ipsFltzwUBl8zFXcSDgKzqrAiQrF5UJAaeBA8JpC/bbN3VWBBOXnz k+f7sQkCEsPn8XEJLBCgSjKgiSnA4hgycOiHx4VA/xVKx0CWkBJzLr3/W+1ftY95XDTw IpL8soF8ii1xVGhPI2FzqsGL1yhgHUCiWHExo4T8Qi/v7i5PMekFQRP1Dihc7vVS9Hip Cc0By7wr9dDA5UUyyd5BYEtDioNfmRS+qy5UbwVZMZ/T//hGYc38F/LZrYTnZIjzYYQi Oduw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=u07+vElF0aOAK99lcot1G/O30cL80RInZQY+z0kpV64=; b=K2GqUjLHJU9LDdIYhxc95gH6xtFUvK844RosONKtUs2aBfDXUOC2N1Fzkq/Nxkfk8n FFanSFEQh4CIZjgl0jMmaqakMWm4Qb+uSJs6BYuJ4zVZlDW6Ck7CU5QojLkfOgOx6HoN UhR51/xJDSV+1ykcrNqzyCvwX4xp+LEWVv64/S5OF6yLptsOx85WLGgnEZz6taDKctrF KtwSR1CYg+g2u44coNBqX/c5UQRWjmteDYd72BBNgU7hAzoX/I4bktyGETYbEyd+P5IU AGtqVS8Gj2sXQW/V1h2W/EXNbqNOoTmyCr2fpKwwKmJa35+/ayeG6JrGBQAcg5d318KF C3Fw== X-Gm-Message-State: AOAM530uRuk5P57BFdwncd1dx7NgazIZPMTLiJdVb9VkRMFCRUuBLBKW hX44bLCV/4qv9muxPYMm3INSyHb1mOc= X-Google-Smtp-Source: ABdhPJwN0VhRwUcXjf9iLIOF5XBZ/jn3DIJem3NaWP8R3e4eVscpwdsIXrzQq3HOA+qOLWOfCuDbQQ== X-Received: by 2002:a37:5904:: with SMTP id n4mr24972198qkb.364.1605106844920; Wed, 11 Nov 2020 07:00:44 -0800 (PST) Received: from callisto (c-73-175-137-55.hsd1.pa.comcast.net. [73.175.137.55]) by smtp.gmail.com with ESMTPSA id j10sm2272870qtq.59.2020.11.11.07.00.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 07:00:44 -0800 (PST) From: David Michael To: ffmpeg-devel@ffmpeg.org Date: Wed, 11 Nov 2020 10:00:42 -0500 Message-ID: <87imaclyzp.fsf@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] configure: fix the bigendian test X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" There are two issues: The unused global integer does not make it into the compiled object file, so declare it static to correct this. The hexdump output is line-wrapped, so the expected value will not be matched when its four bytes are split across two lines. Use the POSIX "-A n" option to disable printing input offsets and delete all newline characters to output continuous hex values to grep. Signed-off-by: David Michael --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 2f02d7f5c8..52c02a74c8 100755 --- a/configure +++ b/configure @@ -5749,9 +5749,9 @@ check_cc pragma_deprecated "" '_Pragma("GCC diagnostic ignored \"-Wdeprecated-de # The global variable ensures the bits appear unchanged in the object file. test_cc <