home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lzop-1.00.tar.gz / lzop-1.00.tar / lzop-1.00 / acconfig / m4 / pipe.m4 < prev    next >
Text File  |  1998-04-20  |  715b  |  26 lines

  1. ## --------------------------------------------------------- ##
  2. ## Check if gcc accepts '-pipe'.                             ##
  3. ## Adapted from AC_PROG_CC and AC_PROG_GCC_TRADITIONAL.      ##
  4. ## --------------------------------------------------------- ##
  5.  
  6. # serial 1
  7.  
  8. AC_DEFUN(mfx_PROG_GCC_PIPE,
  9. [AC_REQUIRE([AC_PROG_CC])dnl
  10. AC_REQUIRE([AC_PROG_CPP])dnl
  11. if test "$ac_cv_prog_gcc" = yes; then
  12. AC_CACHE_CHECK(whether ${CC-cc} accepts -pipe, mfx_cv_prog_gcc_pipe,
  13. [echo 'main() { return 0; }' > conftest.c
  14. if test -z "`${CC-cc} -pipe -c conftest.c 2>&1`"; then
  15.   mfx_cv_prog_gcc_pipe=yes
  16. else
  17.   mfx_cv_prog_gcc_pipe=no
  18. fi
  19. rm -f conftest*
  20. ])
  21.   if test "$mfx_cv_prog_gcc_pipe" = yes; then
  22.     CC="$CC -pipe"
  23.   fi
  24. fi
  25. ])
  26.