unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* mac/INSTALL needs editing
@ 2005-08-07 14:03 Gilbert Harman
  2005-08-09 11:16 ` YAMAMOTO Mitsuharu
  0 siblings, 1 reply; 8+ messages in thread
From: Gilbert Harman @ 2005-08-07 14:03 UTC (permalink / raw)


The instructions at the beginning of the first section of mac/INSTALL are
incorrect, at least for Mac OS 10.4.2.  I do not know whether they are still
OK for earlier versions than Mac OS 10.4.  In any event, mac/INSTALL should
begin with its current second section, "* BUILDING BINARY DISTRIBUTIONS FOR
MAC OS X".  The information there works for Mac OS 10.4.2.

  Gil

-- 


Gilbert Harman            (609) 258-4301
Department of Philosophy
Princeton University
Princeton, NJ 08544-1006  http://www.princeton.edu/~harman

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

* Re: mac/INSTALL needs editing
  2005-08-07 14:03 mac/INSTALL needs editing Gilbert Harman
@ 2005-08-09 11:16 ` YAMAMOTO Mitsuharu
  2005-08-09 14:10   ` Gilbert Harman
  2005-08-09 21:10   ` Gilbert Harman
  0 siblings, 2 replies; 8+ messages in thread
From: YAMAMOTO Mitsuharu @ 2005-08-09 11:16 UTC (permalink / raw)
  Cc: emacs-devel@gnu.org

>>>>> On Sun, 07 Aug 2005 10:03:57 -0400, Gilbert Harman <harman@Princeton.EDU> said:

> The instructions at the beginning of the first section of
> mac/INSTALL are incorrect, at least for Mac OS 10.4.2.  I do not
> know whether they are still OK for earlier versions than Mac OS
> 10.4.  In any event, mac/INSTALL should begin with its current
> second section, "* BUILDING BINARY DISTRIBUTIONS FOR MAC OS X".  The
> information there works for Mac OS 10.4.2.

Sounds strange.  Because "make-package" uses "configure&make"
internally, if the former works for you, then the latter should also
work.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

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

* Re: mac/INSTALL needs editing
  2005-08-09 11:16 ` YAMAMOTO Mitsuharu
@ 2005-08-09 14:10   ` Gilbert Harman
  2005-08-09 21:10   ` Gilbert Harman
  1 sibling, 0 replies; 8+ messages in thread
From: Gilbert Harman @ 2005-08-09 14:10 UTC (permalink / raw)
  Cc: emacs-devel@gnu.org

When compiled using the initial instructions in mac/INSTALL, the resulting
Emacs.app in the mac directory cannot be opened, at least using Mac OS
10.4.2.

 Gil



YAMAMOTO Mitsuharu wrote:

>>>>>> On Sun, 07 Aug 2005 10:03:57 -0400, Gilbert Harman <harman@Princeton.EDU>
>>>>>> said:
> 
>> The instructions at the beginning of the first section of
>> mac/INSTALL are incorrect, at least for Mac OS 10.4.2.  I do not
>> know whether they are still OK for earlier versions than Mac OS
>> 10.4.  In any event, mac/INSTALL should begin with its current
>> second section, "* BUILDING BINARY DISTRIBUTIONS FOR MAC OS X".  The
>> information there works for Mac OS 10.4.2.
> 
> Sounds strange.  Because "make-package" uses "configure&make"
> internally, if the former works for you, then the latter should also
> work.
> 
>     YAMAMOTO Mitsuharu
> mituharu@math.s.chiba-u.ac.jp

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

* Re: mac/INSTALL needs editing
  2005-08-09 11:16 ` YAMAMOTO Mitsuharu
  2005-08-09 14:10   ` Gilbert Harman
@ 2005-08-09 21:10   ` Gilbert Harman
  2005-08-10  1:51     ` YAMAMOTO Mitsuharu
  1 sibling, 1 reply; 8+ messages in thread
From: Gilbert Harman @ 2005-08-09 21:10 UTC (permalink / raw)
  Cc: emacs-devel@gnu.org

More specifically, this is on a Apple Macintosh computer running system
10.4.2.
I get the latest CVS version.
Following the instructions at the beginning of mac/INSTALL, I use the
commands:
  ./configure --enable-carbon-app
  make bootstrap
  sudo make install

This produces a version of emacs that I can run in the terminal app:
GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.2.0, X toolkit) of 2005-08-03 on
Gilbert-Harmans-Computer.local

But when I try to open Emacs.app I get the message:
You cannot open the application "Emacs" because it may be damaged or
incomplete.

  Gil

My earlier message:

When compiled using the initial instructions in mac/INSTALL, the resulting
Emacs.app in the mac directory cannot be opened, at least using Mac OS
10.4.2.

 Gil



YAMAMOTO Mitsuharu wrote:

>>>>>> On Sun, 07 Aug 2005 10:03:57 -0400, Gilbert Harman <harman@Princeton.EDU>
>>>>>> said:
> 
>> The instructions at the beginning of the first section of
>> mac/INSTALL are incorrect, at least for Mac OS 10.4.2.  I do not
>> know whether they are still OK for earlier versions than Mac OS
>> 10.4.  In any event, mac/INSTALL should begin with its current
>> second section, "* BUILDING BINARY DISTRIBUTIONS FOR MAC OS X".  The
>> information there works for Mac OS 10.4.2.
> 
> Sounds strange.  Because "make-package" uses "configure&make"
> internally, if the former works for you, then the latter should also
> work.
> 
>     YAMAMOTO Mitsuharu
> mituharu@math.s.chiba-u.ac.jp

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

* Re: mac/INSTALL needs editing
  2005-08-09 21:10   ` Gilbert Harman
@ 2005-08-10  1:51     ` YAMAMOTO Mitsuharu
  2005-08-10  8:47       ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: YAMAMOTO Mitsuharu @ 2005-08-10  1:51 UTC (permalink / raw)
  Cc: emacs-devel@gnu.org

>>>>> On Tue, 09 Aug 2005 17:10:58 -0400, Gilbert Harman <harman@Princeton.EDU> said:

> GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.2.0, X toolkit) of
                                                  ^^^^^^^^^
You need to specify --without-x as described in mac/INSTALL:

  If you have X Window installed on your Mac and you are building Emacs
  to run under Carbon and not X Window, you need to type `./configure
  --without-x' instead of `./configure'.

Though mac/INSTALL contains sufficient information, it would make
sense to prefer Carbon (even if X11 is installed) when either
--with-carbon or --enable-carbon-app is specified explicitly.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

Index: configure.in
===================================================================
RCS file: /cvsroot/emacs/emacs/configure.in,v
retrieving revision 1.395
diff -c -r1.395 configure.in
*** configure.in	26 Jul 2005 21:43:11 -0000	1.395
--- configure.in	10 Aug 2005 01:39:13 -0000
***************
*** 1660,1665 ****
--- 1660,1679 ----
    fi
  fi
  
+ HAVE_CARBON=no
+ if test "${with_carbon}" != no; then
+   AC_CHECK_HEADER(Carbon/Carbon.h, HAVE_CARBON=yes)
+ fi
+ if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
+   if test "${with_carbon+set}" != set \
+      && test "${carbon_appdir_x+set}" != set; then
+     HAVE_CARBON=no
+   fi
+ fi
+ if test "${HAVE_CARBON}" = yes; then
+   window_system=mac
+ fi
+ 
  case "${window_system}" in
    x11 )
      HAVE_X_WINDOWS=yes
***************
*** 1678,1684 ****
        * ) USE_X_TOOLKIT=maybe ;;
      esac
    ;;
!   none )
      HAVE_X_WINDOWS=no
      HAVE_X11=no
      USE_X_TOOLKIT=none
--- 1692,1698 ----
        * ) USE_X_TOOLKIT=maybe ;;
      esac
    ;;
!   mac | none )
      HAVE_X_WINDOWS=no
      HAVE_X11=no
      USE_X_TOOLKIT=none
***************
*** 1707,1719 ****
    esac
  fi
  
- HAVE_CARBON=no
- if test "${HAVE_X11}" != "yes"; then
-   if test "${with_carbon}" != "no"; then
-      AC_CHECK_HEADER(Carbon/Carbon.h, HAVE_CARBON=yes)
-   fi
- fi
- 
  ### Compute the unexec source name from the object name.
  UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
  
--- 1721,1726 ----
***************
*** 2337,2343 ****
  ### Use Mac OS X Carbon API to implement GUI.
  if test "${HAVE_CARBON}" = "yes"; then
    AC_DEFINE(HAVE_CARBON, 1, [Define to 1 if you are using the Carbon API on Mac OS X.])
-   window_system=mac
    ## Specify the install directory
    carbon_appdir=
    if test "${carbon_appdir_x}" != ""; then
--- 2344,2349 ----

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

* Re: mac/INSTALL needs editing
  2005-08-10  1:51     ` YAMAMOTO Mitsuharu
@ 2005-08-10  8:47       ` Stefan Monnier
  2005-08-10 12:44         ` Gilbert Harman
  2005-08-11  2:07         ` YAMAMOTO Mitsuharu
  0 siblings, 2 replies; 8+ messages in thread
From: Stefan Monnier @ 2005-08-10  8:47 UTC (permalink / raw)
  Cc: Gilbert Harman, emacs-devel@gnu.org

> You need to specify --without-x as described in mac/INSTALL:

>   If you have X Window installed on your Mac and you are building Emacs
>   to run under Carbon and not X Window, you need to type `./configure
>   --without-x' instead of `./configure'.

> Though mac/INSTALL contains sufficient information, it would make
> sense to prefer Carbon (even if X11 is installed) when either
> --with-carbon or --enable-carbon-app is specified explicitly.

Actually, last time I tried, you had to explicitly disable either Carbon or
X in order for the compilation to succeed, so I think that as long as we
can't build an Emacs that can use both Carbon and X (and tty), we should
automatically disable Carbon if X is specified and automatically disable
X if Carbon is specified.  By default one of the two should be selected,
probably Carbon.


        Stefan

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

* Re: mac/INSTALL needs editing
  2005-08-10  8:47       ` Stefan Monnier
@ 2005-08-10 12:44         ` Gilbert Harman
  2005-08-11  2:07         ` YAMAMOTO Mitsuharu
  1 sibling, 0 replies; 8+ messages in thread
From: Gilbert Harman @ 2005-08-10 12:44 UTC (permalink / raw)
  Cc: emacs-devel@gnu.org

I do not have X Window installed, but
I just tried the following on the current CVS emacs:

 ./configure --without-x --enable-carbon-app
 make bootstrap
 sudo make install

It did result in a usable Emacs.app in /Applications:
GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.2.0) of 2005-08-10 on
Gilbert-Harmans-Computer.local

  Gil


Stefan Monnier wrote:

>> You need to specify --without-x as described in mac/INSTALL:
> 
>>   If you have X Window installed on your Mac and you are building Emacs
>>   to run under Carbon and not X Window, you need to type `./configure
>>   --without-x' instead of `./configure'.
> 
>> Though mac/INSTALL contains sufficient information, it would make
>> sense to prefer Carbon (even if X11 is installed) when either
>> --with-carbon or --enable-carbon-app is specified explicitly.
> 
> Actually, last time I tried, you had to explicitly disable either Carbon or
> X in order for the compilation to succeed, so I think that as long as we
> can't build an Emacs that can use both Carbon and X (and tty), we should
> automatically disable Carbon if X is specified and automatically disable
> X if Carbon is specified.  By default one of the two should be selected,
> probably Carbon.
> 
> 
>         Stefan
> 

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

* Re: mac/INSTALL needs editing
  2005-08-10  8:47       ` Stefan Monnier
  2005-08-10 12:44         ` Gilbert Harman
@ 2005-08-11  2:07         ` YAMAMOTO Mitsuharu
  1 sibling, 0 replies; 8+ messages in thread
From: YAMAMOTO Mitsuharu @ 2005-08-11  2:07 UTC (permalink / raw)
  Cc: Gilbert Harman, emacs-devel@gnu.org

>>>>> On Wed, 10 Aug 2005 04:47:17 -0400, Stefan Monnier <monnier@iro.umontreal.ca> said:

> Actually, last time I tried, you had to explicitly disable either
> Carbon or X in order for the compilation to succeed,

Maybe your last trial was before the following change:

2005-05-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* configure.in: Don't check HAVE_CARBON if HAVE_X11 is set to yes.

> By default one of the two should be selected, probably Carbon.

Hmm, I thought those who use Emacs on multiple platforms might expect
the same behavior, i.e., X11 is selected when none of the window
system types is specified explicitly.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

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

end of thread, other threads:[~2005-08-11  2:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-07 14:03 mac/INSTALL needs editing Gilbert Harman
2005-08-09 11:16 ` YAMAMOTO Mitsuharu
2005-08-09 14:10   ` Gilbert Harman
2005-08-09 21:10   ` Gilbert Harman
2005-08-10  1:51     ` YAMAMOTO Mitsuharu
2005-08-10  8:47       ` Stefan Monnier
2005-08-10 12:44         ` Gilbert Harman
2005-08-11  2:07         ` YAMAMOTO Mitsuharu

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).