source: rtems/aclocal/gcc-pipe.m4 @ a7a08713

4.104.114.84.95
Last change on this file since a7a08713 was a7a08713, checked in by Joel Sherrill <joel.sherrill@…>, on 03/20/98 at 16:52:10

Patch from Ralf Corsepius to properly detect that Cygwin32 does not
support the -pipe option on the compiler.

  • Property mode set to 100644
File size: 575 bytes
Line 
1dnl
2dnl $Id$
3dnl
4dnl Check whether the target compiler accepts -pipe
5dnl
6dnl 98/02/11 Ralf Corsepius     corsepiu@faw.uni-ulm.de
7dnl
8
9AC_DEFUN(RTEMS_GCC_PIPE,
10[AC_REQUIRE([RTEMS_PROG_CC])
11AC_REQUIRE([AC_CANONICAL_HOST])
12AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts --pipe,rtems_cv_gcc_pipe,
13[
14case "$host_os" in
15  cygwin32*)
16    rtems_cv_gcc_pipe=no
17    ;;
18  *)
19    echo 'void f(){}' >conftest.c
20    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
21      rtems_cv_gcc_pipe=yes
22    else
23      rtems_cv_gcc_pipe=no
24    fi
25    rm -f conftest*
26    ;;
27esac
28])
29])
Note: See TracBrowser for help on using the repository browser.