File: emscripten.m4

package info (click to toggle)
projectm 3.1.12-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 42,424 kB
  • sloc: cpp: 57,701; ansic: 11,480; sh: 4,304; makefile: 427
file content (17 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
AC_DEFUN([AM_EMSCRIPTEN],
[
  AC_MSG_CHECKING(for emscripten compiler)
  emscripten_compiler=no
  AC_TRY_COMPILE([
      #ifndef EMSCRIPTEN
      #error "not an emscripten compiler"
      #endif
      ],[
      ],[
       host=javascript-web-emscripten
       emscripten_compiler=yes
       cross_compiling=yes
      ])
  AC_MSG_RESULT($emscripten_compiler)
  AM_CONDITIONAL(EMSCRIPTEN, [test "x$emscripten_compiler" = "xyes"])
])