[geos-commits] r2378 - trunk

svn_geos at osgeo.org svn_geos at osgeo.org
Thu Apr 16 14:05:18 EDT 2009


Author: strk
Date: 2009-04-16 14:05:18 -0400 (Thu, 16 Apr 2009)
New Revision: 2378

Modified:
   trunk/configure.in
Log:
Use -ffloat-store flag when available. See http://lists.osgeo.org/pipermail/geos-devel/2009-April/004089.html

Modified: trunk/configure.in
===================================================================
--- trunk/configure.in	2009-04-16 12:56:16 UTC (rev 2377)
+++ trunk/configure.in	2009-04-16 18:05:18 UTC (rev 2378)
@@ -116,9 +116,16 @@
 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -Wall], [dummy], [-Wall], [], [WARNFLAGS="$WARNFLAGS -Wall"], [])
 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -ansi], [dummy], [-ansi], [], [WARNFLAGS="$WARNFLAGS -ansi"], [])
 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -Wno-long-long], [dummy], [-Wno-long-long], [], [WARNFLAGS="$WARNFLAGS -Wno-long-long"], [])
-CXXFLAGS="${CXXFLAGS} ${WARNFLAGS}"
-CFLAGS="${CFLAGS} ${WARNFLAGS}"
 
+# To make numerical computation more stable, we use --ffloat-store
+NUMERICFLAGS=""
+AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -ffloat-store], [dummy], [-ffloat-store], [], [NUMERICFLAGS="$NUMERICFLAGS -ffloat-store"], [])
+
+DEFAULTFLAGS="${WARNFLAGS} ${NUMERICFLAGS}"
+
+CXXFLAGS="${CXXFLAGS} ${DEFAULTFLAGS}"
+CFLAGS="${CFLAGS} ${DEFAULTFLAGS}"
+
 dnl --------------------------------------------------------------------
 dnl - Look for a 64bit integer (do after CFLAGS is set)
 dnl --------------------------------------------------------------------



More information about the geos-commits mailing list