aclocal.m4 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. dnl aclocal.m4 generated automatically by aclocal 1.4
  2. dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  3. dnl This file is free software; the Free Software Foundation
  4. dnl gives unlimited permission to copy and/or distribute it,
  5. dnl with or without modifications, as long as this notice is preserved.
  6. dnl This program is distributed in the hope that it will be useful,
  7. dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  8. dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  9. dnl PARTICULAR PURPOSE.
  10. # serial 1
  11. AC_DEFUN(AM_PATH_LISPDIR,
  12. [# If set to t, that means we are running in a shell under Emacs.
  13. # If you have an Emacs named "t", then use the full path.
  14. test "$EMACS" = t && EMACS=
  15. AC_PATH_PROGS(EMACS, emacs xemacs, no)
  16. if test $EMACS != "no"; then
  17. AC_MSG_CHECKING([where .elc files should go])
  18. dnl Set default value
  19. lispdir="\$(datadir)/emacs/site-lisp"
  20. emacs_flavor=`echo "$EMACS" | sed -e 's,^.*/,,'`
  21. if test "x$prefix" = "xNONE"; then
  22. if test -d $ac_default_prefix/share/$emacs_flavor/site-lisp; then
  23. lispdir="\$(prefix)/share/$emacs_flavor/site-lisp"
  24. else
  25. if test -d $ac_default_prefix/lib/$emacs_flavor/site-lisp; then
  26. lispdir="\$(prefix)/lib/$emacs_flavor/site-lisp"
  27. fi
  28. fi
  29. else
  30. if test -d $prefix/share/$emacs_flavor/site-lisp; then
  31. lispdir="\$(prefix)/share/$emacs_flavor/site-lisp"
  32. else
  33. if test -d $prefix/lib/$emacs_flavor/site-lisp; then
  34. lispdir="\$(prefix)/lib/$emacs_flavor/site-lisp"
  35. fi
  36. fi
  37. fi
  38. AC_MSG_RESULT($lispdir)
  39. fi
  40. AC_SUBST(lispdir)])