[PATCH 09/11] Define templates for integer types

Ruben Kerkhof ruben at rubenkerkhof.com
Sat Mar 4 18:13:25 CET 2017


Right now there are empty defines for these in sysdeps/autoconf.h.in,
but if we want to start using autoheader we'll need to generate these.
---
 m4/bird.m4 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/m4/bird.m4 b/m4/bird.m4
index e7676368..f2775422 100644
--- a/m4/bird.m4
+++ b/m4/bird.m4
@@ -7,6 +7,11 @@ AC_CHECK_SIZEOF(short int, 0)
 AC_CHECK_SIZEOF(int, 0)
 AC_CHECK_SIZEOF(long int, 0)
 AC_CHECK_SIZEOF(long long int, 0)
+AH_TEMPLATE([INTEGER_8],  [8-bit integer type])
+AH_TEMPLATE([INTEGER_16], [16-bit integer type])
+AH_TEMPLATE([INTEGER_32], [32-bit integer type])
+AH_TEMPLATE([INTEGER_64], [64-bit integer type])
+
 for size in 1 2 4 8; do
 	bits=`expr $size "*" 8`
 	AC_MSG_CHECKING([for $bits-bit type])
-- 
2.12.0



More information about the Bird-users mailing list