From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Defaulting DBus support on macOS to 'off'? Date: Mon, 14 Mar 2022 15:30:05 +0100 Message-ID: <877d8wehea.fsf@gmail.com> References: <878rtcg9mg.fsf@gmail.com> <87y21cvnq2.fsf@yahoo.com> <83pmmok6on.fsf@gnu.org> <87zglsejpy.fsf@gmail.com> <87o828tzby.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7652"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 14 16:39:41 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nTmnN-0001qG-Ml for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Mar 2022 16:39:41 +0100 Original-Received: from localhost ([::1]:58416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTmnM-0007b9-KQ for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Mar 2022 11:39:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTlyL-00077f-Ib for emacs-devel@gnu.org; Mon, 14 Mar 2022 10:46:57 -0400 Original-Received: from [2a00:1450:4864:20::32e] (port=54979 helo=mail-wm1-x32e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTli5-0002ut-5F; Mon, 14 Mar 2022 10:30:14 -0400 Original-Received: by mail-wm1-x32e.google.com with SMTP id r64so1711591wmr.4; Mon, 14 Mar 2022 07:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=1ZquIQ5X21nhnUEDYDVGbsBA02+jRcRWuS3y3XbPhuY=; b=KaPAHFB1UaWTf4LumVh3RHGXw2ZDp1RYN7FYt/UTUjIpv2iNaZtzqTefPltlpi1ySr DgobtYihLXvEDgRNVNukbMqsU6tw7p0IjY1PpJsntPdF4XZTgDZ3iTadGPk0ysRkFb9a XRfrOEm9podyXVC5p/PK3e7HiggnxnilgMsAx5K2abxAlG1RY9P7o0qdt0V2Wy8kqYR4 dZ+lCK4ne35xUJs8YCZwlxSvnsi+cZInyjM/BtUh679egAyD7r67z7h1G37ExYXLtWtv goH6RHP3nAt4LmmLgPHSyGJ0rCG5RfTwQS44w/jMVKbgNw3f2HXWuLTFAfUXmobKUBZV l9ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=1ZquIQ5X21nhnUEDYDVGbsBA02+jRcRWuS3y3XbPhuY=; b=6Iw/fjETHJGYa5I+bQv73Ojfxnv1Q8S2eRKmsJD/2byTH/5Rrkygybj/fqLVeGLNdT ADMbgGJJd4deu/BkAdPl0noFquWY1wIHhgOcgn60qLR4T6gNJrDjKqXy/X5v3SPJrlpq JK81nBhzQpYSjEQ3s23/a8KhXB2Yh3SlOzJyIxkS8Y2pwjIefsKxtwtnOWNxVHJPTFd7 /gI9ipanfKu9Y2SBKUaEy4OYI7oYMYmsKFCh7cqclhFevUQz7QAVOxDRQ5VIhqfkMWc5 UoM3ZN8GqbXJD7K0Mc6cqKDtQTbWGlvlJCY/60IQisvg3FiQjhUa5oWNV3TW7RhN9pBO KJug== X-Gm-Message-State: AOAM532vAkph+4EF+FxW3Sxu2tfYu7RdCzQiWNrB4HfwEqlKkOn6GLhw 4OemxhEY4344GgwcOO64qPMxSoAb5Kc= X-Google-Smtp-Source: ABdhPJx3yt1pw5GJCnqOMIdD9L+Zhlk40LnOQwtpoa7r1g6Z2IxkL+a4EY7LO7c4xcI5pRsAJVKtSw== X-Received: by 2002:a1c:e916:0:b0:37c:f44f:573 with SMTP id q22-20020a1ce916000000b0037cf44f0573mr25890522wmc.179.1647268206459; Mon, 14 Mar 2022 07:30:06 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:effd:6151:f762:886a]) by smtp.gmail.com with ESMTPSA id f22-20020a1cc916000000b00380d3e49e89sm14624451wmb.22.2022.03.14.07.30.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Mar 2022 07:30:06 -0700 (PDT) In-Reply-To: <87o828tzby.fsf@yahoo.com> (Po Lu's message of "Mon, 14 Mar 2022 21:53:37 +0800") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::32e (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:287153 Archived-At: >>>>> On Mon, 14 Mar 2022 21:53:37 +0800, Po Lu said: Po> Robert Pluim writes: >> Exactly. We can discuss if that should be 'off in configure', or >> 'built if found, but off in Emacs' (I=CA=BCd prefer the former). Po> Then it should be made conditional on macOS, and not just NS being Po> enabled. Emacs can also be built on that platform with X11 support= , or Po> no toolkit at all. That was my plan all along: diff --git a/configure.ac b/configure.ac index a315eeb6bd..4be5a9c767 100644 --- a/configure.ac +++ b/configure.ac @@ -474,7 +474,9 @@ AC_DEFUN OPTION_DEFAULT_OFF([pgtk], [use GTK to support window systems other than X= ]) =20 OPTION_DEFAULT_ON([gpm],[don't use -lgpm for mouse support on a GNU/Linux = console]) -OPTION_DEFAULT_ON([dbus],[don't compile with D-Bus support]) +AC_ARG_WITH([dbus],[AS_HELP_STRING([--with-dbus], +[compile with D-Bus support. +Off by default on macOS.])],[],[with_dbus=3Dmaybe]) AC_ARG_WITH([gconf],[AS_HELP_STRING([--with-gconf], [compile with Gconf support (Gsettings replaces this)])],[], [if test $with_features =3D yes; then @@ -2930,6 +2932,15 @@ AC_DEFUN dnl other platforms. HAVE_DBUS=3Dno DBUS_OBJ=3D + +# Only use dbus on macOS if it's explicitly requested +if test "${with_dbus}" =3D maybe; then + if test "${opsys}" =3D darwin; then + with_dbus=3Dno + else + with_dbus=3Dyes + fi +fi if test "${with_dbus}" =3D "yes"; then EMACS_CHECK_MODULES([DBUS], [dbus-1 >=3D 1.0]) if test "$HAVE_DBUS" =3D yes; then Po> I will see if I can stop that message from showing up, thanks. That would be a good first step. Robert --=20