OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [aclocal/] [gcc-pipe.m4] - Diff between revs 30 and 173

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 30 Rev 173
dnl
dnl
dnl $Id: gcc-pipe.m4,v 1.2 2001-09-27 11:59:11 chris Exp $
dnl $Id: gcc-pipe.m4,v 1.2 2001-09-27 11:59:11 chris Exp $
dnl
dnl
dnl Check whether the target compiler accepts -pipe
dnl Check whether the target compiler accepts -pipe
dnl
dnl
 
 
AC_DEFUN(RTEMS_GCC_PIPE,
AC_DEFUN(RTEMS_GCC_PIPE,
[AC_REQUIRE([RTEMS_PROG_CC])
[AC_REQUIRE([RTEMS_PROG_CC])
AC_REQUIRE([AC_CANONICAL_HOST])
AC_REQUIRE([AC_CANONICAL_HOST])
AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts --pipe,rtems_cv_gcc_pipe,
AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts --pipe,rtems_cv_gcc_pipe,
[
[
rtems_cv_gcc_pipe=no
rtems_cv_gcc_pipe=no
if test "$rtems_cv_prog_gcc" = "yes"; then
if test "$rtems_cv_prog_gcc" = "yes"; then
    echo 'void f(){}' >conftest.c
    echo 'void f(){}' >conftest.c
    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
      rtems_cv_gcc_pipe=yes
      rtems_cv_gcc_pipe=yes
    fi
    fi
    rm -f conftest*
    rm -f conftest*
fi
fi
])
])
])
])
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.