Blame common/m4/as-compiler.m4

Packit 971217
dnl as-compiler.m4 0.1.0
Packit 971217
Packit 971217
dnl autostars m4 macro for detection of compiler flavor
Packit 971217
Packit 971217
dnl Thomas Vander Stichele <thomas at apestaart dot org>
Packit 971217
Packit 971217
dnl $Id: as-compiler.m4,v 1.4 2004/06/01 09:44:19 thomasvs Exp $
Packit 971217
Packit 971217
dnl AS_COMPILER(COMPILER)
Packit 971217
dnl will set variable COMPILER to
Packit 971217
dnl - gcc
Packit 971217
dnl - forte
Packit 971217
dnl - (empty) if no guess could be made
Packit 971217
Packit 971217
AC_DEFUN([AS_COMPILER],
Packit 971217
[
Packit 971217
  as_compiler=
Packit 971217
  AC_MSG_CHECKING(for compiler flavour)
Packit 971217
Packit 971217
  dnl is it gcc ?
Packit 971217
  if test "x$GCC" = "xyes"; then
Packit 971217
    as_compiler="gcc"
Packit 971217
  fi
Packit 971217
Packit 971217
  dnl is it forte ?
Packit 971217
  AC_TRY_RUN([
Packit 971217
int main
Packit 971217
(int argc, char *argv[])
Packit 971217
{
Packit 971217
#ifdef __sun
Packit 971217
  return 0;
Packit 971217
#else
Packit 971217
  return 1;
Packit 971217
#endif
Packit 971217
}
Packit 971217
  ], as_compiler="forte", ,)
Packit 971217
Packit 971217
  if test "x$as_compiler" = "x"; then
Packit 971217
    AC_MSG_RESULT([unknown !])
Packit 971217
  else
Packit 971217
    AC_MSG_RESULT($as_compiler)
Packit 971217
  fi
Packit 971217
  [$1]=$as_compiler
Packit 971217
])