Use -pipe when GCC

pull/230/merge
Nils Maier 2014-05-19 10:11:14 +02:00
parent 5c07f0109e
commit fd3348cc88
1 changed files with 8 additions and 0 deletions

View File

@ -87,6 +87,14 @@ AC_PROG_MKDIR_P
AC_PROG_YACC
AM_PROG_AS
# Speed GCC compilation up.
if test "$GCC" = yes; then
CFLAGS="$CFLAGS -pipe"
fi
if test "$GXX" = yes; then
CXXFLAGS="$CXXFLAGS -pipe"
fi
AC_CHECK_TOOL([AR], [ar], [:])
if test "x$AR" = "x:"; then
AC_MSG_FAILURE([ar is not found in the system.])