all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [Martin Ebourne] Re: Small fix to configure.in in CVS
@ 2006-10-26 19:49 Chong Yidong
  2006-10-26 20:54 ` Yidong Chong
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chong Yidong @ 2006-10-26 19:49 UTC (permalink / raw)


[-- Attachment #1: Type: message/rfc822, Size: 4068 bytes --]

From: Martin Ebourne <lists@ebourne.me.uk>
To: Yidong Chong <cyd@mit.edu>
Subject: Re: Small fix to configure.in in CVS
Date: Thu, 26 Oct 2006 17:54:52 +0100
Message-ID: <20061026175452.oddz2r8w00g8gggc@ebourne.me.uk>

Yidong Chong <cyd@MIT.EDU> wrote:
>> Fixes current CVS configure.in to refer to the right variable when
>> doing the scary macro undefining stuff.
>
> Could you explain in greater detail what the problem in the existing
> configure.in is, and how your change fixes it?

Sure.

The problem I had was that I was building to a prefix directory that  
included the word 'linux'. The emacs configure was preprocessing the  
Makefile through the C preprocessor, and this was substituting 'linux'  
to 1, thus making all the paths invalid.

I then found this code which caters for this problem by attemping to  
undefine any words found in paths etc by passing -U to the  
preprocessor. This wasn't working for me though, and I tracked it down  
to the top_srcdir. Looking through the generated configure script (as  
it exists in CVS) I could see there was no variable top_srcdir, but it  
did exist as ac_top_srcdir. I guess it depeneds on the version of  
autoconf used to generate the configure script, because more recent  
versions prefix ac_ onto vars. If emacs doesn't have a minimum  
autoconf version then maybe a better fix would be to include both  
top_srcdir and ac_top_srcdir.

Needless to say, after the change -Ulinux was passed to the  
preprocessor, the makefile output was correct, and emacs built and  
worked. :)

Cheers,

Martin.


>> - --- emacs/configure.in~	2006-09-28 06:47:26.000000000 +0100
>> +++ emacs/configure.in	2006-10-25 13:50:29.000000000 +0100
>> @@ -3230,7 +3230,7 @@
>>  # the C preprocessor to some helpful value like 1, or maybe the empty
>>  # string.  Needless to say consequent macro substitutions are less
>>  # than conducive to the makefile finding the correct directory.
>> - -[undefs="`echo $top_srcdir $configuration $canonical |
>> +[undefs="`echo $ac_top_srcdir $configuration $canonical |
>>  sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/  *$//' \
>>      -e 's/  */ -U/g' -e 's/-U[0-9][^ ]*//g' \
>>  `"]
>





[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Martin Ebourne] Re: Small fix to configure.in in CVS
  2006-10-26 19:49 [Martin Ebourne] Re: Small fix to configure.in in CVS Chong Yidong
@ 2006-10-26 20:54 ` Yidong Chong
  2006-10-27  9:10 ` Richard Stallman
  2006-10-28  1:18 ` Miles Bader
  2 siblings, 0 replies; 4+ messages in thread
From: Yidong Chong @ 2006-10-26 20:54 UTC (permalink / raw)
  Cc: emacs-devel

>> Could you explain in greater detail what the problem in the existing
>> configure.in is, and how your change fixes it?

> The problem I had was that I was building to a prefix directory that 
> included the word 'linux'. The emacs configure was preprocessing the 
> Makefile through the C preprocessor, and this was substituting 
> 'linux' to 1, thus making all the paths invalid.

I can't reproduce this:

mkdir ~/linux
cd emacs
./configure --prefix=/home/cyd/linux
make
make install

Compilation and installation proceeds as expected, with the emacs executable
installed in to /home/cyd/linux/bin, etc.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Martin Ebourne] Re: Small fix to configure.in in CVS
  2006-10-26 19:49 [Martin Ebourne] Re: Small fix to configure.in in CVS Chong Yidong
  2006-10-26 20:54 ` Yidong Chong
@ 2006-10-27  9:10 ` Richard Stallman
  2006-10-28  1:18 ` Miles Bader
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2006-10-27  9:10 UTC (permalink / raw)
  Cc: emacs-devel

Screwed again by other people's calling the system "Linux"!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Martin Ebourne] Re: Small fix to configure.in in CVS
  2006-10-26 19:49 [Martin Ebourne] Re: Small fix to configure.in in CVS Chong Yidong
  2006-10-26 20:54 ` Yidong Chong
  2006-10-27  9:10 ` Richard Stallman
@ 2006-10-28  1:18 ` Miles Bader
  2 siblings, 0 replies; 4+ messages in thread
From: Miles Bader @ 2006-10-28  1:18 UTC (permalink / raw)
  Cc: emacs-devel

Chong Yidong <cyd@stupidchicken.com> writes:
> I could see there was no variable top_srcdir, but it did exist as
> ac_top_srcdir. I guess it depeneds on the version of autoconf used to
> generate the configure script, because more recent versions prefix ac_
> onto vars.

Is this really true?  src_dir and top_srcdir are some of the most
commonly used autoconf variables; renaming them would break vast numbers
of configure files (for what gain?!?)...

-Miles

-- 
(\(\
(^.^)
(")")
*This is the cute bunny virus, please copy this into your sig so it can spread.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-10-28  1:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-26 19:49 [Martin Ebourne] Re: Small fix to configure.in in CVS Chong Yidong
2006-10-26 20:54 ` Yidong Chong
2006-10-27  9:10 ` Richard Stallman
2006-10-28  1:18 ` Miles Bader

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.