Blame SOURCES/isl-rh2155127.patch

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