]> git.puffer.fish Git - matthieu/frr.git/commitdiff
[bug #231] check and include stdint.h, also add std=c99 to gcc CFLAGS
authorpaul <paul>
Mon, 14 Nov 2005 14:05:35 +0000 (14:05 +0000)
committerpaul <paul>
Mon, 14 Nov 2005 14:05:35 +0000 (14:05 +0000)
2005-11-14 Paul Jakma <paul.jakma@sun.com>

* configure.ac: Tell gcc we like C99.
  [bug #231] Check and test for stdint.h.
* lib/zebra.h: [bug #231] include stdint, if its there.

ChangeLog
configure.ac
lib/ChangeLog
lib/zebra.h

index 422ff3cade8b026c77cff7bcbf7558d7ba15b555..ff4938874c9901ebfad53258c512ab06f124f83d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-14 Paul Jakma <paul.jakma@sun.com>
+
+       * configure.ac: Tell gcc we like C99.
+         [bug #231] Check and test for stdint.h.
+
 2005-11-11 Paul Jakma <paul.jakma@sun.com>
 
        * NEWS: Update.
index 60186d982240689bdb57830f92b6e7cdd41f8ace..274ba7a8a0b02bebcee37860ed87bcf5d95b18f0 100755 (executable)
@@ -5,7 +5,7 @@
 ##  Copyright (c) 1996, 97, 98, 99, 2000 Kunihiro Ishiguro <kunihiro@zebra.org>
 ##  Portions Copyright (c) 2003 Paul Jakma <paul@dishone.st>
 ##
-## $Id: configure.ac,v 1.114 2005/11/11 10:28:59 paul Exp $
+## $Id: configure.ac,v 1.115 2005/11/14 14:05:36 paul Exp $
 AC_PREREQ(2.53)
 
 AC_INIT(Quagga, 0.99.2, [http://bugzilla.quagga.net])
@@ -88,7 +88,7 @@ dnl ---------------------------------------------
 dnl
 if test "x$cflags_specified" = "x" ; then
   if test "x${GCC}" = "xyes" && test "x${ICC}" = "xno"; then
-       CFLAGS="-Os -fno-omit-frame-pointer -g  -Wall"
+       CFLAGS="-Os -fno-omit-frame-pointer -g -std=c99 -Wall"
        CFLAGS="${CFLAGS} -Wsign-compare -Wpointer-arith"
        CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings"
        CFLAGS="${CFLAGS} -Wmissing-prototypes -Wmissing-declarations"
@@ -324,7 +324,7 @@ AC_HEADER_STDC
 AC_CHECK_HEADERS([string.h stropts.h sys/conf.h sys/ksym.h sys/time.h \
                  sys/times.h sys/select.h sys/sysctl.h sys/sockio.h \
                  sys/types.h linux/version.h kvm.h netdb.h asm/types.h \
-                 sys/param.h libutil.h limits.h])
+                 sys/param.h libutil.h limits.h stdint.h])
 
 AC_CHECK_HEADERS([sys/socket.h netinet/in_systm.h netinet/in.h \
                 net/if_dl.h net/netopt.h inet/nd.h net/route.h \
index b6407c4a68701a819b862db25a38232ebf42fe09..4293457582af44188ccc858a8285674eb936389b 100644 (file)
@@ -18,6 +18,7 @@
          Keep track of number of consecutive runs, go into 'overdrive'
          if queue is being flooded, we can't avoid making heavy use of 
          resources, better to use CPU than ever more RAM.
+       * zebra.h: [bug #231] include stdint, if its there.
 
 2005-11-05 Paul Jakma <paul.jakma@sun.com>
 
index 1739d771d8dd6775c3fea590b1cc7b79962f1adc..0aa98a4f02ac3461688a1b9a8ef4a0f1257508f9 100644 (file)
@@ -82,6 +82,9 @@ typedef int socklen_t;
 #ifdef HAVE_LIMITS_H
 #include <limits.h>
 #endif /* HAVE_LIMITS_H */
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif /* HAVE_STDINT_H */
 
 /* machine dependent includes */
 #ifdef SUNOS_5