annotate lisp/check-features.el @ 384:bbff43aa5eb7 r21-2-7

Import from CVS: tag r21-2-7
author cvs
date Mon, 13 Aug 2007 11:08:24 +0200
parents cc15677e0335
children 74fd4e045ea6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
237
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
1 ;;; check-features.el --- Do a sanity check on an XEmacs build
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
2
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
3 ;; Copyright (C) 1998 by Free Software Foundation, Inc.
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
4
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
5 ;; Author: SL Baur <steve@altair.xemacs.org>
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
6 ;; Keywords: internal
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
7
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
8 ;; This file is part of XEmacs.
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
9
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
10 ;; XEmacs is free software; you can redistribute it and/or modify it
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
11 ;; under the terms of the GNU General Public License as published by
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
13 ;; any later version.
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
14
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
15 ;; XEmacs is distributed in the hope that it will be useful, but
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
18 ;; General Public License for more details.
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
19
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
21 ;; along with XEmacs; see the file COPYING. If not, write to the Free
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
22 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
23 ;; 02111-1307, USA.
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
24
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
25 ;;; Synched up with: Not in FSF
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
26
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
27 ;;; Commentary:
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
28
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
29 ;; This file is executed after a build to check that all lisp packages that
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
30 ;; need to be installed are.
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
31
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
32 ;;; Code:
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
33
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
34 (require 'packages)
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
35
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
36 (defvar build-error 0)
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
37
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
38 (when (featurep 'tooltalk)
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
39 (condition-case nil
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
40 (package-require 'tooltalk 1.0)
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
41 (t (progn
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 339
diff changeset
42 (setq build-error 1)
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 339
diff changeset
43 (message "Error: This XEmacs is built with tooltalk support but")
237
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
44 (message "does not have a tooltalk package installed. Without the")
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
45 (message "tooltalk lisp package, Tooltalk support is broken.")))))
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
46
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
47 (when (featurep 'sparcworks)
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
48 (condition-case nil
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
49 (package-require 'Sun 1.0)
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
50 (t (progn
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 339
diff changeset
51 (setq build-error 1)
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 339
diff changeset
52 (message "Error: This XEmacs is built with sparcworks support but")
237
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
53 (message "does not have the Sun package installed. Without the Sun")
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
54 (message "lisp package, Sparcworks support will be broken.")))))
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
55
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
56 (kill-emacs build-error)
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
57
89ec2bb86eea Import from CVS: tag r20-5b17
cvs
parents:
diff changeset
58 ;;; check-features.el ends here