diff options
| author | Steven Tamm | 2003-01-07 05:46:31 +0000 |
|---|---|---|
| committer | Steven Tamm | 2003-01-07 05:46:31 +0000 |
| commit | 52cd7d02cc68d7dccc2d98be9f0f0fa70c083668 (patch) | |
| tree | 2fbb43158aceb5664b96e62267afb4876d1e490c | |
| parent | ca2135af191408b1d7a7039f21ed9c931edc5250 (diff) | |
| download | emacs-52cd7d02cc68d7dccc2d98be9f0f0fa70c083668.tar.gz emacs-52cd7d02cc68d7dccc2d98be9f0f0fa70c083668.zip | |
* configure.in: New option, --enable-carbon-app, to specify
that the application should be installed
* Makefile.in (install-arch-dep): On Mac OS X, install the
Emacs.app application if carbon-app is enabled
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | Makefile.in | 9 | ||||
| -rw-r--r-- | configure.in | 14 |
3 files changed, 30 insertions, 0 deletions
| @@ -1,3 +1,10 @@ | |||
| 1 | 2003-01-07 Steven Tamm <steventamm@mac.com> | ||
| 2 | |||
| 3 | * configure.in: New option, --enable-carbon-app, to specify | ||
| 4 | that the application should be installed | ||
| 5 | * Makefile.in (install-arch-dep): On Mac OS X, install the | ||
| 6 | Emacs.app application if carbon-app is enabled | ||
| 7 | |||
| 1 | 2003-01-06 Dave Love <fx@gnu.org> | 8 | 2003-01-06 Dave Love <fx@gnu.org> |
| 2 | 9 | ||
| 3 | * configure.in: Check for nl_langinfo. | 10 | * configure.in: Check for nl_langinfo. |
diff --git a/Makefile.in b/Makefile.in index 99671ad8a7e..85f2425c81f 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -141,6 +141,9 @@ VPATH=@srcdir@ | |||
| 141 | # Where to find the application default. | 141 | # Where to find the application default. |
| 142 | x_default_search_path=@x_default_search_path@ | 142 | x_default_search_path=@x_default_search_path@ |
| 143 | 143 | ||
| 144 | # Location to install Emacs.app on Mac OS X | ||
| 145 | carbon_appdir=@carbon_appdir@ | ||
| 146 | |||
| 144 | # ==================== Emacs-specific directories ==================== | 147 | # ==================== Emacs-specific directories ==================== |
| 145 | 148 | ||
| 146 | # These variables hold the values Emacs will actually use. They are | 149 | # These variables hold the values Emacs will actually use. They are |
| @@ -365,6 +368,12 @@ install-arch-dep: mkdir | |||
| 365 | ${INSTALL_DATA} lib-src/$$f ${archlibdir}/$$f; \ | 368 | ${INSTALL_DATA} lib-src/$$f ${archlibdir}/$$f; \ |
| 366 | else true; fi ; \ | 369 | else true; fi ; \ |
| 367 | done | 370 | done |
| 371 | if test "${carbon_appdir}" != ""; then \ | ||
| 372 | umask 022; mkdir -p ${carbon_appdir}/Emacs.app; \ | ||
| 373 | (cd mac/Emacs.app; tar -chf - . ) | \ | ||
| 374 | (cd ${carbon_appdir}/Emacs.app; umask 022; tar -xvf - \ | ||
| 375 | && cat > /dev/null) || exit 1; \ | ||
| 376 | fi | ||
| 368 | 377 | ||
| 369 | ### Install the files that are machine-independent. | 378 | ### Install the files that are machine-independent. |
| 370 | ### Most of them come straight from the distribution; | 379 | ### Most of them come straight from the distribution; |
diff --git a/configure.in b/configure.in index e77e1299c52..24f2b5908ad 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -114,6 +114,10 @@ AC_ARG_WITH(xim, | |||
| 114 | [ --without-xim don't use X11 XIM]) | 114 | [ --without-xim don't use X11 XIM]) |
| 115 | AC_ARG_WITH(carbon, | 115 | AC_ARG_WITH(carbon, |
| 116 | [ --without-carbon don't use Carbon GUI on Mac OS X]) | 116 | [ --without-carbon don't use Carbon GUI on Mac OS X]) |
| 117 | AC_ARG_ENABLE(carbon-app, | ||
| 118 | [[ --enable-carbon-app[=DIR] [DIR=/Application] | ||
| 119 | specify install directory for Emacs.app on Mac OS X]], | ||
| 120 | [ carbon_appdir_x=${enableval}]) | ||
| 117 | 121 | ||
| 118 | #### Make srcdir absolute, if it isn't already. It's important to | 122 | #### Make srcdir absolute, if it isn't already. It's important to |
| 119 | #### avoid running the path through pwd unnecessarily, since pwd can | 123 | #### avoid running the path through pwd unnecessarily, since pwd can |
| @@ -2030,6 +2034,15 @@ fi | |||
| 2030 | 2034 | ||
| 2031 | if test "${HAVE_CARBON}" = "yes"; then | 2035 | if test "${HAVE_CARBON}" = "yes"; then |
| 2032 | AC_DEFINE(HAVE_CARBON, 1, [Define to 1 if you are using the Carbon API on Mac OS X.]) | 2036 | AC_DEFINE(HAVE_CARBON, 1, [Define to 1 if you are using the Carbon API on Mac OS X.]) |
| 2037 | window_system=mac | ||
| 2038 | ## Specify the install directory | ||
| 2039 | carbon_appdir= | ||
| 2040 | if test "${carbon_appdir_x}" != ""; then | ||
| 2041 | case ${carbon_appdir_x} in | ||
| 2042 | y | ye | yes) carbon_appdir=/Applications ;; | ||
| 2043 | * ) carbon_appdir=${carbon_appdir_x} ;; | ||
| 2044 | esac | ||
| 2045 | fi | ||
| 2033 | fi | 2046 | fi |
| 2034 | 2047 | ||
| 2035 | ### Use session management (-lSM -lICE) if available | 2048 | ### Use session management (-lSM -lICE) if available |
| @@ -2395,6 +2408,7 @@ AC_SUBST(X_TOOLKIT_TYPE) | |||
| 2395 | AC_SUBST(machfile) | 2408 | AC_SUBST(machfile) |
| 2396 | AC_SUBST(opsysfile) | 2409 | AC_SUBST(opsysfile) |
| 2397 | AC_SUBST(GETLOADAVG_LIBS) | 2410 | AC_SUBST(GETLOADAVG_LIBS) |
| 2411 | AC_SUBST(carbon_appdir) | ||
| 2398 | 2412 | ||
| 2399 | AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "${canonical}", | 2413 | AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "${canonical}", |
| 2400 | [Define to the canonical Emacs configuration name.]) | 2414 | [Define to the canonical Emacs configuration name.]) |