winzik/docker/engine-wasm/config-openal.m4
David Nurdin 7ce84c932f OpenGL + OpenAL: PHP-OpenGL / PHP-OpenAL (Ponup) in every runtime
- docker/ext/php-opengl.patch: framebuffers, glGetIntegerv/Floatv, uniforms,
  binary strings, non-fatal shader errors, glDelete*, WebGL guards
- desktop, desktop-async and the WebAssembly engine build both extensions
  (WebGL 1 / Web Audio in the browser)
- engine: OpenGl (raw gl* in SDL's context, begin/end, resources), WebGl
  rewritten on top of it (jumphp-gl.js removed), Audio3d (positional sound)
- headless test/shot run GL games on Xvfb (jumphp-xvfb), JUMPHP_GL
- stubs for phpstan (tools/gl-stubs.php)
- hello-webgl: RawGlScene (raw gl* + 3D beep); jumpball: mediump-safe post
- docs: AGENTS.md, api-web, build, READMEs

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-28 16:44:36 +01:00

14 lines
596 B
Text

dnl config.m4 for extension openal (PHP-OpenAL, Ponup), emscripten build:
dnl the AL headers come from emscripten, the library is its Web Audio implementation (-lopenal at link)
PHP_ARG_ENABLE([openal],
[whether to enable OpenAL support],
[AS_HELP_STRING([--enable-openal], [Enable OpenAL (Web Audio) support])],
[no])
if test "$PHP_OPENAL" != "no"; then
AC_DEFINE(WITH_OPENAL, 1, [Whether you want PHP-OpenAL])
AC_DEFINE(HAVE_AL_AL_H, 1, [Whether you have AL/al.h])
AC_DEFINE(HAVE_AL_ALC_H, 1, [Whether you have AL/alc.h])
PHP_NEW_EXTENSION(openal, php_openal.c, $ext_shared)
fi