]> granicus.if.org Git - python/commitdiff
Issue 28017: Use -std=gnu99 to get C99 with GNU extensions for bluetooth.h on big...
authorChristian Heimes <christian@python.org>
Thu, 8 Sep 2016 09:39:42 +0000 (11:39 +0200)
committerChristian Heimes <christian@python.org>
Thu, 8 Sep 2016 09:39:42 +0000 (11:39 +0200)
aclocal.m4
configure
configure.ac

index 2a745e57466cae1af014f239e5b91a8fc1fd64d8..9a9cc557281571f0d46c506c0e9d1b9fb25e063c 100644 (file)
@@ -13,7 +13,7 @@
 
 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
 dnl pkg.m4 - Macros to locate and utilise pkg-config.   -*- Autoconf -*-
-dnl serial 11 (pkg-config-0.29.1)
+dnl serial 11 (pkg-config-0.29)
 dnl
 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
@@ -55,7 +55,7 @@ dnl
 dnl See the "Since" comment for each macro you use to see what version
 dnl of the macros you require.
 m4_defun([PKG_PREREQ],
-[m4_define([PKG_MACROS_VERSION], [0.29.1])
+[m4_define([PKG_MACROS_VERSION], [0.29])
 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
     [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
 ])dnl PKG_PREREQ
index 0be0850e2a350f3784809ebef294aba83a80c949..4590423aacc4a823770fbadcdcc66b5b8780efaf 100755 (executable)
--- a/configure
+++ b/configure
@@ -6858,7 +6858,9 @@ UNIVERSAL_ARCH_FLAGS=
 # tweak BASECFLAGS based on compiler and platform
 case $GCC in
 yes)
-    CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
+    # GNU dialect of C99, enables GNU extensions like __attribute__. GNU99
+    # is required by bluetooth.h on big endian machines.
+    CFLAGS_NODIST="$CFLAGS_NODIST -std=gnu99"
 
     # Python doesn't violate C99 aliasing rules, but older versions of
     # GCC produce warnings for legal Python code.  Enable
index 8a8794589681fc91e3f8ea57776626eadfd604a6..c57a94e4fcc4059d798b8bb3ee53b5e885cb4adb 100644 (file)
@@ -1523,7 +1523,9 @@ AC_SUBST(UNIVERSAL_ARCH_FLAGS)
 # tweak BASECFLAGS based on compiler and platform
 case $GCC in
 yes)
-    CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
+    # GNU dialect of C99, enables GNU extensions like __attribute__. GNU99
+    # is required by bluetooth.h on big endian machines.
+    CFLAGS_NODIST="$CFLAGS_NODIST -std=gnu99"
 
     # Python doesn't violate C99 aliasing rules, but older versions of
     # GCC produce warnings for legal Python code.  Enable