unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: [Mac-emacs-devel] "./configure --with-x --without-carbon" on MacOSX
       [not found] <3D8EFAA7-9319-11D6-977B-003065CDBD6E@mac.com>
@ 2002-08-01  3:41 ` Andrew Choi
  0 siblings, 0 replies; only message in thread
From: Andrew Choi @ 2002-08-01  3:41 UTC (permalink / raw)
  Cc: mac-emacs-devel, emacs-devel

Hi Nozomu,

Thanks!  This is a very nice patch.  I've checked this into the CVS
and added your installation instructions below to the file
mac/INSTALL.

Andrew.

[I have not tested this patch because I do not have X Window on my Mac.
I invite everyone interested to try it.]

> Hi,
> 
> I had to compile emacs of current CVS tree  with X window support on 
> MacOSX. But
> 
> 	./configure --with-x --without-carbon
> 
> did not work. I think there are two problems.
> 
> P1. Some symbols conflict between code for X and code for Carbon.
> P2. Even when the abobe problem is solved, temacs linked with X dynlib 
> cannot unexec.
> 
> To solve the problem 1, I made small patch attached to this mail.
> 
> I think I cannot solve the problem 2. But there is workaround. e.g.:
> 
> 	W2a. make directory contains only statically-linked X library.
> 		% sudo mkdir /usr/X11R6/libstatic
> 		% cd /usr/X11R6/libstatic
> 		% sudo ln -s ../lib/lib*.a ../lib/X11 .
> 	W2b. configure Emacs with the libraries.
> 		% ./configure --without-carbon --with-x --x-
> libraries=/usr/X11R6/libstatic
> 
> This emacs on XDarwin also works fine for me.
> 
> I hope this helps.
> 
> Nozomu Ando
> -----
>
> Index: src/s/darwin.h
> ===================================================================
> RCS file: /cvsroot/emacs/emacs/src/s/darwin.h,v
> retrieving revision 1.3
> diff -u -r1.3 darwin.h
> --- src/s/darwin.h	1 Jul 2002 23:30:21 -0000	1.3
> +++ src/s/darwin.h	9 Jul 2002 08:21:26 -0000
> @@ -40,8 +40,10 @@
>  /* MAC_OS is used to conditionally compile code common to both MAC_OS8
>     and MAC_OSX.  */
>  #ifdef MAC_OSX
> +#ifdef HAVE_CARBON
>  #define MAC_OS
>  #endif
> +#endif
>  
>  /* SYSTEM_TYPE should indicate the kind of system you are using.
>   It sets the Lisp variable system-type.  */
> @@ -222,7 +224,9 @@
>  #define HAVE_SOCKETS
>  
>  /* Extra initialization calls in main for Mac OS X system type.  */
> +#ifdef HAVE_CARBON
>  #define SYMS_SYSTEM syms_of_mac()
> +#endif
>  
>  /* Definitions for how to dump.  Copied from nextstep.h.  */
>  
> @@ -271,7 +275,9 @@
>  
>  /* Tell src/Makefile.in to create files in the Mac OS X application
>     bundle mac/Emacs.app.  */
> +#ifdef HAVE_CARBON
>  #define OTHER_FILES macosx-app
> +#endif
>  
>  
>  /* Define the following so emacs symbols will not conflict with those

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-01  3:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3D8EFAA7-9319-11D6-977B-003065CDBD6E@mac.com>
2002-08-01  3:41 ` [Mac-emacs-devel] "./configure --with-x --without-carbon" on MacOSX Andrew Choi

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).