Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
431B

  1. AC_DEFUN([AM_EMSCRIPTEN],
  2. [
  3. AC_MSG_CHECKING(for emscripten compiler)
  4. emscripten_compiler=no
  5. AC_TRY_COMPILE([
  6. #ifndef EMSCRIPTEN
  7. #error "not an emscripten compiler"
  8. #endif
  9. ],[
  10. ],[
  11. host=javascript-web-emscripten
  12. emscripten_compiler=yes
  13. cross_compiling=yes
  14. ])
  15. AC_MSG_RESULT($emscripten_compiler)
  16. AM_CONDITIONAL(EMSCRIPTEN, [test "x$emscripten_compiler" = "xyes"])
  17. ])