Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 161923
Collapse All | Expand All

(-)configure.old (-55 / +2 lines)
Lines 2007-2037 Link Here
2007
   { (exit 1); exit 1; }; }
2007
   { (exit 1); exit 1; }; }
2008
fi
2008
fi
2009
2009
2010
{ echo "$as_me:$LINENO: checking if ${EMACS} is XEmacs" >&5
2010
EMACS_FLAVOR=emacs
2011
echo $ECHO_N "checking if ${EMACS} is XEmacs... $ECHO_C" >&6; }
2011
EMACS_NAME="Emacs"
2012
2013
  elisp="(if (featurep (quote xemacs)) \"yes\" \"no\")"
2014
  OUTPUT=./conftest-$$
2015
  echo "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
2016
  "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
2017
  XEMACS="`cat ${OUTPUT}`"
2018
  echo "=> ${XEMACS}" >& 5 2>&1
2019
  rm -f ${OUTPUT}
2020
2021
if test "${XEMACS}" = "yes"; then
2022
  EMACS_FLAVOR=xemacs
2023
  EMACS_NAME="XEmacs"
2024
elif test "${XEMACS}" = "no"; then
2025
  EMACS_FLAVOR=emacs
2026
  EMACS_NAME="Emacs"
2027
else
2028
  { { echo "$as_me:$LINENO: error: Unable to run ${EMACS}!  Aborting!" >&5
2029
echo "$as_me: error: Unable to run ${EMACS}!  Aborting!" >&2;}
2030
   { (exit 1); exit 1; }; }
2031
fi
2032
  { echo "$as_me:$LINENO: result: ${XEMACS}" >&5
2033
echo "${ECHO_T}${XEMACS}" >&6; }
2034
2035
2012
2036
  { echo "$as_me:$LINENO: checking for ${EMACS_NAME} prefix" >&5
2013
  { echo "$as_me:$LINENO: checking for ${EMACS_NAME} prefix" >&5
2037
echo $ECHO_N "checking for ${EMACS_NAME} prefix... $ECHO_C" >&6; }
2014
echo $ECHO_N "checking for ${EMACS_NAME} prefix... $ECHO_C" >&6; }
Lines 2056-2089 Link Here
2056
echo "${ECHO_T}\"${emacsprefix}\"" >&6; }
2033
echo "${ECHO_T}\"${emacsprefix}\"" >&6; }
2057
2034
2058
2035
2059
if test ${EMACS_FLAVOR} = xemacs
2060
then
2061
2062
{ echo "$as_me:$LINENO: checking if ${EMACS_NAME} is recent enough" >&5
2063
echo $ECHO_N "checking if ${EMACS_NAME} is recent enough... $ECHO_C" >&6; }
2064
2065
  elisp="(cond ((< emacs-major-version 21) \"no\")
2066
			 ((> emacs-major-version 21) \"yes\")
2067
			 ((< emacs-minor-version 04) \"no\")
2068
			 (t \"yes\"))"
2069
  OUTPUT=./conftest-$$
2070
  echo "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
2071
  "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
2072
  result="`cat ${OUTPUT}`"
2073
  echo "=> ${result}" >& 5 2>&1
2074
  rm -f ${OUTPUT}
2075
2076
{ echo "$as_me:$LINENO: result: ${result}" >&5
2077
echo "${ECHO_T}${result}" >&6; }
2078
if test "${result}" != "yes"
2079
then
2080
  { { echo "$as_me:$LINENO: error: This package requires at least ${EMACS_NAME} version 21.4  Aborting!" >&5
2081
echo "$as_me: error: This package requires at least ${EMACS_NAME} version 21.4  Aborting!" >&2;}
2082
   { (exit 1); exit 1; }; }
2083
fi
2084
2085
else
2086
2087
{ echo "$as_me:$LINENO: checking if ${EMACS_NAME} is recent enough" >&5
2036
{ echo "$as_me:$LINENO: checking if ${EMACS_NAME} is recent enough" >&5
2088
echo $ECHO_N "checking if ${EMACS_NAME} is recent enough... $ECHO_C" >&6; }
2037
echo $ECHO_N "checking if ${EMACS_NAME} is recent enough... $ECHO_C" >&6; }
2089
2038
Lines 2107-2114 Link Here
2107
   { (exit 1); exit 1; }; }
2056
   { (exit 1); exit 1; }; }
2108
fi
2057
fi
2109
2058
2110
fi
2111
2112
2059
2113
{ echo "$as_me:$LINENO: checking for MULE support" >&5
2060
{ echo "$as_me:$LINENO: checking for MULE support" >&5
2114
echo $ECHO_N "checking for MULE support... $ECHO_C" >&6; }
2061
echo $ECHO_N "checking for MULE support... $ECHO_C" >&6; }

Return to bug 161923