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 / checkergcc.m4 < prev    next >
Text File  |  1998-04-20  |  663b  |  23 lines

  1. ## --------------------------------------------------------- ##
  2. ## Check for checkergcc.                                     ##
  3. ## Adapted from AC_PROG_CC_GNU.                              ##
  4. ## --------------------------------------------------------- ##
  5.  
  6. # serial 1
  7.  
  8. AC_DEFUN(mfx_PROG_CC_CHECKERGCC,
  9. [AC_CACHE_CHECK(whether we are using checkergcc, mfx_cv_prog_checkergcc,
  10. [dnl The semicolon is to pacify NeXT's syntax-checking cpp.
  11. cat > conftest.c <<EOF
  12. #ifdef __GNUC__
  13. #ifdef __CHECKER__
  14.   yes;
  15. #endif
  16. #endif
  17. EOF
  18. if AC_TRY_COMMAND(${CC-cc} -E conftest.c) | egrep yes >/dev/null 2>&1; then
  19.   mfx_cv_prog_checkergcc=yes
  20. else
  21.   mfx_cv_prog_checkergcc=no
  22. fi])])
  23.