From: Pete Williamson <petewil@google.com>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Michal Nazarewicz <mina86@mina86.com>, emacs-devel@gnu.org
Subject: Re: [PATCH] - Introduce reference to a new Emacs build target - NaCl
Date: Fri, 27 Mar 2015 17:30:34 -0700 [thread overview]
Message-ID: <CAHsSLHA9+sYrCv16UUZpmx2s3mLuj0domPqbkqQNQ9NuCE8sZQ@mail.gmail.com> (raw)
In-Reply-To: <CAHsSLHBSJ2j-8P_==1N3uK9kPdrYymyqeLrsqafg9oPz+vrNJg@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1684 bytes --]
Here is a fresh patch, all comments welcome! As suggested, I've put all
the changes we need into the configure.ac file instead of just the first
one.
Again, this patch is to add the NaCl operating system for chromium into the
emacs configure.ac file.
As I mentioned in previous patch requests, I'm adding support for a new
build target, the chromium browser's Native Client (NaCl) platform. We
have a patch for emacs working today (for some definitions of working ^_^)
in NaCl ports, and we would like to port the changes back to the emacs code
base.
Our work in progress is visible in the "naclports" github project.
On Wed, Mar 18, 2015 at 9:04 AM, Pete Williamson <petewil@google.com> wrote:
> Since there has been no other feedback on this topic, I'll take Michal's
> suggestion (and clear up Paul's confusion), and make all the changes to the
> config.ac file at once, stay tuned for an updated patch.
>
> On Fri, Mar 13, 2015 at 5:29 PM, Pete Williamson <petewil@google.com>
> wrote:
>
>> The actual patch is to configure.ac. The diff is showing things that I
>> would move from my current "configure" file to "configure.ac"
>>
>> On Fri, Mar 13, 2015 at 5:28 PM, Paul Eggert <eggert@cs.ucla.edu> wrote:
>>
>>> Pete Williamson wrote:
>>>
>>>> --- a/configure
>>>> +++ b/configure
>>>>
>>>
>>> 'configure' is generated automatically from 'configure.ac' and other
>>> files, so patches to 'configure' are ineffective. You need to patch
>>> configure.ac and the other files instead.
>>>
>>> If you need to patch config.guess and/or config.sub, they come from a
>>> different project and those changes need to be sent upstream, as described
>>> in those files.
>>>
>>
>>
>
[-- Attachment #1.2: Type: text/html, Size: 3470 bytes --]
[-- Attachment #2: 0001-Add-NaCl-to-the-list-of-supported-OSs.patch --]
[-- Type: text/x-patch, Size: 2960 bytes --]
From 2f619eed946635074be15ddca9311c1e78ebd8c9 Mon Sep 17 00:00:00 2001
From: Pete Williamson <petewil@chromium.org>
Date: Fri, 27 Mar 2015 17:24:23 -0700
Subject: [PATCH] Add NaCl to the list of supported OSs
This is the first part of adding support for the NativeClient (NaCl)
build system to port emacs to NaCl. NaCl is a way to build native code
binaries to run as apps or in tabs in the chromium browser.
This is a part of an ongoing port to NaCl. See
https://code.google.com/p/naclports/source/browse/trunk/src/ports/emacs/nacl.patch?spec=svn1621&r=1621
---
ChangeLog | 5 +++++
configure.ac | 14 ++++++++++----
2 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a489ab9..d839b68 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-03027 Pete Williamson <petewil@chromium.org>
+
+ * configure.ac: Add a new supported target, Chromium Native Client
+ (NaCl).
+
2015-03-23 Andreas Schwab <schwab@suse.de>
* configure.ac: Fix jpeg version check to work with gcc >= 5.
diff --git a/configure.ac b/configure.ac
index bed94fb..4676fdd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -690,6 +690,11 @@ case "${canonical}" in
esac
;;
+ ## Chromium Native Client
+ *-nacl )
+ opsys=nacl
+ ;;
+
## Intel 386 machines where we don't care about the manufacturer.
i[3456]86-*-* )
case "${canonical}" in
@@ -1263,6 +1268,7 @@ dnl The function dump-emacs will not be defined and temacs will do
dnl (load "loadup") automatically unless told otherwise.
test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
case "$opsys" in
+ nacl) CANNOT_DUMP=yes ;;
your-opsys-here) CANNOT_DUMP=yes ;;
esac
@@ -2104,7 +2110,7 @@ hybrid_malloc=
case "$opsys" in
## darwin ld insists on the use of malloc routines in the System framework.
- darwin|mingw32|sol2-10) system_malloc=yes ;;
+ darwin|mingw32|sol2-10|nacl) system_malloc=yes ;;
cygwin) hybrid_malloc=yes;;
esac
@@ -4186,7 +4192,7 @@ emacs_broken_SIGIO=no
case $opsys in
dnl SIGIO exists, but the feature doesn't work in the way Emacs needs.
dnl See eg <http://article.gmane.org/gmane.os.openbsd.ports/46831>.
- hpux* | irix6-5 | openbsd | sol2* | unixware )
+ hpux* | irix6-5 | openbsd | sol2* | unixware | nacl )
emacs_broken_SIGIO=yes
;;
@@ -4348,7 +4354,7 @@ case $opsys in
AC_DEFINE(FIRST_PTY_LETTER, ['p'])
;;
- gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd )
+ gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd | nacl )
dnl if HAVE_GRANTPT
if test "x$ac_cv_func_grantpt" = xyes; then
AC_DEFINE(UNIX98_PTYS, 1, [Define if the system has Unix98 PTYs.])
@@ -4647,7 +4653,7 @@ esac
AC_CACHE_CHECK([for usable FIONREAD], [emacs_cv_usable_FIONREAD],
[case $opsys in
- aix4-2)
+ aix4-2 | nacl)
dnl BUILD 9008 - FIONREAD problem still exists in X-Windows.
emacs_cv_usable_FIONREAD=no
;;
--
2.2.0.rc0.207.ga3a616c
next prev parent reply other threads:[~2015-03-28 0:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-13 21:57 [PATCH] - Introduce reference to a new Emacs build target - NaCl Pete Williamson
2015-03-13 23:44 ` Michal Nazarewicz
2015-03-13 23:46 ` Pete Williamson
2015-03-14 0:28 ` Paul Eggert
2015-03-14 0:29 ` Pete Williamson
2015-03-18 16:04 ` Pete Williamson
2015-03-28 0:30 ` Pete Williamson [this message]
2015-03-29 21:50 ` Paul Eggert
2015-03-30 10:12 ` Richard Stallman
2015-03-30 21:41 ` Pete Williamson
2015-03-31 14:06 ` Richard Stallman
2015-03-31 18:29 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAHsSLHA9+sYrCv16UUZpmx2s3mLuj0domPqbkqQNQ9NuCE8sZQ@mail.gmail.com \
--to=petewil@google.com \
--cc=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.org \
--cc=mina86@mina86.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.