Browse Source

build: if FlexLexer.h isn't found in the build environment, use the one

we ship in contrib.
legacy
Sam Hocevar sam 12 years ago
parent
commit
9ff03784d6
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      configure.ac

+ 10
- 0
configure.ac View File

@@ -268,6 +268,16 @@ AM_CONDITIONAL(USE_SDL_MIXER, test "${ac_cv_my_have_sdl_mixer}" = "yes")
AM_CONDITIONAL(USE_SDL_IMAGE, test "${ac_cv_my_have_sdl_image}" = "yes") AM_CONDITIONAL(USE_SDL_IMAGE, test "${ac_cv_my_have_sdl_image}" = "yes")




dnl Use Flex's FlexLexer.h or ours?
ac_cv_my_have_flexlexer_h="no"
AC_LANG_PUSH(C++)
AC_CHECK_HEADERS(FlexLexer.h, [ac_cv_my_have_flexlexer_h="yes"])
AC_LANG_POP(C++)
if test "x${ac_cv_my_have_flexlexer_h}" = "xno"; then
LOL_CFLAGS="$LOL_CFLAGS -I\$(top_srcdir)/contrib/flex-2.5.35/include"
fi


dnl Use NativeClient? dnl Use NativeClient?
ac_cv_my_have_nacl="no" ac_cv_my_have_nacl="no"
AC_LANG_PUSH(C++) AC_LANG_PUSH(C++)


Loading…
Cancel
Save