running AC_CHECK_PROGS(EMACS).
* lib/am/lisp.am (elc-stamp): Quote $(EMACS).
Report from Jens Petersen.
2003-11-13 Alexandre Duret-Lutz <adl@gnu.org>
+ * m4/lispdir.m4 (AM_PATH_LISPDIR): If EMACS=t, empty it before
+ running AC_CHECK_PROGS(EMACS).
+ * lib/am/lisp.am (elc-stamp): Quote $(EMACS).
+ Report from Jens Petersen.
+
* tests/mkinst2.test: Rewrite.
* m4/mkdirp.m4: Do not require AM_AUX_DIR_EXPAND.
Jeff Squyres jsquyres@lam-mpi.org
Jens Elkner elkner@imsgroup.de
Jens Krüger jens_krueger@physik.tu-muenchen.de
+Jens Petersen petersen@redhat.com
Jeremy Nimmer jwnimmer@alum.mit.edu
Jerome Lovy jlovy@multimania.com
Jerome Santini santini@chambord.univ-orleans.fr
elc-stamp: $(am__ELFILES)
@echo 'WARNING: Warnings can be ignored. :-)'
- if test $(EMACS) != no; then \
+ if test "$(EMACS)" != no; then \
## Make sure "$@" isn't empty initially.
set x; \
## Populate "$@" with elisp files (found in the current directory
done; \
## Finally call elisp-comp for all files.
shift; \
- EMACS=$(EMACS) $(SHELL) $(elisp_comp) "$$@" || exit 1; \
+ EMACS="$(EMACS)" $(SHELL) $(elisp_comp) "$$@" || exit 1; \
else : ; fi
touch $@
# AM_PATH_LISPDIR
# ---------------
AC_DEFUN([AM_PATH_LISPDIR],
-[AC_CHECK_PROGS([EMACS], [emacs xemacs], [no])
+[ # 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 x"$EMACS" = xt && EMACS=
+ AC_CHECK_PROGS([EMACS], [emacs xemacs], [no])
AC_ARG_VAR([EMACS], [the Emacs editor command])
AC_ARG_VAR([EMACSLOADPATH], [the Emacs library search path])
AC_ARG_WITH([lispdir],
AC_MSG_CHECKING([where .elc files should go])
AC_MSG_RESULT([$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 x"$EMACS" = xt && EMACS=
AC_CACHE_CHECK([where .elc files should go], [am_cv_lispdir], [
if test $EMACS != "no"; then
if test x${lispdir+set} != xset; then