From: Andrea Corallo Date: Tue, 12 Nov 2019 22:27:09 +0000 (+0100) Subject: better configure X-Git-Tag: emacs-28.0.90~2727^2~999 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=06fc663f519eefb431912ebdae8711ed016e0703;p=emacs.git better configure check for libgccjit.h file instead of the shared lib in configure --- diff --git a/configure.ac b/configure.ac index c86dac6a65b..c1e39773300 100644 --- a/configure.ac +++ b/configure.ac @@ -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