1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00

better configure

check for libgccjit.h file instead of the shared lib in configure
This commit is contained in:
Andrea Corallo 2019-11-12 23:27:09 +01:00
parent f59a96f565
commit 06fc663f51

View File

@ -3742,7 +3742,7 @@ HAVE_NATIVE_COMP=no
LIBGCCJIT_LIB=
COMP_OBJ=
if test "${with_nativecomp}" != "no"; then
AC_CHECK_LIB(gccjit, gcc_jit_context_acquire, HAVE_NATIVE_COMP=yes, , -lgccjit)
AC_CHECK_HEADER([libgccjit.h], [HAVE_NATIVE_COMP=yes])
if test "${HAVE_NATIVE_COMP}" = "yes"; then
LIBGCCJIT_LIB="-lgccjit -ldl"
if test "${HAVE_MODULES}" = yes; then