From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andrew Choi Newsgroups: gmane.emacs.devel Subject: No Gettext on Some Platforms Date: Fri, 06 Dec 2002 10:45:24 -0700 Sender: emacs-devel-admin@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: main.gmane.org 1039197207 29670 80.91.224.249 (6 Dec 2002 17:53:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Dec 2002 17:53:27 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18KMfG-0007iQ-00 for ; Fri, 06 Dec 2002 18:53:26 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18KMnz-000196-00 for ; Fri, 06 Dec 2002 19:02:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18KMZL-0001Sp-00; Fri, 06 Dec 2002 12:47:19 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18KMYs-0001Ke-00 for emacs-devel@gnu.org; Fri, 06 Dec 2002 12:46:50 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18KMYM-00019C-00 for emacs-devel@gnu.org; Fri, 06 Dec 2002 12:46:49 -0500 Original-Received: from shawidc-mo1.cg.shawcable.net ([24.71.223.10] helo=pd3mo3so.prod.shaw.ca) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18KMYM-00018o-00 for emacs-devel@gnu.org; Fri, 06 Dec 2002 12:46:18 -0500 Original-Received: from pd6mr3so.prod.shaw.ca (pd6mr3so-qfe3.prod.shaw.ca [10.0.141.218]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H6P0063QLBQYH@l-daemon> for emacs-devel@gnu.org; Fri, 06 Dec 2002 10:45:26 -0700 (MST) Original-Received: from pn2ml7so.prod.shaw.ca (pn2ml7so-qfe0.prod.shaw.ca [10.0.121.151]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H6P0069ILBQDG@l-daemon> for emacs-devel@gnu.org; Fri, 06 Dec 2002 10:45:26 -0700 (MST) Original-Received: from owlbear.local.shawmail (h68-144-207-94.cg.shawcable.net [68.144.207.94]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H6P00NBFLBP3B@l-daemon> for emacs-devel@gnu.org; Fri, 06 Dec 2002 10:45:26 -0700 (MST) Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Lines: 22 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9924 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9924 A recent change to lib-src/getopt.c causes link failure on platforms without gettext installed. Please consider the following fix. Index: getopt.c =================================================================== RCS file: /cvsroot/emacs/emacs/lib-src/getopt.c,v retrieving revision 1.21 diff -u -r1.21 getopt.c --- getopt.c 5 Dec 2002 15:30:09 -0000 1.21 +++ getopt.c 6 Dec 2002 17:32:51 -0000 @@ -83,7 +83,11 @@ # include "gettext.h" #endif #endif +#ifdef HAVE_LIBINTL_H #define _(msgid) gettext (msgid) +#else +#define _(msgid) (msgid) +#endif #if defined _LIBC && defined USE_IN_LIBIO # include