Changeset 584cbc in git for reporter/configure.ac


Ignore:
Timestamp:
Jun 16, 2010, 5:29:45 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
227efd8f5d6e826d69e0c8fc8c68a29bc56b80d0
Parents:
a296bb8b3051f16b293d46d397aec1747775e971
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2010-06-16 17:29:45+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:11+01:00
Message:
test -pipe
File:
1 edited

Legend:

Unmodified
Added
Removed
  • reporter/configure.ac

    ra296bb8 r584cbc  
    2828                               [Define if vsnprintf exists.])])
    2929
     30# check whether the compiler accepts -pipe
     31if test x$ac_cv_c_cpp = xgcc2 -o  x$ac_cv_c_cpp = xgcc3
     32then
     33  AC_MSG_CHECKING(whether compiler accepts -pipe)
     34  temp_cflags="${CFLAGS}"
     35  CFLAGS="${CFLAGS} -pipe"
     36  AC_CACHE_VAL(ac_cv_cxx_have_pipe,
     37  AC_TRY_COMPILE(,,ac_cv_cxx_have_pipe=yes,ac_cv_cxx_have_pipe=no))
     38  AC_MSG_RESULT(${ac_cv_cxx_have_pipe})
     39  CFLAGS=${temp_cflags}
     40else
     41  ac_cv_cxx_have_pipe="no"
     42fi
     43
     44if test "${ac_cv_cxx_have_pipe}" != yes; then
     45  PIPE=
     46else
     47  PIPE="-pipe"
     48fi
     49AC_SUBST(PIPE)
     50
    3051AC_CONFIG_FILES([Makefile])
    3152AC_OUTPUT
Note: See TracChangeset for help on using the changeset viewer.