aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-04-27 23:54:25 -0700
committerGlenn Morris2010-04-27 23:54:25 -0700
commite6ec4e99210e02fddacec7ec9badc48f5db08272 (patch)
treeed3cc805b17863fe98243cc5bfc3e9ded300d60b
parentf1e3642ad5b3ee400bc02af40509b6b011d92567 (diff)
downloademacs-e6ec4e99210e02fddacec7ec9badc48f5db08272.tar.gz
emacs-e6ec4e99210e02fddacec7ec9badc48f5db08272.zip
Move NS_OBJ, NS_SUPPORT from cpp to configure.
* configure.in (NS_OBJ, NS_SUPPORT): New output variables. * src/Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
-rw-r--r--ChangeLog2
-rw-r--r--configure.in7
-rw-r--r--src/ChangeLog2
-rw-r--r--src/Makefile.in15
4 files changed, 15 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index ddd52e9724d..cb0100cd488 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
12010-04-28 Glenn Morris <rgm@gnu.org> 12010-04-28 Glenn Morris <rgm@gnu.org>
2 2
3 * configure.in (NS_OBJ, NS_SUPPORT): New output variables.
4
3 * configure.in (machine, canonical): On amdx86-64, check for a 32-bit 5 * configure.in (machine, canonical): On amdx86-64, check for a 32-bit
4 userland and maybe change values to i386 (move test from s/amdx86-64.h). 6 userland and maybe change values to i386 (move test from s/amdx86-64.h).
5 7
diff --git a/configure.in b/configure.in
index 6233b7fe730..f7e03df4cdb 100644
--- a/configure.in
+++ b/configure.in
@@ -1404,6 +1404,9 @@ if test "${with_ns}" != no; then
1404 NS_HAVE_NSINTEGER=no 1404 NS_HAVE_NSINTEGER=no
1405 fi 1405 fi
1406fi 1406fi
1407
1408NS_OBJ=
1409NS_SUPPORT=
1407if test "${HAVE_NS}" = yes; then 1410if test "${HAVE_NS}" = yes; then
1408 window_system=nextstep 1411 window_system=nextstep
1409 with_xft=no 1412 with_xft=no
@@ -1413,9 +1416,13 @@ if test "${HAVE_NS}" = yes; then
1413 if test "${EN_NS_SELF_CONTAINED}" = yes; then 1416 if test "${EN_NS_SELF_CONTAINED}" = yes; then
1414 prefix=${ns_appresdir} 1417 prefix=${ns_appresdir}
1415 fi 1418 fi
1419 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
1420 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
1416fi 1421fi
1417CFLAGS="$tmp_CFLAGS" 1422CFLAGS="$tmp_CFLAGS"
1418CPPFLAGS="$tmp_CPPFLAGS" 1423CPPFLAGS="$tmp_CPPFLAGS"
1424AC_SUBST(NS_OBJ)
1425AC_SUBST(NS_SUPPORT)
1419 1426
1420case "${window_system}" in 1427case "${window_system}" in
1421 x11 ) 1428 x11 )
diff --git a/src/ChangeLog b/src/ChangeLog
index 041ea278974..283507680de 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12010-04-28 Glenn Morris <rgm@gnu.org> 12010-04-28 Glenn Morris <rgm@gnu.org>
2 2
3 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4
3 * m/amdx86-64.h [i386]: Move this test to configure.in. 5 * m/amdx86-64.h [i386]: Move this test to configure.in.
4 6
52010-04-27 Glenn Morris <rgm@gnu.org> 72010-04-27 Glenn Morris <rgm@gnu.org>
diff --git a/src/Makefile.in b/src/Makefile.in
index 9e505741524..15cb6fed79c 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -104,6 +104,9 @@ RSVG_CFLAGS= @RSVG_CFLAGS@
104## widget.o if USE_X_TOOLKIT, otherwise empty. 104## widget.o if USE_X_TOOLKIT, otherwise empty.
105WIDGET_OBJ=@WIDGET_OBJ@ 105WIDGET_OBJ=@WIDGET_OBJ@
106 106
107NS_OBJ=@NS_OBJ@
108NS_SUPPORT=@NS_SUPPORT@
109
107LIBSELINUX_LIBS = @LIBSELINUX_LIBS@ 110LIBSELINUX_LIBS = @LIBSELINUX_LIBS@
108 111
109INTERVALS_H = dispextern.h intervals.h composite.h 112INTERVALS_H = dispextern.h intervals.h composite.h
@@ -369,9 +372,6 @@ ns_appdir=@ns_appdir@/
369ns_appbindir=@ns_appbindir@/ 372ns_appbindir=@ns_appbindir@/
370ns_appresdir=@ns_appresdir@/ 373ns_appresdir=@ns_appresdir@/
371ns_appsrc=@ns_appsrc@ 374ns_appsrc=@ns_appsrc@
372/* Object files for NeXTstep */
373NS_OBJ= nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o \
374 fontset.o fringe.o image.o
375#endif /* HAVE_NS */ 375#endif /* HAVE_NS */
376 376
377#ifdef HAVE_WINDOW_SYSTEM 377#ifdef HAVE_WINDOW_SYSTEM
@@ -504,13 +504,6 @@ otherobj= $(termcapobj) lastfile.o $(mallocobj) $(WIDGET_OBJ) $(LIBOBJS)
504#define TOOLTIP_SUPPORT 504#define TOOLTIP_SUPPORT
505#endif 505#endif
506 506
507#ifdef HAVE_NS
508#define NS_SUPPORT ${lispsource}emacs-lisp/easymenu.elc \
509 ${lispsource}term/ns-win.elc
510#else
511#define NS_SUPPORT
512#endif
513
514/* This is the platform-specific list of Lisp files loaded into the 507/* This is the platform-specific list of Lisp files loaded into the
515 dumped Emacs. It is arranged like this because it is easier to generate 508 dumped Emacs. It is arranged like this because it is easier to generate
516 it semi-mechanically from loadup.el this way. 509 it semi-mechanically from loadup.el this way.
@@ -611,7 +604,7 @@ lisp= \
611 MSDOS_SUPPORT \ 604 MSDOS_SUPPORT \
612 WINNT_SUPPORT \ 605 WINNT_SUPPORT \
613 WINDOW_SUPPORT \ 606 WINDOW_SUPPORT \
614 NS_SUPPORT \ 607 ${NS_SUPPORT} \
615 ${lispsource}widget.elc \ 608 ${lispsource}widget.elc \
616 ${lispsource}window.elc \ 609 ${lispsource}window.elc \
617 ${lispsource}version.el 610 ${lispsource}version.el