Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msAkf-0006RT-BK for pgsql-general@arkaria.postgresql.org; Tue, 30 Nov 2021 21:33:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1msAke-0005aX-3O for pgsql-general@arkaria.postgresql.org; Tue, 30 Nov 2021 21:33:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msAkd-0005aN-PH for pgsql-general@lists.postgresql.org; Tue, 30 Nov 2021 21:33:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msAkX-0007QY-TZ for pgsql-general@lists.postgresql.org; Tue, 30 Nov 2021 21:33:23 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1AULXEHD1636358; Tue, 30 Nov 2021 16:33:14 -0500 From: Tom Lane To: Daniel Gustafsson cc: Vincas Dargis , pgsql-general , Magnus Hagander , Michael Paquier Subject: Re: Issues cross-compiling libpq 14.x to MacOS armv8 In-reply-to: <1633127.1638306242@sss.pgh.pa.us> References: <0dc14a31-acaf-8cae-0df4-a87339b22bd9@gmail.com> <1628170.1638302387@sss.pgh.pa.us> <47B78E57-3D0F-4616-BF52-C07FA76AF0A7@yesql.se> <1633127.1638306242@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Tue, 30 Nov 2021 16:04:02 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1636356.1638307994.1@sss.pgh.pa.us> Date: Tue, 30 Nov 2021 16:33:14 -0500 Message-ID: <1636357.1638307994@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > It seems like a useful test when *not* cross compiling, which is most > of the time. I'd just wrap that bit in > if test "$cross_compiling" = no; then Or actually, since we should print something, it looks like this will do: diff --git a/configure.ac b/configure.ac index a5c10b8d56..7257afda20 100644 --- a/configure.ac +++ b/configure.ac @@ -2287,6 +2287,8 @@ if test x"$with_ssl" = x"openssl" ; then AC_MSG_RESULT([OpenSSL]) elif test x"$PORTNAME" = x"win32" ; then AC_MSG_RESULT([Windows native]) +elif test x"$cross_compiling" = x"yes"; then + AC_MSG_RESULT([assuming /dev/urandom]) else AC_MSG_RESULT([/dev/urandom]) AC_CHECK_FILE([/dev/urandom], [], []) Off to see if I can verify that before pushing. regards, tom lane