- dnl #
- dnl # Check Emacs directories
- dnl #
- AC_MSG_CHECKING([where emacs files are in])
- EMACS_BASENAME="`echo x$EMACS | sed -e 's/x//' -e 's/^.*\///'`"
- if test "x$emacsdir" = x; then
- if test "x$prefix" = "xNONE"; then
- prefix=$ac_default_prefix
- fi
- emacsdir="\$(datadir)/emacs"
- case "$EMACS_BASENAME" in
- emacs|emacs-*)
- if test -d $prefix/lib/emacs; then
- emacsdir="$prefix/lib/emacs"
- fi
- if test -d $prefix/share/emacs; then
- emacsdir="$prefix/share/emacs"
- fi
- ;;
- xemacs|xemacs-*)
- if test -d $prefix/lib/xemacs; then
- emacsdir="$prefix/lib/xemacs"
- fi
- if test -d $prefix/share/xemacs; then
- emacsdir="$prefix/share/xemacs"
- fi
- ;;
- mule|mule-*)
- if test -d $prefix/lib/emacs; then
- emacsdir="$prefix/lib/emacs"
- fi
- if test -d $prefix/share/emacs; then
- emacsdir="$prefix/share/emacs"
- fi
- if test -d $prefix/lib/mule; then
- emacsdir="$prefix/lib/mule"
- fi
- if test -d $prefix/share/mule; then
- emacsdir="$prefix/share/mule"
- fi
- ;;
- esac
- fi
- AC_MSG_RESULT($emacsdir)
- AC_SUBST(emacsdir)
- dnl #
- dnl # Check Emacs site-lisp directories
- dnl #