]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
configure: run autoupdate
authorDaiki Ueno <ueno@gnu.org>
Fri, 10 Jan 2025 08:39:18 +0000 (17:39 +0900)
committerDaiki Ueno <ueno@gnu.org>
Tue, 14 Jan 2025 10:51:44 +0000 (19:51 +0900)
This fixes the warnings generated by autoupdate:

  configure.ac:55: warning: AC_PROG_CC_C99 is obsolete; use AC_PROG_CC

  configure.ac:139: warning: The preprocessor macro `STDC_HEADERS' is obsolete.
    Except in unusual embedded environments, you can safely include all
    ISO C90 headers unconditionally.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
configure.ac
lib/errors.c
m4/hooks.m4

index ba9b92c779016b4081c99234380fcaa978255a4c..02064ea071f598e202cac3035c2409529b5c0faf 100644 (file)
@@ -18,10 +18,10 @@ dnl Process this file with autoconf to produce a configure script.
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
-AC_PREREQ(2.64)
+AC_PREREQ([2.71])
 
 dnl when updating version also update LT_REVISION in m4/hooks.m4
-AC_INIT([GnuTLS], [3.8.8], [bugs@gnutls.org])
+AC_INIT([GnuTLS],[3.8.8],[bugs@gnutls.org])
 AC_CONFIG_AUX_DIR([build-aux])
 AC_CONFIG_MACRO_DIRS([m4 src/gl/m4 lib/unistring/m4])
 AC_CANONICAL_HOST
@@ -52,11 +52,11 @@ AC_USE_SYSTEM_EXTENSIONS
 
 #
 # Require C99 support
-#    
-AC_PROG_CC_C99
-if test "$ac_cv_prog_cc_c99" = "no"; then
-  AC_MSG_WARN([[Compiler does not support C99. It may not be able to compile the project.]])
-fi
+#
+AS_CASE([$ac_prog_cc_stdc],
+  [c11 | c99], [AC_DEFINE([C99_MACROS], 1, [C99 macros are supported])],
+  [AC_MSG_WARN([[Compiler does not support C99. It may not be able to compile the project.]])]
+)
 
 AM_CONDITIONAL(CROSS_COMPILING, test "$cross_compiling" = yes)
 
@@ -137,7 +137,11 @@ AC_SUBST(NUMBER_VERSION, `printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION
 
 dnl C and C++ capabilities
 AC_C_INLINE
-AC_HEADER_STDC
+# Autoupdate added the next two lines to ensure that your configure
+# script's behavior did not change.  They are probably safe to remove.
+AC_CHECK_INCLUDES_DEFAULT
+AC_PROG_EGREP
+
 
 # For the C++ code
 AC_ARG_ENABLE(cxx,
index 47bb601fad0c53abe62efdec23dc5d7caa6369cd..5571cc027e5ac9a5fb4428816e41c3de61f38370 100644 (file)
@@ -22,9 +22,7 @@
 
 #include "gnutls_int.h"
 #include "errors.h"
-#ifdef STDC_HEADERS
 #include <stdarg.h>
-#endif
 #include "str.h"
 
 #define ERROR_ENTRY(desc, name) { desc, #name, name }
index ae50938d817b82b39221b77c0289310f08158ded..ff66e33b5352fd07757dbb58f55b0312389a3b91 100644 (file)
@@ -129,21 +129,6 @@ LIBTASN1_MINIMUM=4.9
     GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libtasn1"
   fi
 
-  AC_MSG_CHECKING([whether C99 macros are supported])
-  AC_TRY_COMPILE(,
-  [
-    #define test_mac(...)
-    int z,y,x;
-    test_mac(x,y,z);
-    return 0;
-  ], [
-    AC_DEFINE([C99_MACROS], 1, [C99 macros are supported])
-    AC_MSG_RESULT(yes)
-  ], [
-    AC_MSG_RESULT(no)
-    AC_MSG_WARN([C99 macros not supported. This may affect compiling.])
-  ])
-
   ac_strict_der_time=yes
   AC_MSG_CHECKING([whether to disable strict DER time encodings for backwards compatibility])
   AC_ARG_ENABLE(strict-der-time,