From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62483 Path: news.gmane.org!not-for-mail From: Chris Shenton Newsgroups: gmane.emacs.gnus.general Subject: BUG: 'configure' doesn't preserve spaces in directory path; fixes Date: Mon, 03 Apr 2006 11:12:42 -0400 Message-ID: <86slouae1h.fsf@PECTOPAH.shenton.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1144077309 4468 80.91.229.2 (3 Apr 2006 15:15:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Apr 2006 15:15:09 +0000 (UTC) Original-X-From: ding-owner+m11010@lists.math.uh.edu Mon Apr 03 17:15:07 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FQQlj-0007l1-Do for ding-account@gmane.org; Mon, 03 Apr 2006 17:15:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FQQle-0008UC-00; Mon, 03 Apr 2006 10:14:58 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FQQjV-0008U6-00 for ding@lists.math.uh.edu; Mon, 03 Apr 2006 10:12:45 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FQQjS-0006kk-JJ for ding@lists.math.uh.edu; Mon, 03 Apr 2006 10:12:44 -0500 Original-Received: from 23.ebbed1.client.atlantech.net ([209.190.235.35] helo=Shenton.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FQQjR-0000fP-00 for ; Mon, 03 Apr 2006 17:12:41 +0200 Original-Received: (qmail 36166 invoked by uid 1001); 3 Apr 2006 15:12:42 -0000 Original-To: ding@gnus.org User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.3 (berkeley-unix) X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62483 Archived-At: I'm building Gnus from CVS on OS X with Aquamacs Emacs. It's installed in /Applications/Aquamacs Emacs.app; note the space. I can do the config like: ./configure --prefix=/Applications/Aquamacs\ Emacs.app/Contents/Resources It breaks here: checking where .elc files should go... ./configure: line 1547: test: /Applications/Aquamacs: binary operator expected ./configure: line 1547: test: /Applications/Aquamacs: binary operator expected $(datadir)/emacs/site-lisp/gnus If I remove OS X stock /usr/bin/emacs and instead symlink it to /Applications/Aquamacs\ Emacs.app and then do an configure (unadorned, or with --prefix=/usr/local) it seems to work, but note the URL version it finds: ./configure --prefix=/usr/local ... checking for acceptable URL version... "/Applications/Aquamacs Emacs.app/Contents/Resources/lisp/url/" ... A "make" fails immediately: URLDIR=/Applications/Aquamacs Emacs.app/Contents/Resources/lisp/url/ W3DIR=no lispdir=/usr/share/emacs/site-lisp/gnus srcdir=. emacs -batch -q -no-site-file -l ./dgnushack.el -f dgnushack-make-cus-load . /bin/sh: line 1: Emacs.app/Contents/Resources/lisp/url/: No such file or directory If I quote the dirs in ./lisp/Makefile like the following, it works: EMACS_COMP = URLDIR="$(URLDIR)" W3DIR="$(W3DIR)" lispdir="$(lispdir)" srcdir="$(srcdir)" $(EMACS) $(FLAGS) I'm not really familiar with "configure", but the following patch got it to work for me using --prefix="/Applications/Aquamacs Emacs.app/Contents/Resources *** configure.~7.3.~ Tue Oct 4 05:38:54 2005 --- configure Mon Apr 3 11:02:49 2006 *************** *** 1125,1131 **** CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi ! for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} --- 1125,1131 ---- CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi ! for ac_site_file in "$CONFIG_SITE"; do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} *************** *** 1544,1550 **** fi for thedir in share lib; do potential= ! 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 --- 1544,1550 ---- fi for thedir in share lib; do potential= ! 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