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