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 | 7a0510fa0ccb7a25bef0c2527ff7c570bd60a863 (patch) | |
tree | 4bf61f9290954c917fc32ed3f571a3c7b0a8ec24 /configure.in | |
parent | 4fc79451259e026d60357fd1a1c12d0a27e8a64b (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]) |