|
1 | | -AC_INIT([projectM], [3.1.6], [[email protected]], [projectM], [https://github.com/projectM-visualizer/projectm/]) |
| 1 | +AC_INIT([projectM], [3.1.7], [[email protected]], [projectM], [https://github.com/projectM-visualizer/projectm/]) |
2 | 2 | AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects tar-pax]) |
3 | 3 |
|
4 | 4 | m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
@@ -103,12 +103,6 @@ AS_IF([test "$enable_sdl" != "no"], [ |
103 | 103 | ]) |
104 | 104 |
|
105 | 105 |
|
106 | | -# glm |
107 | | -AS_IF([test "x$enable_emscripten" != "xyes"], [ |
108 | | - AC_CHECK_HEADER([glm/glm.hpp],, AC_MSG_ERROR(libglm is required.)) |
109 | | -]) |
110 | | - |
111 | | - |
112 | 106 | # Threading |
113 | 107 | AC_ARG_ENABLE([threading], |
114 | 108 | AS_HELP_STRING([--enable-threading], [multhreading]), |
@@ -240,11 +234,17 @@ AM_CONDITIONAL([ENABLE_PRESET_SUBDIRS], [test "x$enable_preset_subdirs" = "xyes" |
240 | 234 | my_CFLAGS="-Wall -Wchar-subscripts -Wformat-security -Wpointer-arith -Wshadow -Wsign-compare -Wtype-limits" |
241 | 235 | #my_CFLAGS+="-fsanitize=address -fno-omit-frame-pointer " |
242 | 236 | my_CFLAGS="${my_CFLAGS} -DDATADIR_PATH=\\\"\"\$(pkgdatadir)\\\"\"" |
243 | | -my_CFLAGS="${my_CFLAGS} -I\$(top_srcdir)/vendor" |
| 237 | +my_CFLAGS="${my_CFLAGS} -I\"\$(top_srcdir)/vendor\"" # provides glm headers |
244 | 238 | my_CFLAGS="${my_CFLAGS} -DGL_SILENCE_DEPRECATION" |
245 | 239 | AC_SUBST([my_CFLAGS]) |
246 | 240 |
|
247 | 241 |
|
| 242 | +# glm (vendored, this should never fail; headers are in vendor/glm) |
| 243 | +AC_SUBST(CPPFLAGS, "$CPPFLAGS -I${srcdir}/vendor") |
| 244 | +AS_IF([test "x$enable_emscripten" != "xyes"], [ |
| 245 | + AC_CHECK_HEADER([glm/glm.hpp],, AC_MSG_ERROR(vendored libglm not found.)) |
| 246 | +]) |
| 247 | + |
248 | 248 |
|
249 | 249 | AC_OUTPUT |
250 | 250 |
|
|
0 commit comments