diff options
| author | YAMAMOTO Mitsuharu | 2005-10-04 09:19:37 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2005-10-04 09:19:37 +0000 |
| commit | 9797a87d2407d6d3a38cc27bb9aeb0cd42f34493 (patch) | |
| tree | b974db9fe32daf9715e76d6dbfcb6897b5fa3687 | |
| parent | 1d4d56045e8b23fb32832ffcbb609615a11cbc18 (diff) | |
| download | emacs-9797a87d2407d6d3a38cc27bb9aeb0cd42f34493.tar.gz emacs-9797a87d2407d6d3a38cc27bb9aeb0cd42f34493.zip | |
Prefer Carbon if --enable-carbon-app or --with-carbon is explicitly
specified even when X11 is detected.
| -rw-r--r-- | configure.in | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/configure.in b/configure.in index a2d451c5ce7..4c1dda68896 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1668,6 +1668,20 @@ else | |||
| 1668 | fi | 1668 | fi |
| 1669 | fi | 1669 | fi |
| 1670 | 1670 | ||
| 1671 | HAVE_CARBON=no | ||
| 1672 | if test "${with_carbon}" != no; then | ||
| 1673 | AC_CHECK_HEADER(Carbon/Carbon.h, HAVE_CARBON=yes) | ||
| 1674 | fi | ||
| 1675 | if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then | ||
| 1676 | if test "${with_carbon+set}" != set \ | ||
| 1677 | && test "${carbon_appdir_x+set}" != set; then | ||
| 1678 | HAVE_CARBON=no | ||
| 1679 | fi | ||
| 1680 | fi | ||
| 1681 | if test "${HAVE_CARBON}" = yes; then | ||
| 1682 | window_system=mac | ||
| 1683 | fi | ||
| 1684 | |||
| 1671 | case "${window_system}" in | 1685 | case "${window_system}" in |
| 1672 | x11 ) | 1686 | x11 ) |
| 1673 | HAVE_X_WINDOWS=yes | 1687 | HAVE_X_WINDOWS=yes |
| @@ -1686,7 +1700,7 @@ dnl make this decision later: use the toolkit if we have X11R5 or newer. | |||
| 1686 | * ) USE_X_TOOLKIT=maybe ;; | 1700 | * ) USE_X_TOOLKIT=maybe ;; |
| 1687 | esac | 1701 | esac |
| 1688 | ;; | 1702 | ;; |
| 1689 | none ) | 1703 | mac | none ) |
| 1690 | HAVE_X_WINDOWS=no | 1704 | HAVE_X_WINDOWS=no |
| 1691 | HAVE_X11=no | 1705 | HAVE_X11=no |
| 1692 | USE_X_TOOLKIT=none | 1706 | USE_X_TOOLKIT=none |
| @@ -1715,13 +1729,6 @@ if test "${opsys}" = "hpux9shr"; then | |||
| 1715 | esac | 1729 | esac |
| 1716 | fi | 1730 | fi |
| 1717 | 1731 | ||
| 1718 | HAVE_CARBON=no | ||
| 1719 | if test "${HAVE_X11}" != "yes"; then | ||
| 1720 | if test "${with_carbon}" != "no"; then | ||
| 1721 | AC_CHECK_HEADER(Carbon/Carbon.h, HAVE_CARBON=yes) | ||
| 1722 | fi | ||
| 1723 | fi | ||
| 1724 | |||
| 1725 | ### Compute the unexec source name from the object name. | 1732 | ### Compute the unexec source name from the object name. |
| 1726 | UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | 1733 | UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" |
| 1727 | 1734 | ||
| @@ -2345,7 +2352,6 @@ AC_CHECK_HEADER(malloc/malloc.h, AC_DEFINE(HAVE_MALLOC_MALLOC_H, 1, [Define to 1 | |||
| 2345 | ### Use Mac OS X Carbon API to implement GUI. | 2352 | ### Use Mac OS X Carbon API to implement GUI. |
| 2346 | if test "${HAVE_CARBON}" = "yes"; then | 2353 | if test "${HAVE_CARBON}" = "yes"; then |
| 2347 | AC_DEFINE(HAVE_CARBON, 1, [Define to 1 if you are using the Carbon API on Mac OS X.]) | 2354 | AC_DEFINE(HAVE_CARBON, 1, [Define to 1 if you are using the Carbon API on Mac OS X.]) |
| 2348 | window_system=mac | ||
| 2349 | ## Specify the install directory | 2355 | ## Specify the install directory |
| 2350 | carbon_appdir= | 2356 | carbon_appdir= |
| 2351 | if test "${carbon_appdir_x}" != ""; then | 2357 | if test "${carbon_appdir_x}" != ""; then |