aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-04-18 15:48:06 +0000
committerStefan Monnier2008-04-18 15:48:06 +0000
commit73d798d5ae728a2cbc8eacf9cca8ddc618064f69 (patch)
treea9940e61b618afd6ef7eb05d594e7c1c3d726b43
parent325a68616c6f94ea9102657416c8e3ab40ed884e (diff)
downloademacs-73d798d5ae728a2cbc8eacf9cca8ddc618064f69.tar.gz
emacs-73d798d5ae728a2cbc8eacf9cca8ddc618064f69.zip
* configure.in: Define USE_LUCID/USE_MOTIF in config.h.
* lwlib/Makefile.in (TOOLKIT_DEFINES): Remove. * src/Makefile.in (TOOLKIT_DEFINES): Remove. (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
-rw-r--r--ChangeLog4
-rwxr-xr-xconfigure47
-rw-r--r--configure.in5
-rw-r--r--lwlib/ChangeLog4
-rw-r--r--lwlib/Makefile.in2
-rw-r--r--src/ChangeLog8
-rw-r--r--src/Makefile.in51
7 files changed, 64 insertions, 57 deletions
diff --git a/ChangeLog b/ChangeLog
index 72dda4f96be..b5f063caed2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
12008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * configure.in: Define USE_LUCID/USE_MOTIF in config.h.
4
12008-04-16 Stefan Monnier <monnier@iro.umontreal.ca> 52008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * configure.in (SYNC_INPUT): Use OPTION_DEFAULT_ON and AC_DEFINE 7 * configure.in (SYNC_INPUT): Use OPTION_DEFAULT_ON and AC_DEFINE
diff --git a/configure b/configure
index 745eb22ce7c..192c51b9c23 100755
--- a/configure
+++ b/configure
@@ -16734,7 +16734,6 @@ cat >>conftest.$ac_ext <<_ACEOF
16734# endif 16734# endif
16735#endif 16735#endif
16736 16736
16737#include <limits.h>
16738#include <stdlib.h> 16737#include <stdlib.h>
16739 16738
16740#ifdef HAVE_UNISTD_H 16739#ifdef HAVE_UNISTD_H
@@ -16883,15 +16882,12 @@ main ()
16883 isn't worth using anyway. */ 16882 isn't worth using anyway. */
16884 alarm (60); 16883 alarm (60);
16885 16884
16886 for (;;) 16885 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16887 { 16886 continue;
16888 t = (time_t_max << 1) + 1; 16887 time_t_max--;
16889 if (t <= time_t_max) 16888 if ((time_t) -1 < 0)
16890 break; 16889 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16891 time_t_max = t; 16890 continue;
16892 }
16893 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16894
16895 delta = time_t_max / 997; /* a suitable prime number */ 16891 delta = time_t_max / 997; /* a suitable prime number */
16896 for (i = 0; i < N_STRINGS; i++) 16892 for (i = 0; i < N_STRINGS; i++)
16897 { 16893 {
@@ -16906,12 +16902,10 @@ main ()
16906 && mktime_test ((time_t) (60 * 60 * 24)))) 16902 && mktime_test ((time_t) (60 * 60 * 24))))
16907 return 1; 16903 return 1;
16908 16904
16909 for (j = 1; ; j <<= 1) 16905 for (j = 1; 0 < j; j *= 2)
16910 if (! bigtime_test (j)) 16906 if (! bigtime_test (j))
16911 return 1; 16907 return 1;
16912 else if (INT_MAX / 2 < j) 16908 if (! bigtime_test (j - 1))
16913 break;
16914 if (! bigtime_test (INT_MAX))
16915 return 1; 16909 return 1;
16916 } 16910 }
16917 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 16911 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
@@ -18820,13 +18814,11 @@ _ACEOF
18820cat confdefs.h >>conftest.$ac_ext 18814cat confdefs.h >>conftest.$ac_ext
18821cat >>conftest.$ac_ext <<_ACEOF 18815cat >>conftest.$ac_ext <<_ACEOF
18822/* end confdefs.h. */ 18816/* end confdefs.h. */
18823#include <sys/types.h> /* for off_t */ 18817#include <stdio.h>
18824 #include <stdio.h>
18825int 18818int
18826main () 18819main ()
18827{ 18820{
18828int (*fp) (FILE *, off_t, int) = fseeko; 18821return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18829 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18830 ; 18822 ;
18831 return 0; 18823 return 0;
18832} 18824}
@@ -18866,13 +18858,11 @@ cat confdefs.h >>conftest.$ac_ext
18866cat >>conftest.$ac_ext <<_ACEOF 18858cat >>conftest.$ac_ext <<_ACEOF
18867/* end confdefs.h. */ 18859/* end confdefs.h. */
18868#define _LARGEFILE_SOURCE 1 18860#define _LARGEFILE_SOURCE 1
18869#include <sys/types.h> /* for off_t */ 18861#include <stdio.h>
18870 #include <stdio.h>
18871int 18862int
18872main () 18863main ()
18873{ 18864{
18874int (*fp) (FILE *, off_t, int) = fseeko; 18865return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18875 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18876 ; 18866 ;
18877 return 0; 18867 return 0;
18878} 18868}
@@ -24062,6 +24052,19 @@ cat >>confdefs.h <<\_ACEOF
24062#define USE_X_TOOLKIT 1 24052#define USE_X_TOOLKIT 1
24063_ACEOF 24053_ACEOF
24064 24054
24055 if test "${USE_X_TOOLKIT}" == "LUCID"; then
24056
24057cat >>confdefs.h <<\_ACEOF
24058#define USE_LUCID 1
24059_ACEOF
24060
24061 elif test "${USE_X_TOOLKIT}" == "MOTIF"; then
24062
24063cat >>confdefs.h <<\_ACEOF
24064#define USE_MOTIF 1
24065_ACEOF
24066
24067 fi
24065fi 24068fi
24066if test "${HAVE_X11}" = "yes" ; then 24069if test "${HAVE_X11}" = "yes" ; then
24067 24070
diff --git a/configure.in b/configure.in
index 31523db9d5c..dee41383f1e 100644
--- a/configure.in
+++ b/configure.in
@@ -2641,6 +2641,11 @@ if test "${HAVE_X_WINDOWS}" = "yes" ; then
2641fi 2641fi
2642if test "${USE_X_TOOLKIT}" != "none" ; then 2642if test "${USE_X_TOOLKIT}" != "none" ; then
2643 AC_DEFINE(USE_X_TOOLKIT, 1, [Define to 1 if using an X toolkit.]) 2643 AC_DEFINE(USE_X_TOOLKIT, 1, [Define to 1 if using an X toolkit.])
2644 if test "${USE_X_TOOLKIT}" == "LUCID"; then
2645 AC_DEFINE(USE_LUCID, 1, [Define to 1 if using the Lucid X toolkit.])
2646 elif test "${USE_X_TOOLKIT}" == "MOTIF"; then
2647 AC_DEFINE(USE_MOTIF, 1, [Define to 1 if using the Motif X toolkit.])
2648 fi
2644fi 2649fi
2645if test "${HAVE_X11}" = "yes" ; then 2650if test "${HAVE_X11}" = "yes" ; then
2646 AC_DEFINE(HAVE_X11, 1, 2651 AC_DEFINE(HAVE_X11, 1,
diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog
index 75e6a4fdaeb..c6df2f5dd0f 100644
--- a/lwlib/ChangeLog
+++ b/lwlib/ChangeLog
@@ -1,3 +1,7 @@
12008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * Makefile.in (TOOLKIT_DEFINES): Remove.
4
12007-08-29 Károly Lőrentey <lorentey@elte.hu> 52007-08-29 Károly Lőrentey <lorentey@elte.hu>
2 6
3 * xlwmenu.c (XlwMenuRealize): Ignore X errors while setting up 7 * xlwmenu.c (XlwMenuRealize): Ignore X errors while setting up
diff --git a/lwlib/Makefile.in b/lwlib/Makefile.in
index a53308c6cf4..f0626bb4618 100644
--- a/lwlib/Makefile.in
+++ b/lwlib/Makefile.in
@@ -46,7 +46,7 @@ USE_X_TOOLKIT=@X_TOOLKIT_TYPE@
46 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o 46 LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
47 MOTIF_OBJS = lwlib-Xm.o 47 MOTIF_OBJS = lwlib-Xm.o
48 48
49TOOLKIT_DEFINES = -DUSE_$(USE_X_TOOLKIT) 49TOOLKIT_DEFINES =
50 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS) 50 TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
51 51
52 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o 52 OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
diff --git a/src/ChangeLog b/src/ChangeLog
index a0583ac0ce2..a853b6fe917 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * Makefile.in (TOOLKIT_DEFINES): Remove.
4 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
5
12008-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 62008-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 7
3 * Makefile.in (MAC_OBJ): Add mactoolbox.o. 8 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
@@ -159,7 +164,8 @@
159 164
1602008-04-18 Stefan Monnier <monnier@iro.umontreal.ca> 1652008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
161 166
162 * character.c (Fmultibyte_char_to_unibyte): Return latin1 chars unchanged. 167 * character.c (Fmultibyte_char_to_unibyte):
168 Return latin1 chars unchanged.
163 169
164 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only 170 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
165 relocated if it points to `name'. 171 relocated if it points to `name'.
diff --git a/src/Makefile.in b/src/Makefile.in
index 011a630f056..77e082d5f1f 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -240,15 +240,6 @@ STARTFILES = START_FILES
240#endif /* not ORDINARY_LINK */ 240#endif /* not ORDINARY_LINK */
241 241
242 242
243#ifdef USE_X_TOOLKIT
244#define USE_@X_TOOLKIT_TYPE@
245TOOLKIT_DEFINES = -DUSE_@X_TOOLKIT_TYPE@
246#else
247#ifndef USE_GTK
248TOOLKIT_DEFINES =
249#endif
250#endif
251
252#ifdef HAVE_DBUS 243#ifdef HAVE_DBUS
253DBUS_CFLAGS = @DBUS_CFLAGS@ 244DBUS_CFLAGS = @DBUS_CFLAGS@
254DBUS_LIBS = @DBUS_LIBS@ 245DBUS_LIBS = @DBUS_LIBS@
@@ -268,7 +259,7 @@ DBUS_OBJ = dbusbind.o
268 259
269/* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM 260/* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM
270 since it may have -I options that should override those two. */ 261 since it may have -I options that should override those two. */
271ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(TOOLKIT_DEFINES) $(MYCPPFLAGS) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_SITE C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${CFLAGS} @FREETYPE_CFLAGS@ @FONTCONFIG_CFLAGS@ @LIBOTF_CFLAGS@ @M17N_FLT_CFLAGS@ 262ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_SITE C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${CFLAGS} @FREETYPE_CFLAGS@ @FONTCONFIG_CFLAGS@ @LIBOTF_CFLAGS@ @M17N_FLT_CFLAGS@
272.c.o: 263.c.o:
273 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< 264 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
274 265
@@ -317,29 +308,23 @@ LIBXMENU=
317#endif /* not HAVE_MENUS */ 308#endif /* not HAVE_MENUS */
318 309
319#ifdef USE_X_TOOLKIT 310#ifdef USE_X_TOOLKIT
320#define @X_TOOLKIT_TYPE@ 311# define @X_TOOLKIT_TYPE@
321#if defined (LUCID) || defined (ATHENA) 312# if HAVE_XAW3D
322#if HAVE_XAW3D 313LUCID_LIBW= -lXaw3d
323LIBW= -lXaw3d 314# else
324#else 315LUCID_LIBW= -lXaw
325LIBW= -lXaw 316# endif
326#endif 317# if defined (HAVE_MOTIF_2_1) && defined (HAVE_LIBXP)
327#endif 318# define LIB_MOTIF_EXTRA -lXp
328#ifdef MOTIF 319# else
329#if defined (HAVE_MOTIF_2_1) && defined (HAVE_LIBXP) 320# define LIB_MOTIF_EXTRA
330#define LIB_MOTIF_EXTRA -lXp 321# endif
331#else 322# ifdef LIB_MOTIF
332#define LIB_MOTIF_EXTRA 323MOTIF_LIBW= LIB_MOTIF LIB_MOTIF_EXTRA
333#endif 324# else
334#ifdef LIB_MOTIF 325MOTIF_LIBW= -lXm LIB_MOTIF_EXTRA
335LIBW= LIB_MOTIF LIB_MOTIF_EXTRA 326# endif
336#else 327LIBW=$(@X_TOOLKIT_TYPE@_LIBW)
337LIBW= -lXm LIB_MOTIF_EXTRA
338#endif
339#endif
340#ifdef OPEN_LOOK
341LIBW= -lXol
342#endif
343 328
344#ifdef HAVE_X11XTR6 329#ifdef HAVE_X11XTR6
345#ifdef NEED_LIBW 330#ifdef NEED_LIBW