diff options
author | Jim Meyering <jim@meyering.net> | 1996-12-21 01:56:50 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-12-21 01:56:50 +0000 |
commit | 58dfd6b4420c1d0d9136dfa98829ccd17853b064 (patch) | |
tree | b10ebcf306455a04b25fd831347552f3736adec1 /m4/lispdir.m4 | |
parent | 5fc47138b1f01f5ec8d449585bd19abea4da7960 (diff) | |
download | coreutils-58dfd6b4420c1d0d9136dfa98829ccd17853b064.tar.xz |
copied from automake-1.1l
Diffstat (limited to 'm4/lispdir.m4')
-rw-r--r-- | m4/lispdir.m4 | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/m4/lispdir.m4 b/m4/lispdir.m4 new file mode 100644 index 000000000..b04a17ca9 --- /dev/null +++ b/m4/lispdir.m4 @@ -0,0 +1,38 @@ +## ------------------------ +## Emacs LISP file handling +## From Ulrich Drepper +## ------------------------ + +# serial 1 + +AC_DEFUN(AM_PATH_LISPDIR, + [# If set to t, that means we are running in a shell under Emacs. + # If you have an Emacs named "t", then use the full path. + test "$EMACS" = t && EMACS= + AC_PATH_PROG(EMACS, emacs xemacs, no) + if test $EMACS != "no"; then + AC_MSG_CHECKING([where .elc files should go]) + dnl Set default value + lispdir="\$(datadir)/emacs/site-lisp" + if test "x$prefix" = "xNONE"; then + if test -d $ac_default_prefix/share/emacs/site-lisp; then + lispdir="\$(prefix)/share/emacs/site-lisp" + else + if test -d $ac_default_prefix/lib/emacs/site-lisp; then + lispdir="\$(prefix)/lib/emacs/site-lisp" + fi + fi + else + if test -d $prefix/share/emacs/site-lisp; then + lispdir="\$(prefix)/share/emacs/site-lisp" + else + if test -d $prefix/lib/emacs/site-lisp; then + lispdir="\$(prefix)/lib/emacs/site-lisp" + fi + fi + fi + AC_MSG_RESULT($lispdir) + ELCFILES="\$(ELCFILES)" + fi + AC_SUBST(lispdir) + AC_SUBST(ELCFILES)]) |