source: git/m4/pipe-check.m4 @ 69185ce

spielwiese
Last change on this file since 69185ce was 69185ce, checked in by Hans Schoenemann <hannes@…>, 3 years ago
update configure stuff
  • Property mode set to 100644
File size: 659 bytes
Line 
1# Check whether the compiler accepts -pipe
2
3dnl SING_CHECK_PIPE
4dnl
5dnl check whether the compiler accepts -pipe and define PIPE
6
7AC_DEFUN([SING_CHECK_PIPE],
8[
9
10if test x$ac_cv_c_cpp = xgcc2 -o  x$ac_cv_c_cpp = xgcc3
11then
12  AC_MSG_CHECKING(whether compiler accepts -pipe)
13  temp_cflags="${CFLAGS}"
14  CFLAGS="${CFLAGS} -pipe"
15  AC_CACHE_VAL(ac_cv_cxx_have_pipe,
16  AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[ac_cv_cxx_have_pipe=yes],[ac_cv_cxx_have_pipe=no]))
17  AC_MSG_RESULT(${ac_cv_cxx_have_pipe})
18  CFLAGS=${temp_cflags}
19else
20  ac_cv_cxx_have_pipe="no"
21fi
22
23if test "${ac_cv_cxx_have_pipe}" != yes; then
24  PIPE=
25else
26  PIPE="-pipe"
27fi
28AC_SUBST(PIPE)
29])
Note: See TracBrowser for help on using the repository browser.