6 dnl Apparently, if you run a shell window in Emacs, it sets the EMACS
7 dnl environment variable to 't'. Lets undo the damage.
9 if test "${EMACS}" = "t"; then
14 [AS_HELP_STRING([[--with-xemacs[=PROG]]],
15 [use XEmacs to build (default: PROG=xemacs)])],
16 [ if test "${withval}" = "yes"; then EMACS=xemacs; else EMACS=${withval}; fi ])
18 [AS_HELP_STRING([[--with-emacs[=PROG]]],
19 [use Emacs to build (default: PROG=emacs)])],
20 [ if test "${withval}" = "yes"; then EMACS=emacs; else EMACS=${withval}; fi ])
21 AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, no)
23 AC_CHECK_PROG(EMACS, emacs, emacs, xemacs)
33 AC_OUTPUT(Makefile etc/Makefile lisp/Makefile texi/Makefile texi/gnusconfig.tex texi/ps/Makefile)