[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make install problem
Hi,
>>>>> In [emacs-w3m : No.02897]
>>>>> Katsumi Yamaoka <yamaoka@namazu.org> wrote:
> Please let me know what subdirectory names are suitable for the
> default value?
Here is a sample patch for aclocal.m4. It will produce the
following lines in Makefile when the configure option
--prefix=/dj/aspin/w3m is specified.
prefix = /dj/aspin/w3m
lispdir = $(datadir)/emacs/site-lisp/w3m
ICONDIR = $(prefix)/etc/w3m/icons/
I think it is not so good for all emacs-w3m users. How do you
think about it?
--- aclocal.m4~ 2001-10-23 09:37:17.000000000 +0000
+++ aclocal.m4 2002-03-07 04:17:43.188500777 +0000
@@ -170,13 +170,14 @@
if test -z "${ICONDIR}"; then
dnl Set the default value.
AC_EMACS_LISP(icondir,
- (let ((prefix \"${prefix}\")\
- (default (expand-file-name \"w3m/icons\" data-directory)))\
- (if (and prefix\
- (progn\
- (setq prefix (file-name-as-directory prefix))\
- (zerop (string-match (regexp-quote prefix) default))))\
- (replace-match \"\$(prefix)/\" nil nil default)\
+ (let ((prefix \"${prefix}\")\
+ (default (expand-file-name \"w3m/icons/\" data-directory)))\
+ (if prefix\
+ (progn\
+ (setq prefix (file-name-as-directory prefix))\
+ (if (eq 0 (string-match (regexp-quote prefix) default))\
+ (replace-match \"\$(prefix)/\" nil nil default)\
+ \"\$(prefix)/etc/w3m/icons/\"))\
default)),
${prefix},noecho)
ICONDIR=${EMACS_cv_SYS_icondir}
Note: you have to run autoconf to regenerate configure script.
--
Katsumi Yamaoka <yamaoka@namazu.org>