Blame SOURCES/isl-rh2155127.patch

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