+
+
+ echo $ac_n "checking where lisp files should go""... $ac_c" 1>&6
+echo "configure:868: checking where lisp files should go" >&5
+ # Check whether --with-lispdir or --without-lispdir was given.
+if test "${with_lispdir+set}" = set; then
+ withval="$with_lispdir"
+ lispdir=$withval
+else
+ emacsdir=$datadir/emacs
+ test x$prefix = xNONE && prefix=$ac_default_prefix
+ case `echo x$EMACS | sed -e 's/x//' -e 's/^.*\///'` in
+ emacs|emacs-*)
+ if test -d $prefix/share/emacs; then
+ emacsdir=$prefix/share/emacs
+ elif test -d $prefix/lib/emacs; then
+ emacsdir=$prefix/lib/emacs
+ fi;;
+ xemacs|xemacs-*)
+ if test -d $prefix/lib/xemacs; then
+ emacsdir=$prefix/lib/xemacs
+ elif test -d $prefix/share/xemacs; then
+ emacsdir=$prefix/share/xemacs
+ fi;;
+ mule|mule-*)
+ if test -d $prefix/share/mule; then
+ emacsdir=$prefix/share/mule
+ elif test -d $prefix/lib/mule; then
+ emacsdir=$prefix/lib/mule
+ elif test -d $prefix/share/emacs; then
+ emacsdir=$prefix/share/emacs
+ elif test -d $prefix/lib/emacs; then
+ emacsdir=$prefix/lib/emacs
+ fi;;
+ esac
+ lispdir=$emacsdir/site-lisp/$GNUS_PRODUCT_NAME
+fi