]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
m4: Delete flexible_array_member.m4
authorAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 25 Apr 2022 17:42:57 +0000 (20:42 +0300)
committerKarl Fleischmann <karl.fleischmann@open-xchange.com>
Mon, 4 Jul 2022 09:43:26 +0000 (11:43 +0200)
Autoconf is recent enough.

configure.ac
m4/flexible_array_member.m4 [deleted file]

index 21efecedd43f077f24ec2ee747bc4593617e04b3..8dd6c343d7179051105fbfa0a5e498d7e1879339 100644 (file)
@@ -452,7 +452,7 @@ DOVECOT_GMTIME_MAX
 DOVECOT_TIME_T
 
 DOVECOT_C_STATIC_ARRAY
-DOVECOT_C_FLEXIBLE_ARRAY_MEMBER
+AC_C_FLEXIBLE_ARRAY_MEMBER
 
 DOVECOT_IOVEC
 
diff --git a/m4/flexible_array_member.m4 b/m4/flexible_array_member.m4
deleted file mode 100644 (file)
index 10fea3b..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-dnl Our implementation of AC_C_FLEXIBLE_ARRAY_MEMBER.
-dnl Use it until autoconf 2.61+ becomes more widely used
-AC_DEFUN([DOVECOT_C_FLEXIBLE_ARRAY_MEMBER], [
-  AC_CACHE_CHECK([if we can use C99-like flexible array members],i_cv_c99_flex_arrays,[
-    AC_TRY_COMPILE([
-      struct foo {
-        int x;
-        char y[];
-      };
-    ], [
-      struct foo foo;
-    ], [
-      i_cv_c99_flex_arrays=yes
-    ], [
-      i_cv_c99_flex_arrays=no
-    ])
-  ])
-  
-  if test $i_cv_c99_flex_arrays = yes; then
-    flexible_value=
-  else
-    flexible_value=1
-  fi
-  AC_DEFINE_UNQUOTED(FLEXIBLE_ARRAY_MEMBER, $flexible_value, [How to define flexible array members in structs])
-])