1 ## ------------------------
2 ## Emacs LISP file handling
4 ## ------------------------
8 AC_DEFUN(AM_PATH_LISPDIR,
9 [# If set to t, that means we are running in a shell under Emacs.
10 # If you have an Emacs named "t", then use the full path.
11 test "$EMACS" = t && EMACS=
12 AC_PATH_PROG(EMACS, emacs xemacs, no)
13 if test $EMACS != "no"; then
14 AC_MSG_CHECKING([where .elc files should go])
16 lispdir="\$(datadir)/emacs/site-lisp"
17 if test "x$prefix" = "xNONE"; then
18 if test -d $ac_default_prefix/share/emacs/site-lisp; then
19 lispdir="\$(prefix)/share/emacs/site-lisp"
21 if test -d $ac_default_prefix/lib/emacs/site-lisp; then
22 lispdir="\$(prefix)/lib/emacs/site-lisp"
26 if test -d $prefix/share/emacs/site-lisp; then
27 lispdir="\$(prefix)/share/emacs/site-lisp"
29 if test -d $prefix/lib/emacs/site-lisp; then
30 lispdir="\$(prefix)/lib/emacs/site-lisp"
34 AC_MSG_RESULT($lispdir)
35 ELCFILES="\$(ELCFILES)"