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