tm 7.99.
[elisp/tm.git] / TM-CFG
1 ;;; -*-Emacs-Lisp-*-
2 ;;;
3 ;;; $Id: TM-CFG,v 7.27 1996/12/16 15:12:55 morioka Exp $
4 ;;;
5
6 (defvar default-load-path load-path)
7 (setq load-path (append
8                  (mapcar (function
9                           (lambda (path)
10                             (expand-file-name path (getenv "PWD"))
11                             ))
12                          '("." "../emu" "../tl" "../bitmap-mule"
13                            "../mu" "../mel"
14                            "../tm-mh-e" "../gnus-mime" "../tm-gnus"
15                            "../tm-mail" "../tm-vm")
16                          )
17                  load-path))
18
19 (require 'tl-misc)
20 (require 'install)
21
22
23 ;;; @ Please specify optional package directory if you use them.
24 ;;;
25
26 ;; It is only necessary to use `add-path' if these packages are not
27 ;; already on the standard load-path of Emacs.
28
29 ;; Function `get-latest-path' detect latest version of such package
30 ;; under load-path directories. If you want to use a version of a
31 ;; package instead of latest version, please specify by argument of
32 ;; function `add-path'.
33
34 ;; Function `add-path' finds path under load-path directories. If a
35 ;; package does not exist in load-path, please specify by absolutely
36 ;; (`~/' is available), for example
37 ;;      (add-path "~/lib/elisp/mailcrypt-3.4")
38 ;; or
39 ;;      (add-path "/opt/share/xmule/site-lisp/mailcrypt-3.4")
40
41 ;;; @@ Please specify VM path.
42 ;;;
43
44 ;; Use latest version installed in load-path.
45
46 (let ((path (get-latest-path "vm" 'all-paths)))
47   (if path
48       (add-path path)
49     ))
50
51 ;; Or please specify path.
52 ;; (add-path "vm-5.95beta" 'all-paths)
53
54
55 ;;; @@ Please specify Mailcrypt path.
56 ;;;
57
58 ;; Use latest version installed in load-path.
59
60 (let ((path (get-latest-path "mailcrypt" 'all-paths)))
61   (if path
62       (add-path path)
63     ))
64
65 ;; Or please specify path.
66 ;; (add-path "mailcrypt-3.4" 'all-paths)
67
68
69 ;;; @@ Please specify BBDB path.
70 ;;;
71
72 (let ((path (get-latest-path "bbdb" 'all-paths)))
73   (if path
74       (add-path path)
75     ))
76
77 ;; Or please specify path.
78 ;; (add-path "bbdb-1.50" 'all-paths)
79
80
81 ;;; @ shell
82 ;;;
83
84 ;; Please specify shell command path.
85 (setq SHELL
86       (find-if (function file-exists-p)
87                '("/bin/sh" "/usr/bin/sh")
88                ))
89
90 ;; Please specify shell command option.
91 (setq SHELLOPTION "-c")
92
93
94 ;;; @ Please specify prefix of install directory.
95 ;;;
96
97 ;; Please specify install path prefix.
98 ;; If it is omitted, shared directory (maybe /usr/local is used).
99 (defvar PREFIX install-prefix)
100 ;;(setq PREFIX "~/")
101
102 ;; Please specify install path prefix for binaries.
103 (defvar EXEC_PREFIX
104   (if (or running-emacs-18 running-xemacs)
105       (expand-file-name "../../.." exec-directory)
106     (expand-file-name "../../../.." exec-directory)
107     ))
108
109 ;; Please specify emu prefix [optional]
110 (setq EMU_PREFIX
111       (if (string-match "XEmacs" emacs-version)
112           "emu"
113         ""))
114
115 ;; Please specify tl prefix [optional]
116 ;;(setq TL_PREFIX "tl")
117 (setq TL_PREFIX
118       (if (string-match "XEmacs" emacs-version)
119           "tl"
120         ""))
121
122 ;; Please specify prefix for ``bitmap-mule'' [optional]
123 (setq BITMAP_PREFIX "bitmap")
124
125 ;; Please specify MU prefix [optional]
126 (setq MU_PREFIX "mu")
127
128 ;; Please specify MEL prefix [optional]
129 (setq MEL_PREFIX "mel")
130
131 ;; Please specify tm prefix [optional]
132 (setq TM_PREFIX "tm")
133
134 ;; lisp files of tm are installed into following directory tree:
135 ;;
136 ;;      <LISPDIR> = <PREFIX>/DATA_PREFIX/<install-elisp-prefix>/
137 ;;      <LISPDIR>/mime-setup.{el|elc}
138 ;;      <LISPDIR>/<TL_PREFIX>/          --- tl lisp files
139 ;;      <LISPDIR>/<BITMAP_PREFIX>/      --- bitmap lisp files
140 ;;      <LISPDIR>/<MU_PREFIX>/          --- MU lisp files
141 ;;      <LISPDIR>/<MEL_PREFIX>/         --- MEL lisp files
142 ;;      <LISPDIR>/<TM_PREFIX>/          --- tm lisp files
143 ;;
144 ;; For example, if <PREFIX> = "/usr/local" and you use Emacs 19.34,
145 ;;
146 ;;      <LISPDIR> = /usr/local/share/emacs/site-lisp/
147 ;;      /usr/local/share/emacs/site-lisp/mime-setup.{el|elc}
148 ;;      /usr/local/share/emacs/site-lisp/       --- tl  lisp files
149 ;;      /usr/local/share/emacs/site-lisp/mu/    --- MU lisp files
150 ;;      /usr/local/share/emacs/site-lisp/mel/   --- MEL lisp files
151 ;;      /usr/local/share/emacs/site-lisp/tm/    --- tm  lisp files
152 ;;
153 ;; For example, if <PREFIX> = "~/" and you use XEmacs,
154 ;;
155 ;;      <LISPDIR> = ~/share/xemacs/site-lisp/
156 ;;      ~/lib/xemacs/site-lisp/mime-setup.{el|elc}
157 ;;      ~/lib/xemacs/site-lisp/tl/  --- tl  lisp files
158 ;;      ~/lib/xemacs/site-lisp/mu/  --- MU  lisp files
159 ;;      ~/lib/xemacs/site-lisp/mel/ --- MEL lisp files
160 ;;      ~/lib/xemacs/site-lisp/tm/  --- tm  lisp files
161
162
163 ;;; @ executables
164 ;;;
165
166 ;; Please specify binary path.
167 (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
168
169 ;; Please specify binary path. (for external method scripts)
170 (setq METHOD_DIR (expand-file-name "share/tm" PREFIX))
171
172
173 \f
174
175 ;;; @ optional settings
176 ;;;
177
178 ;; It is generated by automatically. Please set variable `PREFIX'.
179 ;; If you don't like default directory tree, please set it.
180 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
181 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
182
183 (setq EMU_DIR
184       (expand-file-name
185        EMU_PREFIX
186        (install-detect-elisp-directory PREFIX nil 'version-specific)))
187
188 ;; Please specify mime-setup.{el|elc} install path.
189 (setq SETUP_FILE_DIR LISPDIR)
190
191 (setq TL_DIR            (expand-file-name TL_PREFIX     LISPDIR))
192 (setq BITMAP_DIR        (expand-file-name BITMAP_PREFIX LISPDIR))
193 (setq MU_DIR            (expand-file-name MU_PREFIX     LISPDIR))
194 (setq MEL_DIR           (expand-file-name MEL_PREFIX    LISPDIR))
195 (setq TM_KERNEL_DIR     (expand-file-name TM_PREFIX     LISPDIR))
196 (setq TM_MHE_DIR        TM_KERNEL_DIR)
197 (setq TM_GNUS_DIR       TM_KERNEL_DIR)
198 (setq Gnus_MIME_DIR     TM_KERNEL_DIR)
199 (setq TM_MAIL_DIR       TM_KERNEL_DIR)
200 (setq TM_VM_DIR         TM_KERNEL_DIR)
201
202 (cond ((member LISPDIR default-load-path)
203        (setq TL_RELATIVE_DIR            TL_PREFIX)
204        (setq BITMAP_RELATIVE_DIR        BITMAP_PREFIX)
205        (setq MU_RELATIVE_DIR            MU_PREFIX)
206        (setq MEL_RELATIVE_DIR           MEL_PREFIX)
207        (setq TM_KERNEL_RELATIVE_DIR     TM_PREFIX)
208        )
209       ((string-match (concat "^" (regexp-quote (expand-file-name "~/")))
210                      LISPDIR)
211        (setq TL_RELATIVE_DIR
212              (concat "~/" (file-relative-name TL_DIR "~/"))
213              )
214        (setq BITMAP_RELATIVE_DIR
215              (concat "~/" (file-relative-name BITMAP_DIR "~/"))
216              )
217        (setq MU_RELATIVE_DIR
218              (concat "~/" (file-relative-name MU_DIR "~/"))
219              )
220        (setq MEL_RELATIVE_DIR
221              (concat "~/" (file-relative-name MEL_DIR "~/"))
222              )
223        (setq TM_KERNEL_RELATIVE_DIR
224              (concat "~/" (file-relative-name TM_KERNEL_DIR "~/"))
225              )
226        )
227       (t
228        (setq TL_RELATIVE_DIR            TL_DIR)
229        (setq BITMAP_RELATIVE_DIR        BITMAP_DIR)
230        (setq MU_RELATIVE_DIR            MU_DIR)
231        (setq MEL_RELATIVE_DIR           MEL_DIR)
232        (setq TM_KERNEL_RELATIVE_DIR     TM_KERNEL_DIR)
233        ))
234 (setq TM_MHE_RELATIVE_DIR       TM_KERNEL_RELATIVE_DIR)
235 (setq TM_GNUS_RELATIVE_DIR      TM_KERNEL_RELATIVE_DIR)
236
237 (setq TM_GNUS_INSTALL_FORMAT
238       "cd gnus; PWD=`pwd` make install-19 EMACS=%s TMDIR19=%s")
239 (setq TM_GNUS_COMPILE ".gnus-compile")
240 (setq MAKE "make")
241
242
243 (setq BIN_SRC_DIR "src")
244 (setq BINS '("ol2" "decode-b"))
245 (setq METHOD_SRC_DIR "methods")
246 (setq METHODS
247       '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg"
248         "tm-plain" "tm-ps"
249         "tmdecode"))
250
251 ;;; TM-CFG ends here