From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: configure problem Date: Tue, 15 Jul 2003 15:58:05 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200307150658.PAA14821@etlken.m17n.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1058252573 5756 80.91.224.249 (15 Jul 2003 07:02:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 15 Jul 2003 07:02:53 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jul 15 09:02:52 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19cJps-0001Ui-00 for ; Tue, 15 Jul 2003 09:02:52 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19cK3V-0008FT-00 for ; Tue, 15 Jul 2003 09:16:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19cJmR-0000cQ-Ck for emacs-devel@quimby.gnus.org; Tue, 15 Jul 2003 02:59:19 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19cJlf-00086s-Qr for emacs-devel@gnu.org; Tue, 15 Jul 2003 02:58:31 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19cJlQ-0007HI-H1 for emacs-devel@gnu.org; Tue, 15 Jul 2003 02:58:18 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19cJlM-000714-7H for emacs-devel@gnu.org; Tue, 15 Jul 2003 02:58:12 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6p2/3.7W-20010518204228) with ESMTP id h6F6w6u19783; Tue, 15 Jul 2003 15:58:06 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.6/3.7W-20010823150639) with ESMTP id h6F6w6907766; Tue, 15 Jul 2003 15:58:06 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id PAA14821; Tue, 15 Jul 2003 15:58:05 +0900 (JST) Original-To: yamaoka@jpl.org In-reply-to: (message from Katsumi Yamaoka on Tue, 15 Jul 2003 15:46:59 +0900) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15614 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15614 In article , Katsumi Yamaoka writes: > configure.in:50: error: possibly undefined macro: AC_DEFINE > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation. > Here is a patch which has been confirmed by the NetBSD user. > I don't know why the AC_DEFINE macro is not expanded there, > though. :{ The reason is described in the comment above this jambo "case" statement as this: dnl This used to use changequote, but, apart from `changequote is evil' dnl per the autoconf manual, we can speed up autoconf somewhat by quoting dnl the great gob of text. Thus it's not processed for possible expansion. dnl Just make sure the brackets remain balanced. I think it's not good to handle confdefs.h directly in configure.in. It's the task of autoconf. So, have about this alternative change? --- Ken'ichi HANDA handa@m17n.org *** configure.in.~1.343.~ Tue Jul 15 13:11:42 2003 --- configure.in Tue Jul 15 15:45:56 2003 *************** *** 222,231 **** ## NetBSD ports *-*-netbsd* ) opsys=netbsd - if test -f /usr/lib/crti.o; then - AC_DEFINE(HAVE_CRTIN) - fi - case "${canonical}" in alpha*-*-netbsd*) machine=alpha ;; i[3456]86-*-netbsd*) machine=intel386 ;; --- 222,227 ---- *************** *** 1168,1173 **** --- 1164,1175 ---- fi ] + + if test "${opsys}" = "netbsd"; then + if test -f /usr/lib/crti.o; then + AC_DEFINE(HAVE_CRTIN) + fi + fi if test $unported = yes; then AC_MSG_ERROR([Emacs hasn't been ported to `${canonical}' systems.