X-Git-Url: http://git.chise.org/gitweb/?p=elisp%2Fgnus.git-;a=blobdiff_plain;f=configure.in;h=939e96491ece60c47c300743957caa1ff84aa6fd;hp=675635b35598e2fbb8fb1cb78e25e929dddb4cfc;hb=HEAD;hpb=505a1f90069307af68e21c07b4b6fec4ac037792 diff --git a/configure.in b/configure.in index 675635b..939e964 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,33 @@ AC_INIT(lisp/gnus.el) AC_SET_MAKE AC_PROG_INSTALL -AM_PATH_LISPDIR -AC_PATH_PROG(MAKEINFO, makeinfo, no) -AC_OUTPUT(Makefile lisp/Makefile texi/Makefile) + +dnl +dnl Apparently, if you run a shell window in Emacs, it sets the EMACS +dnl environment variable to 't'. Lets undo the damage. +dnl +if test "${EMACS}" = "t"; then + EMACS="" +fi + +AC_ARG_WITH(xemacs,[ --with-xemacs Use XEmacs to build], + [ if test "${withval}" = "yes"; then EMACS=xemacs; else EMACS=${withval}; fi ]) +AC_ARG_WITH(emacs,[ --with-emacs Use Emacs to build], + [ if test "${withval}" = "yes"; then EMACS=emacs; else EMACS=${withval}; fi ]) +AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, no) + +AC_CHECK_PROG(EMACS, emacs, emacs, xemacs) + +AC_PATH_LISPDIR +AC_PATH_ETCDIR +AC_PATH_INFO_DIR +AC_CHECK_URL +AC_CHECK_W3 +AC_SET_BUILD_FLAGS +GNUS_CHECK_FONTS + +AC_OUTPUT(Makefile etc/Makefile lisp/Makefile texi/Makefile texi/gnusconfig.tex texi/ps/Makefile) + +ifelse(dnl Do not change this comment + arch-tag: 4fda042e-c632-45be-867f-4d90bc87746b +)dnl