aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-03-21 14:07:51 +0200
committerLasse Collin <lasse.collin@tukaani.org>2023-03-21 14:24:43 +0200
commita2e129a81fe95261342b6f76a3c2474b95e4cf82 (patch)
treec34bba506e1c484398b244b1869efcafc340ac8d /configure.ac
parentBuild: configure.ac: Use AS_IF and AS_CASE where required. (diff)
downloadxz-a2e129a81fe95261342b6f76a3c2474b95e4cf82.tar.xz
Build: Add a comment that AC_PROG_CC_C99 is needed for Autoconf 2.69.
It's obsolete in Autoconf >= 2.70 and just an alias for AC_PROG_CC but Autoconf 2.69 requires AC_PROG_CC_C99 to get a C99 compiler.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 440ec990..9dfe8098 100644
--- a/configure.ac
+++ b/configure.ac
@@ -550,6 +550,9 @@ echo "Initializing Automake:"
AM_INIT_AUTOMAKE([1.12 foreign tar-v7 filename-length-max=99 serial-tests -Wno-unsupported])
AC_PROG_LN_S
+dnl # Autoconf >= 2.70 warns that AC_PROG_CC_C99 is obsolete. However,
+dnl # we have to keep using AC_PROG_CC_C99 instead of AC_PROG_CC
+dnl # as long as we try to be compatible with Autoconf 2.69.
AC_PROG_CC_C99
if test x$ac_cv_prog_cc_c99 = xno ; then
AC_MSG_ERROR([No C99 compiler was found.])