Browse Source

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 <pashelper@gmail.com>
Stan. S. Krupoderov 15 years ago
parent
commit
8cbc12fbb9
1 changed files with 6 additions and 2 deletions
  1. 6 2
      configure.ac

+ 6 - 2
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