Mercurial > hg > xemacs-beta
annotate modules/sample/internal/configure.ac @ 5562:855b667dea13
Drop cl-macro-environment in favour of byte-compile-macro-environment.
lisp/ChangeLog addition:
2011-09-04 Aidan Kehoe <kehoea@parhasard.net>
* bytecomp-runtime.el:
* bytecomp-runtime.el (byte-compile-macro-environment): Moved from
bytecomp.el.
* bytecomp.el:
* bytecomp.el (byte-compile-initial-macro-environment):
Add implementations for #'load-time-value, #'labels here, now
cl-macs respects byte-compile-macro-environment.
* bytecomp.el (byte-compile-function-environment):
* bytecomp.el (byte-compile-macro-environment): Removed.
* bytecomp.el (symbol-value):
* bytecomp.el (byte-compile-symbol-value): Removed.
* cl-extra.el (cl-macroexpand-all):
* cl-macs.el:
* cl-macs.el (bind-block):
* cl-macs.el (cl-macro-environment): Removed.
* cl-macs.el (cl-transform-lambda):
* cl-macs.el (load-time-value):
* cl-macs.el (block):
* cl-macs.el (flet):
* cl-macs.el (labels):
* cl-macs.el (macrolet):
* cl-macs.el (symbol-macrolet):
* cl-macs.el (lexical-let):
* cl-macs.el (apply):
* cl-macs.el (nthcdr):
* cl-macs.el (getf):
* cl-macs.el (substring):
* cl-macs.el (values):
* cl-macs.el (get-setf-method):
* cl-macs.el (cl-setf-do-modify):
* cl.el:
* cl.el (cl-macro-environment): Removed.
* cl.el (cl-macroexpand):
* obsolete.el (cl-macro-environment): Moved here.
Drop cl-macro-environment, in favour of
byte-compile-macro-environment; make the latter available in
bytecomp-runtime.el. This makes byte-compile-macro-environment far
less useless, since previously code that used cl-macs would ignore
it when calling #'cl-macroexpand-all.
Add byte-compiler-specific implementations for #'load-time-value,
#'labels. The latter is very nice indeed; it avoids the run-time
consing of the current implementation, is fully lexical and avoids
the run-time shadowing of symbol function slots that flet uses. It
would now be reasonable to move most core uses of flet to use
labels instead. Non-core code can't rely on print-circle for
mutually recursive functions, though, so it's less of an evident
win.
| author | Aidan Kehoe <kehoea@parhasard.net> |
|---|---|
| date | Sun, 04 Sep 2011 20:37:55 +0100 |
| parents | dd9541c73e70 |
| children |
| rev | line source |
|---|---|
| 996 | 1 # Process this file with autoconf to produce a configure script. |
| 2 # This is only used for independent module building. | |
| 3 AC_INIT([Sample module], [1.0], [xemacs-beta@xemacs.org]) | |
| 4 AC_PREREQ(2.53) | |
| 5 AC_REVISION($Revision: 1.1 $) | |
| 6 AC_COPYRIGHT([Configuration script for the sample module. | |
| 7 Copyright (C) 2002 Jerry James. | |
| 8 | |
| 9 This file is part of XEmacs. | |
| 10 | |
|
5417
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
11 XEmacs is free software: you can redistribute it and/or modify it |
|
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
12 under the terms of the GNU General Public License as published by the |
|
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
13 Free Software Foundation, either version 3 of the License, or (at your |
| 996 | 14 option) any later version. |
| 15 | |
|
5417
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
16 XEmacs is distributed in the hope that it will be useful, but WITHOUT |
|
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
19 for more details. |
| 996 | 20 |
| 21 You should have received a copy of the GNU General Public License | |
|
5417
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
22 along with XEmacs. If not, see <http://www.gnu.org/licenses/>.]) |
| 996 | 23 |
| 24 AC_CONFIG_SRCDIR([sample.c]) | |
| 25 AC_PROG_CC | |
| 26 AC_PROG_INSTALL | |
| 27 AC_SUBST(CFLAGS) | |
| 28 AC_SUBST(LDFLAGS) | |
| 29 | |
| 30 # Find ELLCC | |
| 31 AC_ARG_VAR([ELLCC], [The path to the ellcc module compiler]) | |
| 32 AC_PATH_PROG([ELLCC], [ellcc], ["FAIL"]) | |
| 33 AS_IF([test "$ELLCC" = "FAIL"], [AS_ERROR([Cannot find ellcc])]) | |
| 34 | |
| 35 # Insert autoconf macros here to find the headers, libraries, other | |
| 36 # programs, etc. needed by your module. If other libraries will be linked | |
| 37 # with your module, then after detecting them, use a line of this form last: | |
| 38 AC_SUBST(sample_libs, "$LIBS") | |
| 39 | |
| 40 # This part should appear unchanged in every module configure.ac | |
| 41 AC_SUBST(PROGNAME, "module") | |
| 42 AC_SUBST(MOD_CC, "@ELLCC@") | |
| 43 AC_SUBST(MODARCHDIR, "\$(shell @ELLCC@ --mod-archdir)") | |
| 44 AC_SUBST(MAKE_DOCFILE, "\$(MODARCHDIR)/make-docfile") | |
| 45 AC_SUBST(MODCFLAGS, "\$(CFLAGS) --mode=compile --mod-output=\$@ -I\$(MODARCHDIR)/include") | |
| 46 AC_SUBST(INSTALLPATH, "\$(shell @ELLCC@ --mod-site-location)") | |
| 47 AC_SUBST(MOD_INSTALL_PROGRAM, "@INSTALL_PROGRAM@") | |
| 48 AC_SUBST(OBJECT_TO_BUILD, "\$(MODNAME).ell") | |
| 49 | |
| 50 AC_CONFIG_FILES([Makefile.in Makefile]) | |
| 51 AC_OUTPUT |
