From 71ad76a65b6cc74da48845ac6bd3bb112034d101 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sun, 18 Apr 1999 14:13:01 +0000 Subject: [PATCH] * m4/lispdir.m4: Match only `/(share|lib)/x?emacs/site-lisp/*$'. --- ChangeLog | 2 ++ m4/lispdir.m4 | 8 +++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9c396f4a..3f92b94e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 1999-04-18 Alexandre Oliva + * m4/lispdir.m4: Match only `/(share|lib)/x?emacs/site-lisp/*$'. + * m4/lispdir.m4: Do not override lispdir if it's already defined. Run some emacs-lisp to find out the site-lisp directory, but relocate it into prefix. diff --git a/m4/lispdir.m4 b/m4/lispdir.m4 index a85434d7..3cc60a07 100644 --- a/m4/lispdir.m4 +++ b/m4/lispdir.m4 @@ -1,10 +1,10 @@ ## ------------------------ ## Emacs LISP file handling ## From Ulrich Drepper -## Heavily simplified by Alexandre Oliva +## Almost entirely rewritten by Alexandre Oliva ## ------------------------ -# serial 2 +# serial 3 AC_DEFUN(AM_PATH_LISPDIR, [# If set to t, that means we are running in a shell under Emacs. @@ -14,11 +14,9 @@ AC_DEFUN(AM_PATH_LISPDIR, if test $EMACS != "no"; then if test x${lispdir+set} != xset; then AC_CACHE_CHECK([where .elc files should go], [am_cv_lispdir], [dnl - am_cv_lispdir=`$EMACS -q -batch -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/emacs\/site-lisp$/{p;q;}'` + am_cv_lispdir=`$EMACS -q -batch -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'` if test -z "$am_cv_lispdir"; then am_cv_lispdir='${datadir}/emacs/site-lisp' - else - am_cv_lispdir=`echo "$am_cv_lispdir" | sed -e 's,^.*/lib/,${libdir}/,' -e 's,^.*/share/,${datadir}/,'` fi ]) lispdir="$am_cv_lispdir" -- 2.43.5