0001-configure.ac-fix-build-with-autoconf-2.70.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. From aa5bc6d2e59c5257d777a45ee4a0e0a784c44244 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Fri, 5 Nov 2021 20:58:41 +0100
  4. Subject: [PATCH] configure.ac: properly evaluate ac_test_CFLAGS
  5. Since autoconf 2.69 and
  6. https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=76754e04fce5f6a7701bec57b057020585df2ae3
  7. ac_test_CFLAGS is set to ${CFLAGS+y} instead of ${CFLAGS+set}.
  8. Just test that ac_test_CFLAGS is not empty, to support both cases.
  9. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  10. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
  11. ---
  12. configure.ac | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/configure.ac b/configure.ac
  15. index 64181d29..b4b3fcfb 100644
  16. --- a/configure.ac
  17. +++ b/configure.ac
  18. @@ -114,7 +114,7 @@ AC_SEARCH_LIBS([clock_gettime], [rt posix4],
  19. AC_CANONICAL_HOST
  20. # Store this value because ac_test_CFLAGS is overwritten by AC_PROG_CC
  21. -if test "$ac_test_CFLAGS" != set ; then
  22. +if ! test "$ac_test_CFLAGS" ; then
  23. bird_cflags_default=yes
  24. fi
  25. --
  26. 2.33.0