From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Android port Date: Sat, 05 Aug 2023 16:00:13 +0300 Message-ID: <83edkhskyq.fsf@gnu.org> References: <1428589171.162865.1691134964773@mail1.libero.it> <3473524.ldcX8TXnAK@nimes> <83fs4xslst.fsf@gnu.org> <6358080.k4LH7P0x6x@nimes> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15644"; mail-complaints-to="usenet@ciao.gmane.io" Cc: angelo.g0@libero.it, luangruo@yahoo.com, eggert@cs.ucla.edu, emacs-devel@gnu.org To: Bruno Haible Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 05 15:01:06 2023 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 1qSGu0-0003p9-TG for ged-emacs-devel@m.gmane-mx.org; Sat, 05 Aug 2023 15:01:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSGt9-000495-4K; Sat, 05 Aug 2023 09:00:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSGt1-0003t1-JK for emacs-devel@gnu.org; Sat, 05 Aug 2023 09:00:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSGt0-0007dT-1C; Sat, 05 Aug 2023 09:00:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=GNcaSMnumfs/HcAvspAGmZMfQ2UjAmGCtWFFYbH+Pow=; b=RbEG25v7vzd3 USl960V2hUFr9FaQv7V19DboZTu87bfKjTURRymaPf2Tys2ChgVUGYN3PF+8ZWQCV8q6hUIoWuNL2 xRRv8RiKfjlLrlJFVN6Yorr0uHV7PYOfPiF4/YeI45vqVWI4ugyVzBVtTHkrknPTNzSexPqSntKb6 f1UB3rLWGdkjKOeeAvSdmtUu+5KO9PHaqs2DX1ulUScfePcsEGC4lUG2FhxHk8eRr1v8ImgH/GlUO rQCYN8OFtoluBIxF3E+32yDnCNMrwEIeM4tdFM1RqGV2du6r5S1tjwaGJ8zKEIF6DqIh6jEot1/8m Oav+eQ1Uhc4/wLrlDKuFiQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSGsy-0000gV-8z; Sat, 05 Aug 2023 09:00:01 -0400 In-Reply-To: <6358080.k4LH7P0x6x@nimes> (message from Bruno Haible on Sat, 05 Aug 2023 14:47:59 +0200) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308321 Archived-At: > From: Bruno Haible > Cc: angelo.g0@libero.it, luangruo@yahoo.com, eggert@cs.ucla.edu, emacs-devel@gnu.org > Date: Sat, 05 Aug 2023 14:47:59 +0200 > > Eli Zaretskii wrote: > > > 2) after this #include, add > > > #define asprintf rpl_asprintf > > > #define printf __printf__ > > > #define vasprintf rpl_vasprintf > > > #define vfprintf rpl_vfprintf > > > and add prototypes for these 4 functions. > > > > I'd prefer to use the simpler machinery of OMIT_GNULIB_MODULE to > > prevent the Emacs build from compiling asprintf.c and similar > > replacements on MS-Windows. Is that possible? > > Only Paul can answer this. The OMIT_GNULIB_MODULE mechanism is an Emacs > invention. Then I hope Paul chimes in soon. > Gnulib's mechanism for avoiding modules is the --avoid= > option to gnulib-tool. But that omits the module on *all* platforms. > Gnulib's preferred mechanism for tweaking the behaviour on a platform- > by-platform basis is to preset some gl_cv_* variables, so as to > shortcut specific configure tests. I prefer not to preset gl_cv_* variables in this case, since they are general enough tests of specific printf features, and if those features will ever be really needed in Emacs, we want to be alerted to that. We only preset such variables when the corresponding features are implemented in Emacs's own code (about which the configure script cannot know), or when it is clear that the features will never be useful in Emacs on Windows.