From 8cbc12fbb9df8d1a3782adcb3682ab41662ff7ce Mon Sep 17 00:00:00 2001 From: "Stan. S. Krupoderov" Date: Wed, 23 Sep 2009 19:56:02 +0400 Subject: [PATCH] Ticket #1419: ./configure issue: GPM-related configure.ac: terminate with error if gpm not found and --with-gpm-mouse option used Signed-off-by: Stan. S. Krupoderov --- configure.ac | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 659a6645d..6cdcd2840 100644 --- a/configure.ac +++ b/configure.ac @@ -325,8 +325,12 @@ linux*) [Define to enable gpm mouse support on Linux]) mouse_lib="gpm and xterm" MCLIBS="$MCLIBS -lgpm"], - [AC_MSG_WARN([libgpm is missing or older than 0.18]) - ]) + if test "x$with_gpm_mouse" = "xyes"; then + [AC_MSG_ERROR([libgpm is missing or older than 0.18])] + else + [AC_MSG_WARN([libgpm is missing or older than 0.18])] + fi + ) fi ;; esac