From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66238 Path: news.gmane.org!not-for-mail From: Malcolm Purvis Newsgroups: gmane.emacs.gnus.general Subject: 'configure' doesn't preserve spaces in directory path. Date: Mon, 04 Feb 2008 23:14:36 +1100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202140774 6062 80.91.229.12 (4 Feb 2008 15:59:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Feb 2008 15:59:34 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14729@lists.math.uh.edu Mon Feb 04 16:59:54 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1JM3ja-0005f4-GF for ding-account@gmane.org; Mon, 04 Feb 2008 16:59:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1JM3iZ-0004Fm-Ex; Mon, 04 Feb 2008 09:58:47 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JM0Ds-0002iY-Ma for ding@lists.math.uh.edu; Mon, 04 Feb 2008 06:14:52 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JM0Dm-000155-Hg for ding@lists.math.uh.edu; Mon, 04 Feb 2008 06:14:52 -0600 Original-Received: from mail11.syd.optusnet.com.au ([211.29.132.192]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JM0Dm-0007lR-00 for ; Mon, 04 Feb 2008 13:14:46 +0100 Original-Received: from purvis.id.au (c122-106-28-75.rivrw1.nsw.optusnet.com.au [122.106.28.75]) by mail11.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m14CEaoD002511 for ; Mon, 4 Feb 2008 23:14:39 +1100 Original-Received: by purvis.id.au (Postfix, from userid 501) id 426971376D2C; Mon, 4 Feb 2008 23:14:36 +1100 (EST) X-Face: "t>8w.Nd-q:ml[PuI`{tr%l5Y~,sBj?fR1G.q`GM6)3RK+ll4EOE_1Goun~_6nt.5q,rU]` Q,Kxq+|~kZdSuw`3)>5+_/EcS2MS={U]o-eU!y?G(&'dd~\jX|faymzH|72n4oPxOu8c0M2FroLHaA g%#ZHX\p3dIud>Y'+?-@!Om%Z(D2.Fp<*bS8W2Q'{*"WmzMrRZj%)1=|J#3:[`vYdisIP7:`as5Qku ,M(VrTIClqxpH4Z7,_$?ugTWyMq=DQjGEP*M4*/S{Ym{,uq')-b@i_ECSi;Gq+Z[I=kdtX User-Agent: Gnus/5.110007 (No Gnus v0.7) XEmacs/21.5-b28 (darwin) X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66238 Archived-At: Back in 2006, Chris Shenton reported a bug in configure when the installation path contains a space: http://article.gmane.org/gmane.emacs.gnus.general/62483 In response Katsumi Yamaoka posted an improved patch: http://article.gmane.org/gmane.emacs.gnus.general/62487 For some reason this patch hasn't been applied, but the bug is still present, and bit me recently. Would it be possible to have this patch applied? Katsumi Yamaoka's patch is: --- aclocal.m4~ 2005-10-04 08:37:27 +0000 +++ aclocal.m4 2006-04-03 23:35:24 +0000 @@ -91,7 +91,8 @@ fi for thedir in share lib; do potential= - if test -d ${theprefix}/${thedir}/${EMACS_FLAVOR}/site-lisp; then + dnl The directory name should be quoted because it might contain spaces. + if test -d "${theprefix}/${thedir}/${EMACS_FLAVOR}/site-lisp"; then if test "$EMACS_FLAVOR" = "xemacs"; then lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-packages/lisp/gnus" else @@ -322,6 +323,28 @@ AC_SUBST(USE_FONTS) ]) +# Redefine AC_SITE_LOAD which is originally defined in general.m4. +# ---------------------------------------------------------------- +# Look for site or system specific initialization scripts. +m4_define([AC_SITE_LOAD], +[# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +dnl $CONFIG_SITE should be quoted because the value might contain spaces. +for ac_site_file in "$CONFIG_SITE"; do + if test -r "$ac_site_file"; then + AC_MSG_NOTICE([loading site script $ac_site_file]) + sed 's/^/| /' "$ac_site_file" >&AS_MESSAGE_LOG_FD + . "$ac_site_file" + fi +done +]) + ifelse(dnl Do not change this comment arch-tag: 5c987641-c3ef-4f12-b067-028302282c66 )dnl Thanks, Malcolm -- Malcolm Purvis