Better check-and-abort for flex in Desktop POSIX build

This commit is contained in:
Aaron Culliney 2016-01-31 13:13:56 -08:00
parent 433f4baafa
commit 2c07a0fe94

View File

@ -123,14 +123,13 @@ AC_TRY_LINK([asm("_glibc_foobar:");], [glibc_foobar()], [
dnl ---------------------------------------------------------------------------
# Sometimes Flex is installed as Lex, e.g., NetBSD.
AC_CHECK_PROG([FLEX], [flex lex], [flex])
# Force the use of `missing' to wrap Flex invocations.
AM_MISSING_PROG([LEX], [$FLEX])
# Perform all the tests Automake and Autoconf need.
AM_PROG_LEX
dnl AS_IF([test "x$LEX" = "xno"], [
dnl AC_MSG_ERROR([Emulator needs lex/flex to build source...])
dnl ], [
dnl AC_MSG_RESULT([Found lex $LEX])
dnl ])
dnl POSIX high-precision clock
AC_SEARCH_LIBS(clock_gettime, rt, [], [
AC_MSG_ERROR([Emulator needs realtime clocks (-lrt) to build...])