Skip to content

Commit d53eb95

Browse files
committed
configure.ac: Check for GLM in standard include path
Looks like Arch Linux stopped providing pkg-config file for glm. Since this is mostly a header-only library we can just check if the headers exist.
1 parent b1d8555 commit d53eb95

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,10 @@ elif test $cross_compile = no; then
11851185
if test $found_glm_hpp = yes; then
11861186
glm=yes
11871187
GLM_INC=-I$GLM_DIR
1188+
else
1189+
AC_LANG_PUSH(C++)
1190+
AC_CHECK_HEADER([glm/glm.hpp], [glm=yes], [glm=no])
1191+
AC_LANG_POP(C++)
11881192
fi
11891193
fi
11901194

0 commit comments

Comments
 (0)