Blame SOURCES/isl-rh2155127.patch

d6dcb6
From: Sven Verdoolaege <sven.verdoolaege@gmail.com>
d6dcb6
Date: Mon, 6 Jun 2022 12:56:02 +0000 (+0200)
d6dcb6
Subject: update m4/ax_prog_cc_for_build.m4
d6dcb6
X-Git-Tag: isl-0.25~11
d6dcb6
X-Git-Url: https://repo.or.cz/isl.git/commitdiff_plain/b4dcdfadc29a6c9f410a72f345f3f32725b1d38b
d6dcb6
d6dcb6
update m4/ax_prog_cc_for_build.m4
d6dcb6
d6dcb6
In particular, update to the latest version from the autoconf archive,
d6dcb6
but preserve the changes from isl-0.22.1-358-gcd42abdf2
d6dcb6
(m4/ax_prog_cc_for_build.m4: do not override host compiler dependency style,
d6dcb6
Tue Jun 9 10:54:10 2020 +0200).
d6dcb6
d6dcb6
Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
d6dcb6
d6dcb6
--- isl-0.24/m4/ax_prog_cc_for_build.m4.jj	2021-03-02 12:07:09.000000000 +0100
d6dcb6
+++ isl-0.24/m4/ax_prog_cc_for_build.m4	2022-12-20 18:11:18.855777817 +0100
d6dcb6
@@ -32,7 +32,7 @@
d6dcb6
 #   and this notice are preserved. This file is offered as-is, without any
d6dcb6
 #   warranty.
d6dcb6
 
d6dcb6
-#serial 18
d6dcb6
+#serial 21
d6dcb6
 
d6dcb6
 AU_ALIAS([AC_PROG_CC_FOR_BUILD], [AX_PROG_CC_FOR_BUILD])
d6dcb6
 AC_DEFUN([AX_PROG_CC_FOR_BUILD], [dnl
d6dcb6
@@ -44,6 +44,8 @@ dnl Use the standard macros, but make th
d6dcb6
 dnl
d6dcb6
 pushdef([ac_cv_prog_CPP], ac_cv_build_prog_CPP)dnl
d6dcb6
 pushdef([ac_cv_prog_cc_c89], ac_cv_build_prog_cc_c89)dnl
d6dcb6
+pushdef([ac_cv_prog_cc_c99], ac_cv_build_prog_cc_c99)dnl
d6dcb6
+pushdef([ac_cv_prog_cc_c11], ac_cv_build_prog_cc_c11)dnl
d6dcb6
 pushdef([ac_cv_prog_gcc], ac_cv_build_prog_gcc)dnl
d6dcb6
 pushdef([ac_cv_prog_cc_works], ac_cv_build_prog_cc_works)dnl
d6dcb6
 pushdef([ac_cv_prog_cc_cross], ac_cv_build_prog_cc_cross)dnl
d6dcb6
@@ -86,7 +88,21 @@ AS_IF([test -n "$build"],      [ac_build
d6dcb6
       [test -n "$build_alias"],[ac_build_tool_prefix="$build_alias-"])
d6dcb6
 
d6dcb6
 AC_LANG_PUSH([C])
d6dcb6
+
d6dcb6
+dnl The pushdef([ac_cv_c_compiler_gnu], ...) currently does not cover
d6dcb6
+dnl the use of this variable in _AC_LANG_COMPILER_GNU called by
d6dcb6
+dnl AC_PROG_CC. Unset this cache variable temporarily as a workaround.
d6dcb6
+was_set_c_compiler_gnu=${[ac_cv_c_compiler_gnu]+y}
d6dcb6
+AS_IF([test ${was_set_c_compiler_gnu}],
d6dcb6
+    [saved_c_compiler_gnu=$[ac_cv_c_compiler_gnu]
d6dcb6
+    AS_UNSET([[ac_cv_c_compiler_gnu]])])
d6dcb6
+
d6dcb6
 AC_PROG_CC
d6dcb6
+
d6dcb6
+dnl Restore ac_cv_c_compiler_gnu
d6dcb6
+AS_IF([test ${was_set_c_compiler_gnu}],
d6dcb6
+  [[ac_cv_c_compiler_gnu]=$[saved_c_compiler_gnu]])
d6dcb6
+
d6dcb6
 _AC_COMPILER_EXEEXT
d6dcb6
 _AC_COMPILER_OBJEXT
d6dcb6
 AC_PROG_CPP
d6dcb6
--- isl-0.24/configure.jj	2021-04-26 11:13:19.000000000 +0200
d6dcb6
+++ isl-0.24/configure	2022-12-20 18:11:36.882518568 +0100
d6dcb6
@@ -5002,6 +4990,13 @@ ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR
d6dcb6
 ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
d6dcb6
 ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
d6dcb6
 
d6dcb6
+
d6dcb6
+was_set_c_compiler_gnu=${ac_cv_c_compiler_gnu+y}
d6dcb6
+if test ${was_set_c_compiler_gnu}; then :
d6dcb6
+  saved_c_compiler_gnu=$ac_cv_c_compiler_gnu
d6dcb6
+    { ac_cv_c_compiler_gnu=; unset ac_cv_c_compiler_gnu;}
d6dcb6
+fi
d6dcb6
+
d6dcb6
 ac_ext=c
d6dcb6
 ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
d6dcb6
 ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
d6dcb6
@@ -5728,6 +5723,11 @@ else
d6dcb6
 fi
d6dcb6
 
d6dcb6
 
d6dcb6
+
d6dcb6
+if test ${was_set_c_compiler_gnu}; then :
d6dcb6
+  ac_cv_c_compiler_gnu=$saved_c_compiler_gnu
d6dcb6
+fi
d6dcb6
+
d6dcb6
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6dcb6
 /* end confdefs.h.  */
d6dcb6