This file is small, and harmless even on systems that don't have X.
Let's not overcomplicate the build system any longer.
consoledir = $(pkgdatadir)
nodist_console_DATA = $(srcdir)/src/console.map
-if XMODMAP
- # Without this set, we won't try to install the Xmodmap file.
- xmodmapdir = $(pkgdatadir)
- nodist_xmodmap_DATA = $(srcdir)/src/Xmodmap
-endif
+xmodmapdir = $(pkgdatadir)
+nodist_xmodmap_DATA = $(srcdir)/src/Xmodmap
nodist_doc_DATA = $(srcdir)/doc/README
AC_INIT([emacs-keys], [0.0.2], [michael@orlitzky.com])
AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-xz])
-# --enable-Xmodmap flag, disabled by default, that decides whether or
-# not we install the Xmodmap file.
-AC_ARG_ENABLE(
- [Xmodmap],
- [ --enable-Xmodmap install the Xmodmap file [[default=no]]],
- [case "${enableval}" in
- yes) xmodmap=true ;;
- no) xmodmap=false ;;
- *) AC_MSG_ERROR([bad value ${enableval} for --enable-xmodmap]) ;;
- esac],[xmodmap=false])
- AM_CONDITIONAL([XMODMAP], [test x$xmodmap = xtrue])
-
# List of output files.
AC_CONFIG_FILES([Makefile])
should be fed into the "xmodmap" utility that is part of X.org
and which is provided by x11-apps/xmodmap on Gentoo.
- You must pass "--enable-Xmodmap" to the ./configure script to
- install this file.
-
== Installation ==
$ loadkeys /path/to/console.map
$ xmodmap /path/to/Xmodmap
-The Makefile will install console.map to $(datadir)/emacs-keys by
-default. If you pass "--enable-Xmodmap" to the ./configure script,
-then the Makefile will install Xmodmap to the same location.
-
-For the Xmodmap file, that's about as good as it gets. To use it, you
-will typically add something like the following to your ~/.xinitrc,
+The build system will install these files to $(datadir)/emacs-keys by
+default. For the Xmodmap file, that's about as good as it gets. To use
+it, you will typically add something like the following to your
+~/.xinitrc,
emacsmodmap=/usr/share/emacs-keys/Xmodmap
if [ -f $emacsmodmap ]; then