Correct gpm detection in configure script
This commit is contained in:
parent
c4a8886da2
commit
f67537fba4
|
@ -1,6 +1,7 @@
|
|||
2016-12-22 Markus Gans <guru.mail@muenster.de>
|
||||
* VTerm marks printed characters for a correct determination
|
||||
of unchanged characters
|
||||
* Correct gpm detection in configure script
|
||||
|
||||
2016-12-18 Markus Gans <guru.mail@muenster.de>
|
||||
* Only perform VTerm updates on terminal updates
|
||||
|
|
|
@ -16973,13 +16973,12 @@ ac_config_files="$ac_config_files Makefile src/Makefile src/fonts/Makefile doc/M
|
|||
|
||||
# Check whether --with-gpm was given.
|
||||
if test "${with_gpm+set}" = set; then :
|
||||
withval=$with_gpm;
|
||||
withval=$with_gpm; with_gpm=no
|
||||
else
|
||||
with_gpm=yes
|
||||
fi
|
||||
|
||||
|
||||
if test "x$with_gpm" != "xno"
|
||||
if test "x$with_gpm" = "xyes"
|
||||
then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgpm" >&5
|
||||
$as_echo_n "checking for main in -lgpm... " >&6; }
|
||||
|
@ -17012,12 +17011,12 @@ fi
|
|||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_main" >&5
|
||||
$as_echo "$ac_cv_lib_gpm_main" >&6; }
|
||||
if test "x$ac_cv_lib_gpm_main" = xyes; then :
|
||||
LIBS="$LIBS -lgpm"
|
||||
fi
|
||||
|
||||
|
||||
$as_echo "#define HAVE_LIBGPM 1" >>confdefs.h
|
||||
|
||||
LIBS="$LIBS -lgpm"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
# profiling
|
||||
|
|
|
@ -59,15 +59,14 @@ AC_CONFIG_FILES([Makefile src/Makefile src/fonts/Makefile doc/Makefile test/Make
|
|||
# use GPM (General Purpose Mouse)
|
||||
AC_ARG_WITH([gpm],
|
||||
[AS_HELP_STRING([--without-gpm], [Disable GPM mouse support])],
|
||||
[],
|
||||
[with_gpm=no],
|
||||
[with_gpm=yes])
|
||||
|
||||
if test "x$with_gpm" != "xno"
|
||||
if test "x$with_gpm" = "xyes"
|
||||
then
|
||||
AC_CHECK_LIB([gpm],
|
||||
[main],
|
||||
[LIBS="$LIBS -lgpm"])
|
||||
AC_DEFINE([HAVE_LIBGPM], 1, [Define to 1 if GPM mouse is enabled])
|
||||
[AC_DEFINE([HAVE_LIBGPM], 1, [Define to 1 if GPM mouse is enabled])
|
||||
LIBS="$LIBS -lgpm"])
|
||||
fi
|
||||
|
||||
# profiling
|
||||
|
|
Loading…
Reference in New Issue