[Rivet-svn] r2644 - trunk

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Aug 5 15:34:00 BST 2010


Author: jmonk
Date: Thu Aug  5 15:34:00 2010
New Revision: 2644

Log:
improvement to swig compilation test.  see #436

Modified:
   trunk/configure.ac

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	Wed Aug  4 16:21:36 2010	(r2643)
+++ trunk/configure.ac	Thu Aug  5 15:34:00 2010	(r2644)
@@ -238,10 +238,18 @@
       AC_MSG_ERROR([Can't build Python extension since $SWIG is not able to make a Python wrapper])
       enable_pyext=no
     else
+    
       AC_MSG_CHECKING([if $SWIG is compatible with the $CXX compiler])
       flag_ok=yes
       if test x$flag_ok == xyes; then
-        stat_string=`$CXX -c conftest_wrap.cxx -I$python_incpath 2>&1 1>&5` ; test -z "$stat_string" || flag_ok=no
+      
+        swig_compiler=$CXX
+        
+        if test "x$swig_compiler" = "xg++" ; then
+          swig_compiler = "$swig_compiler -Wno-format"
+        fi
+      
+        stat_string=`$swig_compiler -Wno-format -c conftest_wrap.cxx -I$python_incpath 2>&1 1>&5` ; test -z "$stat_string" || flag_ok=no
       fi
       AC_MSG_RESULT([$flag_ok])
       if test x$flag_ok != xyes; then


More information about the Rivet-svn mailing list