Commit 03883ba0 authored by IOhannes m zmölnig's avatar IOhannes m zmölnig

unset HAVE_LIB_FTGL conditional if neither FTGL/ftgl.h nor FTFont.h can be found

partially closes: https://github.com/umlaeute/Gem/issues/236
parent 01b1861d
...@@ -13,8 +13,10 @@ AS_IF([test "x${have_ftgl}" = "xyes"],[ ...@@ -13,8 +13,10 @@ AS_IF([test "x${have_ftgl}" = "xyes"],[
tmp_gem_check_ftgl_cppflags="$CPPFLAGS" tmp_gem_check_ftgl_cppflags="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $GEM_LIB_FTGL_CFLAGS" CPPFLAGS="$CPPFLAGS $GEM_LIB_FTGL_CFLAGS"
AC_CHECK_HEADERS([FTGL/ftgl.h]) have_ftgl=no
AC_CHECK_HEADERS([FTGL/ftgl.h FTFont.h], [have_ftgl=yes])
CPPFLAGS="$tmp_gem_check_lib_cppflags" CPPFLAGS="$tmp_gem_check_lib_cppflags"
]) ])
AM_CONDITIONAL([HAVE_LIB_FTGL], [test "x{have_ftgl}" = xyes ])
]) dnl IEM_CHECK_FTGL ]) dnl IEM_CHECK_FTGL
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment