diff options
author | Diego Nieto Cid <dnietoc@gmail.com> | 2011-04-11 15:51:23 -0300 |
---|---|---|
committer | Diego Nieto Cid <dnietoc@gmail.com> | 2011-04-16 23:45:26 -0300 |
commit | d2af65efaaea156b7bf2b5c6f319f8ee92d991b8 (patch) | |
tree | 5f0cad4aea7dce0501047dd7fd249eca289b2496 /configure.in | |
parent | 10e9ddcf51fe63797ca5bac252e8d9cf77d80f96 (diff) |
Disable XKB when either lex or yacc is missing.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 967e86c9..18216540 100644 --- a/configure.in +++ b/configure.in @@ -230,6 +230,12 @@ AC_MSG_RESULT($boot_store_types) # Check for ncursesw, which is needed for the console-curses client. hurd_LIB_NCURSESW +AC_PROG_LEX +AC_PROG_YACC +AS_IF([test "$LEX" = ":" -o "$YACC" = ":"], [ +have_x11=no +AC_MSG_WARN([lex or yacc is mising, XKB will be disabled.]) +],[ # Check for those Xorg modules needed for keyboard mappings. PKG_CHECK_MODULES([X11], [x11 xproto], [ have_x11=yes @@ -242,6 +248,7 @@ PKG_CHECK_MODULES([X11], [x11 xproto], [XKB_BASE="$datadir/X11/xkb" AC_MSG_RESULT([(default) $XKB_BASE])]) ], [have_x11=no]) +]) AC_SUBST([have_x11]) AC_SUBST([XKB_BASE]) |