[postgis-tickets] r16845 - Specify C standard in CFLAGS

Daniel Baston dbaston at gmail.com
Thu Sep 27 06:26:52 PDT 2018


Author: dbaston
Date: 2018-09-27 06:26:52 -0700 (Thu, 27 Sep 2018)
New Revision: 16845

Modified:
   trunk/configure.ac
Log:
Specify C standard in CFLAGS

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2018-09-26 12:20:29 UTC (rev 16844)
+++ trunk/configure.ac	2018-09-27 13:26:52 UTC (rev 16845)
@@ -60,6 +60,7 @@
 
 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-math-errno], [_cv_nomatherrno], [-fno-math-errno], [], [CFLAGS="$CFLAGS -fno-math-errno"], [])
 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-signed-zeros], [_cv_nosignedzeros], [-fno-signed-zeros], [], [CFLAGS="$CFLAGS -fno-signed-zeros"], [])
+AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -std=gnu99], [_cv_std], -std=gnu99, [], [CFLAGS="-std=gnu99 $CFLAGS"], [])
 
 dnl
 dnl For GCC enable additional warning flags -Wall and -Wmissing-prototypes (using macro included with libtool)



More information about the postgis-tickets mailing list