[paludis-commits] r4614 - trunk
ciaranm at svn.pioto.org
ciaranm at svn.pioto.org
Fri Apr 25 15:04:27 UTC 2008
Author: ciaranm
Date: 2008-04-25 15:04:26 +0000 (Fri, 25 Apr 2008)
New Revision: 4614
Modified:
trunk/configure.ac
Log:
icc hates -pedantic
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2008-04-25 12:59:15 UTC (rev 4613)
+++ trunk/configure.ac 2008-04-25 15:04:26 UTC (rev 4614)
@@ -713,21 +713,25 @@
fi
AC_MSG_RESULT([${cxxflags_message}])
-if test x$CAN_USE_EXTERN_TEMPLATE = xyes ; then
- AC_MSG_CHECKING([whether -pedantic works if we use extern template])
- save_CXXFLAGS=$CXXFLAGS
- CXXFLAGS="$CXXFLAGS -pedantic"
- AC_COMPILE_IFELSE([
+AC_MSG_CHECKING([whether -pedantic works if we use extern template])
+if test "x${cxx_compiler_icc}" = "xyes" ; then
+ AC_MSG_RESULT([no, icc doesn't do pedantic])
+else
+ if test x$CAN_USE_EXTERN_TEMPLATE = xyes ; then
+ save_CXXFLAGS=$CXXFLAGS
+ CXXFLAGS="$CXXFLAGS -pedantic"
+ AC_COMPILE_IFELSE([
template <typename T_> struct S { };
extern template struct S<int>;
-],
- [AC_MSG_RESULT([yes])
- CHECK_CXXFLAG([-pedantic])],
- [AC_MSG_RESULT([no])])
-else
- CHECK_CXXFLAG([-pedantic])
+ ],
+ [AC_MSG_RESULT([yes])
+ CHECK_CXXFLAG([-pedantic])],
+ [AC_MSG_RESULT([no])])
+ else
+ CHECK_CXXFLAG([-pedantic])
+ fi
+ CXXFLAGS=$save_CXXFLAGS
fi
-CXXFLAGS=$save_CXXFLAGS
AC_SUBST([PALUDIS_CXXFLAGS])
AC_SUBST([PALUDIS_CXXFLAGS_WITHOUT_PEDANTIC])
More information about the paludis-commits
mailing list