Edit

kc3-lang/automake/m4/protos.m4

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 2000-12-18 01:12:17
    Hash : 0b7a6a08
    Message : * m4/protos.m4: Always do header checks.

  • m4/protos.m4
  • ## ------------------------------- ##
    ## Check for function prototypes.  ##
    ## From Franc,ois Pinard           ##
    ## ------------------------------- ##
    
    # serial 1
    
    AC_DEFUN([AM_C_PROTOTYPES],
    [AC_REQUIRE([AM_PROG_CC_STDC])
    AC_REQUIRE([AC_PROG_CPP])
    AC_MSG_CHECKING([for function prototypes])
    if test "$am_cv_prog_cc_stdc" != no; then
      AC_MSG_RESULT(yes)
      AC_DEFINE(PROTOTYPES,1,[Define if compiler has function prototypes])
      U= ANSI2KNR=
    else
      AC_MSG_RESULT(no)
      U=_ ANSI2KNR=./ansi2knr
    fi
    # Ensure some checks needed by ansi2knr itself.
    AC_HEADER_STDC
    AC_CHECK_HEADERS(string.h)
    AC_SUBST(U)dnl
    AC_SUBST(ANSI2KNR)dnl
    ])