]> sourceware.org Git - automake.git/commitdiff
* m4/lispdir.m4: Match only `/(share|lib)/x?emacs/site-lisp/*$'.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sun, 18 Apr 1999 14:13:01 +0000 (14:13 +0000)
committerAlexandre Oliva <oliva@dcc.unicamp.br>
Sun, 18 Apr 1999 14:13:01 +0000 (14:13 +0000)
ChangeLog
m4/lispdir.m4

index 9c396f4ac460a75812ed4461e04e824f5d7dd730..3f92b94ef0814b64780ce47bbeaa359ca4dab17b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 1999-04-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * 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.
index a85434d72f4a83e9b968b25667c9daad2b13c74c..3cc60a07d5988f824652d45f6dc65f511596ac90 100644 (file)
@@ -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"
This page took 0.031424 seconds and 5 git commands to generate.