fieker-DuValspielwiese
Last change
on this file since d187ac was
d11524,
checked in by Mohamed Barakat <mohamed.barakat@…>, 13 years ago
|
- merge libpolys/{misc,reporter,resources}/configure.ac into libpolys/configure.ac
- seperate some of the checks in separate m4 files
|
-
Property mode set to
100644
|
File size:
624 bytes
|
Line | |
---|
1 | # Check whether the compiler accepts -pipe |
---|
2 | |
---|
3 | dnl SING_CHECK_PIPE |
---|
4 | dnl |
---|
5 | dnl check whether the compiler accepts -pipe and define PIPE |
---|
6 | |
---|
7 | AC_DEFUN([SING_CHECK_PIPE], |
---|
8 | [ |
---|
9 | |
---|
10 | if test x$ac_cv_c_cpp = xgcc2 -o x$ac_cv_c_cpp = xgcc3 |
---|
11 | then |
---|
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_TRY_COMPILE(,,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} |
---|
19 | else |
---|
20 | ac_cv_cxx_have_pipe="no" |
---|
21 | fi |
---|
22 | |
---|
23 | if test "${ac_cv_cxx_have_pipe}" != yes; then |
---|
24 | PIPE= |
---|
25 | else |
---|
26 | PIPE="-pipe" |
---|
27 | fi |
---|
28 | AC_SUBST(PIPE) |
---|
29 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.