diff options
| author | Adrian Robert | 2008-07-17 17:44:41 +0000 |
|---|---|---|
| committer | Adrian Robert | 2008-07-17 17:44:41 +0000 |
| commit | 06b627700d30a166b0f06ad99166d448f9f7969c (patch) | |
| tree | 35b0b353bfd71222d337fafae846c1eee23ec1a7 | |
| parent | e5744c66661fd4c5e118c0a9f451835543dcb789 (diff) | |
| download | emacs-06b627700d30a166b0f06ad99166d448f9f7969c.tar.gz emacs-06b627700d30a166b0f06ad99166d448f9f7969c.zip | |
remove need for nextstep/compile for NS build; also, add NEWS entry about the port
| -rw-r--r-- | Makefile.in | 17 | ||||
| -rwxr-xr-x | configure | 102 | ||||
| -rw-r--r-- | configure.in | 53 | ||||
| -rw-r--r-- | etc/ChangeLog | 4 | ||||
| -rw-r--r-- | etc/NEWS | 7 | ||||
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/Makefile.in | 31 |
7 files changed, 144 insertions, 76 deletions
diff --git a/Makefile.in b/Makefile.in index 3d550db8768..c5cd80b9d30 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -169,6 +169,8 @@ carbon_appdir=@carbon_appdir@ | |||
| 169 | 169 | ||
| 170 | # Location to install Emacs.app under NeXT/Open/GNUstep / Cocoa | 170 | # Location to install Emacs.app under NeXT/Open/GNUstep / Cocoa |
| 171 | ns_appdir=@ns_appdir@ | 171 | ns_appdir=@ns_appdir@ |
| 172 | ns_appbindir=@ns_appbindir@ | ||
| 173 | ns_appresdir=@ns_appresdir@ | ||
| 172 | 174 | ||
| 173 | # Where the etc/emacs.desktop file is to be installed. | 175 | # Where the etc/emacs.desktop file is to be installed. |
| 174 | desktopdir=$(datarootdir)/applications | 176 | desktopdir=$(datarootdir)/applications |
| @@ -415,13 +417,14 @@ install-arch-dep: mkdir | |||
| 415 | && cat > /dev/null))) || exit 1; \ | 417 | && cat > /dev/null))) || exit 1; \ |
| 416 | fi | 418 | fi |
| 417 | if test "${ns_appdir}" != ""; then \ | 419 | if test "${ns_appdir}" != ""; then \ |
| 418 | umask 022; mkdir -p ${ns_appdir}/Emacs.app; \ | 420 | ( cd ${ns_appresdir} ; \ |
| 419 | (cd nextstep/build/Emacs.app; (tar -chf - . | \ | 421 | if test -d share/emacs ; then mv -f share/emacs/*/* . ; fi ; \ |
| 420 | (cd ${ns_appdir}/Emacs.app; umask 022; tar -xvf - \ | 422 | if test -d info ; then mv -f share/info . ; fi ; \ |
| 421 | && cat > /dev/null))) || exit 1; \ | 423 | rm -fr share ) ; \ |
| 422 | ( cd site-lisp ; tar chf - . ) | \ | 424 | ( cd ${ns_appbindir}/libexec ; mv -f emacs/*/*/* . ; rm -fr emacs ) ; \ |
| 423 | ( cd ${datadir}/$(EMACSFULL)/site-lisp ; tar xf - ) \ | 425 | ( cd ${ns_appbindir}/bin ; rm -f emacs emacs-23* ; \ |
| 424 | fi | 426 | ln -sf ../libexec/* .) ; \ |
| 427 | else true ; fi | ||
| 425 | 428 | ||
| 426 | ## http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01672.html | 429 | ## http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01672.html |
| 427 | ## Needs to be the user running install, so configure can't set it. | 430 | ## Needs to be the user running install, so configure can't set it. |
| @@ -735,6 +735,9 @@ machfile | |||
| 735 | opsysfile | 735 | opsysfile |
| 736 | carbon_appdir | 736 | carbon_appdir |
| 737 | ns_appdir | 737 | ns_appdir |
| 738 | ns_appbindir | ||
| 739 | ns_appresdir | ||
| 740 | ns_appsrc | ||
| 738 | GNUSTEP_MAKEFILES | 741 | GNUSTEP_MAKEFILES |
| 739 | LTLIBOBJS' | 742 | LTLIBOBJS' |
| 740 | ac_subst_files='' | 743 | ac_subst_files='' |
| @@ -1334,9 +1337,8 @@ Optional Features: | |||
| 1334 | --enable-carbon-app[=DIR] | 1337 | --enable-carbon-app[=DIR] |
| 1335 | specify install directory for Emacs.app on Mac OS X | 1338 | specify install directory for Emacs.app on Mac OS X |
| 1336 | [DIR=/Application] | 1339 | [DIR=/Application] |
| 1337 | --enable-ns-app[=DIR] [DIR=/Applications] | ||
| 1338 | specify install directory for Emacs.app under NS | ||
| 1339 | --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition | 1340 | --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition |
| 1341 | --disable-ns-self-contained disable self contained build under NS | ||
| 1340 | --enable-asserts compile code with asserts enabled | 1342 | --enable-asserts compile code with asserts enabled |
| 1341 | --enable-maintainer-mode | 1343 | --enable-maintainer-mode |
| 1342 | enable make rules and dependencies not useful (and | 1344 | enable make rules and dependencies not useful (and |
| @@ -2169,12 +2171,6 @@ if test "${enable_carbon_app+set}" = set; then | |||
| 2169 | fi | 2171 | fi |
| 2170 | 2172 | ||
| 2171 | 2173 | ||
| 2172 | # Check whether --enable-ns-app was given. | ||
| 2173 | if test "${enable_ns_app+set}" = set; then | ||
| 2174 | enableval=$enable_ns_app; ns_appdir_x=${enableval} | ||
| 2175 | fi | ||
| 2176 | |||
| 2177 | |||
| 2178 | # Check whether --enable-cocoa-experimental-ctrl-g was given. | 2174 | # Check whether --enable-cocoa-experimental-ctrl-g was given. |
| 2179 | if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then | 2175 | if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then |
| 2180 | enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=yes | 2176 | enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=yes |
| @@ -2183,6 +2179,14 @@ else | |||
| 2183 | fi | 2179 | fi |
| 2184 | 2180 | ||
| 2185 | 2181 | ||
| 2182 | # Check whether --enable-ns-self-contained was given. | ||
| 2183 | if test "${enable_ns_self_contained+set}" = set; then | ||
| 2184 | enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=no | ||
| 2185 | else | ||
| 2186 | EN_NS_SELF_CONTAINED=yes | ||
| 2187 | fi | ||
| 2188 | |||
| 2189 | |||
| 2186 | # Check whether --enable-asserts was given. | 2190 | # Check whether --enable-asserts was given. |
| 2187 | if test "${enable_asserts+set}" = set; then | 2191 | if test "${enable_asserts+set}" = set; then |
| 2188 | enableval=$enable_asserts; USE_XASSERTS=$enableval | 2192 | enableval=$enable_asserts; USE_XASSERTS=$enableval |
| @@ -9334,11 +9338,19 @@ CFLAGS="$CFLAGS -x objective-c" | |||
| 9334 | if test "${with_ns}" != no; then | 9338 | if test "${with_ns}" != no; then |
| 9335 | if test "${opsys}" = darwin; then | 9339 | if test "${opsys}" = darwin; then |
| 9336 | NS_IMPL_COCOA=yes | 9340 | NS_IMPL_COCOA=yes |
| 9341 | ns_appdir=`pwd`/nextstep/Emacs.app | ||
| 9342 | ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS | ||
| 9343 | ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources | ||
| 9344 | ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base | ||
| 9337 | elif test -f /etc/GNUstep/GNUstep.conf; then | 9345 | elif test -f /etc/GNUstep/GNUstep.conf; then |
| 9338 | NS_IMPL_GNUSTEP=yes | 9346 | NS_IMPL_GNUSTEP=yes |
| 9347 | ns_appdir=`pwd`/nextstep/Emacs.app | ||
| 9348 | ns_appbindir=`pwd`/nextstep/Emacs.app | ||
| 9349 | ns_appresdir=`pwd`/nextstep/Emacs.app/Resources | ||
| 9350 | ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base | ||
| 9351 | GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_MAKEFILES)" | ||
| 9339 | GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)" | 9352 | GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)" |
| 9340 | GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)" | 9353 | GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)" |
| 9341 | GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)" | ||
| 9342 | CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" | 9354 | CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" |
| 9343 | CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" | 9355 | CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" |
| 9344 | REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" | 9356 | REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" |
| @@ -9480,6 +9492,12 @@ if test "${HAVE_NS}" = yes; then | |||
| 9480 | window_system=nextstep | 9492 | window_system=nextstep |
| 9481 | with_xft=no | 9493 | with_xft=no |
| 9482 | with_freetype=no | 9494 | with_freetype=no |
| 9495 | # set up packaging dirs | ||
| 9496 | exec_prefix=${ns_appbindir} | ||
| 9497 | libexecdir=${ns_appbindir}/libexec | ||
| 9498 | if test "${EN_NS_SELF_CONTAINED}" = yes; then | ||
| 9499 | prefix=${ns_appresdir} | ||
| 9500 | fi | ||
| 9483 | fi | 9501 | fi |
| 9484 | CFLAGS="$tmp_CFLAGS" | 9502 | CFLAGS="$tmp_CFLAGS" |
| 9485 | CPPFLAGS="$tmp_CPPFLAGS" | 9503 | CPPFLAGS="$tmp_CPPFLAGS" |
| @@ -15129,14 +15147,6 @@ cat >>confdefs.h <<\_ACEOF | |||
| 15129 | #define HAVE_NS 1 | 15147 | #define HAVE_NS 1 |
| 15130 | _ACEOF | 15148 | _ACEOF |
| 15131 | 15149 | ||
| 15132 | ## Specify the install directory | ||
| 15133 | ns_appdir= | ||
| 15134 | if test "${ns_appdir_x}" != ""; then | ||
| 15135 | case ${ns_appdir_x} in | ||
| 15136 | y | ye | yes) ns_appdir=/Applications ;; | ||
| 15137 | * ) ns_appdir=${ns_appdir_x} ;; | ||
| 15138 | esac | ||
| 15139 | fi | ||
| 15140 | if test "${NS_IMPL_COCOA}" = "yes"; then | 15150 | if test "${NS_IMPL_COCOA}" = "yes"; then |
| 15141 | 15151 | ||
| 15142 | cat >>confdefs.h <<\_ACEOF | 15152 | cat >>confdefs.h <<\_ACEOF |
| @@ -16907,7 +16917,6 @@ cat >>conftest.$ac_ext <<_ACEOF | |||
| 16907 | # endif | 16917 | # endif |
| 16908 | #endif | 16918 | #endif |
| 16909 | 16919 | ||
| 16910 | #include <limits.h> | ||
| 16911 | #include <stdlib.h> | 16920 | #include <stdlib.h> |
| 16912 | 16921 | ||
| 16913 | #ifdef HAVE_UNISTD_H | 16922 | #ifdef HAVE_UNISTD_H |
| @@ -17056,15 +17065,12 @@ main () | |||
| 17056 | isn't worth using anyway. */ | 17065 | isn't worth using anyway. */ |
| 17057 | alarm (60); | 17066 | alarm (60); |
| 17058 | 17067 | ||
| 17059 | for (;;) | 17068 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) |
| 17060 | { | 17069 | continue; |
| 17061 | t = (time_t_max << 1) + 1; | 17070 | time_t_max--; |
| 17062 | if (t <= time_t_max) | 17071 | if ((time_t) -1 < 0) |
| 17063 | break; | 17072 | for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) |
| 17064 | time_t_max = t; | 17073 | continue; |
| 17065 | } | ||
| 17066 | time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; | ||
| 17067 | |||
| 17068 | delta = time_t_max / 997; /* a suitable prime number */ | 17074 | delta = time_t_max / 997; /* a suitable prime number */ |
| 17069 | for (i = 0; i < N_STRINGS; i++) | 17075 | for (i = 0; i < N_STRINGS; i++) |
| 17070 | { | 17076 | { |
| @@ -17079,12 +17085,10 @@ main () | |||
| 17079 | && mktime_test ((time_t) (60 * 60 * 24)))) | 17085 | && mktime_test ((time_t) (60 * 60 * 24)))) |
| 17080 | return 1; | 17086 | return 1; |
| 17081 | 17087 | ||
| 17082 | for (j = 1; ; j <<= 1) | 17088 | for (j = 1; 0 < j; j *= 2) |
| 17083 | if (! bigtime_test (j)) | 17089 | if (! bigtime_test (j)) |
| 17084 | return 1; | 17090 | return 1; |
| 17085 | else if (INT_MAX / 2 < j) | 17091 | if (! bigtime_test (j - 1)) |
| 17086 | break; | ||
| 17087 | if (! bigtime_test (INT_MAX)) | ||
| 17088 | return 1; | 17092 | return 1; |
| 17089 | } | 17093 | } |
| 17090 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); | 17094 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); |
| @@ -18993,13 +18997,11 @@ _ACEOF | |||
| 18993 | cat confdefs.h >>conftest.$ac_ext | 18997 | cat confdefs.h >>conftest.$ac_ext |
| 18994 | cat >>conftest.$ac_ext <<_ACEOF | 18998 | cat >>conftest.$ac_ext <<_ACEOF |
| 18995 | /* end confdefs.h. */ | 18999 | /* end confdefs.h. */ |
| 18996 | #include <sys/types.h> /* for off_t */ | 19000 | #include <stdio.h> |
| 18997 | #include <stdio.h> | ||
| 18998 | int | 19001 | int |
| 18999 | main () | 19002 | main () |
| 19000 | { | 19003 | { |
| 19001 | int (*fp) (FILE *, off_t, int) = fseeko; | 19004 | return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); |
| 19002 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | ||
| 19003 | ; | 19005 | ; |
| 19004 | return 0; | 19006 | return 0; |
| 19005 | } | 19007 | } |
| @@ -19039,13 +19041,11 @@ cat confdefs.h >>conftest.$ac_ext | |||
| 19039 | cat >>conftest.$ac_ext <<_ACEOF | 19041 | cat >>conftest.$ac_ext <<_ACEOF |
| 19040 | /* end confdefs.h. */ | 19042 | /* end confdefs.h. */ |
| 19041 | #define _LARGEFILE_SOURCE 1 | 19043 | #define _LARGEFILE_SOURCE 1 |
| 19042 | #include <sys/types.h> /* for off_t */ | 19044 | #include <stdio.h> |
| 19043 | #include <stdio.h> | ||
| 19044 | int | 19045 | int |
| 19045 | main () | 19046 | main () |
| 19046 | { | 19047 | { |
| 19047 | int (*fp) (FILE *, off_t, int) = fseeko; | 19048 | return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); |
| 19048 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | ||
| 19049 | ; | 19049 | ; |
| 19050 | return 0; | 19050 | return 0; |
| 19051 | } | 19051 | } |
| @@ -24184,6 +24184,9 @@ fi | |||
| 24184 | 24184 | ||
| 24185 | 24185 | ||
| 24186 | 24186 | ||
| 24187 | |||
| 24188 | |||
| 24189 | |||
| 24187 | cat >>confdefs.h <<_ACEOF | 24190 | cat >>confdefs.h <<_ACEOF |
| 24188 | #define EMACS_CONFIGURATION "${canonical}" | 24191 | #define EMACS_CONFIGURATION "${canonical}" |
| 24189 | _ACEOF | 24192 | _ACEOF |
| @@ -24357,10 +24360,26 @@ if test "$HAVE_CARBON" = "yes"; then | |||
| 24357 | echo | 24360 | echo |
| 24358 | echo "Warning: The Mac Carbon port is currently unsupported and has | 24361 | echo "Warning: The Mac Carbon port is currently unsupported and has |
| 24359 | known problems. It is not recommended for use by non-developers. | 24362 | known problems. It is not recommended for use by non-developers. |
| 24363 | The NeXTstep port (--with-ns) is an alternative. | ||
| 24360 | Read the emacs-devel archives for more information." | 24364 | Read the emacs-devel archives for more information." |
| 24361 | echo | 24365 | echo |
| 24362 | fi | 24366 | fi |
| 24363 | 24367 | ||
| 24368 | if test "$HAVE_NS" = "yes"; then | ||
| 24369 | echo | ||
| 24370 | echo "You must run \"make install\" in order to test the built application. | ||
| 24371 | The installed application will go to nextstep/Emacs.app and can be | ||
| 24372 | run or moved from there." | ||
| 24373 | if test "$EN_NS_SELF_CONTAINED" = "yes"; then | ||
| 24374 | echo "The application will be fully self-contained." | ||
| 24375 | else | ||
| 24376 | echo "The lisp resources for the application will be installed under ${prefix}. | ||
| 24377 | You may need to run \"make install\" with sudo. The application will fail | ||
| 24378 | to run if these resources are not installed." | ||
| 24379 | fi | ||
| 24380 | echo | ||
| 24381 | fi | ||
| 24382 | |||
| 24364 | if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then | 24383 | if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then |
| 24365 | echo "D-Bus integration has been tested for GNU/Linux only." | 24384 | echo "D-Bus integration has been tested for GNU/Linux only." |
| 24366 | echo | 24385 | echo |
| @@ -25206,11 +25225,14 @@ machfile!$machfile$ac_delim | |||
| 25206 | opsysfile!$opsysfile$ac_delim | 25225 | opsysfile!$opsysfile$ac_delim |
| 25207 | carbon_appdir!$carbon_appdir$ac_delim | 25226 | carbon_appdir!$carbon_appdir$ac_delim |
| 25208 | ns_appdir!$ns_appdir$ac_delim | 25227 | ns_appdir!$ns_appdir$ac_delim |
| 25228 | ns_appbindir!$ns_appbindir$ac_delim | ||
| 25229 | ns_appresdir!$ns_appresdir$ac_delim | ||
| 25230 | ns_appsrc!$ns_appsrc$ac_delim | ||
| 25209 | GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim | 25231 | GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim |
| 25210 | LTLIBOBJS!$LTLIBOBJS$ac_delim | 25232 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 25211 | _ACEOF | 25233 | _ACEOF |
| 25212 | 25234 | ||
| 25213 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then | 25235 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then |
| 25214 | break | 25236 | break |
| 25215 | elif $ac_last_try; then | 25237 | elif $ac_last_try; then |
| 25216 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 25238 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
diff --git a/configure.in b/configure.in index b42b3472421..bce269b5294 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -176,16 +176,16 @@ AC_ARG_ENABLE(carbon-app, | |||
| 176 | [DIR=/Application]])], | 176 | [DIR=/Application]])], |
| 177 | [ carbon_appdir_x=${enableval}]) | 177 | [ carbon_appdir_x=${enableval}]) |
| 178 | 178 | ||
| 179 | AC_ARG_ENABLE(ns-app, | ||
| 180 | [[ --enable-ns-app[=DIR] [DIR=/Applications] | ||
| 181 | specify install directory for Emacs.app under NS]], | ||
| 182 | [ ns_appdir_x=${enableval}]) | ||
| 183 | |||
| 184 | AC_ARG_ENABLE(cocoa-experimental-ctrl-g, | 179 | AC_ARG_ENABLE(cocoa-experimental-ctrl-g, |
| 185 | [ --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition], | 180 | [ --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition], |
| 186 | EN_COCOA_EXPERIMENTAL_CTRL_G=yes, | 181 | EN_COCOA_EXPERIMENTAL_CTRL_G=yes, |
| 187 | EN_COCOA_EXPERIMENTAL_CTRL_G=no) | 182 | EN_COCOA_EXPERIMENTAL_CTRL_G=no) |
| 188 | 183 | ||
| 184 | AC_ARG_ENABLE(ns-self-contained, | ||
| 185 | [ --disable-ns-self-contained disable self contained build under NS], | ||
| 186 | EN_NS_SELF_CONTAINED=no, | ||
| 187 | EN_NS_SELF_CONTAINED=yes) | ||
| 188 | |||
| 189 | AC_ARG_ENABLE(asserts, | 189 | AC_ARG_ENABLE(asserts, |
| 190 | [AS_HELP_STRING([--enable-asserts], [compile code with asserts enabled])], | 190 | [AS_HELP_STRING([--enable-asserts], [compile code with asserts enabled])], |
| 191 | USE_XASSERTS=$enableval, | 191 | USE_XASSERTS=$enableval, |
| @@ -1230,11 +1230,19 @@ CFLAGS="$CFLAGS -x objective-c" | |||
| 1230 | if test "${with_ns}" != no; then | 1230 | if test "${with_ns}" != no; then |
| 1231 | if test "${opsys}" = darwin; then | 1231 | if test "${opsys}" = darwin; then |
| 1232 | NS_IMPL_COCOA=yes | 1232 | NS_IMPL_COCOA=yes |
| 1233 | ns_appdir=`pwd`/nextstep/Emacs.app | ||
| 1234 | ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS | ||
| 1235 | ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources | ||
| 1236 | ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base | ||
| 1233 | elif test -f /etc/GNUstep/GNUstep.conf; then | 1237 | elif test -f /etc/GNUstep/GNUstep.conf; then |
| 1234 | NS_IMPL_GNUSTEP=yes | 1238 | NS_IMPL_GNUSTEP=yes |
| 1239 | ns_appdir=`pwd`/nextstep/Emacs.app | ||
| 1240 | ns_appbindir=`pwd`/nextstep/Emacs.app | ||
| 1241 | ns_appresdir=`pwd`/nextstep/Emacs.app/Resources | ||
| 1242 | ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base | ||
| 1243 | GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_MAKEFILES)" | ||
| 1235 | GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)" | 1244 | GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)" |
| 1236 | GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)" | 1245 | GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)" |
| 1237 | GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)" | ||
| 1238 | CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" | 1246 | CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" |
| 1239 | CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" | 1247 | CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" |
| 1240 | REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" | 1248 | REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" |
| @@ -1247,6 +1255,12 @@ if test "${HAVE_NS}" = yes; then | |||
| 1247 | window_system=nextstep | 1255 | window_system=nextstep |
| 1248 | with_xft=no | 1256 | with_xft=no |
| 1249 | with_freetype=no | 1257 | with_freetype=no |
| 1258 | # set up packaging dirs | ||
| 1259 | exec_prefix=${ns_appbindir} | ||
| 1260 | libexecdir=${ns_appbindir}/libexec | ||
| 1261 | if test "${EN_NS_SELF_CONTAINED}" = yes; then | ||
| 1262 | prefix=${ns_appresdir} | ||
| 1263 | fi | ||
| 1250 | fi | 1264 | fi |
| 1251 | CFLAGS="$tmp_CFLAGS" | 1265 | CFLAGS="$tmp_CFLAGS" |
| 1252 | CPPFLAGS="$tmp_CPPFLAGS" | 1266 | CPPFLAGS="$tmp_CPPFLAGS" |
| @@ -2055,14 +2069,6 @@ fi | |||
| 2055 | ### Use NeXTstep API to implement GUI. | 2069 | ### Use NeXTstep API to implement GUI. |
| 2056 | if test "${HAVE_NS}" = "yes"; then | 2070 | if test "${HAVE_NS}" = "yes"; then |
| 2057 | AC_DEFINE(HAVE_NS, 1, [Define to 1 if you are using the NeXTstep API, either GNUstep or Cocoa on Mac OS X.]) | 2071 | AC_DEFINE(HAVE_NS, 1, [Define to 1 if you are using the NeXTstep API, either GNUstep or Cocoa on Mac OS X.]) |
| 2058 | ## Specify the install directory | ||
| 2059 | ns_appdir= | ||
| 2060 | if test "${ns_appdir_x}" != ""; then | ||
| 2061 | case ${ns_appdir_x} in | ||
| 2062 | y | ye | yes) ns_appdir=/Applications ;; | ||
| 2063 | * ) ns_appdir=${ns_appdir_x} ;; | ||
| 2064 | esac | ||
| 2065 | fi | ||
| 2066 | if test "${NS_IMPL_COCOA}" = "yes"; then | 2072 | if test "${NS_IMPL_COCOA}" = "yes"; then |
| 2067 | AC_DEFINE(NS_IMPL_COCOA, 1, [Define to 1 if you are using NS windowing under MacOS X.]) | 2073 | AC_DEFINE(NS_IMPL_COCOA, 1, [Define to 1 if you are using NS windowing under MacOS X.]) |
| 2068 | fi | 2074 | fi |
| @@ -2472,6 +2478,9 @@ AC_SUBST(opsysfile) | |||
| 2472 | AC_SUBST(GETLOADAVG_LIBS) | 2478 | AC_SUBST(GETLOADAVG_LIBS) |
| 2473 | AC_SUBST(carbon_appdir) | 2479 | AC_SUBST(carbon_appdir) |
| 2474 | AC_SUBST(ns_appdir) | 2480 | AC_SUBST(ns_appdir) |
| 2481 | AC_SUBST(ns_appbindir) | ||
| 2482 | AC_SUBST(ns_appresdir) | ||
| 2483 | AC_SUBST(ns_appsrc) | ||
| 2475 | AC_SUBST(GNUSTEP_MAKEFILES) | 2484 | AC_SUBST(GNUSTEP_MAKEFILES) |
| 2476 | 2485 | ||
| 2477 | AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "${canonical}", | 2486 | AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "${canonical}", |
| @@ -2903,10 +2912,26 @@ if test "$HAVE_CARBON" = "yes"; then | |||
| 2903 | echo | 2912 | echo |
| 2904 | echo "Warning: The Mac Carbon port is currently unsupported and has | 2913 | echo "Warning: The Mac Carbon port is currently unsupported and has |
| 2905 | known problems. It is not recommended for use by non-developers. | 2914 | known problems. It is not recommended for use by non-developers. |
| 2915 | The NeXTstep port (--with-ns) is an alternative. | ||
| 2906 | Read the emacs-devel archives for more information." | 2916 | Read the emacs-devel archives for more information." |
| 2907 | echo | 2917 | echo |
| 2908 | fi | 2918 | fi |
| 2909 | 2919 | ||
| 2920 | if test "$HAVE_NS" = "yes"; then | ||
| 2921 | echo | ||
| 2922 | echo "You must run \"make install\" in order to test the built application. | ||
| 2923 | The installed application will go to nextstep/Emacs.app and can be | ||
| 2924 | run or moved from there." | ||
| 2925 | if test "$EN_NS_SELF_CONTAINED" = "yes"; then | ||
| 2926 | echo "The application will be fully self-contained." | ||
| 2927 | else | ||
| 2928 | echo "The lisp resources for the application will be installed under ${prefix}. | ||
| 2929 | You may need to run \"make install\" with sudo. The application will fail | ||
| 2930 | to run if these resources are not installed." | ||
| 2931 | fi | ||
| 2932 | echo | ||
| 2933 | fi | ||
| 2934 | |||
| 2910 | if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then | 2935 | if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then |
| 2911 | echo "D-Bus integration has been tested for GNU/Linux only." | 2936 | echo "D-Bus integration has been tested for GNU/Linux only." |
| 2912 | echo | 2937 | echo |
diff --git a/etc/ChangeLog b/etc/ChangeLog index f840769a9df..e708756dc3f 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com> | ||
| 2 | |||
| 3 | * NEWS: Add entry about NS port. | ||
| 4 | |||
| 1 | 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com> | 5 | 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com> |
| 2 | 6 | ||
| 3 | * Emacs.clr: New file, add support for X color names to NS display | 7 | * Emacs.clr: New file, add support for X color names to NS display |
| @@ -83,6 +83,13 @@ The Emacs 22 icon is available as `emacs22.png' in the same location. | |||
| 83 | 83 | ||
| 84 | * Changes in Emacs 23.1 | 84 | * Changes in Emacs 23.1 |
| 85 | 85 | ||
| 86 | ** Emacs can now be built under the Cocoa libraries on Mac OS X and GNUstep | ||
| 87 | libraries on other machines. Specify --with-ns to configure for this. By | ||
| 88 | default a self-contained app will be built (containing all lisp). To | ||
| 89 | install/share lisp with other emacsen (e.g. X11 build) use | ||
| 90 | --disable-ns-self-contained. Use 'info-ns-emacs' or first entry under Help | ||
| 91 | menu when running for more information. | ||
| 92 | |||
| 86 | ** `where-is-preferred-modifier' can specify your favorite modifier. | 93 | ** `where-is-preferred-modifier' can specify your favorite modifier. |
| 87 | 94 | ||
| 88 | ** Improved X Window System support | 95 | ** Improved X Window System support |
diff --git a/src/ChangeLog b/src/ChangeLog index e540db8d607..63495ca08fc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com> | ||
| 2 | |||
| 3 | * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables | ||
| 4 | set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set | ||
| 5 | from configure. | ||
| 6 | |||
| 1 | 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu> | 7 | 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 8 | ||
| 3 | * s/sol2.h: | 9 | * s/sol2.h: |
diff --git a/src/Makefile.in b/src/Makefile.in index cba9dffddc8..93890de5669 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -532,17 +532,13 @@ emacsappsrc = ${srcdir}/../mac/Emacs.app/ | |||
| 532 | #endif | 532 | #endif |
| 533 | 533 | ||
| 534 | #ifdef HAVE_NS | 534 | #ifdef HAVE_NS |
| 535 | ns_appdir=@ns_appdir@/ | ||
| 536 | ns_appbindir=@ns_appbindir@/ | ||
| 537 | ns_appresdir=@ns_appresdir@/ | ||
| 538 | ns_appsrc=@ns_appsrc@ | ||
| 535 | /* Object files for NeXTstep */ | 539 | /* Object files for NeXTstep */ |
| 536 | NS_OBJ= nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o \ | 540 | NS_OBJ= nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o \ |
| 537 | fontset.o fringe.o image.o | 541 | fontset.o fringe.o image.o |
| 538 | emacsapp = $(PWD)/../nextstep/build/Emacs.app/ | ||
| 539 | #ifdef NS_IMPL_GNUSTEP | ||
| 540 | emacsappsrc = ${srcdir}/../nextstep/GNUstep/Emacs.base | ||
| 541 | emacsbindir = $(emacsapp) | ||
| 542 | #else | ||
| 543 | emacsappsrc = ${srcdir}/../nextstep/Cocoa/Emacs.base | ||
| 544 | emacsbindir = $(emacsapp)/Contents/MacOS/ | ||
| 545 | #endif /* NS_IMPL_GNUSTEP */ | ||
| 546 | #endif /* HAVE_NS */ | 542 | #endif /* HAVE_NS */ |
| 547 | 543 | ||
| 548 | #ifdef HAVE_WINDOW_SYSTEM | 544 | #ifdef HAVE_WINDOW_SYSTEM |
| @@ -1336,15 +1332,20 @@ nsselect.o: nsselect.m blockinput.h nsterm.h nsgui.h frame.h $(config_h) | |||
| 1336 | nsimage.o: nsimage.m nsterm.h | 1332 | nsimage.o: nsimage.m nsterm.h |
| 1337 | nsfont.o: nsterm.h dispextern.h frame.h lisp.h $(config_h) | 1333 | nsfont.o: nsterm.h dispextern.h frame.h lisp.h $(config_h) |
| 1338 | 1334 | ||
| 1339 | ${emacsapp}: ${emacsappsrc} | 1335 | ${ns_appdir}: ${ns_appsrc} |
| 1340 | mkdir -p ${emacsapp} | 1336 | rm -fr ${ns_appdir} |
| 1341 | ( cd ${emacsappsrc} ; tar cfh - . ) | ( cd ${emacsapp} ; tar xf - ) | 1337 | mkdir -p ${ns_appdir} |
| 1338 | ( cd ${ns_appsrc} ; tar cfh - . ) | ( cd ${ns_appdir} ; tar xf - ) | ||
| 1339 | ( cd ${ns_appdir} ; for subdir in `find $${dest} -type d ! -name CVS -print` ; do \ | ||
| 1340 | chmod a+rx $${subdir} ; \ | ||
| 1341 | rm -rf $${subdir}/CVS ; \ | ||
| 1342 | rm -f $${subdir}/.cvsignore ; done ; ) | ||
| 1342 | 1343 | ||
| 1343 | ${emacsbindir}Emacs: emacs${EXEEXT} | 1344 | ${ns_appbindir}Emacs: emacs${EXEEXT} |
| 1344 | mkdir -p ${emacsbindir} | 1345 | mkdir -p ${ns_appbindir} |
| 1345 | cp -f emacs${EXEEXT} ${emacsbindir}Emacs | 1346 | cp -f emacs${EXEEXT} ${ns_appbindir}Emacs |
| 1346 | 1347 | ||
| 1347 | ns-app: ${emacsapp} ${emacsbindir}Emacs | 1348 | ns-app: ${ns_appdir} ${ns_appbindir}Emacs |
| 1348 | 1349 | ||
| 1349 | #endif /* HAVE_NS */ | 1350 | #endif /* HAVE_NS */ |
| 1350 | 1351 | ||