]> git.eshelyaron.com Git - emacs.git/commitdiff
better configure
authorAndrea Corallo <akrl@sdf.org>
Tue, 12 Nov 2019 22:27:09 +0000 (23:27 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:38:04 +0000 (11:38 +0100)
check for libgccjit.h file instead of the shared lib in configure

configure.ac

index c86dac6a65bce73021bbfac942b362ebfa5e7c70..c1e3977330057e35b7c0054c8198e9896a00dff7 100644 (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