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

(-)configure.orig (-53 / +2 lines)
Lines 1536-1565 Link Here
1536
   { (exit 1); exit 1; }; }
1536
   { (exit 1); exit 1; }; }
1537
fi
1537
fi
1538
1538
1539
echo "$as_me:$LINENO: checking if ${EMACS} is XEmacs" >&5
1540
echo $ECHO_N "checking if ${EMACS} is XEmacs... $ECHO_C" >&6
1541
1539
1542
  elisp="(if (featurep (quote xemacs)) \"yes\" \"no\")"
1540
EMACS_FLAVOR=emacs
1543
  OUTPUT=./conftest-$$
1541
EMACS_NAME="Emacs"
1544
  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
1545
  "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
1546
  XEMACS="`cat ${OUTPUT}`"
1547
  echo "=> ${XEMACS}" >& 5 2>&1
1548
  rm -f ${OUTPUT}
1549
1550
if test "${XEMACS}" = "yes"; then
1551
  EMACS_FLAVOR=xemacs
1552
  EMACS_NAME="XEmacs"
1553
elif test "${XEMACS}" = "no"; then
1554
  EMACS_FLAVOR=emacs
1555
  EMACS_NAME="Emacs"
1556
else
1557
  { { echo "$as_me:$LINENO: error: Unable to run ${EMACS}!  Aborting!" >&5
1558
echo "$as_me: error: Unable to run ${EMACS}!  Aborting!" >&2;}
1559
   { (exit 1); exit 1; }; }
1560
fi
1561
  echo "$as_me:$LINENO: result: ${XEMACS}" >&5
1562
echo "${ECHO_T}${XEMACS}" >&6
1563
1542
1564
1543
1565
  echo "$as_me:$LINENO: checking for ${EMACS_NAME} prefix" >&5
1544
  echo "$as_me:$LINENO: checking for ${EMACS_NAME} prefix" >&5
Lines 1585-1618 Link Here
1585
echo "${ECHO_T}\"${emacsprefix}\"" >&6
1564
echo "${ECHO_T}\"${emacsprefix}\"" >&6
1586
1565
1587
1566
1588
if test ${EMACS_FLAVOR} = xemacs
1589
then
1590
1591
echo "$as_me:$LINENO: checking if ${EMACS_NAME} is recent enough" >&5
1592
echo $ECHO_N "checking if ${EMACS_NAME} is recent enough... $ECHO_C" >&6
1593
1594
  elisp="(cond ((< emacs-major-version 21) \"no\")
1595
			 ((> emacs-major-version 21) \"yes\")
1596
			 ((< emacs-minor-version 04) \"no\")
1597
			 (t \"yes\"))"
1598
  OUTPUT=./conftest-$$
1599
  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
1600
  "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
1601
  result="`cat ${OUTPUT}`"
1602
  echo "=> ${result}" >& 5 2>&1
1603
  rm -f ${OUTPUT}
1604
1605
echo "$as_me:$LINENO: result: ${result}" >&5
1606
echo "${ECHO_T}${result}" >&6
1607
if test "${result}" != "yes"
1608
then
1609
  { { echo "$as_me:$LINENO: error: This package requires at least ${EMACS_NAME} version 21.4  Aborting!" >&5
1610
echo "$as_me: error: This package requires at least ${EMACS_NAME} version 21.4  Aborting!" >&2;}
1611
   { (exit 1); exit 1; }; }
1612
fi
1613
1614
else
1615
1616
echo "$as_me:$LINENO: checking if ${EMACS_NAME} is recent enough" >&5
1567
echo "$as_me:$LINENO: checking if ${EMACS_NAME} is recent enough" >&5
1617
echo $ECHO_N "checking if ${EMACS_NAME} is recent enough... $ECHO_C" >&6
1568
echo $ECHO_N "checking if ${EMACS_NAME} is recent enough... $ECHO_C" >&6
1618
1569
Lines 1636-1643 Link Here
1636
   { (exit 1); exit 1; }; }
1587
   { (exit 1); exit 1; }; }
1637
fi
1588
fi
1638
1589
1639
fi
1640
1641
1590
1642
echo "$as_me:$LINENO: checking for mule support" >&5
1591
echo "$as_me:$LINENO: checking for mule support" >&5
1643
echo $ECHO_N "checking for mule support... $ECHO_C" >&6
1592
echo $ECHO_N "checking for mule support... $ECHO_C" >&6

Return to bug 118100