configure.in: Work for term-mode running in Emacs
[gnus] / configure.in
index d697ea0..daca503 100644 (file)
@@ -3,10 +3,11 @@ AC_SET_MAKE
 AC_PROG_INSTALL
 
 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 Apparently, if you run a shell window or a term window in Emacs,
+dnl it sets the EMACS environment variable to 't' or a version number
+dnl of Emacs.  Lets undo the damage.
 dnl
-if test "${EMACS}" = "t"; then
+if test "${EMACS}" = "t" -o -n "${INSIDE_EMACS}"; then
    EMACS=""
 fi