aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-04-27 00:02:12 -0700
committerGlenn Morris2010-04-27 00:02:12 -0700
commitc6ea2936cc41ada03967fc7b89c49b012e44aceb (patch)
tree3be1a4c350b1d0e7e7b69d9b524478513e6361c1
parent7dd7fbb97528d964a25566a55b590a5a5774809b (diff)
downloademacs-c6ea2936cc41ada03967fc7b89c49b012e44aceb.tar.gz
emacs-c6ea2936cc41ada03967fc7b89c49b012e44aceb.zip
Move MOTIF_LIBW to autoconf.
* configure.in (HAVE_MOTIF_2_1): Remove unused variable. (LIBXP): No longer substitute in Makefiles. (MOTIF_LIBW): New output variable. Move system-specific settings here from src/s files. * src/Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW. (MOTIF_LIBW): Set with configure, not cpp. * s/aix4-2.h (LIB_MOTIF): * s/gnu-linux.h (LIB_MOTIF): * s/unixware.h (LIB_MOTIF): Move to configure.in. * admin/CPP-DEFINES: Remove LIB_MOTIF.
-rw-r--r--ChangeLog7
-rw-r--r--admin/CPP-DEFINES1
-rw-r--r--configure.in23
-rw-r--r--src/ChangeLog8
-rw-r--r--src/Makefile.in7
-rw-r--r--src/s/aix4-2.h5
-rw-r--r--src/s/gnu-linux.h3
-rw-r--r--src/s/unixware.h8
8 files changed, 38 insertions, 24 deletions
diff --git a/ChangeLog b/ChangeLog
index 8926df34ad6..c9f1d0a5408 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
12010-04-27 Glenn Morris <rgm@gnu.org>
2
3 * configure.in (HAVE_MOTIF_2_1): Remove unused variable.
4 (LIBXP): No longer substitute in Makefiles.
5 (MOTIF_LIBW): New output variable. Move system-specific settings here
6 from src/s files.
7
12010-04-27 Dan Nicolaescu <dann@ics.uci.edu> 82010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2 9
3 Reduce CPP usage. 10 Reduce CPP usage.
diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES
index 1e9085354c1..32febaf8e35 100644
--- a/admin/CPP-DEFINES
+++ b/admin/CPP-DEFINES
@@ -235,7 +235,6 @@ LIBS_TERMCAP
235LIBXMU 235LIBXMU
236LIB_GCC 236LIB_GCC
237LIB_MATH 237LIB_MATH
238LIB_MOTIF
239LIB_STANDARD 238LIB_STANDARD
240LINKER 239LINKER
241LINUX_VERSION_CODE 240LINUX_VERSION_CODE
diff --git a/configure.in b/configure.in
index d4806195f18..aab5f6d300b 100644
--- a/configure.in
+++ b/configure.in
@@ -1880,7 +1880,6 @@ int x = 5;
1880Motif version prior to 2.1. 1880Motif version prior to 2.1.
1881#endif], 1881#endif],
1882 emacs_cv_motif_version_2_1=yes, emacs_cv_motif_version_2_1=no)]) 1882 emacs_cv_motif_version_2_1=yes, emacs_cv_motif_version_2_1=no)])
1883 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
1884 if test $emacs_cv_motif_version_2_1 = yes; then 1883 if test $emacs_cv_motif_version_2_1 = yes; then
1885 AC_CHECK_LIB(Xp, XpCreateContext, LIBXP=-lXp) 1884 AC_CHECK_LIB(Xp, XpCreateContext, LIBXP=-lXp)
1886 else 1885 else
@@ -1909,7 +1908,6 @@ Motif version prior to 2.1.
1909 fi 1908 fi
1910 fi 1909 fi
1911fi 1910fi
1912AC_SUBST(LIBXP)
1913 1911
1914dnl Use toolkit scroll bars if configured for GTK or X toolkit and either 1912dnl Use toolkit scroll bars if configured for GTK or X toolkit and either
1915dnl using Motif or Xaw3d is available, and unless 1913dnl using Motif or Xaw3d is available, and unless
@@ -2820,6 +2818,7 @@ AC_SUBST(XMENU_OBJ)
2820AC_SUBST(XOBJ) 2818AC_SUBST(XOBJ)
2821 2819
2822WIDGET_OBJ= 2820WIDGET_OBJ=
2821MOTIF_LIBW=
2823if test "${USE_X_TOOLKIT}" != "none" ; then 2822if test "${USE_X_TOOLKIT}" != "none" ; then
2824 WIDGET_OBJ=widget.o 2823 WIDGET_OBJ=widget.o
2825 AC_DEFINE(USE_X_TOOLKIT, 1, [Define to 1 if using an X toolkit.]) 2824 AC_DEFINE(USE_X_TOOLKIT, 1, [Define to 1 if using an X toolkit.])
@@ -2827,9 +2826,29 @@ if test "${USE_X_TOOLKIT}" != "none" ; then
2827 AC_DEFINE(USE_LUCID, 1, [Define to 1 if using the Lucid X toolkit.]) 2826 AC_DEFINE(USE_LUCID, 1, [Define to 1 if using the Lucid X toolkit.])
2828 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then 2827 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
2829 AC_DEFINE(USE_MOTIF, 1, [Define to 1 if using the Motif X toolkit.]) 2828 AC_DEFINE(USE_MOTIF, 1, [Define to 1 if using the Motif X toolkit.])
2829 MOTIF_LIBW=-lXm
2830 case "$opsys" in
2831 gnu-linux)
2832 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
2833 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
2834 ;;
2835
2836 unixware)
2837 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
2838 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
2839 MOTIF_LIBW="MOTIF_LIBW -lXimp"
2840 ;;
2841
2842 aix4-2)
2843 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
2844 MOTIF_LIBW="$MOTIF_LIBW -li18n"
2845 ;;
2846 esac
2847 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
2830 fi 2848 fi
2831fi 2849fi
2832AC_SUBST(WIDGET_OBJ) 2850AC_SUBST(WIDGET_OBJ)
2851AC_SUBST(MOTIF_LIBW)
2833if test "${HAVE_X11}" = "yes" ; then 2852if test "${HAVE_X11}" = "yes" ; then
2834 AC_DEFINE(HAVE_X11, 1, 2853 AC_DEFINE(HAVE_X11, 1,
2835 [Define to 1 if you want to use version 11 of X windows. 2854 [Define to 1 if you want to use version 11 of X windows.
diff --git a/src/ChangeLog b/src/ChangeLog
index 53d11c87a63..41d0fb414f7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12010-04-27 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4 (MOTIF_LIBW): Set with configure, not cpp.
5 * s/aix4-2.h (LIB_MOTIF):
6 * s/gnu-linux.h (LIB_MOTIF):
7 * s/unixware.h (LIB_MOTIF): Move to configure.in.
8
12010-04-27 Dan Nicolaescu <dann@ics.uci.edu> 92010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2 10
3 Reduce CPP usage. 11 Reduce CPP usage.
diff --git a/src/Makefile.in b/src/Makefile.in
index e1933a37388..5b4426686d0 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -86,13 +86,13 @@ GCONF_LIBS = @GCONF_LIBS@
86 86
87GTK_OBJ=@GTK_OBJ@ 87GTK_OBJ=@GTK_OBJ@
88 88
89LIBXP=@LIBXP@
90LIBXSM=@LIBXSM@ 89LIBXSM=@LIBXSM@
91 90
92XMENU_OBJ=@XMENU_OBJ@ 91XMENU_OBJ=@XMENU_OBJ@
93XOBJ=@XOBJ@ 92XOBJ=@XOBJ@
94 93
95LUCID_LIBW=@LUCID_LIBW@ 94LUCID_LIBW=@LUCID_LIBW@
95MOTIF_LIBW=@MOTIF_LIBW@
96 96
97LIBSOUND= @LIBSOUND@ 97LIBSOUND= @LIBSOUND@
98CFLAGS_SOUND= @CFLAGS_SOUND@ 98CFLAGS_SOUND= @CFLAGS_SOUND@
@@ -256,11 +256,6 @@ LIBXMENU=
256 256
257#ifdef USE_X_TOOLKIT 257#ifdef USE_X_TOOLKIT
258# define @X_TOOLKIT_TYPE@ 258# define @X_TOOLKIT_TYPE@
259# ifdef LIB_MOTIF
260MOTIF_LIBW= LIB_MOTIF $(LIBXP)
261# else
262MOTIF_LIBW= -lXm $(LIBXP)
263# endif
264LIBW=$(@X_TOOLKIT_TYPE@_LIBW) 259LIBW=$(@X_TOOLKIT_TYPE@_LIBW)
265 260
266#ifdef HAVE_X11XTR6 261#ifdef HAVE_X11XTR6
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h
index 32bc67bfd46..c14835531df 100644
--- a/src/s/aix4-2.h
+++ b/src/s/aix4-2.h
@@ -135,9 +135,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
135#define POSIX_SIGNALS 135#define POSIX_SIGNALS
136#undef sigmask 136#undef sigmask
137 137
138/* olson@mcs.anl.gov says -li18n is needed by -lXm. */
139#define LIB_MOTIF -lXm -li18n
140
141#ifndef HAVE_LIBXMU 138#ifndef HAVE_LIBXMU
142#define LIBXMU 139#define LIBXMU
143 140
@@ -148,7 +145,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
148/* On AIX Emacs uses the gmalloc.c malloc implementation. But given 145/* On AIX Emacs uses the gmalloc.c malloc implementation. But given
149 the way this system works, libc functions that return malloced 146 the way this system works, libc functions that return malloced
150 memory use the libc malloc implementation. Calling xfree or 147 memory use the libc malloc implementation. Calling xfree or
151 xrealloc on the results of such functions results in a crash. 148 xrealloc on the results of such functions results in a crash.
152 149
153 One solution for this could be to define SYSTEM_MALLOC here, but 150 One solution for this could be to define SYSTEM_MALLOC here, but
154 that does not currently work on this system. 151 that does not currently work on this system.
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index 3d470032efc..948f96a1e40 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -197,9 +197,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
197 anyone's still using Emacs on those. --fx 2002-12-14 */ 197 anyone's still using Emacs on those. --fx 2002-12-14 */
198/* #define C_SWITCH_SYSTEM -D_BSD_SOURCE */ 198/* #define C_SWITCH_SYSTEM -D_BSD_SOURCE */
199 199
200/* Paul Abrahams <abrahams@equinox.shaysnet.com> says this is needed. */
201#define LIB_MOTIF -lXm -lXpm
202
203#ifdef HAVE_LIBNCURSES 200#ifdef HAVE_LIBNCURSES
204#define TERMINFO 201#define TERMINFO
205#define LIBS_TERMCAP -lncurses 202#define LIBS_TERMCAP -lncurses
diff --git a/src/s/unixware.h b/src/s/unixware.h
index 27fd41b7416..d019b8bba80 100644
--- a/src/s/unixware.h
+++ b/src/s/unixware.h
@@ -59,14 +59,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
59/* Use libw.a along with X11R6 Xt. */ 59/* Use libw.a along with X11R6 Xt. */
60#define NEED_LIBW 60#define NEED_LIBW
61 61
62/* ryanr@ellingtn.ftc.nrcs.usda.gov (Richard Anthony Ryan) says -lXimp
63 is needed in UNIX_SV ... 4.2 1.1.2. */
64#define LIB_MOTIF -lXm -lXimp
65
66/* arch-tag: 9bbfcfc1-19be-45a1-9699-af57b87da2c6
67 (do not change this comment) */
68
69
70/* Data type of load average, as read out of kmem. */ 62/* Data type of load average, as read out of kmem. */
71 63
72#define LOAD_AVE_TYPE long 64#define LOAD_AVE_TYPE long