* configure.ac: Here.
---
ChangeLog | 6 ++++++
configure.ac | 5 +++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ee0aacd..ab7be69 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2014-06-27 Roland Levillain <roland(a)lrde.epita.fr>
+ Use AX_CHECK_COMPILE_FLAG to check compiler support for `-pipe'.
+
+ * configure.ac: Here.
+
+2014-06-27 Roland Levillain <roland(a)lrde.epita.fr>
+
Avoid warnings about unused local typedefs.
* m4/ax_check_compile_flag.m4: New.
diff --git a/configure.ac b/configure.ac
index 6dadbea..be32513 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,10 +75,11 @@ AC_PROG_CXX
# Set `ICPC' to `yes' if the Intel C++ compiler is used.
test $CXX --version 2>/dev/null | grep '\bICC\b' >/dev/null 2>&1
&& ICPC=yes
+# Try to use pipes between compiler stages to speed the compilation up.
+AX_CHECK_COMPILE_FLAG([-pipe], [CXXFLAGS="$CXXFLAGS -pipe"])
+
# GNU C++ compiler setup.
if test "$GXX" = yes; then
- # Speed up compiling times.
- CXXFLAGS="$CXXFLAGS -pipe"
# The code generated for mln::data::impl::memcpy__() by g++ 4.2 with
# a high optimization level (`-O3') and without
--
1.7.10.4