diff options
| author | Nick Roberts | 2007-05-20 05:13:28 +0000 |
|---|---|---|
| committer | Nick Roberts | 2007-05-20 05:13:28 +0000 |
| commit | 7e5a23bd93d600f719b3b6db4cfbb925d7ea8c8f (patch) | |
| tree | dd382d8493d1c892047eaf1ad657be173e691488 /src | |
| parent | a8099827a4c6c243b57dcfee9d17f3b7475670e4 (diff) | |
| download | emacs-7e5a23bd93d600f719b3b6db4cfbb925d7ea8c8f.tar.gz emacs-7e5a23bd93d600f719b3b6db4cfbb925d7ea8c8f.zip | |
Use HAVE_GPM instead of HAVE_GPM_H.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile.in | 12 | ||||
| -rw-r--r-- | src/config.in | 4 | ||||
| -rw-r--r-- | src/keyboard.c | 8 | ||||
| -rw-r--r-- | src/sysdep.c | 4 | ||||
| -rw-r--r-- | src/term.c | 14 | ||||
| -rw-r--r-- | src/termhooks.h | 4 |
6 files changed, 26 insertions, 20 deletions
diff --git a/src/Makefile.in b/src/Makefile.in index 216e6a420c1..09b85b4f2e2 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -446,6 +446,14 @@ XFT_LIBS=@XFT_LIBS@ | |||
| 446 | #define LIBGIF | 446 | #define LIBGIF |
| 447 | #endif /* not HAVE_GIF */ | 447 | #endif /* not HAVE_GIF */ |
| 448 | 448 | ||
| 449 | #if HAVE_GPM | ||
| 450 | #ifndef LIBGPM | ||
| 451 | #define LIBGPM -lgpm | ||
| 452 | #endif /* not defined LIBGPM */ | ||
| 453 | #else /* not HAVE_GPM */ | ||
| 454 | #define LIBGPM | ||
| 455 | #endif /* not HAVE_GPM */ | ||
| 456 | |||
| 449 | #ifdef HAVE_X11 | 457 | #ifdef HAVE_X11 |
| 450 | /* LD_SWITCH_X_DEFAULT comes after everything else that specifies | 458 | /* LD_SWITCH_X_DEFAULT comes after everything else that specifies |
| 451 | options for where to find X libraries, but before those libraries. */ | 459 | options for where to find X libraries, but before those libraries. */ |
| @@ -460,8 +468,6 @@ LIBX= $(LIBXMENU) LD_SWITCH_X_SITE -lX10 LIBX10_MACHINE LIBX10_SYSTEM | |||
| 460 | LIBSOUND= @LIBSOUND@ | 468 | LIBSOUND= @LIBSOUND@ |
| 461 | CFLAGS_SOUND= @CFLAGS_SOUND@ | 469 | CFLAGS_SOUND= @CFLAGS_SOUND@ |
| 462 | 470 | ||
| 463 | LIBGPM= @LIBGPM@ | ||
| 464 | |||
| 465 | #ifndef ORDINARY_LINK | 471 | #ifndef ORDINARY_LINK |
| 466 | /* Fix linking if compiled with GCC. */ | 472 | /* Fix linking if compiled with GCC. */ |
| 467 | #ifdef __GNUC__ | 473 | #ifdef __GNUC__ |
| @@ -935,7 +941,7 @@ SOME_MACHINE_LISP = ${dotdot}/lisp/mouse.elc \ | |||
| 935 | Note that SunOS needs -lm to come before -lc; otherwise, you get | 941 | Note that SunOS needs -lm to come before -lc; otherwise, you get |
| 936 | duplicated symbols. If the standard libraries were compiled | 942 | duplicated symbols. If the standard libraries were compiled |
| 937 | with GCC, we might need gnulib again after them. */ | 943 | with GCC, we might need gnulib again after them. */ |
| 938 | LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(LIBGPM)\ | 944 | LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) LIBGPM\ |
| 939 | LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \ | 945 | LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \ |
| 940 | LIBS_DEBUG $(GETLOADAVG_LIBS) $(GNULIB_VAR) LIB_MATH LIB_STANDARD \ | 946 | LIBS_DEBUG $(GETLOADAVG_LIBS) $(GNULIB_VAR) LIB_MATH LIB_STANDARD \ |
| 941 | $(GNULIB_VAR) | 947 | $(GNULIB_VAR) |
diff --git a/src/config.in b/src/config.in index 93f67df66dc..5fe340ba546 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -231,8 +231,8 @@ Boston, MA 02110-1301, USA. */ | |||
| 231 | /* Define to 1 if you have the ungif library (-lungif). */ | 231 | /* Define to 1 if you have the ungif library (-lungif). */ |
| 232 | #undef HAVE_GIF | 232 | #undef HAVE_GIF |
| 233 | 233 | ||
| 234 | /* Define to 1 if you have the <gpm.h> header file. */ | 234 | /* Define to 1 if you have the gpm library (-lgpm). */ |
| 235 | #undef HAVE_GPM_H | 235 | #undef HAVE_GPM |
| 236 | 236 | ||
| 237 | /* Define to 1 if you have the `grantpt' function. */ | 237 | /* Define to 1 if you have the `grantpt' function. */ |
| 238 | #undef HAVE_GRANTPT | 238 | #undef HAVE_GRANTPT |
diff --git a/src/keyboard.c b/src/keyboard.c index e56a6904c91..d2e77fd8888 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -6008,7 +6008,7 @@ make_lispy_event (event) | |||
| 6008 | } | 6008 | } |
| 6009 | #endif | 6009 | #endif |
| 6010 | 6010 | ||
| 6011 | #ifdef HAVE_GPM_H | 6011 | #ifdef HAVE_GPM |
| 6012 | case GPM_CLICK_EVENT: | 6012 | case GPM_CLICK_EVENT: |
| 6013 | { | 6013 | { |
| 6014 | FRAME_PTR f = XFRAME (event->frame_or_window); | 6014 | FRAME_PTR f = XFRAME (event->frame_or_window); |
| @@ -6066,7 +6066,7 @@ make_lispy_event (event) | |||
| 6066 | Fcons (position, | 6066 | Fcons (position, |
| 6067 | Qnil)); | 6067 | Qnil)); |
| 6068 | } | 6068 | } |
| 6069 | #endif /* HAVE_GPM_H */ | 6069 | #endif /* HAVE_GPM */ |
| 6070 | 6070 | ||
| 6071 | /* The 'kind' field of the event is something we don't recognize. */ | 6071 | /* The 'kind' field of the event is something we don't recognize. */ |
| 6072 | default: | 6072 | default: |
| @@ -6925,7 +6925,7 @@ read_avail_input (expected) | |||
| 6925 | if (n_to_read == 0) | 6925 | if (n_to_read == 0) |
| 6926 | return 0; | 6926 | return 0; |
| 6927 | #else /* not MSDOS */ | 6927 | #else /* not MSDOS */ |
| 6928 | #ifdef HAVE_GPM_H | 6928 | #ifdef HAVE_GPM |
| 6929 | if (term_gpm) | 6929 | if (term_gpm) |
| 6930 | { | 6930 | { |
| 6931 | Gpm_Event event; | 6931 | Gpm_Event event; |
| @@ -6943,7 +6943,7 @@ read_avail_input (expected) | |||
| 6943 | if (nread) | 6943 | if (nread) |
| 6944 | return nread; | 6944 | return nread; |
| 6945 | } | 6945 | } |
| 6946 | #endif /* HAVE_GPM_H */ | 6946 | #endif /* HAVE_GPM */ |
| 6947 | #ifdef FIONREAD | 6947 | #ifdef FIONREAD |
| 6948 | 6948 | ||
| 6949 | /* Find out how much input is available. */ | 6949 | /* Find out how much input is available. */ |
diff --git a/src/sysdep.c b/src/sysdep.c index 5dd7769ba4d..202cab4abd2 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -1675,14 +1675,14 @@ init_sys_modes () | |||
| 1675 | old_fcntl_owner = fcntl (input_fd, F_GETOWN, 0); | 1675 | old_fcntl_owner = fcntl (input_fd, F_GETOWN, 0); |
| 1676 | fcntl (input_fd, F_SETOWN, getpid ()); | 1676 | fcntl (input_fd, F_SETOWN, getpid ()); |
| 1677 | init_sigio (input_fd); | 1677 | init_sigio (input_fd); |
| 1678 | #ifdef HAVE_GPM_H | 1678 | #ifdef HAVE_GPM |
| 1679 | if (term_gpm) | 1679 | if (term_gpm) |
| 1680 | { | 1680 | { |
| 1681 | fcntl (gpm_fd, F_SETOWN, getpid ()); | 1681 | fcntl (gpm_fd, F_SETOWN, getpid ()); |
| 1682 | fcntl (gpm_fd, F_SETFL, O_NONBLOCK); | 1682 | fcntl (gpm_fd, F_SETFL, O_NONBLOCK); |
| 1683 | init_sigio (gpm_fd); | 1683 | init_sigio (gpm_fd); |
| 1684 | } | 1684 | } |
| 1685 | #endif /* HAVE_GPM_H */ | 1685 | #endif /* HAVE_GPM */ |
| 1686 | } | 1686 | } |
| 1687 | #endif /* F_GETOWN */ | 1687 | #endif /* F_GETOWN */ |
| 1688 | #endif /* F_SETOWN_BUG */ | 1688 | #endif /* F_SETOWN_BUG */ |
diff --git a/src/term.c b/src/term.c index 5422d29efb9..b9190e69fa4 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -410,7 +410,7 @@ static void term_mouse_highlight (struct frame *f, int x, int y); | |||
| 410 | #define FRAME_TERMCAP_P(_f_) 0 | 410 | #define FRAME_TERMCAP_P(_f_) 0 |
| 411 | #endif /* WINDOWSNT */ | 411 | #endif /* WINDOWSNT */ |
| 412 | 412 | ||
| 413 | #ifdef HAVE_GPM_H | 413 | #ifdef HAVE_GPM |
| 414 | #include <sys/fcntl.h> | 414 | #include <sys/fcntl.h> |
| 415 | #include "buffer.h" | 415 | #include "buffer.h" |
| 416 | 416 | ||
| @@ -435,7 +435,7 @@ int mouse_face_mouse_x, mouse_face_mouse_y; | |||
| 435 | 435 | ||
| 436 | static int pos_x, pos_y; | 436 | static int pos_x, pos_y; |
| 437 | static int last_mouse_x, last_mouse_y; | 437 | static int last_mouse_x, last_mouse_y; |
| 438 | #endif /* HAVE_GPM_H */ | 438 | #endif /* HAVE_GPM */ |
| 439 | 439 | ||
| 440 | void | 440 | void |
| 441 | ring_bell () | 441 | ring_bell () |
| @@ -2381,7 +2381,7 @@ set_tty_color_mode (f, val) | |||
| 2381 | Mouse | 2381 | Mouse |
| 2382 | ***********************************************************************/ | 2382 | ***********************************************************************/ |
| 2383 | 2383 | ||
| 2384 | #ifdef HAVE_GPM_H | 2384 | #ifdef HAVE_GPM |
| 2385 | static void | 2385 | static void |
| 2386 | term_show_mouse_face (enum draw_glyphs_face draw) | 2386 | term_show_mouse_face (enum draw_glyphs_face draw) |
| 2387 | { | 2387 | { |
| @@ -3024,7 +3024,7 @@ DEFUN ("term-close-connection", Fterm_close_connection, Sterm_close_connection, | |||
| 3024 | term_gpm = 0; | 3024 | term_gpm = 0; |
| 3025 | return Qnil; | 3025 | return Qnil; |
| 3026 | } | 3026 | } |
| 3027 | #endif /* HAVE_GPM_H */ | 3027 | #endif /* HAVE_GPM */ |
| 3028 | 3028 | ||
| 3029 | 3029 | ||
| 3030 | /*********************************************************************** | 3030 | /*********************************************************************** |
| @@ -3045,7 +3045,7 @@ term_init (terminal_type) | |||
| 3045 | 3045 | ||
| 3046 | encode_terminal_bufsize = 0; | 3046 | encode_terminal_bufsize = 0; |
| 3047 | 3047 | ||
| 3048 | #ifdef HAVE_GPM_H | 3048 | #ifdef HAVE_GPM |
| 3049 | /* TODO: Can't get Gpm_Snapshot in term_mouse_position to work: test with | 3049 | /* TODO: Can't get Gpm_Snapshot in term_mouse_position to work: test with |
| 3050 | (mouse-position). Also set-mouse-position won't work as is. */ | 3050 | (mouse-position). Also set-mouse-position won't work as is. */ |
| 3051 | /* mouse_position_hook = term_mouse_position; */ | 3051 | /* mouse_position_hook = term_mouse_position; */ |
| @@ -3500,10 +3500,10 @@ bigger, or it may make it blink, or it may do nothing at all. */); | |||
| 3500 | defsubr (&Stty_display_color_p); | 3500 | defsubr (&Stty_display_color_p); |
| 3501 | defsubr (&Stty_display_color_cells); | 3501 | defsubr (&Stty_display_color_cells); |
| 3502 | defsubr (&Stty_no_underline); | 3502 | defsubr (&Stty_no_underline); |
| 3503 | #ifdef HAVE_GPM_H | 3503 | #ifdef HAVE_GPM |
| 3504 | defsubr (&Sterm_open_connection); | 3504 | defsubr (&Sterm_open_connection); |
| 3505 | defsubr (&Sterm_close_connection); | 3505 | defsubr (&Sterm_close_connection); |
| 3506 | #endif /* HAVE_GPM_H */ | 3506 | #endif /* HAVE_GPM */ |
| 3507 | 3507 | ||
| 3508 | fullscreen_hook = NULL; | 3508 | fullscreen_hook = NULL; |
| 3509 | } | 3509 | } |
diff --git a/src/termhooks.h b/src/termhooks.h index 0ca6523bd61..1e9968530e8 100644 --- a/src/termhooks.h +++ b/src/termhooks.h | |||
| @@ -343,7 +343,7 @@ enum event_kind | |||
| 343 | MAC_APPLE_EVENT, | 343 | MAC_APPLE_EVENT, |
| 344 | #endif | 344 | #endif |
| 345 | 345 | ||
| 346 | #ifdef HAVE_GPM_H | 346 | #ifdef HAVE_GPM |
| 347 | GPM_CLICK_EVENT | 347 | GPM_CLICK_EVENT |
| 348 | #endif | 348 | #endif |
| 349 | }; | 349 | }; |
| @@ -450,7 +450,7 @@ enum { | |||
| 450 | meta_modifier = CHAR_META /* Under X, the XK_Meta_[LR] keysyms. */ | 450 | meta_modifier = CHAR_META /* Under X, the XK_Meta_[LR] keysyms. */ |
| 451 | }; | 451 | }; |
| 452 | 452 | ||
| 453 | #ifdef HAVE_GPM_H | 453 | #ifdef HAVE_GPM |
| 454 | #include <gpm.h> | 454 | #include <gpm.h> |
| 455 | extern int handle_one_term_event (Gpm_Event *, struct input_event *); | 455 | extern int handle_one_term_event (Gpm_Event *, struct input_event *); |
| 456 | 456 | ||